2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 8.2.2.
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='8.2.2'
594 PACKAGE_STRING='HarfBuzz 8.2.2'
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
647 HAVE_DIRECTWRITE_FALSE
648 HAVE_DIRECTWRITE_TRUE
667 HAVE_ICU_BUILTIN_FALSE
668 HAVE_ICU_BUILTIN_TRUE
685 HAVE_INTROSPECTION_FALSE
686 HAVE_INTROSPECTION_TRUE
687 INTROSPECTION_MAKEFILE
690 INTROSPECTION_TYPELIBDIR
692 INTROSPECTION_GENERATE
693 INTROSPECTION_COMPILER
694 INTROSPECTION_SCANNER
718 GTK_DOC_USE_REBASE_FALSE
719 GTK_DOC_USE_REBASE_TRUE
720 GTK_DOC_USE_LIBTOOL_FALSE
721 GTK_DOC_USE_LIBTOOL_TRUE
722 GTK_DOC_BUILD_PDF_FALSE
723 GTK_DOC_BUILD_PDF_TRUE
724 GTK_DOC_BUILD_HTML_FALSE
725 GTK_DOC_BUILD_HTML_TRUE
739 HB_LIBTOOL_VERSION_INFO
804 CODE_COVERAGE_LDFLAGS
806 CODE_COVERAGE_CXXFLAGS
808 CODE_COVERAGE_CPPFLAGS
812 CODE_COVERAGE_ENABLED
813 CODE_COVERAGE_ENABLED_FALSE
814 CODE_COVERAGE_ENABLED_TRUE
828 INSTALL_STRIP_PROGRAM
871 program_transform_name
885 enable_option_checking
889 enable_dependency_tracking
918 ac_precious_vars='build_alias
955 # Initialize some variables set by options.
957 ac_init_version=false
958 ac_unrecognized_opts=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
969 program_transform_name=s,x,x,
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 runstatedir='${localstatedir}/run'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1016 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1073 eval enable_$ac_useropt=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -runstatedir | --runstatedir | --runstatedi | --runstated \
1245 | --runstate | --runstat | --runsta | --runst | --runs \
1246 | --run | --ru | --r)
1247 ac_prev=runstatedir ;;
1248 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1249 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1250 | --run=* | --ru=* | --r=*)
1251 runstatedir=$ac_optarg ;;
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 sbindir=$ac_optarg ;;
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 sharedstatedir=$ac_optarg ;;
1270 -site | --site | --sit)
1272 -site=* | --site=* | --sit=*)
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=\$ac_optarg ;;
1314 -without-* | --without-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 as_fn_error $? "invalid package name: $ac_useropt"
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1328 eval with_$ac_useropt=no ;;
1331 # Obsolete; use --with-x.
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1348 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1349 Try \`$0 --help' for more information"
1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354 # Reject names that are not valid shell variable names.
1355 case $ac_envvar in #(
1356 '' | [0-9]* | *[!_$as_cr_alnum]* )
1357 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 as_fn_error $? "missing argument to $ac_option"
1378 if test -n "$ac_unrecognized_opts"; then
1379 case $enable_option_checking in
1381 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1382 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386 # Check all directory arguments for consistency.
1387 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388 datadir sysconfdir sharedstatedir localstatedir includedir \
1389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390 libdir localedir mandir runstatedir
1392 eval ac_val=\$$ac_var
1393 # Remove trailing slashes.
1396 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1397 eval $ac_var=\$ac_val;;
1399 # Be sure to have absolute directory names.
1401 [\\/$]* | ?:[\\/]* ) continue;;
1402 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1412 target=$target_alias
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416 if test "x$build_alias" = x; then
1417 cross_compiling=maybe
1418 elif test "x$build_alias" != "x$host_alias"; then
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426 test "$silent" = yes && exec 6>/dev/null
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432 as_fn_error $? "working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 as_fn_error $? "pwd does not report name of working directory"
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1469 ac_srcdir_defaulted=no
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 for ac_var in $ac_precious_vars; do
1490 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_${ac_var}_value=\$${ac_var}
1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 # Report the --help message.
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1503 \`configure' configures HarfBuzz 8.2.2 to adapt to many kinds of systems.
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1510 Defaults for the options are specified in brackets.
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking ...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1534 For better control, use the options below.
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1572 if test -n "$ac_init_help"; then
1573 case $ac_init_help in
1574 short | recursive ) echo "Configuration of HarfBuzz 8.2.2:";;
1579 --disable-option-checking ignore unrecognized --enable/--with options
1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1582 --enable-silent-rules less verbose build output (undo: "make V=1")
1583 --disable-silent-rules verbose build output (undo: "make V=0")
1584 --enable-code-coverage Whether to enable code coverage support
1585 --enable-dependency-tracking
1586 do not reject slow dependency extractors
1587 --disable-dependency-tracking
1588 speeds up one-time build
1589 --enable-static[=PKGS] build static libraries [default=no]
1590 --enable-shared[=PKGS] build shared libraries [default=yes]
1591 --enable-fast-install[=PKGS]
1592 optimize for fast installation [default=yes]
1593 --disable-libtool-lock avoid locking (might break parallel builds)
1594 --disable-largefile omit support for large files
1595 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1596 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1597 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1598 --enable-introspection=[no/auto/yes]
1599 Enable introspection for this build
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1605 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1607 --with-aix-soname=aix|svr4|both
1608 shared library versioning (aka "SONAME") variant to
1609 provide on AIX, [default=aix].
1610 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1611 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1612 compiler's sysroot if not specified).
1613 --with-libstdc++=[yes/no]
1614 Allow linking with libstdc++ [default=no]
1615 --with-html-dir=PATH path to installed docs
1616 --with-glib=[yes/no/auto]
1617 Use glib [default=auto]
1618 --with-gobject=[yes/no/auto]
1619 Use gobject [default=no]
1620 --with-cairo=[yes/no/auto]
1621 Use cairo [default=auto]
1622 --with-chafa=[yes/no/auto]
1623 Use chafa [default=auto]
1624 --with-icu=[yes/no/builtin/auto]
1625 Use ICU [default=auto]
1626 --with-graphite2=[yes/no/auto]
1627 Use the graphite2 library [default=no]
1628 --with-freetype=[yes/no/auto]
1629 Use the FreeType library [default=auto]
1630 --with-uniscribe=[yes/no/auto]
1631 Use the Uniscribe library [default=no]
1632 --with-gdi=[yes/no/auto]
1633 Provide GDI integration helpers [default=no]
1634 --with-directwrite=[yes/no/auto]
1635 Use the DirectWrite library (experimental)
1637 --with-coretext=[yes/no/auto]
1638 Use CoreText [default=no]
1639 --with-wasm=[yes/no/auto]
1640 Use the wasm-micro-runtime library [default=no]
1642 Some influential environment variables:
1643 CC C compiler command
1644 CFLAGS C compiler flags
1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1646 nonstandard directory <lib dir>
1647 LIBS libraries to pass to the linker, e.g. -l<library>
1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649 you have headers in a nonstandard directory <include dir>
1651 User-defined run-time library search path.
1653 CXX C++ compiler command
1654 CXXFLAGS C++ compiler flags
1655 CXXCPP C++ preprocessor
1656 PKG_CONFIG path to pkg-config utility
1658 directories to add to pkg-config's search path
1660 path overriding pkg-config's built-in search path
1662 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1664 linker flags for GTKDOC_DEPS, overriding pkg-config
1665 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1666 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1668 C compiler flags for GOBJECT, overriding pkg-config
1670 linker flags for GOBJECT, overriding pkg-config
1672 C compiler flags for CAIRO, overriding pkg-config
1673 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1675 C compiler flags for CAIRO_FT, overriding pkg-config
1677 linker flags for CAIRO_FT, overriding pkg-config
1679 C compiler flags for CHAFA, overriding pkg-config
1680 CHAFA_LIBS linker flags for CHAFA, overriding pkg-config
1681 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1682 ICU_LIBS linker flags for ICU, overriding pkg-config
1684 C compiler flags for GRAPHITE2, overriding pkg-config
1686 linker flags for GRAPHITE2, overriding pkg-config
1688 C compiler flags for FREETYPE, overriding pkg-config
1690 linker flags for FREETYPE, overriding pkg-config
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1695 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1696 HarfBuzz home page: <http://harfbuzz.org/>.
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1726 .) # We are building in place.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1759 HarfBuzz configure 8.2.2
1760 generated by GNU Autoconf 2.69
1762 Copyright (C) 2012 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1809 } # ac_fn_c_try_compile
1811 # ac_fn_c_try_link LINENO
1812 # -----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded.
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext conftest$ac_exeext
1818 if { { ac_try="$ac_link"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest$ac_exeext && {
1837 test "$cross_compiling" = yes ||
1838 test -x conftest$ac_exeext
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849 # interfere with the next link command; also delete a directory that is
1850 # left behind by Apple's compiler. We do this before executing the actions.
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_link
1857 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1858 # -------------------------------------------------------
1859 # Tests whether HEADER exists and can be compiled using the include files in
1860 # INCLUDES, setting the cache variable VAR accordingly.
1861 ac_fn_c_check_header_compile ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1874 if ac_fn_c_try_compile "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_header_compile
1888 # ac_fn_c_try_cpp LINENO
1889 # ----------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } > conftest.i && {
1910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1925 # ac_fn_c_try_run LINENO
1926 # ----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1928 # that executables *can* be run.
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_link"
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>&5
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1943 { { case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_try") 2>&5
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; }; }; then :
1955 $as_echo "$as_me: program exited with status $ac_status" >&5
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=$ac_status
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1967 # ac_fn_c_check_func LINENO FUNC VAR
1968 # ----------------------------------
1969 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1970 ac_fn_c_check_func ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1982 #define $2 innocuous_$2
1984 /* System header to define __stub macros and hopefully few prototypes,
1985 which can conflict with char $2 (); below.
1986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1987 <limits.h> exists even on freestanding compilers. */
1990 # include <limits.h>
1992 # include <assert.h>
1997 /* Override any GCC internal prototype to avoid an error.
1998 Use char because int might match the return type of a GCC
1999 builtin and then its argument prototype would still apply. */
2004 /* The GNU C library defines this for functions which it implements
2005 to always fail with ENOSYS. Some functions are actually named
2006 something starting with __ and the normal name is an alias. */
2007 #if defined __stub_$2 || defined __stub___$2
2019 if ac_fn_c_try_link "$LINENO"; then :
2024 rm -f core conftest.err conftest.$ac_objext \
2025 conftest$ac_exeext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_func
2034 # ac_fn_cxx_try_compile LINENO
2035 # ----------------------------
2036 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2037 ac_fn_cxx_try_compile ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 rm -f conftest.$ac_objext
2041 if { { ac_try="$ac_compile"
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_compile") 2>conftest.err
2050 if test -s conftest.err; then
2051 grep -v '^ *+' conftest.err >conftest.er1
2052 cat conftest.er1 >&5
2053 mv -f conftest.er1 conftest.err
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && {
2057 test -z "$ac_cxx_werror_flag" ||
2058 test ! -s conftest.err
2059 } && test -s conftest.$ac_objext; then :
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 as_fn_set_status $ac_retval
2070 } # ac_fn_cxx_try_compile
2072 # ac_fn_cxx_try_cpp LINENO
2073 # ------------------------
2074 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2075 ac_fn_cxx_try_cpp ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if { { ac_try="$ac_cpp conftest.$ac_ext"
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2084 $as_echo "$ac_try_echo"; } >&5
2085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2087 if test -s conftest.err; then
2088 grep -v '^ *+' conftest.err >conftest.er1
2089 cat conftest.er1 >&5
2090 mv -f conftest.er1 conftest.err
2092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2093 test $ac_status = 0; } > conftest.i && {
2094 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2095 test ! -s conftest.err
2099 $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 as_fn_set_status $ac_retval
2107 } # ac_fn_cxx_try_cpp
2109 # ac_fn_cxx_try_link LINENO
2110 # -------------------------
2111 # Try to link conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_cxx_try_link ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 rm -f conftest.$ac_objext conftest$ac_exeext
2116 if { { ac_try="$ac_link"
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_link") 2>conftest.err
2125 if test -s conftest.err; then
2126 grep -v '^ *+' conftest.err >conftest.er1
2127 cat conftest.er1 >&5
2128 mv -f conftest.er1 conftest.err
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; } && {
2132 test -z "$ac_cxx_werror_flag" ||
2133 test ! -s conftest.err
2134 } && test -s conftest$ac_exeext && {
2135 test "$cross_compiling" = yes ||
2136 test -x conftest$ac_exeext
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2145 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2146 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2147 # interfere with the next link command; also delete a directory that is
2148 # left behind by Apple's compiler. We do this before executing the actions.
2149 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 as_fn_set_status $ac_retval
2153 } # ac_fn_cxx_try_link
2155 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2156 # -------------------------------------------------------
2157 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2158 # the include files in INCLUDES and setting the cache variable VAR
2160 ac_fn_c_check_header_mongrel ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 if eval \${$3+:} false; then :
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165 $as_echo_n "checking for $2... " >&6; }
2166 if eval \${$3+:} false; then :
2167 $as_echo_n "(cached) " >&6
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2173 # Is the header compilable?
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2175 $as_echo_n "checking $2 usability... " >&6; }
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_header_compiler=yes
2184 ac_header_compiler=no
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2188 $as_echo "$ac_header_compiler" >&6; }
2190 # Is the header present?
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2192 $as_echo_n "checking $2 presence... " >&6; }
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2197 if ac_fn_c_try_cpp "$LINENO"; then :
2198 ac_header_preproc=yes
2200 ac_header_preproc=no
2202 rm -f conftest.err conftest.i conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2204 $as_echo "$ac_header_preproc" >&6; }
2206 # So? What about this header?
2207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2210 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2212 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2216 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2218 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2220 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2222 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2225 ( $as_echo "## -------------------------------------------------------------- ##
2226 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2227 ## -------------------------------------------------------------- ##"
2228 ) | sed "s/^/$as_me: WARNING: /" >&2
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if eval \${$3+:} false; then :
2234 $as_echo_n "(cached) " >&6
2236 eval "$3=\$ac_header_compiler"
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 } # ac_fn_c_check_header_mongrel
2246 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2247 # --------------------------------------------
2248 # Tries to find the compile-time value of EXPR in a program that includes
2249 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2251 ac_fn_c_compute_int ()
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 if test "$cross_compiling" = yes; then
2255 # Depending upon the size, compute the lo and hi bounds.
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) >= 0)];
2264 return test_array [0];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2279 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 return test_array [0];
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 ac_hi=$ac_mid; break
2290 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2291 if test $ac_lo -le $ac_mid; then
2295 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2306 static int test_array [1 - 2 * !(($2) < 0)];
2308 return test_array [0];
2314 if ac_fn_c_try_compile "$LINENO"; then :
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2323 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2325 return test_array [0];
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332 ac_lo=$ac_mid; break
2334 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2335 if test $ac_mid -le $ac_hi; then
2339 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 # Binary search between lo and hi bounds.
2350 while test "x$ac_lo" != "x$ac_hi"; do
2351 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2358 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2360 return test_array [0];
2366 if ac_fn_c_try_compile "$LINENO"; then :
2369 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2381 static long int longval () { return $2; }
2382 static unsigned long int ulongval () { return $2; }
2389 FILE *f = fopen ("conftest.val", "w");
2394 long int i = longval ();
2397 fprintf (f, "%ld", i);
2401 unsigned long int i = ulongval ();
2404 fprintf (f, "%lu", i);
2406 /* Do not output a trailing newline, as this causes \r\n confusion
2407 on some platforms. */
2408 return ferror (f) || fclose (f) != 0;
2414 if ac_fn_c_try_run "$LINENO"; then :
2415 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2420 conftest.$ac_objext conftest.beam conftest.$ac_ext
2424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425 as_fn_set_status $ac_retval
2427 } # ac_fn_c_compute_int
2429 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2430 # ---------------------------------------------------------
2431 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2432 # the include files in INCLUDES and setting the cache variable VAR
2434 ac_fn_cxx_check_header_mongrel ()
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 if eval \${$3+:} false; then :
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if eval \${$3+:} false; then :
2441 $as_echo_n "(cached) " >&6
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2447 # Is the header compilable?
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2449 $as_echo_n "checking $2 usability... " >&6; }
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2456 ac_header_compiler=yes
2458 ac_header_compiler=no
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2462 $as_echo "$ac_header_compiler" >&6; }
2464 # Is the header present?
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2466 $as_echo_n "checking $2 presence... " >&6; }
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 if ac_fn_cxx_try_cpp "$LINENO"; then :
2472 ac_header_preproc=yes
2474 ac_header_preproc=no
2476 rm -f conftest.err conftest.i conftest.$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2478 $as_echo "$ac_header_preproc" >&6; }
2480 # So? What about this header?
2481 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2484 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2486 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2490 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2492 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2494 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2496 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2498 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2499 ( $as_echo "## -------------------------------------------------------------- ##
2500 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2501 ## -------------------------------------------------------------- ##"
2502 ) | sed "s/^/$as_me: WARNING: /" >&2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if eval \${$3+:} false; then :
2508 $as_echo_n "(cached) " >&6
2510 eval "$3=\$ac_header_compiler"
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518 } # ac_fn_cxx_check_header_mongrel
2520 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2521 # -------------------------------------------
2522 # Tests whether TYPE exists after having included INCLUDES, setting cache
2523 # variable VAR accordingly.
2524 ac_fn_c_check_type ()
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if eval \${$3+:} false; then :
2530 $as_echo_n "(cached) " >&6
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2545 if ac_fn_c_try_compile "$LINENO"; then :
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2558 if ac_fn_c_try_compile "$LINENO"; then :
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 } # ac_fn_c_check_type
2573 cat >config.log <<_ACEOF
2574 This file contains any messages produced by compilers while
2575 running configure, to aid debugging if configure makes a mistake.
2577 It was created by HarfBuzz $as_me 8.2.2, which was
2578 generated by GNU Autoconf 2.69. Invocation command line was
2590 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2591 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2592 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2593 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2594 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2596 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2597 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2599 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2600 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2601 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2602 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2603 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2604 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2605 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 $as_echo "PATH: $as_dir"
2630 # Keep a trace of the command line.
2631 # Strip out --no-create and --no-recursion so they do not pile up.
2632 # Strip out --silent because we don't want to record it for future runs.
2633 # Also quote any args containing shell meta-characters.
2634 # Make two passes to allow for proper duplicate-argument suppression.
2638 ac_must_keep_next=false
2644 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2646 | -silent | --silent | --silen | --sile | --sil)
2649 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2652 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2654 as_fn_append ac_configure_args1 " '$ac_arg'"
2655 if test $ac_must_keep_next = true; then
2656 ac_must_keep_next=false # Got value, back to normal.
2659 *=* | --config-cache | -C | -disable-* | --disable-* \
2660 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2661 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2662 | -with-* | --with-* | -without-* | --without-* | --x)
2663 case "$ac_configure_args0 " in
2664 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2667 -* ) ac_must_keep_next=true ;;
2670 as_fn_append ac_configure_args " '$ac_arg'"
2675 { ac_configure_args0=; unset ac_configure_args0;}
2676 { ac_configure_args1=; unset ac_configure_args1;}
2678 # When interrupted or exit'd, cleanup temporary files, and complete
2679 # config.log. We remove comments because anyway the quotes in there
2680 # would cause problems or look ugly.
2681 # WARNING: Use '\'' to represent an apostrophe within the trap.
2682 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2683 trap 'exit_status=$?
2684 # Save into config.log some information that might help in debugging.
2688 $as_echo "## ---------------- ##
2689 ## Cache variables. ##
2690 ## ---------------- ##"
2692 # The following way of writing the cache mishandles newlines in values,
2694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2695 eval ac_val=\$$ac_var
2699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2703 _ | IFS | as_nl) ;; #(
2704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2705 *) { eval $ac_var=; unset $ac_var;} ;;
2710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2711 *${as_nl}ac_space=\ *)
2713 "s/'\''/'\''\\\\'\'''\''/g;
2714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2724 $as_echo "## ----------------- ##
2725 ## Output variables. ##
2726 ## ----------------- ##"
2728 for ac_var in $ac_subst_vars
2730 eval ac_val=\$$ac_var
2732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2734 $as_echo "$ac_var='\''$ac_val'\''"
2738 if test -n "$ac_subst_files"; then
2739 $as_echo "## ------------------- ##
2740 ## File substitutions. ##
2741 ## ------------------- ##"
2743 for ac_var in $ac_subst_files
2745 eval ac_val=\$$ac_var
2747 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2749 $as_echo "$ac_var='\''$ac_val'\''"
2754 if test -s confdefs.h; then
2755 $as_echo "## ----------- ##
2762 test "$ac_signal" != 0 &&
2763 $as_echo "$as_me: caught signal $ac_signal"
2764 $as_echo "$as_me: exit $exit_status"
2766 rm -f core *.core core.conftest.* &&
2767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2770 for ac_signal in 1 2 13 15; do
2771 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2776 rm -f -r conftest* confdefs.h
2778 $as_echo "/* confdefs.h */" > confdefs.h
2780 # Predefined preprocessor variables.
2782 cat >>confdefs.h <<_ACEOF
2783 #define PACKAGE_NAME "$PACKAGE_NAME"
2786 cat >>confdefs.h <<_ACEOF
2787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2790 cat >>confdefs.h <<_ACEOF
2791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2794 cat >>confdefs.h <<_ACEOF
2795 #define PACKAGE_STRING "$PACKAGE_STRING"
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_URL "$PACKAGE_URL"
2807 # Let the site file select an alternate cache file if it wants to.
2808 # Prefer an explicitly selected file to automatically selected ones.
2811 if test -n "$CONFIG_SITE"; then
2812 # We do not want a PATH search for config.site.
2813 case $CONFIG_SITE in #((
2814 -*) ac_site_file1=./$CONFIG_SITE;;
2815 */*) ac_site_file1=$CONFIG_SITE;;
2816 *) ac_site_file1=./$CONFIG_SITE;;
2818 elif test "x$prefix" != xNONE; then
2819 ac_site_file1=$prefix/share/config.site
2820 ac_site_file2=$prefix/etc/config.site
2822 ac_site_file1=$ac_default_prefix/share/config.site
2823 ac_site_file2=$ac_default_prefix/etc/config.site
2825 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2827 test "x$ac_site_file" = xNONE && continue
2828 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2830 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2831 sed 's/^/| /' "$ac_site_file" >&5
2833 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 as_fn_error $? "failed to load site script $ac_site_file
2836 See \`config.log' for more details" "$LINENO" 5; }
2840 if test -r "$cache_file"; then
2841 # Some versions of bash will fail to source /dev/null (special files
2842 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2843 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2845 $as_echo "$as_me: loading cache $cache_file" >&6;}
2847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2848 *) . "./$cache_file";;
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2853 $as_echo "$as_me: creating cache $cache_file" >&6;}
2857 # Check that the precious variables saved in the cache have kept the same
2859 ac_cache_corrupted=false
2860 for ac_var in $ac_precious_vars; do
2861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2862 eval ac_new_set=\$ac_env_${ac_var}_set
2863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2864 eval ac_new_val=\$ac_env_${ac_var}_value
2865 case $ac_old_set,$ac_new_set in
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2868 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2869 ac_cache_corrupted=: ;;
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2872 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2873 ac_cache_corrupted=: ;;
2876 if test "x$ac_old_val" != "x$ac_new_val"; then
2877 # differences in whitespace do not lead to failure.
2878 ac_old_val_w=`echo x $ac_old_val`
2879 ac_new_val_w=`echo x $ac_new_val`
2880 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2882 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2883 ac_cache_corrupted=:
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2886 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2887 eval $ac_var=\$ac_old_val
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2890 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2892 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2895 # Pass precious variables to config.status.
2896 if test "$ac_new_set" = set; then
2898 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2899 *) ac_arg=$ac_var=$ac_new_val ;;
2901 case " $ac_configure_args " in
2902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2903 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2907 if $ac_cache_corrupted; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2911 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2912 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2914 ## -------------------- ##
2915 ## Main body of script. ##
2916 ## -------------------- ##
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 ac_config_headers="$ac_config_headers config.h"
2931 am__api_version='1.16'
2934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2935 if test -f "$ac_dir/install-sh"; then
2937 ac_install_sh="$ac_aux_dir/install-sh -c"
2939 elif test -f "$ac_dir/install.sh"; then
2941 ac_install_sh="$ac_aux_dir/install.sh -c"
2943 elif test -f "$ac_dir/shtool"; then
2945 ac_install_sh="$ac_aux_dir/shtool install -c"
2949 if test -z "$ac_aux_dir"; then
2950 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2953 # These three variables are undocumented and unsupported,
2954 # and are intended to be withdrawn in a future Autoconf release.
2955 # They can cause serious problems if a builder's source tree is in a directory
2956 # whose full name contains unusual characters.
2957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2962 # Find a good install program. We prefer a C program (faster),
2963 # so one script is as good as another. But avoid the broken or
2964 # incompatible versions:
2965 # SysV /etc/install, /usr/sbin/install
2966 # SunOS /usr/etc/install
2967 # IRIX /sbin/install
2969 # AmigaOS /C/install, which installs bootblocks on floppy discs
2970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2973 # OS/2's system install, which has a completely different semantic
2974 # ./install, which can be erroneously created by make from ./install.sh.
2975 # Reject install programs that cannot install multiple files.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2977 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2978 if test -z "$INSTALL"; then
2979 if ${ac_cv_path_install+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 # Account for people who put trailing slashes in PATH elements.
2988 case $as_dir/ in #((
2989 ./ | .// | /[cC]/* | \
2990 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2991 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2994 # OSF1 and SCO ODT 3.0 have their own names for install.
2995 # Don't use installbsd from OSF since it installs stuff as root
2997 for ac_prog in ginstall scoinst install; do
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3000 if test $ac_prog = install &&
3001 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3002 # AIX install. It has an incompatible calling convention.
3004 elif test $ac_prog = install &&
3005 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3006 # program-specific install script used by HP pwplus--don't use.
3009 rm -rf conftest.one conftest.two conftest.dir
3010 echo one > conftest.one
3011 echo two > conftest.two
3013 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3014 test -s conftest.one && test -s conftest.two &&
3015 test -s conftest.dir/conftest.one &&
3016 test -s conftest.dir/conftest.two
3018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3031 rm -rf conftest.one conftest.two conftest.dir
3034 if test "${ac_cv_path_install+set}" = set; then
3035 INSTALL=$ac_cv_path_install
3037 # As a last resort, use the slow shell script. Don't cache a
3038 # value for INSTALL within a source directory, because that will
3039 # break other packages using the cache if that directory is
3040 # removed, or if the value is a relative name.
3041 INSTALL=$ac_install_sh
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3045 $as_echo "$INSTALL" >&6; }
3047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048 # It thinks the first close brace ends the variable substitution.
3049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3056 $as_echo_n "checking whether build environment is sane... " >&6; }
3057 # Reject unsafe characters in $srcdir or the absolute working directory
3058 # name. Accept space and tab only in the latter.
3062 *[\\\"\#\$\&\'\`$am_lf]*)
3063 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3066 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3067 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3070 # Do 'set' in a subshell so we don't clobber the current shell's
3071 # arguments. Must try -L first in case configure is actually a
3072 # symlink; some systems play weird games with the mod time of symlinks
3073 # (eg FreeBSD returns the mod time of the symlink's containing
3077 for am_try in 1 2; do
3078 echo "timestamp, slept: $am_has_slept" > conftest.file
3079 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3080 if test "$*" = "X"; then
3082 set X `ls -t "$srcdir/configure" conftest.file`
3084 if test "$*" != "X $srcdir/configure conftest.file" \
3085 && test "$*" != "X conftest.file $srcdir/configure"; then
3087 # If neither matched, then we have a broken ls. This can happen
3088 # if, for instance, CONFIG_SHELL is bash and it inherits a
3089 # broken ls alias from the environment. This has actually
3090 # happened. Such a system could not be considered "sane".
3091 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3092 alias in your environment" "$LINENO" 5
3094 if test "$2" = conftest.file || test $am_try -eq 2; then
3101 test "$2" = conftest.file
3107 as_fn_error $? "newly created file is older than distributed files!
3108 Check your system clock" "$LINENO" 5
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111 $as_echo "yes" >&6; }
3112 # If we didn't sleep, we still need to ensure time stamps of config.status and
3113 # generated files are strictly newer.
3115 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3122 test "$program_prefix" != NONE &&
3123 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3124 # Use a double $ so make ignores it.
3125 test "$program_suffix" != NONE &&
3126 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3127 # Double any \ or $.
3128 # By default was `s,x,x', remove it if useless.
3129 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3130 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3132 # Expand $ac_aux_dir to an absolute path.
3133 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3135 if test x"${MISSING+set}" != xset; then
3138 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3140 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3143 # Use eval to expand $SHELL
3144 if eval "$MISSING --is-lightweight"; then
3145 am_missing_run="$MISSING "
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3149 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3152 if test x"${install_sh+set}" != xset; then
3155 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3157 install_sh="\${SHELL} $am_aux_dir/install-sh"
3161 # Installed binaries are usually stripped using 'strip' when the user
3162 # run "make install-strip". However 'strip' might not be the right
3163 # tool to use in cross-compilation environments, therefore Automake
3164 # will honor the 'STRIP' environment variable to overrule this program.
3165 if test "$cross_compiling" != no; then
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}strip; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_STRIP+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$STRIP"; then
3175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 STRIP=$ac_cv_prog_STRIP
3195 if test -n "$STRIP"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3197 $as_echo "$STRIP" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3205 if test -z "$ac_cv_prog_STRIP"; then
3207 # Extract the first word of "strip", so it can be a program name with args.
3208 set dummy strip; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$ac_ct_STRIP"; then
3215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_ac_ct_STRIP="strip"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3235 if test -n "$ac_ct_STRIP"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3237 $as_echo "$ac_ct_STRIP" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3243 if test "x$ac_ct_STRIP" = x; then
3246 case $cross_compiling:$ac_tool_warned in
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3255 STRIP="$ac_cv_prog_STRIP"
3259 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3262 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3263 if test -z "$MKDIR_P"; then
3264 if ${ac_cv_path_mkdir+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3271 test -z "$as_dir" && as_dir=.
3272 for ac_prog in mkdir gmkdir; do
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3275 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3276 'mkdir (GNU coreutils) '* | \
3277 'mkdir (coreutils) '* | \
3278 'mkdir (fileutils) '4.1*)
3279 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3289 test -d ./--version && rmdir ./--version
3290 if test "${ac_cv_path_mkdir+set}" = set; then
3291 MKDIR_P="$ac_cv_path_mkdir -p"
3293 # As a last resort, use the slow shell script. Don't cache a
3294 # value for MKDIR_P within a source directory, because that will
3295 # break other packages using the cache if that directory is
3296 # removed, or if the value is a relative name.
3297 MKDIR_P="$ac_install_sh -d"
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3301 $as_echo "$MKDIR_P" >&6; }
3303 for ac_prog in gawk mawk nawk awk
3305 # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy $ac_prog; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_AWK+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 if test -n "$AWK"; then
3313 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_AWK="$ac_prog"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 if test -n "$AWK"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3335 $as_echo "$AWK" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3342 test -n "$AWK" && break
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3346 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3348 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3349 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3350 $as_echo_n "(cached) " >&6
3352 cat >conftest.make <<\_ACEOF
3355 @echo '@@@%%%=$(MAKE)=@@@%%%'
3357 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3358 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3360 eval ac_cv_prog_make_${ac_make}_set=yes;;
3362 eval ac_cv_prog_make_${ac_make}_set=no;;
3366 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 SET_MAKE="MAKE=${MAKE-make}"
3376 rm -rf .tst 2>/dev/null
3377 mkdir .tst 2>/dev/null
3378 if test -d .tst; then
3383 rmdir .tst 2>/dev/null
3385 # Check whether --enable-silent-rules was given.
3386 if test "${enable_silent_rules+set}" = set; then :
3387 enableval=$enable_silent_rules;
3390 case $enable_silent_rules in # (((
3391 yes) AM_DEFAULT_VERBOSITY=0;;
3392 no) AM_DEFAULT_VERBOSITY=1;;
3393 *) AM_DEFAULT_VERBOSITY=1;;
3395 am_make=${MAKE-make}
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3397 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3398 if ${am_cv_make_support_nested_variables+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 if $as_echo 'TRUE=$(BAR$(V))
3407 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3408 am_cv_make_support_nested_variables=yes
3410 am_cv_make_support_nested_variables=no
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3414 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3415 if test $am_cv_make_support_nested_variables = yes; then
3417 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3419 AM_V=$AM_DEFAULT_VERBOSITY
3420 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3424 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3425 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3426 # is not polluted with repeated "-I."
3427 am__isrc=' -I$(srcdir)'
3428 # test to see if srcdir already configured
3429 if test -f $srcdir/config.status; then
3430 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3434 # test whether we have cygpath
3435 if test -z "$CYGPATH_W"; then
3436 if (cygpath --version) >/dev/null 2>/dev/null; then
3437 CYGPATH_W='cygpath -w'
3444 # Define the identity of the package.
3449 # Some tools Automake needs.
3451 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3454 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3457 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3460 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3463 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3465 # For better backward compatibility. To be removed once Automake 1.9.x
3466 # dies out for good. For more background, see:
3467 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3468 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3469 mkdir_p='$(MKDIR_P)'
3471 # We need awk for the "check" target (and possibly the TAP driver). The
3472 # system "awk" is bad on some platforms.
3473 # Always define AMTAR for backward compatibility. Yes, it's still used
3474 # in the wild :-( We should find a proper way to deprecate it ...
3478 # We'll loop over all known methods to create a tar archive until one works.
3479 _am_tools='gnutar plaintar pax cpio none'
3481 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3482 # There is notably a 21 bits limit for the UID and the GID. In fact,
3483 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3485 am_max_uid=2097151 # 2^21 - 1
3486 am_max_gid=$am_max_uid
3487 # The $UID and $GID variables are not portable, so we need to resort
3488 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3489 # below are definitely unexpected, so allow the users to see them
3490 # (that is, avoid stderr redirection).
3491 am_uid=`id -u || echo unknown`
3492 am_gid=`id -g || echo unknown`
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3494 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3495 if test $am_uid -le $am_max_uid; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3504 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3505 if test $am_gid -le $am_max_gid; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3515 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3517 # Go ahead even if we have the value already cached. We do so because we
3518 # need to set the values for the 'am__tar' and 'am__untar' variables.
3519 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3521 for _am_tool in $_am_tools; do
3524 for _am_tar in tar gnutar gtar; do
3525 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3526 ($_am_tar --version) >&5 2>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && break
3531 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3532 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3533 am__untar="$_am_tar -xf -"
3536 # Must skip GNU tar: if it does not support --format= it doesn't create
3537 # ustar tarball either.
3538 (tar --version) >/dev/null 2>&1 && continue
3539 am__tar='tar chf - "$$tardir"'
3540 am__tar_='tar chf - "$tardir"'
3541 am__untar='tar xf -'
3544 am__tar='pax -L -x ustar -w "$$tardir"'
3545 am__tar_='pax -L -x ustar -w "$tardir"'
3549 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3550 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3551 am__untar='cpio -i -H ustar -d'
3560 # If the value was cached, stop now. We just wanted to have am__tar
3561 # and am__untar set.
3562 test -n "${am_cv_prog_tar_ustar}" && break
3564 # tar/untar a dummy directory, and stop if the command works.
3567 echo GrepMe > conftest.dir/file
3568 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3569 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }
3574 if test -s conftest.tar; then
3575 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3576 ($am__untar <conftest.tar) >&5 2>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }
3580 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3581 (cat conftest.dir/file) >&5 2>&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }
3585 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3590 if ${am_cv_prog_tar_ustar+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 am_cv_prog_tar_ustar=$_am_tool
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3597 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3604 # POSIX will say in a future version that running "rm -f" with no argument
3605 # is OK; and we want to be able to make that assumption in our Makefile
3606 # recipes. So use an aggressive probe to check that the usage we want is
3607 # actually supported "in the wild" to an acceptable degree.
3608 # See automake bug#10828.
3609 # To make any issue more visible, cause the running configure to be aborted
3610 # by default if the 'rm' program in use doesn't match our expectations; the
3611 # user can still override this though.
3612 if rm -f && rm -fr && rm -rf; then : OK; else
3616 Your 'rm' program seems unable to run without file operands specified
3617 on the command line, even when the '-f' option is present. This is contrary
3618 to the behaviour of most rm programs out there, and not conforming with
3619 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3621 Please tell bug-automake@gnu.org about your system, including the value
3622 of your $PATH and any error possibly output before this message. This
3623 can help us improve future automake versions.
3626 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3627 echo 'Configuration will proceed anyway, since you have set the' >&2
3628 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3632 Aborting the configuration process, to ensure you take notice of the issue.
3634 You can download and install GNU coreutils to get an 'rm' implementation
3635 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3637 If you want to complete the configuration process using your problematic
3638 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3639 to "yes", and re-run configure.
3642 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3646 # Check whether --enable-silent-rules was given.
3647 if test "${enable_silent_rules+set}" = set; then :
3648 enableval=$enable_silent_rules;
3651 case $enable_silent_rules in # (((
3652 yes) AM_DEFAULT_VERBOSITY=0;;
3653 no) AM_DEFAULT_VERBOSITY=1;;
3654 *) AM_DEFAULT_VERBOSITY=0;;
3656 am_make=${MAKE-make}
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3658 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3659 if ${am_cv_make_support_nested_variables+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 if $as_echo 'TRUE=$(BAR$(V))
3668 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3669 am_cv_make_support_nested_variables=yes
3671 am_cv_make_support_nested_variables=no
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3675 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3676 if test $am_cv_make_support_nested_variables = yes; then
3678 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3680 AM_V=$AM_DEFAULT_VERBOSITY
3681 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3686 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3687 if ${ac_cv_path_SED+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3691 for ac_i in 1 2 3 4 5 6 7; do
3692 ac_script="$ac_script$as_nl$ac_script"
3694 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3695 { ac_script=; unset ac_script;}
3696 if test -z "$SED"; then
3697 ac_path_SED_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in sed gsed; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3707 as_fn_executable_p "$ac_path_SED" || continue
3708 # Check for GNU ac_path_SED and select it if it is found.
3709 # Check for GNU $ac_path_SED
3710 case `"$ac_path_SED" --version 2>&1` in
3712 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3715 $as_echo_n 0123456789 >"conftest.in"
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 $as_echo '' >> "conftest.nl"
3722 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 as_fn_arith $ac_count + 1 && ac_count=$as_val
3725 if test $ac_count -gt ${ac_path_SED_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_SED="$ac_path_SED"
3728 ac_path_SED_max=$ac_count
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736 $ac_path_SED_found && break 3
3741 if test -z "$ac_cv_path_SED"; then
3742 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3750 $as_echo "$ac_cv_path_SED" >&6; }
3751 SED="$ac_cv_path_SED"
3757 # allow to override gcov location
3759 # Check whether --with-gcov was given.
3760 if test "${with_gcov+set}" = set; then :
3761 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3763 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3768 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3769 # Check whether --enable-code-coverage was given.
3770 if test "${enable_code_coverage+set}" = set; then :
3771 enableval=$enable_code_coverage;
3773 enable_code_coverage=no
3777 if test x$enable_code_coverage = xyes; then
3778 CODE_COVERAGE_ENABLED_TRUE=
3779 CODE_COVERAGE_ENABLED_FALSE='#'
3781 CODE_COVERAGE_ENABLED_TRUE='#'
3782 CODE_COVERAGE_ENABLED_FALSE=
3785 CODE_COVERAGE_ENABLED=$enable_code_coverage
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3788 $as_echo "$enable_code_coverage" >&6; }
3790 if test "$enable_code_coverage" = "yes" ; then :
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_GCOV+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$GCOV"; then
3802 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 GCOV=$ac_cv_prog_GCOV
3822 if test -n "$GCOV"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3824 $as_echo "$GCOV" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3832 if test -z "$ac_cv_prog_GCOV"; then
3834 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3835 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -n "$ac_ct_GCOV"; then
3842 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3862 if test -n "$ac_ct_GCOV"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3864 $as_echo "$ac_ct_GCOV" >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3870 if test "x$ac_ct_GCOV" = x; then
3873 case $cross_compiling:$ac_tool_warned in
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3877 ac_tool_warned=yes ;;
3882 GCOV="$ac_cv_prog_GCOV"
3885 if test "X$GCOV" = "X:"; then :
3886 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3890 if test "$GCC" = "no" ; then :
3892 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3896 # Extract the first word of "lcov", so it can be a program name with args.
3897 set dummy lcov; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if ${ac_cv_prog_LCOV+:} false; then :
3901 $as_echo_n "(cached) " >&6
3903 if test -n "$LCOV"; then
3904 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_LCOV="lcov"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 LCOV=$ac_cv_prog_LCOV
3924 if test -n "$LCOV"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3926 $as_echo "$LCOV" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3933 # Extract the first word of "genhtml", so it can be a program name with args.
3934 set dummy genhtml; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_GENHTML+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -n "$GENHTML"; then
3941 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_GENHTML="genhtml"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 GENHTML=$ac_cv_prog_GENHTML
3961 if test -n "$GENHTML"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3963 $as_echo "$GENHTML" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 if test -z "$LCOV" ; then :
3973 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3977 if test -z "$GENHTML" ; then :
3979 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3983 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3984 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3985 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3986 CODE_COVERAGE_LIBS="-lgcov"
3987 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3995 CODE_COVERAGE_RULES_CHECK='
3996 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3997 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3999 CODE_COVERAGE_RULES_CAPTURE='
4000 $(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)
4001 $(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)
4002 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4003 $(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)
4004 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4006 CODE_COVERAGE_RULES_CLEAN='
4007 clean: code-coverage-clean
4008 distclean: code-coverage-clean
4009 code-coverage-clean:
4010 -$(LCOV) --directory $(top_builddir) -z
4011 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4012 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4017 CODE_COVERAGE_RULES_CHECK='
4018 @echo "Need to reconfigure with --enable-code-coverage"
4020 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4021 CODE_COVERAGE_RULES_CLEAN=''
4025 CODE_COVERAGE_RULES='
4029 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4030 # Multiple directories may be specified, separated by whitespace.
4031 # (Default: $(top_builddir))
4032 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4033 # by lcov for code coverage. (Default:
4034 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4035 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4036 # reports to be created. (Default:
4037 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4038 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4039 # set to 0 to disable it and leave empty to stay with the default.
4041 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4042 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4043 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4044 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4045 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4046 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4047 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4048 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4049 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4050 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4051 # lcov instance. (Default: empty)
4052 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4053 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4054 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4055 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4056 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4057 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4058 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4060 # The generated report will be titled using the $(PACKAGE_NAME) and
4061 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4062 # use the git-version-gen script, available online.
4064 # Optional variables
4065 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4066 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4067 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4068 CODE_COVERAGE_BRANCH_COVERAGE ?=
4069 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4070 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4071 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4072 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4073 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4074 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4075 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4076 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4077 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4078 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4079 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4080 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4081 CODE_COVERAGE_IGNORE_PATTERN ?=
4084 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4086 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4087 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4088 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4089 $(CODE_COVERAGE_OUTPUT_FILE);
4090 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4091 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4092 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4093 $(CODE_COVERAGE_IGNORE_PATTERN);
4094 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4095 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4096 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4097 code_coverage_quiet = $(code_coverage_quiet_$(V))
4098 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4099 code_coverage_quiet_0 = --quiet
4101 # sanitizes the test-name: replaces with underscores: dashes and dots
4102 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4104 # Use recursive makes in order to ignore errors during check
4105 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4107 # Capture code coverage data
4108 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4110 # Hook rule executed before code-coverage-capture, overridable by the user
4111 code-coverage-capture-hook:
4113 '"$CODE_COVERAGE_RULES_CLEAN"'
4115 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4116 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4118 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4125 # Initialize libtool
4126 DEPDIR="${am__leading_dot}deps"
4128 ac_config_commands="$ac_config_commands depfiles"
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4131 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4132 cat > confinc.mk << 'END'
4134 @echo this is the am__doit target >confinc.out
4139 # BSD make does it like this.
4140 echo '.include "confinc.mk" # ignored' > confmf.BSD
4141 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4142 echo 'include confinc.mk # ignored' > confmf.GNU
4144 for s in GNU BSD; do
4145 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4146 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }
4150 case $?:`cat confinc.out 2>/dev/null` in #(
4151 '0:this is the am__doit target') :
4154 am__include='.include' am__quote='"' ;; #(
4156 am__include='include' am__quote='' ;;
4161 if test "$am__include" != "#"; then
4162 _am_result="yes ($s style)"
4166 rm -f confinc.* confmf.*
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4168 $as_echo "${_am_result}" >&6; }
4170 # Check whether --enable-dependency-tracking was given.
4171 if test "${enable_dependency_tracking+set}" = set; then :
4172 enableval=$enable_dependency_tracking;
4175 if test "x$enable_dependency_tracking" != xno; then
4176 am_depcomp="$ac_aux_dir/depcomp"
4180 if test "x$enable_dependency_tracking" != xno; then
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 if test -n "$ac_tool_prefix"; then
4195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_CC+:} false; then :
4200 $as_echo_n "(cached) " >&6
4202 if test -n "$CC"; then
4203 ac_cv_prog_CC="$CC" # Let the user override the test.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 if test -n "$CC"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4225 $as_echo "$CC" >&6; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4233 if test -z "$ac_cv_prog_CC"; then
4235 # Extract the first word of "gcc", so it can be a program name with args.
4236 set dummy gcc; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4240 $as_echo_n "(cached) " >&6
4242 if test -n "$ac_ct_CC"; then
4243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_ac_ct_CC="gcc"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4263 if test -n "$ac_ct_CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4265 $as_echo "$ac_ct_CC" >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4271 if test "x$ac_ct_CC" = x; then
4274 case $cross_compiling:$ac_tool_warned in
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4278 ac_tool_warned=yes ;;
4286 if test -z "$CC"; then
4287 if test -n "$ac_tool_prefix"; then
4288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}cc; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC="$CC" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_CC="${ac_tool_prefix}cc"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4327 if test -z "$CC"; then
4328 # Extract the first word of "cc", so it can be a program name with args.
4329 set dummy cc; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_CC+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$CC"; then
4336 ac_cv_prog_CC="$CC" # Let the user override the test.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4347 ac_prog_rejected=yes
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 if test $ac_prog_rejected = yes; then
4359 # We found a bogon in the path, so make sure we never use it.
4360 set dummy $ac_cv_prog_CC
4362 if test $# != 0; then
4363 # We chose a different compiler from the bogus one.
4364 # However, it has the same basename, so the bogon will be chosen
4365 # first if we set CC to just the basename; use the full file name.
4367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4373 if test -n "$CC"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4375 $as_echo "$CC" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4383 if test -z "$CC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog in cl.exe
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_CC+:} false; then :
4392 $as_echo_n "(cached) " >&6
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 if test -n "$CC"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4417 $as_echo "$CC" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4424 test -n "$CC" && break
4427 if test -z "$CC"; then
4429 for ac_prog in cl.exe
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4436 $as_echo_n "(cached) " >&6
4438 if test -n "$ac_ct_CC"; then
4439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_ac_ct_CC="$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4459 if test -n "$ac_ct_CC"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4461 $as_echo "$ac_ct_CC" >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4468 test -n "$ac_ct_CC" && break
4471 if test "x$ac_ct_CC" = x; then
4474 case $cross_compiling:$ac_tool_warned in
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $? "no acceptable C compiler found in \$PATH
4490 See \`config.log' for more details" "$LINENO" 5; }
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4496 for ac_option in --version -v -V -qversion; do
4497 { { ac_try="$ac_compiler $ac_option >&5"
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 if test -s conftest.err; then
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4528 ac_clean_files_save=$ac_clean_files
4529 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4530 # Try to create an executable without -o first, disregard a.out.
4531 # It will help us diagnose broken compilers, and finding out an intuition
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4534 $as_echo_n "checking whether the C compiler works... " >&6; }
4535 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4537 # The possible output files:
4538 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4541 for ac_file in $ac_files
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4545 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4550 if { { ac_try="$ac_link_default"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_link_default") 2>&5
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; then :
4561 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4562 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4563 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4564 # so that the user can short-circuit this test for compilers unknown to
4566 for ac_file in $ac_files ''
4568 test -f "$ac_file" || continue
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4573 # We found the default executable, but exeext='' is most
4577 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4579 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4581 # We set ac_cv_exeext here because the later test for it is not
4582 # safe: cross compilers may not add the suffix if given an `-o'
4583 # argument, so we may need to know it at that point already.
4584 # Even if this section looks crufty: it has the advantage of
4591 test "$ac_cv_exeext" = no && ac_cv_exeext=
4596 if test -z "$ac_file"; then :
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error 77 "C compiler cannot create executables
4605 See \`config.log' for more details" "$LINENO" 5; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4608 $as_echo "yes" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4611 $as_echo_n "checking for C compiler default output file name... " >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4613 $as_echo "$ac_file" >&6; }
4614 ac_exeext=$ac_cv_exeext
4616 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4617 ac_clean_files=$ac_clean_files_save
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4619 $as_echo_n "checking for suffix of executables... " >&6; }
4620 if { { ac_try="$ac_link"
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then :
4631 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4632 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4633 # work properly (i.e., refer to `conftest.exe'), while it won't with
4635 for ac_file in conftest.exe conftest conftest.*; do
4636 test -f "$ac_file" || continue
4638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4648 See \`config.log' for more details" "$LINENO" 5; }
4650 rm -f conftest conftest$ac_cv_exeext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4652 $as_echo "$ac_cv_exeext" >&6; }
4654 rm -f conftest.$ac_ext
4655 EXEEXT=$ac_cv_exeext
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4663 FILE *f = fopen ("conftest.out", "w");
4664 return ferror (f) || fclose (f) != 0;
4670 ac_clean_files="$ac_clean_files conftest.out"
4671 # Check that the compiler produces executables we can run. If not, either
4672 # the compiler is broken, or we cross compile.
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4674 $as_echo_n "checking whether we are cross compiling... " >&6; }
4675 if test "$cross_compiling" != yes; then
4676 { { ac_try="$ac_link"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_link") 2>&5
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }
4687 if { ac_try='./conftest$ac_cv_exeext'
4688 { { case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4693 $as_echo "$ac_try_echo"; } >&5
4694 (eval "$ac_try") 2>&5
4696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4697 test $ac_status = 0; }; }; then
4700 if test "$cross_compiling" = maybe; then
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "cannot run C compiled programs.
4706 If you meant to cross compile, use \`--host'.
4707 See \`config.log' for more details" "$LINENO" 5; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4712 $as_echo "$cross_compiling" >&6; }
4714 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4715 ac_clean_files=$ac_clean_files_save
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4717 $as_echo_n "checking for suffix of object files... " >&6; }
4718 if ${ac_cv_objext+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4732 rm -f conftest.o conftest.obj
4733 if { { ac_try="$ac_compile"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739 $as_echo "$ac_try_echo"; } >&5
4740 (eval "$ac_compile") 2>&5
4742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743 test $ac_status = 0; }; then :
4744 for ac_file in conftest.o conftest.obj conftest.*; do
4745 test -f "$ac_file" || continue;
4747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4748 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "cannot compute suffix of object files: cannot compile
4759 See \`config.log' for more details" "$LINENO" 5; }
4761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4764 $as_echo "$ac_cv_objext" >&6; }
4765 OBJEXT=$ac_cv_objext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4768 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4769 if ${ac_cv_c_compiler_gnu+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4786 if ac_fn_c_try_compile "$LINENO"; then :
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4796 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4797 if test $ac_compiler_gnu = yes; then
4802 ac_test_CFLAGS=${CFLAGS+set}
4803 ac_save_CFLAGS=$CFLAGS
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4805 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4806 if ${ac_cv_prog_cc_g+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 ac_save_c_werror_flag=$ac_c_werror_flag
4810 ac_c_werror_flag=yes
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4824 if ac_fn_c_try_compile "$LINENO"; then :
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4839 if ac_fn_c_try_compile "$LINENO"; then :
4842 ac_c_werror_flag=$ac_save_c_werror_flag
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4855 if ac_fn_c_try_compile "$LINENO"; then :
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 ac_c_werror_flag=$ac_save_c_werror_flag
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4866 $as_echo "$ac_cv_prog_cc_g" >&6; }
4867 if test "$ac_test_CFLAGS" = set; then
4868 CFLAGS=$ac_save_CFLAGS
4869 elif test $ac_cv_prog_cc_g = yes; then
4870 if test "$GCC" = yes; then
4876 if test "$GCC" = yes; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4883 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4884 if ${ac_cv_prog_cc_c89+:} false; then :
4885 $as_echo_n "(cached) " >&6
4887 ac_cv_prog_cc_c89=no
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4895 struct buf { int x; };
4896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4897 static char *e (p, i)
4903 static char *f (char * (*g) (char **, int), char **p, ...)
4908 s = g (p, va_arg (v,int));
4913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4914 function prototypes and stuff, but not '\xHH' hex character constants.
4915 These don't provoke an error unfortunately, instead are silently treated
4916 as 'x'. The following induces an error, until -std is added to get
4917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4918 array size at least. It's necessary to write '\x00'==0 to get something
4919 that's true only with -std. */
4920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4923 inside strings and character constants. */
4925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4927 int test (int i, double x);
4928 struct s1 {int (*f) (int a);};
4929 struct s2 {int (*f) (double a);};
4930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4936 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4941 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4942 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4944 CC="$ac_save_CC $ac_arg"
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_prog_cc_c89=$ac_arg
4948 rm -f core conftest.err conftest.$ac_objext
4949 test "x$ac_cv_prog_cc_c89" != "xno" && break
4951 rm -f conftest.$ac_ext
4956 case "x$ac_cv_prog_cc_c89" in
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4959 $as_echo "none needed" >&6; } ;;
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4962 $as_echo "unsupported" >&6; } ;;
4964 CC="$CC $ac_cv_prog_cc_c89"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4968 if test "x$ac_cv_prog_cc_c89" != xno; then :
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4984 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4985 if ${am_cv_prog_cc_c_o+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4999 # Make sure it works both with $CC and with simple cc.
5000 # Following AC_PROG_CC_C_O, we do the test twice because some
5001 # compilers refuse to overwrite an existing .o file with -o,
5002 # though they will create one.
5003 am_cv_prog_cc_c_o=yes
5005 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5006 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } \
5010 && test -f conftest2.$ac_objext; then
5013 am_cv_prog_cc_c_o=no
5017 rm -f core conftest*
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5021 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5022 if test "$am_cv_prog_cc_c_o" != yes; then
5023 # Losing compiler, so override with the script.
5024 # FIXME: It is wrong to rewrite CC.
5025 # But if we don't then we get into trouble of one sort or another.
5026 # A longer-term fix would be to have automake use am__CC in this case,
5027 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5028 CC="$am_aux_dir/compile $CC"
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 depcc="$CC" am_compiler_list=
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5040 $as_echo_n "checking dependency style of $depcc... " >&6; }
5041 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5042 $as_echo_n "(cached) " >&6
5044 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5045 # We make a subdir and do the tests there. Otherwise we can end up
5046 # making bogus files that we don't know about and never remove. For
5047 # instance it was reported that on HP-UX the gcc test will end up
5048 # making a dummy file named 'D' -- because '-MD' means "put the output
5052 # Copy depcomp to subdir because otherwise we won't find it if we're
5053 # using a relative directory.
5054 cp "$am_depcomp" conftest.dir
5056 # We will build objects and dependencies in a subdirectory because
5057 # it helps to detect inapplicable dependency modes. For instance
5058 # both Tru64's cc and ICC support -MD to output dependencies as a
5059 # side effect of compilation, but ICC will put the dependencies in
5060 # the current directory while Tru64 will put them in the object
5064 am_cv_CC_dependencies_compiler_type=none
5065 if test "$am_compiler_list" = ""; then
5066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5069 case " $depcc " in #(
5070 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5073 for depmode in $am_compiler_list; do
5074 # Setup a source with many dependencies, because some compilers
5075 # like to wrap large dependency lists on column 80 (with \), and
5076 # we should not choose a depcomp mode which is confused by this.
5078 # We need to recreate these files for each test, as the compiler may
5079 # overwrite some of them when testing with obscure command lines.
5080 # This happens at least with the AIX C compiler.
5082 for i in 1 2 3 4 5 6; do
5083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5084 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5085 # Solaris 10 /bin/sh.
5086 echo '/* dummy */' > sub/conftst$i.h
5088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5090 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5091 # mode. It turns out that the SunPro C++ compiler does not properly
5092 # handle '-M -o', and we need to detect this. Also, some Intel
5093 # versions had trouble with output in subdirs.
5094 am__obj=sub/conftest.${OBJEXT-o}
5095 am__minus_obj="-o $am__obj"
5098 # This depmode causes a compiler race in universal mode.
5099 test "$am__universal" = false || continue
5102 # After this tag, mechanisms are not by side-effect, so they'll
5103 # only be used when explicitly requested.
5104 if test "x$enable_dependency_tracking" = xyes; then
5110 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5111 # This compiler won't grok '-c -o', but also, the minuso test has
5112 # not run yet. These depmodes are late enough in the game, and
5113 # so weak that their functioning should not be impacted.
5114 am__obj=conftest.${OBJEXT-o}
5119 if depmode=$depmode \
5120 source=sub/conftest.c object=$am__obj \
5121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5122 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5123 >/dev/null 2>conftest.err &&
5124 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5125 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5126 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5128 # icc doesn't choke on unknown options, it will just issue warnings
5129 # or remarks (even with -Werror). So we grep stderr for any message
5130 # that says an option was ignored or not supported.
5131 # When given -MP, icc 7.0 and 7.1 complain thusly:
5132 # icc: Command line warning: ignoring option '-M'; no argument required
5133 # The diagnosis changed in icc 8.0:
5134 # icc: Command line remark: option '-MP' not supported
5135 if (grep 'ignoring option' conftest.err ||
5136 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5137 am_cv_CC_dependencies_compiler_type=$depmode
5146 am_cv_CC_dependencies_compiler_type=none
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5151 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5152 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5155 test "x$enable_dependency_tracking" != xno \
5156 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5158 am__fastdepCC_FALSE='#'
5160 am__fastdepCC_TRUE='#'
5161 am__fastdepCC_FALSE=
5166 if test -n "$ac_tool_prefix"; then
5167 for ac_prog in ar lib "link -lib"
5169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_AR+:} false; then :
5174 $as_echo_n "(cached) " >&6
5176 if test -n "$AR"; then
5177 ac_cv_prog_AR="$AR" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 if test -n "$AR"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5199 $as_echo "$AR" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 test -n "$AR" && break
5209 if test -z "$AR"; then
5211 for ac_prog in ar lib "link -lib"
5213 # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5218 $as_echo_n "(cached) " >&6
5220 if test -n "$ac_ct_AR"; then
5221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230 ac_cv_prog_ac_ct_AR="$ac_prog"
5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5241 if test -n "$ac_ct_AR"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5243 $as_echo "$ac_ct_AR" >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5250 test -n "$ac_ct_AR" && break
5253 if test "x$ac_ct_AR" = x; then
5256 case $cross_compiling:$ac_tool_warned in
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260 ac_tool_warned=yes ;;
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5269 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5270 if ${am_cv_ar_interface+:} false; then :
5271 $as_echo_n "(cached) " >&6
5274 ac_cpp='$CPP $CPPFLAGS'
5275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279 am_cv_ar_interface=ar
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 int some_variable = 0;
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5287 (eval $am_ar_try) 2>&5
5289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5290 test $ac_status = 0; }
5291 if test "$ac_status" -eq 0; then
5292 am_cv_ar_interface=ar
5294 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5296 (eval $am_ar_try) 2>&5
5298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5299 test $ac_status = 0; }
5300 if test "$ac_status" -eq 0; then
5301 am_cv_ar_interface=lib
5303 am_cv_ar_interface=unknown
5306 rm -f conftest.lib libconftest.a
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5318 $as_echo "$am_cv_ar_interface" >&6; }
5320 case $am_cv_ar_interface in
5324 # Microsoft lib, so override with the ar-lib wrapper script.
5325 # FIXME: It is wrong to rewrite AR.
5326 # But if we don't then we get into trouble of one sort or another.
5327 # A longer-term fix would be to have automake use am__AR in this case,
5328 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5330 AR="$am_aux_dir/ar-lib $AR"
5333 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5341 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5346 macro_version='2.4.6'
5347 macro_revision='2.4.6'
5361 ltmain=$ac_aux_dir/ltmain.sh
5363 # Make sure we can run config.sub.
5364 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5365 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5368 $as_echo_n "checking build system type... " >&6; }
5369 if ${ac_cv_build+:} false; then :
5370 $as_echo_n "(cached) " >&6
5372 ac_build_alias=$build_alias
5373 test "x$ac_build_alias" = x &&
5374 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5375 test "x$ac_build_alias" = x &&
5376 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5382 $as_echo "$ac_cv_build" >&6; }
5383 case $ac_cv_build in
5385 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5388 ac_save_IFS=$IFS; IFS='-'
5394 # Remember, the first character of IFS is used to create $*,
5395 # except with old shells:
5398 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5402 $as_echo_n "checking host system type... " >&6; }
5403 if ${ac_cv_host+:} false; then :
5404 $as_echo_n "(cached) " >&6
5406 if test "x$host_alias" = x; then
5407 ac_cv_host=$ac_cv_build
5409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5415 $as_echo "$ac_cv_host" >&6; }
5418 *) as_fn_error $? "invalid value of canonical host" "$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 $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5434 # Backslashify metacharacters that are still active within
5435 # double-quoted strings.
5436 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5438 # Same as above, but do not quote variable references.
5439 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5441 # Sed substitution to delay expansion of an escaped shell variable in a
5442 # double_quote_subst'ed string.
5443 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5445 # Sed substitution to delay expansion of an escaped single quote.
5446 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5448 # Sed substitution to avoid accidental globbing in evaled expressions
5449 no_glob_subst='s/\*/\\\*/g'
5451 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5452 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5456 $as_echo_n "checking how to print strings... " >&6; }
5457 # Test print first, because it will be a builtin if present.
5458 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5459 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5461 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5464 # Use this function as a fallback that always works.
5465 func_fallback_echo ()
5467 eval 'cat <<_LTECHO_EOF
5471 ECHO='func_fallback_echo'
5474 # func_echo_all arg...
5475 # Invoke $ECHO with all args, space-separated.
5482 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5483 $as_echo "printf" >&6; } ;;
5484 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5485 $as_echo "print -r" >&6; } ;;
5486 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5487 $as_echo "cat" >&6; } ;;
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5504 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5505 if ${ac_cv_path_SED+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5509 for ac_i in 1 2 3 4 5 6 7; do
5510 ac_script="$ac_script$as_nl$ac_script"
5512 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5513 { ac_script=; unset ac_script;}
5514 if test -z "$SED"; then
5515 ac_path_SED_found=false
5516 # Loop through the user's path and test for each of PROGNAME-LIST
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_prog in sed gsed; do
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5525 as_fn_executable_p "$ac_path_SED" || continue
5526 # Check for GNU ac_path_SED and select it if it is found.
5527 # Check for GNU $ac_path_SED
5528 case `"$ac_path_SED" --version 2>&1` in
5530 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5533 $as_echo_n 0123456789 >"conftest.in"
5536 cat "conftest.in" "conftest.in" >"conftest.tmp"
5537 mv "conftest.tmp" "conftest.in"
5538 cp "conftest.in" "conftest.nl"
5539 $as_echo '' >> "conftest.nl"
5540 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5542 as_fn_arith $ac_count + 1 && ac_count=$as_val
5543 if test $ac_count -gt ${ac_path_SED_max-0}; then
5544 # Best one so far, save it but keep looking for a better one
5545 ac_cv_path_SED="$ac_path_SED"
5546 ac_path_SED_max=$ac_count
5548 # 10*(2^10) chars as input seems more than enough
5549 test $ac_count -gt 10 && break
5551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5554 $ac_path_SED_found && break 3
5559 if test -z "$ac_cv_path_SED"; then
5560 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5568 $as_echo "$ac_cv_path_SED" >&6; }
5569 SED="$ac_cv_path_SED"
5572 test -z "$SED" && SED=sed
5573 Xsed="$SED -e 1s/^X//"
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5587 if ${ac_cv_path_GREP+:} false; then :
5588 $as_echo_n "(cached) " >&6
5590 if test -z "$GREP"; then
5591 ac_path_GREP_found=false
5592 # Loop through the user's path and test for each of PROGNAME-LIST
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5597 test -z "$as_dir" && as_dir=.
5598 for ac_prog in grep ggrep; do
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5601 as_fn_executable_p "$ac_path_GREP" || continue
5602 # Check for GNU ac_path_GREP and select it if it is found.
5603 # Check for GNU $ac_path_GREP
5604 case `"$ac_path_GREP" --version 2>&1` in
5606 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5609 $as_echo_n 0123456789 >"conftest.in"
5612 cat "conftest.in" "conftest.in" >"conftest.tmp"
5613 mv "conftest.tmp" "conftest.in"
5614 cp "conftest.in" "conftest.nl"
5615 $as_echo 'GREP' >> "conftest.nl"
5616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5618 as_fn_arith $ac_count + 1 && ac_count=$as_val
5619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5620 # Best one so far, save it but keep looking for a better one
5621 ac_cv_path_GREP="$ac_path_GREP"
5622 ac_path_GREP_max=$ac_count
5624 # 10*(2^10) chars as input seems more than enough
5625 test $ac_count -gt 10 && break
5627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5630 $ac_path_GREP_found && break 3
5635 if test -z "$ac_cv_path_GREP"; then
5636 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5639 ac_cv_path_GREP=$GREP
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5644 $as_echo "$ac_cv_path_GREP" >&6; }
5645 GREP="$ac_cv_path_GREP"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5649 $as_echo_n "checking for egrep... " >&6; }
5650 if ${ac_cv_path_EGREP+:} false; then :
5651 $as_echo_n "(cached) " >&6
5653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5654 then ac_cv_path_EGREP="$GREP -E"
5656 if test -z "$EGREP"; then
5657 ac_path_EGREP_found=false
5658 # Loop through the user's path and test for each of PROGNAME-LIST
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5663 test -z "$as_dir" && as_dir=.
5664 for ac_prog in egrep; do
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5667 as_fn_executable_p "$ac_path_EGREP" || continue
5668 # Check for GNU ac_path_EGREP and select it if it is found.
5669 # Check for GNU $ac_path_EGREP
5670 case `"$ac_path_EGREP" --version 2>&1` in
5672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5675 $as_echo_n 0123456789 >"conftest.in"
5678 cat "conftest.in" "conftest.in" >"conftest.tmp"
5679 mv "conftest.tmp" "conftest.in"
5680 cp "conftest.in" "conftest.nl"
5681 $as_echo 'EGREP' >> "conftest.nl"
5682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5684 as_fn_arith $ac_count + 1 && ac_count=$as_val
5685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5686 # Best one so far, save it but keep looking for a better one
5687 ac_cv_path_EGREP="$ac_path_EGREP"
5688 ac_path_EGREP_max=$ac_count
5690 # 10*(2^10) chars as input seems more than enough
5691 test $ac_count -gt 10 && break
5693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5696 $ac_path_EGREP_found && break 3
5701 if test -z "$ac_cv_path_EGREP"; then
5702 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5705 ac_cv_path_EGREP=$EGREP
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5711 $as_echo "$ac_cv_path_EGREP" >&6; }
5712 EGREP="$ac_cv_path_EGREP"
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5716 $as_echo_n "checking for fgrep... " >&6; }
5717 if ${ac_cv_path_FGREP+:} false; then :
5718 $as_echo_n "(cached) " >&6
5720 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5721 then ac_cv_path_FGREP="$GREP -F"
5723 if test -z "$FGREP"; then
5724 ac_path_FGREP_found=false
5725 # Loop through the user's path and test for each of PROGNAME-LIST
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5730 test -z "$as_dir" && as_dir=.
5731 for ac_prog in fgrep; do
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5734 as_fn_executable_p "$ac_path_FGREP" || continue
5735 # Check for GNU ac_path_FGREP and select it if it is found.
5736 # Check for GNU $ac_path_FGREP
5737 case `"$ac_path_FGREP" --version 2>&1` in
5739 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5742 $as_echo_n 0123456789 >"conftest.in"
5745 cat "conftest.in" "conftest.in" >"conftest.tmp"
5746 mv "conftest.tmp" "conftest.in"
5747 cp "conftest.in" "conftest.nl"
5748 $as_echo 'FGREP' >> "conftest.nl"
5749 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5751 as_fn_arith $ac_count + 1 && ac_count=$as_val
5752 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5753 # Best one so far, save it but keep looking for a better one
5754 ac_cv_path_FGREP="$ac_path_FGREP"
5755 ac_path_FGREP_max=$ac_count
5757 # 10*(2^10) chars as input seems more than enough
5758 test $ac_count -gt 10 && break
5760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5763 $ac_path_FGREP_found && break 3
5768 if test -z "$ac_cv_path_FGREP"; then
5769 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5772 ac_cv_path_FGREP=$FGREP
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5778 $as_echo "$ac_cv_path_FGREP" >&6; }
5779 FGREP="$ac_cv_path_FGREP"
5782 test -z "$GREP" && GREP=grep
5802 # Check whether --with-gnu-ld was given.
5803 if test "${with_gnu_ld+set}" = set; then :
5804 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5810 if test yes = "$GCC"; then
5811 # Check if gcc -print-prog-name=ld gives a path.
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5813 $as_echo_n "checking for ld used by $CC... " >&6; }
5816 # gcc leaves a trailing carriage return, which upsets mingw
5817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5822 # Accept absolute paths.
5824 re_direlt='/[^/][^/]*/\.\./'
5825 # Canonicalize the pathname of ld
5826 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5827 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5828 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5830 test -z "$LD" && LD=$ac_prog
5833 # If it fails, then pretend we aren't using GCC.
5837 # If it is relative, then search for the first ld in PATH.
5841 elif test yes = "$with_gnu_ld"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5843 $as_echo_n "checking for GNU ld... " >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5846 $as_echo_n "checking for non-GNU ld... " >&6; }
5848 if ${lt_cv_path_LD+:} false; then :
5849 $as_echo_n "(cached) " >&6
5851 if test -z "$LD"; then
5852 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5853 for ac_dir in $PATH; do
5855 test -z "$ac_dir" && ac_dir=.
5856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5857 lt_cv_path_LD=$ac_dir/$ac_prog
5858 # Check to see if the program is GNU ld. I'd rather use --version,
5859 # but apparently some variants of GNU ld only accept -v.
5860 # Break only if it was the GNU/non-GNU ld that we prefer.
5861 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5862 *GNU* | *'with BFD'*)
5863 test no != "$with_gnu_ld" && break
5866 test yes != "$with_gnu_ld" && break
5873 lt_cv_path_LD=$LD # Let the user override the test with a path.
5878 if test -n "$LD"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5880 $as_echo "$LD" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5885 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5888 if ${lt_cv_prog_gnu_ld+:} false; then :
5889 $as_echo_n "(cached) " >&6
5891 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5892 case `$LD -v 2>&1 </dev/null` in
5893 *GNU* | *'with BFD'*)
5894 lt_cv_prog_gnu_ld=yes
5897 lt_cv_prog_gnu_ld=no
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5902 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5903 with_gnu_ld=$lt_cv_prog_gnu_ld
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5914 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5915 if ${lt_cv_path_NM+:} false; then :
5916 $as_echo_n "(cached) " >&6
5918 if test -n "$NM"; then
5919 # Let the user override the test.
5922 lt_nm_to_check=${ac_tool_prefix}nm
5923 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5924 lt_nm_to_check="$lt_nm_to_check nm"
5926 for lt_tmp_nm in $lt_nm_to_check; do
5927 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5928 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5930 test -z "$ac_dir" && ac_dir=.
5931 tmp_nm=$ac_dir/$lt_tmp_nm
5932 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5933 # Check to see if the nm accepts a BSD-compat flag.
5934 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5935 # nm: unknown option "B" ignored
5936 # Tru64's nm complains that /dev/null is an invalid object file
5937 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5939 mingw*) lt_bad_file=conftest.nm/nofile ;;
5940 *) lt_bad_file=/dev/null ;;
5942 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5943 *$lt_bad_file* | *'Invalid file or object type'*)
5944 lt_cv_path_NM="$tmp_nm -B"
5948 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5950 lt_cv_path_NM="$tmp_nm -p"
5954 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5955 continue # so that we can try to find one that supports BSD flags
5964 : ${lt_cv_path_NM=no}
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5968 $as_echo "$lt_cv_path_NM" >&6; }
5969 if test no != "$lt_cv_path_NM"; then
5972 # Didn't find any BSD compatible name lister, look for dumpbin.
5973 if test -n "$DUMPBIN"; then :
5974 # Let the user override the test.
5976 if test -n "$ac_tool_prefix"; then
5977 for ac_prog in dumpbin "link -dump"
5979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_prog_DUMPBIN+:} false; then :
5984 $as_echo_n "(cached) " >&6
5986 if test -n "$DUMPBIN"; then
5987 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 DUMPBIN=$ac_cv_prog_DUMPBIN
6007 if test -n "$DUMPBIN"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6009 $as_echo "$DUMPBIN" >&6; }
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6016 test -n "$DUMPBIN" && break
6019 if test -z "$DUMPBIN"; then
6020 ac_ct_DUMPBIN=$DUMPBIN
6021 for ac_prog in dumpbin "link -dump"
6023 # Extract the first word of "$ac_prog", so it can be a program name with args.
6024 set dummy $ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$ac_ct_DUMPBIN"; then
6031 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6051 if test -n "$ac_ct_DUMPBIN"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6053 $as_echo "$ac_ct_DUMPBIN" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6060 test -n "$ac_ct_DUMPBIN" && break
6063 if test "x$ac_ct_DUMPBIN" = x; then
6066 case $cross_compiling:$ac_tool_warned in
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6072 DUMPBIN=$ac_ct_DUMPBIN
6076 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6078 DUMPBIN="$DUMPBIN -symbols -headers"
6086 if test : != "$DUMPBIN"; then
6090 test -z "$NM" && NM=nm
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6098 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6099 if ${lt_cv_nm_interface+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 lt_cv_nm_interface="BSD nm"
6103 echo "int some_variable = 0;" > conftest.$ac_ext
6104 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6105 (eval "$ac_compile" 2>conftest.err)
6106 cat conftest.err >&5
6107 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6108 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6109 cat conftest.err >&5
6110 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6111 cat conftest.out >&5
6112 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6113 lt_cv_nm_interface="MS dumpbin"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6118 $as_echo "$lt_cv_nm_interface" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6121 $as_echo_n "checking whether ln -s works... " >&6; }
6123 if test "$LN_S" = "ln -s"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6125 $as_echo "yes" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6128 $as_echo "no, using $LN_S" >&6; }
6131 # find the maximum length of command line arguments
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6133 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6134 if ${lt_cv_sys_max_cmd_len+:} false; then :
6135 $as_echo_n "(cached) " >&6
6142 # On DJGPP, this test can blow up pretty badly due to problems in libc
6143 # (any single argument exceeding 2000 bytes causes a buffer overrun
6144 # during glob expansion). Even if it were fixed, the result of this
6145 # check would be larger than it should be.
6146 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6150 # Under GNU Hurd, this test is not required because there is
6151 # no limit to the length of command line arguments.
6152 # Libtool will interpret -1 as no limit whatsoever
6153 lt_cv_sys_max_cmd_len=-1;
6156 cygwin* | mingw* | cegcc*)
6157 # On Win9x/ME, this test blows up -- it succeeds, but takes
6158 # about 5 minutes as the teststring grows exponentially.
6159 # Worse, since 9x/ME are not pre-emptively multitasking,
6160 # you end up with a "frozen" computer, even though with patience
6161 # the test eventually succeeds (with a max line length of 256k).
6162 # Instead, let's just punt: use the minimum linelength reported by
6163 # all of the supported platforms: 8192 (on NT/2K/XP).
6164 lt_cv_sys_max_cmd_len=8192;
6168 # On MiNT this can take a long time and run out of memory.
6169 lt_cv_sys_max_cmd_len=8192;
6173 # On AmigaOS with pdksh, this test takes hours, literally.
6174 # So we just punt and use a minimum line length of 8192.
6175 lt_cv_sys_max_cmd_len=8192;
6178 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6179 # This has been around since 386BSD, at least. Likely further.
6180 if test -x /sbin/sysctl; then
6181 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6182 elif test -x /usr/sbin/sysctl; then
6183 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6185 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6187 # And add a safety zone
6188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6193 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6194 lt_cv_sys_max_cmd_len=196608
6198 # The test takes a long time on OS/2.
6199 lt_cv_sys_max_cmd_len=8192
6203 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6204 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6205 # nice to cause kernel panics so lets avoid the loop below.
6206 # First set a reasonable default.
6207 lt_cv_sys_max_cmd_len=16384
6209 if test -x /sbin/sysconfig; then
6210 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6211 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6216 lt_cv_sys_max_cmd_len=102400
6218 sysv5* | sco5v6* | sysv4.2uw2*)
6219 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6220 if test -n "$kargmax"; then
6221 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6223 lt_cv_sys_max_cmd_len=32768
6227 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6228 if test -n "$lt_cv_sys_max_cmd_len" && \
6229 test undefined != "$lt_cv_sys_max_cmd_len"; then
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6233 # Make teststring a little bigger before we do anything with it.
6234 # a 1K string should be a reasonable start.
6235 for i in 1 2 3 4 5 6 7 8; do
6236 teststring=$teststring$teststring
6238 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6239 # If test is not a shell built-in, we'll probably end up computing a
6240 # maximum length that is only half of the actual maximum length, but
6242 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6243 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6244 test 17 != "$i" # 1/2 MB should be enough
6247 teststring=$teststring$teststring
6249 # Only check the string length outside the loop.
6250 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6252 # Add a significant safety factor because C++ compilers can tack on
6253 # massive amounts of additional arguments before passing them to the
6254 # linker. It appears as though 1/2 is a usable value.
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6262 if test -n "$lt_cv_sys_max_cmd_len"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6264 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6267 $as_echo "none" >&6; }
6269 max_cmd_len=$lt_cv_sys_max_cmd_len
6280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6290 # test EBCDIC or ASCII
6291 case `echo X|tr X '\101'` in
6292 A) # ASCII based system
6293 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6294 lt_SP2NL='tr \040 \012'
6295 lt_NL2SP='tr \015\012 \040\040'
6297 *) # EBCDIC based system
6298 lt_SP2NL='tr \100 \n'
6299 lt_NL2SP='tr \r\n \100\100'
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6312 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6313 if ${lt_cv_to_host_file_cmd+:} false; then :
6314 $as_echo_n "(cached) " >&6
6319 *-*-mingw* ) # actually msys
6320 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6323 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6325 * ) # otherwise, assume *nix
6326 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6332 *-*-mingw* ) # actually msys
6333 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6336 lt_cv_to_host_file_cmd=func_convert_file_noop
6338 * ) # otherwise, assume *nix
6339 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6343 * ) # unhandled hosts (and "normal" native builds)
6344 lt_cv_to_host_file_cmd=func_convert_file_noop
6350 to_host_file_cmd=$lt_cv_to_host_file_cmd
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6352 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6359 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6360 if ${lt_cv_to_tool_file_cmd+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 #assume ordinary cross tools, or native build.
6364 lt_cv_to_tool_file_cmd=func_convert_file_noop
6368 *-*-mingw* ) # actually msys
6369 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6377 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6379 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6386 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6387 if ${lt_cv_ld_reload_flag+:} false; then :
6388 $as_echo_n "(cached) " >&6
6390 lt_cv_ld_reload_flag='-r'
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6393 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6394 reload_flag=$lt_cv_ld_reload_flag
6395 case $reload_flag in
6397 *) reload_flag=" $reload_flag" ;;
6399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6401 cygwin* | mingw* | pw32* | cegcc*)
6402 if test yes != "$GCC"; then
6407 if test yes = "$GCC"; then
6408 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6423 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6425 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_OBJDUMP+:} false; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$OBJDUMP"; then
6432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 OBJDUMP=$ac_cv_prog_OBJDUMP
6452 if test -n "$OBJDUMP"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6454 $as_echo "$OBJDUMP" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6462 if test -z "$ac_cv_prog_OBJDUMP"; then
6463 ac_ct_OBJDUMP=$OBJDUMP
6464 # Extract the first word of "objdump", so it can be a program name with args.
6465 set dummy objdump; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 if test -n "$ac_ct_OBJDUMP"; then
6472 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6492 if test -n "$ac_ct_OBJDUMP"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6494 $as_echo "$ac_ct_OBJDUMP" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6500 if test "x$ac_ct_OBJDUMP" = x; then
6503 case $cross_compiling:$ac_tool_warned in
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned=yes ;;
6509 OBJDUMP=$ac_ct_OBJDUMP
6512 OBJDUMP="$ac_cv_prog_OBJDUMP"
6515 test -z "$OBJDUMP" && OBJDUMP=objdump
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6526 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6527 if ${lt_cv_deplibs_check_method+:} false; then :
6528 $as_echo_n "(cached) " >&6
6530 lt_cv_file_magic_cmd='$MAGIC_CMD'
6531 lt_cv_file_magic_test_file=
6532 lt_cv_deplibs_check_method='unknown'
6533 # Need to set the preceding variable on all platforms that support
6534 # interlibrary dependencies.
6535 # 'none' -- dependencies not supported.
6536 # 'unknown' -- same as none, but documents that we really don't know.
6537 # 'pass_all' -- all dependencies passed with no checks.
6538 # 'test_compile' -- check by making test program.
6539 # 'file_magic [[regex]]' -- check by looking for files in library path
6540 # that responds to the $file_magic_cmd with a given extended regex.
6541 # If you have 'file' or equivalent on your system and you're not sure
6542 # whether 'pass_all' will *always* work, you probably want this one.
6546 lt_cv_deplibs_check_method=pass_all
6550 lt_cv_deplibs_check_method=pass_all
6554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6555 lt_cv_file_magic_cmd='/usr/bin/file -L'
6556 lt_cv_file_magic_test_file=/shlib/libc.so
6560 # func_win32_libid is a shell function defined in ltmain.sh
6561 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6562 lt_cv_file_magic_cmd='func_win32_libid'
6566 # Base MSYS/MinGW do not provide the 'file' command needed by
6567 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6568 # unless we find 'file', for example because we are cross-compiling.
6569 if ( file / ) >/dev/null 2>&1; then
6570 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6571 lt_cv_file_magic_cmd='func_win32_libid'
6573 # Keep this pattern in sync with the one in func_win32_libid.
6574 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6575 lt_cv_file_magic_cmd='$OBJDUMP -f'
6580 # use the weaker test based on 'objdump'. See mingw*.
6581 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6582 lt_cv_file_magic_cmd='$OBJDUMP -f'
6585 darwin* | rhapsody*)
6586 lt_cv_deplibs_check_method=pass_all
6589 freebsd* | dragonfly*)
6590 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6593 # Not sure whether the presence of OpenBSD here was a mistake.
6594 # Let's accept both of them until this is cleared up.
6595 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6596 lt_cv_file_magic_cmd=/usr/bin/file
6597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6601 lt_cv_deplibs_check_method=pass_all
6606 lt_cv_deplibs_check_method=pass_all
6609 hpux10.20* | hpux11*)
6610 lt_cv_file_magic_cmd=/usr/bin/file
6613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6614 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6617 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]'
6618 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6622 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6628 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6632 irix5* | irix6* | nonstopux*)
6634 *-32|*"-32 ") libmagic=32-bit;;
6635 *-n32|*"-n32 ") libmagic=N32;;
6636 *-64|*"-64 ") libmagic=64-bit;;
6637 *) libmagic=never-match;;
6639 lt_cv_deplibs_check_method=pass_all
6642 # This must be glibc/ELF.
6643 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6644 lt_cv_deplibs_check_method=pass_all
6647 netbsd* | netbsdelf*-gnu)
6648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6657 lt_cv_file_magic_cmd=/usr/bin/file
6658 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6662 lt_cv_deplibs_check_method=pass_all
6666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6673 osf3* | osf4* | osf5*)
6674 lt_cv_deplibs_check_method=pass_all
6678 lt_cv_deplibs_check_method=pass_all
6682 lt_cv_deplibs_check_method=pass_all
6685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6686 lt_cv_deplibs_check_method=pass_all
6690 case $host_vendor in
6692 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]'
6693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6696 lt_cv_deplibs_check_method=pass_all
6699 lt_cv_file_magic_cmd='/bin/file'
6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6703 lt_cv_file_magic_cmd='/bin/file'
6704 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6705 lt_cv_file_magic_test_file=/lib/libc.so
6708 lt_cv_deplibs_check_method=pass_all
6711 lt_cv_deplibs_check_method=pass_all
6717 lt_cv_deplibs_check_method=pass_all
6720 lt_cv_deplibs_check_method=pass_all
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6726 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6730 if test "$build" = "$host"; then
6733 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6736 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6742 file_magic_cmd=$lt_cv_file_magic_cmd
6743 deplibs_check_method=$lt_cv_deplibs_check_method
6744 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_DLLTOOL+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 if test -n "$DLLTOOL"; then
6776 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 DLLTOOL=$ac_cv_prog_DLLTOOL
6796 if test -n "$DLLTOOL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6798 $as_echo "$DLLTOOL" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_DLLTOOL"; then
6807 ac_ct_DLLTOOL=$DLLTOOL
6808 # Extract the first word of "dlltool", so it can be a program name with args.
6809 set dummy dlltool; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 if test -n "$ac_ct_DLLTOOL"; then
6816 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6836 if test -n "$ac_ct_DLLTOOL"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6838 $as_echo "$ac_ct_DLLTOOL" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_DLLTOOL" = x; then
6847 case $cross_compiling:$ac_tool_warned in
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6853 DLLTOOL=$ac_ct_DLLTOOL
6856 DLLTOOL="$ac_cv_prog_DLLTOOL"
6859 test -z "$DLLTOOL" && DLLTOOL=dlltool
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6871 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6872 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6873 $as_echo_n "(cached) " >&6
6875 lt_cv_sharedlib_from_linklib_cmd='unknown'
6878 cygwin* | mingw* | pw32* | cegcc*)
6879 # two different shell functions defined in ltmain.sh;
6880 # decide which one to use based on capabilities of $DLLTOOL
6881 case `$DLLTOOL --help 2>&1` in
6882 *--identify-strict*)
6883 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6886 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6891 # fallback: assume linklib IS sharedlib
6892 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6898 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6899 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6900 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6908 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_AR+:} false; then :
6916 $as_echo_n "(cached) " >&6
6918 if test -n "$AR"; then
6919 ac_cv_prog_AR="$AR" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 if test -n "$AR"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6941 $as_echo "$AR" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6948 test -n "$AR" && break
6951 if test -z "$AR"; then
6955 # Extract the first word of "$ac_prog", so it can be a program name with args.
6956 set dummy $ac_prog; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6960 $as_echo_n "(cached) " >&6
6962 if test -n "$ac_ct_AR"; then
6963 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_ac_ct_AR="$ac_prog"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6983 if test -n "$ac_ct_AR"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6985 $as_echo "$ac_ct_AR" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6992 test -n "$ac_ct_AR" && break
6995 if test "x$ac_ct_AR" = x; then
6998 case $cross_compiling:$ac_tool_warned in
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7022 $as_echo_n "checking for archiver @FILE support... " >&6; }
7023 if ${lt_cv_ar_at_file+:} false; then :
7024 $as_echo_n "(cached) " >&6
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 echo conftest.$ac_objext > conftest.lst
7040 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7042 (eval $lt_ar_try) 2>&5
7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045 test $ac_status = 0; }
7046 if test 0 -eq "$ac_status"; then
7047 # Ensure the archiver fails upon bogus file names.
7048 rm -f conftest.$ac_objext libconftest.a
7049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7050 (eval $lt_ar_try) 2>&5
7052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053 test $ac_status = 0; }
7054 if test 0 -ne "$ac_status"; then
7058 rm -f conftest.* libconftest.a
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7065 $as_echo "$lt_cv_ar_at_file" >&6; }
7067 if test no = "$lt_cv_ar_at_file"; then
7070 archiver_list_spec=$lt_cv_ar_at_file
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}strip; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_STRIP+:} false; then :
7085 $as_echo_n "(cached) " >&6
7087 if test -n "$STRIP"; then
7088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 STRIP=$ac_cv_prog_STRIP
7108 if test -n "$STRIP"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7110 $as_echo "$STRIP" >&6; }
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7118 if test -z "$ac_cv_prog_STRIP"; then
7120 # Extract the first word of "strip", so it can be a program name with args.
7121 set dummy strip; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$ac_ct_STRIP"; then
7128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_ac_ct_STRIP="strip"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7148 if test -n "$ac_ct_STRIP"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7150 $as_echo "$ac_ct_STRIP" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7156 if test "x$ac_ct_STRIP" = x; then
7159 case $cross_compiling:$ac_tool_warned in
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163 ac_tool_warned=yes ;;
7168 STRIP="$ac_cv_prog_STRIP"
7171 test -z "$STRIP" && STRIP=:
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_RANLIB+:} false; then :
7184 $as_echo_n "(cached) " >&6
7186 if test -n "$RANLIB"; then
7187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 RANLIB=$ac_cv_prog_RANLIB
7207 if test -n "$RANLIB"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7209 $as_echo "$RANLIB" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7217 if test -z "$ac_cv_prog_RANLIB"; then
7218 ac_ct_RANLIB=$RANLIB
7219 # Extract the first word of "ranlib", so it can be a program name with args.
7220 set dummy ranlib; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 if test -n "$ac_ct_RANLIB"; then
7227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_ac_ct_RANLIB="ranlib"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7247 if test -n "$ac_ct_RANLIB"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7249 $as_echo "$ac_ct_RANLIB" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7255 if test "x$ac_ct_RANLIB" = x; then
7258 case $cross_compiling:$ac_tool_warned in
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7264 RANLIB=$ac_ct_RANLIB
7267 RANLIB="$ac_cv_prog_RANLIB"
7270 test -z "$RANLIB" && RANLIB=:
7277 # Determine commands to create old-style static archives.
7278 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7279 old_postinstall_cmds='chmod 644 $oldlib'
7280 old_postuninstall_cmds=
7282 if test -n "$RANLIB"; then
7285 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7291 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7296 lock_old_archive_extraction=yes ;;
7298 lock_old_archive_extraction=no ;;
7339 # If no C compiler was specified, use CC.
7342 # If no C compiler flags were specified, use CFLAGS.
7343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7345 # Allow CC to be a program name with arguments.
7349 # Check for command to grab the raw symbol name followed by C symbol from nm.
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7351 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7352 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7353 $as_echo_n "(cached) " >&6
7356 # These are sane defaults that work on at least a few old systems.
7357 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7359 # Character class describing NM global symbol codes.
7360 symcode='[BCDEGRST]'
7362 # Regexp to match symbols that can be accessed directly from C.
7363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7365 # Define system-specific variables.
7370 cygwin* | mingw* | pw32* | cegcc*)
7371 symcode='[ABCDGISTW]'
7374 if test ia64 = "$host_cpu"; then
7375 symcode='[ABCDEGRST]'
7379 symcode='[BCDEGRST]'
7382 symcode='[BCDEGQRST]'
7393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7401 # If we're using GNU nm, then use its standard symbol codes.
7402 case `$NM -V 2>&1` in
7403 *GNU* | *'with BFD'*)
7404 symcode='[ABCDGIRSTW]' ;;
7407 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7408 # Gets list of data symbols to import.
7409 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7410 # Adjust the below global symbol transforms to fixup imported variables.
7411 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7412 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7413 lt_c_name_lib_hook="\
7414 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7415 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7417 # Disable hooks by default.
7418 lt_cv_sys_global_symbol_to_import=
7424 # Transform an extracted symbol line into a proper C declaration.
7425 # Some systems (esp. on ia64) link data and code symbols differently,
7426 # so use this general approach.
7427 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7429 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7430 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7432 # Transform an extracted symbol line into symbol name and symbol address
7433 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7435 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7436 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7438 # Transform an extracted symbol line into symbol name with lib prefix and
7440 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7441 $lt_c_name_lib_hook\
7442 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7443 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7444 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7446 # Handle CRLF in mingw tool chain
7450 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7454 # Try without a prefix underscore, then with it.
7455 for ac_symprfx in "" "_"; do
7457 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7458 symxfrm="\\1 $ac_symprfx\\2 \\2"
7460 # Write the raw and C identifiers.
7461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7462 # Fake it for dumpbin and say T for any non-static function,
7463 # D for any global variable and I for any imported variable.
7464 # Also find C++ and __fastcall symbols from MSVC++,
7465 # which start with @ or ?.
7466 lt_cv_sys_global_symbol_pipe="$AWK '"\
7467 " {last_section=section; section=\$ 3};"\
7468 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7470 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7471 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7472 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7473 " \$ 0!~/External *\|/{next};"\
7474 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7475 " {if(hide[section]) next};"\
7476 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7477 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7478 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7479 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7480 " ' prfx=^$ac_symprfx"
7482 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7484 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7486 # Check to see that the pipe works correctly.
7490 cat > conftest.$ac_ext <<_LT_EOF
7495 void nm_test_func(void);
7496 void nm_test_func(void){}
7500 int main(){nm_test_var='a';nm_test_func();return(0);}
7503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504 (eval $ac_compile) 2>&5
7506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; }; then
7508 # Now try to grab the symbols.
7510 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7511 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7512 # Try sorting and uniquifying the output.
7513 if sort "$nlist" | uniq > "$nlist"T; then
7514 mv -f "$nlist"T "$nlist"
7519 # Make sure that we snagged all the symbols we need.
7520 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7521 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7522 cat <<_LT_EOF > conftest.$ac_ext
7523 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7524 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7525 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7526 relocations are performed -- see ld's documentation on pseudo-relocs. */
7527 # define LT_DLSYM_CONST
7528 #elif defined __osf__
7529 /* This system does not cope well with relocations in const data. */
7530 # define LT_DLSYM_CONST
7532 # define LT_DLSYM_CONST const
7540 # Now generate the symbol file.
7541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7543 cat <<_LT_EOF >> conftest.$ac_ext
7545 /* The mapping between symbol names and symbols. */
7546 LT_DLSYM_CONST struct {
7550 lt__PROGRAM__LTX_preloaded_symbols[] =
7552 { "@PROGRAM@", (void *) 0 },
7554 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7555 cat <<\_LT_EOF >> conftest.$ac_ext
7559 /* This works around a problem in FreeBSD linker */
7560 #ifdef FREEBSD_WORKAROUND
7561 static const void *lt_preloaded_setup() {
7562 return lt__PROGRAM__LTX_preloaded_symbols;
7570 # Now try linking the two files.
7571 mv conftest.$ac_objext conftstm.$ac_objext
7572 lt_globsym_save_LIBS=$LIBS
7573 lt_globsym_save_CFLAGS=$CFLAGS
7574 LIBS=conftstm.$ac_objext
7575 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7577 (eval $ac_link) 2>&5
7579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7583 LIBS=$lt_globsym_save_LIBS
7584 CFLAGS=$lt_globsym_save_CFLAGS
7586 echo "cannot find nm_test_func in $nlist" >&5
7589 echo "cannot find nm_test_var in $nlist" >&5
7592 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7595 echo "$progname: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7598 rm -rf conftest* conftst*
7600 # Do not use the global_symbol_pipe unless it works.
7601 if test yes = "$pipe_works"; then
7604 lt_cv_sys_global_symbol_pipe=
7610 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7611 lt_cv_sys_global_symbol_to_cdecl=
7613 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7615 $as_echo "failed" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7618 $as_echo "ok" >&6; }
7621 # Response file support.
7622 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7623 nm_file_list_spec='@'
7624 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7625 nm_file_list_spec='@'
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7665 $as_echo_n "checking for sysroot... " >&6; }
7667 # Check whether --with-sysroot was given.
7668 if test "${with_sysroot+set}" = set; then :
7669 withval=$with_sysroot;
7676 case $with_sysroot in #(
7678 if test yes = "$GCC"; then
7679 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7683 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7689 $as_echo "$with_sysroot" >&6; }
7690 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7695 $as_echo "${lt_sysroot:-no}" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7702 $as_echo_n "checking for a working dd... " >&6; }
7703 if ${ac_cv_path_lt_DD+:} false; then :
7704 $as_echo_n "(cached) " >&6
7706 printf 0123456789abcdef0123456789abcdef >conftest.i
7707 cat conftest.i conftest.i >conftest2.i
7709 if test -z "$lt_DD"; then
7710 ac_path_lt_DD_found=false
7711 # Loop through the user's path and test for each of PROGNAME-LIST
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir=.
7717 for ac_prog in dd; do
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7720 as_fn_executable_p "$ac_path_lt_DD" || continue
7721 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7722 cmp -s conftest.i conftest.out \
7723 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7725 $ac_path_lt_DD_found && break 3
7730 if test -z "$ac_cv_path_lt_DD"; then
7734 ac_cv_path_lt_DD=$lt_DD
7737 rm -f conftest.i conftest2.i conftest.out
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7740 $as_echo "$ac_cv_path_lt_DD" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7744 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7745 if ${lt_cv_truncate_bin+:} false; then :
7746 $as_echo_n "(cached) " >&6
7748 printf 0123456789abcdef0123456789abcdef >conftest.i
7749 cat conftest.i conftest.i >conftest2.i
7751 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7752 cmp -s conftest.i conftest.out \
7753 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7755 rm -f conftest.i conftest2.i conftest.out
7756 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7759 $as_echo "$lt_cv_truncate_bin" >&6; }
7767 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7770 for cc_temp in $*""; do
7772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7778 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7781 # Check whether --enable-libtool-lock was given.
7782 if test "${enable_libtool_lock+set}" = set; then :
7783 enableval=$enable_libtool_lock;
7786 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7788 # Some flags need to be propagated to the compiler or linker for good
7792 # Find out what ABI is being produced by ac_compile, and set mode
7793 # options accordingly.
7794 echo 'int i;' > conftest.$ac_ext
7795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7796 (eval $ac_compile) 2>&5
7798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7799 test $ac_status = 0; }; then
7800 case `/usr/bin/file conftest.$ac_objext` in
7812 # Find out what ABI is being produced by ac_compile, and set linker
7813 # options accordingly.
7814 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7816 (eval $ac_compile) 2>&5
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; }; then
7820 if test yes = "$lt_cv_prog_gnu_ld"; then
7821 case `/usr/bin/file conftest.$ac_objext` in
7823 LD="${LD-ld} -melf32bsmip"
7826 LD="${LD-ld} -melf32bmipn32"
7829 LD="${LD-ld} -melf64bmip"
7833 case `/usr/bin/file conftest.$ac_objext` in
7850 # Find out what ABI is being produced by ac_compile, and set linker
7851 # options accordingly.
7852 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7854 (eval $ac_compile) 2>&5
7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857 test $ac_status = 0; }; then
7859 case `/usr/bin/file conftest.$ac_objext` in
7867 case `/usr/bin/file conftest.$ac_objext` in
7869 emul="${emul}btsmip"
7872 emul="${emul}ltsmip"
7875 case `/usr/bin/file conftest.$ac_objext` in
7880 LD="${LD-ld} -m $emul"
7885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7887 # Find out what ABI is being produced by ac_compile, and set linker
7888 # options accordingly. Note that the listed cases only cover the
7889 # situations where additional linker options are needed (such as when
7890 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7891 # vice versa); the common cases where no linker options are needed do
7892 # not appear in the list.
7893 echo 'int i;' > conftest.$ac_ext
7894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7895 (eval $ac_compile) 2>&5
7897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898 test $ac_status = 0; }; then
7899 case `/usr/bin/file conftest.o` in
7902 x86_64-*kfreebsd*-gnu)
7903 LD="${LD-ld} -m elf_i386_fbsd"
7906 case `/usr/bin/file conftest.o` in
7908 LD="${LD-ld} -m elf32_x86_64"
7911 LD="${LD-ld} -m elf_i386"
7915 powerpc64le-*linux*)
7916 LD="${LD-ld} -m elf32lppclinux"
7919 LD="${LD-ld} -m elf32ppclinux"
7922 LD="${LD-ld} -m elf_s390"
7925 LD="${LD-ld} -m elf32_sparc"
7931 x86_64-*kfreebsd*-gnu)
7932 LD="${LD-ld} -m elf_x86_64_fbsd"
7935 LD="${LD-ld} -m elf_x86_64"
7938 LD="${LD-ld} -m elf64lppc"
7941 LD="${LD-ld} -m elf64ppc"
7943 s390*-*linux*|s390*-*tpf*)
7944 LD="${LD-ld} -m elf64_s390"
7947 LD="${LD-ld} -m elf64_sparc"
7957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7959 CFLAGS="$CFLAGS -belf"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7962 if ${lt_cv_cc_needs_belf+:} false; then :
7963 $as_echo_n "(cached) " >&6
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7982 if ac_fn_c_try_link "$LINENO"; then :
7983 lt_cv_cc_needs_belf=yes
7985 lt_cv_cc_needs_belf=no
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7998 if test yes != "$lt_cv_cc_needs_belf"; then
7999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8004 # Find out what ABI is being produced by ac_compile, and set linker
8005 # options accordingly.
8006 echo 'int i;' > conftest.$ac_ext
8007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8008 (eval $ac_compile) 2>&5
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 case `/usr/bin/file conftest.o` in
8014 case $lt_cv_prog_gnu_ld in
8017 i?86-*-solaris*|x86_64-*-solaris*)
8018 LD="${LD-ld} -m elf_x86_64"
8021 LD="${LD-ld} -m elf64_sparc"
8024 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8025 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8030 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8042 need_locks=$enable_libtool_lock
8044 if test -n "$ac_tool_prefix"; then
8045 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8046 set dummy ${ac_tool_prefix}mt; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8050 $as_echo_n "(cached) " >&6
8052 if test -n "$MANIFEST_TOOL"; then
8053 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8073 if test -n "$MANIFEST_TOOL"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8075 $as_echo "$MANIFEST_TOOL" >&6; }
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8083 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8084 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8085 # Extract the first word of "mt", so it can be a program name with args.
8086 set dummy mt; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$ac_ct_MANIFEST_TOOL"; then
8093 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8113 if test -n "$ac_ct_MANIFEST_TOOL"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8115 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8121 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8124 case $cross_compiling:$ac_tool_warned in
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8128 ac_tool_warned=yes ;;
8130 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8133 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8136 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8138 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8139 if ${lt_cv_path_mainfest_tool+:} false; then :
8140 $as_echo_n "(cached) " >&6
8142 lt_cv_path_mainfest_tool=no
8143 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8144 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8145 cat conftest.err >&5
8146 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8147 lt_cv_path_mainfest_tool=yes
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8152 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8153 if test yes != "$lt_cv_path_mainfest_tool"; then
8163 rhapsody* | darwin*)
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8170 $as_echo_n "(cached) " >&6
8172 if test -n "$DSYMUTIL"; then
8173 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8193 if test -n "$DSYMUTIL"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8195 $as_echo "$DSYMUTIL" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8203 if test -z "$ac_cv_prog_DSYMUTIL"; then
8204 ac_ct_DSYMUTIL=$DSYMUTIL
8205 # Extract the first word of "dsymutil", so it can be a program name with args.
8206 set dummy dsymutil; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8210 $as_echo_n "(cached) " >&6
8212 if test -n "$ac_ct_DSYMUTIL"; then
8213 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8233 if test -n "$ac_ct_DSYMUTIL"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8235 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8241 if test "x$ac_ct_DSYMUTIL" = x; then
8244 case $cross_compiling:$ac_tool_warned in
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8250 DSYMUTIL=$ac_ct_DSYMUTIL
8253 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8256 if test -n "$ac_tool_prefix"; then
8257 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8258 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_prog_NMEDIT+:} false; then :
8262 $as_echo_n "(cached) " >&6
8264 if test -n "$NMEDIT"; then
8265 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 NMEDIT=$ac_cv_prog_NMEDIT
8285 if test -n "$NMEDIT"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8287 $as_echo "$NMEDIT" >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8295 if test -z "$ac_cv_prog_NMEDIT"; then
8296 ac_ct_NMEDIT=$NMEDIT
8297 # Extract the first word of "nmedit", so it can be a program name with args.
8298 set dummy nmedit; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8302 $as_echo_n "(cached) " >&6
8304 if test -n "$ac_ct_NMEDIT"; then
8305 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8325 if test -n "$ac_ct_NMEDIT"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8327 $as_echo "$ac_ct_NMEDIT" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8333 if test "x$ac_ct_NMEDIT" = x; then
8336 case $cross_compiling:$ac_tool_warned in
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8342 NMEDIT=$ac_ct_NMEDIT
8345 NMEDIT="$ac_cv_prog_NMEDIT"
8348 if test -n "$ac_tool_prefix"; then
8349 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8350 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if ${ac_cv_prog_LIPO+:} false; then :
8354 $as_echo_n "(cached) " >&6
8356 if test -n "$LIPO"; then
8357 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 LIPO=$ac_cv_prog_LIPO
8377 if test -n "$LIPO"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8379 $as_echo "$LIPO" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 if test -z "$ac_cv_prog_LIPO"; then
8389 # Extract the first word of "lipo", so it can be a program name with args.
8390 set dummy lipo; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8394 $as_echo_n "(cached) " >&6
8396 if test -n "$ac_ct_LIPO"; then
8397 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406 ac_cv_prog_ac_ct_LIPO="lipo"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8417 if test -n "$ac_ct_LIPO"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8419 $as_echo "$ac_ct_LIPO" >&6; }
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8425 if test "x$ac_ct_LIPO" = x; then
8428 case $cross_compiling:$ac_tool_warned in
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8432 ac_tool_warned=yes ;;
8437 LIPO="$ac_cv_prog_LIPO"
8440 if test -n "$ac_tool_prefix"; then
8441 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8442 set dummy ${ac_tool_prefix}otool; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if ${ac_cv_prog_OTOOL+:} false; then :
8446 $as_echo_n "(cached) " >&6
8448 if test -n "$OTOOL"; then
8449 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 OTOOL=$ac_cv_prog_OTOOL
8469 if test -n "$OTOOL"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8471 $as_echo "$OTOOL" >&6; }
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8479 if test -z "$ac_cv_prog_OTOOL"; then
8481 # Extract the first word of "otool", so it can be a program name with args.
8482 set dummy otool; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8486 $as_echo_n "(cached) " >&6
8488 if test -n "$ac_ct_OTOOL"; then
8489 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8498 ac_cv_prog_ac_ct_OTOOL="otool"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8509 if test -n "$ac_ct_OTOOL"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8511 $as_echo "$ac_ct_OTOOL" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8517 if test "x$ac_ct_OTOOL" = x; then
8520 case $cross_compiling:$ac_tool_warned in
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8524 ac_tool_warned=yes ;;
8529 OTOOL="$ac_cv_prog_OTOOL"
8532 if test -n "$ac_tool_prefix"; then
8533 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8534 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 $as_echo_n "checking for $ac_word... " >&6; }
8537 if ${ac_cv_prog_OTOOL64+:} false; then :
8538 $as_echo_n "(cached) " >&6
8540 if test -n "$OTOOL64"; then
8541 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 OTOOL64=$ac_cv_prog_OTOOL64
8561 if test -n "$OTOOL64"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8563 $as_echo "$OTOOL64" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8571 if test -z "$ac_cv_prog_OTOOL64"; then
8572 ac_ct_OTOOL64=$OTOOL64
8573 # Extract the first word of "otool64", so it can be a program name with args.
8574 set dummy otool64; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8578 $as_echo_n "(cached) " >&6
8580 if test -n "$ac_ct_OTOOL64"; then
8581 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590 ac_cv_prog_ac_ct_OTOOL64="otool64"
8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8601 if test -n "$ac_ct_OTOOL64"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8603 $as_echo "$ac_ct_OTOOL64" >&6; }
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8609 if test "x$ac_ct_OTOOL64" = x; then
8612 case $cross_compiling:$ac_tool_warned in
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8616 ac_tool_warned=yes ;;
8618 OTOOL64=$ac_ct_OTOOL64
8621 OTOOL64="$ac_cv_prog_OTOOL64"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8651 $as_echo_n "checking for -single_module linker flag... " >&6; }
8652 if ${lt_cv_apple_cc_single_mod+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 lt_cv_apple_cc_single_mod=no
8656 if test -z "$LT_MULTI_MODULE"; then
8657 # By default we will add the -single_module flag. You can override
8658 # by either setting the environment variable LT_MULTI_MODULE
8659 # non-empty at configure time, or by adding -multi_module to the
8661 rm -rf libconftest.dylib*
8662 echo "int foo(void){return 1;}" > conftest.c
8663 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8664 -dynamiclib -Wl,-single_module conftest.c" >&5
8665 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8666 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8668 # If there is a non-empty error log, and "single_module"
8669 # appears in it, assume the flag caused a linker warning
8670 if test -s conftest.err && $GREP single_module conftest.err; then
8671 cat conftest.err >&5
8672 # Otherwise, if the output was created with a 0 exit code from
8673 # the compiler, it worked.
8674 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8675 lt_cv_apple_cc_single_mod=yes
8677 cat conftest.err >&5
8679 rm -rf libconftest.dylib*
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8684 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8687 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8688 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8689 $as_echo_n "(cached) " >&6
8691 lt_cv_ld_exported_symbols_list=no
8692 save_LDFLAGS=$LDFLAGS
8693 echo "_main" > conftest.sym
8694 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 lt_cv_ld_exported_symbols_list=yes
8709 lt_cv_ld_exported_symbols_list=no
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 LDFLAGS=$save_LDFLAGS
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8717 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8720 $as_echo_n "checking for -force_load linker flag... " >&6; }
8721 if ${lt_cv_ld_force_load+:} false; then :
8722 $as_echo_n "(cached) " >&6
8724 lt_cv_ld_force_load=no
8725 cat > conftest.c << _LT_EOF
8726 int forced_loaded() { return 2;}
8728 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8729 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8730 echo "$AR cr libconftest.a conftest.o" >&5
8731 $AR cr libconftest.a conftest.o 2>&5
8732 echo "$RANLIB libconftest.a" >&5
8733 $RANLIB libconftest.a 2>&5
8734 cat > conftest.c << _LT_EOF
8735 int main() { return 0;}
8737 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8738 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8740 if test -s conftest.err && $GREP force_load conftest.err; then
8741 cat conftest.err >&5
8742 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8743 lt_cv_ld_force_load=yes
8745 cat conftest.err >&5
8747 rm -f conftest.err libconftest.a conftest conftest.c
8748 rm -rf conftest.dSYM
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8752 $as_echo "$lt_cv_ld_force_load" >&6; }
8754 rhapsody* | darwin1.[012])
8755 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8757 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8758 darwin*) # darwin 5.x on
8759 # if running on 10.5 or later, the deployment target defaults
8760 # to the OS version, if on x86, and 10.4, the deployment
8761 # target defaults to 10.4. Don't you love it?
8762 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8763 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8764 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8766 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8768 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8772 if test yes = "$lt_cv_apple_cc_single_mod"; then
8773 _lt_dar_single_mod='$single_module'
8775 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8776 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8778 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8780 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8781 _lt_dsymutil='~$DSYMUTIL $lib || :'
8788 # func_munge_path_list VARIABLE PATH
8789 # -----------------------------------
8790 # VARIABLE is name of variable containing _space_ separated list of
8791 # directories to be munged by the contents of PATH, which is string
8794 # string "DIR[ DIR]" will be prepended to VARIABLE
8796 # string "DIR[ DIR]" will be appended to VARIABLE
8797 # "DIRP[:DIRP]::[DIRA:]DIRA"
8798 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8799 # "DIRA[ DIRA]" will be appended to VARIABLE
8801 # VARIABLE will be replaced by "DIR[ DIR]"
8802 func_munge_path_list ()
8808 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8811 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8814 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8815 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8818 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8824 ac_cpp='$CPP $CPPFLAGS'
8825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8829 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8830 # On Suns, sometimes $CPP names a directory.
8831 if test -n "$CPP" && test -d "$CPP"; then
8834 if test -z "$CPP"; then
8835 if ${ac_cv_prog_CPP+:} false; then :
8836 $as_echo_n "(cached) " >&6
8838 # Double quotes because CPP needs to be expanded
8839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8842 for ac_c_preproc_warn_flag in '' yes
8844 # Use a header file that comes with gcc, so configuring glibc
8845 # with a fresh cross-compiler works.
8846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8847 # <limits.h> exists even on freestanding compilers.
8848 # On the NeXT, cc -E runs the code through the compiler's parser,
8849 # not just through cpp. "Syntax error" is here to catch this case.
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8853 # include <limits.h>
8855 # include <assert.h>
8859 if ac_fn_c_try_cpp "$LINENO"; then :
8862 # Broken: fails on valid input.
8865 rm -f conftest.err conftest.i conftest.$ac_ext
8867 # OK, works on sane cases. Now check whether nonexistent headers
8868 # can be detected and how.
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #include <ac_nonexistent.h>
8873 if ac_fn_c_try_cpp "$LINENO"; then :
8874 # Broken: success on invalid input.
8877 # Passes both tests.
8881 rm -f conftest.err conftest.i conftest.$ac_ext
8884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8885 rm -f conftest.i conftest.err conftest.$ac_ext
8886 if $ac_preproc_ok; then :
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8899 $as_echo "$CPP" >&6; }
8901 for ac_c_preproc_warn_flag in '' yes
8903 # Use a header file that comes with gcc, so configuring glibc
8904 # with a fresh cross-compiler works.
8905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 # <limits.h> exists even on freestanding compilers.
8907 # On the NeXT, cc -E runs the code through the compiler's parser,
8908 # not just through cpp. "Syntax error" is here to catch this case.
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8912 # include <limits.h>
8914 # include <assert.h>
8918 if ac_fn_c_try_cpp "$LINENO"; then :
8921 # Broken: fails on valid input.
8924 rm -f conftest.err conftest.i conftest.$ac_ext
8926 # OK, works on sane cases. Now check whether nonexistent headers
8927 # can be detected and how.
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <ac_nonexistent.h>
8932 if ac_fn_c_try_cpp "$LINENO"; then :
8933 # Broken: success on invalid input.
8936 # Passes both tests.
8940 rm -f conftest.err conftest.i conftest.$ac_ext
8943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8944 rm -f conftest.i conftest.err conftest.$ac_ext
8945 if $ac_preproc_ok; then :
8948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8950 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8951 See \`config.log' for more details" "$LINENO" 5; }
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8962 $as_echo_n "checking for ANSI C header files... " >&6; }
8963 if ${ac_cv_header_stdc+:} false; then :
8964 $as_echo_n "(cached) " >&6
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8981 if ac_fn_c_try_compile "$LINENO"; then :
8982 ac_cv_header_stdc=yes
8984 ac_cv_header_stdc=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 if test $ac_cv_header_stdc = yes; then
8989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8996 $EGREP "memchr" >/dev/null 2>&1; then :
8999 ac_cv_header_stdc=no
9005 if test $ac_cv_header_stdc = yes; then
9006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9013 $EGREP "free" >/dev/null 2>&1; then :
9016 ac_cv_header_stdc=no
9022 if test $ac_cv_header_stdc = yes; then
9023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9024 if test "$cross_compiling" = yes; then :
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9031 #if ((' ' & 0x0FF) == 0x020)
9032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9035 # define ISLOWER(c) \
9036 (('a' <= (c) && (c) <= 'i') \
9037 || ('j' <= (c) && (c) <= 'r') \
9038 || ('s' <= (c) && (c) <= 'z'))
9039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9047 for (i = 0; i < 256; i++)
9048 if (XOR (islower (i), ISLOWER (i))
9049 || toupper (i) != TOUPPER (i))
9054 if ac_fn_c_try_run "$LINENO"; then :
9057 ac_cv_header_stdc=no
9059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9060 conftest.$ac_objext conftest.beam conftest.$ac_ext
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9066 $as_echo "$ac_cv_header_stdc" >&6; }
9067 if test $ac_cv_header_stdc = yes; then
9069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9075 inttypes.h stdint.h unistd.h
9077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9080 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9081 cat >>confdefs.h <<_ACEOF
9082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9090 for ac_header in dlfcn.h
9092 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9094 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9095 cat >>confdefs.h <<_ACEOF
9096 #define HAVE_DLFCN_H 1
9108 # Check whether --enable-static was given.
9109 if test "${enable_static+set}" = set; then :
9110 enableval=$enable_static; p=${PACKAGE-default}
9112 yes) enable_static=yes ;;
9113 no) enable_static=no ;;
9116 # Look at the argument we got. We use all the common list separators.
9117 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9118 for pkg in $enableval; do
9120 if test "X$pkg" = "X$p"; then
9146 # Check whether --enable-shared was given.
9147 if test "${enable_shared+set}" = set; then :
9148 enableval=$enable_shared; p=${PACKAGE-default}
9150 yes) enable_shared=yes ;;
9151 no) enable_shared=no ;;
9154 # Look at the argument we got. We use all the common list separators.
9155 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9156 for pkg in $enableval; do
9158 if test "X$pkg" = "X$p"; then
9179 # Check whether --with-pic was given.
9180 if test "${with_pic+set}" = set; then :
9181 withval=$with_pic; lt_p=${PACKAGE-default}
9183 yes|no) pic_mode=$withval ;;
9186 # Look at the argument we got. We use all the common list separators.
9187 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9188 for lt_pkg in $withval; do
9190 if test "X$lt_pkg" = "X$lt_p"; then
9208 # Check whether --enable-fast-install was given.
9209 if test "${enable_fast_install+set}" = set; then :
9210 enableval=$enable_fast_install; p=${PACKAGE-default}
9212 yes) enable_fast_install=yes ;;
9213 no) enable_fast_install=no ;;
9215 enable_fast_install=no
9216 # Look at the argument we got. We use all the common list separators.
9217 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9218 for pkg in $enableval; do
9220 if test "X$pkg" = "X$p"; then
9221 enable_fast_install=yes
9228 enable_fast_install=yes
9238 shared_archive_member_spec=
9239 case $host,$enable_shared in
9240 power*-*-aix[5-9]*,yes)
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9242 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9244 # Check whether --with-aix-soname was given.
9245 if test "${with_aix_soname+set}" = set; then :
9246 withval=$with_aix_soname; case $withval in
9250 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9253 lt_cv_with_aix_soname=$with_aix_soname
9255 if ${lt_cv_with_aix_soname+:} false; then :
9256 $as_echo_n "(cached) " >&6
9258 lt_cv_with_aix_soname=aix
9261 with_aix_soname=$lt_cv_with_aix_soname
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9265 $as_echo "$with_aix_soname" >&6; }
9266 if test aix != "$with_aix_soname"; then
9267 # For the AIX way of multilib, we name the shared archive member
9268 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9269 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9270 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9271 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9272 if test 64 = "${OBJECT_MODE-32}"; then
9273 shared_archive_member_spec=shr_64
9275 shared_archive_member_spec=shr
9293 # This can be used to rebuild libtool when needed
9294 LIBTOOL_DEPS=$ltmain
9296 # Always use our own libtool.
9297 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9328 test -z "$LN_S" && LN_S="ln -s"
9343 if test -n "${ZSH_VERSION+set}"; then
9344 setopt NO_GLOB_SUBST
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9348 $as_echo_n "checking for objdir... " >&6; }
9349 if ${lt_cv_objdir+:} false; then :
9350 $as_echo_n "(cached) " >&6
9352 rm -f .libs 2>/dev/null
9353 mkdir .libs 2>/dev/null
9354 if test -d .libs; then
9357 # MS-DOS does not allow filenames that begin with a dot.
9360 rmdir .libs 2>/dev/null
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9363 $as_echo "$lt_cv_objdir" >&6; }
9364 objdir=$lt_cv_objdir
9370 cat >>confdefs.h <<_ACEOF
9371 #define LT_OBJDIR "$lt_cv_objdir/"
9379 # AIX sometimes has problems with the GCC collect2 program. For some
9380 # reason, if we set the COLLECT_NAMES environment variable, the problems
9381 # vanish in a puff of smoke.
9382 if test set != "${COLLECT_NAMES+set}"; then
9384 export COLLECT_NAMES
9391 can_build_shared=yes
9393 # All known linkers require a '.a' archive for static linking (except MSVC,
9394 # which needs '.lib').
9397 with_gnu_ld=$lt_cv_prog_gnu_ld
9402 # Set sane defaults for various variables
9403 test -z "$CC" && CC=cc
9404 test -z "$LTCC" && LTCC=$CC
9405 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9406 test -z "$LD" && LD=ld
9407 test -z "$ac_objext" && ac_objext=o
9409 func_cc_basename $compiler
9410 cc_basename=$func_cc_basename_result
9413 # Only perform the check for file, if the check method requires it
9414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9415 case $deplibs_check_method in
9417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9419 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9421 $as_echo_n "(cached) " >&6
9425 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9428 lt_save_MAGIC_CMD=$MAGIC_CMD
9429 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9431 for ac_dir in $ac_dummy; do
9433 test -z "$ac_dir" && ac_dir=.
9434 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9435 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9436 if test -n "$file_magic_test_file"; then
9437 case $deplibs_check_method in
9439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9440 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9442 $EGREP "$file_magic_regex" > /dev/null; then
9447 *** Warning: the command libtool uses to detect shared libraries,
9448 *** $file_magic_cmd, produces output that libtool cannot recognize.
9449 *** The result is that libtool may fail to recognize shared libraries
9450 *** as such. This will affect the creation of libtool libraries that
9451 *** depend on shared libraries, but programs linked with such libtool
9452 *** libraries will work regardless of this problem. Nevertheless, you
9453 *** may want to report the problem to your system manager and/or to
9454 *** bug-libtool@gnu.org
9464 MAGIC_CMD=$lt_save_MAGIC_CMD
9469 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9470 if test -n "$MAGIC_CMD"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9472 $as_echo "$MAGIC_CMD" >&6; }
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9482 if test -z "$lt_cv_path_MAGIC_CMD"; then
9483 if test -n "$ac_tool_prefix"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9485 $as_echo_n "checking for file... " >&6; }
9486 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9487 $as_echo_n "(cached) " >&6
9491 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9494 lt_save_MAGIC_CMD=$MAGIC_CMD
9495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9497 for ac_dir in $ac_dummy; do
9499 test -z "$ac_dir" && ac_dir=.
9500 if test -f "$ac_dir/file"; then
9501 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9502 if test -n "$file_magic_test_file"; then
9503 case $deplibs_check_method in
9505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9506 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9508 $EGREP "$file_magic_regex" > /dev/null; then
9513 *** Warning: the command libtool uses to detect shared libraries,
9514 *** $file_magic_cmd, produces output that libtool cannot recognize.
9515 *** The result is that libtool may fail to recognize shared libraries
9516 *** as such. This will affect the creation of libtool libraries that
9517 *** depend on shared libraries, but programs linked with such libtool
9518 *** libraries will work regardless of this problem. Nevertheless, you
9519 *** may want to report the problem to your system manager and/or to
9520 *** bug-libtool@gnu.org
9530 MAGIC_CMD=$lt_save_MAGIC_CMD
9535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9536 if test -n "$MAGIC_CMD"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9538 $as_echo "$MAGIC_CMD" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9554 # Use C for the default configuration in the libtool script
9558 ac_cpp='$CPP $CPPFLAGS'
9559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9564 # Source file extension for C test sources.
9567 # Object file extension for compiled C test sources.
9571 # Code to be used in simple compile tests
9572 lt_simple_compile_test_code="int some_variable = 0;"
9574 # Code to be used in simple link tests
9575 lt_simple_link_test_code='int main(){return(0);}'
9583 # If no C compiler was specified, use CC.
9586 # If no C compiler flags were specified, use CFLAGS.
9587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9589 # Allow CC to be a program name with arguments.
9592 # Save the default compiler, since it gets overwritten when the other
9593 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9594 compiler_DEFAULT=$CC
9596 # save warnings/boilerplate of simple test code
9597 ac_outfile=conftest.$ac_objext
9598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9600 _lt_compiler_boilerplate=`cat conftest.err`
9603 ac_outfile=conftest.$ac_objext
9604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9606 _lt_linker_boilerplate=`cat conftest.err`
9611 ## There is no encapsulation within the following macros, do not change
9612 ## the running order or otherwise move them around unless you know exactly
9613 ## what you are doing...
9614 if test -n "$compiler"; then
9616 lt_prog_compiler_no_builtin_flag=
9618 if test yes = "$GCC"; then
9619 case $cc_basename in
9621 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9623 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9629 $as_echo_n "(cached) " >&6
9631 lt_cv_prog_compiler_rtti_exceptions=no
9632 ac_outfile=conftest.$ac_objext
9633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9634 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9635 # Insert the option either (1) after the last *FLAGS variable, or
9636 # (2) before a word containing "conftest.", or (3) at the end.
9637 # Note that $ac_compile itself does not contain backslashes and begins
9638 # with a dollar sign (not a hyphen), so the echo should work correctly.
9639 # The option is referenced via a variable to avoid confusing sed.
9640 lt_compile=`echo "$ac_compile" | $SED \
9641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9643 -e 's:$: $lt_compiler_flag:'`
9644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9645 (eval "$lt_compile" 2>conftest.err)
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 if (exit $ac_status) && test -s "$ac_outfile"; then
9650 # The compiler can only warn and ignore the option if not recognized
9651 # So say no if there are warnings other than the usual output.
9652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9655 lt_cv_prog_compiler_rtti_exceptions=yes
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9664 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9677 lt_prog_compiler_wl=
9678 lt_prog_compiler_pic=
9679 lt_prog_compiler_static=
9682 if test yes = "$GCC"; then
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_static='-static'
9688 # All AIX code is PIC.
9689 if test ia64 = "$host_cpu"; then
9690 # AIX 5 now supports IA64 processor
9691 lt_prog_compiler_static='-Bstatic'
9693 lt_prog_compiler_pic='-fPIC'
9699 # see comment about AmigaOS4 .so support
9700 lt_prog_compiler_pic='-fPIC'
9703 # FIXME: we need at least 68020 code to build shared libraries, but
9704 # adding the '-m68020' flag to GCC prevents building anything better,
9706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9712 # PIC is the default for these OSes.
9715 mingw* | cygwin* | pw32* | os2* | cegcc*)
9716 # This hack is so that the source file can tell whether it is being
9717 # built for inclusion in a dll (and should export symbols for example).
9718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9719 # (--disable-auto-import) libraries
9720 lt_prog_compiler_pic='-DDLL_EXPORT'
9723 lt_prog_compiler_static='$wl-static'
9728 darwin* | rhapsody*)
9729 # PIC is the default on this platform
9730 # Common symbols not allowed in MH_DYLIB files
9731 lt_prog_compiler_pic='-fno-common'
9735 # PIC is the default for Haiku.
9736 # The "-static" flag exists, but is broken.
9737 lt_prog_compiler_static=
9741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9743 # sets the default TLS model and affects inlining.
9749 lt_prog_compiler_pic='-fPIC'
9755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9756 # Instead, we relocate shared libraries at runtime.
9760 # Just because we use GCC doesn't mean we suddenly get shared libraries
9761 # on systems that don't support them.
9762 lt_prog_compiler_can_build_shared=no
9767 # QNX uses GNU C++, but need to define -shared option too, otherwise
9769 lt_prog_compiler_pic='-fPIC -shared'
9773 if test -d /usr/nec; then
9774 lt_prog_compiler_pic=-Kconform_pic
9779 lt_prog_compiler_pic='-fPIC'
9783 case $cc_basename in
9784 nvcc*) # Cuda Compiler Driver 2.2
9785 lt_prog_compiler_wl='-Xlinker '
9786 if test -n "$lt_prog_compiler_pic"; then
9787 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9792 # PORTME Check for flag to pass linker flags through the system compiler.
9795 lt_prog_compiler_wl='-Wl,'
9796 if test ia64 = "$host_cpu"; then
9797 # AIX 5 now supports IA64 processor
9798 lt_prog_compiler_static='-Bstatic'
9800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9804 darwin* | rhapsody*)
9805 # PIC is the default on this platform
9806 # Common symbols not allowed in MH_DYLIB files
9807 lt_prog_compiler_pic='-fno-common'
9808 case $cc_basename in
9810 # NAG Fortran compiler
9811 lt_prog_compiler_wl='-Wl,-Wl,,'
9812 lt_prog_compiler_pic='-PIC'
9813 lt_prog_compiler_static='-Bstatic'
9818 mingw* | cygwin* | pw32* | os2* | cegcc*)
9819 # This hack is so that the source file can tell whether it is being
9820 # built for inclusion in a dll (and should export symbols for example).
9821 lt_prog_compiler_pic='-DDLL_EXPORT'
9824 lt_prog_compiler_static='$wl-static'
9829 hpux9* | hpux10* | hpux11*)
9830 lt_prog_compiler_wl='-Wl,'
9831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9838 lt_prog_compiler_pic='+Z'
9841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9842 lt_prog_compiler_static='$wl-a ${wl}archive'
9845 irix5* | irix6* | nonstopux*)
9846 lt_prog_compiler_wl='-Wl,'
9847 # PIC (with -KPIC) is the default.
9848 lt_prog_compiler_static='-non_shared'
9851 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9852 case $cc_basename in
9853 # old Intel for x86_64, which still supported -KPIC.
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='-KPIC'
9857 lt_prog_compiler_static='-static'
9859 # flang / f18. f95 an alias for gfortran or flang on Debian
9860 flang* | f18* | f95*)
9861 lt_prog_compiler_wl='-Wl,'
9862 lt_prog_compiler_pic='-fPIC'
9863 lt_prog_compiler_static='-static'
9865 # icc used to be incompatible with GCC.
9866 # ICC 10 doesn't accept -KPIC any more.
9868 lt_prog_compiler_wl='-Wl,'
9869 lt_prog_compiler_pic='-fPIC'
9870 lt_prog_compiler_static='-static'
9872 # Lahey Fortran 8.1.
9874 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_pic='--shared'
9876 lt_prog_compiler_static='--static'
9879 # NAG Fortran compiler
9880 lt_prog_compiler_wl='-Wl,-Wl,,'
9881 lt_prog_compiler_pic='-PIC'
9882 lt_prog_compiler_static='-Bstatic'
9885 # Fabrice Bellard et al's Tiny C Compiler
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_pic='-fPIC'
9888 lt_prog_compiler_static='-static'
9890 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9891 # Portland Group compilers (*not* the Pentium gcc compiler,
9892 # which looks to be a dead project)
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-fpic'
9895 lt_prog_compiler_static='-Bstatic'
9898 lt_prog_compiler_wl='-Wl,'
9899 # All Alpha code is PIC.
9900 lt_prog_compiler_static='-non_shared'
9902 xl* | bgxl* | bgf* | mpixl*)
9903 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-qpic'
9906 lt_prog_compiler_static='-qstaticlink'
9909 case `$CC -V 2>&1 | sed 5q` in
9910 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9911 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 lt_prog_compiler_wl=''
9916 *Sun\ F* | *Sun*Fortran*)
9917 lt_prog_compiler_pic='-KPIC'
9918 lt_prog_compiler_static='-Bstatic'
9919 lt_prog_compiler_wl='-Qoption ld '
9923 lt_prog_compiler_pic='-KPIC'
9924 lt_prog_compiler_static='-Bstatic'
9925 lt_prog_compiler_wl='-Wl,'
9927 *Intel*\ [CF]*Compiler*)
9928 lt_prog_compiler_wl='-Wl,'
9929 lt_prog_compiler_pic='-fPIC'
9930 lt_prog_compiler_static='-static'
9933 lt_prog_compiler_wl='-Wl,'
9934 lt_prog_compiler_pic='-fpic'
9935 lt_prog_compiler_static='-Bstatic'
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9948 # QNX uses GNU C++, but need to define -shared option too, otherwise
9950 lt_prog_compiler_pic='-fPIC -shared'
9953 osf3* | osf4* | osf5*)
9954 lt_prog_compiler_wl='-Wl,'
9955 # All OSF/1 code is PIC.
9956 lt_prog_compiler_static='-non_shared'
9960 lt_prog_compiler_static='-non_shared'
9964 lt_prog_compiler_pic='-KPIC'
9965 lt_prog_compiler_static='-Bstatic'
9966 case $cc_basename in
9967 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9968 lt_prog_compiler_wl='-Qoption ld ';;
9970 lt_prog_compiler_wl='-Wl,';;
9975 lt_prog_compiler_wl='-Qoption ld '
9976 lt_prog_compiler_pic='-PIC'
9977 lt_prog_compiler_static='-Bstatic'
9980 sysv4 | sysv4.2uw2* | sysv4.3*)
9981 lt_prog_compiler_wl='-Wl,'
9982 lt_prog_compiler_pic='-KPIC'
9983 lt_prog_compiler_static='-Bstatic'
9987 if test -d /usr/nec; then
9988 lt_prog_compiler_pic='-Kconform_pic'
9989 lt_prog_compiler_static='-Bstatic'
9993 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9994 lt_prog_compiler_wl='-Wl,'
9995 lt_prog_compiler_pic='-KPIC'
9996 lt_prog_compiler_static='-Bstatic'
10000 lt_prog_compiler_wl='-Wl,'
10001 lt_prog_compiler_can_build_shared=no
10005 lt_prog_compiler_pic='-pic'
10006 lt_prog_compiler_static='-Bstatic'
10010 lt_prog_compiler_can_build_shared=no
10016 # For platforms that do not support PIC, -DPIC is meaningless:
10018 lt_prog_compiler_pic=
10021 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10026 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10027 if ${lt_cv_prog_compiler_pic+:} false; then :
10028 $as_echo_n "(cached) " >&6
10030 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10033 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10034 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10037 # Check to make sure the PIC flag actually works.
10039 if test -n "$lt_prog_compiler_pic"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10041 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10042 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 lt_cv_prog_compiler_pic_works=no
10046 ac_outfile=conftest.$ac_objext
10047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10048 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10049 # Insert the option either (1) after the last *FLAGS variable, or
10050 # (2) before a word containing "conftest.", or (3) at the end.
10051 # Note that $ac_compile itself does not contain backslashes and begins
10052 # with a dollar sign (not a hyphen), so the echo should work correctly.
10053 # The option is referenced via a variable to avoid confusing sed.
10054 lt_compile=`echo "$ac_compile" | $SED \
10055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10057 -e 's:$: $lt_compiler_flag:'`
10058 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10059 (eval "$lt_compile" 2>conftest.err)
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 if (exit $ac_status) && test -s "$ac_outfile"; then
10064 # The compiler can only warn and ignore the option if not recognized
10065 # So say no if there are warnings other than the usual output.
10066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10068 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10069 lt_cv_prog_compiler_pic_works=yes
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10076 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10078 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10079 case $lt_prog_compiler_pic in
10081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10084 lt_prog_compiler_pic=
10085 lt_prog_compiler_can_build_shared=no
10101 # Check to make sure the static flag actually works.
10103 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10105 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10106 if ${lt_cv_prog_compiler_static_works+:} false; then :
10107 $as_echo_n "(cached) " >&6
10109 lt_cv_prog_compiler_static_works=no
10110 save_LDFLAGS=$LDFLAGS
10111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10112 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10114 # The linker can only warn and ignore the option if not recognized
10115 # So say no if there are warnings
10116 if test -s conftest.err; then
10117 # Append any errors to the config.log.
10118 cat conftest.err 1>&5
10119 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10121 if diff conftest.exp conftest.er2 >/dev/null; then
10122 lt_cv_prog_compiler_static_works=yes
10125 lt_cv_prog_compiler_static_works=yes
10129 LDFLAGS=$save_LDFLAGS
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10133 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10135 if test yes = "$lt_cv_prog_compiler_static_works"; then
10138 lt_prog_compiler_static=
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10148 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10149 if ${lt_cv_prog_compiler_c_o+:} false; then :
10150 $as_echo_n "(cached) " >&6
10152 lt_cv_prog_compiler_c_o=no
10153 $RM -r conftest 2>/dev/null
10157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10159 lt_compiler_flag="-o out/conftest2.$ac_objext"
10160 # Insert the option either (1) after the last *FLAGS variable, or
10161 # (2) before a word containing "conftest.", or (3) at the end.
10162 # Note that $ac_compile itself does not contain backslashes and begins
10163 # with a dollar sign (not a hyphen), so the echo should work correctly.
10164 lt_compile=`echo "$ac_compile" | $SED \
10165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10167 -e 's:$: $lt_compiler_flag:'`
10168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10169 (eval "$lt_compile" 2>out/conftest.err)
10171 cat out/conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10175 # The compiler can only warn and ignore the option if not recognized
10176 # So say no if there are warnings
10177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10180 lt_cv_prog_compiler_c_o=yes
10185 # SGI C++ compiler will create directory out/ii_files/ for
10186 # template instantiation
10187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10188 $RM out/* && rmdir out
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10195 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10204 if ${lt_cv_prog_compiler_c_o+:} false; then :
10205 $as_echo_n "(cached) " >&6
10207 lt_cv_prog_compiler_c_o=no
10208 $RM -r conftest 2>/dev/null
10212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10214 lt_compiler_flag="-o out/conftest2.$ac_objext"
10215 # Insert the option either (1) after the last *FLAGS variable, or
10216 # (2) before a word containing "conftest.", or (3) at the end.
10217 # Note that $ac_compile itself does not contain backslashes and begins
10218 # with a dollar sign (not a hyphen), so the echo should work correctly.
10219 lt_compile=`echo "$ac_compile" | $SED \
10220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10222 -e 's:$: $lt_compiler_flag:'`
10223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10224 (eval "$lt_compile" 2>out/conftest.err)
10226 cat out/conftest.err >&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10230 # The compiler can only warn and ignore the option if not recognized
10231 # So say no if there are warnings
10232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10235 lt_cv_prog_compiler_c_o=yes
10240 # SGI C++ compiler will create directory out/ii_files/ for
10241 # template instantiation
10242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10243 $RM out/* && rmdir out
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10255 hard_links=nottested
10256 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10257 # do not overwrite the value of need_locks provided by the user
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10259 $as_echo_n "checking if we can lock with hard links... " >&6; }
10262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264 ln conftest.a conftest.b 2>&5 || hard_links=no
10265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10267 $as_echo "$hard_links" >&6; }
10268 if test no = "$hard_links"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10270 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10283 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10286 allow_undefined_flag=
10287 always_export_symbols=no
10289 archive_expsym_cmds=
10290 compiler_needs_object=no
10291 enable_shared_with_static_runtimes=no
10292 export_dynamic_flag_spec=
10293 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10294 hardcode_automatic=no
10296 hardcode_direct_absolute=no
10297 hardcode_libdir_flag_spec=
10298 hardcode_libdir_separator=
10299 hardcode_minus_L=no
10300 hardcode_shlibpath_var=unsupported
10302 link_all_deplibs=unknown
10304 module_expsym_cmds=
10305 old_archive_from_new_cmds=
10306 old_archive_from_expsyms_cmds=
10307 thread_safe_flag_spec=
10308 whole_archive_flag_spec=
10309 # include_expsyms should be a list of space-separated symbols to be *always*
10310 # included in the symbol list
10312 # exclude_expsyms can be an extended regexp of symbols to exclude
10313 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10314 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10315 # as well as any symbol that contains 'd'.
10316 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10317 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10318 # platforms (ab)use it in PIC code, but their linkers get confused if
10319 # the symbol is explicitly referenced. Since portable code cannot
10320 # rely on this symbol name, it's probably fine to never include it in
10321 # preloaded symbol tables.
10322 # Exclude shared library initialization/finalization symbols.
10323 extract_expsyms_cmds=
10326 cygwin* | mingw* | pw32* | cegcc*)
10327 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10328 # When not using gcc, we currently assume that we are using
10329 # Microsoft Visual C++.
10330 if test yes != "$GCC"; then
10335 # we just hope/assume this is gcc and not c89 (= MSVC++)
10338 openbsd* | bitrig*)
10341 linux* | k*bsd*-gnu | gnu*)
10342 link_all_deplibs=no
10348 # On some targets, GNU ld is compatible enough with the native linker
10349 # that we're better off using the native interface for both.
10350 lt_use_gnu_ld_interface=no
10351 if test yes = "$with_gnu_ld"; then
10354 # The AIX port of GNU ld has always aspired to compatibility
10355 # with the native linker. However, as the warning in the GNU ld
10356 # block says, versions before 2.19.5* couldn't really create working
10357 # shared libraries, regardless of the interface used.
10358 case `$LD -v 2>&1` in
10359 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10360 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10361 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10363 lt_use_gnu_ld_interface=yes
10368 lt_use_gnu_ld_interface=yes
10373 if test yes = "$lt_use_gnu_ld_interface"; then
10374 # If archive_cmds runs LD, not CC, wlarc should be empty
10377 # Set some defaults for GNU ld with shared library support. These
10378 # are reset later if shared libraries are not supported. Putting them
10379 # here allows them to be overridden if necessary.
10380 runpath_var=LD_RUN_PATH
10381 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10382 export_dynamic_flag_spec='$wl--export-dynamic'
10383 # ancient GNU ld didn't support --whole-archive et. al.
10384 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10385 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10387 whole_archive_flag_spec=
10389 supports_anon_versioning=no
10390 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10391 *GNU\ gold*) supports_anon_versioning=yes ;;
10392 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10393 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10394 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10395 *\ 2.11.*) ;; # other 2.11 versions
10396 *) supports_anon_versioning=yes ;;
10399 # See if GNU ld supports shared libraries.
10402 # On AIX/PPC, the GNU linker is very broken
10403 if test ia64 != "$host_cpu"; then
10407 *** Warning: the GNU linker, at least up to release 2.19, is reported
10408 *** to be unable to reliably create shared libraries on AIX.
10409 *** Therefore, libtool is disabling shared libraries support. If you
10410 *** really care for shared libraries, you may want to install binutils
10411 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10412 *** You will then need to restart the configuration process.
10421 # see comment about AmigaOS4 .so support
10422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10423 archive_expsym_cmds=''
10426 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)'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_minus_L=yes
10434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10435 allow_undefined_flag=unsupported
10436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10437 # support --undefined. This deserves some investigation. FIXME
10438 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10444 cygwin* | mingw* | pw32* | cegcc*)
10445 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10446 # as there is no search path for DLLs.
10447 hardcode_libdir_flag_spec='-L$libdir'
10448 export_dynamic_flag_spec='$wl--export-all-symbols'
10449 allow_undefined_flag=unsupported
10450 always_export_symbols=no
10451 enable_shared_with_static_runtimes=yes
10452 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'
10453 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10455 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10457 # If the export-symbols file already is a .def file, use it as
10458 # is; otherwise, prepend EXPORTS...
10459 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10460 cp $export_symbols $output_objdir/$soname.def;
10462 echo EXPORTS > $output_objdir/$soname.def;
10463 cat $export_symbols >> $output_objdir/$soname.def;
10465 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10473 link_all_deplibs=yes
10477 hardcode_libdir_flag_spec='-L$libdir'
10478 hardcode_minus_L=yes
10479 allow_undefined_flag=unsupported
10481 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10482 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10483 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10484 $ECHO EXPORTS >> $output_objdir/$libname.def~
10485 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10486 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10487 emximp -o $lib $output_objdir/$libname.def'
10488 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10489 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10490 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10491 $ECHO EXPORTS >> $output_objdir/$libname.def~
10492 prefix_cmds="$SED"~
10493 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10494 prefix_cmds="$prefix_cmds -e 1d";
10496 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10497 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10498 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10499 emximp -o $lib $output_objdir/$libname.def'
10500 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10501 enable_shared_with_static_runtimes=yes
10506 hardcode_shlibpath_var=no
10507 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10508 export_dynamic_flag_spec='$wl-E'
10509 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10510 # Instead, shared libraries are loaded at an image base (0x10000000 by
10511 # default) and relocated if they conflict, which is a slow very memory
10512 # consuming and fragmenting process. To avoid this, we pick a random,
10513 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10514 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10516 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'
10519 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10521 if test linux-dietlibc = "$host_os"; then
10522 case $cc_basename in
10523 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10526 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10527 && test no = "$tmp_diet"
10529 tmp_addflag=' $pic_flag'
10530 tmp_sharedflag='-shared'
10531 case $cc_basename,$host_cpu in
10532 pgcc*) # Portland Group C compiler
10533 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'
10534 tmp_addflag=' $pic_flag'
10536 pgf77* | pgf90* | pgf95* | pgfortran*)
10537 # Portland Group f77 and f90 compilers
10538 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'
10539 tmp_addflag=' $pic_flag -Mnomain' ;;
10540 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10541 tmp_addflag=' -i_dynamic' ;;
10542 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10543 tmp_addflag=' -i_dynamic -nofor_main' ;;
10544 ifc* | ifort*) # Intel Fortran compiler
10545 tmp_addflag=' -nofor_main' ;;
10546 lf95*) # Lahey Fortran 8.1
10547 whole_archive_flag_spec=
10548 tmp_sharedflag='--shared' ;;
10549 nagfor*) # NAGFOR 5.3
10550 tmp_sharedflag='-Wl,-shared' ;;
10551 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10552 tmp_sharedflag='-qmkshrobj'
10554 nvcc*) # Cuda Compiler Driver 2.2
10555 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'
10556 compiler_needs_object=yes
10559 case `$CC -V 2>&1 | sed 5q` in
10560 *Sun\ C*) # Sun C 5.9
10561 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'
10562 compiler_needs_object=yes
10563 tmp_sharedflag='-G' ;;
10564 *Sun\ F*) # Sun Fortran 8.3
10565 tmp_sharedflag='-G' ;;
10567 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10569 if test yes = "$supports_anon_versioning"; then
10570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10572 echo "local: *; };" >> $output_objdir/$libname.ver~
10573 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10576 case $cc_basename in
10578 export_dynamic_flag_spec='-rdynamic'
10580 xlf* | bgf* | bgxlf* | mpixlf*)
10581 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10582 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10584 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10585 if test yes = "$supports_anon_versioning"; then
10586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10588 echo "local: *; };" >> $output_objdir/$libname.ver~
10589 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10598 netbsd* | netbsdelf*-gnu)
10599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10600 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10604 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10609 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10614 *** create shared libraries on Solaris systems. Therefore, libtool
10615 *** is disabling shared libraries support. We urge you to upgrade GNU
10616 *** binutils to release 2.9.1 or newer. Another option is to modify
10617 *** your PATH or compiler configuration so that the native linker is
10618 *** used, and then restart.
10621 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10630 case `$LD -v 2>&1` in
10631 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10635 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10636 *** reliably create shared libraries on SCO systems. Therefore, libtool
10637 *** is disabling shared libraries support. We urge you to upgrade GNU
10638 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10639 *** your PATH or compiler configuration so that the native linker is
10640 *** used, and then restart.
10645 # For security reasons, it is highly recommended that you always
10646 # use absolute paths for naming shared libraries, and exclude the
10647 # DT_RUNPATH tag from executables and libraries. But doing so
10648 # requires that you compile everything twice, which is a pain.
10649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10661 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10663 hardcode_direct=yes
10664 hardcode_shlibpath_var=no
10668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10677 if test no = "$ld_shlibs"; then
10679 hardcode_libdir_flag_spec=
10680 export_dynamic_flag_spec=
10681 whole_archive_flag_spec=
10684 # PORTME fill in a description of your system's linker (not GNU ld)
10687 allow_undefined_flag=unsupported
10688 always_export_symbols=yes
10689 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'
10690 # Note: this linker hardcodes the directories in LIBPATH if there
10691 # are no directories specified by -L.
10692 hardcode_minus_L=yes
10693 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10694 # Neither direct hardcoding nor static linking is supported with a
10696 hardcode_direct=unsupported
10701 if test ia64 = "$host_cpu"; then
10702 # On IA64, the linker does run time linking by default, so we don't
10703 # have to do anything special.
10704 aix_use_runtimelinking=no
10705 exp_sym_flag='-Bexport'
10708 # If we're using GNU nm, then we don't want the "-C" option.
10709 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10710 # Without the "-l" option, or with the "-B" option, AIX nm treats
10711 # weak defined symbols like other global defined symbols, whereas
10712 # GNU nm marks them as "W".
10713 # While the 'weak' keyword is ignored in the Export File, we need
10714 # it in the Import File for the 'aix-soname' feature, so we have
10715 # to replace the "-B" option with "-P" for AIX nm.
10716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10717 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'
10719 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'
10721 aix_use_runtimelinking=no
10723 # Test if we are trying to use run time linking or normal
10724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10725 # have runtime linking enabled, and use it for executables.
10726 # For shared libraries, we enable/disable runtime linking
10727 # depending on the kind of the shared library created -
10728 # when "with_aix_soname,aix_use_runtimelinking" is:
10729 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10730 # "aix,yes" lib.so shared, rtl:yes, for executables
10731 # lib.a static archive
10732 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10733 # lib.a(lib.so.V) shared, rtl:no, for executables
10734 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10735 # lib.a(lib.so.V) shared, rtl:no
10736 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10737 # lib.a static archive
10738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10739 for ld_flag in $LDFLAGS; do
10740 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10741 aix_use_runtimelinking=yes
10745 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10746 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10747 # so we don't have lib.a shared libs to link our executables.
10748 # We have to force runtime linking in this case.
10749 aix_use_runtimelinking=yes
10750 LDFLAGS="$LDFLAGS -Wl,-brtl"
10755 exp_sym_flag='-bexport'
10756 no_entry_flag='-bnoentry'
10759 # When large executables or shared objects are built, AIX ld can
10760 # have problems creating the table of contents. If linking a library
10761 # or program results in "error TOC overflow" add -mminimal-toc to
10762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10766 hardcode_direct=yes
10767 hardcode_direct_absolute=yes
10768 hardcode_libdir_separator=':'
10769 link_all_deplibs=yes
10770 file_list_spec='$wl-f,'
10771 case $with_aix_soname,$aix_use_runtimelinking in
10772 aix,*) ;; # traditional, no import file
10773 svr4,* | *,yes) # use import file
10774 # The Import File defines what to hardcode.
10776 hardcode_direct_absolute=no
10780 if test yes = "$GCC"; then
10781 case $host_os in aix4.[012]|aix4.[012].*)
10782 # We only want to do this on AIX 4.2 and lower, the check
10783 # below for broken collect2 doesn't work under 4.3+
10784 collect2name=`$CC -print-prog-name=collect2`
10785 if test -f "$collect2name" &&
10786 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10788 # We have reworked collect2
10791 # We have old collect2
10792 hardcode_direct=unsupported
10793 # It fails to find uninstalled libraries when the uninstalled
10794 # path is not listed in the libpath. Setting hardcode_minus_L
10795 # to unsupported forces relinking
10796 hardcode_minus_L=yes
10797 hardcode_libdir_flag_spec='-L$libdir'
10798 hardcode_libdir_separator=
10802 shared_flag='-shared'
10803 if test yes = "$aix_use_runtimelinking"; then
10804 shared_flag="$shared_flag "'$wl-G'
10806 # Need to ensure runtime linking is disabled for the traditional
10807 # shared library, or the linker may eventually find shared libraries
10808 # /with/ Import File - we do not want to mix them.
10809 shared_flag_aix='-shared'
10810 shared_flag_svr4='-shared $wl-G'
10813 if test ia64 = "$host_cpu"; then
10814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10815 # chokes on -Wl,-G. The following line is correct:
10818 if test yes = "$aix_use_runtimelinking"; then
10819 shared_flag='$wl-G'
10821 shared_flag='$wl-bM:SRE'
10823 shared_flag_aix='$wl-bM:SRE'
10824 shared_flag_svr4='$wl-G'
10828 export_dynamic_flag_spec='$wl-bexpall'
10829 # It seems that -bexpall does not export symbols beginning with
10830 # underscore (_), so it is better to generate a list of symbols to export.
10831 always_export_symbols=yes
10832 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10833 # Warning - without using the other runtime loading flags (-brtl),
10834 # -berok will link without error, but may produce a broken library.
10835 allow_undefined_flag='-berok'
10836 # Determine the default libpath from the value encoded in an
10837 # empty executable.
10838 if test set = "${lt_cv_aix_libpath+set}"; then
10839 aix_libpath=$lt_cv_aix_libpath
10841 if ${lt_cv_aix_libpath_+:} false; then :
10842 $as_echo_n "(cached) " >&6
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10855 if ac_fn_c_try_link "$LINENO"; then :
10857 lt_aix_libpath_sed='
10858 /Import File Strings/,/^$/ {
10860 s/^0 *\([^ ]*\) *$/\1/
10864 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10865 # Check for a 64-bit object if we didn't find anything.
10866 if test -z "$lt_cv_aix_libpath_"; then
10867 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10870 rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 if test -z "$lt_cv_aix_libpath_"; then
10873 lt_cv_aix_libpath_=/usr/lib:/lib
10878 aix_libpath=$lt_cv_aix_libpath_
10881 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10882 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
10884 if test ia64 = "$host_cpu"; then
10885 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10886 allow_undefined_flag="-z nodefs"
10887 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"
10889 # Determine the default libpath from the value encoded in an
10890 # empty executable.
10891 if test set = "${lt_cv_aix_libpath+set}"; then
10892 aix_libpath=$lt_cv_aix_libpath
10894 if ${lt_cv_aix_libpath_+:} false; then :
10895 $as_echo_n "(cached) " >&6
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10908 if ac_fn_c_try_link "$LINENO"; then :
10910 lt_aix_libpath_sed='
10911 /Import File Strings/,/^$/ {
10913 s/^0 *\([^ ]*\) *$/\1/
10917 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10918 # Check for a 64-bit object if we didn't find anything.
10919 if test -z "$lt_cv_aix_libpath_"; then
10920 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10923 rm -f core conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 if test -z "$lt_cv_aix_libpath_"; then
10926 lt_cv_aix_libpath_=/usr/lib:/lib
10931 aix_libpath=$lt_cv_aix_libpath_
10934 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10935 # Warning - without using the other run time loading flags,
10936 # -berok will link without error, but may produce a broken library.
10937 no_undefined_flag=' $wl-bernotok'
10938 allow_undefined_flag=' $wl-berok'
10939 if test yes = "$with_gnu_ld"; then
10940 # We only use this code for GNU lds that support --whole-archive.
10941 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10943 # Exported symbols can be pulled into shared objects from archives
10944 whole_archive_flag_spec='$convenience'
10946 archive_cmds_need_lc=yes
10947 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10948 # -brtl affects multiple linker settings, -berok does not and is overridden later
10949 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10950 if test svr4 != "$with_aix_soname"; then
10951 # This is similar to how AIX traditionally builds its shared libraries.
10952 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'
10954 if test aix != "$with_aix_soname"; then
10955 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'
10957 # used by -dlpreopen to get the symbols
10958 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10960 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10968 # see comment about AmigaOS4 .so support
10969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10970 archive_expsym_cmds=''
10973 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)'
10974 hardcode_libdir_flag_spec='-L$libdir'
10975 hardcode_minus_L=yes
10981 export_dynamic_flag_spec=-rdynamic
10984 cygwin* | mingw* | pw32* | cegcc*)
10985 # When not using gcc, we currently assume that we are using
10986 # Microsoft Visual C++.
10987 # hardcode_libdir_flag_spec is actually meaningless, as there is
10988 # no search path for DLLs.
10989 case $cc_basename in
10992 hardcode_libdir_flag_spec=' '
10993 allow_undefined_flag=unsupported
10994 always_export_symbols=yes
10996 # Tell ltmain to make .lib files, not .a files.
10998 # Tell ltmain to make .dll files, not .so files.
11000 # FIXME: Setting linknames here is a bad hack.
11001 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11002 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11003 cp "$export_symbols" "$output_objdir/$soname.def";
11004 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11006 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11008 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11010 # The linker will not automatically build a static lib if we build a DLL.
11011 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11012 enable_shared_with_static_runtimes=yes
11013 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11014 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11016 old_postinstall_cmds='chmod 644 $oldlib'
11017 postlink_cmds='lt_outputfile="@OUTPUT@"~
11018 lt_tool_outputfile="@TOOL_OUTPUT@"~
11019 case $lt_outputfile in
11022 lt_outputfile=$lt_outputfile.exe
11023 lt_tool_outputfile=$lt_tool_outputfile.exe
11026 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11027 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11028 $RM "$lt_outputfile.manifest";
11032 # Assume MSVC wrapper
11033 hardcode_libdir_flag_spec=' '
11034 allow_undefined_flag=unsupported
11035 # Tell ltmain to make .lib files, not .a files.
11037 # Tell ltmain to make .dll files, not .so files.
11039 # FIXME: Setting linknames here is a bad hack.
11040 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11041 # The linker will automatically build a .lib file if we build a DLL.
11042 old_archive_from_new_cmds='true'
11043 # FIXME: Should let the user specify the lib program.
11044 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11045 enable_shared_with_static_runtimes=yes
11050 darwin* | rhapsody*)
11053 archive_cmds_need_lc=no
11055 hardcode_automatic=yes
11056 hardcode_shlibpath_var=unsupported
11057 if test yes = "$lt_cv_ld_force_load"; then
11058 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\"`'
11061 whole_archive_flag_spec=''
11063 link_all_deplibs=yes
11064 allow_undefined_flag=$_lt_dar_allow_undefined
11065 case $cc_basename in
11066 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11067 *) _lt_dar_can_shared=$GCC ;;
11069 if test yes = "$_lt_dar_can_shared"; then
11070 output_verbose_link_cmd=func_echo_all
11071 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11072 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11073 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"
11074 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"
11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084 hardcode_libdir_flag_spec='-L$libdir'
11085 hardcode_shlibpath_var=no
11088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11089 # support. Future versions do this automatically, but an explicit c++rt0.o
11090 # does not break anything, and helps significantly (at the cost of a little
11093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11094 hardcode_libdir_flag_spec='-R$libdir'
11095 hardcode_direct=yes
11096 hardcode_shlibpath_var=no
11099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11102 hardcode_direct=yes
11103 hardcode_minus_L=yes
11104 hardcode_shlibpath_var=no
11107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11108 freebsd* | dragonfly*)
11109 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11110 hardcode_libdir_flag_spec='-R$libdir'
11111 hardcode_direct=yes
11112 hardcode_shlibpath_var=no
11116 if test yes = "$GCC"; then
11117 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'
11119 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'
11121 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11122 hardcode_libdir_separator=:
11123 hardcode_direct=yes
11125 # hardcode_minus_L: Not really in the search PATH,
11126 # but as the default location of the library.
11127 hardcode_minus_L=yes
11128 export_dynamic_flag_spec='$wl-E'
11132 if test yes,no = "$GCC,$with_gnu_ld"; then
11133 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11135 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11137 if test no = "$with_gnu_ld"; then
11138 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11139 hardcode_libdir_separator=:
11140 hardcode_direct=yes
11141 hardcode_direct_absolute=yes
11142 export_dynamic_flag_spec='$wl-E'
11143 # hardcode_minus_L: Not really in the search PATH,
11144 # but as the default location of the library.
11145 hardcode_minus_L=yes
11150 if test yes,no = "$GCC,$with_gnu_ld"; then
11153 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11156 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11159 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11165 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11168 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11172 # Older versions of the 11.00 compiler do not understand -b yet
11173 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11175 $as_echo_n "checking if $CC understands -b... " >&6; }
11176 if ${lt_cv_prog_compiler__b+:} false; then :
11177 $as_echo_n "(cached) " >&6
11179 lt_cv_prog_compiler__b=no
11180 save_LDFLAGS=$LDFLAGS
11181 LDFLAGS="$LDFLAGS -b"
11182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11184 # The linker can only warn and ignore the option if not recognized
11185 # So say no if there are warnings
11186 if test -s conftest.err; then
11187 # Append any errors to the config.log.
11188 cat conftest.err 1>&5
11189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11191 if diff conftest.exp conftest.er2 >/dev/null; then
11192 lt_cv_prog_compiler__b=yes
11195 lt_cv_prog_compiler__b=yes
11199 LDFLAGS=$save_LDFLAGS
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11203 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11205 if test yes = "$lt_cv_prog_compiler__b"; then
11206 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11208 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11214 if test no = "$with_gnu_ld"; then
11215 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11216 hardcode_libdir_separator=:
11221 hardcode_shlibpath_var=no
11224 hardcode_direct=yes
11225 hardcode_direct_absolute=yes
11226 export_dynamic_flag_spec='$wl-E'
11228 # hardcode_minus_L: Not really in the search PATH,
11229 # but as the default location of the library.
11230 hardcode_minus_L=yes
11236 irix5* | irix6* | nonstopux*)
11237 if test yes = "$GCC"; then
11238 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'
11239 # Try to use the -exported_symbol ld option, if it does not
11240 # work, assume that -exports_file does not work either and
11241 # implicitly export all symbols.
11242 # This should be the same for all languages, so no per-tag cache variable.
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11244 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11245 if ${lt_cv_irix_exported_symbol+:} false; then :
11246 $as_echo_n "(cached) " >&6
11248 save_LDFLAGS=$LDFLAGS
11249 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252 int foo (void) { return 0; }
11254 if ac_fn_c_try_link "$LINENO"; then :
11255 lt_cv_irix_exported_symbol=yes
11257 lt_cv_irix_exported_symbol=no
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LDFLAGS=$save_LDFLAGS
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11264 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11265 if test yes = "$lt_cv_irix_exported_symbol"; then
11266 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'
11268 link_all_deplibs=no
11270 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'
11271 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'
11273 archive_cmds_need_lc='no'
11274 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11275 hardcode_libdir_separator=:
11277 link_all_deplibs=yes
11281 case $cc_basename in
11283 # Fabrice Bellard et al's Tiny C Compiler
11285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11290 netbsd* | netbsdelf*-gnu)
11291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11294 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11296 hardcode_libdir_flag_spec='-R$libdir'
11297 hardcode_direct=yes
11298 hardcode_shlibpath_var=no
11302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303 hardcode_direct=yes
11304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11305 hardcode_libdir_separator=:
11306 hardcode_shlibpath_var=no
11312 openbsd* | bitrig*)
11313 if test -f /usr/libexec/ld.so; then
11314 hardcode_direct=yes
11315 hardcode_shlibpath_var=no
11316 hardcode_direct_absolute=yes
11317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11319 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11320 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11321 export_dynamic_flag_spec='$wl-E'
11323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11324 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11332 hardcode_libdir_flag_spec='-L$libdir'
11333 hardcode_minus_L=yes
11334 allow_undefined_flag=unsupported
11336 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11337 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11338 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11339 $ECHO EXPORTS >> $output_objdir/$libname.def~
11340 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11341 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11342 emximp -o $lib $output_objdir/$libname.def'
11343 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11344 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11345 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11346 $ECHO EXPORTS >> $output_objdir/$libname.def~
11347 prefix_cmds="$SED"~
11348 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11349 prefix_cmds="$prefix_cmds -e 1d";
11351 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11352 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11353 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11354 emximp -o $lib $output_objdir/$libname.def'
11355 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11356 enable_shared_with_static_runtimes=yes
11360 if test yes = "$GCC"; then
11361 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11362 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'
11364 allow_undefined_flag=' -expect_unresolved \*'
11365 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'
11367 archive_cmds_need_lc='no'
11368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11369 hardcode_libdir_separator=:
11372 osf4* | osf5*) # as osf3* with the addition of -msym flag
11373 if test yes = "$GCC"; then
11374 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11375 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'
11376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11378 allow_undefined_flag=' -expect_unresolved \*'
11379 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'
11380 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~
11381 $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'
11383 # Both c and cxx compiler support -rpath directly
11384 hardcode_libdir_flag_spec='-rpath $libdir'
11386 archive_cmds_need_lc='no'
11387 hardcode_libdir_separator=:
11391 no_undefined_flag=' -z defs'
11392 if test yes = "$GCC"; then
11394 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11396 $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'
11398 case `$CC -V 2>&1` in
11401 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11403 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11407 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11409 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11413 hardcode_libdir_flag_spec='-R$libdir'
11414 hardcode_shlibpath_var=no
11416 solaris2.[0-5] | solaris2.[0-5].*) ;;
11418 # The compiler driver will combine and reorder linker options,
11419 # but understands '-z linker_flag'. GCC discards it without '$wl',
11420 # but is careful enough not to reorder.
11421 # Supported since Solaris 2.6 (maybe 2.5.1?)
11422 if test yes = "$GCC"; then
11423 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11425 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11429 link_all_deplibs=yes
11433 if test sequent = "$host_vendor"; then
11434 # Use $CC to link under sequent, because it throws in some extra .o
11435 # files that make .init and .fini sections work.
11436 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11438 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11440 hardcode_libdir_flag_spec='-L$libdir'
11441 hardcode_direct=yes
11442 hardcode_minus_L=yes
11443 hardcode_shlibpath_var=no
11447 case $host_vendor in
11449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11450 hardcode_direct=yes # is this really true???
11453 ## LD is ld it makes a PLAMLIB
11454 ## CC just makes a GrossModule.
11455 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11456 reload_cmds='$CC -r -o $output$reload_objs'
11460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11464 runpath_var='LD_RUN_PATH'
11465 hardcode_shlibpath_var=no
11469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11470 hardcode_shlibpath_var=no
11471 export_dynamic_flag_spec='-Bexport'
11475 if test -d /usr/nec; then
11476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11477 hardcode_shlibpath_var=no
11478 runpath_var=LD_RUN_PATH
11479 hardcode_runpath_var=yes
11484 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11485 no_undefined_flag='$wl-z,text'
11486 archive_cmds_need_lc=no
11487 hardcode_shlibpath_var=no
11488 runpath_var='LD_RUN_PATH'
11490 if test yes = "$GCC"; then
11491 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11492 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11494 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11495 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499 sysv5* | sco3.2v5* | sco5v6*)
11500 # Note: We CANNOT use -z defs as we might desire, because we do not
11501 # link with -lc, and that would cause any symbols used from libc to
11502 # always be unresolved, which means just about no library would
11503 # ever link correctly. If we're not using GNU ld we use -z text
11504 # though, which does catch some bad symbols but isn't as heavy-handed
11506 no_undefined_flag='$wl-z,text'
11507 allow_undefined_flag='$wl-z,nodefs'
11508 archive_cmds_need_lc=no
11509 hardcode_shlibpath_var=no
11510 hardcode_libdir_flag_spec='$wl-R,$libdir'
11511 hardcode_libdir_separator=':'
11512 link_all_deplibs=yes
11513 export_dynamic_flag_spec='$wl-Bexport'
11514 runpath_var='LD_RUN_PATH'
11516 if test yes = "$GCC"; then
11517 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11518 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11520 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11521 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11527 hardcode_libdir_flag_spec='-L$libdir'
11528 hardcode_shlibpath_var=no
11536 if test sni = "$host_vendor"; then
11538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11539 export_dynamic_flag_spec='$wl-Blargedynsym'
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11546 $as_echo "$ld_shlibs" >&6; }
11547 test no = "$ld_shlibs" && can_build_shared=no
11549 with_gnu_ld=$with_gnu_ld
11566 # Do we need to explicitly link libc?
11568 case "x$archive_cmds_need_lc" in
11570 # Assume -lc should be added
11571 archive_cmds_need_lc=yes
11573 if test yes,yes = "$GCC,$enable_shared"; then
11574 case $archive_cmds in
11576 # FIXME: we may have to deal with multi-command sequences.
11579 # Test whether the compiler implicitly links with -lc since on some
11580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11581 # to ld, don't add -lc before -lgcc.
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11583 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11584 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11585 $as_echo_n "(cached) " >&6
11588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11591 (eval $ac_compile) 2>&5
11593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594 test $ac_status = 0; } 2>conftest.err; then
11597 libobjs=conftest.$ac_objext
11599 wl=$lt_prog_compiler_wl
11600 pic_flag=$lt_prog_compiler_pic
11606 lt_save_allow_undefined_flag=$allow_undefined_flag
11607 allow_undefined_flag=
11608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11609 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612 test $ac_status = 0; }
11614 lt_cv_archive_cmds_need_lc=no
11616 lt_cv_archive_cmds_need_lc=yes
11618 allow_undefined_flag=$lt_save_allow_undefined_flag
11620 cat conftest.err 1>&5
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11626 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11627 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11786 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11788 if test yes = "$GCC"; then
11790 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11791 *) lt_awk_arg='/^libraries:/' ;;
11794 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11795 *) lt_sed_strip_eq='s|=/|/|g' ;;
11797 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11798 case $lt_search_path_spec in
11800 # if the path contains ";" then we assume it to be the separator
11801 # otherwise default to the standard path separator (i.e. ":") - it is
11802 # assumed that no part of a normal pathname contains ";" but that should
11803 # okay in the real world where ";" in dirpaths is itself problematic.
11804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11807 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11810 # Ok, now we have the path, separated by spaces, we can step through it
11811 # and add multilib dir if necessary...
11812 lt_tmp_lt_search_path_spec=
11813 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11814 # ...but if some path component already ends with the multilib dir we assume
11815 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11816 case "$lt_multi_os_dir; $lt_search_path_spec " in
11817 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11821 for lt_sys_path in $lt_search_path_spec; do
11822 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11824 elif test -n "$lt_multi_os_dir"; then
11825 test -d "$lt_sys_path" && \
11826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11829 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11830 BEGIN {RS = " "; FS = "/|\n";} {
11833 for (lt_i = NF; lt_i > 0; lt_i--) {
11834 if ($lt_i != "" && $lt_i != ".") {
11835 if ($lt_i == "..") {
11838 if (lt_count == 0) {
11839 lt_foo = "/" $lt_i lt_foo;
11846 if (lt_foo != "") { lt_freq[lt_foo]++; }
11847 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11849 # AWK program above erroneously prepends '/' to C:/dos/paths
11852 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11853 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11855 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11859 library_names_spec=
11860 libname_spec='lib$name'
11864 postuninstall_cmds=
11868 shlibpath_overrides_runpath=unknown
11870 dynamic_linker="$host_os ld.so"
11871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11872 need_lib_prefix=unknown
11873 hardcode_into_libs=no
11875 # when you set need_version to no, make sure it does not cause -set_version
11876 # flags to be left without arguments
11877 need_version=unknown
11883 version_type=linux # correct to gnu/linux during the next big refactor
11884 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11885 shlibpath_var=LIBPATH
11887 # AIX 3 has no versioning support, so we append a major version to the name.
11888 soname_spec='$libname$release$shared_ext$major'
11892 version_type=linux # correct to gnu/linux during the next big refactor
11895 hardcode_into_libs=yes
11896 if test ia64 = "$host_cpu"; then
11897 # AIX 5 supports IA64
11898 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11899 shlibpath_var=LD_LIBRARY_PATH
11901 # With GCC up to 2.95.x, collect2 would create an import file
11902 # for dependence libraries. The import file would start with
11903 # the line '#! .'. This would cause the generated library to
11904 # depend on '.', always an invalid library. This was fixed in
11905 # development snapshots of GCC prior to 3.0.
11907 aix4 | aix4.[01] | aix4.[01].*)
11908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11910 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11913 can_build_shared=no
11917 # Using Import Files as archive members, it is possible to support
11918 # filename-based versioning of shared library archives on AIX. While
11919 # this would work for both with and without runtime linking, it will
11920 # prevent static linking of such archives. So we do filename-based
11921 # shared library versioning with .so extension only, which is used
11922 # when both runtime linking and shared linking is enabled.
11923 # Unfortunately, runtime linking may impact performance, so we do
11924 # not want this to be the default eventually. Also, we use the
11925 # versioned .so libs for executables only if there is the -brtl
11926 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11927 # To allow for filename-based versioning support, we need to create
11928 # libNAME.so.V as an archive file, containing:
11929 # *) an Import File, referring to the versioned filename of the
11930 # archive as well as the shared archive member, telling the
11931 # bitwidth (32 or 64) of that shared object, and providing the
11932 # list of exported symbols of that shared object, eventually
11933 # decorated with the 'weak' keyword
11934 # *) the shared object with the F_LOADONLY flag set, to really avoid
11935 # it being seen by the linker.
11936 # At run time we better use the real file rather than another symlink,
11937 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11939 case $with_aix_soname,$aix_use_runtimelinking in
11940 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11941 # soname into executable. Probably we can add versioning support to
11942 # collect2, so additional links can be useful in future.
11943 aix,yes) # traditional libtool
11944 dynamic_linker='AIX unversionable lib.so'
11945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11946 # instead of lib<name>.a to let people know that these are not
11947 # typical AIX shared libraries.
11948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950 aix,no) # traditional AIX only
11951 dynamic_linker='AIX lib.a(lib.so.V)'
11952 # We preserve .a as extension for shared libraries through AIX4.2
11953 # and later when we are not doing run time linking.
11954 library_names_spec='$libname$release.a $libname.a'
11955 soname_spec='$libname$release$shared_ext$major'
11957 svr4,*) # full svr4 only
11958 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11959 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11960 # We do not specify a path in Import Files, so LIBPATH fires.
11961 shlibpath_overrides_runpath=yes
11963 *,yes) # both, prefer svr4
11964 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11965 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11966 # unpreferred sharedlib libNAME.a needs extra handling
11967 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"'
11968 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"'
11969 # We do not specify a path in Import Files, so LIBPATH fires.
11970 shlibpath_overrides_runpath=yes
11972 *,no) # both, prefer aix
11973 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11974 library_names_spec='$libname$release.a $libname.a'
11975 soname_spec='$libname$release$shared_ext$major'
11976 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11977 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)'
11978 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"'
11981 shlibpath_var=LIBPATH
11988 # Since July 2007 AmigaOS4 officially supports .so libraries.
11989 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11993 library_names_spec='$libname.ixlibrary $libname.a'
11994 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11995 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'
12001 library_names_spec='$libname$shared_ext'
12002 dynamic_linker="$host_os ld.so"
12003 shlibpath_var=LIBRARY_PATH
12007 version_type=linux # correct to gnu/linux during the next big refactor
12009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12010 soname_spec='$libname$release$shared_ext$major'
12011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12015 # the default ld.so.conf also contains /usr/contrib/lib and
12016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12017 # libtool to hard-code these into programs
12020 cygwin* | mingw* | pw32* | cegcc*)
12021 version_type=windows
12026 case $GCC,$cc_basename in
12029 library_names_spec='$libname.dll.a'
12030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12031 postinstall_cmds='base_file=`basename \$file`~
12032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12033 dldir=$destdir/`dirname \$dlpath`~
12034 test -d \$dldir || mkdir -p \$dldir~
12035 $install_prog $dir/$dlname \$dldir/$dlname~
12036 chmod a+x \$dldir/$dlname~
12037 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12038 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12041 dlpath=$dir/\$dldll~
12043 shlibpath_overrides_runpath=yes
12047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12048 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12050 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12053 # MinGW DLLs use traditional 'lib' prefix
12054 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12057 # pw32 DLLs use 'pw' prefix rather than 'lib'
12058 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12061 dynamic_linker='Win32 ld.exe'
12066 libname_spec='$name'
12067 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12068 library_names_spec='$libname.dll.lib'
12072 sys_lib_search_path_spec=
12075 for lt_path in $LIB
12078 # Let DOS variable expansion print the short 8.3 style file name.
12079 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12080 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12083 # Convert to MSYS style.
12084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12087 # Convert to unix form, then to dos form, then back to unix form
12088 # but this time dos style (no spaces!) so that the unix form looks
12089 # like /cygdrive/c/PROGRA~1:/cygdr...
12090 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12091 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12092 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12095 sys_lib_search_path_spec=$LIB
12096 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12097 # It is most probably a Windows format PATH.
12098 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12102 # FIXME: find the short name or the path components, as spaces are
12103 # common. (e.g. "Program Files" -> "PROGRA~1")
12107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12108 postinstall_cmds='base_file=`basename \$file`~
12109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12110 dldir=$destdir/`dirname \$dlpath`~
12111 test -d \$dldir || mkdir -p \$dldir~
12112 $install_prog $dir/$dlname \$dldir/$dlname'
12113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12114 dlpath=$dir/\$dldll~
12116 shlibpath_overrides_runpath=yes
12117 dynamic_linker='Win32 link.exe'
12121 # Assume MSVC wrapper
12122 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12123 dynamic_linker='Win32 ld.exe'
12126 # FIXME: first we should search . and the directory the executable is in
12130 darwin* | rhapsody*)
12131 dynamic_linker="$host_os dyld"
12132 version_type=darwin
12135 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12136 soname_spec='$libname$release$major$shared_ext'
12137 shlibpath_overrides_runpath=yes
12138 shlibpath_var=DYLD_LIBRARY_PATH
12139 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12141 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12146 version_type=linux # correct to gnu/linux during the next big refactor
12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150 soname_spec='$libname$release$shared_ext$major'
12151 shlibpath_var=LD_LIBRARY_PATH
12154 freebsd* | dragonfly*)
12155 # DragonFly does not have aout. When/if they implement a new
12156 # versioning mechanism, adjust this.
12157 if test -x /usr/bin/objformat; then
12158 objformat=`/usr/bin/objformat`
12161 freebsd[23].*) objformat=aout ;;
12162 *) objformat=elf ;;
12165 version_type=freebsd-$objformat
12166 case $version_type in
12168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12169 soname_spec='$libname$release$shared_ext$major'
12174 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12178 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=yes
12183 freebsd3.[01]* | freebsdelf3.[01]*)
12184 shlibpath_overrides_runpath=yes
12185 hardcode_into_libs=yes
12187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12189 shlibpath_overrides_runpath=no
12190 hardcode_into_libs=yes
12192 *) # from 4.6 on, and DragonFly
12193 shlibpath_overrides_runpath=yes
12194 hardcode_into_libs=yes
12200 version_type=linux # correct to gnu/linux during the next big refactor
12203 dynamic_linker="$host_os runtime_loader"
12204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205 soname_spec='$libname$release$shared_ext$major'
12206 shlibpath_var=LIBRARY_PATH
12207 shlibpath_overrides_runpath=no
12208 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12209 hardcode_into_libs=yes
12212 hpux9* | hpux10* | hpux11*)
12213 # Give a soname corresponding to the major version so that dld.sl refuses to
12214 # link against other versions.
12221 hardcode_into_libs=yes
12222 dynamic_linker="$host_os dld.so"
12223 shlibpath_var=LD_LIBRARY_PATH
12224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12226 soname_spec='$libname$release$shared_ext$major'
12227 if test 32 = "$HPUX_IA64_MODE"; then
12228 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12229 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12231 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12232 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12237 hardcode_into_libs=yes
12238 dynamic_linker="$host_os dld.sl"
12239 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242 soname_spec='$libname$release$shared_ext$major'
12243 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12248 dynamic_linker="$host_os dld.sl"
12249 shlibpath_var=SHLIB_PATH
12250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252 soname_spec='$libname$release$shared_ext$major'
12255 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12256 postinstall_cmds='chmod 555 $lib'
12257 # or fails outright, so override atomically:
12258 install_override_mode=555
12262 version_type=linux # correct to gnu/linux during the next big refactor
12265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12266 soname_spec='$libname$release$shared_ext$major'
12267 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=no
12270 hardcode_into_libs=yes
12273 irix5* | irix6* | nonstopux*)
12275 nonstopux*) version_type=nonstopux ;;
12277 if test yes = "$lt_cv_prog_gnu_ld"; then
12278 version_type=linux # correct to gnu/linux during the next big refactor
12285 soname_spec='$libname$release$shared_ext$major'
12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12288 irix5* | nonstopux*)
12289 libsuff= shlibsuff=
12292 case $LD in # libtool.m4 will add one of these switches to LD
12293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12294 libsuff= shlibsuff= libmagic=32-bit;;
12295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12296 libsuff=32 shlibsuff=N32 libmagic=N32;;
12297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12299 *) libsuff= shlibsuff= libmagic=never-match;;
12303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12304 shlibpath_overrides_runpath=no
12305 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12306 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12307 hardcode_into_libs=yes
12310 # No shared lib support for Linux oldld, aout, or coff.
12311 linux*oldld* | linux*aout* | linux*coff*)
12316 version_type=none # Android doesn't support versioned libraries.
12319 library_names_spec='$libname$release$shared_ext'
12320 soname_spec='$libname$release$shared_ext'
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes
12325 # This implies no fast_install, which is unacceptable.
12326 # Some rework will be needed to allow for fast_install
12327 # before this can be enabled.
12328 hardcode_into_libs=yes
12330 dynamic_linker='Android linker'
12331 # Don't embed -rpath directories since the linker doesn't support them.
12332 hardcode_libdir_flag_spec='-L$libdir'
12335 # This must be glibc/ELF.
12336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12337 version_type=linux # correct to gnu/linux during the next big refactor
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341 soname_spec='$libname$release$shared_ext$major'
12342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 shlibpath_overrides_runpath=no
12346 # Some binutils ld are patched to set DT_RUNPATH
12347 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12348 $as_echo_n "(cached) " >&6
12350 lt_cv_shlibpath_overrides_runpath=no
12351 save_LDFLAGS=$LDFLAGS
12352 save_libdir=$libdir
12353 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12354 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12366 if ac_fn_c_try_link "$LINENO"; then :
12367 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12368 lt_cv_shlibpath_overrides_runpath=yes
12371 rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LDFLAGS=$save_LDFLAGS
12374 libdir=$save_libdir
12378 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12380 # This implies no fast_install, which is unacceptable.
12381 # Some rework will be needed to allow for fast_install
12382 # before this can be enabled.
12383 hardcode_into_libs=yes
12385 # Ideally, we could use ldconfig to report *all* directores which are
12386 # searched for libraries, however this is still not possible. Aside from not
12387 # being certain /sbin/ldconfig is available, command
12388 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12389 # even though it is searched at run-time. Try to do the best guess by
12390 # appending ld.so.conf contents (and includes) to the search path.
12391 if test -f /etc/ld.so.conf; then
12392 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' ' '`
12393 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12396 # We used to test for /lib/ld.so.1 and disable shared libraries on
12397 # powerpc, because MkLinux only supported shared libraries with the
12398 # GNU dynamic linker. Since this was broken with cross compilers,
12399 # most powerpc-linux boxes support dynamic linking these days and
12400 # people can always --disable-shared, the test was removed, and we
12401 # assume the GNU/Linux dynamic linker is in use.
12402 dynamic_linker='GNU/Linux ld.so'
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12410 soname_spec='${libname}${release}${shared_ext}$major'
12411 shlibpath_var=LD_LIBRARY_PATH
12412 shlibpath_overrides_runpath=no
12413 hardcode_into_libs=yes
12414 dynamic_linker='NetBSD ld.elf_so'
12421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12422 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12424 dynamic_linker='NetBSD (a.out) ld.so'
12426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12427 soname_spec='$libname$release$shared_ext$major'
12428 dynamic_linker='NetBSD ld.elf_so'
12430 shlibpath_var=LD_LIBRARY_PATH
12431 shlibpath_overrides_runpath=yes
12432 hardcode_into_libs=yes
12436 version_type=linux # correct to gnu/linux during the next big refactor
12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12438 shlibpath_var=LD_LIBRARY_PATH
12439 shlibpath_overrides_runpath=yes
12446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12447 soname_spec='$libname$release$shared_ext$major'
12448 shlibpath_var=LD_LIBRARY_PATH
12449 shlibpath_overrides_runpath=no
12450 hardcode_into_libs=yes
12451 dynamic_linker='ldqnx.so'
12454 openbsd* | bitrig*)
12456 sys_lib_dlsearch_path_spec=/usr/lib
12458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12465 shlibpath_var=LD_LIBRARY_PATH
12466 shlibpath_overrides_runpath=yes
12470 libname_spec='$name'
12471 version_type=windows
12475 # OS/2 can only load a DLL with a base name of 8 characters or less.
12476 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12477 v=$($ECHO $release$versuffix | tr -d .-);
12478 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12479 $ECHO $n$v`$shared_ext'
12480 library_names_spec='${libname}_dll.$libext'
12481 dynamic_linker='OS/2 ld.exe'
12482 shlibpath_var=BEGINLIBPATH
12483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12485 postinstall_cmds='base_file=`basename \$file`~
12486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12487 dldir=$destdir/`dirname \$dlpath`~
12488 test -d \$dldir || mkdir -p \$dldir~
12489 $install_prog $dir/$dlname \$dldir/$dlname~
12490 chmod a+x \$dldir/$dlname~
12491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12495 dlpath=$dir/\$dldll~
12499 osf3* | osf4* | osf5*)
12503 soname_spec='$libname$release$shared_ext$major'
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12515 version_type=linux # correct to gnu/linux during the next big refactor
12518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519 soname_spec='$libname$release$shared_ext$major'
12520 shlibpath_var=LD_LIBRARY_PATH
12521 shlibpath_overrides_runpath=yes
12522 hardcode_into_libs=yes
12523 # ldd complains unless libraries are executable
12524 postinstall_cmds='chmod +x $lib'
12529 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath=yes
12533 if test yes = "$with_gnu_ld"; then
12540 version_type=linux # correct to gnu/linux during the next big refactor
12541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12542 soname_spec='$libname$release$shared_ext$major'
12543 shlibpath_var=LD_LIBRARY_PATH
12544 case $host_vendor in
12546 shlibpath_overrides_runpath=no
12548 runpath_var=LD_RUN_PATH
12556 shlibpath_overrides_runpath=no
12557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12563 if test -d /usr/nec; then
12564 version_type=linux # correct to gnu/linux during the next big refactor
12565 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12566 soname_spec='$libname$shared_ext.$major'
12567 shlibpath_var=LD_LIBRARY_PATH
12571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12576 soname_spec='$libname$release$shared_ext$major'
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=yes
12579 hardcode_into_libs=yes
12580 if test yes = "$with_gnu_ld"; then
12581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12590 sys_lib_dlsearch_path_spec='/usr/lib'
12594 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12595 version_type=linux # correct to gnu/linux during the next big refactor
12598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12599 shlibpath_var=LD_LIBRARY_PATH
12600 shlibpath_overrides_runpath=no
12601 hardcode_into_libs=yes
12605 version_type=linux # correct to gnu/linux during the next big refactor
12606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12607 soname_spec='$libname$release$shared_ext$major'
12608 shlibpath_var=LD_LIBRARY_PATH
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12616 $as_echo "$dynamic_linker" >&6; }
12617 test no = "$dynamic_linker" && can_build_shared=no
12619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12620 if test yes = "$GCC"; then
12621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12624 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12625 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12628 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12629 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12632 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12633 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12635 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12636 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12638 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12639 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12738 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12740 if test -n "$hardcode_libdir_flag_spec" ||
12741 test -n "$runpath_var" ||
12742 test yes = "$hardcode_automatic"; then
12744 # We can hardcode non-existent directories.
12745 if test no != "$hardcode_direct" &&
12746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12747 # have to relink, otherwise we might link with an installed library
12748 # when we should be linking with a yet-to-be-installed one
12749 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12750 test no != "$hardcode_minus_L"; then
12751 # Linking always hardcodes the temporary library directory.
12752 hardcode_action=relink
12754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12755 hardcode_action=immediate
12758 # We cannot hardcode anything, or else we can only hardcode existing
12760 hardcode_action=unsupported
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12763 $as_echo "$hardcode_action" >&6; }
12765 if test relink = "$hardcode_action" ||
12766 test yes = "$inherit_rpath"; then
12767 # Fast installation is not supported
12768 enable_fast_install=no
12769 elif test yes = "$shlibpath_overrides_runpath" ||
12770 test no = "$enable_shared"; then
12771 # Fast installation is not necessary
12772 enable_fast_install=needless
12780 if test yes != "$enable_dlopen"; then
12781 enable_dlopen=unknown
12782 enable_dlopen_self=unknown
12783 enable_dlopen_self_static=unknown
12790 lt_cv_dlopen=load_add_on
12792 lt_cv_dlopen_self=yes
12795 mingw* | pw32* | cegcc*)
12796 lt_cv_dlopen=LoadLibrary
12801 lt_cv_dlopen=dlopen
12806 # if libdl is installed we need to link against it
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12809 if ${ac_cv_lib_dl_dlopen+:} false; then :
12810 $as_echo_n "(cached) " >&6
12812 ac_check_lib_save_LIBS=$LIBS
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12832 if ac_fn_c_try_link "$LINENO"; then :
12833 ac_cv_lib_dl_dlopen=yes
12835 ac_cv_lib_dl_dlopen=no
12837 rm -f core conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12843 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12844 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12849 lt_cv_dlopen_self=yes
12856 # Don't try to run any link tests for TPF. We know it's impossible
12857 # because TPF is a cross-compiler, and we know how we open DSOs.
12858 lt_cv_dlopen=dlopen
12860 lt_cv_dlopen_self=no
12864 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12865 if test "x$ac_cv_func_shl_load" = xyes; then :
12866 lt_cv_dlopen=shl_load
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12869 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12870 if ${ac_cv_lib_dld_shl_load+:} false; then :
12871 $as_echo_n "(cached) " >&6
12873 ac_check_lib_save_LIBS=$LIBS
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12888 return shl_load ();
12893 if ac_fn_c_try_link "$LINENO"; then :
12894 ac_cv_lib_dld_shl_load=yes
12896 ac_cv_lib_dld_shl_load=no
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12903 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12904 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12905 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12907 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12908 if test "x$ac_cv_func_dlopen" = xyes; then :
12909 lt_cv_dlopen=dlopen
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12912 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12913 if ${ac_cv_lib_dl_dlopen+:} false; then :
12914 $as_echo_n "(cached) " >&6
12916 ac_check_lib_save_LIBS=$LIBS
12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12921 /* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12936 if ac_fn_c_try_link "$LINENO"; then :
12937 ac_cv_lib_dl_dlopen=yes
12939 ac_cv_lib_dl_dlopen=no
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12946 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12947 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12948 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12951 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12952 if ${ac_cv_lib_svld_dlopen+:} false; then :
12953 $as_echo_n "(cached) " >&6
12955 ac_check_lib_save_LIBS=$LIBS
12956 LIBS="-lsvld $LIBS"
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12975 if ac_fn_c_try_link "$LINENO"; then :
12976 ac_cv_lib_svld_dlopen=yes
12978 ac_cv_lib_svld_dlopen=no
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12985 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12986 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12987 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12990 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12991 if ${ac_cv_lib_dld_dld_link+:} false; then :
12992 $as_echo_n "(cached) " >&6
12994 ac_check_lib_save_LIBS=$LIBS
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13009 return dld_link ();
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_dld_dld_link=yes
13017 ac_cv_lib_dld_dld_link=no
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13024 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13025 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13026 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13047 if test no = "$lt_cv_dlopen"; then
13053 case $lt_cv_dlopen in
13055 save_CPPFLAGS=$CPPFLAGS
13056 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13058 save_LDFLAGS=$LDFLAGS
13059 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13062 LIBS="$lt_cv_dlopen_libs $LIBS"
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13065 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13066 if ${lt_cv_dlopen_self+:} false; then :
13067 $as_echo_n "(cached) " >&6
13069 if test yes = "$cross_compiling"; then :
13070 lt_cv_dlopen_self=cross
13072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13073 lt_status=$lt_dlunknown
13074 cat > conftest.$ac_ext <<_LT_EOF
13075 #line $LINENO "configure"
13076 #include "confdefs.h"
13085 # define LT_DLGLOBAL RTLD_GLOBAL
13088 # define LT_DLGLOBAL DL_GLOBAL
13090 # define LT_DLGLOBAL 0
13094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13095 find out it does not work in some platform. */
13096 #ifndef LT_DLLAZY_OR_NOW
13098 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13101 # define LT_DLLAZY_OR_NOW DL_LAZY
13104 # define LT_DLLAZY_OR_NOW RTLD_NOW
13107 # define LT_DLLAZY_OR_NOW DL_NOW
13109 # define LT_DLLAZY_OR_NOW 0
13116 /* When -fvisibility=hidden is used, assume the code has been annotated
13117 correspondingly for the symbols needed. */
13118 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13119 int fnord () __attribute__((visibility("default")));
13122 int fnord () { return 42; }
13125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13126 int status = $lt_dlunknown;
13130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13133 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13134 else puts (dlerror ());
13136 /* dlclose (self); */
13144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13145 (eval $ac_link) 2>&5
13147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13149 (./conftest; exit; ) >&5 2>/dev/null
13151 case x$lt_status in
13152 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13153 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13154 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13157 # compilation failed
13158 lt_cv_dlopen_self=no
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13166 $as_echo "$lt_cv_dlopen_self" >&6; }
13168 if test yes = "$lt_cv_dlopen_self"; then
13169 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13171 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13172 if ${lt_cv_dlopen_self_static+:} false; then :
13173 $as_echo_n "(cached) " >&6
13175 if test yes = "$cross_compiling"; then :
13176 lt_cv_dlopen_self_static=cross
13178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13179 lt_status=$lt_dlunknown
13180 cat > conftest.$ac_ext <<_LT_EOF
13181 #line $LINENO "configure"
13182 #include "confdefs.h"
13191 # define LT_DLGLOBAL RTLD_GLOBAL
13194 # define LT_DLGLOBAL DL_GLOBAL
13196 # define LT_DLGLOBAL 0
13200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13201 find out it does not work in some platform. */
13202 #ifndef LT_DLLAZY_OR_NOW
13204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13207 # define LT_DLLAZY_OR_NOW DL_LAZY
13210 # define LT_DLLAZY_OR_NOW RTLD_NOW
13213 # define LT_DLLAZY_OR_NOW DL_NOW
13215 # define LT_DLLAZY_OR_NOW 0
13222 /* When -fvisibility=hidden is used, assume the code has been annotated
13223 correspondingly for the symbols needed. */
13224 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13225 int fnord () __attribute__((visibility("default")));
13228 int fnord () { return 42; }
13231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13232 int status = $lt_dlunknown;
13236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13239 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13240 else puts (dlerror ());
13242 /* dlclose (self); */
13250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13251 (eval $ac_link) 2>&5
13253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13255 (./conftest; exit; ) >&5 2>/dev/null
13257 case x$lt_status in
13258 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13259 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13260 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13263 # compilation failed
13264 lt_cv_dlopen_self_static=no
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13275 CPPFLAGS=$save_CPPFLAGS
13276 LDFLAGS=$save_LDFLAGS
13281 case $lt_cv_dlopen_self in
13282 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13283 *) enable_dlopen_self=unknown ;;
13286 case $lt_cv_dlopen_self_static in
13287 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13288 *) enable_dlopen_self_static=unknown ;;
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13313 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13314 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316 $as_echo "yes" >&6; }
13318 # FIXME - insert some real tests, host_os isn't really good enough
13321 if test -n "$STRIP"; then
13322 striplib="$STRIP -x"
13323 old_striplib="$STRIP -S"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13325 $as_echo "yes" >&6; }
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13349 # Report what library types will actually be built
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13353 $as_echo "$can_build_shared" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13356 $as_echo_n "checking whether to build shared libraries... " >&6; }
13357 test no = "$can_build_shared" && enable_shared=no
13359 # On AIX, shared libraries and static libraries use the same namespace, and
13360 # are all built from PIC.
13363 test yes = "$enable_shared" && enable_static=no
13364 if test -n "$RANLIB"; then
13365 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13366 postinstall_cmds='$RANLIB $lib'
13371 if test ia64 != "$host_cpu"; then
13372 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13373 yes,aix,yes) ;; # shared object as lib.so file only
13374 yes,svr4,*) ;; # shared object as lib.so archive member only
13375 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13381 $as_echo "$enable_shared" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13384 $as_echo_n "checking whether to build static libraries... " >&6; }
13385 # Make sure either enable_shared or enable_static is yes.
13386 test yes = "$enable_shared" || enable_static=yes
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13388 $as_echo "$enable_static" >&6; }
13395 ac_cpp='$CPP $CPPFLAGS'
13396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13416 ac_config_commands="$ac_config_commands libtool"
13421 # Only expand once:
13425 # Check for programs
13427 ac_cpp='$CPP $CPPFLAGS'
13428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13431 if test -n "$ac_tool_prefix"; then
13432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435 $as_echo_n "checking for $ac_word... " >&6; }
13436 if ${ac_cv_prog_CC+:} false; then :
13437 $as_echo_n "(cached) " >&6
13439 if test -n "$CC"; then
13440 ac_cv_prog_CC="$CC" # Let the user override the test.
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13460 if test -n "$CC"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13462 $as_echo "$CC" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13470 if test -z "$ac_cv_prog_CC"; then
13472 # Extract the first word of "gcc", so it can be a program name with args.
13473 set dummy gcc; ac_word=$2
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475 $as_echo_n "checking for $ac_word... " >&6; }
13476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13477 $as_echo_n "(cached) " >&6
13479 if test -n "$ac_ct_CC"; then
13480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489 ac_cv_prog_ac_ct_CC="gcc"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13500 if test -n "$ac_ct_CC"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13502 $as_echo "$ac_ct_CC" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13508 if test "x$ac_ct_CC" = x; then
13511 case $cross_compiling:$ac_tool_warned in
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13515 ac_tool_warned=yes ;;
13520 CC="$ac_cv_prog_CC"
13523 if test -z "$CC"; then
13524 if test -n "$ac_tool_prefix"; then
13525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13526 set dummy ${ac_tool_prefix}cc; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_prog_CC+:} false; then :
13530 $as_echo_n "(cached) " >&6
13532 if test -n "$CC"; then
13533 ac_cv_prog_CC="$CC" # Let the user override the test.
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542 ac_cv_prog_CC="${ac_tool_prefix}cc"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 if test -n "$CC"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13555 $as_echo "$CC" >&6; }
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13564 if test -z "$CC"; then
13565 # Extract the first word of "cc", so it can be a program name with args.
13566 set dummy cc; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if ${ac_cv_prog_CC+:} false; then :
13570 $as_echo_n "(cached) " >&6
13572 if test -n "$CC"; then
13573 ac_cv_prog_CC="$CC" # Let the user override the test.
13575 ac_prog_rejected=no
13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13584 ac_prog_rejected=yes
13588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 if test $ac_prog_rejected = yes; then
13596 # We found a bogon in the path, so make sure we never use it.
13597 set dummy $ac_cv_prog_CC
13599 if test $# != 0; then
13600 # We chose a different compiler from the bogus one.
13601 # However, it has the same basename, so the bogon will be chosen
13602 # first if we set CC to just the basename; use the full file name.
13604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13610 if test -n "$CC"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13612 $as_echo "$CC" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13620 if test -z "$CC"; then
13621 if test -n "$ac_tool_prefix"; then
13622 for ac_prog in cl.exe
13624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if ${ac_cv_prog_CC+:} false; then :
13629 $as_echo_n "(cached) " >&6
13631 if test -n "$CC"; then
13632 ac_cv_prog_CC="$CC" # Let the user override the test.
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652 if test -n "$CC"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13654 $as_echo "$CC" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13661 test -n "$CC" && break
13664 if test -z "$CC"; then
13666 for ac_prog in cl.exe
13668 # Extract the first word of "$ac_prog", so it can be a program name with args.
13669 set dummy $ac_prog; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13673 $as_echo_n "(cached) " >&6
13675 if test -n "$ac_ct_CC"; then
13676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13679 for as_dir in $PATH
13682 test -z "$as_dir" && as_dir=.
13683 for ac_exec_ext in '' $ac_executable_extensions; do
13684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13685 ac_cv_prog_ac_ct_CC="$ac_prog"
13686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13696 if test -n "$ac_ct_CC"; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13698 $as_echo "$ac_ct_CC" >&6; }
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13705 test -n "$ac_ct_CC" && break
13708 if test "x$ac_ct_CC" = x; then
13711 case $cross_compiling:$ac_tool_warned in
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13715 ac_tool_warned=yes ;;
13724 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13726 as_fn_error $? "no acceptable C compiler found in \$PATH
13727 See \`config.log' for more details" "$LINENO" 5; }
13729 # Provide some information about the compiler.
13730 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13733 for ac_option in --version -v -V -qversion; do
13734 { { ac_try="$ac_compiler $ac_option >&5"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13740 $as_echo "$ac_try_echo"; } >&5
13741 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13743 if test -s conftest.err; then
13745 ... rest of stderr output deleted ...
13746 10q' conftest.err >conftest.er1
13747 cat conftest.er1 >&5
13749 rm -f conftest.er1 conftest.err
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; }
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13756 if ${ac_cv_c_compiler_gnu+:} false; then :
13757 $as_echo_n "(cached) " >&6
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13773 if ac_fn_c_try_compile "$LINENO"; then :
13774 ac_compiler_gnu=yes
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13784 if test $ac_compiler_gnu = yes; then
13789 ac_test_CFLAGS=${CFLAGS+set}
13790 ac_save_CFLAGS=$CFLAGS
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13793 if ${ac_cv_prog_cc_g+:} false; then :
13794 $as_echo_n "(cached) " >&6
13796 ac_save_c_werror_flag=$ac_c_werror_flag
13797 ac_c_werror_flag=yes
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13811 if ac_fn_c_try_compile "$LINENO"; then :
13812 ac_cv_prog_cc_g=yes
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13826 if ac_fn_c_try_compile "$LINENO"; then :
13829 ac_c_werror_flag=$ac_save_c_werror_flag
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13842 if ac_fn_c_try_compile "$LINENO"; then :
13843 ac_cv_prog_cc_g=yes
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850 ac_c_werror_flag=$ac_save_c_werror_flag
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13853 $as_echo "$ac_cv_prog_cc_g" >&6; }
13854 if test "$ac_test_CFLAGS" = set; then
13855 CFLAGS=$ac_save_CFLAGS
13856 elif test $ac_cv_prog_cc_g = yes; then
13857 if test "$GCC" = yes; then
13863 if test "$GCC" = yes; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13871 if ${ac_cv_prog_cc_c89+:} false; then :
13872 $as_echo_n "(cached) " >&6
13874 ac_cv_prog_cc_c89=no
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <stdarg.h>
13881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13882 struct buf { int x; };
13883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13884 static char *e (p, i)
13890 static char *f (char * (*g) (char **, int), char **p, ...)
13895 s = g (p, va_arg (v,int));
13900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13901 function prototypes and stuff, but not '\xHH' hex character constants.
13902 These don't provoke an error unfortunately, instead are silently treated
13903 as 'x'. The following induces an error, until -std is added to get
13904 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13905 array size at least. It's necessary to write '\x00'==0 to get something
13906 that's true only with -std. */
13907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13910 inside strings and character constants. */
13912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13914 int test (int i, double x);
13915 struct s1 {int (*f) (int a);};
13916 struct s2 {int (*f) (double a);};
13917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13923 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13929 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13931 CC="$ac_save_CC $ac_arg"
13932 if ac_fn_c_try_compile "$LINENO"; then :
13933 ac_cv_prog_cc_c89=$ac_arg
13935 rm -f core conftest.err conftest.$ac_objext
13936 test "x$ac_cv_prog_cc_c89" != "xno" && break
13938 rm -f conftest.$ac_ext
13943 case "x$ac_cv_prog_cc_c89" in
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13946 $as_echo "none needed" >&6; } ;;
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13949 $as_echo "unsupported" >&6; } ;;
13951 CC="$CC $ac_cv_prog_cc_c89"
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13955 if test "x$ac_cv_prog_cc_c89" != xno; then :
13960 ac_cpp='$CPP $CPPFLAGS'
13961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13971 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13972 if ${am_cv_prog_cc_c_o+:} false; then :
13973 $as_echo_n "(cached) " >&6
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13986 # Make sure it works both with $CC and with simple cc.
13987 # Following AC_PROG_CC_C_O, we do the test twice because some
13988 # compilers refuse to overwrite an existing .o file with -o,
13989 # though they will create one.
13990 am_cv_prog_cc_c_o=yes
13991 for am_i in 1 2; do
13992 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13993 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } \
13997 && test -f conftest2.$ac_objext; then
14000 am_cv_prog_cc_c_o=no
14004 rm -f core conftest*
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14008 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14009 if test "$am_cv_prog_cc_c_o" != yes; then
14010 # Losing compiler, so override with the script.
14011 # FIXME: It is wrong to rewrite CC.
14012 # But if we don't then we get into trouble of one sort or another.
14013 # A longer-term fix would be to have automake use am__CC in this case,
14014 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14015 CC="$am_aux_dir/compile $CC"
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14024 depcc="$CC" am_compiler_list=
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14027 $as_echo_n "checking dependency style of $depcc... " >&6; }
14028 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14029 $as_echo_n "(cached) " >&6
14031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14032 # We make a subdir and do the tests there. Otherwise we can end up
14033 # making bogus files that we don't know about and never remove. For
14034 # instance it was reported that on HP-UX the gcc test will end up
14035 # making a dummy file named 'D' -- because '-MD' means "put the output
14037 rm -rf conftest.dir
14039 # Copy depcomp to subdir because otherwise we won't find it if we're
14040 # using a relative directory.
14041 cp "$am_depcomp" conftest.dir
14043 # We will build objects and dependencies in a subdirectory because
14044 # it helps to detect inapplicable dependency modes. For instance
14045 # both Tru64's cc and ICC support -MD to output dependencies as a
14046 # side effect of compilation, but ICC will put the dependencies in
14047 # the current directory while Tru64 will put them in the object
14051 am_cv_CC_dependencies_compiler_type=none
14052 if test "$am_compiler_list" = ""; then
14053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14055 am__universal=false
14056 case " $depcc " in #(
14057 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14060 for depmode in $am_compiler_list; do
14061 # Setup a source with many dependencies, because some compilers
14062 # like to wrap large dependency lists on column 80 (with \), and
14063 # we should not choose a depcomp mode which is confused by this.
14065 # We need to recreate these files for each test, as the compiler may
14066 # overwrite some of them when testing with obscure command lines.
14067 # This happens at least with the AIX C compiler.
14069 for i in 1 2 3 4 5 6; do
14070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14072 # Solaris 10 /bin/sh.
14073 echo '/* dummy */' > sub/conftst$i.h
14075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14077 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14078 # mode. It turns out that the SunPro C++ compiler does not properly
14079 # handle '-M -o', and we need to detect this. Also, some Intel
14080 # versions had trouble with output in subdirs.
14081 am__obj=sub/conftest.${OBJEXT-o}
14082 am__minus_obj="-o $am__obj"
14085 # This depmode causes a compiler race in universal mode.
14086 test "$am__universal" = false || continue
14089 # After this tag, mechanisms are not by side-effect, so they'll
14090 # only be used when explicitly requested.
14091 if test "x$enable_dependency_tracking" = xyes; then
14097 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14098 # This compiler won't grok '-c -o', but also, the minuso test has
14099 # not run yet. These depmodes are late enough in the game, and
14100 # so weak that their functioning should not be impacted.
14101 am__obj=conftest.${OBJEXT-o}
14106 if depmode=$depmode \
14107 source=sub/conftest.c object=$am__obj \
14108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14110 >/dev/null 2>conftest.err &&
14111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14115 # icc doesn't choke on unknown options, it will just issue warnings
14116 # or remarks (even with -Werror). So we grep stderr for any message
14117 # that says an option was ignored or not supported.
14118 # When given -MP, icc 7.0 and 7.1 complain thusly:
14119 # icc: Command line warning: ignoring option '-M'; no argument required
14120 # The diagnosis changed in icc 8.0:
14121 # icc: Command line remark: option '-MP' not supported
14122 if (grep 'ignoring option' conftest.err ||
14123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14124 am_cv_CC_dependencies_compiler_type=$depmode
14131 rm -rf conftest.dir
14133 am_cv_CC_dependencies_compiler_type=none
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14142 test "x$enable_dependency_tracking" != xno \
14143 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14144 am__fastdepCC_TRUE=
14145 am__fastdepCC_FALSE='#'
14147 am__fastdepCC_TRUE='#'
14148 am__fastdepCC_FALSE=
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14153 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14154 if ${ac_cv_prog_cc_c99+:} false; then :
14155 $as_echo_n "(cached) " >&6
14157 ac_cv_prog_cc_c99=no
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 #include <stdarg.h>
14162 #include <stdbool.h>
14163 #include <stdlib.h>
14167 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14168 #define debug(...) fprintf (stderr, __VA_ARGS__)
14169 #define showlist(...) puts (#__VA_ARGS__)
14170 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14172 test_varargs_macros (void)
14177 debug ("X = %d\n", x);
14178 showlist (The first, second, and third items.);
14179 report (x>y, "x is %d but y is %d", x, y);
14182 // Check long long types.
14183 #define BIG64 18446744073709551615ull
14184 #define BIG32 4294967295ul
14185 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14187 your preprocessor is broken;
14191 your preprocessor is broken;
14193 static long long int bignum = -9223372036854775807LL;
14194 static unsigned long long int ubignum = BIG64;
14196 struct incomplete_array
14202 struct named_init {
14204 const wchar_t *name;
14208 typedef const char *ccp;
14211 test_restrict (ccp restrict text)
14213 // See if C++-style comments work.
14214 // Iterate through items via the restricted pointer.
14215 // Also check for declarations in for loops.
14216 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14221 // Check varargs and va_copy.
14223 test_varargs (const char *format, ...)
14226 va_start (args, format);
14228 va_copy (args_copy, args);
14238 case 's': // string
14239 str = va_arg (args_copy, const char *);
14242 number = va_arg (args_copy, int);
14245 fnumber = va_arg (args_copy, double);
14251 va_end (args_copy);
14260 _Bool success = false;
14263 if (test_restrict ("String literal") == 0)
14265 char *restrict newvar = "Another string";
14268 test_varargs ("s, d' f .", "string", 65, 34.234);
14269 test_varargs_macros ();
14271 // Check flexible array members.
14272 struct incomplete_array *ia =
14273 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14275 for (int i = 0; i < ia->datasize; ++i)
14276 ia->data[i] = i * 1.234;
14278 // Check named initializers.
14279 struct named_init ni = {
14281 .name = L"Test wide string",
14282 .average = 543.34343,
14287 int dynamic_array[ni.number];
14288 dynamic_array[ni.number - 1] = 543;
14290 // work around unused variable warnings
14291 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14292 || dynamic_array[ni.number - 1] != 543);
14298 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14300 CC="$ac_save_CC $ac_arg"
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302 ac_cv_prog_cc_c99=$ac_arg
14304 rm -f core conftest.err conftest.$ac_objext
14305 test "x$ac_cv_prog_cc_c99" != "xno" && break
14307 rm -f conftest.$ac_ext
14312 case "x$ac_cv_prog_cc_c99" in
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14315 $as_echo "none needed" >&6; } ;;
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14318 $as_echo "unsupported" >&6; } ;;
14320 CC="$CC $ac_cv_prog_cc_c99"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14322 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14324 if test "x$ac_cv_prog_cc_c99" != xno; then :
14331 ac_cpp='$CXXCPP $CPPFLAGS'
14332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14335 if test -z "$CXX"; then
14336 if test -n "$CCC"; then
14339 if test -n "$ac_tool_prefix"; then
14340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14345 $as_echo_n "checking for $ac_word... " >&6; }
14346 if ${ac_cv_prog_CXX+:} false; then :
14347 $as_echo_n "(cached) " >&6
14349 if test -n "$CXX"; then
14350 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14353 for as_dir in $PATH
14356 test -z "$as_dir" && as_dir=.
14357 for ac_exec_ext in '' $ac_executable_extensions; do
14358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14359 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14369 CXX=$ac_cv_prog_CXX
14370 if test -n "$CXX"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14372 $as_echo "$CXX" >&6; }
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14379 test -n "$CXX" && break
14382 if test -z "$CXX"; then
14384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14386 # Extract the first word of "$ac_prog", so it can be a program name with args.
14387 set dummy $ac_prog; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389 $as_echo_n "checking for $ac_word... " >&6; }
14390 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14391 $as_echo_n "(cached) " >&6
14393 if test -n "$ac_ct_CXX"; then
14394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14400 test -z "$as_dir" && as_dir=.
14401 for ac_exec_ext in '' $ac_executable_extensions; do
14402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403 ac_cv_prog_ac_ct_CXX="$ac_prog"
14404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14414 if test -n "$ac_ct_CXX"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14416 $as_echo "$ac_ct_CXX" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14423 test -n "$ac_ct_CXX" && break
14426 if test "x$ac_ct_CXX" = x; then
14429 case $cross_compiling:$ac_tool_warned in
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14433 ac_tool_warned=yes ;;
14441 # Provide some information about the compiler.
14442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14445 for ac_option in --version -v -V -qversion; do
14446 { { ac_try="$ac_compiler $ac_option >&5"
14447 case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14452 $as_echo "$ac_try_echo"; } >&5
14453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14455 if test -s conftest.err; then
14457 ... rest of stderr output deleted ...
14458 10q' conftest.err >conftest.er1
14459 cat conftest.er1 >&5
14461 rm -f conftest.er1 conftest.err
14462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14463 test $ac_status = 0; }
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14467 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14468 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14469 $as_echo_n "(cached) " >&6
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14485 if ac_fn_cxx_try_compile "$LINENO"; then :
14486 ac_compiler_gnu=yes
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14495 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14496 if test $ac_compiler_gnu = yes; then
14501 ac_test_CXXFLAGS=${CXXFLAGS+set}
14502 ac_save_CXXFLAGS=$CXXFLAGS
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14504 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14505 if ${ac_cv_prog_cxx_g+:} false; then :
14506 $as_echo_n "(cached) " >&6
14508 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14509 ac_cxx_werror_flag=yes
14510 ac_cv_prog_cxx_g=no
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14523 if ac_fn_cxx_try_compile "$LINENO"; then :
14524 ac_cv_prog_cxx_g=yes
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14538 if ac_fn_cxx_try_compile "$LINENO"; then :
14541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14554 if ac_fn_cxx_try_compile "$LINENO"; then :
14555 ac_cv_prog_cxx_g=yes
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14565 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14566 if test "$ac_test_CXXFLAGS" = set; then
14567 CXXFLAGS=$ac_save_CXXFLAGS
14568 elif test $ac_cv_prog_cxx_g = yes; then
14569 if test "$GXX" = yes; then
14575 if test "$GXX" = yes; then
14582 ac_cpp='$CPP $CPPFLAGS'
14583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14587 depcc="$CXX" am_compiler_list=
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14590 $as_echo_n "checking dependency style of $depcc... " >&6; }
14591 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14592 $as_echo_n "(cached) " >&6
14594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14595 # We make a subdir and do the tests there. Otherwise we can end up
14596 # making bogus files that we don't know about and never remove. For
14597 # instance it was reported that on HP-UX the gcc test will end up
14598 # making a dummy file named 'D' -- because '-MD' means "put the output
14600 rm -rf conftest.dir
14602 # Copy depcomp to subdir because otherwise we won't find it if we're
14603 # using a relative directory.
14604 cp "$am_depcomp" conftest.dir
14606 # We will build objects and dependencies in a subdirectory because
14607 # it helps to detect inapplicable dependency modes. For instance
14608 # both Tru64's cc and ICC support -MD to output dependencies as a
14609 # side effect of compilation, but ICC will put the dependencies in
14610 # the current directory while Tru64 will put them in the object
14614 am_cv_CXX_dependencies_compiler_type=none
14615 if test "$am_compiler_list" = ""; then
14616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14618 am__universal=false
14619 case " $depcc " in #(
14620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14623 for depmode in $am_compiler_list; do
14624 # Setup a source with many dependencies, because some compilers
14625 # like to wrap large dependency lists on column 80 (with \), and
14626 # we should not choose a depcomp mode which is confused by this.
14628 # We need to recreate these files for each test, as the compiler may
14629 # overwrite some of them when testing with obscure command lines.
14630 # This happens at least with the AIX C compiler.
14632 for i in 1 2 3 4 5 6; do
14633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14634 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14635 # Solaris 10 /bin/sh.
14636 echo '/* dummy */' > sub/conftst$i.h
14638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14640 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14641 # mode. It turns out that the SunPro C++ compiler does not properly
14642 # handle '-M -o', and we need to detect this. Also, some Intel
14643 # versions had trouble with output in subdirs.
14644 am__obj=sub/conftest.${OBJEXT-o}
14645 am__minus_obj="-o $am__obj"
14648 # This depmode causes a compiler race in universal mode.
14649 test "$am__universal" = false || continue
14652 # After this tag, mechanisms are not by side-effect, so they'll
14653 # only be used when explicitly requested.
14654 if test "x$enable_dependency_tracking" = xyes; then
14660 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14661 # This compiler won't grok '-c -o', but also, the minuso test has
14662 # not run yet. These depmodes are late enough in the game, and
14663 # so weak that their functioning should not be impacted.
14664 am__obj=conftest.${OBJEXT-o}
14669 if depmode=$depmode \
14670 source=sub/conftest.c object=$am__obj \
14671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14673 >/dev/null 2>conftest.err &&
14674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14678 # icc doesn't choke on unknown options, it will just issue warnings
14679 # or remarks (even with -Werror). So we grep stderr for any message
14680 # that says an option was ignored or not supported.
14681 # When given -MP, icc 7.0 and 7.1 complain thusly:
14682 # icc: Command line warning: ignoring option '-M'; no argument required
14683 # The diagnosis changed in icc 8.0:
14684 # icc: Command line remark: option '-MP' not supported
14685 if (grep 'ignoring option' conftest.err ||
14686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14687 am_cv_CXX_dependencies_compiler_type=$depmode
14694 rm -rf conftest.dir
14696 am_cv_CXX_dependencies_compiler_type=none
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14701 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14702 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14705 test "x$enable_dependency_tracking" != xno \
14706 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14707 am__fastdepCXX_TRUE=
14708 am__fastdepCXX_FALSE='#'
14710 am__fastdepCXX_TRUE='#'
14711 am__fastdepCXX_FALSE=
14717 func_stripname_cnf ()
14720 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14721 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14723 } # func_stripname_cnf
14725 if test -n "$CXX" && ( test no != "$CXX" &&
14726 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14727 (test g++ != "$CXX"))); then
14729 ac_cpp='$CXXCPP $CPPFLAGS'
14730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14734 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14735 if test -z "$CXXCPP"; then
14736 if ${ac_cv_prog_CXXCPP+:} false; then :
14737 $as_echo_n "(cached) " >&6
14739 # Double quotes because CXXCPP needs to be expanded
14740 for CXXCPP in "$CXX -E" "/lib/cpp"
14742 ac_preproc_ok=false
14743 for ac_cxx_preproc_warn_flag in '' yes
14745 # Use a header file that comes with gcc, so configuring glibc
14746 # with a fresh cross-compiler works.
14747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 # <limits.h> exists even on freestanding compilers.
14749 # On the NeXT, cc -E runs the code through the compiler's parser,
14750 # not just through cpp. "Syntax error" is here to catch this case.
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14754 # include <limits.h>
14756 # include <assert.h>
14760 if ac_fn_cxx_try_cpp "$LINENO"; then :
14763 # Broken: fails on valid input.
14766 rm -f conftest.err conftest.i conftest.$ac_ext
14768 # OK, works on sane cases. Now check whether nonexistent headers
14769 # can be detected and how.
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 #include <ac_nonexistent.h>
14774 if ac_fn_cxx_try_cpp "$LINENO"; then :
14775 # Broken: success on invalid input.
14778 # Passes both tests.
14782 rm -f conftest.err conftest.i conftest.$ac_ext
14785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14786 rm -f conftest.i conftest.err conftest.$ac_ext
14787 if $ac_preproc_ok; then :
14792 ac_cv_prog_CXXCPP=$CXXCPP
14795 CXXCPP=$ac_cv_prog_CXXCPP
14797 ac_cv_prog_CXXCPP=$CXXCPP
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14800 $as_echo "$CXXCPP" >&6; }
14801 ac_preproc_ok=false
14802 for ac_cxx_preproc_warn_flag in '' yes
14804 # Use a header file that comes with gcc, so configuring glibc
14805 # with a fresh cross-compiler works.
14806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14807 # <limits.h> exists even on freestanding compilers.
14808 # On the NeXT, cc -E runs the code through the compiler's parser,
14809 # not just through cpp. "Syntax error" is here to catch this case.
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 # include <limits.h>
14815 # include <assert.h>
14819 if ac_fn_cxx_try_cpp "$LINENO"; then :
14822 # Broken: fails on valid input.
14825 rm -f conftest.err conftest.i conftest.$ac_ext
14827 # OK, works on sane cases. Now check whether nonexistent headers
14828 # can be detected and how.
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831 #include <ac_nonexistent.h>
14833 if ac_fn_cxx_try_cpp "$LINENO"; then :
14834 # Broken: success on invalid input.
14837 # Passes both tests.
14841 rm -f conftest.err conftest.i conftest.$ac_ext
14844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14845 rm -f conftest.i conftest.err conftest.$ac_ext
14846 if $ac_preproc_ok; then :
14849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14851 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14852 See \`config.log' for more details" "$LINENO" 5; }
14856 ac_cpp='$CPP $CPPFLAGS'
14857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862 _lt_caught_CXX_error=yes
14866 ac_cpp='$CXXCPP $CPPFLAGS'
14867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14871 archive_cmds_need_lc_CXX=no
14872 allow_undefined_flag_CXX=
14873 always_export_symbols_CXX=no
14874 archive_expsym_cmds_CXX=
14875 compiler_needs_object_CXX=no
14876 export_dynamic_flag_spec_CXX=
14877 hardcode_direct_CXX=no
14878 hardcode_direct_absolute_CXX=no
14879 hardcode_libdir_flag_spec_CXX=
14880 hardcode_libdir_separator_CXX=
14881 hardcode_minus_L_CXX=no
14882 hardcode_shlibpath_var_CXX=unsupported
14883 hardcode_automatic_CXX=no
14884 inherit_rpath_CXX=no
14886 module_expsym_cmds_CXX=
14887 link_all_deplibs_CXX=unknown
14888 old_archive_cmds_CXX=$old_archive_cmds
14889 reload_flag_CXX=$reload_flag
14890 reload_cmds_CXX=$reload_cmds
14891 no_undefined_flag_CXX=
14892 whole_archive_flag_spec_CXX=
14893 enable_shared_with_static_runtimes_CXX=no
14895 # Source file extension for C++ test sources.
14898 # Object file extension for compiled C++ test sources.
14902 # No sense in running all these tests if we already determined that
14903 # the CXX compiler isn't working. Some variables (like enable_shared)
14904 # are currently assumed to apply to all compilers on this platform,
14905 # and will be corrupted by setting them based on a non-working compiler.
14906 if test yes != "$_lt_caught_CXX_error"; then
14907 # Code to be used in simple compile tests
14908 lt_simple_compile_test_code="int some_variable = 0;"
14910 # Code to be used in simple link tests
14911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14920 # If no C compiler was specified, use CC.
14923 # If no C compiler flags were specified, use CFLAGS.
14924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14926 # Allow CC to be a program name with arguments.
14930 # save warnings/boilerplate of simple test code
14931 ac_outfile=conftest.$ac_objext
14932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14934 _lt_compiler_boilerplate=`cat conftest.err`
14937 ac_outfile=conftest.$ac_objext
14938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14940 _lt_linker_boilerplate=`cat conftest.err`
14944 # Allow CC to be a program name with arguments.
14946 lt_save_CFLAGS=$CFLAGS
14950 lt_save_with_gnu_ld=$with_gnu_ld
14951 lt_save_path_LD=$lt_cv_path_LD
14952 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14953 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14955 $as_unset lt_cv_prog_gnu_ld
14957 if test -n "${lt_cv_path_LDCXX+set}"; then
14958 lt_cv_path_LD=$lt_cv_path_LDCXX
14960 $as_unset lt_cv_path_LD
14962 test -z "${LDCXX+set}" || LD=$LDCXX
14967 func_cc_basename $compiler
14968 cc_basename=$func_cc_basename_result
14971 if test -n "$compiler"; then
14972 # We don't want -fno-exception when compiling C++ code, so set the
14973 # no_builtin_flag separately
14974 if test yes = "$GXX"; then
14975 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14977 lt_prog_compiler_no_builtin_flag_CXX=
14980 if test yes = "$GXX"; then
14981 # Set up default GNU C++ configuration
14985 # Check whether --with-gnu-ld was given.
14986 if test "${with_gnu_ld+set}" = set; then :
14987 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14993 if test yes = "$GCC"; then
14994 # Check if gcc -print-prog-name=ld gives a path.
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14996 $as_echo_n "checking for ld used by $CC... " >&6; }
14999 # gcc leaves a trailing carriage return, which upsets mingw
15000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15005 # Accept absolute paths.
15007 re_direlt='/[^/][^/]*/\.\./'
15008 # Canonicalize the pathname of ld
15009 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15010 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15011 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15013 test -z "$LD" && LD=$ac_prog
15016 # If it fails, then pretend we aren't using GCC.
15020 # If it is relative, then search for the first ld in PATH.
15021 with_gnu_ld=unknown
15024 elif test yes = "$with_gnu_ld"; then
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15026 $as_echo_n "checking for GNU ld... " >&6; }
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15029 $as_echo_n "checking for non-GNU ld... " >&6; }
15031 if ${lt_cv_path_LD+:} false; then :
15032 $as_echo_n "(cached) " >&6
15034 if test -z "$LD"; then
15035 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15036 for ac_dir in $PATH; do
15038 test -z "$ac_dir" && ac_dir=.
15039 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15040 lt_cv_path_LD=$ac_dir/$ac_prog
15041 # Check to see if the program is GNU ld. I'd rather use --version,
15042 # but apparently some variants of GNU ld only accept -v.
15043 # Break only if it was the GNU/non-GNU ld that we prefer.
15044 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15045 *GNU* | *'with BFD'*)
15046 test no != "$with_gnu_ld" && break
15049 test yes != "$with_gnu_ld" && break
15056 lt_cv_path_LD=$LD # Let the user override the test with a path.
15061 if test -n "$LD"; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15063 $as_echo "$LD" >&6; }
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 $as_echo "no" >&6; }
15068 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15070 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15071 if ${lt_cv_prog_gnu_ld+:} false; then :
15072 $as_echo_n "(cached) " >&6
15074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15075 case `$LD -v 2>&1 </dev/null` in
15076 *GNU* | *'with BFD'*)
15077 lt_cv_prog_gnu_ld=yes
15080 lt_cv_prog_gnu_ld=no
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15085 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15086 with_gnu_ld=$lt_cv_prog_gnu_ld
15094 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15095 # archiving commands below assume that GNU ld is being used.
15096 if test yes = "$with_gnu_ld"; then
15097 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15098 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'
15100 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15101 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15103 # If archive_cmds runs LD, not CC, wlarc should be empty
15104 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15105 # investigate it a little bit more. (MM)
15108 # ancient GNU ld didn't support --whole-archive et. al.
15109 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15110 $GREP 'no-whole-archive' > /dev/null; then
15111 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15113 whole_archive_flag_spec_CXX=
15119 # A generic and very simple default shared library creation
15120 # command for GNU C++ for the case where it uses the native
15121 # linker, instead of GNU ld. If possible, this setting should
15122 # overridden to take advantage of the native linker features on
15123 # the platform it is being used on.
15124 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15127 # Commands to make compiler produce verbose output that lists
15128 # what "hidden" libraries, object files and flags are used when
15129 # linking a shared library.
15130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15138 # PORTME: fill in a description of your system's C++ link characteristics
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15144 # FIXME: insert proper C++ library support
15148 if test ia64 = "$host_cpu"; then
15149 # On IA64, the linker does run time linking by default, so we don't
15150 # have to do anything special.
15151 aix_use_runtimelinking=no
15152 exp_sym_flag='-Bexport'
15155 aix_use_runtimelinking=no
15157 # Test if we are trying to use run time linking or normal
15158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15159 # have runtime linking enabled, and use it for executables.
15160 # For shared libraries, we enable/disable runtime linking
15161 # depending on the kind of the shared library created -
15162 # when "with_aix_soname,aix_use_runtimelinking" is:
15163 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15164 # "aix,yes" lib.so shared, rtl:yes, for executables
15165 # lib.a static archive
15166 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15167 # lib.a(lib.so.V) shared, rtl:no, for executables
15168 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15169 # lib.a(lib.so.V) shared, rtl:no
15170 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15171 # lib.a static archive
15172 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15173 for ld_flag in $LDFLAGS; do
15176 aix_use_runtimelinking=yes
15181 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15182 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15183 # so we don't have lib.a shared libs to link our executables.
15184 # We have to force runtime linking in this case.
15185 aix_use_runtimelinking=yes
15186 LDFLAGS="$LDFLAGS -Wl,-brtl"
15191 exp_sym_flag='-bexport'
15192 no_entry_flag='-bnoentry'
15195 # When large executables or shared objects are built, AIX ld can
15196 # have problems creating the table of contents. If linking a library
15197 # or program results in "error TOC overflow" add -mminimal-toc to
15198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15201 archive_cmds_CXX=''
15202 hardcode_direct_CXX=yes
15203 hardcode_direct_absolute_CXX=yes
15204 hardcode_libdir_separator_CXX=':'
15205 link_all_deplibs_CXX=yes
15206 file_list_spec_CXX='$wl-f,'
15207 case $with_aix_soname,$aix_use_runtimelinking in
15208 aix,*) ;; # no import file
15209 svr4,* | *,yes) # use import file
15210 # The Import File defines what to hardcode.
15211 hardcode_direct_CXX=no
15212 hardcode_direct_absolute_CXX=no
15216 if test yes = "$GXX"; then
15217 case $host_os in aix4.[012]|aix4.[012].*)
15218 # We only want to do this on AIX 4.2 and lower, the check
15219 # below for broken collect2 doesn't work under 4.3+
15220 collect2name=`$CC -print-prog-name=collect2`
15221 if test -f "$collect2name" &&
15222 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15224 # We have reworked collect2
15227 # We have old collect2
15228 hardcode_direct_CXX=unsupported
15229 # It fails to find uninstalled libraries when the uninstalled
15230 # path is not listed in the libpath. Setting hardcode_minus_L
15231 # to unsupported forces relinking
15232 hardcode_minus_L_CXX=yes
15233 hardcode_libdir_flag_spec_CXX='-L$libdir'
15234 hardcode_libdir_separator_CXX=
15237 shared_flag='-shared'
15238 if test yes = "$aix_use_runtimelinking"; then
15239 shared_flag=$shared_flag' $wl-G'
15241 # Need to ensure runtime linking is disabled for the traditional
15242 # shared library, or the linker may eventually find shared libraries
15243 # /with/ Import File - we do not want to mix them.
15244 shared_flag_aix='-shared'
15245 shared_flag_svr4='-shared $wl-G'
15248 if test ia64 = "$host_cpu"; then
15249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15250 # chokes on -Wl,-G. The following line is correct:
15253 if test yes = "$aix_use_runtimelinking"; then
15254 shared_flag='$wl-G'
15256 shared_flag='$wl-bM:SRE'
15258 shared_flag_aix='$wl-bM:SRE'
15259 shared_flag_svr4='$wl-G'
15263 export_dynamic_flag_spec_CXX='$wl-bexpall'
15264 # It seems that -bexpall does not export symbols beginning with
15265 # underscore (_), so it is better to generate a list of symbols to
15267 always_export_symbols_CXX=yes
15268 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15269 # Warning - without using the other runtime loading flags (-brtl),
15270 # -berok will link without error, but may produce a broken library.
15271 # The "-G" linker flag allows undefined symbols.
15272 no_undefined_flag_CXX='-bernotok'
15273 # Determine the default libpath from the value encoded in an empty
15275 if test set = "${lt_cv_aix_libpath+set}"; then
15276 aix_libpath=$lt_cv_aix_libpath
15278 if ${lt_cv_aix_libpath__CXX+:} false; then :
15279 $as_echo_n "(cached) " >&6
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15292 if ac_fn_cxx_try_link "$LINENO"; then :
15294 lt_aix_libpath_sed='
15295 /Import File Strings/,/^$/ {
15297 s/^0 *\([^ ]*\) *$/\1/
15301 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302 # Check for a 64-bit object if we didn't find anything.
15303 if test -z "$lt_cv_aix_libpath__CXX"; then
15304 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15307 rm -f core conftest.err conftest.$ac_objext \
15308 conftest$ac_exeext conftest.$ac_ext
15309 if test -z "$lt_cv_aix_libpath__CXX"; then
15310 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15315 aix_libpath=$lt_cv_aix_libpath__CXX
15318 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15320 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
15322 if test ia64 = "$host_cpu"; then
15323 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15324 allow_undefined_flag_CXX="-z nodefs"
15325 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"
15327 # Determine the default libpath from the value encoded in an
15328 # empty executable.
15329 if test set = "${lt_cv_aix_libpath+set}"; then
15330 aix_libpath=$lt_cv_aix_libpath
15332 if ${lt_cv_aix_libpath__CXX+:} false; then :
15333 $as_echo_n "(cached) " >&6
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15346 if ac_fn_cxx_try_link "$LINENO"; then :
15348 lt_aix_libpath_sed='
15349 /Import File Strings/,/^$/ {
15351 s/^0 *\([^ ]*\) *$/\1/
15355 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15356 # Check for a 64-bit object if we didn't find anything.
15357 if test -z "$lt_cv_aix_libpath__CXX"; then
15358 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15361 rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 if test -z "$lt_cv_aix_libpath__CXX"; then
15364 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15369 aix_libpath=$lt_cv_aix_libpath__CXX
15372 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15373 # Warning - without using the other run time loading flags,
15374 # -berok will link without error, but may produce a broken library.
15375 no_undefined_flag_CXX=' $wl-bernotok'
15376 allow_undefined_flag_CXX=' $wl-berok'
15377 if test yes = "$with_gnu_ld"; then
15378 # We only use this code for GNU lds that support --whole-archive.
15379 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15381 # Exported symbols can be pulled into shared objects from archives
15382 whole_archive_flag_spec_CXX='$convenience'
15384 archive_cmds_need_lc_CXX=yes
15385 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15386 # -brtl affects multiple linker settings, -berok does not and is overridden later
15387 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15388 if test svr4 != "$with_aix_soname"; then
15389 # This is similar to how AIX traditionally builds its shared
15390 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15391 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'
15393 if test aix != "$with_aix_soname"; then
15394 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'
15396 # used by -dlpreopen to get the symbols
15397 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15399 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15406 allow_undefined_flag_CXX=unsupported
15407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15408 # support --undefined. This deserves some investigation. FIXME
15409 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15416 case $cc_basename in
15418 # FIXME: insert proper C++ library support
15424 cygwin* | mingw* | pw32* | cegcc*)
15425 case $GXX,$cc_basename in
15428 # hardcode_libdir_flag_spec is actually meaningless, as there is
15429 # no search path for DLLs.
15430 hardcode_libdir_flag_spec_CXX=' '
15431 allow_undefined_flag_CXX=unsupported
15432 always_export_symbols_CXX=yes
15433 file_list_spec_CXX='@'
15434 # Tell ltmain to make .lib files, not .a files.
15436 # Tell ltmain to make .dll files, not .so files.
15438 # FIXME: Setting linknames here is a bad hack.
15439 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15440 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15441 cp "$export_symbols" "$output_objdir/$soname.def";
15442 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15444 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15446 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15448 # The linker will not automatically build a static lib if we build a DLL.
15449 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15450 enable_shared_with_static_runtimes_CXX=yes
15452 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15453 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15454 lt_tool_outputfile="@TOOL_OUTPUT@"~
15455 case $lt_outputfile in
15458 lt_outputfile=$lt_outputfile.exe
15459 lt_tool_outputfile=$lt_tool_outputfile.exe
15462 func_to_tool_file "$lt_outputfile"~
15463 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15464 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15465 $RM "$lt_outputfile.manifest";
15470 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15471 # as there is no search path for DLLs.
15472 hardcode_libdir_flag_spec_CXX='-L$libdir'
15473 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15474 allow_undefined_flag_CXX=unsupported
15475 always_export_symbols_CXX=no
15476 enable_shared_with_static_runtimes_CXX=yes
15478 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15479 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'
15480 # If the export-symbols file already is a .def file, use it as
15481 # is; otherwise, prepend EXPORTS...
15482 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15483 cp $export_symbols $output_objdir/$soname.def;
15485 echo EXPORTS > $output_objdir/$soname.def;
15486 cat $export_symbols >> $output_objdir/$soname.def;
15488 $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'
15495 darwin* | rhapsody*)
15498 archive_cmds_need_lc_CXX=no
15499 hardcode_direct_CXX=no
15500 hardcode_automatic_CXX=yes
15501 hardcode_shlibpath_var_CXX=unsupported
15502 if test yes = "$lt_cv_ld_force_load"; then
15503 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\"`'
15506 whole_archive_flag_spec_CXX=''
15508 link_all_deplibs_CXX=yes
15509 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15510 case $cc_basename in
15511 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15512 *) _lt_dar_can_shared=$GCC ;;
15514 if test yes = "$_lt_dar_can_shared"; then
15515 output_verbose_link_cmd=func_echo_all
15516 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"
15517 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15518 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"
15519 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"
15520 if test yes != "$lt_cv_apple_cc_single_mod"; then
15521 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"
15522 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"
15532 hardcode_libdir_flag_spec_CXX='-L$libdir'
15533 hardcode_minus_L_CXX=yes
15534 allow_undefined_flag_CXX=unsupported
15536 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15539 $ECHO EXPORTS >> $output_objdir/$libname.def~
15540 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15541 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15542 emximp -o $lib $output_objdir/$libname.def'
15543 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15544 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15545 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15546 $ECHO EXPORTS >> $output_objdir/$libname.def~
15547 prefix_cmds="$SED"~
15548 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15549 prefix_cmds="$prefix_cmds -e 1d";
15551 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15552 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15554 emximp -o $lib $output_objdir/$libname.def'
15555 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15556 enable_shared_with_static_runtimes_CXX=yes
15560 case $cc_basename in
15562 # FIXME: insert proper C++ library support
15566 # Green Hills C++ Compiler
15567 # FIXME: insert proper C++ library support
15571 # FIXME: insert proper C++ library support
15578 # C++ shared libraries reported to be fairly broken before
15584 archive_cmds_need_lc_CXX=no
15587 freebsd* | dragonfly*)
15588 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15594 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15595 link_all_deplibs_CXX=yes
15599 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15600 hardcode_libdir_separator_CXX=:
15601 export_dynamic_flag_spec_CXX='$wl-E'
15602 hardcode_direct_CXX=yes
15603 hardcode_minus_L_CXX=yes # Not in the search PATH,
15604 # but as the default
15605 # location of the library.
15607 case $cc_basename in
15609 # FIXME: insert proper C++ library support
15613 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'
15614 # Commands to make compiler produce verbose output that lists
15615 # what "hidden" libraries, object files and flags are used when
15616 # linking a shared library.
15618 # There doesn't appear to be a way to prevent this compiler from
15619 # explicitly linking system object files so we need to strip them
15620 # from the output so that they don't get included in the library
15622 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"'
15625 if test yes = "$GXX"; then
15626 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'
15628 # FIXME: insert proper C++ library support
15636 if test no = "$with_gnu_ld"; then
15637 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15638 hardcode_libdir_separator_CXX=:
15644 export_dynamic_flag_spec_CXX='$wl-E'
15650 hardcode_direct_CXX=no
15651 hardcode_shlibpath_var_CXX=no
15654 hardcode_direct_CXX=yes
15655 hardcode_direct_absolute_CXX=yes
15656 hardcode_minus_L_CXX=yes # Not in the search PATH,
15657 # but as the default
15658 # location of the library.
15662 case $cc_basename in
15664 # FIXME: insert proper C++ library support
15670 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15673 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15676 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15679 # Commands to make compiler produce verbose output that lists
15680 # what "hidden" libraries, object files and flags are used when
15681 # linking a shared library.
15683 # There doesn't appear to be a way to prevent this compiler from
15684 # explicitly linking system object files so we need to strip them
15685 # from the output so that they don't get included in the library
15687 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"'
15690 if test yes = "$GXX"; then
15691 if test no = "$with_gnu_ld"; then
15694 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15697 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15700 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'
15705 # FIXME: insert proper C++ library support
15713 hardcode_direct_CXX=no
15714 hardcode_shlibpath_var_CXX=no
15715 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15716 export_dynamic_flag_spec_CXX='$wl-E'
15717 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15718 # Instead, shared libraries are loaded at an image base (0x10000000 by
15719 # default) and relocated if they conflict, which is a slow very memory
15720 # consuming and fragmenting process. To avoid this, we pick a random,
15721 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15722 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15723 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'
15724 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'
15727 case $cc_basename in
15730 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'
15732 # Archives containing C++ object files must be created using
15733 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15734 # necessary to make sure instantiated templates are included
15736 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15739 if test yes = "$GXX"; then
15740 if test no = "$with_gnu_ld"; then
15741 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'
15743 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'
15746 link_all_deplibs_CXX=yes
15749 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15750 hardcode_libdir_separator_CXX=:
15751 inherit_rpath_CXX=yes
15754 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15755 case $cc_basename in
15757 # Kuck and Associates, Inc. (KAI) C++ Compiler
15759 # KCC will only create a shared library if the output file
15760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15761 # to its proper name (with version) after linking.
15762 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'
15763 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'
15764 # Commands to make compiler produce verbose output that lists
15765 # what "hidden" libraries, object files and flags are used when
15766 # linking a shared library.
15768 # There doesn't appear to be a way to prevent this compiler from
15769 # explicitly linking system object files so we need to strip them
15770 # from the output so that they don't get included in the library
15772 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"'
15774 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15775 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15777 # Archives containing C++ object files must be created using
15778 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15784 # version 8.0 and above of icpc choke on multiply defined symbols
15785 # if we add $predep_objects and $postdep_objects, however 7.1 and
15786 # earlier do not add the objects themselves.
15787 case `$CC -V 2>&1` in
15789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15790 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'
15792 *) # Version 8.0 or newer
15795 ia64*) tmp_idyn=' -i_dynamic';;
15797 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15798 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'
15801 archive_cmds_need_lc_CXX=no
15802 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15803 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15804 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15807 # Portland Group C++ compiler
15809 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15810 prelink_cmds_CXX='tpldir=Template.dir~
15812 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15813 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15814 old_archive_cmds_CXX='tpldir=Template.dir~
15816 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15817 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15819 archive_cmds_CXX='tpldir=Template.dir~
15821 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15822 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15823 archive_expsym_cmds_CXX='tpldir=Template.dir~
15825 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15826 $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'
15828 *) # Version 6 and above use weak symbols
15829 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15830 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'
15834 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15835 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15836 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'
15840 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15841 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'
15843 runpath_var=LD_RUN_PATH
15844 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15845 hardcode_libdir_separator_CXX=:
15847 # Commands to make compiler produce verbose output that lists
15848 # what "hidden" libraries, object files and flags are used when
15849 # linking a shared library.
15851 # There doesn't appear to be a way to prevent this compiler from
15852 # explicitly linking system object files so we need to strip them
15853 # from the output so that they don't get included in the library
15855 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'
15857 xl* | mpixl* | bgxl*)
15858 # IBM XL 8.0 on PPC, with GNU ld
15859 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15860 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15861 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15862 if test yes = "$supports_anon_versioning"; then
15863 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15865 echo "local: *; };" >> $output_objdir/$libname.ver~
15866 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15870 case `$CC -V 2>&1 | sed 5q` in
15873 no_undefined_flag_CXX=' -zdefs'
15874 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15875 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'
15876 hardcode_libdir_flag_spec_CXX='-R$libdir'
15877 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'
15878 compiler_needs_object_CXX=yes
15880 # Not sure whether something based on
15881 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15883 output_verbose_link_cmd='func_echo_all'
15885 # Archives containing C++ object files must be created using
15886 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15887 # necessary to make sure instantiated templates are included
15889 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15897 # FIXME: insert proper C++ library support
15902 # FIXME: insert proper C++ library support
15907 case $cc_basename in
15909 # FIXME: insert proper C++ library support
15913 # FIXME: insert proper C++ library support
15920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15921 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15923 hardcode_libdir_flag_spec_CXX='-R$libdir'
15924 hardcode_direct_CXX=yes
15925 hardcode_shlibpath_var_CXX=no
15927 # Workaround some broken pre-1.5 toolchains
15928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15935 openbsd* | bitrig*)
15936 if test -f /usr/libexec/ld.so; then
15937 hardcode_direct_CXX=yes
15938 hardcode_shlibpath_var_CXX=no
15939 hardcode_direct_absolute_CXX=yes
15940 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15941 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15943 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15944 export_dynamic_flag_spec_CXX='$wl-E'
15945 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15947 output_verbose_link_cmd=func_echo_all
15953 osf3* | osf4* | osf5*)
15954 case $cc_basename in
15956 # Kuck and Associates, Inc. (KAI) C++ Compiler
15958 # KCC will only create a shared library if the output file
15959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15960 # to its proper name (with version) after linking.
15961 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'
15963 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15964 hardcode_libdir_separator_CXX=:
15966 # Archives containing C++ object files must be created using
15967 # the KAI C++ compiler.
15969 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15970 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15974 # Rational C++ 2.4.1
15975 # FIXME: insert proper C++ library support
15981 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15982 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'
15983 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15986 allow_undefined_flag_CXX=' -expect_unresolved \*'
15987 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'
15988 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15989 echo "-hidden">> $lib.exp~
15990 $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~
15992 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15996 hardcode_libdir_separator_CXX=:
15998 # Commands to make compiler produce verbose output that lists
15999 # what "hidden" libraries, object files and flags are used when
16000 # linking a shared library.
16002 # There doesn't appear to be a way to prevent this compiler from
16003 # explicitly linking system object files so we need to strip them
16004 # from the output so that they don't get included in the library
16006 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"'
16009 if test yes,no = "$GXX,$with_gnu_ld"; then
16010 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16013 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'
16016 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'
16020 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16021 hardcode_libdir_separator_CXX=:
16023 # Commands to make compiler produce verbose output that lists
16024 # what "hidden" libraries, object files and flags are used when
16025 # linking a shared library.
16026 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16029 # FIXME: insert proper C++ library support
16037 # FIXME: insert proper C++ library support
16042 case $cc_basename in
16045 # FIXME: insert proper C++ library support
16050 # FIXME: insert proper C++ library support
16054 # FIXME: insert proper C++ library support
16061 case $cc_basename in
16063 # Sun C++ 4.2, 5.x and Centerline C++
16064 archive_cmds_need_lc_CXX=yes
16065 no_undefined_flag_CXX=' -zdefs'
16066 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16067 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16068 $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'
16070 hardcode_libdir_flag_spec_CXX='-R$libdir'
16071 hardcode_shlibpath_var_CXX=no
16073 solaris2.[0-5] | solaris2.[0-5].*) ;;
16075 # The compiler driver will combine and reorder linker options,
16076 # but understands '-z linker_flag'.
16077 # Supported since Solaris 2.6 (maybe 2.5.1?)
16078 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16081 link_all_deplibs_CXX=yes
16083 output_verbose_link_cmd='func_echo_all'
16085 # Archives containing C++ object files must be created using
16086 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16087 # necessary to make sure instantiated templates are included
16089 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16092 # Green Hills C++ Compiler
16093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16095 # The C++ compiler must be used to create the archive.
16096 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16099 # GNU C++ compiler with Solaris linker
16100 if test yes,no = "$GXX,$with_gnu_ld"; then
16101 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16102 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16103 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16104 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16105 $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'
16107 # Commands to make compiler produce verbose output that lists
16108 # what "hidden" libraries, object files and flags are used when
16109 # linking a shared library.
16110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16112 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16114 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16115 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16116 $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'
16118 # Commands to make compiler produce verbose output that lists
16119 # what "hidden" libraries, object files and flags are used when
16120 # linking a shared library.
16121 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16124 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16126 solaris2.[0-5] | solaris2.[0-5].*) ;;
16128 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16137 no_undefined_flag_CXX='$wl-z,text'
16138 archive_cmds_need_lc_CXX=no
16139 hardcode_shlibpath_var_CXX=no
16140 runpath_var='LD_RUN_PATH'
16142 case $cc_basename in
16144 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16148 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16149 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16154 sysv5* | sco3.2v5* | sco5v6*)
16155 # Note: We CANNOT use -z defs as we might desire, because we do not
16156 # link with -lc, and that would cause any symbols used from libc to
16157 # always be unresolved, which means just about no library would
16158 # ever link correctly. If we're not using GNU ld we use -z text
16159 # though, which does catch some bad symbols but isn't as heavy-handed
16161 no_undefined_flag_CXX='$wl-z,text'
16162 allow_undefined_flag_CXX='$wl-z,nodefs'
16163 archive_cmds_need_lc_CXX=no
16164 hardcode_shlibpath_var_CXX=no
16165 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16166 hardcode_libdir_separator_CXX=':'
16167 link_all_deplibs_CXX=yes
16168 export_dynamic_flag_spec_CXX='$wl-Bexport'
16169 runpath_var='LD_RUN_PATH'
16171 case $cc_basename in
16173 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16174 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16175 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16176 '"$old_archive_cmds_CXX"
16177 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16178 '"$reload_cmds_CXX"
16181 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16182 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16188 case $cc_basename in
16190 # NonStop-UX NCC 3.20
16191 # FIXME: insert proper C++ library support
16195 # FIXME: insert proper C++ library support
16202 # FIXME: insert proper C++ library support
16207 # FIXME: insert proper C++ library support
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16213 $as_echo "$ld_shlibs_CXX" >&6; }
16214 test no = "$ld_shlibs_CXX" && can_build_shared=no
16220 ## There is no encapsulation within the following macros, do not change
16221 ## the running order or otherwise move them around unless you know exactly
16222 ## what you are doing...
16223 # Dependencies to place before and after the object being linked:
16224 predep_objects_CXX=
16225 postdep_objects_CXX=
16228 compiler_lib_search_path_CXX=
16230 cat > conftest.$ac_ext <<_LT_EOF
16234 Foo (void) { a = 0; }
16241 _lt_libdeps_save_CFLAGS=$CFLAGS
16242 case "$CC $CFLAGS " in #(
16243 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16244 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16245 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16249 (eval $ac_compile) 2>&5
16251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16252 test $ac_status = 0; }; then
16253 # Parse the compiler output and extract the necessary
16254 # objects, libraries and library flags.
16256 # Sentinel used to keep track of whether or not we are before
16257 # the conftest object file.
16258 pre_test_object_deps_done=no
16260 for p in `eval "$output_verbose_link_cmd"`; do
16264 # Some compilers place space between "-{L,R}" and the path.
16265 # Remove the space.
16266 if test x-L = "$p" ||
16267 test x-R = "$p"; then
16272 # Expand the sysroot to ease extracting the directories later.
16273 if test -z "$prev"; then
16275 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16276 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16277 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16281 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16283 if test no = "$pre_test_object_deps_done"; then
16286 # Internal compiler library paths should come after those
16287 # provided the user. The postdeps already come after the
16288 # user supplied libs so there is no need to process them.
16289 if test -z "$compiler_lib_search_path_CXX"; then
16290 compiler_lib_search_path_CXX=$prev$p
16292 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16295 # The "-l" case would never come before the object being
16296 # linked, so don't bother handling this case.
16299 if test -z "$postdeps_CXX"; then
16300 postdeps_CXX=$prev$p
16302 postdeps_CXX="${postdeps_CXX} $prev$p"
16308 *.lto.$objext) ;; # Ignore GCC LTO objects
16310 # This assumes that the test object file only shows up
16311 # once in the compiler output.
16312 if test "$p" = "conftest.$objext"; then
16313 pre_test_object_deps_done=yes
16317 if test no = "$pre_test_object_deps_done"; then
16318 if test -z "$predep_objects_CXX"; then
16319 predep_objects_CXX=$p
16321 predep_objects_CXX="$predep_objects_CXX $p"
16324 if test -z "$postdep_objects_CXX"; then
16325 postdep_objects_CXX=$p
16327 postdep_objects_CXX="$postdep_objects_CXX $p"
16332 *) ;; # Ignore the rest.
16340 echo "libtool.m4: error: problem compiling CXX test program"
16343 $RM -f confest.$objext
16344 CFLAGS=$_lt_libdeps_save_CFLAGS
16346 # PORTME: override above test on systems where it is broken
16349 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16350 # hack all around it, let's just trust "g++" to DTRT.
16351 predep_objects_CXX=
16352 postdep_objects_CXX=
16358 case " $postdeps_CXX " in
16359 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16361 compiler_lib_search_dirs_CXX=
16362 if test -n "${compiler_lib_search_path_CXX}"; then
16363 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16396 lt_prog_compiler_wl_CXX=
16397 lt_prog_compiler_pic_CXX=
16398 lt_prog_compiler_static_CXX=
16401 # C++ specific cases for pic, static, wl, etc.
16402 if test yes = "$GXX"; then
16403 lt_prog_compiler_wl_CXX='-Wl,'
16404 lt_prog_compiler_static_CXX='-static'
16408 # All AIX code is PIC.
16409 if test ia64 = "$host_cpu"; then
16410 # AIX 5 now supports IA64 processor
16411 lt_prog_compiler_static_CXX='-Bstatic'
16413 lt_prog_compiler_pic_CXX='-fPIC'
16419 # see comment about AmigaOS4 .so support
16420 lt_prog_compiler_pic_CXX='-fPIC'
16423 # FIXME: we need at least 68020 code to build shared libraries, but
16424 # adding the '-m68020' flag to GCC prevents building anything better,
16426 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16431 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16432 # PIC is the default for these OSes.
16434 mingw* | cygwin* | os2* | pw32* | cegcc*)
16435 # This hack is so that the source file can tell whether it is being
16436 # built for inclusion in a dll (and should export symbols for example).
16437 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16438 # (--disable-auto-import) libraries
16439 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16442 lt_prog_compiler_static_CXX='$wl-static'
16446 darwin* | rhapsody*)
16447 # PIC is the default on this platform
16448 # Common symbols not allowed in MH_DYLIB files
16449 lt_prog_compiler_pic_CXX='-fno-common'
16452 # DJGPP does not support shared libraries at all
16453 lt_prog_compiler_pic_CXX=
16456 # PIC is the default for Haiku.
16457 # The "-static" flag exists, but is broken.
16458 lt_prog_compiler_static_CXX=
16461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16462 # Instead, we relocate shared libraries at runtime.
16465 if test -d /usr/nec; then
16466 lt_prog_compiler_pic_CXX=-Kconform_pic
16470 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16471 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16472 # sets the default TLS model and affects inlining.
16477 lt_prog_compiler_pic_CXX='-fPIC'
16482 # QNX uses GNU C++, but need to define -shared option too, otherwise
16483 # it will coredump.
16484 lt_prog_compiler_pic_CXX='-fPIC -shared'
16487 lt_prog_compiler_pic_CXX='-fPIC'
16493 # All AIX code is PIC.
16494 if test ia64 = "$host_cpu"; then
16495 # AIX 5 now supports IA64 processor
16496 lt_prog_compiler_static_CXX='-Bstatic'
16498 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16502 case $cc_basename in
16504 # Green Hills C++ Compiler
16505 # _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"
16509 mingw* | cygwin* | os2* | pw32* | cegcc*)
16510 # This hack is so that the source file can tell whether it is being
16511 # built for inclusion in a dll (and should export symbols for example).
16512 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16515 case $cc_basename in
16517 lt_prog_compiler_pic_CXX='-KPIC'
16520 # Green Hills C++ Compiler
16521 lt_prog_compiler_pic_CXX='-pic'
16527 freebsd* | dragonfly*)
16528 # FreeBSD uses GNU C++
16530 hpux9* | hpux10* | hpux11*)
16531 case $cc_basename in
16533 lt_prog_compiler_wl_CXX='-Wl,'
16534 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16535 if test ia64 != "$host_cpu"; then
16536 lt_prog_compiler_pic_CXX='+Z'
16540 lt_prog_compiler_wl_CXX='-Wl,'
16541 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16547 lt_prog_compiler_pic_CXX='+Z'
16556 # This is c89, which is MS Visual C++ (no shared libs)
16557 # Anyone wants to do a port?
16559 irix5* | irix6* | nonstopux*)
16560 case $cc_basename in
16562 lt_prog_compiler_wl_CXX='-Wl,'
16563 lt_prog_compiler_static_CXX='-non_shared'
16564 # CC pic flag -KPIC is the default.
16570 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16571 case $cc_basename in
16574 lt_prog_compiler_wl_CXX='--backend -Wl,'
16575 lt_prog_compiler_pic_CXX='-fPIC'
16578 # old Intel C++ for x86_64, which still supported -KPIC.
16579 lt_prog_compiler_wl_CXX='-Wl,'
16580 lt_prog_compiler_pic_CXX='-KPIC'
16581 lt_prog_compiler_static_CXX='-static'
16584 # Intel C++, used to be incompatible with GCC.
16585 # ICC 10 doesn't accept -KPIC any more.
16586 lt_prog_compiler_wl_CXX='-Wl,'
16587 lt_prog_compiler_pic_CXX='-fPIC'
16588 lt_prog_compiler_static_CXX='-static'
16591 # Portland Group C++ compiler
16592 lt_prog_compiler_wl_CXX='-Wl,'
16593 lt_prog_compiler_pic_CXX='-fpic'
16594 lt_prog_compiler_static_CXX='-Bstatic'
16598 # Make sure the PIC flag is empty. It appears that all Alpha
16599 # Linux and Compaq Tru64 Unix objects are PIC.
16600 lt_prog_compiler_pic_CXX=
16601 lt_prog_compiler_static_CXX='-non_shared'
16603 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16604 # IBM XL 8.0, 9.0 on PPC and BlueGene
16605 lt_prog_compiler_wl_CXX='-Wl,'
16606 lt_prog_compiler_pic_CXX='-qpic'
16607 lt_prog_compiler_static_CXX='-qstaticlink'
16610 case `$CC -V 2>&1 | sed 5q` in
16613 lt_prog_compiler_pic_CXX='-KPIC'
16614 lt_prog_compiler_static_CXX='-Bstatic'
16615 lt_prog_compiler_wl_CXX='-Qoption ld '
16626 case $cc_basename in
16628 lt_prog_compiler_pic_CXX='-W c,exportall'
16634 netbsd* | netbsdelf*-gnu)
16637 # QNX uses GNU C++, but need to define -shared option too, otherwise
16638 # it will coredump.
16639 lt_prog_compiler_pic_CXX='-fPIC -shared'
16641 osf3* | osf4* | osf5*)
16642 case $cc_basename in
16644 lt_prog_compiler_wl_CXX='--backend -Wl,'
16647 # Rational C++ 2.4.1
16648 lt_prog_compiler_pic_CXX='-pic'
16651 # Digital/Compaq C++
16652 lt_prog_compiler_wl_CXX='-Wl,'
16653 # Make sure the PIC flag is empty. It appears that all Alpha
16654 # Linux and Compaq Tru64 Unix objects are PIC.
16655 lt_prog_compiler_pic_CXX=
16656 lt_prog_compiler_static_CXX='-non_shared'
16665 case $cc_basename in
16667 # Sun C++ 4.2, 5.x and Centerline C++
16668 lt_prog_compiler_pic_CXX='-KPIC'
16669 lt_prog_compiler_static_CXX='-Bstatic'
16670 lt_prog_compiler_wl_CXX='-Qoption ld '
16673 # Green Hills C++ Compiler
16674 lt_prog_compiler_pic_CXX='-PIC'
16681 case $cc_basename in
16684 lt_prog_compiler_pic_CXX='-pic'
16685 lt_prog_compiler_static_CXX='-Bstatic'
16689 lt_prog_compiler_pic_CXX='-pic'
16695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16696 case $cc_basename in
16698 lt_prog_compiler_wl_CXX='-Wl,'
16699 lt_prog_compiler_pic_CXX='-KPIC'
16700 lt_prog_compiler_static_CXX='-Bstatic'
16705 case $cc_basename in
16707 # NonStop-UX NCC 3.20
16708 lt_prog_compiler_pic_CXX='-KPIC'
16717 lt_prog_compiler_can_build_shared_CXX=no
16723 # For platforms that do not support PIC, -DPIC is meaningless:
16725 lt_prog_compiler_pic_CXX=
16728 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16733 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16734 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16735 $as_echo_n "(cached) " >&6
16737 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16740 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16741 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16744 # Check to make sure the PIC flag actually works.
16746 if test -n "$lt_prog_compiler_pic_CXX"; then
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16748 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16749 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16750 $as_echo_n "(cached) " >&6
16752 lt_cv_prog_compiler_pic_works_CXX=no
16753 ac_outfile=conftest.$ac_objext
16754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16755 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16756 # Insert the option either (1) after the last *FLAGS variable, or
16757 # (2) before a word containing "conftest.", or (3) at the end.
16758 # Note that $ac_compile itself does not contain backslashes and begins
16759 # with a dollar sign (not a hyphen), so the echo should work correctly.
16760 # The option is referenced via a variable to avoid confusing sed.
16761 lt_compile=`echo "$ac_compile" | $SED \
16762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16764 -e 's:$: $lt_compiler_flag:'`
16765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16766 (eval "$lt_compile" 2>conftest.err)
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 if (exit $ac_status) && test -s "$ac_outfile"; then
16771 # The compiler can only warn and ignore the option if not recognized
16772 # So say no if there are warnings other than the usual output.
16773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16776 lt_cv_prog_compiler_pic_works_CXX=yes
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16783 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16785 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16786 case $lt_prog_compiler_pic_CXX in
16788 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16791 lt_prog_compiler_pic_CXX=
16792 lt_prog_compiler_can_build_shared_CXX=no
16802 # Check to make sure the static flag actually works.
16804 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16807 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16808 $as_echo_n "(cached) " >&6
16810 lt_cv_prog_compiler_static_works_CXX=no
16811 save_LDFLAGS=$LDFLAGS
16812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16815 # The linker can only warn and ignore the option if not recognized
16816 # So say no if there are warnings
16817 if test -s conftest.err; then
16818 # Append any errors to the config.log.
16819 cat conftest.err 1>&5
16820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16822 if diff conftest.exp conftest.er2 >/dev/null; then
16823 lt_cv_prog_compiler_static_works_CXX=yes
16826 lt_cv_prog_compiler_static_works_CXX=yes
16830 LDFLAGS=$save_LDFLAGS
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16834 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16836 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16839 lt_prog_compiler_static_CXX=
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16847 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16848 $as_echo_n "(cached) " >&6
16850 lt_cv_prog_compiler_c_o_CXX=no
16851 $RM -r conftest 2>/dev/null
16855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16857 lt_compiler_flag="-o out/conftest2.$ac_objext"
16858 # Insert the option either (1) after the last *FLAGS variable, or
16859 # (2) before a word containing "conftest.", or (3) at the end.
16860 # Note that $ac_compile itself does not contain backslashes and begins
16861 # with a dollar sign (not a hyphen), so the echo should work correctly.
16862 lt_compile=`echo "$ac_compile" | $SED \
16863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16865 -e 's:$: $lt_compiler_flag:'`
16866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16867 (eval "$lt_compile" 2>out/conftest.err)
16869 cat out/conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16873 # The compiler can only warn and ignore the option if not recognized
16874 # So say no if there are warnings
16875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16878 lt_cv_prog_compiler_c_o_CXX=yes
16883 # SGI C++ compiler will create directory out/ii_files/ for
16884 # template instantiation
16885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16886 $RM out/* && rmdir out
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16893 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16899 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16900 $as_echo_n "(cached) " >&6
16902 lt_cv_prog_compiler_c_o_CXX=no
16903 $RM -r conftest 2>/dev/null
16907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16909 lt_compiler_flag="-o out/conftest2.$ac_objext"
16910 # Insert the option either (1) after the last *FLAGS variable, or
16911 # (2) before a word containing "conftest.", or (3) at the end.
16912 # Note that $ac_compile itself does not contain backslashes and begins
16913 # with a dollar sign (not a hyphen), so the echo should work correctly.
16914 lt_compile=`echo "$ac_compile" | $SED \
16915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16917 -e 's:$: $lt_compiler_flag:'`
16918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16919 (eval "$lt_compile" 2>out/conftest.err)
16921 cat out/conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16925 # The compiler can only warn and ignore the option if not recognized
16926 # So say no if there are warnings
16927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16930 lt_cv_prog_compiler_c_o_CXX=yes
16935 # SGI C++ compiler will create directory out/ii_files/ for
16936 # template instantiation
16937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16938 $RM out/* && rmdir out
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16945 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16950 hard_links=nottested
16951 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16952 # do not overwrite the value of need_locks provided by the user
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16954 $as_echo_n "checking if we can lock with hard links... " >&6; }
16957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16959 ln conftest.a conftest.b 2>&5 || hard_links=no
16960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16962 $as_echo "$hard_links" >&6; }
16963 if test no = "$hard_links"; then
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16965 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16978 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16981 # If we're using GNU nm, then we don't want the "-C" option.
16982 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16983 # Without the "-l" option, or with the "-B" option, AIX nm treats
16984 # weak defined symbols like other global defined symbols, whereas
16985 # GNU nm marks them as "W".
16986 # While the 'weak' keyword is ignored in the Export File, we need
16987 # it in the Import File for the 'aix-soname' feature, so we have
16988 # to replace the "-B" option with "-P" for AIX nm.
16989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16990 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'
16992 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'
16996 export_symbols_cmds_CXX=$ltdll_cmds
16998 cygwin* | mingw* | cegcc*)
16999 case $cc_basename in
17001 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17004 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'
17005 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17009 linux* | k*bsd*-gnu | gnu*)
17010 link_all_deplibs_CXX=no
17013 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17018 $as_echo "$ld_shlibs_CXX" >&6; }
17019 test no = "$ld_shlibs_CXX" && can_build_shared=no
17021 with_gnu_ld_CXX=$with_gnu_ld
17029 # Do we need to explicitly link libc?
17031 case "x$archive_cmds_need_lc_CXX" in
17033 # Assume -lc should be added
17034 archive_cmds_need_lc_CXX=yes
17036 if test yes,yes = "$GCC,$enable_shared"; then
17037 case $archive_cmds_CXX in
17039 # FIXME: we may have to deal with multi-command sequences.
17042 # Test whether the compiler implicitly links with -lc since on some
17043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17044 # to ld, don't add -lc before -lgcc.
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17046 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17047 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17048 $as_echo_n "(cached) " >&6
17051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17054 (eval $ac_compile) 2>&5
17056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17057 test $ac_status = 0; } 2>conftest.err; then
17060 libobjs=conftest.$ac_objext
17062 wl=$lt_prog_compiler_wl_CXX
17063 pic_flag=$lt_prog_compiler_pic_CXX
17069 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17070 allow_undefined_flag_CXX=
17071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17072 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17075 test $ac_status = 0; }
17077 lt_cv_archive_cmds_need_lc_CXX=no
17079 lt_cv_archive_cmds_need_lc_CXX=yes
17081 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17083 cat conftest.err 1>&5
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17089 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17090 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17159 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17161 library_names_spec=
17162 libname_spec='lib$name'
17166 postuninstall_cmds=
17170 shlibpath_overrides_runpath=unknown
17172 dynamic_linker="$host_os ld.so"
17173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17174 need_lib_prefix=unknown
17175 hardcode_into_libs=no
17177 # when you set need_version to no, make sure it does not cause -set_version
17178 # flags to be left without arguments
17179 need_version=unknown
17185 version_type=linux # correct to gnu/linux during the next big refactor
17186 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17187 shlibpath_var=LIBPATH
17189 # AIX 3 has no versioning support, so we append a major version to the name.
17190 soname_spec='$libname$release$shared_ext$major'
17194 version_type=linux # correct to gnu/linux during the next big refactor
17197 hardcode_into_libs=yes
17198 if test ia64 = "$host_cpu"; then
17199 # AIX 5 supports IA64
17200 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17201 shlibpath_var=LD_LIBRARY_PATH
17203 # With GCC up to 2.95.x, collect2 would create an import file
17204 # for dependence libraries. The import file would start with
17205 # the line '#! .'. This would cause the generated library to
17206 # depend on '.', always an invalid library. This was fixed in
17207 # development snapshots of GCC prior to 3.0.
17209 aix4 | aix4.[01] | aix4.[01].*)
17210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17212 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17215 can_build_shared=no
17219 # Using Import Files as archive members, it is possible to support
17220 # filename-based versioning of shared library archives on AIX. While
17221 # this would work for both with and without runtime linking, it will
17222 # prevent static linking of such archives. So we do filename-based
17223 # shared library versioning with .so extension only, which is used
17224 # when both runtime linking and shared linking is enabled.
17225 # Unfortunately, runtime linking may impact performance, so we do
17226 # not want this to be the default eventually. Also, we use the
17227 # versioned .so libs for executables only if there is the -brtl
17228 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17229 # To allow for filename-based versioning support, we need to create
17230 # libNAME.so.V as an archive file, containing:
17231 # *) an Import File, referring to the versioned filename of the
17232 # archive as well as the shared archive member, telling the
17233 # bitwidth (32 or 64) of that shared object, and providing the
17234 # list of exported symbols of that shared object, eventually
17235 # decorated with the 'weak' keyword
17236 # *) the shared object with the F_LOADONLY flag set, to really avoid
17237 # it being seen by the linker.
17238 # At run time we better use the real file rather than another symlink,
17239 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17241 case $with_aix_soname,$aix_use_runtimelinking in
17242 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17243 # soname into executable. Probably we can add versioning support to
17244 # collect2, so additional links can be useful in future.
17245 aix,yes) # traditional libtool
17246 dynamic_linker='AIX unversionable lib.so'
17247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17248 # instead of lib<name>.a to let people know that these are not
17249 # typical AIX shared libraries.
17250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17252 aix,no) # traditional AIX only
17253 dynamic_linker='AIX lib.a(lib.so.V)'
17254 # We preserve .a as extension for shared libraries through AIX4.2
17255 # and later when we are not doing run time linking.
17256 library_names_spec='$libname$release.a $libname.a'
17257 soname_spec='$libname$release$shared_ext$major'
17259 svr4,*) # full svr4 only
17260 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17261 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17262 # We do not specify a path in Import Files, so LIBPATH fires.
17263 shlibpath_overrides_runpath=yes
17265 *,yes) # both, prefer svr4
17266 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17267 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17268 # unpreferred sharedlib libNAME.a needs extra handling
17269 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"'
17270 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"'
17271 # We do not specify a path in Import Files, so LIBPATH fires.
17272 shlibpath_overrides_runpath=yes
17274 *,no) # both, prefer aix
17275 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17276 library_names_spec='$libname$release.a $libname.a'
17277 soname_spec='$libname$release$shared_ext$major'
17278 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17279 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)'
17280 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"'
17283 shlibpath_var=LIBPATH
17290 # Since July 2007 AmigaOS4 officially supports .so libraries.
17291 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17295 library_names_spec='$libname.ixlibrary $libname.a'
17296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17297 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'
17303 library_names_spec='$libname$shared_ext'
17304 dynamic_linker="$host_os ld.so"
17305 shlibpath_var=LIBRARY_PATH
17309 version_type=linux # correct to gnu/linux during the next big refactor
17311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17312 soname_spec='$libname$release$shared_ext$major'
17313 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17316 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17317 # the default ld.so.conf also contains /usr/contrib/lib and
17318 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17319 # libtool to hard-code these into programs
17322 cygwin* | mingw* | pw32* | cegcc*)
17323 version_type=windows
17328 case $GCC,$cc_basename in
17331 library_names_spec='$libname.dll.a'
17332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17333 postinstall_cmds='base_file=`basename \$file`~
17334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17335 dldir=$destdir/`dirname \$dlpath`~
17336 test -d \$dldir || mkdir -p \$dldir~
17337 $install_prog $dir/$dlname \$dldir/$dlname~
17338 chmod a+x \$dldir/$dlname~
17339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17343 dlpath=$dir/\$dldll~
17345 shlibpath_overrides_runpath=yes
17349 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17350 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17354 # MinGW DLLs use traditional 'lib' prefix
17355 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17358 # pw32 DLLs use 'pw' prefix rather than 'lib'
17359 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17362 dynamic_linker='Win32 ld.exe'
17367 libname_spec='$name'
17368 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17369 library_names_spec='$libname.dll.lib'
17373 sys_lib_search_path_spec=
17376 for lt_path in $LIB
17379 # Let DOS variable expansion print the short 8.3 style file name.
17380 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17381 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17384 # Convert to MSYS style.
17385 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17388 # Convert to unix form, then to dos form, then back to unix form
17389 # but this time dos style (no spaces!) so that the unix form looks
17390 # like /cygdrive/c/PROGRA~1:/cygdr...
17391 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17392 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17393 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17396 sys_lib_search_path_spec=$LIB
17397 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17398 # It is most probably a Windows format PATH.
17399 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17403 # FIXME: find the short name or the path components, as spaces are
17404 # common. (e.g. "Program Files" -> "PROGRA~1")
17408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17409 postinstall_cmds='base_file=`basename \$file`~
17410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17411 dldir=$destdir/`dirname \$dlpath`~
17412 test -d \$dldir || mkdir -p \$dldir~
17413 $install_prog $dir/$dlname \$dldir/$dlname'
17414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17415 dlpath=$dir/\$dldll~
17417 shlibpath_overrides_runpath=yes
17418 dynamic_linker='Win32 link.exe'
17422 # Assume MSVC wrapper
17423 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17424 dynamic_linker='Win32 ld.exe'
17427 # FIXME: first we should search . and the directory the executable is in
17431 darwin* | rhapsody*)
17432 dynamic_linker="$host_os dyld"
17433 version_type=darwin
17436 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17437 soname_spec='$libname$release$major$shared_ext'
17438 shlibpath_overrides_runpath=yes
17439 shlibpath_var=DYLD_LIBRARY_PATH
17440 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17446 version_type=linux # correct to gnu/linux during the next big refactor
17449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17450 soname_spec='$libname$release$shared_ext$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17454 freebsd* | dragonfly*)
17455 # DragonFly does not have aout. When/if they implement a new
17456 # versioning mechanism, adjust this.
17457 if test -x /usr/bin/objformat; then
17458 objformat=`/usr/bin/objformat`
17461 freebsd[23].*) objformat=aout ;;
17462 *) objformat=elf ;;
17465 version_type=freebsd-$objformat
17466 case $version_type in
17468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469 soname_spec='$libname$release$shared_ext$major'
17474 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17478 shlibpath_var=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath=yes
17483 freebsd3.[01]* | freebsdelf3.[01]*)
17484 shlibpath_overrides_runpath=yes
17485 hardcode_into_libs=yes
17487 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17488 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17489 shlibpath_overrides_runpath=no
17490 hardcode_into_libs=yes
17492 *) # from 4.6 on, and DragonFly
17493 shlibpath_overrides_runpath=yes
17494 hardcode_into_libs=yes
17500 version_type=linux # correct to gnu/linux during the next big refactor
17503 dynamic_linker="$host_os runtime_loader"
17504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17505 soname_spec='$libname$release$shared_ext$major'
17506 shlibpath_var=LIBRARY_PATH
17507 shlibpath_overrides_runpath=no
17508 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17509 hardcode_into_libs=yes
17512 hpux9* | hpux10* | hpux11*)
17513 # Give a soname corresponding to the major version so that dld.sl refuses to
17514 # link against other versions.
17521 hardcode_into_libs=yes
17522 dynamic_linker="$host_os dld.so"
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17526 soname_spec='$libname$release$shared_ext$major'
17527 if test 32 = "$HPUX_IA64_MODE"; then
17528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17529 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17532 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17537 hardcode_into_libs=yes
17538 dynamic_linker="$host_os dld.sl"
17539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17542 soname_spec='$libname$release$shared_ext$major'
17543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17548 dynamic_linker="$host_os dld.sl"
17549 shlibpath_var=SHLIB_PATH
17550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17552 soname_spec='$libname$release$shared_ext$major'
17555 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17556 postinstall_cmds='chmod 555 $lib'
17557 # or fails outright, so override atomically:
17558 install_override_mode=555
17562 version_type=linux # correct to gnu/linux during the next big refactor
17565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17566 soname_spec='$libname$release$shared_ext$major'
17567 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17568 shlibpath_var=LD_LIBRARY_PATH
17569 shlibpath_overrides_runpath=no
17570 hardcode_into_libs=yes
17573 irix5* | irix6* | nonstopux*)
17575 nonstopux*) version_type=nonstopux ;;
17577 if test yes = "$lt_cv_prog_gnu_ld"; then
17578 version_type=linux # correct to gnu/linux during the next big refactor
17585 soname_spec='$libname$release$shared_ext$major'
17586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17588 irix5* | nonstopux*)
17589 libsuff= shlibsuff=
17592 case $LD in # libtool.m4 will add one of these switches to LD
17593 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17594 libsuff= shlibsuff= libmagic=32-bit;;
17595 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17596 libsuff=32 shlibsuff=N32 libmagic=N32;;
17597 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17598 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17599 *) libsuff= shlibsuff= libmagic=never-match;;
17603 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17604 shlibpath_overrides_runpath=no
17605 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17606 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17607 hardcode_into_libs=yes
17610 # No shared lib support for Linux oldld, aout, or coff.
17611 linux*oldld* | linux*aout* | linux*coff*)
17616 version_type=none # Android doesn't support versioned libraries.
17619 library_names_spec='$libname$release$shared_ext'
17620 soname_spec='$libname$release$shared_ext'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=yes
17625 # This implies no fast_install, which is unacceptable.
17626 # Some rework will be needed to allow for fast_install
17627 # before this can be enabled.
17628 hardcode_into_libs=yes
17630 dynamic_linker='Android linker'
17631 # Don't embed -rpath directories since the linker doesn't support them.
17632 hardcode_libdir_flag_spec_CXX='-L$libdir'
17635 # This must be glibc/ELF.
17636 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17637 version_type=linux # correct to gnu/linux during the next big refactor
17640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17641 soname_spec='$libname$release$shared_ext$major'
17642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 shlibpath_overrides_runpath=no
17646 # Some binutils ld are patched to set DT_RUNPATH
17647 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17648 $as_echo_n "(cached) " >&6
17650 lt_cv_shlibpath_overrides_runpath=no
17651 save_LDFLAGS=$LDFLAGS
17652 save_libdir=$libdir
17653 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17654 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h. */
17666 if ac_fn_cxx_try_link "$LINENO"; then :
17667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17668 lt_cv_shlibpath_overrides_runpath=yes
17671 rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17673 LDFLAGS=$save_LDFLAGS
17674 libdir=$save_libdir
17678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17680 # This implies no fast_install, which is unacceptable.
17681 # Some rework will be needed to allow for fast_install
17682 # before this can be enabled.
17683 hardcode_into_libs=yes
17685 # Ideally, we could use ldconfig to report *all* directores which are
17686 # searched for libraries, however this is still not possible. Aside from not
17687 # being certain /sbin/ldconfig is available, command
17688 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17689 # even though it is searched at run-time. Try to do the best guess by
17690 # appending ld.so.conf contents (and includes) to the search path.
17691 if test -f /etc/ld.so.conf; then
17692 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' ' '`
17693 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17696 # We used to test for /lib/ld.so.1 and disable shared libraries on
17697 # powerpc, because MkLinux only supported shared libraries with the
17698 # GNU dynamic linker. Since this was broken with cross compilers,
17699 # most powerpc-linux boxes support dynamic linking these days and
17700 # people can always --disable-shared, the test was removed, and we
17701 # assume the GNU/Linux dynamic linker is in use.
17702 dynamic_linker='GNU/Linux ld.so'
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 shlibpath_var=LD_LIBRARY_PATH
17712 shlibpath_overrides_runpath=no
17713 hardcode_into_libs=yes
17714 dynamic_linker='NetBSD ld.elf_so'
17721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17724 dynamic_linker='NetBSD (a.out) ld.so'
17726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17727 soname_spec='$libname$release$shared_ext$major'
17728 dynamic_linker='NetBSD ld.elf_so'
17730 shlibpath_var=LD_LIBRARY_PATH
17731 shlibpath_overrides_runpath=yes
17732 hardcode_into_libs=yes
17736 version_type=linux # correct to gnu/linux during the next big refactor
17737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17738 shlibpath_var=LD_LIBRARY_PATH
17739 shlibpath_overrides_runpath=yes
17746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17747 soname_spec='$libname$release$shared_ext$major'
17748 shlibpath_var=LD_LIBRARY_PATH
17749 shlibpath_overrides_runpath=no
17750 hardcode_into_libs=yes
17751 dynamic_linker='ldqnx.so'
17754 openbsd* | bitrig*)
17756 sys_lib_dlsearch_path_spec=/usr/lib
17758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17765 shlibpath_var=LD_LIBRARY_PATH
17766 shlibpath_overrides_runpath=yes
17770 libname_spec='$name'
17771 version_type=windows
17775 # OS/2 can only load a DLL with a base name of 8 characters or less.
17776 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17777 v=$($ECHO $release$versuffix | tr -d .-);
17778 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17779 $ECHO $n$v`$shared_ext'
17780 library_names_spec='${libname}_dll.$libext'
17781 dynamic_linker='OS/2 ld.exe'
17782 shlibpath_var=BEGINLIBPATH
17783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17785 postinstall_cmds='base_file=`basename \$file`~
17786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17787 dldir=$destdir/`dirname \$dlpath`~
17788 test -d \$dldir || mkdir -p \$dldir~
17789 $install_prog $dir/$dlname \$dldir/$dlname~
17790 chmod a+x \$dldir/$dlname~
17791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17795 dlpath=$dir/\$dldll~
17799 osf3* | osf4* | osf5*)
17803 soname_spec='$libname$release$shared_ext$major'
17804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17805 shlibpath_var=LD_LIBRARY_PATH
17806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17815 version_type=linux # correct to gnu/linux during the next big refactor
17818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17819 soname_spec='$libname$release$shared_ext$major'
17820 shlibpath_var=LD_LIBRARY_PATH
17821 shlibpath_overrides_runpath=yes
17822 hardcode_into_libs=yes
17823 # ldd complains unless libraries are executable
17824 postinstall_cmds='chmod +x $lib'
17829 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17831 shlibpath_var=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath=yes
17833 if test yes = "$with_gnu_ld"; then
17840 version_type=linux # correct to gnu/linux during the next big refactor
17841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17842 soname_spec='$libname$release$shared_ext$major'
17843 shlibpath_var=LD_LIBRARY_PATH
17844 case $host_vendor in
17846 shlibpath_overrides_runpath=no
17848 runpath_var=LD_RUN_PATH
17856 shlibpath_overrides_runpath=no
17857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17863 if test -d /usr/nec; then
17864 version_type=linux # correct to gnu/linux during the next big refactor
17865 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17866 soname_spec='$libname$shared_ext.$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17876 soname_spec='$libname$release$shared_ext$major'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath=yes
17879 hardcode_into_libs=yes
17880 if test yes = "$with_gnu_ld"; then
17881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17890 sys_lib_dlsearch_path_spec='/usr/lib'
17894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17895 version_type=linux # correct to gnu/linux during the next big refactor
17898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17899 shlibpath_var=LD_LIBRARY_PATH
17900 shlibpath_overrides_runpath=no
17901 hardcode_into_libs=yes
17905 version_type=linux # correct to gnu/linux during the next big refactor
17906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17907 soname_spec='$libname$release$shared_ext$major'
17908 shlibpath_var=LD_LIBRARY_PATH
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17916 $as_echo "$dynamic_linker" >&6; }
17917 test no = "$dynamic_linker" && can_build_shared=no
17919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17920 if test yes = "$GCC"; then
17921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17924 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17925 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17928 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17929 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17932 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17933 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17935 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17936 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17938 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17939 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17982 hardcode_action_CXX=
17983 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17984 test -n "$runpath_var_CXX" ||
17985 test yes = "$hardcode_automatic_CXX"; then
17987 # We can hardcode non-existent directories.
17988 if test no != "$hardcode_direct_CXX" &&
17989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17990 # have to relink, otherwise we might link with an installed library
17991 # when we should be linking with a yet-to-be-installed one
17992 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17993 test no != "$hardcode_minus_L_CXX"; then
17994 # Linking always hardcodes the temporary library directory.
17995 hardcode_action_CXX=relink
17997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17998 hardcode_action_CXX=immediate
18001 # We cannot hardcode anything, or else we can only hardcode existing
18003 hardcode_action_CXX=unsupported
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18006 $as_echo "$hardcode_action_CXX" >&6; }
18008 if test relink = "$hardcode_action_CXX" ||
18009 test yes = "$inherit_rpath_CXX"; then
18010 # Fast installation is not supported
18011 enable_fast_install=no
18012 elif test yes = "$shlibpath_overrides_runpath" ||
18013 test no = "$enable_shared"; then
18014 # Fast installation is not necessary
18015 enable_fast_install=needless
18024 fi # test -n "$compiler"
18027 CFLAGS=$lt_save_CFLAGS
18031 with_gnu_ld=$lt_save_with_gnu_ld
18032 lt_cv_path_LDCXX=$lt_cv_path_LD
18033 lt_cv_path_LD=$lt_save_path_LD
18034 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18035 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18036 fi # test yes != "$_lt_caught_CXX_error"
18039 ac_cpp='$CPP $CPPFLAGS'
18040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18045 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
18047 ac_cpp='$CXXCPP $CPPFLAGS'
18048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18053 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18054 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18055 $as_echo_n "(cached) " >&6
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18061 // If the compiler admits that it is not ready for C++11, why torture it?
18062 // Hopefully, this will speed up the test.
18064 #ifndef __cplusplus
18066 #error "This is not a C++ compiler"
18068 #elif __cplusplus < 201103L
18070 #error "This is not a C++11 compiler"
18077 namespace test_static_assert
18080 template <typename T>
18083 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18088 namespace test_final_override
18093 virtual void f() {}
18096 struct Derived : public Base
18098 virtual void f() override {}
18103 namespace test_double_right_angle_brackets
18106 template < typename T >
18109 typedef check<void> single_type;
18110 typedef check<check<void>> double_type;
18111 typedef check<check<check<void>>> triple_type;
18112 typedef check<check<check<check<void>>>> quadruple_type;
18116 namespace test_decltype
18129 namespace test_type_deduction
18132 template < typename T1, typename T2 >
18135 static const bool value = false;
18138 template < typename T >
18139 struct is_same<T, T>
18141 static const bool value = true;
18144 template < typename T1, typename T2 >
18146 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18152 test(const int c, volatile int v)
18154 static_assert(is_same<int, decltype(0)>::value == true, "");
18155 static_assert(is_same<int, decltype(c)>::value == false, "");
18156 static_assert(is_same<int, decltype(v)>::value == false, "");
18159 auto sumi = ac + av + 'x';
18160 auto sumf = ac + av + 1.0;
18161 static_assert(is_same<int, decltype(ac)>::value == true, "");
18162 static_assert(is_same<int, decltype(av)>::value == true, "");
18163 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18164 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18165 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18166 return (sumf > 0.0) ? sumi : add(c, v);
18171 namespace test_noexcept
18174 int f() { return 0; }
18175 int g() noexcept { return 0; }
18177 static_assert(noexcept(f()) == false, "");
18178 static_assert(noexcept(g()) == true, "");
18182 namespace test_constexpr
18185 template < typename CharT >
18186 unsigned long constexpr
18187 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18189 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18192 template < typename CharT >
18193 unsigned long constexpr
18194 strlen_c(const CharT *const s) noexcept
18196 return strlen_c_r(s, 0UL);
18199 static_assert(strlen_c("") == 0UL, "");
18200 static_assert(strlen_c("1") == 1UL, "");
18201 static_assert(strlen_c("example") == 7UL, "");
18202 static_assert(strlen_c("another\0example") == 7UL, "");
18206 namespace test_rvalue_references
18212 static constexpr int value = N;
18215 answer<1> f(int&) { return answer<1>(); }
18216 answer<2> f(const int&) { return answer<2>(); }
18217 answer<3> f(int&&) { return answer<3>(); }
18224 static_assert(decltype(f(i))::value == 1, "");
18225 static_assert(decltype(f(c))::value == 2, "");
18226 static_assert(decltype(f(0))::value == 3, "");
18231 namespace test_uniform_initialization
18236 static const int zero {};
18237 static const int one {1};
18240 static_assert(test::zero == 0, "");
18241 static_assert(test::one == 1, "");
18245 namespace test_lambdas
18251 auto lambda1 = [](){};
18252 auto lambda2 = lambda1;
18260 auto a = [](int i, int j){ return i + j; }(1, 2);
18261 auto b = []() -> int { return '0'; }();
18262 auto c = [=](){ return a + b; }();
18263 auto d = [&](){ return c; }();
18264 auto e = [a, &b](int x) mutable {
18265 const auto identity = [](int y){ return y; };
18266 for (auto i = 0; i < a; ++i)
18268 return x + identity(a + b);
18270 return a + b + c + d + e;
18276 const auto nullary = [](){ return 0; };
18277 const auto unary = [](int x){ return x; };
18278 using nullary_t = decltype(nullary);
18279 using unary_t = decltype(unary);
18280 const auto higher1st = [](nullary_t f){ return f(); };
18281 const auto higher2nd = [unary](nullary_t f1){
18282 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18284 return higher1st(nullary) + higher2nd(nullary)(unary);
18289 namespace test_variadic_templates
18295 template <int N0, int... N1toN>
18296 struct sum<N0, N1toN...>
18298 static constexpr auto value = N0 + sum<N1toN...>::value;
18304 static constexpr auto value = 0;
18307 static_assert(sum<>::value == 0, "");
18308 static_assert(sum<1>::value == 1, "");
18309 static_assert(sum<23>::value == 23, "");
18310 static_assert(sum<1, 2>::value == 3, "");
18311 static_assert(sum<5, 5, 11>::value == 21, "");
18312 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18316 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18317 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18318 // because of this.
18319 namespace test_template_alias_sfinae
18324 template<typename T>
18325 using member = typename T::member_type;
18327 template<typename T>
18330 template<typename T>
18331 void func(member<T>*) {}
18335 void test() { func<foo>(0); }
18339 } // namespace cxx11
18341 #endif // __cplusplus >= 201103L
18346 if ac_fn_cxx_try_compile "$LINENO"; then :
18347 ax_cv_cxx_compile_cxx11=yes
18349 ax_cv_cxx_compile_cxx11=no
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18354 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18355 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18359 if test x$ac_success = xno; then
18360 for alternative in ${ax_cxx_compile_alternatives}; do
18361 switch="-std=gnu++${alternative}"
18362 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18364 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18365 if eval \${$cachevar+:} false; then :
18366 $as_echo_n "(cached) " >&6
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18374 // If the compiler admits that it is not ready for C++11, why torture it?
18375 // Hopefully, this will speed up the test.
18377 #ifndef __cplusplus
18379 #error "This is not a C++ compiler"
18381 #elif __cplusplus < 201103L
18383 #error "This is not a C++11 compiler"
18390 namespace test_static_assert
18393 template <typename T>
18396 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18401 namespace test_final_override
18406 virtual void f() {}
18409 struct Derived : public Base
18411 virtual void f() override {}
18416 namespace test_double_right_angle_brackets
18419 template < typename T >
18422 typedef check<void> single_type;
18423 typedef check<check<void>> double_type;
18424 typedef check<check<check<void>>> triple_type;
18425 typedef check<check<check<check<void>>>> quadruple_type;
18429 namespace test_decltype
18442 namespace test_type_deduction
18445 template < typename T1, typename T2 >
18448 static const bool value = false;
18451 template < typename T >
18452 struct is_same<T, T>
18454 static const bool value = true;
18457 template < typename T1, typename T2 >
18459 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18465 test(const int c, volatile int v)
18467 static_assert(is_same<int, decltype(0)>::value == true, "");
18468 static_assert(is_same<int, decltype(c)>::value == false, "");
18469 static_assert(is_same<int, decltype(v)>::value == false, "");
18472 auto sumi = ac + av + 'x';
18473 auto sumf = ac + av + 1.0;
18474 static_assert(is_same<int, decltype(ac)>::value == true, "");
18475 static_assert(is_same<int, decltype(av)>::value == true, "");
18476 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18477 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18478 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18479 return (sumf > 0.0) ? sumi : add(c, v);
18484 namespace test_noexcept
18487 int f() { return 0; }
18488 int g() noexcept { return 0; }
18490 static_assert(noexcept(f()) == false, "");
18491 static_assert(noexcept(g()) == true, "");
18495 namespace test_constexpr
18498 template < typename CharT >
18499 unsigned long constexpr
18500 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18502 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18505 template < typename CharT >
18506 unsigned long constexpr
18507 strlen_c(const CharT *const s) noexcept
18509 return strlen_c_r(s, 0UL);
18512 static_assert(strlen_c("") == 0UL, "");
18513 static_assert(strlen_c("1") == 1UL, "");
18514 static_assert(strlen_c("example") == 7UL, "");
18515 static_assert(strlen_c("another\0example") == 7UL, "");
18519 namespace test_rvalue_references
18525 static constexpr int value = N;
18528 answer<1> f(int&) { return answer<1>(); }
18529 answer<2> f(const int&) { return answer<2>(); }
18530 answer<3> f(int&&) { return answer<3>(); }
18537 static_assert(decltype(f(i))::value == 1, "");
18538 static_assert(decltype(f(c))::value == 2, "");
18539 static_assert(decltype(f(0))::value == 3, "");
18544 namespace test_uniform_initialization
18549 static const int zero {};
18550 static const int one {1};
18553 static_assert(test::zero == 0, "");
18554 static_assert(test::one == 1, "");
18558 namespace test_lambdas
18564 auto lambda1 = [](){};
18565 auto lambda2 = lambda1;
18573 auto a = [](int i, int j){ return i + j; }(1, 2);
18574 auto b = []() -> int { return '0'; }();
18575 auto c = [=](){ return a + b; }();
18576 auto d = [&](){ return c; }();
18577 auto e = [a, &b](int x) mutable {
18578 const auto identity = [](int y){ return y; };
18579 for (auto i = 0; i < a; ++i)
18581 return x + identity(a + b);
18583 return a + b + c + d + e;
18589 const auto nullary = [](){ return 0; };
18590 const auto unary = [](int x){ return x; };
18591 using nullary_t = decltype(nullary);
18592 using unary_t = decltype(unary);
18593 const auto higher1st = [](nullary_t f){ return f(); };
18594 const auto higher2nd = [unary](nullary_t f1){
18595 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18597 return higher1st(nullary) + higher2nd(nullary)(unary);
18602 namespace test_variadic_templates
18608 template <int N0, int... N1toN>
18609 struct sum<N0, N1toN...>
18611 static constexpr auto value = N0 + sum<N1toN...>::value;
18617 static constexpr auto value = 0;
18620 static_assert(sum<>::value == 0, "");
18621 static_assert(sum<1>::value == 1, "");
18622 static_assert(sum<23>::value == 23, "");
18623 static_assert(sum<1, 2>::value == 3, "");
18624 static_assert(sum<5, 5, 11>::value == 21, "");
18625 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18629 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18630 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18631 // because of this.
18632 namespace test_template_alias_sfinae
18637 template<typename T>
18638 using member = typename T::member_type;
18640 template<typename T>
18643 template<typename T>
18644 void func(member<T>*) {}
18648 void test() { func<foo>(0); }
18652 } // namespace cxx11
18654 #endif // __cplusplus >= 201103L
18659 if ac_fn_cxx_try_compile "$LINENO"; then :
18664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18667 eval ac_res=\$$cachevar
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18669 $as_echo "$ac_res" >&6; }
18670 if eval test x\$$cachevar = xyes; then
18672 if test -n "$CXXCPP" ; then
18673 CXXCPP="$CXXCPP $switch"
18681 if test x$ac_success = xno; then
18682 for alternative in ${ax_cxx_compile_alternatives}; do
18683 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18684 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18686 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18687 if eval \${$cachevar+:} false; then :
18688 $as_echo_n "(cached) " >&6
18692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h. */
18696 // If the compiler admits that it is not ready for C++11, why torture it?
18697 // Hopefully, this will speed up the test.
18699 #ifndef __cplusplus
18701 #error "This is not a C++ compiler"
18703 #elif __cplusplus < 201103L
18705 #error "This is not a C++11 compiler"
18712 namespace test_static_assert
18715 template <typename T>
18718 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18723 namespace test_final_override
18728 virtual void f() {}
18731 struct Derived : public Base
18733 virtual void f() override {}
18738 namespace test_double_right_angle_brackets
18741 template < typename T >
18744 typedef check<void> single_type;
18745 typedef check<check<void>> double_type;
18746 typedef check<check<check<void>>> triple_type;
18747 typedef check<check<check<check<void>>>> quadruple_type;
18751 namespace test_decltype
18764 namespace test_type_deduction
18767 template < typename T1, typename T2 >
18770 static const bool value = false;
18773 template < typename T >
18774 struct is_same<T, T>
18776 static const bool value = true;
18779 template < typename T1, typename T2 >
18781 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18787 test(const int c, volatile int v)
18789 static_assert(is_same<int, decltype(0)>::value == true, "");
18790 static_assert(is_same<int, decltype(c)>::value == false, "");
18791 static_assert(is_same<int, decltype(v)>::value == false, "");
18794 auto sumi = ac + av + 'x';
18795 auto sumf = ac + av + 1.0;
18796 static_assert(is_same<int, decltype(ac)>::value == true, "");
18797 static_assert(is_same<int, decltype(av)>::value == true, "");
18798 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18799 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18800 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18801 return (sumf > 0.0) ? sumi : add(c, v);
18806 namespace test_noexcept
18809 int f() { return 0; }
18810 int g() noexcept { return 0; }
18812 static_assert(noexcept(f()) == false, "");
18813 static_assert(noexcept(g()) == true, "");
18817 namespace test_constexpr
18820 template < typename CharT >
18821 unsigned long constexpr
18822 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18824 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18827 template < typename CharT >
18828 unsigned long constexpr
18829 strlen_c(const CharT *const s) noexcept
18831 return strlen_c_r(s, 0UL);
18834 static_assert(strlen_c("") == 0UL, "");
18835 static_assert(strlen_c("1") == 1UL, "");
18836 static_assert(strlen_c("example") == 7UL, "");
18837 static_assert(strlen_c("another\0example") == 7UL, "");
18841 namespace test_rvalue_references
18847 static constexpr int value = N;
18850 answer<1> f(int&) { return answer<1>(); }
18851 answer<2> f(const int&) { return answer<2>(); }
18852 answer<3> f(int&&) { return answer<3>(); }
18859 static_assert(decltype(f(i))::value == 1, "");
18860 static_assert(decltype(f(c))::value == 2, "");
18861 static_assert(decltype(f(0))::value == 3, "");
18866 namespace test_uniform_initialization
18871 static const int zero {};
18872 static const int one {1};
18875 static_assert(test::zero == 0, "");
18876 static_assert(test::one == 1, "");
18880 namespace test_lambdas
18886 auto lambda1 = [](){};
18887 auto lambda2 = lambda1;
18895 auto a = [](int i, int j){ return i + j; }(1, 2);
18896 auto b = []() -> int { return '0'; }();
18897 auto c = [=](){ return a + b; }();
18898 auto d = [&](){ return c; }();
18899 auto e = [a, &b](int x) mutable {
18900 const auto identity = [](int y){ return y; };
18901 for (auto i = 0; i < a; ++i)
18903 return x + identity(a + b);
18905 return a + b + c + d + e;
18911 const auto nullary = [](){ return 0; };
18912 const auto unary = [](int x){ return x; };
18913 using nullary_t = decltype(nullary);
18914 using unary_t = decltype(unary);
18915 const auto higher1st = [](nullary_t f){ return f(); };
18916 const auto higher2nd = [unary](nullary_t f1){
18917 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18919 return higher1st(nullary) + higher2nd(nullary)(unary);
18924 namespace test_variadic_templates
18930 template <int N0, int... N1toN>
18931 struct sum<N0, N1toN...>
18933 static constexpr auto value = N0 + sum<N1toN...>::value;
18939 static constexpr auto value = 0;
18942 static_assert(sum<>::value == 0, "");
18943 static_assert(sum<1>::value == 1, "");
18944 static_assert(sum<23>::value == 23, "");
18945 static_assert(sum<1, 2>::value == 3, "");
18946 static_assert(sum<5, 5, 11>::value == 21, "");
18947 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18951 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18952 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18953 // because of this.
18954 namespace test_template_alias_sfinae
18959 template<typename T>
18960 using member = typename T::member_type;
18962 template<typename T>
18965 template<typename T>
18966 void func(member<T>*) {}
18970 void test() { func<foo>(0); }
18974 } // namespace cxx11
18976 #endif // __cplusplus >= 201103L
18981 if ac_fn_cxx_try_compile "$LINENO"; then :
18986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18989 eval ac_res=\$$cachevar
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18991 $as_echo "$ac_res" >&6; }
18992 if eval test x\$$cachevar = xyes; then
18994 if test -n "$CXXCPP" ; then
18995 CXXCPP="$CXXCPP $switch"
19001 if test x$ac_success = xyes; then
19007 ac_cpp='$CPP $CPPFLAGS'
19008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19012 if test x$ax_cxx_compile_cxx11_required = xtrue; then
19013 if test x$ac_success = xno; then
19014 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
19017 if test x$ac_success = xno; then
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19020 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
19024 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
19030 # Check whether --enable-largefile was given.
19031 if test "${enable_largefile+set}" = set; then :
19032 enableval=$enable_largefile;
19035 if test "$enable_largefile" != no; then
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19038 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19039 if ${ac_cv_sys_largefile_CC+:} false; then :
19040 $as_echo_n "(cached) " >&6
19042 ac_cv_sys_largefile_CC=no
19043 if test "$GCC" != yes; then
19046 # IRIX 6.2 and later do not support large files by default,
19047 # so use the C compiler's -n32 option if that helps.
19048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h. */
19050 #include <sys/types.h>
19051 /* Check that off_t can represent 2**63 - 1 correctly.
19052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19053 since some C++ compilers masquerading as C compilers
19054 incorrectly reject 9223372036854775807. */
19055 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19057 && LARGE_OFF_T % 2147483647 == 1)
19067 if ac_fn_c_try_compile "$LINENO"; then :
19070 rm -f core conftest.err conftest.$ac_objext
19072 if ac_fn_c_try_compile "$LINENO"; then :
19073 ac_cv_sys_largefile_CC=' -n32'; break
19075 rm -f core conftest.err conftest.$ac_objext
19079 rm -f conftest.$ac_ext
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19083 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19084 if test "$ac_cv_sys_largefile_CC" != no; then
19085 CC=$CC$ac_cv_sys_largefile_CC
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19089 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19090 if ${ac_cv_sys_file_offset_bits+:} false; then :
19091 $as_echo_n "(cached) " >&6
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19096 #include <sys/types.h>
19097 /* Check that off_t can represent 2**63 - 1 correctly.
19098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19099 since some C++ compilers masquerading as C compilers
19100 incorrectly reject 9223372036854775807. */
19101 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19103 && LARGE_OFF_T % 2147483647 == 1)
19113 if ac_fn_c_try_compile "$LINENO"; then :
19114 ac_cv_sys_file_offset_bits=no; break
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19119 #define _FILE_OFFSET_BITS 64
19120 #include <sys/types.h>
19121 /* Check that off_t can represent 2**63 - 1 correctly.
19122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19123 since some C++ compilers masquerading as C compilers
19124 incorrectly reject 9223372036854775807. */
19125 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19127 && LARGE_OFF_T % 2147483647 == 1)
19137 if ac_fn_c_try_compile "$LINENO"; then :
19138 ac_cv_sys_file_offset_bits=64; break
19140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 ac_cv_sys_file_offset_bits=unknown
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19146 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19147 case $ac_cv_sys_file_offset_bits in #(
19150 cat >>confdefs.h <<_ACEOF
19151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19156 if test $ac_cv_sys_file_offset_bits = unknown; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19158 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19159 if ${ac_cv_sys_large_files+:} false; then :
19160 $as_echo_n "(cached) " >&6
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19165 #include <sys/types.h>
19166 /* Check that off_t can represent 2**63 - 1 correctly.
19167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19168 since some C++ compilers masquerading as C compilers
19169 incorrectly reject 9223372036854775807. */
19170 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19172 && LARGE_OFF_T % 2147483647 == 1)
19182 if ac_fn_c_try_compile "$LINENO"; then :
19183 ac_cv_sys_large_files=no; break
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187 /* end confdefs.h. */
19188 #define _LARGE_FILES 1
19189 #include <sys/types.h>
19190 /* Check that off_t can represent 2**63 - 1 correctly.
19191 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19192 since some C++ compilers masquerading as C compilers
19193 incorrectly reject 9223372036854775807. */
19194 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19195 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19196 && LARGE_OFF_T % 2147483647 == 1)
19206 if ac_fn_c_try_compile "$LINENO"; then :
19207 ac_cv_sys_large_files=1; break
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 ac_cv_sys_large_files=unknown
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19215 $as_echo "$ac_cv_sys_large_files" >&6; }
19216 case $ac_cv_sys_large_files in #(
19219 cat >>confdefs.h <<_ACEOF
19220 #define _LARGE_FILES $ac_cv_sys_large_files
19237 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19238 if test -n "$ac_tool_prefix"; then
19239 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19240 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19242 $as_echo_n "checking for $ac_word... " >&6; }
19243 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19244 $as_echo_n "(cached) " >&6
19246 case $PKG_CONFIG in
19248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19252 for as_dir in $PATH
19255 test -z "$as_dir" && as_dir=.
19256 for ac_exec_ext in '' $ac_executable_extensions; do
19257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19258 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19270 if test -n "$PKG_CONFIG"; then
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19272 $as_echo "$PKG_CONFIG" >&6; }
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 $as_echo "no" >&6; }
19280 if test -z "$ac_cv_path_PKG_CONFIG"; then
19281 ac_pt_PKG_CONFIG=$PKG_CONFIG
19282 # Extract the first word of "pkg-config", so it can be a program name with args.
19283 set dummy pkg-config; ac_word=$2
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19285 $as_echo_n "checking for $ac_word... " >&6; }
19286 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19287 $as_echo_n "(cached) " >&6
19289 case $ac_pt_PKG_CONFIG in
19291 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19295 for as_dir in $PATH
19298 test -z "$as_dir" && as_dir=.
19299 for ac_exec_ext in '' $ac_executable_extensions; do
19300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19301 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19312 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19313 if test -n "$ac_pt_PKG_CONFIG"; then
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19315 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318 $as_echo "no" >&6; }
19321 if test "x$ac_pt_PKG_CONFIG" = x; then
19324 case $cross_compiling:$ac_tool_warned in
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19328 ac_tool_warned=yes ;;
19330 PKG_CONFIG=$ac_pt_PKG_CONFIG
19333 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19337 if test -n "$PKG_CONFIG"; then
19338 _pkg_min_version=0.28
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19340 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19341 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19343 $as_echo "yes" >&6; }
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19346 $as_echo "no" >&6; }
19351 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19354 GIT=${GIT-"${am_missing_run}git"}
19373 HB_LIBTOOL_VERSION_INFO=60822:0:60822
19377 # Check whether --with-libstdc++ was given.
19378 if test "${with_libstdc__+set}" = set; then :
19379 withval=$with_libstdc__; with_libstdcxx=$withval
19384 if test "x$with_libstdcxx" = "xyes"; then
19385 WITH_LIBSTDCXX_TRUE=
19386 WITH_LIBSTDCXX_FALSE='#'
19388 WITH_LIBSTDCXX_TRUE='#'
19389 WITH_LIBSTDCXX_FALSE=
19399 gtk_doc_requires="gtk-doc >= 1.15"
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19401 $as_echo_n "checking for gtk-doc... " >&6; }
19402 if test -n "$PKG_CONFIG" && \
19403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19404 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407 test $ac_status = 0; }; then
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19413 $as_echo "$have_gtk_doc" >&6; }
19415 if test "$have_gtk_doc" = "no"; then
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19417 You will not be able to create source packages with 'make dist'
19418 because $gtk_doc_requires is not found." >&5
19419 $as_echo "$as_me: WARNING:
19420 You will not be able to create source packages with 'make dist'
19421 because $gtk_doc_requires is not found." >&2;}
19424 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19425 set dummy gtkdoc-check; ac_word=$2
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19427 $as_echo_n "checking for $ac_word... " >&6; }
19428 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19429 $as_echo_n "(cached) " >&6
19431 if test -n "$GTKDOC_CHECK"; then
19432 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in $PATH
19438 test -z "$as_dir" && as_dir=.
19439 for ac_exec_ext in '' $ac_executable_extensions; do
19440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19441 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19451 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19452 if test -n "$GTKDOC_CHECK"; then
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19454 $as_echo "$GTKDOC_CHECK" >&6; }
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19457 $as_echo "no" >&6; }
19461 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19462 set dummy gtkdoc-check; ac_word=$2
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19464 $as_echo_n "checking for $ac_word... " >&6; }
19465 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19466 $as_echo_n "(cached) " >&6
19468 case $GTKDOC_CHECK_PATH in
19470 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19477 test -z "$as_dir" && as_dir=.
19478 for ac_exec_ext in '' $ac_executable_extensions; do
19479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19480 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19491 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19492 if test -n "$GTKDOC_CHECK_PATH"; then
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19494 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19497 $as_echo "no" >&6; }
19501 for ac_prog in gtkdoc-rebase
19503 # Extract the first word of "$ac_prog", so it can be a program name with args.
19504 set dummy $ac_prog; ac_word=$2
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19506 $as_echo_n "checking for $ac_word... " >&6; }
19507 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19508 $as_echo_n "(cached) " >&6
19510 case $GTKDOC_REBASE in
19512 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19516 for as_dir in $PATH
19519 test -z "$as_dir" && as_dir=.
19520 for ac_exec_ext in '' $ac_executable_extensions; do
19521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19522 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19533 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19534 if test -n "$GTKDOC_REBASE"; then
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19536 $as_echo "$GTKDOC_REBASE" >&6; }
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19543 test -n "$GTKDOC_REBASE" && break
19545 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19547 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19548 set dummy gtkdoc-mkpdf; ac_word=$2
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19550 $as_echo_n "checking for $ac_word... " >&6; }
19551 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19552 $as_echo_n "(cached) " >&6
19554 case $GTKDOC_MKPDF in
19556 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19560 for as_dir in $PATH
19563 test -z "$as_dir" && as_dir=.
19564 for ac_exec_ext in '' $ac_executable_extensions; do
19565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19566 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19577 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19578 if test -n "$GTKDOC_MKPDF"; then
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19580 $as_echo "$GTKDOC_MKPDF" >&6; }
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19583 $as_echo "no" >&6; }
19589 # Check whether --with-html-dir was given.
19590 if test "${with_html_dir+set}" = set; then :
19591 withval=$with_html_dir;
19593 with_html_dir='${datadir}/gtk-doc/html'
19596 HTML_DIR="$with_html_dir"
19599 # Check whether --enable-gtk-doc was given.
19600 if test "${enable_gtk_doc+set}" = set; then :
19601 enableval=$enable_gtk_doc;
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19608 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19610 $as_echo "$enable_gtk_doc" >&6; }
19612 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19614 You must have $gtk_doc_requires installed to build documentation for
19615 $PACKAGE_NAME. Please install gtk-doc or disable building the
19616 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19619 if test "x$PACKAGE_NAME" != "xglib"; then
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19623 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19625 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19626 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19627 elif test -n "$PKG_CONFIG"; then
19628 if test -n "$PKG_CONFIG" && \
19629 { { $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
19630 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633 test $ac_status = 0; }; then
19634 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19635 test "x$?" != "x0" && pkg_failed=yes
19642 if test -n "$GTKDOC_DEPS_LIBS"; then
19643 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19644 elif test -n "$PKG_CONFIG"; then
19645 if test -n "$PKG_CONFIG" && \
19646 { { $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
19647 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19650 test $ac_status = 0; }; then
19651 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19652 test "x$?" != "x0" && pkg_failed=yes
19662 if test $pkg_failed = yes; then
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664 $as_echo "no" >&6; }
19666 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19667 _pkg_short_errors_supported=yes
19669 _pkg_short_errors_supported=no
19671 if test $_pkg_short_errors_supported = yes; then
19672 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19674 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19676 # Put the nasty error message in config.log where it belongs
19677 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19680 elif test $pkg_failed = untried; then
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19682 $as_echo "no" >&6; }
19685 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19686 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19688 $as_echo "yes" >&6; }
19693 # Check whether --enable-gtk-doc-html was given.
19694 if test "${enable_gtk_doc_html+set}" = set; then :
19695 enableval=$enable_gtk_doc_html;
19697 enable_gtk_doc_html=yes
19700 # Check whether --enable-gtk-doc-pdf was given.
19701 if test "${enable_gtk_doc_pdf+set}" = set; then :
19702 enableval=$enable_gtk_doc_pdf;
19704 enable_gtk_doc_pdf=no
19708 if test -z "$GTKDOC_MKPDF"; then
19709 enable_gtk_doc_pdf=no
19712 if test -z "$AM_DEFAULT_VERBOSITY"; then
19713 AM_DEFAULT_VERBOSITY=1
19717 if test x$have_gtk_doc = xyes; then
19719 HAVE_GTK_DOC_FALSE='#'
19721 HAVE_GTK_DOC_TRUE='#'
19722 HAVE_GTK_DOC_FALSE=
19725 if test x$enable_gtk_doc = xyes; then
19726 ENABLE_GTK_DOC_TRUE=
19727 ENABLE_GTK_DOC_FALSE='#'
19729 ENABLE_GTK_DOC_TRUE='#'
19730 ENABLE_GTK_DOC_FALSE=
19733 if test x$enable_gtk_doc_html = xyes; then
19734 GTK_DOC_BUILD_HTML_TRUE=
19735 GTK_DOC_BUILD_HTML_FALSE='#'
19737 GTK_DOC_BUILD_HTML_TRUE='#'
19738 GTK_DOC_BUILD_HTML_FALSE=
19741 if test x$enable_gtk_doc_pdf = xyes; then
19742 GTK_DOC_BUILD_PDF_TRUE=
19743 GTK_DOC_BUILD_PDF_FALSE='#'
19745 GTK_DOC_BUILD_PDF_TRUE='#'
19746 GTK_DOC_BUILD_PDF_FALSE=
19749 if test -n "$LIBTOOL"; then
19750 GTK_DOC_USE_LIBTOOL_TRUE=
19751 GTK_DOC_USE_LIBTOOL_FALSE='#'
19753 GTK_DOC_USE_LIBTOOL_TRUE='#'
19754 GTK_DOC_USE_LIBTOOL_FALSE=
19757 if test -n "$GTKDOC_REBASE"; then
19758 GTK_DOC_USE_REBASE_TRUE=
19759 GTK_DOC_USE_REBASE_FALSE='#'
19761 GTK_DOC_USE_REBASE_TRUE='#'
19762 GTK_DOC_USE_REBASE_FALSE=
19766 if test "x$enable_gtk_doc" = xyes; then
19771 # Functions and headers
19772 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale uselocale sincosf
19774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19777 cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19784 for ac_header in unistd.h sys/mman.h stdbool.h xlocale.h
19786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19787 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19789 cat >>confdefs.h <<_ACEOF
19790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19800 # The cast to long int works around a bug in the HP C Compiler,
19801 # see AC_CHECK_SIZEOF for more information.
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19803 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19804 if ${ac_cv_alignof_struct_char__+:} false; then :
19805 $as_echo_n "(cached) " >&6
19807 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
19809 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19811 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19814 if test "$ac_cv_type_struct_char__" = yes; then
19815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19817 as_fn_error 77 "cannot compute alignment of struct{char;}
19818 See \`config.log' for more details" "$LINENO" 5; }
19820 ac_cv_alignof_struct_char__=0
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19826 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19830 cat >>confdefs.h <<_ACEOF
19831 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19835 if test "x$GCC" = "xyes"; then
19837 # Make symbols link locally
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19839 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19840 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19841 $as_echo_n "(cached) " >&6
19844 ax_check_save_flags=$LDFLAGS
19845 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19857 if ac_fn_c_try_link "$LINENO"; then :
19858 ax_cv_check_ldflags___Bsymbolic_functions=yes
19860 ax_cv_check_ldflags___Bsymbolic_functions=no
19862 rm -f core conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864 LDFLAGS=$ax_check_save_flags
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19867 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19868 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19869 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19875 # Make it possible to not link to libstdc++
19876 # No threadsafe statics in C++ as we do it ourselves.
19877 # We don't use these features, so it's safe to disable them
19878 # even in the cases where we DO link to libstdc++.
19879 # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19880 # by overriding CXXFLAGS.
19881 CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19887 # Hide inline methods
19888 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19894 if test "x$ac_cv_alignof_struct_char__" != x1; then
19895 # Request byte alignment
19896 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19902 if test "x$GCC" = "xyes"; then
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19913 $as_echo_n "checking for native Win32... " >&6; }
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19920 $as_echo "$hb_os_win32" >&6; }
19921 if test "$hb_os_win32" = "yes"; then
19936 ac_cpp='$CPP $CPPFLAGS'
19937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19943 # We used to check for pthread.h first, but this fails if pthread.h
19944 # requires special compiler flags (e.g. on Tru64 or Sequent).
19945 # It gets checked for in the link test anyway.
19947 # First of all, check if the user has set any of the PTHREAD_LIBS,
19948 # etcetera environment variables, and if threads linking works using
19950 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19951 ax_pthread_save_CC="$CC"
19952 ax_pthread_save_CFLAGS="$CFLAGS"
19953 ax_pthread_save_LIBS="$LIBS"
19954 if test "x$PTHREAD_CC" != "x"; then :
19957 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19958 LIBS="$PTHREAD_LIBS $LIBS"
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19960 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19964 /* Override any GCC internal prototype to avoid an error.
19965 Use char because int might match the return type of a GCC
19966 builtin and then its argument prototype would still apply. */
19970 char pthread_join ();
19974 return pthread_join ();
19979 if ac_fn_c_try_link "$LINENO"; then :
19982 rm -f core conftest.err conftest.$ac_objext \
19983 conftest$ac_exeext conftest.$ac_ext
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19985 $as_echo "$ax_pthread_ok" >&6; }
19986 if test "x$ax_pthread_ok" = "xno"; then
19990 CC="$ax_pthread_save_CC"
19991 CFLAGS="$ax_pthread_save_CFLAGS"
19992 LIBS="$ax_pthread_save_LIBS"
19995 # We must check for the threads library under a number of different
19996 # names; the ordering is very important because some systems
19997 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19998 # libraries is broken (non-POSIX).
20000 # Create a list of thread flags to try. Items starting with a "-" are
20001 # C compiler flags, and other items are library names, except for "none"
20002 # which indicates that we try without any flags at all, and "pthread-config"
20003 # which is a program returning the flags for the Pth emulation library.
20005 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20007 # The ordering *is* (sometimes) important. Some notes on the
20008 # individual items follow:
20010 # pthreads: AIX (must check this before -lpthread)
20011 # none: in case threads are in libc; should be tried before -Kthread and
20012 # other compiler flags to prevent continual compiler warnings
20013 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20014 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20015 # (Note: HP C rejects this with "bad form for `-t' option")
20016 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20017 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20018 # doesn't hurt to check since this sometimes defines pthreads and
20019 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20020 # is present but should not be used directly; and before -mthreads,
20021 # because the compiler interprets this as "-mt" + "-hreads")
20022 # -mthreads: Mingw32/gcc, Lynx/gcc
20023 # pthread: Linux, etcetera
20024 # --thread-safe: KAI C++
20025 # pthread-config: use pthread-config program (for GNU Pth library)
20031 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20032 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20034 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20039 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20040 # multi-threading and also sets -lpthread."
20042 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20047 # IBM z/OS requires a feature-test macro to be defined in order to
20048 # enable POSIX threads at all, so give the user a hint if this is
20049 # not set. (We don't define these ourselves, as they can affect
20050 # other portions of the system API in unpredictable ways.)
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20055 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20056 AX_PTHREAD_ZOS_MISSING
20060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20061 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20063 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20071 # On Solaris (at least, for some versions), libc contains stubbed
20072 # (non-functional) versions of the pthreads routines, so link-based
20073 # tests will erroneously succeed. (N.B.: The stubs are missing
20074 # pthread_cleanup_push, or rather a function called by this macro,
20075 # so we could check for that, but who knows whether they'll stub
20076 # that too in a future libc.) So we'll check first for the
20077 # standard Solaris way of linking pthreads (-mt -lpthread).
20079 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20083 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20085 if test "x$GCC" = "xyes"; then :
20086 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20089 # The presence of a feature test macro requesting re-entrant function
20090 # definitions is, on some systems, a strong hint that pthreads support is
20091 # correctly enabled
20094 darwin* | hpux* | linux* | osf* | solaris*)
20095 ax_pthread_check_macro="_REENTRANT"
20099 ax_pthread_check_macro="_THREAD_SAFE"
20103 ax_pthread_check_macro="--"
20106 if test "x$ax_pthread_check_macro" = "x--"; then :
20107 ax_pthread_check_cond=0
20109 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20112 # Are we compiling with Clang?
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20115 $as_echo_n "checking whether $CC is Clang... " >&6; }
20116 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20117 $as_echo_n "(cached) " >&6
20119 ax_cv_PTHREAD_CLANG=no
20120 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20121 if test "x$GCC" = "xyes"; then
20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h. */
20124 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20125 # if defined(__clang__) && defined(__llvm__)
20126 AX_PTHREAD_CC_IS_CLANG
20130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20131 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20132 ax_cv_PTHREAD_CLANG=yes
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20140 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20141 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20143 ax_pthread_clang_warning=no
20145 # Clang needs special handling, because older versions handle the -pthread
20146 # option in a rather... idiosyncratic way
20148 if test "x$ax_pthread_clang" = "xyes"; then
20150 # Clang takes -pthread; it has never supported any other flag
20152 # (Note 1: This will need to be revisited if a system that Clang
20153 # supports has POSIX threads in a separate library. This tends not
20154 # to be the way of modern systems, but it's conceivable.)
20156 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20157 # to get POSIX threads support; the API is always present and
20158 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20159 # -pthread does define _REENTRANT, and while the Darwin headers
20160 # ignore this macro, third-party headers might not.)
20162 PTHREAD_CFLAGS="-pthread"
20167 # However, older versions of Clang make a point of warning the user
20168 # that, in an invocation where only linking and no compilation is
20169 # taking place, the -pthread option has no effect ("argument unused
20170 # during compilation"). They expect -pthread to be passed in only
20171 # when source code is being compiled.
20173 # Problem is, this is at odds with the way Automake and most other
20174 # C build frameworks function, which is that the same flags used in
20175 # compilation (CFLAGS) are also used in linking. Many systems
20176 # supported by AX_PTHREAD require exactly this for POSIX threads
20177 # support, and in fact it is often not straightforward to specify a
20178 # flag that is used only in the compilation phase and not in
20179 # linking. Such a scenario is extremely rare in practice.
20181 # Even though use of the -pthread flag in linking would only print
20182 # a warning, this can be a nuisance for well-run software projects
20183 # that build with -Werror. So if the active version of Clang has
20184 # this misfeature, we search for an option to squash it.
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20187 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20188 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20189 $as_echo_n "(cached) " >&6
20191 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20192 # Create an alternate version of $ac_link that compiles and
20193 # links in two steps (.c -> .o, .o -> exe) instead of one
20194 # (.c -> exe), because the warning occurs only in the second
20196 ax_pthread_save_ac_link="$ac_link"
20197 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20198 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20199 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20200 ax_pthread_save_CFLAGS="$CFLAGS"
20201 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20202 if test "x$ax_pthread_try" = "xunknown"; then :
20205 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20206 ac_link="$ax_pthread_save_ac_link"
20207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h. */
20209 int main(void){return 0;}
20211 if ac_fn_c_try_link "$LINENO"; then :
20212 ac_link="$ax_pthread_2step_ac_link"
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h. */
20215 int main(void){return 0;}
20217 if ac_fn_c_try_link "$LINENO"; then :
20220 rm -f core conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20224 rm -f core conftest.err conftest.$ac_objext \
20225 conftest$ac_exeext conftest.$ac_ext
20227 ac_link="$ax_pthread_save_ac_link"
20228 CFLAGS="$ax_pthread_save_CFLAGS"
20229 if test "x$ax_pthread_try" = "x"; then :
20232 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20236 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20238 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20240 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20243 fi # $ax_pthread_clang = yes
20245 if test "x$ax_pthread_ok" = "xno"; then
20246 for ax_pthread_try_flag in $ax_pthread_flags; do
20248 case $ax_pthread_try_flag in
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20251 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20256 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20257 PTHREAD_CFLAGS="-mt"
20258 PTHREAD_LIBS="-lpthread"
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20263 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20264 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20268 # Extract the first word of "pthread-config", so it can be a program name with args.
20269 set dummy pthread-config; ac_word=$2
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20271 $as_echo_n "checking for $ac_word... " >&6; }
20272 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20273 $as_echo_n "(cached) " >&6
20275 if test -n "$ax_pthread_config"; then
20276 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20279 for as_dir in $PATH
20282 test -z "$as_dir" && as_dir=.
20283 for ac_exec_ext in '' $ac_executable_extensions; do
20284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20285 ac_cv_prog_ax_pthread_config="yes"
20286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20293 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20296 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20297 if test -n "$ax_pthread_config"; then
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20299 $as_echo "$ax_pthread_config" >&6; }
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302 $as_echo "no" >&6; }
20306 if test "x$ax_pthread_config" = "xno"; then :
20309 PTHREAD_CFLAGS="`pthread-config --cflags`"
20310 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20315 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20316 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20320 ax_pthread_save_CFLAGS="$CFLAGS"
20321 ax_pthread_save_LIBS="$LIBS"
20322 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20323 LIBS="$PTHREAD_LIBS $LIBS"
20325 # Check for various functions. We must include pthread.h,
20326 # since some functions may be macros. (On the Sequent, we
20327 # need a special flag -Kthread to make this header compile.)
20328 # We check for pthread_join because it is in -lpthread on IRIX
20329 # while pthread_create is in libc. We check for pthread_attr_init
20330 # due to DEC craziness with -lpthreads. We check for
20331 # pthread_cleanup_push because it is one of the few pthread
20332 # functions on Solaris that doesn't have a non-functional libc stub.
20333 # We try pthread_create on general principles.
20335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h. */
20337 #include <pthread.h>
20338 # if $ax_pthread_check_cond
20339 # error "$ax_pthread_check_macro must be defined"
20341 static void routine(void *a) { a = 0; }
20342 static void *start_routine(void *a) { return a; }
20346 pthread_t th; pthread_attr_t attr;
20347 pthread_create(&th, 0, start_routine, 0);
20348 pthread_join(th, 0);
20349 pthread_attr_init(&attr);
20350 pthread_cleanup_push(routine, 0);
20351 pthread_cleanup_pop(0) /* ; */
20356 if ac_fn_c_try_link "$LINENO"; then :
20359 rm -f core conftest.err conftest.$ac_objext \
20360 conftest$ac_exeext conftest.$ac_ext
20362 CFLAGS="$ax_pthread_save_CFLAGS"
20363 LIBS="$ax_pthread_save_LIBS"
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20366 $as_echo "$ax_pthread_ok" >&6; }
20367 if test "x$ax_pthread_ok" = "xyes"; then :
20376 # Various other checks:
20377 if test "x$ax_pthread_ok" = "xyes"; then
20378 ax_pthread_save_CFLAGS="$CFLAGS"
20379 ax_pthread_save_LIBS="$LIBS"
20380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20381 LIBS="$PTHREAD_LIBS $LIBS"
20383 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20385 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20386 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20387 $as_echo_n "(cached) " >&6
20389 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20390 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20393 #include <pthread.h>
20397 int attr = $ax_pthread_attr; return attr /* ; */
20402 if ac_fn_c_try_link "$LINENO"; then :
20403 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20405 rm -f core conftest.err conftest.$ac_objext \
20406 conftest$ac_exeext conftest.$ac_ext
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20411 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20412 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20413 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20414 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20416 cat >>confdefs.h <<_ACEOF
20417 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20420 ax_pthread_joinable_attr_defined=yes
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20425 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20426 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20427 $as_echo_n "(cached) " >&6
20429 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20432 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20438 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20439 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20440 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20441 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20442 ax_pthread_special_flags_added=yes
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20446 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20447 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20448 $as_echo_n "(cached) " >&6
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h. */
20452 #include <pthread.h>
20456 int i = PTHREAD_PRIO_INHERIT;
20461 if ac_fn_c_try_link "$LINENO"; then :
20462 ax_cv_PTHREAD_PRIO_INHERIT=yes
20464 ax_cv_PTHREAD_PRIO_INHERIT=no
20466 rm -f core conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20471 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20472 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20473 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20475 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20477 ax_pthread_prio_inherit_defined=yes
20481 CFLAGS="$ax_pthread_save_CFLAGS"
20482 LIBS="$ax_pthread_save_LIBS"
20484 # More AIX lossage: compile with *_r variant
20485 if test "x$GCC" != "xyes"; then
20489 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20490 #handle absolute path differently from PATH based program lookup
20493 if as_fn_executable_p ${CC}_r; then :
20494 PTHREAD_CC="${CC}_r"
20497 for ac_prog in ${CC}_r
20499 # Extract the first word of "$ac_prog", so it can be a program name with args.
20500 set dummy $ac_prog; ac_word=$2
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20502 $as_echo_n "checking for $ac_word... " >&6; }
20503 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20504 $as_echo_n "(cached) " >&6
20506 if test -n "$PTHREAD_CC"; then
20507 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20513 test -z "$as_dir" && as_dir=.
20514 for ac_exec_ext in '' $ac_executable_extensions; do
20515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20516 ac_cv_prog_PTHREAD_CC="$ac_prog"
20517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20526 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20527 if test -n "$PTHREAD_CC"; then
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20529 $as_echo "$PTHREAD_CC" >&6; }
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20532 $as_echo "no" >&6; }
20536 test -n "$PTHREAD_CC" && break
20538 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20549 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20555 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20556 if test "x$ax_pthread_ok" = "xyes"; then
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570 if $have_pthread; then
20572 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20575 if $have_pthread; then
20577 HAVE_PTHREAD_FALSE='#'
20579 HAVE_PTHREAD_TRUE='#'
20580 HAVE_PTHREAD_FALSE=
20586 # Check whether --with-glib was given.
20587 if test "${with_glib+set}" = set; then :
20588 withval=$with_glib;
20594 GLIB_DEPS="glib-2.0 >= 2.19.1"
20596 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20600 $as_echo_n "checking for GLIB... " >&6; }
20602 if test -n "$GLIB_CFLAGS"; then
20603 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20604 elif test -n "$PKG_CONFIG"; then
20605 if test -n "$PKG_CONFIG" && \
20606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20607 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20610 test $ac_status = 0; }; then
20611 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20612 test "x$?" != "x0" && pkg_failed=yes
20619 if test -n "$GLIB_LIBS"; then
20620 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20621 elif test -n "$PKG_CONFIG"; then
20622 if test -n "$PKG_CONFIG" && \
20623 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20624 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20627 test $ac_status = 0; }; then
20628 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20629 test "x$?" != "x0" && pkg_failed=yes
20639 if test $pkg_failed = yes; then
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20641 $as_echo "no" >&6; }
20643 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20644 _pkg_short_errors_supported=yes
20646 _pkg_short_errors_supported=no
20648 if test $_pkg_short_errors_supported = yes; then
20649 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20651 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20653 # Put the nasty error message in config.log where it belongs
20654 echo "$GLIB_PKG_ERRORS" >&5
20657 elif test $pkg_failed = untried; then
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20659 $as_echo "no" >&6; }
20662 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20663 GLIB_LIBS=$pkg_cv_GLIB_LIBS
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20665 $as_echo "yes" >&6; }
20669 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20670 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20672 if $have_glib; then
20674 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20677 if $have_glib; then
20679 HAVE_GLIB_FALSE='#'
20688 # Check whether --with-gobject was given.
20689 if test "${with_gobject+set}" = set; then :
20690 withval=$with_gobject;
20696 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20700 $as_echo_n "checking for GOBJECT... " >&6; }
20702 if test -n "$GOBJECT_CFLAGS"; then
20703 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20704 elif test -n "$PKG_CONFIG"; then
20705 if test -n "$PKG_CONFIG" && \
20706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20707 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; then
20711 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20712 test "x$?" != "x0" && pkg_failed=yes
20719 if test -n "$GOBJECT_LIBS"; then
20720 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20721 elif test -n "$PKG_CONFIG"; then
20722 if test -n "$PKG_CONFIG" && \
20723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20724 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20727 test $ac_status = 0; }; then
20728 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20729 test "x$?" != "x0" && pkg_failed=yes
20739 if test $pkg_failed = yes; then
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20741 $as_echo "no" >&6; }
20743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20744 _pkg_short_errors_supported=yes
20746 _pkg_short_errors_supported=no
20748 if test $_pkg_short_errors_supported = yes; then
20749 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20751 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20753 # Put the nasty error message in config.log where it belongs
20754 echo "$GOBJECT_PKG_ERRORS" >&5
20757 elif test $pkg_failed = untried; then
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20759 $as_echo "no" >&6; }
20762 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20763 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20765 $as_echo "yes" >&6; }
20769 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20770 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20772 if $have_gobject; then
20774 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20776 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20779 if $have_gobject; then
20781 HAVE_GOBJECT_FALSE='#'
20783 HAVE_GOBJECT_TRUE='#'
20784 HAVE_GOBJECT_FALSE=
20791 # Gobject-Introspection
20792 have_introspection=false
20794 if $have_gobject; then
20798 # Check whether --enable-introspection was given.
20799 if test "${enable_introspection+set}" = set; then :
20800 enableval=$enable_introspection;
20802 enable_introspection=auto
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20807 $as_echo_n "checking for gobject-introspection... " >&6; }
20809 case $enable_introspection in #(
20811 found_introspection="no (disabled, use --enable-introspection to enable)"
20814 if test -n "$PKG_CONFIG" && \
20815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20816 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20819 test $ac_status = 0; }; then
20822 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20824 if test -n "$PKG_CONFIG" && \
20825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20826 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20829 test $ac_status = 0; }; then
20830 found_introspection=yes
20832 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20836 if test -n "$PKG_CONFIG" && \
20837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20838 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20841 test $ac_status = 0; }; then
20842 found_introspection=yes
20844 found_introspection=no
20846 enable_introspection=$found_introspection
20849 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20853 $as_echo "$found_introspection" >&6; }
20856 EXP_VAR=_GI_EXP_DATADIR
20857 FROM_VAR="$datadir"
20859 prefix_save=$prefix
20860 exec_prefix_save=$exec_prefix
20862 if test "x$prefix" = "xNONE"; then
20863 prefix="$ac_default_prefix"
20865 if test "x$exec_prefix" = "xNONE"; then
20866 exec_prefix=$prefix
20869 full_var="$FROM_VAR"
20871 new_full_var="`eval echo $full_var`"
20872 if test "x$new_full_var" = "x$full_var"; then break; fi
20873 full_var=$new_full_var
20876 full_var=$new_full_var
20877 _GI_EXP_DATADIR="$full_var"
20880 prefix=$prefix_save
20881 exec_prefix=$exec_prefix_save
20884 EXP_VAR=_GI_EXP_LIBDIR
20887 prefix_save=$prefix
20888 exec_prefix_save=$exec_prefix
20890 if test "x$prefix" = "xNONE"; then
20891 prefix="$ac_default_prefix"
20893 if test "x$exec_prefix" = "xNONE"; then
20894 exec_prefix=$prefix
20897 full_var="$FROM_VAR"
20899 new_full_var="`eval echo $full_var`"
20900 if test "x$new_full_var" = "x$full_var"; then break; fi
20901 full_var=$new_full_var
20904 full_var=$new_full_var
20905 _GI_EXP_LIBDIR="$full_var"
20908 prefix=$prefix_save
20909 exec_prefix=$exec_prefix_save
20912 INTROSPECTION_SCANNER=
20913 INTROSPECTION_COMPILER=
20914 INTROSPECTION_GENERATE=
20915 INTROSPECTION_GIRDIR=
20916 INTROSPECTION_TYPELIBDIR=
20917 if test "x$found_introspection" = "xyes"; then
20918 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20919 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20920 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20921 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
20922 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
20923 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20924 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20925 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20936 if test "x$found_introspection" = "xyes"; then
20937 HAVE_INTROSPECTION_TRUE=
20938 HAVE_INTROSPECTION_FALSE='#'
20940 HAVE_INTROSPECTION_TRUE='#'
20941 HAVE_INTROSPECTION_FALSE=
20946 if test "x$found_introspection" = xyes; then
20947 have_introspection=true
20951 HAVE_INTROSPECTION_TRUE=
20952 HAVE_INTROSPECTION_FALSE='#'
20954 HAVE_INTROSPECTION_TRUE='#'
20955 HAVE_INTROSPECTION_FALSE=
20963 # Check whether --with-cairo was given.
20964 if test "${with_cairo+set}" = set; then :
20965 withval=$with_cairo;
20971 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20975 $as_echo_n "checking for CAIRO... " >&6; }
20977 if test -n "$CAIRO_CFLAGS"; then
20978 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20979 elif test -n "$PKG_CONFIG"; then
20980 if test -n "$PKG_CONFIG" && \
20981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20982 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20985 test $ac_status = 0; }; then
20986 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20987 test "x$?" != "x0" && pkg_failed=yes
20994 if test -n "$CAIRO_LIBS"; then
20995 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20996 elif test -n "$PKG_CONFIG"; then
20997 if test -n "$PKG_CONFIG" && \
20998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20999 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; then
21003 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
21004 test "x$?" != "x0" && pkg_failed=yes
21014 if test $pkg_failed = yes; then
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21016 $as_echo "no" >&6; }
21018 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21019 _pkg_short_errors_supported=yes
21021 _pkg_short_errors_supported=no
21023 if test $_pkg_short_errors_supported = yes; then
21024 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21026 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21028 # Put the nasty error message in config.log where it belongs
21029 echo "$CAIRO_PKG_ERRORS" >&5
21032 elif test $pkg_failed = untried; then
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21034 $as_echo "no" >&6; }
21037 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
21038 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21040 $as_echo "yes" >&6; }
21044 LIBS="$LIBS $CAIRO_LIBS"
21045 for ac_func in cairo_user_font_face_set_render_color_glyph_func
21047 ac_fn_c_check_func "$LINENO" "cairo_user_font_face_set_render_color_glyph_func" "ac_cv_func_cairo_user_font_face_set_render_color_glyph_func"
21048 if test "x$ac_cv_func_cairo_user_font_face_set_render_color_glyph_func" = xyes; then :
21049 cat >>confdefs.h <<_ACEOF
21050 #define HAVE_CAIRO_USER_FONT_FACE_SET_RENDER_COLOR_GLYPH_FUNC 1
21058 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
21059 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
21061 if $have_cairo; then
21063 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
21066 if $have_cairo; then
21068 HAVE_CAIRO_FALSE='#'
21070 HAVE_CAIRO_TRUE='#'
21075 have_cairo_ft=false
21076 if $have_cairo; then
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
21080 $as_echo_n "checking for CAIRO_FT... " >&6; }
21082 if test -n "$CAIRO_FT_CFLAGS"; then
21083 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
21084 elif test -n "$PKG_CONFIG"; then
21085 if test -n "$PKG_CONFIG" && \
21086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21087 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21090 test $ac_status = 0; }; then
21091 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
21092 test "x$?" != "x0" && pkg_failed=yes
21099 if test -n "$CAIRO_FT_LIBS"; then
21100 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
21101 elif test -n "$PKG_CONFIG"; then
21102 if test -n "$PKG_CONFIG" && \
21103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21104 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21107 test $ac_status = 0; }; then
21108 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
21109 test "x$?" != "x0" && pkg_failed=yes
21119 if test $pkg_failed = yes; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21121 $as_echo "no" >&6; }
21123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21124 _pkg_short_errors_supported=yes
21126 _pkg_short_errors_supported=no
21128 if test $_pkg_short_errors_supported = yes; then
21129 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21131 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21133 # Put the nasty error message in config.log where it belongs
21134 echo "$CAIRO_FT_PKG_ERRORS" >&5
21137 elif test $pkg_failed = untried; then
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21139 $as_echo "no" >&6; }
21142 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21143 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21145 $as_echo "yes" >&6; }
21149 if $have_cairo_ft; then
21151 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21154 if $have_cairo_ft; then
21155 HAVE_CAIRO_FT_TRUE=
21156 HAVE_CAIRO_FT_FALSE='#'
21158 HAVE_CAIRO_FT_TRUE='#'
21159 HAVE_CAIRO_FT_FALSE=
21165 # Check whether --with-chafa was given.
21166 if test "${with_chafa+set}" = set; then :
21167 withval=$with_chafa;
21173 if test "x$with_chafa" = "xyes" -o "x$with_chafa" = "xauto"; then
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAFA" >&5
21177 $as_echo_n "checking for CHAFA... " >&6; }
21179 if test -n "$CHAFA_CFLAGS"; then
21180 pkg_cv_CHAFA_CFLAGS="$CHAFA_CFLAGS"
21181 elif test -n "$PKG_CONFIG"; then
21182 if test -n "$PKG_CONFIG" && \
21183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21184 ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21187 test $ac_status = 0; }; then
21188 pkg_cv_CHAFA_CFLAGS=`$PKG_CONFIG --cflags "chafa >= 1.6.0" 2>/dev/null`
21189 test "x$?" != "x0" && pkg_failed=yes
21196 if test -n "$CHAFA_LIBS"; then
21197 pkg_cv_CHAFA_LIBS="$CHAFA_LIBS"
21198 elif test -n "$PKG_CONFIG"; then
21199 if test -n "$PKG_CONFIG" && \
21200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21201 ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21204 test $ac_status = 0; }; then
21205 pkg_cv_CHAFA_LIBS=`$PKG_CONFIG --libs "chafa >= 1.6.0" 2>/dev/null`
21206 test "x$?" != "x0" && pkg_failed=yes
21216 if test $pkg_failed = yes; then
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21218 $as_echo "no" >&6; }
21220 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21221 _pkg_short_errors_supported=yes
21223 _pkg_short_errors_supported=no
21225 if test $_pkg_short_errors_supported = yes; then
21226 CHAFA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21228 CHAFA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21230 # Put the nasty error message in config.log where it belongs
21231 echo "$CHAFA_PKG_ERRORS" >&5
21234 elif test $pkg_failed = untried; then
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21236 $as_echo "no" >&6; }
21239 CHAFA_CFLAGS=$pkg_cv_CHAFA_CFLAGS
21240 CHAFA_LIBS=$pkg_cv_CHAFA_LIBS
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21242 $as_echo "yes" >&6; }
21246 if test "x$with_chafa" = "xyes" -a "x$have_chafa" != "xtrue"; then
21247 as_fn_error $? "chafa support requested but not found" "$LINENO" 5
21249 if $have_chafa; then
21251 $as_echo "#define HAVE_CHAFA 1" >>confdefs.h
21254 if $have_chafa; then
21256 HAVE_CHAFA_FALSE='#'
21258 HAVE_CHAFA_TRUE='#'
21265 # Check whether --with-icu was given.
21266 if test "${with_icu+set}" = set; then :
21273 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21277 $as_echo_n "checking for ICU... " >&6; }
21279 if test -n "$ICU_CFLAGS"; then
21280 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21281 elif test -n "$PKG_CONFIG"; then
21282 if test -n "$PKG_CONFIG" && \
21283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21284 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21287 test $ac_status = 0; }; then
21288 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21289 test "x$?" != "x0" && pkg_failed=yes
21296 if test -n "$ICU_LIBS"; then
21297 pkg_cv_ICU_LIBS="$ICU_LIBS"
21298 elif test -n "$PKG_CONFIG"; then
21299 if test -n "$PKG_CONFIG" && \
21300 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21301 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21304 test $ac_status = 0; }; then
21305 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21306 test "x$?" != "x0" && pkg_failed=yes
21316 if test $pkg_failed = yes; then
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21318 $as_echo "no" >&6; }
21320 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21321 _pkg_short_errors_supported=yes
21323 _pkg_short_errors_supported=no
21325 if test $_pkg_short_errors_supported = yes; then
21326 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21328 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21330 # Put the nasty error message in config.log where it belongs
21331 echo "$ICU_PKG_ERRORS" >&5
21334 elif test $pkg_failed = untried; then
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336 $as_echo "no" >&6; }
21339 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21340 ICU_LIBS=$pkg_cv_ICU_LIBS
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21342 $as_echo "yes" >&6; }
21346 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21347 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21351 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21353 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21355 if test "x$with_icu" = "xbuiltin"; then
21357 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21369 if $have_icu && test "x$with_icu" = "xbuiltin"; then
21370 HAVE_ICU_BUILTIN_TRUE=
21371 HAVE_ICU_BUILTIN_FALSE='#'
21373 HAVE_ICU_BUILTIN_TRUE='#'
21374 HAVE_ICU_BUILTIN_FALSE=
21380 # Check whether --with-graphite2 was given.
21381 if test "${with_graphite2+set}" = set; then :
21382 withval=$with_graphite2;
21387 have_graphite2=false
21388 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21390 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21394 $as_echo_n "checking for GRAPHITE2... " >&6; }
21396 if test -n "$GRAPHITE2_CFLAGS"; then
21397 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21398 elif test -n "$PKG_CONFIG"; then
21399 if test -n "$PKG_CONFIG" && \
21400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21401 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21404 test $ac_status = 0; }; then
21405 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21406 test "x$?" != "x0" && pkg_failed=yes
21413 if test -n "$GRAPHITE2_LIBS"; then
21414 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21415 elif test -n "$PKG_CONFIG"; then
21416 if test -n "$PKG_CONFIG" && \
21417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21418 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21421 test $ac_status = 0; }; then
21422 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21423 test "x$?" != "x0" && pkg_failed=yes
21433 if test $pkg_failed = yes; then
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435 $as_echo "no" >&6; }
21437 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21438 _pkg_short_errors_supported=yes
21440 _pkg_short_errors_supported=no
21442 if test $_pkg_short_errors_supported = yes; then
21443 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21445 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21447 # Put the nasty error message in config.log where it belongs
21448 echo "$GRAPHITE2_PKG_ERRORS" >&5
21451 elif test $pkg_failed = untried; then
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21453 $as_echo "no" >&6; }
21456 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21457 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21459 $as_echo "yes" >&6; }
21460 have_graphite2=true
21462 if test "x$have_graphite2" != "xtrue"; then
21463 # If pkg-config is not available, graphite2 can still be there
21464 ac_save_CFLAGS="$CFLAGS"
21465 ac_save_CPPFLAGS="$CPPFLAGS"
21466 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21467 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21468 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21469 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21470 have_graphite2=true
21476 CPPFLAGS="$ac_save_CPPFLAGS"
21477 CFLAGS="$ac_save_CFLAGS"
21480 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21481 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21483 if $have_graphite2; then
21485 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21488 if $have_graphite2; then
21489 HAVE_GRAPHITE2_TRUE=
21490 HAVE_GRAPHITE2_FALSE='#'
21492 HAVE_GRAPHITE2_TRUE='#'
21493 HAVE_GRAPHITE2_FALSE=
21499 # Check whether --with-freetype was given.
21500 if test "${with_freetype+set}" = set; then :
21501 withval=$with_freetype;
21506 have_freetype=false
21507 FREETYPE_DEPS="freetype2 >= 12.0.6"
21509 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21510 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21514 $as_echo_n "checking for FREETYPE... " >&6; }
21516 if test -n "$FREETYPE_CFLAGS"; then
21517 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21518 elif test -n "$PKG_CONFIG"; then
21519 if test -n "$PKG_CONFIG" && \
21520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21521 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21524 test $ac_status = 0; }; then
21525 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21526 test "x$?" != "x0" && pkg_failed=yes
21533 if test -n "$FREETYPE_LIBS"; then
21534 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21535 elif test -n "$PKG_CONFIG"; then
21536 if test -n "$PKG_CONFIG" && \
21537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21538 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21541 test $ac_status = 0; }; then
21542 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21543 test "x$?" != "x0" && pkg_failed=yes
21553 if test $pkg_failed = yes; then
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21555 $as_echo "no" >&6; }
21557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21558 _pkg_short_errors_supported=yes
21560 _pkg_short_errors_supported=no
21562 if test $_pkg_short_errors_supported = yes; then
21563 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21565 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21567 # Put the nasty error message in config.log where it belongs
21568 echo "$FREETYPE_PKG_ERRORS" >&5
21571 elif test $pkg_failed = untried; then
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21573 $as_echo "no" >&6; }
21576 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21577 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21579 $as_echo "yes" >&6; }
21583 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21584 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21586 if $have_freetype; then
21588 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21591 LIBS="$LIBS $FREETYPE_LIBS"
21592 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var FT_Get_Transform
21594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21596 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21597 cat >>confdefs.h <<_ACEOF
21598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21606 if $have_freetype; then
21607 HAVE_FREETYPE_TRUE=
21608 HAVE_FREETYPE_FALSE='#'
21610 HAVE_FREETYPE_TRUE='#'
21611 HAVE_FREETYPE_FALSE=
21617 # Check whether --with-uniscribe was given.
21618 if test "${with_uniscribe+set}" = set; then :
21619 withval=$with_uniscribe;
21624 have_uniscribe=false
21625 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21626 for ac_header in usp10.h windows.h
21628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21631 cat >>confdefs.h <<_ACEOF
21632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21634 have_uniscribe=true
21640 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21641 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21643 if $have_uniscribe; then
21645 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21649 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21652 if $have_uniscribe; then
21653 HAVE_UNISCRIBE_TRUE=
21654 HAVE_UNISCRIBE_FALSE='#'
21656 HAVE_UNISCRIBE_TRUE='#'
21657 HAVE_UNISCRIBE_FALSE=
21663 # Check whether --with-gdi was given.
21664 if test "${with_gdi+set}" = set; then :
21671 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21672 for ac_header in windows.h
21674 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21675 if test "x$ac_cv_header_windows_h" = xyes; then :
21676 cat >>confdefs.h <<_ACEOF
21677 #define HAVE_WINDOWS_H 1
21685 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21686 as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21694 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21708 # Check whether --with-directwrite was given.
21709 if test "${with_directwrite+set}" = set; then :
21710 withval=$with_directwrite;
21712 with_directwrite=no
21715 have_directwrite=false
21717 ac_cpp='$CXXCPP $CPPFLAGS'
21718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21722 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21724 for ac_header in dwrite_1.h
21726 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite_1.h" "ac_cv_header_dwrite_1_h" "$ac_includes_default"
21727 if test "x$ac_cv_header_dwrite_1_h" = xyes; then :
21728 cat >>confdefs.h <<_ACEOF
21729 #define HAVE_DWRITE_1_H 1
21731 have_directwrite=true
21738 ac_cpp='$CPP $CPPFLAGS'
21739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21743 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21744 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21746 if $have_directwrite; then
21748 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21751 if $have_directwrite; then
21752 HAVE_DIRECTWRITE_TRUE=
21753 HAVE_DIRECTWRITE_FALSE='#'
21755 HAVE_DIRECTWRITE_TRUE='#'
21756 HAVE_DIRECTWRITE_FALSE=
21762 # Check whether --with-coretext was given.
21763 if test "${with_coretext+set}" = set; then :
21764 withval=$with_coretext;
21769 have_coretext=false
21770 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21771 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21773 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21778 if $have_coretext; then
21780 CORETEXT_LIBS="-framework ApplicationServices"
21784 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21785 if test "x$have_coretext" != "xtrue"; then
21786 # Check for a different symbol to avoid getting cached result.
21787 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21789 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21795 if $have_coretext; then
21797 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21803 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21804 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21806 if $have_coretext; then
21808 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21811 if $have_coretext; then
21812 HAVE_CORETEXT_TRUE=
21813 HAVE_CORETEXT_FALSE='#'
21815 HAVE_CORETEXT_TRUE='#'
21816 HAVE_CORETEXT_FALSE=
21822 # Check whether --with-wasm was given.
21823 if test "${with_wasm+set}" = set; then :
21824 withval=$with_wasm;
21830 if test "x$with_wasm" = "xyes" -o "x$with_wasm" = "xauto"; then
21831 for ac_header in wasm_export.h
21833 ac_fn_c_check_header_mongrel "$LINENO" "wasm_export.h" "ac_cv_header_wasm_export_h" "$ac_includes_default"
21834 if test "x$ac_cv_header_wasm_export_h" = xyes; then :
21835 cat >>confdefs.h <<_ACEOF
21836 #define HAVE_WASM_EXPORT_H 1
21844 if test "x$with_wasm" = "xyes" -a "x$have_wasm" != "xtrue"; then
21845 as_fn_error $? "wasm support requested but not found" "$LINENO" 5
21847 if $have_wasm; then
21849 WASM_LIBS="-liwasm"
21853 $as_echo "#define HAVE_WASM 1" >>confdefs.h
21856 if $have_wasm; then
21858 HAVE_WASM_FALSE='#'
21866 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shape/Makefile test/shape/data/Makefile test/shape/data/aots/Makefile test/shape/data/in-house/Makefile test/shape/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile test/subset/data/repack_tests/Makefile test/threads/Makefile perf/Makefile docs/Makefile docs/version.xml"
21869 cat >confcache <<\_ACEOF
21870 # This file is a shell script that caches the results of configure
21871 # tests run on this system so they can be shared between configure
21872 # scripts and configure runs, see configure's option --config-cache.
21873 # It is not useful on other systems. If it contains results you don't
21874 # want to keep, you may remove or edit it.
21876 # config.status only pays attention to the cache file if you give it
21877 # the --recheck option to rerun configure.
21879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21881 # following values.
21885 # The following way of writing the cache mishandles newlines in values,
21886 # but we know of no workaround that is simple, portable, and efficient.
21887 # So, we kill variables containing newlines.
21888 # Ultrix sh set writes to stderr and can't be redirected directly,
21889 # and sets the high bit in the cache file unless we assign to the vars.
21891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21892 eval ac_val=\$$ac_var
21896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21900 _ | IFS | as_nl) ;; #(
21901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21902 *) { eval $ac_var=; unset $ac_var;} ;;
21908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21909 *${as_nl}ac_space=\ *)
21910 # `set' does not quote correctly, so add quotes: double-quote
21911 # substitution turns \\\\ into \\, and sed turns \\ into \.
21914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21917 # `set' quotes correctly as required by POSIX, so do not add quotes.
21918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21932 if test -w "$cache_file"; then
21933 if test "x$cache_file" != "x/dev/null"; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21935 $as_echo "$as_me: updating cache $cache_file" >&6;}
21936 if test ! -f "$cache_file" || test -h "$cache_file"; then
21937 cat confcache >"$cache_file"
21939 case $cache_file in #(
21941 mv -f confcache "$cache_file"$$ &&
21942 mv -f "$cache_file"$$ "$cache_file" ;; #(
21944 mv -f confcache "$cache_file" ;;
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21956 # Let make expand exec_prefix.
21957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21959 DEFS=-DHAVE_CONFIG_H
21964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21965 # 1. Remove the extension, and $U if already installed.
21966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21967 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21969 # will be set to the directory where LIBOBJS objects are built.
21970 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21971 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21973 LIBOBJS=$ac_libobjs
21975 LTLIBOBJS=$ac_ltlibobjs
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21979 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21980 if test -n "$am_sleep_pid"; then
21981 # Hide warnings about reused PIDs.
21982 wait $am_sleep_pid 2>/dev/null
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21985 $as_echo "done" >&6; }
21986 if test -n "$EXEEXT"; then
21988 am__EXEEXT_FALSE='#'
21990 am__EXEEXT_TRUE='#'
21994 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21995 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21998 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21999 as_fn_error $? "conditional \"AMDEP\" was never defined.
22000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22002 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22003 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22006 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22007 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22010 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22011 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22014 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
22015 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
22016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22018 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22019 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
22020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22022 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22023 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
22024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22026 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
22027 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
22028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22030 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
22031 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
22032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22034 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22035 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22038 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
22039 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
22040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22042 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
22043 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
22044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22046 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22047 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22050 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22051 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
22052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22054 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
22055 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
22056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22058 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
22059 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22062 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22063 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22066 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22067 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22070 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22071 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22074 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22075 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22078 if test -z "${HAVE_CHAFA_TRUE}" && test -z "${HAVE_CHAFA_FALSE}"; then
22079 as_fn_error $? "conditional \"HAVE_CHAFA\" was never defined.
22080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22082 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22083 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22086 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22087 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22090 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22091 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22094 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22095 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22098 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22099 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22102 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22103 as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22106 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22107 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22110 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22111 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22114 if test -z "${HAVE_WASM_TRUE}" && test -z "${HAVE_WASM_FALSE}"; then
22115 as_fn_error $? "conditional \"HAVE_WASM\" was never defined.
22116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22119 : "${CONFIG_STATUS=./config.status}"
22121 ac_clean_files_save=$ac_clean_files
22122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22128 # Generated by $as_me.
22129 # Run this file to recreate the current configuration.
22130 # Compiler output produced by configure, useful for debugging
22131 # configure, is in config.log if it exists.
22134 ac_cs_recheck=false
22137 SHELL=\${CONFIG_SHELL-$SHELL}
22140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22141 ## -------------------- ##
22142 ## M4sh Initialization. ##
22143 ## -------------------- ##
22145 # Be more Bourne compatible
22146 DUALCASE=1; export DUALCASE # for MKS sh
22147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22151 # is contrary to our usage. Disable this feature.
22152 alias -g '${1+"$@"}'='"$@"'
22153 setopt NO_GLOB_SUBST
22155 case `(set -o) 2>/dev/null` in #(
22167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22171 # Prefer a ksh shell builtin over an external printf program on Solaris,
22172 # but without wasting forks for bash or zsh.
22173 if test -z "$BASH_VERSION$ZSH_VERSION" \
22174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22175 as_echo='print -r --'
22176 as_echo_n='print -rn --'
22177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22178 as_echo='printf %s\n'
22179 as_echo_n='printf %s'
22181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22183 as_echo_n='/usr/ucb/echo -n'
22185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22186 as_echo_n_body='eval
22190 expr "X$arg" : "X\\(.*\\)$as_nl";
22191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22195 export as_echo_n_body
22196 as_echo_n='sh -c $as_echo_n_body as_echo'
22198 export as_echo_body
22199 as_echo='sh -c $as_echo_body as_echo'
22202 # The user is always right.
22203 if test "${PATH_SEPARATOR+set}" != set; then
22205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22213 # We need space, tab and new line, in precisely that order. Quoting is
22214 # there to prevent editors from complaining about space-tab.
22215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22216 # splitting by setting IFS to empty value.)
22219 # Find who we are. Look in the path if we contain no directory separator.
22222 *[\\/]* ) as_myself=$0 ;;
22223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22224 for as_dir in $PATH
22227 test -z "$as_dir" && as_dir=.
22228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22234 # We did not find ourselves, most probably we were run as `sh COMMAND'
22235 # in which case we are not to be found in the path.
22236 if test "x$as_myself" = x; then
22239 if test ! -f "$as_myself"; then
22240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22244 # Unset variables that we do not need and which cause bugs (e.g. in
22245 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22246 # suppresses any "Segmentation fault" message there. '((' could
22247 # trigger a bug in pdksh 5.2.14.
22248 for as_var in BASH_ENV ENV MAIL MAILPATH
22249 do eval test x\${$as_var+set} = xset \
22250 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22266 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22267 # ----------------------------------------
22268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22270 # script with STATUS, using 1 if that was 0.
22273 as_status=$1; test $as_status -eq 0 && as_status=1
22275 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22278 $as_echo "$as_me: error: $2" >&2
22279 as_fn_exit $as_status
22283 # as_fn_set_status STATUS
22284 # -----------------------
22285 # Set $? to STATUS, without forking.
22286 as_fn_set_status ()
22289 } # as_fn_set_status
22291 # as_fn_exit STATUS
22292 # -----------------
22293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22297 as_fn_set_status $1
22303 # Portably unset VAR.
22306 { eval $1=; unset $1;}
22308 as_unset=as_fn_unset
22309 # as_fn_append VAR VALUE
22310 # ----------------------
22311 # Append the text in VALUE to the end of the definition contained in VAR. Take
22312 # advantage of any shell optimizations that allow amortized linear growth over
22313 # repeated appends, instead of the typical quadratic growth present in naive
22315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22316 eval 'as_fn_append ()
22327 # as_fn_arith ARG...
22328 # ------------------
22329 # Perform arithmetic evaluation on the ARGs, and store the result in the
22330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22331 # must be portable across $(()) and expr.
22332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22333 eval 'as_fn_arith ()
22340 as_val=`expr "$@" || test $? -eq 1`
22345 if expr a : '\(a\)' >/dev/null 2>&1 &&
22346 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22353 as_basename=basename
22358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22364 as_me=`$as_basename -- "$0" ||
22365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22366 X"$0" : 'X\(//\)$' \| \
22367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22369 sed '/^.*\/\([^/][^/]*\)\/*$/{
22383 # Avoid depending upon Character Ranges.
22384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22387 as_cr_digits='0123456789'
22388 as_cr_alnum=$as_cr_Letters$as_cr_digits
22390 ECHO_C= ECHO_N= ECHO_T=
22391 case `echo -n x` in #(((((
22393 case `echo 'xy\c'` in
22394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22403 rm -f conf$$ conf$$.exe conf$$.file
22404 if test -d conf$$.dir; then
22405 rm -f conf$$.dir/conf$$.file
22408 mkdir conf$$.dir 2>/dev/null
22410 if (echo >conf$$.file) 2>/dev/null; then
22411 if ln -s conf$$.file conf$$ 2>/dev/null; then
22413 # ... but there are two gotchas:
22414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22416 # In both cases, we have to default to `cp -pR'.
22417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22419 elif ln conf$$.file conf$$ 2>/dev/null; then
22427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22428 rmdir conf$$.dir 2>/dev/null
22433 # Create "$as_dir" as a directory, including parents if necessary.
22438 -*) as_dir=./$as_dir;;
22440 test -d "$as_dir" || eval $as_mkdir_p || {
22444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22445 *) as_qdir=$as_dir;;
22447 as_dirs="'$as_qdir' $as_dirs"
22448 as_dir=`$as_dirname -- "$as_dir" ||
22449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22450 X"$as_dir" : 'X\(//\)[^/]' \| \
22451 X"$as_dir" : 'X\(//\)$' \| \
22452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22453 $as_echo X"$as_dir" |
22454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22458 /^X\(\/\/\)[^/].*/{
22471 test -d "$as_dir" && break
22473 test -z "$as_dirs" || eval "mkdir $as_dirs"
22474 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22478 if mkdir -p . 2>/dev/null; then
22479 as_mkdir_p='mkdir -p "$as_dir"'
22481 test -d ./-p && rmdir ./-p
22486 # as_fn_executable_p FILE
22487 # -----------------------
22488 # Test if FILE is an executable regular file.
22489 as_fn_executable_p ()
22491 test -f "$1" && test -x "$1"
22492 } # as_fn_executable_p
22493 as_test_x='test -x'
22494 as_executable_p=as_fn_executable_p
22496 # Sed expression to map a string onto a valid CPP name.
22497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22499 # Sed expression to map a string onto a valid variable name.
22500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22504 ## ----------------------------------- ##
22505 ## Main body of $CONFIG_STATUS script. ##
22506 ## ----------------------------------- ##
22508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22511 # Save the log message, to keep $0 and so on meaningful, and to
22512 # report actual input values of CONFIG_FILES etc. instead of their
22513 # values after options handling.
22515 This file was extended by HarfBuzz $as_me 8.2.2, which was
22516 generated by GNU Autoconf 2.69. Invocation command line was
22518 CONFIG_FILES = $CONFIG_FILES
22519 CONFIG_HEADERS = $CONFIG_HEADERS
22520 CONFIG_LINKS = $CONFIG_LINKS
22521 CONFIG_COMMANDS = $CONFIG_COMMANDS
22524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22529 case $ac_config_files in *"
22530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22533 case $ac_config_headers in *"
22534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22539 # Files that config.status was made for.
22540 config_files="$ac_config_files"
22541 config_headers="$ac_config_headers"
22542 config_commands="$ac_config_commands"
22546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22548 \`$as_me' instantiates files and other configuration actions
22549 from templates according to the current configuration. Unless the files
22550 and actions are specified as TAGs, all are instantiated by default.
22552 Usage: $0 [OPTION]... [TAG]...
22554 -h, --help print this help, then exit
22555 -V, --version print version number and configuration settings, then exit
22556 --config print configuration, then exit
22557 -q, --quiet, --silent
22558 do not print progress messages
22559 -d, --debug don't remove temporary files
22560 --recheck update $as_me by reconfiguring in the same conditions
22561 --file=FILE[:TEMPLATE]
22562 instantiate the configuration file FILE
22563 --header=FILE[:TEMPLATE]
22564 instantiate the configuration header FILE
22566 Configuration files:
22569 Configuration headers:
22572 Configuration commands:
22575 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22576 HarfBuzz home page: <http://harfbuzz.org/>."
22579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22582 HarfBuzz config.status 8.2.2
22583 configured by $0, generated by GNU Autoconf 2.69,
22584 with options \\"\$ac_cs_config\\"
22586 Copyright (C) 2012 Free Software Foundation, Inc.
22587 This config.status script is free software; the Free Software Foundation
22588 gives unlimited permission to copy, distribute and modify it."
22595 test -n "\$AWK" || AWK=awk
22598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22599 # The default lists apply if the user does not specify any file.
22605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22622 # Handling of the options.
22623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22626 $as_echo "$ac_cs_version"; exit ;;
22627 --config | --confi | --conf | --con | --co | --c )
22628 $as_echo "$ac_cs_config"; exit ;;
22629 --debug | --debu | --deb | --de | --d | -d )
22631 --file | --fil | --fi | --f )
22634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22635 '') as_fn_error $? "missing file argument" ;;
22637 as_fn_append CONFIG_FILES " '$ac_optarg'"
22638 ac_need_defaults=false;;
22639 --header | --heade | --head | --hea )
22642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22644 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22645 ac_need_defaults=false;;
22647 # Conflict between --help and --header
22648 as_fn_error $? "ambiguous option: \`$1'
22649 Try \`$0 --help' for more information.";;
22650 --help | --hel | -h )
22651 $as_echo "$ac_cs_usage"; exit ;;
22652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22656 # This is an error.
22657 -*) as_fn_error $? "unrecognized option: \`$1'
22658 Try \`$0 --help' for more information." ;;
22660 *) as_fn_append ac_config_targets " $1"
22661 ac_need_defaults=false ;;
22667 ac_configure_extra_args=
22669 if $ac_cs_silent; then
22671 ac_configure_extra_args="$ac_configure_extra_args --silent"
22675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22676 if \$ac_cs_recheck; then
22677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22680 CONFIG_SHELL='$SHELL'
22681 export CONFIG_SHELL
22686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22691 ## Running $as_me. ##
22697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22701 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22704 # The HP-UX ksh and POSIX shell print the target directory to stdout
22705 # if CDPATH is set.
22706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22708 sed_quote_subst='$sed_quote_subst'
22709 double_quote_subst='$double_quote_subst'
22710 delay_variable_subst='$delay_variable_subst'
22711 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22712 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22713 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22714 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22715 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22716 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22717 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22718 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22719 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22720 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22721 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22722 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22723 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22724 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22725 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22726 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22727 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22728 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22729 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22730 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22731 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22732 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22733 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22734 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22735 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22736 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22737 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22738 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22739 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22740 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22741 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22742 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22743 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22744 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22745 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22746 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22747 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22748 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22749 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22750 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22751 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22752 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22753 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22754 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22755 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22756 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22757 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22758 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22759 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22760 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22761 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22762 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22763 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22764 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22765 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22766 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22767 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22768 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22769 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"`'
22770 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22771 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22772 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22773 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22774 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22775 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22776 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22777 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22778 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22779 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22780 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22781 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22782 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22783 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22784 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22785 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22786 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22787 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22788 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22789 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22790 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22791 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22792 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22793 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22794 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22795 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22796 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22797 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22798 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22799 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22800 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22801 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22802 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22803 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22804 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22805 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22806 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22807 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22808 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22809 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22810 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22811 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22812 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22813 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22814 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22815 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22816 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22817 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22818 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22819 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22820 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22821 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22822 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22823 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22824 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22825 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22826 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22827 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22828 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22829 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22830 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22831 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22832 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22833 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22834 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22835 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22836 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22837 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22838 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22839 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22840 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22841 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22842 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22843 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22844 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22845 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22846 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22847 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22848 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22849 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22850 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22851 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22852 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22853 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22854 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22855 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22856 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22857 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22858 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22859 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22860 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22861 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22862 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22863 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22864 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22865 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22866 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22867 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22868 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22869 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22870 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22871 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22872 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22873 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22874 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22875 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22876 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22877 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22878 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22879 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22880 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22881 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22882 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22883 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22884 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22885 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22886 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22887 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22888 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22889 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22890 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22891 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22892 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22893 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22894 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22895 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22896 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22897 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22898 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22899 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22902 LTCFLAGS='$LTCFLAGS'
22903 compiler='$compiler_DEFAULT'
22905 # A function that is used when there is no print builtin or printf.
22906 func_fallback_echo ()
22908 eval 'cat <<_LTECHO_EOF
22913 # Quote evaled strings.
22928 deplibs_check_method \
22933 sharedlib_from_linklib_cmd \
22936 archiver_list_spec \
22942 lt_cv_sys_global_symbol_pipe \
22943 lt_cv_sys_global_symbol_to_cdecl \
22944 lt_cv_sys_global_symbol_to_import \
22945 lt_cv_sys_global_symbol_to_c_name_address \
22946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22947 lt_cv_nm_interface \
22948 nm_file_list_spec \
22949 lt_cv_truncate_bin \
22950 lt_prog_compiler_no_builtin_flag \
22951 lt_prog_compiler_pic \
22952 lt_prog_compiler_wl \
22953 lt_prog_compiler_static \
22954 lt_cv_prog_compiler_c_o \
22963 export_dynamic_flag_spec \
22964 whole_archive_flag_spec \
22965 compiler_needs_object \
22967 allow_undefined_flag \
22968 no_undefined_flag \
22969 hardcode_libdir_flag_spec \
22970 hardcode_libdir_separator \
22974 variables_saved_for_relink \
22976 library_names_spec \
22978 install_override_mode \
22982 compiler_lib_search_dirs \
22987 compiler_lib_search_path \
22991 lt_prog_compiler_no_builtin_flag_CXX \
22992 lt_prog_compiler_pic_CXX \
22993 lt_prog_compiler_wl_CXX \
22994 lt_prog_compiler_static_CXX \
22995 lt_cv_prog_compiler_c_o_CXX \
22996 export_dynamic_flag_spec_CXX \
22997 whole_archive_flag_spec_CXX \
22998 compiler_needs_object_CXX \
23000 allow_undefined_flag_CXX \
23001 no_undefined_flag_CXX \
23002 hardcode_libdir_flag_spec_CXX \
23003 hardcode_libdir_separator_CXX \
23004 exclude_expsyms_CXX \
23005 include_expsyms_CXX \
23006 file_list_spec_CXX \
23007 compiler_lib_search_dirs_CXX \
23008 predep_objects_CXX \
23009 postdep_objects_CXX \
23012 compiler_lib_search_path_CXX; do
23013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23014 *[\\\\\\\`\\"\\\$]*)
23015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23023 # Double-quote double-evaled strings.
23024 for var in reload_cmds \
23025 old_postinstall_cmds \
23026 old_postuninstall_cmds \
23028 extract_expsyms_cmds \
23029 old_archive_from_new_cmds \
23030 old_archive_from_expsyms_cmds \
23032 archive_expsym_cmds \
23034 module_expsym_cmds \
23035 export_symbols_cmds \
23039 postuninstall_cmds \
23041 sys_lib_search_path_spec \
23042 configure_time_dlsearch_path \
23043 configure_time_lt_sys_library_path \
23045 old_archive_cmds_CXX \
23046 old_archive_from_new_cmds_CXX \
23047 old_archive_from_expsyms_cmds_CXX \
23049 archive_expsym_cmds_CXX \
23051 module_expsym_cmds_CXX \
23052 export_symbols_cmds_CXX \
23054 postlink_cmds_CXX; do
23055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23056 *[\\\\\\\`\\"\\\$]*)
23057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23065 ac_aux_dir='$ac_aux_dir'
23067 # See if we are running on zsh, and set the options that allow our
23068 # commands through without removal of \ escapes INIT.
23069 if test -n "\${ZSH_VERSION+set}"; then
23070 setopt NO_GLOB_SUBST
23086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23088 # Handling of arguments.
23089 for ac_config_target in $ac_config_targets
23091 case $ac_config_target in
23092 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23096 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23097 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23098 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23099 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23100 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23101 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23102 "test/shape/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/Makefile" ;;
23103 "test/shape/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/Makefile" ;;
23104 "test/shape/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/aots/Makefile" ;;
23105 "test/shape/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/in-house/Makefile" ;;
23106 "test/shape/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/text-rendering-tests/Makefile" ;;
23107 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23108 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23109 "test/subset/data/repack_tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/repack_tests/Makefile" ;;
23110 "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;;
23111 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
23112 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23113 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23115 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23120 # If the user did not use the arguments to specify the items to instantiate,
23121 # then the envvar interface is used. Set only those that are not.
23122 # We use the long form for the default assignment because of an extremely
23123 # bizarre bug on SunOS 4.1.3.
23124 if $ac_need_defaults; then
23125 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23126 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23127 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23130 # Have a temporary directory for convenience. Make it in the build tree
23131 # simply because there is no reason against having it here, and in addition,
23132 # creating and moving files from /tmp can sometimes cause problems.
23133 # Hook for its removal unless debugging.
23134 # Note that there is a small window in which the directory will not be cleaned:
23135 # after its creation but before its name has been assigned to `$tmp'.
23139 trap 'exit_status=$?
23140 : "${ac_tmp:=$tmp}"
23141 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23143 trap 'as_fn_exit 1' 1 2 13 15
23145 # Create a (secure) tmp directory for tmp files.
23148 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23152 tmp=./conf$$-$RANDOM
23153 (umask 077 && mkdir "$tmp")
23154 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23157 # Set up the scripts for CONFIG_FILES section.
23158 # No need to generate them if there are no CONFIG_FILES.
23159 # This happens for instance with `./config.status config.h'.
23160 if test -n "$CONFIG_FILES"; then
23163 ac_cr=`echo X | tr X '\015'`
23164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23165 # But we know of no other shell where ac_cr would be empty at this
23166 # point, so we can use a bashism as a fallback.
23167 if test "x$ac_cr" = x; then
23168 eval ac_cr=\$\'\\r\'
23170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23174 ac_cs_awk_cr=$ac_cr
23177 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23182 echo "cat >conf$$subs.awk <<_ACEOF" &&
23183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23185 } >conf$$subs.sh ||
23186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23189 for ac_last_try in false false false false false :; do
23190 . ./conf$$subs.sh ||
23191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23194 if test $ac_delim_n = $ac_delim_num; then
23196 elif $ac_last_try; then
23197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23202 rm -f conf$$subs.sh
23204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23205 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23209 s/^/S["/; s/!.*/"]=/
23219 s/\(.\{148\}\)..*/\1/
23221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23233 s/\(.\{148\}\)..*/\1/
23235 s/["\\]/\\&/g; s/^/"/; s/$/"/
23239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23244 ' <conf$$subs.awk | sed '
23249 ' >>$CONFIG_STATUS || ac_write_fail=1
23250 rm -f conf$$subs.awk
23251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23253 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23254 for (key in S) S_is_set[key] = 1
23260 nfields = split(line, field, "@")
23262 len = length(field[1])
23263 for (i = 2; i < nfields; i++) {
23265 keylen = length(key)
23266 if (S_is_set[key]) {
23268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23269 len += length(value) + length(field[++i])
23280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23285 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23286 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23289 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23290 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23291 # trailing colons and then remove the whole line if VPATH becomes empty
23292 # (actually we leave an empty line to preserve line numbers).
23293 if test "x$srcdir" = x.; then
23294 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23313 fi # test -n "$CONFIG_FILES"
23315 # Set up the scripts for CONFIG_HEADERS section.
23316 # No need to generate them if there are no CONFIG_HEADERS.
23317 # This happens for instance with `./config.status Makefile'.
23318 if test -n "$CONFIG_HEADERS"; then
23319 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23323 # Transform confdefs.h into an awk script `defines.awk', embedded as
23324 # here-document in config.status, that substitutes the proper values into
23325 # config.h.in to produce config.h.
23327 # Create a delimiter string that does not exist in confdefs.h, to ease
23328 # handling of long lines.
23330 for ac_last_try in false false :; do
23331 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23332 if test -z "$ac_tt"; then
23334 elif $ac_last_try; then
23335 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23341 # For the awk script, D is an array of macro values keyed by name,
23342 # likewise P contains macro parameters if any. Preserve backslash
23343 # newline sequences.
23345 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23347 s/.\{148\}/&'"$ac_delim"'/g
23350 s/^[ ]*#[ ]*define[ ][ ]*/ /
23357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23364 D["\1"]=" \3\\\\\\n"\\/p
23366 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23371 s/.\{148\}/&'"$ac_delim"'/g
23376 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23379 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23381 ' <confdefs.h | sed '
23382 s/'"$ac_delim"'/"\\\
23383 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23386 for (key in D) D_is_set[key] = 1
23389 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23391 split(line, arg, " ")
23392 if (arg[1] == "#") {
23396 defundef = substr(arg[1], 2)
23399 split(mac1, mac2, "(") #)
23401 prefix = substr(line, 1, index(line, defundef) - 1)
23402 if (D_is_set[macro]) {
23403 # Preserve the white space surrounding the "#".
23404 print prefix "define", macro P[macro] D[macro]
23407 # Replace #undef with comments. This is necessary, for example,
23408 # in the case of _POSIX_SOURCE, which is predefined and required
23409 # on some systems where configure will not decide to define it.
23410 if (defundef == "undef") {
23411 print "/*", prefix defundef, macro, "*/"
23419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23420 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23421 fi # test -n "$CONFIG_HEADERS"
23424 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23429 :[FHLC]) ac_mode=$ac_tag; continue;;
23431 case $ac_mode$ac_tag in
23433 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23434 :[FH]-) ac_tag=-:-;;
23435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23452 -) ac_f="$ac_tmp/stdin";;
23453 *) # Look for the file first in the build tree, then in the source tree
23454 # (if the path is not absolute). The absolute path cannot be DOS-style,
23455 # because $ac_f cannot contain `:'.
23459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23461 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23464 as_fn_append ac_file_inputs " '$ac_f'"
23467 # Let's still pretend it is `configure' which instantiates (i.e., don't
23468 # use $as_me), people would be surprised to read:
23469 # /* config.h. Generated by config.status. */
23470 configure_input='Generated from '`
23471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23473 if test x"$ac_file" != x-; then
23474 configure_input="$ac_file. $configure_input"
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23476 $as_echo "$as_me: creating $ac_file" >&6;}
23478 # Neutralize special characters interpreted by sed in replacement strings.
23479 case $configure_input in #(
23480 *\&* | *\|* | *\\* )
23481 ac_sed_conf_input=`$as_echo "$configure_input" |
23482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23483 *) ac_sed_conf_input=$configure_input;;
23487 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23493 ac_dir=`$as_dirname -- "$ac_file" ||
23494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23495 X"$ac_file" : 'X\(//\)[^/]' \| \
23496 X"$ac_file" : 'X\(//\)$' \| \
23497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23498 $as_echo X"$ac_file" |
23499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23503 /^X\(\/\/\)[^/].*/{
23516 as_dir="$ac_dir"; as_fn_mkdir_p
23520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23523 # A ".." for each directory in $ac_dir_suffix.
23524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23525 case $ac_top_builddir_sub in
23526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23530 ac_abs_top_builddir=$ac_pwd
23531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23532 # for backward compatibility:
23533 ac_top_builddir=$ac_top_build_prefix
23536 .) # We are building in place.
23538 ac_top_srcdir=$ac_top_builddir_sub
23539 ac_abs_top_srcdir=$ac_pwd ;;
23540 [\\/]* | ?:[\\/]* ) # Absolute name.
23541 ac_srcdir=$srcdir$ac_dir_suffix;
23542 ac_top_srcdir=$srcdir
23543 ac_abs_top_srcdir=$srcdir ;;
23544 *) # Relative name.
23545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23546 ac_top_srcdir=$ac_top_build_prefix$srcdir
23547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23560 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23562 ac_MKDIR_P=$MKDIR_P
23564 [\\/$]* | ?:[\\/]* ) ;;
23565 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23570 # If the template does not know about datarootdir, expand it.
23571 # FIXME: This hack should be removed a few years after 2.60.
23572 ac_datarootdir_hack=; ac_datarootdir_seen=
23583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23584 *datarootdir*) ac_datarootdir_seen=yes;;
23585 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23590 ac_datarootdir_hack='
23591 s&@datadir@&$datadir&g
23592 s&@docdir@&$docdir&g
23593 s&@infodir@&$infodir&g
23594 s&@localedir@&$localedir&g
23595 s&@mandir@&$mandir&g
23596 s&\\\${datarootdir}&$datarootdir&g' ;;
23600 # Neutralize VPATH when `$srcdir' = `.'.
23601 # Shell code in configure.ac might set extrasub.
23602 # FIXME: do we really want to maintain this feature?
23603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23604 ac_sed_extra="$ac_vpsub
23607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23610 s|@configure_input@|$ac_sed_conf_input|;t t
23611 s&@top_builddir@&$ac_top_builddir_sub&;t t
23612 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23613 s&@srcdir@&$ac_srcdir&;t t
23614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23615 s&@top_srcdir@&$ac_top_srcdir&;t t
23616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23617 s&@builddir@&$ac_builddir&;t t
23618 s&@abs_builddir@&$ac_abs_builddir&;t t
23619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23620 s&@INSTALL@&$ac_INSTALL&;t t
23621 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23622 $ac_datarootdir_hack
23624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23625 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23628 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23630 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23632 which seems to be undefined. Please make sure it is defined" >&5
23633 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23634 which seems to be undefined. Please make sure it is defined" >&2;}
23636 rm -f "$ac_tmp/stdin"
23638 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23639 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23647 if test x"$ac_file" != x-; then
23649 $as_echo "/* $configure_input */" \
23650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23651 } >"$ac_tmp/config.h" \
23652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23653 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23655 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23658 mv "$ac_tmp/config.h" "$ac_file" \
23659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23662 $as_echo "/* $configure_input */" \
23663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23664 || as_fn_error $? "could not create -" "$LINENO" 5
23666 # Compute "$ac_file"'s index in $config_headers.
23669 for _am_header in $config_headers :; do
23670 case $_am_header in
23671 $_am_arg | $_am_arg:* )
23674 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23677 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23678 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23679 X"$_am_arg" : 'X\(//\)[^/]' \| \
23680 X"$_am_arg" : 'X\(//\)$' \| \
23681 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23682 $as_echo X"$_am_arg" |
23683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23687 /^X\(\/\/\)[^/].*/{
23699 s/.*/./; q'`/stamp-h$_am_stamp_count
23702 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23703 $as_echo "$as_me: executing $ac_file commands" >&6;}
23708 case $ac_file$ac_mode in
23709 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23710 # Older Autoconf quotes --file arguments for eval, but not when files
23711 # are listed without --file. Let's play safe and only enable the eval
23712 # if we detect the quoting.
23713 # TODO: see whether this extra hack can be removed once we start
23714 # requiring Autoconf 2.70 or later.
23715 case $CONFIG_FILES in #(
23717 eval set x "$CONFIG_FILES" ;; #(
23719 set x $CONFIG_FILES ;; #(
23724 # Used to flag and report bootstrapping failures.
23728 # Strip MF so we end up with the name of the file.
23729 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23730 # Check whether this is an Automake generated Makefile which includes
23731 # dependency-tracking related rules and includes.
23732 # Grep'ing the whole file directly is not great: AIX grep has a line
23733 # limit of 2048, but all sed's we know have understand at least 4000.
23734 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23736 am_dirpart=`$as_dirname -- "$am_mf" ||
23737 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23738 X"$am_mf" : 'X\(//\)[^/]' \| \
23739 X"$am_mf" : 'X\(//\)$' \| \
23740 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23741 $as_echo X"$am_mf" |
23742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23746 /^X\(\/\/\)[^/].*/{
23759 am_filepart=`$as_basename -- "$am_mf" ||
23760 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23761 X"$am_mf" : 'X\(//\)$' \| \
23762 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23763 $as_echo X/"$am_mf" |
23764 sed '/^.*\/\([^/][^/]*\)\/*$/{
23777 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23778 && sed -e '/# am--include-marker/d' "$am_filepart" \
23779 | $MAKE -f - am--depfiles" >&5
23780 (cd "$am_dirpart" \
23781 && sed -e '/# am--include-marker/d' "$am_filepart" \
23782 | $MAKE -f - am--depfiles) >&5 2>&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } || am_rc=$?
23787 if test $am_rc -ne 0; then
23788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23790 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23791 for automatic dependency tracking. Try re-running configure with the
23792 '--disable-dependency-tracking' option to at least be able to build
23793 the package (albeit without support for automatic dependency tracking).
23794 See \`config.log' for more details" "$LINENO" 5; }
23796 { am_dirpart=; unset am_dirpart;}
23797 { am_filepart=; unset am_filepart;}
23798 { am_mf=; unset am_mf;}
23799 { am_rc=; unset am_rc;}
23800 rm -f conftest-deps.mk
23805 # See if we are running on zsh, and set the options that allow our
23806 # commands through without removal of \ escapes.
23807 if test -n "${ZSH_VERSION+set}"; then
23808 setopt NO_GLOB_SUBST
23812 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23815 cat <<_LT_EOF >> "$cfgfile"
23817 # Generated automatically by $as_me ($PACKAGE) $VERSION
23818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23820 # Provide generalized library-building support services.
23821 # Written by Gordon Matzigkeit, 1996
23823 # Copyright (C) 2014 Free Software Foundation, Inc.
23824 # This is free software; see the source for copying conditions. There is NO
23825 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23827 # GNU Libtool is free software; you can redistribute it and/or modify
23828 # it under the terms of the GNU General Public License as published by
23829 # the Free Software Foundation; either version 2 of of the License, or
23830 # (at your option) any later version.
23832 # As a special exception to the GNU General Public License, if you
23833 # distribute this file as part of a program or library that is built
23834 # using GNU Libtool, you may include this file under the same
23835 # distribution terms that you use for the rest of that program.
23837 # GNU Libtool is distributed in the hope that it will be useful, but
23838 # WITHOUT ANY WARRANTY; without even the implied warranty of
23839 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23840 # GNU General Public License for more details.
23842 # You should have received a copy of the GNU General Public License
23843 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23846 # The names of the tagged configurations supported by this script.
23847 available_tags='CXX '
23849 # Configured defaults for sys_lib_dlsearch_path munging.
23850 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23852 # ### BEGIN LIBTOOL CONFIG
23854 # Which release of libtool.m4 was used?
23855 macro_version=$macro_version
23856 macro_revision=$macro_revision
23858 # Whether or not to build static libraries.
23859 build_old_libs=$enable_static
23861 # Whether or not to build shared libraries.
23862 build_libtool_libs=$enable_shared
23864 # What type of objects to build.
23867 # Whether or not to optimize for fast installation.
23868 fast_install=$enable_fast_install
23870 # Shared archive member basename,for filename based shared library versioning on AIX.
23871 shared_archive_member_spec=$shared_archive_member_spec
23873 # Shell to use when invoking shell scripts.
23876 # An echo program that protects backslashes.
23879 # The PATH separator for the build system.
23880 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23883 host_alias=$host_alias
23887 # The build system.
23888 build_alias=$build_alias
23892 # A sed program that does not truncate output.
23895 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23896 Xsed="\$SED -e 1s/^X//"
23898 # A grep program that handles long lines.
23904 # A literal string matcher.
23907 # A BSD- or MS-compatible name lister.
23910 # Whether we need soft or hard links.
23913 # What is the maximum length of a command?
23914 max_cmd_len=$max_cmd_len
23916 # Object file suffix (normally "o").
23919 # Executable file suffix (normally "").
23922 # whether the shell understands "unset".
23925 # turn spaces into newlines.
23928 # turn newlines into spaces.
23931 # convert \$build file names to \$host format.
23932 to_host_file_cmd=$lt_cv_to_host_file_cmd
23934 # convert \$build files to toolchain format.
23935 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23937 # An object symbol dumper.
23938 OBJDUMP=$lt_OBJDUMP
23940 # Method to check whether dependent libraries are shared objects.
23941 deplibs_check_method=$lt_deplibs_check_method
23943 # Command to use when deplibs_check_method = "file_magic".
23944 file_magic_cmd=$lt_file_magic_cmd
23946 # How to find potential files when deplibs_check_method = "file_magic".
23947 file_magic_glob=$lt_file_magic_glob
23949 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23950 want_nocaseglob=$lt_want_nocaseglob
23952 # DLL creation program.
23953 DLLTOOL=$lt_DLLTOOL
23955 # Command to associate shared and link libraries.
23956 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23961 # Flags to create an archive.
23962 AR_FLAGS=$lt_AR_FLAGS
23964 # How to feed a file listing to the archiver.
23965 archiver_list_spec=$lt_archiver_list_spec
23967 # A symbol stripping program.
23970 # Commands used to install an old-style archive.
23972 old_postinstall_cmds=$lt_old_postinstall_cmds
23973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23975 # Whether to use a lock for old archive extraction.
23976 lock_old_archive_extraction=$lock_old_archive_extraction
23981 # LTCC compiler flags.
23982 LTCFLAGS=$lt_CFLAGS
23984 # Take the output of nm and produce a listing of raw symbols and C names.
23985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23987 # Transform the output of nm in a proper C declaration.
23988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23990 # Transform the output of nm into a list of symbols to manually relocate.
23991 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23993 # Transform the output of nm in a C name address pair.
23994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23996 # Transform the output of nm in a C name address pair when lib prefix is needed.
23997 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23999 # The name lister interface.
24000 nm_interface=$lt_lt_cv_nm_interface
24002 # Specify filename containing input files for \$NM.
24003 nm_file_list_spec=$lt_nm_file_list_spec
24005 # The root where to search for dependent libraries,and where our libraries should be installed.
24006 lt_sysroot=$lt_sysroot
24008 # Command to truncate a binary pipe.
24009 lt_truncate_bin=$lt_lt_cv_truncate_bin
24011 # The name of the directory that contains temporary libtool files.
24014 # Used to examine libraries when file_magic_cmd begins with "file".
24015 MAGIC_CMD=$MAGIC_CMD
24017 # Must we lock files when doing compilation?
24018 need_locks=$lt_need_locks
24021 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24023 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24024 DSYMUTIL=$lt_DSYMUTIL
24026 # Tool to change global to local symbols on Mac OS X.
24029 # Tool to manipulate fat objects and archives on Mac OS X.
24032 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24035 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24036 OTOOL64=$lt_OTOOL64
24038 # Old archive suffix (normally "a").
24041 # Shared library suffix (normally ".so").
24042 shrext_cmds=$lt_shrext_cmds
24044 # The commands to extract the exported symbol list from a shared archive.
24045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24047 # Variables whose values should be saved in libtool wrapper scripts and
24048 # restored at link time.
24049 variables_saved_for_relink=$lt_variables_saved_for_relink
24051 # Do we need the "lib" prefix for modules?
24052 need_lib_prefix=$need_lib_prefix
24054 # Do we need a version for libraries?
24055 need_version=$need_version
24057 # Library versioning type.
24058 version_type=$version_type
24060 # Shared library runtime path variable.
24061 runpath_var=$runpath_var
24063 # Shared library path variable.
24064 shlibpath_var=$shlibpath_var
24066 # Is shlibpath searched before the hard-coded library search path?
24067 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24069 # Format of library name prefix.
24070 libname_spec=$lt_libname_spec
24072 # List of archive names. First name is the real one, the rest are links.
24073 # The last name is the one that the linker finds with -lNAME
24074 library_names_spec=$lt_library_names_spec
24076 # The coded name of the library, if different from the real name.
24077 soname_spec=$lt_soname_spec
24079 # Permission mode override for installation of shared libraries.
24080 install_override_mode=$lt_install_override_mode
24082 # Command to use after installation of a shared archive.
24083 postinstall_cmds=$lt_postinstall_cmds
24085 # Command to use after uninstallation of a shared archive.
24086 postuninstall_cmds=$lt_postuninstall_cmds
24088 # Commands used to finish a libtool library installation in a directory.
24089 finish_cmds=$lt_finish_cmds
24091 # As "finish_cmds", except a single script fragment to be evaled but
24093 finish_eval=$lt_finish_eval
24095 # Whether we should hardcode library paths into libraries.
24096 hardcode_into_libs=$hardcode_into_libs
24098 # Compile-time system search path for libraries.
24099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24101 # Detected run-time system search path for libraries.
24102 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24104 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24105 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24107 # Whether dlopen is supported.
24108 dlopen_support=$enable_dlopen
24110 # Whether dlopen of programs is supported.
24111 dlopen_self=$enable_dlopen_self
24113 # Whether dlopen of statically linked programs is supported.
24114 dlopen_self_static=$enable_dlopen_self_static
24116 # Commands to strip libraries.
24117 old_striplib=$lt_old_striplib
24118 striplib=$lt_striplib
24121 # The linker used to build libraries.
24124 # How to create reloadable object files.
24125 reload_flag=$lt_reload_flag
24126 reload_cmds=$lt_reload_cmds
24128 # Commands used to build an old-style archive.
24129 old_archive_cmds=$lt_old_archive_cmds
24131 # A language specific compiler.
24134 # Is the compiler the GNU compiler?
24137 # Compiler flag to turn off builtin functions.
24138 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24140 # Additional compiler flags for building library objects.
24141 pic_flag=$lt_lt_prog_compiler_pic
24143 # How to pass a linker flag through the compiler.
24144 wl=$lt_lt_prog_compiler_wl
24146 # Compiler flag to prevent dynamic linking.
24147 link_static_flag=$lt_lt_prog_compiler_static
24149 # Does compiler simultaneously support -c and -o options?
24150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24152 # Whether or not to add -lc for building shared libraries.
24153 build_libtool_need_lc=$archive_cmds_need_lc
24155 # Whether or not to disallow shared libs when runtime libs are static.
24156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24158 # Compiler flag to allow reflexive dlopens.
24159 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24161 # Compiler flag to generate shared objects directly from archives.
24162 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24164 # Whether the compiler copes with passing no objects directly.
24165 compiler_needs_object=$lt_compiler_needs_object
24167 # Create an old-style archive from a shared archive.
24168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24170 # Create a temporary old-style archive to link instead of a shared archive.
24171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24173 # Commands used to build a shared archive.
24174 archive_cmds=$lt_archive_cmds
24175 archive_expsym_cmds=$lt_archive_expsym_cmds
24177 # Commands used to build a loadable module if different from building
24178 # a shared archive.
24179 module_cmds=$lt_module_cmds
24180 module_expsym_cmds=$lt_module_expsym_cmds
24182 # Whether we are building with GNU ld or not.
24183 with_gnu_ld=$lt_with_gnu_ld
24185 # Flag that allows shared libraries with undefined symbols to be built.
24186 allow_undefined_flag=$lt_allow_undefined_flag
24188 # Flag that enforces no undefined symbols.
24189 no_undefined_flag=$lt_no_undefined_flag
24191 # Flag to hardcode \$libdir into a binary during linking.
24192 # This must work even if \$libdir does not exist
24193 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24195 # Whether we need a single "-rpath" flag with a separated argument.
24196 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24198 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24199 # DIR into the resulting binary.
24200 hardcode_direct=$hardcode_direct
24202 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24203 # DIR into the resulting binary and the resulting library dependency is
24204 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24205 # library is relocated.
24206 hardcode_direct_absolute=$hardcode_direct_absolute
24208 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24209 # into the resulting binary.
24210 hardcode_minus_L=$hardcode_minus_L
24212 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24213 # into the resulting binary.
24214 hardcode_shlibpath_var=$hardcode_shlibpath_var
24216 # Set to "yes" if building a shared library automatically hardcodes DIR
24217 # into the library and all subsequent libraries and executables linked
24219 hardcode_automatic=$hardcode_automatic
24221 # Set to yes if linker adds runtime paths of dependent libraries
24222 # to runtime path list.
24223 inherit_rpath=$inherit_rpath
24225 # Whether libtool must link a program against all its dependency libraries.
24226 link_all_deplibs=$link_all_deplibs
24228 # Set to "yes" if exported symbols are required.
24229 always_export_symbols=$always_export_symbols
24231 # The commands to list exported symbols.
24232 export_symbols_cmds=$lt_export_symbols_cmds
24234 # Symbols that should not be listed in the preloaded symbols.
24235 exclude_expsyms=$lt_exclude_expsyms
24237 # Symbols that must always be exported.
24238 include_expsyms=$lt_include_expsyms
24240 # Commands necessary for linking programs (against libraries) with templates.
24241 prelink_cmds=$lt_prelink_cmds
24243 # Commands necessary for finishing linking programs.
24244 postlink_cmds=$lt_postlink_cmds
24246 # Specify filename containing input files.
24247 file_list_spec=$lt_file_list_spec
24249 # How to hardcode a shared library path into an executable.
24250 hardcode_action=$hardcode_action
24252 # The directories searched by this compiler when creating a shared library.
24253 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24255 # Dependencies to place before and after the objects being linked to
24256 # create a shared library.
24257 predep_objects=$lt_predep_objects
24258 postdep_objects=$lt_postdep_objects
24259 predeps=$lt_predeps
24260 postdeps=$lt_postdeps
24262 # The library search path used internally by the compiler when linking
24263 # a shared library.
24264 compiler_lib_search_path=$lt_compiler_lib_search_path
24266 # ### END LIBTOOL CONFIG
24270 cat <<'_LT_EOF' >> "$cfgfile"
24272 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24274 # func_munge_path_list VARIABLE PATH
24275 # -----------------------------------
24276 # VARIABLE is name of variable containing _space_ separated list of
24277 # directories to be munged by the contents of PATH, which is string
24280 # string "DIR[ DIR]" will be prepended to VARIABLE
24282 # string "DIR[ DIR]" will be appended to VARIABLE
24283 # "DIRP[:DIRP]::[DIRA:]DIRA"
24284 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24285 # "DIRA[ DIRA]" will be appended to VARIABLE
24287 # VARIABLE will be replaced by "DIR[ DIR]"
24288 func_munge_path_list ()
24294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24297 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24300 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24301 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24304 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24310 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24311 func_cc_basename ()
24313 for cc_temp in $*""; do
24315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24321 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24325 # ### END FUNCTIONS SHARED WITH CONFIGURE
24331 cat <<\_LT_EOF >> "$cfgfile"
24332 # AIX sometimes has problems with the GCC collect2 program. For some
24333 # reason, if we set the COLLECT_NAMES environment variable, the problems
24334 # vanish in a puff of smoke.
24335 if test set != "${COLLECT_NAMES+set}"; then
24337 export COLLECT_NAMES
24344 ltmain=$ac_aux_dir/ltmain.sh
24347 # We use sed instead of cat because bash on DJGPP gets confused if
24348 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24349 # text mode, it properly converts lines to CR/LF. This bash problem
24350 # is reportedly fixed, but why not run on old versions too?
24351 sed '$q' "$ltmain" >> "$cfgfile" \
24352 || (rm -f "$cfgfile"; exit 1)
24354 mv -f "$cfgfile" "$ofile" ||
24355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24359 cat <<_LT_EOF >> "$ofile"
24361 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24363 # The linker used to build libraries.
24366 # How to create reloadable object files.
24367 reload_flag=$lt_reload_flag_CXX
24368 reload_cmds=$lt_reload_cmds_CXX
24370 # Commands used to build an old-style archive.
24371 old_archive_cmds=$lt_old_archive_cmds_CXX
24373 # A language specific compiler.
24374 CC=$lt_compiler_CXX
24376 # Is the compiler the GNU compiler?
24379 # Compiler flag to turn off builtin functions.
24380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24382 # Additional compiler flags for building library objects.
24383 pic_flag=$lt_lt_prog_compiler_pic_CXX
24385 # How to pass a linker flag through the compiler.
24386 wl=$lt_lt_prog_compiler_wl_CXX
24388 # Compiler flag to prevent dynamic linking.
24389 link_static_flag=$lt_lt_prog_compiler_static_CXX
24391 # Does compiler simultaneously support -c and -o options?
24392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24394 # Whether or not to add -lc for building shared libraries.
24395 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24397 # Whether or not to disallow shared libs when runtime libs are static.
24398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24400 # Compiler flag to allow reflexive dlopens.
24401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24403 # Compiler flag to generate shared objects directly from archives.
24404 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24406 # Whether the compiler copes with passing no objects directly.
24407 compiler_needs_object=$lt_compiler_needs_object_CXX
24409 # Create an old-style archive from a shared archive.
24410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24412 # Create a temporary old-style archive to link instead of a shared archive.
24413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24415 # Commands used to build a shared archive.
24416 archive_cmds=$lt_archive_cmds_CXX
24417 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24419 # Commands used to build a loadable module if different from building
24420 # a shared archive.
24421 module_cmds=$lt_module_cmds_CXX
24422 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24424 # Whether we are building with GNU ld or not.
24425 with_gnu_ld=$lt_with_gnu_ld_CXX
24427 # Flag that allows shared libraries with undefined symbols to be built.
24428 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24430 # Flag that enforces no undefined symbols.
24431 no_undefined_flag=$lt_no_undefined_flag_CXX
24433 # Flag to hardcode \$libdir into a binary during linking.
24434 # This must work even if \$libdir does not exist
24435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24437 # Whether we need a single "-rpath" flag with a separated argument.
24438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24440 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24441 # DIR into the resulting binary.
24442 hardcode_direct=$hardcode_direct_CXX
24444 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24445 # DIR into the resulting binary and the resulting library dependency is
24446 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24447 # library is relocated.
24448 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24451 # into the resulting binary.
24452 hardcode_minus_L=$hardcode_minus_L_CXX
24454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24455 # into the resulting binary.
24456 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24458 # Set to "yes" if building a shared library automatically hardcodes DIR
24459 # into the library and all subsequent libraries and executables linked
24461 hardcode_automatic=$hardcode_automatic_CXX
24463 # Set to yes if linker adds runtime paths of dependent libraries
24464 # to runtime path list.
24465 inherit_rpath=$inherit_rpath_CXX
24467 # Whether libtool must link a program against all its dependency libraries.
24468 link_all_deplibs=$link_all_deplibs_CXX
24470 # Set to "yes" if exported symbols are required.
24471 always_export_symbols=$always_export_symbols_CXX
24473 # The commands to list exported symbols.
24474 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24476 # Symbols that should not be listed in the preloaded symbols.
24477 exclude_expsyms=$lt_exclude_expsyms_CXX
24479 # Symbols that must always be exported.
24480 include_expsyms=$lt_include_expsyms_CXX
24482 # Commands necessary for linking programs (against libraries) with templates.
24483 prelink_cmds=$lt_prelink_cmds_CXX
24485 # Commands necessary for finishing linking programs.
24486 postlink_cmds=$lt_postlink_cmds_CXX
24488 # Specify filename containing input files.
24489 file_list_spec=$lt_file_list_spec_CXX
24491 # How to hardcode a shared library path into an executable.
24492 hardcode_action=$hardcode_action_CXX
24494 # The directories searched by this compiler when creating a shared library.
24495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24497 # Dependencies to place before and after the objects being linked to
24498 # create a shared library.
24499 predep_objects=$lt_predep_objects_CXX
24500 postdep_objects=$lt_postdep_objects_CXX
24501 predeps=$lt_predeps_CXX
24502 postdeps=$lt_postdeps_CXX
24504 # The library search path used internally by the compiler when linking
24505 # a shared library.
24506 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24508 # ### END LIBTOOL TAG CONFIG: CXX
24519 ac_clean_files=$ac_clean_files_save
24521 test $ac_write_fail = 0 ||
24522 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24525 # configure is writing to config.log, and then calls config.status.
24526 # config.status does its own redirection, appending to config.log.
24527 # Unfortunately, on DOS this fails, as config.log is still kept open
24528 # by configure, so config.status won't be able to write to it; its
24529 # output is simply discarded. So we exec the FD to /dev/null,
24530 # effectively closing config.log, so it can be properly (re)opened and
24531 # appended to by config.status. When coming back to configure, we
24532 # need to make the FD available again.
24533 if test "$no_create" != yes; then
24535 ac_config_status_args=
24536 test "$silent" = yes &&
24537 ac_config_status_args="$ac_config_status_args --quiet"
24539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24542 # would make configure fail if this is the last instruction.
24543 $ac_cs_success || as_fn_exit 1
24545 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24547 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24552 echo "C++ compiler version:"
24556 { $as_echo "$as_me:${as_lineno-$LINENO}:
24558 Autotools is no longer our supported build system for building the library
24559 for *nix distributions, please migrate to meson.
24564 Autotools is no longer our supported build system for building the library
24565 for *nix distributions, please migrate to meson.
24570 { $as_echo "$as_me:${as_lineno-$LINENO}:
24572 Build configuration:
24574 Unicode callbacks (you want at least one):
24579 Font callbacks (the more the merrier):
24580 FreeType: ${have_freetype}
24582 Tools used for command-line utilities:
24583 Cairo: ${have_cairo}
24584 Chafa: ${have_chafa}
24586 Additional shapers:
24587 Graphite2: ${have_graphite2}
24589 Platform shapers (not normally needed):
24590 CoreText: ${have_coretext}
24591 DirectWrite: ${have_directwrite}
24593 Uniscribe: ${have_uniscribe}
24594 WebAssembly: ${have_wasm}
24597 Documentation: ${enable_gtk_doc}
24598 GObject bindings: ${have_gobject}
24599 Introspection: ${have_introspection}
24603 Build configuration:
24605 Unicode callbacks (you want at least one):
24610 Font callbacks (the more the merrier):
24611 FreeType: ${have_freetype}
24613 Tools used for command-line utilities:
24614 Cairo: ${have_cairo}
24615 Chafa: ${have_chafa}
24617 Additional shapers:
24618 Graphite2: ${have_graphite2}
24620 Platform shapers (not normally needed):
24621 CoreText: ${have_coretext}
24622 DirectWrite: ${have_directwrite}
24624 Uniscribe: ${have_uniscribe}
24625 WebAssembly: ${have_wasm}
24628 Documentation: ${enable_gtk_doc}
24629 GObject bindings: ${have_gobject}
24630 Introspection: ${have_introspection}