2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 2.3.1.
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='2.3.1'
594 PACKAGE_STRING='HarfBuzz 2.3.1'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
670 HAVE_FONTCONFIG_FALSE
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
687 INTROSPECTION_TYPELIBDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
715 GTK_DOC_USE_REBASE_FALSE
716 GTK_DOC_USE_REBASE_TRUE
717 GTK_DOC_USE_LIBTOOL_FALSE
718 GTK_DOC_USE_LIBTOOL_TRUE
719 GTK_DOC_BUILD_PDF_FALSE
720 GTK_DOC_BUILD_PDF_TRUE
721 GTK_DOC_BUILD_HTML_FALSE
722 GTK_DOC_BUILD_HTML_TRUE
736 HB_LIBTOOL_VERSION_INFO
801 CODE_COVERAGE_LDFLAGS
803 CODE_COVERAGE_CXXFLAGS
805 CODE_COVERAGE_CPPFLAGS
809 CODE_COVERAGE_ENABLED
810 CODE_COVERAGE_ENABLED_FALSE
811 CODE_COVERAGE_ENABLED_TRUE
825 INSTALL_STRIP_PROGRAM
868 program_transform_name
881 enable_option_checking
885 enable_dependency_tracking
913 ac_precious_vars='build_alias
950 # Initialize some variables set by options.
952 ac_init_version=false
953 ac_unrecognized_opts=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 runstatedir='${localstatedir}/run'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1011 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1042 -datadir | --datadir | --datadi | --datad)
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1054 -disable-* | --disable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1068 eval enable_$ac_useropt=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 htmldir=$ac_optarg ;;
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1139 -libdir | --libdir | --libdi | --libd)
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1230 -psdir | --psdir | --psdi | --psd | --ps)
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1239 -runstatedir | --runstatedir | --runstatedi | --runstated \
1240 | --runstate | --runstat | --runsta | --runst | --runs \
1241 | --run | --ru | --r)
1242 ac_prev=runstatedir ;;
1243 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1244 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1245 | --run=* | --ru=* | --r=*)
1246 runstatedir=$ac_optarg ;;
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1267 -site=* | --site=* | --sit=*)
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error $? "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval with_$ac_useropt=\$ac_optarg ;;
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error $? "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1323 eval with_$ac_useropt=no ;;
1326 # Obsolete; use --with-x.
1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330 | --x-incl | --x-inc | --x-in | --x-i)
1331 ac_prev=x_includes ;;
1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334 x_includes=$ac_optarg ;;
1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338 ac_prev=x_libraries ;;
1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341 x_libraries=$ac_optarg ;;
1343 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information"
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' | [0-9]* | *[!_$as_cr_alnum]* )
1352 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1354 eval $ac_envvar=\$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1368 if test -n "$ac_prev"; then
1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error $? "missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1376 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir runstatedir
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1394 # Be sure to have absolute directory names.
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1407 target=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 elif test "x$build_alias" != "x$host_alias"; then
1419 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421 test "$silent" = yes && exec 6>/dev/null
1424 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di=`ls -di .` &&
1426 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error $? "working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error $? "pwd does not report name of working directory"
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1464 ac_srcdir_defaulted=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1482 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 for ac_var in $ac_precious_vars; do
1485 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_${ac_var}_value=\$${ac_var}
1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1492 # Report the --help message.
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1498 \`configure' configures HarfBuzz 2.3.1 to adapt to many kinds of systems.
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1505 Defaults for the options are specified in brackets.
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking ...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1529 For better control, use the options below.
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 if test -n "$ac_init_help"; then
1568 case $ac_init_help in
1569 short | recursive ) echo "Configuration of HarfBuzz 2.3.1:";;
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-silent-rules less verbose build output (undo: "make V=1")
1578 --disable-silent-rules verbose build output (undo: "make V=0")
1579 --enable-code-coverage Whether to enable code coverage support
1580 --enable-dependency-tracking
1581 do not reject slow dependency extractors
1582 --disable-dependency-tracking
1583 speeds up one-time build
1584 --enable-static[=PKGS] build static libraries [default=no]
1585 --enable-shared[=PKGS] build shared libraries [default=yes]
1586 --enable-fast-install[=PKGS]
1587 optimize for fast installation [default=yes]
1588 --disable-libtool-lock avoid locking (might break parallel builds)
1589 --disable-largefile omit support for large files
1590 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1591 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1592 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1593 --enable-introspection=[no/auto/yes]
1594 Enable introspection for this build
1597 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1598 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1599 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1600 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1602 --with-aix-soname=aix|svr4|both
1603 shared library versioning (aka "SONAME") variant to
1604 provide on AIX, [default=aix].
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1607 compiler's sysroot if not specified).
1608 --with-libstdc++=[yes/no]
1609 Allow linking with libstdc++ [default=no]
1610 --with-html-dir=PATH path to installed docs
1611 --with-glib=[yes/no/auto]
1612 Use glib [default=auto]
1613 --with-gobject=[yes/no/auto]
1614 Use gobject [default=no]
1615 --with-cairo=[yes/no/auto]
1616 Use cairo [default=auto]
1617 --with-fontconfig=[yes/no/auto]
1618 Use fontconfig [default=auto]
1619 --with-icu=[yes/no/builtin/auto]
1620 Use ICU [default=auto]
1621 --with-ucdn=[yes/no] Use builtin UCDN library [default=yes]
1622 --with-graphite2=[yes/no/auto]
1623 Use the graphite2 library [default=no]
1624 --with-freetype=[yes/no/auto]
1625 Use the FreeType library [default=auto]
1626 --with-uniscribe=[yes/no/auto]
1627 Use the Uniscribe library [default=no]
1628 --with-directwrite=[yes/no/auto]
1629 Use the DirectWrite library (experimental)
1631 --with-coretext=[yes/no/auto]
1632 Use CoreText [default=no]
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1643 User-defined run-time library search path.
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
1647 CXXCPP C++ preprocessor
1648 PKG_CONFIG path to pkg-config utility
1650 directories to add to pkg-config's search path
1652 path overriding pkg-config's built-in search path
1654 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1656 linker flags for GTKDOC_DEPS, overriding pkg-config
1657 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1658 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1660 C compiler flags for GOBJECT, overriding pkg-config
1662 linker flags for GOBJECT, overriding pkg-config
1664 C compiler flags for CAIRO, overriding pkg-config
1665 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1667 C compiler flags for CAIRO_FT, overriding pkg-config
1669 linker flags for CAIRO_FT, overriding pkg-config
1671 C compiler flags for FONTCONFIG, overriding pkg-config
1673 linker flags for FONTCONFIG, overriding pkg-config
1674 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1675 ICU_LIBS linker flags for ICU, overriding pkg-config
1677 C compiler flags for GRAPHITE2, overriding pkg-config
1679 linker flags for GRAPHITE2, overriding pkg-config
1681 C compiler flags for FREETYPE, overriding pkg-config
1683 linker flags for FREETYPE, overriding pkg-config
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1688 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1689 HarfBuzz home page: <http://harfbuzz.org/>.
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1719 .) # We are building in place.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1752 HarfBuzz configure 2.3.1
1753 generated by GNU Autoconf 2.69
1755 Copyright (C) 2012 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_c_try_compile
1804 # ac_fn_c_try_link LINENO
1805 # -----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 test -x conftest$ac_exeext
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_c_try_link
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_header_compile
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1918 # ac_fn_c_try_run LINENO
1919 # ----------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1921 # that executables *can* be run.
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_link"
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>&5
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1936 { { case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_try") 2>&5
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; }; }; then :
1948 $as_echo "$as_me: program exited with status $ac_status" >&5
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=$ac_status
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1975 #define $2 innocuous_$2
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $2 (); below.
1979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980 <limits.h> exists even on freestanding compilers. */
1983 # include <limits.h>
1985 # include <assert.h>
1990 /* Override any GCC internal prototype to avoid an error.
1991 Use char because int might match the return type of a GCC
1992 builtin and then its argument prototype would still apply. */
1997 /* The GNU C library defines this for functions which it implements
1998 to always fail with ENOSYS. Some functions are actually named
1999 something starting with __ and the normal name is an alias. */
2000 #if defined __stub_$2 || defined __stub___$2
2012 if ac_fn_c_try_link "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext \
2018 conftest$ac_exeext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_func
2027 # ac_fn_cxx_try_compile LINENO
2028 # ----------------------------
2029 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2030 ac_fn_cxx_try_compile ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 rm -f conftest.$ac_objext
2034 if { { ac_try="$ac_compile"
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_compile") 2>conftest.err
2043 if test -s conftest.err; then
2044 grep -v '^ *+' conftest.err >conftest.er1
2045 cat conftest.er1 >&5
2046 mv -f conftest.er1 conftest.err
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && {
2050 test -z "$ac_cxx_werror_flag" ||
2051 test ! -s conftest.err
2052 } && test -s conftest.$ac_objext; then :
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 as_fn_set_status $ac_retval
2063 } # ac_fn_cxx_try_compile
2065 # ac_fn_cxx_try_cpp LINENO
2066 # ------------------------
2067 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_cxx_try_cpp ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if { { ac_try="$ac_cpp conftest.$ac_ext"
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2080 if test -s conftest.err; then
2081 grep -v '^ *+' conftest.err >conftest.er1
2082 cat conftest.er1 >&5
2083 mv -f conftest.er1 conftest.err
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } > conftest.i && {
2087 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2088 test ! -s conftest.err
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2100 } # ac_fn_cxx_try_cpp
2102 # ac_fn_cxx_try_link LINENO
2103 # -------------------------
2104 # Try to link conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_cxx_try_link ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 rm -f conftest.$ac_objext conftest$ac_exeext
2109 if { { ac_try="$ac_link"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_link") 2>conftest.err
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && {
2125 test -z "$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2127 } && test -s conftest$ac_exeext && {
2128 test "$cross_compiling" = yes ||
2129 test -x conftest$ac_exeext
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2138 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2139 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2140 # interfere with the next link command; also delete a directory that is
2141 # left behind by Apple's compiler. We do this before executing the actions.
2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 as_fn_set_status $ac_retval
2146 } # ac_fn_cxx_try_link
2148 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2149 # ---------------------------------------------
2150 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2152 ac_fn_c_check_decl ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 as_decl_name=`echo $2|sed 's/ *(.*//'`
2156 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2158 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2159 if eval \${$3+:} false; then :
2160 $as_echo_n "(cached) " >&6
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 #ifndef $as_decl_name
2170 (void) $as_decl_use;
2172 (void) $as_decl_name;
2180 if ac_fn_c_try_compile "$LINENO"; then :
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 } # ac_fn_c_check_decl
2194 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2195 # -------------------------------------------------------
2196 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2197 # the include files in INCLUDES and setting the cache variable VAR
2199 ac_fn_c_check_header_mongrel ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 if eval \${$3+:} false; then :
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval \${$3+:} false; then :
2206 $as_echo_n "(cached) " >&6
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2212 # Is the header compilable?
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2214 $as_echo_n "checking $2 usability... " >&6; }
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221 ac_header_compiler=yes
2223 ac_header_compiler=no
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2227 $as_echo "$ac_header_compiler" >&6; }
2229 # Is the header present?
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2231 $as_echo_n "checking $2 presence... " >&6; }
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 if ac_fn_c_try_cpp "$LINENO"; then :
2237 ac_header_preproc=yes
2239 ac_header_preproc=no
2241 rm -f conftest.err conftest.i conftest.$ac_ext
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2243 $as_echo "$ac_header_preproc" >&6; }
2245 # So? What about this header?
2246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2249 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2251 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2255 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2257 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2259 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2261 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2263 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2264 ( $as_echo "## -------------------------------------------------------------- ##
2265 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2266 ## -------------------------------------------------------------- ##"
2267 ) | sed "s/^/$as_me: WARNING: /" >&2
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval \${$3+:} false; then :
2273 $as_echo_n "(cached) " >&6
2275 eval "$3=\$ac_header_compiler"
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283 } # ac_fn_c_check_header_mongrel
2285 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2286 # --------------------------------------------
2287 # Tries to find the compile-time value of EXPR in a program that includes
2288 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2290 ac_fn_c_compute_int ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 if test "$cross_compiling" = yes; then
2294 # Depending upon the size, compute the lo and hi bounds.
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) >= 0)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile "$LINENO"; then :
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2318 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2320 return test_array [0];
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 ac_hi=$ac_mid; break
2329 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2330 if test $ac_lo -le $ac_mid; then
2334 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2345 static int test_array [1 - 2 * !(($2) < 0)];
2347 return test_array [0];
2353 if ac_fn_c_try_compile "$LINENO"; then :
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2362 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2364 return test_array [0];
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371 ac_lo=$ac_mid; break
2373 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2374 if test $ac_mid -le $ac_hi; then
2378 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 # Binary search between lo and hi bounds.
2389 while test "x$ac_lo" != "x$ac_hi"; do
2390 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2397 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2399 return test_array [0];
2405 if ac_fn_c_try_compile "$LINENO"; then :
2408 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2420 static long int longval () { return $2; }
2421 static unsigned long int ulongval () { return $2; }
2428 FILE *f = fopen ("conftest.val", "w");
2433 long int i = longval ();
2436 fprintf (f, "%ld", i);
2440 unsigned long int i = ulongval ();
2443 fprintf (f, "%lu", i);
2445 /* Do not output a trailing newline, as this causes \r\n confusion
2446 on some platforms. */
2447 return ferror (f) || fclose (f) != 0;
2453 if ac_fn_c_try_run "$LINENO"; then :
2454 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2459 conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2464 as_fn_set_status $ac_retval
2466 } # ac_fn_c_compute_int
2468 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2469 # ---------------------------------------------------------
2470 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2471 # the include files in INCLUDES and setting the cache variable VAR
2473 ac_fn_cxx_check_header_mongrel ()
2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476 if eval \${$3+:} false; then :
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if eval \${$3+:} false; then :
2480 $as_echo_n "(cached) " >&6
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2486 # Is the header compilable?
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2488 $as_echo_n "checking $2 usability... " >&6; }
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2494 if ac_fn_cxx_try_compile "$LINENO"; then :
2495 ac_header_compiler=yes
2497 ac_header_compiler=no
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2501 $as_echo "$ac_header_compiler" >&6; }
2503 # Is the header present?
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2505 $as_echo_n "checking $2 presence... " >&6; }
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2510 if ac_fn_cxx_try_cpp "$LINENO"; then :
2511 ac_header_preproc=yes
2513 ac_header_preproc=no
2515 rm -f conftest.err conftest.i conftest.$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2517 $as_echo "$ac_header_preproc" >&6; }
2519 # So? What about this header?
2520 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2523 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2525 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2529 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2531 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2533 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2535 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2537 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2538 ( $as_echo "## -------------------------------------------------------------- ##
2539 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2540 ## -------------------------------------------------------------- ##"
2541 ) | sed "s/^/$as_me: WARNING: /" >&2
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \${$3+:} false; then :
2547 $as_echo_n "(cached) " >&6
2549 eval "$3=\$ac_header_compiler"
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 } # ac_fn_cxx_check_header_mongrel
2559 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2560 # -------------------------------------------
2561 # Tests whether TYPE exists after having included INCLUDES, setting cache
2562 # variable VAR accordingly.
2563 ac_fn_c_check_type ()
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2567 $as_echo_n "checking for $2... " >&6; }
2568 if eval \${$3+:} false; then :
2569 $as_echo_n "(cached) " >&6
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2597 if ac_fn_c_try_compile "$LINENO"; then :
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611 } # ac_fn_c_check_type
2612 cat >config.log <<_ACEOF
2613 This file contains any messages produced by compilers while
2614 running configure, to aid debugging if configure makes a mistake.
2616 It was created by HarfBuzz $as_me 2.3.1, which was
2617 generated by GNU Autoconf 2.69. Invocation command line was
2629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 $as_echo "PATH: $as_dir"
2669 # Keep a trace of the command line.
2670 # Strip out --no-create and --no-recursion so they do not pile up.
2671 # Strip out --silent because we don't want to record it for future runs.
2672 # Also quote any args containing shell meta-characters.
2673 # Make two passes to allow for proper duplicate-argument suppression.
2677 ac_must_keep_next=false
2683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2685 | -silent | --silent | --silen | --sile | --sil)
2688 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2693 as_fn_append ac_configure_args1 " '$ac_arg'"
2694 if test $ac_must_keep_next = true; then
2695 ac_must_keep_next=false # Got value, back to normal.
2698 *=* | --config-cache | -C | -disable-* | --disable-* \
2699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2701 | -with-* | --with-* | -without-* | --without-* | --x)
2702 case "$ac_configure_args0 " in
2703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706 -* ) ac_must_keep_next=true ;;
2709 as_fn_append ac_configure_args " '$ac_arg'"
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2717 # When interrupted or exit'd, cleanup temporary files, and complete
2718 # config.log. We remove comments because anyway the quotes in there
2719 # would cause problems or look ugly.
2720 # WARNING: Use '\'' to represent an apostrophe within the trap.
2721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722 trap 'exit_status=$?
2723 # Save into config.log some information that might help in debugging.
2727 $as_echo "## ---------------- ##
2728 ## Cache variables. ##
2729 ## ---------------- ##"
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734 eval ac_val=\$$ac_var
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2763 $as_echo "## ----------------- ##
2764 ## Output variables. ##
2765 ## ----------------- ##"
2767 for ac_var in $ac_subst_vars
2769 eval ac_val=\$$ac_var
2771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2773 $as_echo "$ac_var='\''$ac_val'\''"
2777 if test -n "$ac_subst_files"; then
2778 $as_echo "## ------------------- ##
2779 ## File substitutions. ##
2780 ## ------------------- ##"
2782 for ac_var in $ac_subst_files
2784 eval ac_val=\$$ac_var
2786 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2788 $as_echo "$ac_var='\''$ac_val'\''"
2793 if test -s confdefs.h; then
2794 $as_echo "## ----------- ##
2801 test "$ac_signal" != 0 &&
2802 $as_echo "$as_me: caught signal $ac_signal"
2803 $as_echo "$as_me: exit $exit_status"
2805 rm -f core *.core core.conftest.* &&
2806 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2809 for ac_signal in 1 2 13 15; do
2810 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2815 rm -f -r conftest* confdefs.h
2817 $as_echo "/* confdefs.h */" > confdefs.h
2819 # Predefined preprocessor variables.
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_NAME "$PACKAGE_NAME"
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_STRING "$PACKAGE_STRING"
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_URL "$PACKAGE_URL"
2846 # Let the site file select an alternate cache file if it wants to.
2847 # Prefer an explicitly selected file to automatically selected ones.
2850 if test -n "$CONFIG_SITE"; then
2851 # We do not want a PATH search for config.site.
2852 case $CONFIG_SITE in #((
2853 -*) ac_site_file1=./$CONFIG_SITE;;
2854 */*) ac_site_file1=$CONFIG_SITE;;
2855 *) ac_site_file1=./$CONFIG_SITE;;
2857 elif test "x$prefix" != xNONE; then
2858 ac_site_file1=$prefix/share/config.site
2859 ac_site_file2=$prefix/etc/config.site
2861 ac_site_file1=$ac_default_prefix/share/config.site
2862 ac_site_file2=$ac_default_prefix/etc/config.site
2864 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2866 test "x$ac_site_file" = xNONE && continue
2867 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2869 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2870 sed 's/^/| /' "$ac_site_file" >&5
2872 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $? "failed to load site script $ac_site_file
2875 See \`config.log' for more details" "$LINENO" 5; }
2879 if test -r "$cache_file"; then
2880 # Some versions of bash will fail to source /dev/null (special files
2881 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2882 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 $as_echo "$as_me: loading cache $cache_file" >&6;}
2886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887 *) . "./$cache_file";;
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 $as_echo "$as_me: creating cache $cache_file" >&6;}
2896 # Check that the precious variables saved in the cache have kept the same
2898 ac_cache_corrupted=false
2899 for ac_var in $ac_precious_vars; do
2900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2901 eval ac_new_set=\$ac_env_${ac_var}_set
2902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2903 eval ac_new_val=\$ac_env_${ac_var}_value
2904 case $ac_old_set,$ac_new_set in
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2907 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2908 ac_cache_corrupted=: ;;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2911 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2912 ac_cache_corrupted=: ;;
2915 if test "x$ac_old_val" != "x$ac_new_val"; then
2916 # differences in whitespace do not lead to failure.
2917 ac_old_val_w=`echo x $ac_old_val`
2918 ac_new_val_w=`echo x $ac_new_val`
2919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2922 ac_cache_corrupted=:
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2926 eval $ac_var=\$ac_old_val
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2929 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2931 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2934 # Pass precious variables to config.status.
2935 if test "$ac_new_set" = set; then
2937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2938 *) ac_arg=$ac_var=$ac_new_val ;;
2940 case " $ac_configure_args " in
2941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2942 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2946 if $ac_cache_corrupted; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2951 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2953 ## -------------------- ##
2954 ## Main body of script. ##
2955 ## -------------------- ##
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 ac_config_headers="$ac_config_headers config.h"
2970 am__api_version='1.15'
2973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2974 if test -f "$ac_dir/install-sh"; then
2976 ac_install_sh="$ac_aux_dir/install-sh -c"
2978 elif test -f "$ac_dir/install.sh"; then
2980 ac_install_sh="$ac_aux_dir/install.sh -c"
2982 elif test -f "$ac_dir/shtool"; then
2984 ac_install_sh="$ac_aux_dir/shtool install -c"
2988 if test -z "$ac_aux_dir"; then
2989 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2992 # These three variables are undocumented and unsupported,
2993 # and are intended to be withdrawn in a future Autoconf release.
2994 # They can cause serious problems if a builder's source tree is in a directory
2995 # whose full name contains unusual characters.
2996 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2997 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2998 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3001 # Find a good install program. We prefer a C program (faster),
3002 # so one script is as good as another. But avoid the broken or
3003 # incompatible versions:
3004 # SysV /etc/install, /usr/sbin/install
3005 # SunOS /usr/etc/install
3006 # IRIX /sbin/install
3008 # AmigaOS /C/install, which installs bootblocks on floppy discs
3009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3012 # OS/2's system install, which has a completely different semantic
3013 # ./install, which can be erroneously created by make from ./install.sh.
3014 # Reject install programs that cannot install multiple files.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3016 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3017 if test -z "$INSTALL"; then
3018 if ${ac_cv_path_install+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir=.
3026 # Account for people who put trailing slashes in PATH elements.
3027 case $as_dir/ in #((
3028 ./ | .// | /[cC]/* | \
3029 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3030 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3033 # OSF1 and SCO ODT 3.0 have their own names for install.
3034 # Don't use installbsd from OSF since it installs stuff as root
3036 for ac_prog in ginstall scoinst install; do
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3039 if test $ac_prog = install &&
3040 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3041 # AIX install. It has an incompatible calling convention.
3043 elif test $ac_prog = install &&
3044 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045 # program-specific install script used by HP pwplus--don't use.
3048 rm -rf conftest.one conftest.two conftest.dir
3049 echo one > conftest.one
3050 echo two > conftest.two
3052 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3053 test -s conftest.one && test -s conftest.two &&
3054 test -s conftest.dir/conftest.one &&
3055 test -s conftest.dir/conftest.two
3057 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070 rm -rf conftest.one conftest.two conftest.dir
3073 if test "${ac_cv_path_install+set}" = set; then
3074 INSTALL=$ac_cv_path_install
3076 # As a last resort, use the slow shell script. Don't cache a
3077 # value for INSTALL within a source directory, because that will
3078 # break other packages using the cache if that directory is
3079 # removed, or if the value is a relative name.
3080 INSTALL=$ac_install_sh
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3084 $as_echo "$INSTALL" >&6; }
3086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3087 # It thinks the first close brace ends the variable substitution.
3088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3095 $as_echo_n "checking whether build environment is sane... " >&6; }
3096 # Reject unsafe characters in $srcdir or the absolute working directory
3097 # name. Accept space and tab only in the latter.
3101 *[\\\"\#\$\&\'\`$am_lf]*)
3102 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3105 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3106 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3109 # Do 'set' in a subshell so we don't clobber the current shell's
3110 # arguments. Must try -L first in case configure is actually a
3111 # symlink; some systems play weird games with the mod time of symlinks
3112 # (eg FreeBSD returns the mod time of the symlink's containing
3116 for am_try in 1 2; do
3117 echo "timestamp, slept: $am_has_slept" > conftest.file
3118 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3119 if test "$*" = "X"; then
3121 set X `ls -t "$srcdir/configure" conftest.file`
3123 if test "$*" != "X $srcdir/configure conftest.file" \
3124 && test "$*" != "X conftest.file $srcdir/configure"; then
3126 # If neither matched, then we have a broken ls. This can happen
3127 # if, for instance, CONFIG_SHELL is bash and it inherits a
3128 # broken ls alias from the environment. This has actually
3129 # happened. Such a system could not be considered "sane".
3130 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3131 alias in your environment" "$LINENO" 5
3133 if test "$2" = conftest.file || test $am_try -eq 2; then
3140 test "$2" = conftest.file
3146 as_fn_error $? "newly created file is older than distributed files!
3147 Check your system clock" "$LINENO" 5
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3151 # If we didn't sleep, we still need to ensure time stamps of config.status and
3152 # generated files are strictly newer.
3154 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3171 # Expand $ac_aux_dir to an absolute path.
3172 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3174 if test x"${MISSING+set}" != xset; then
3177 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3179 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3182 # Use eval to expand $SHELL
3183 if eval "$MISSING --is-lightweight"; then
3184 am_missing_run="$MISSING "
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3188 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3191 if test x"${install_sh+set}" != xset; then
3194 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3196 install_sh="\${SHELL} $am_aux_dir/install-sh"
3200 # Installed binaries are usually stripped using 'strip' when the user
3201 # run "make install-strip". However 'strip' might not be the right
3202 # tool to use in cross-compilation environments, therefore Automake
3203 # will honor the 'STRIP' environment variable to overrule this program.
3204 if test "$cross_compiling" != no; then
3205 if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3207 set dummy ${ac_tool_prefix}strip; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_STRIP+:} false; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$STRIP"; then
3214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 STRIP=$ac_cv_prog_STRIP
3234 if test -n "$STRIP"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3236 $as_echo "$STRIP" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3244 if test -z "$ac_cv_prog_STRIP"; then
3246 # Extract the first word of "strip", so it can be a program name with args.
3247 set dummy strip; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 if test -n "$ac_ct_STRIP"; then
3254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_ac_ct_STRIP="strip"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3274 if test -n "$ac_ct_STRIP"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3276 $as_echo "$ac_ct_STRIP" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3282 if test "x$ac_ct_STRIP" = x; then
3285 case $cross_compiling:$ac_tool_warned in
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3289 ac_tool_warned=yes ;;
3294 STRIP="$ac_cv_prog_STRIP"
3298 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3301 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3302 if test -z "$MKDIR_P"; then
3303 if ${ac_cv_path_mkdir+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3310 test -z "$as_dir" && as_dir=.
3311 for ac_prog in mkdir gmkdir; do
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3314 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3315 'mkdir (GNU coreutils) '* | \
3316 'mkdir (coreutils) '* | \
3317 'mkdir (fileutils) '4.1*)
3318 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3328 test -d ./--version && rmdir ./--version
3329 if test "${ac_cv_path_mkdir+set}" = set; then
3330 MKDIR_P="$ac_cv_path_mkdir -p"
3332 # As a last resort, use the slow shell script. Don't cache a
3333 # value for MKDIR_P within a source directory, because that will
3334 # break other packages using the cache if that directory is
3335 # removed, or if the value is a relative name.
3336 MKDIR_P="$ac_install_sh -d"
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3340 $as_echo "$MKDIR_P" >&6; }
3342 for ac_prog in gawk mawk nawk awk
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_AWK+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -n "$AWK"; then
3352 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_AWK="$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 if test -n "$AWK"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3374 $as_echo "$AWK" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3381 test -n "$AWK" && break
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3385 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3387 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3388 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3389 $as_echo_n "(cached) " >&6
3391 cat >conftest.make <<\_ACEOF
3394 @echo '@@@%%%=$(MAKE)=@@@%%%'
3396 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3397 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3399 eval ac_cv_prog_make_${ac_make}_set=yes;;
3401 eval ac_cv_prog_make_${ac_make}_set=no;;
3405 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407 $as_echo "yes" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 SET_MAKE="MAKE=${MAKE-make}"
3415 rm -rf .tst 2>/dev/null
3416 mkdir .tst 2>/dev/null
3417 if test -d .tst; then
3422 rmdir .tst 2>/dev/null
3424 # Check whether --enable-silent-rules was given.
3425 if test "${enable_silent_rules+set}" = set; then :
3426 enableval=$enable_silent_rules;
3429 case $enable_silent_rules in # (((
3430 yes) AM_DEFAULT_VERBOSITY=0;;
3431 no) AM_DEFAULT_VERBOSITY=1;;
3432 *) AM_DEFAULT_VERBOSITY=1;;
3434 am_make=${MAKE-make}
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3436 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3437 if ${am_cv_make_support_nested_variables+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 if $as_echo 'TRUE=$(BAR$(V))
3446 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3447 am_cv_make_support_nested_variables=yes
3449 am_cv_make_support_nested_variables=no
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3453 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3454 if test $am_cv_make_support_nested_variables = yes; then
3456 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3458 AM_V=$AM_DEFAULT_VERBOSITY
3459 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3463 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3464 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3465 # is not polluted with repeated "-I."
3466 am__isrc=' -I$(srcdir)'
3467 # test to see if srcdir already configured
3468 if test -f $srcdir/config.status; then
3469 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3473 # test whether we have cygpath
3474 if test -z "$CYGPATH_W"; then
3475 if (cygpath --version) >/dev/null 2>/dev/null; then
3476 CYGPATH_W='cygpath -w'
3483 # Define the identity of the package.
3488 # Some tools Automake needs.
3490 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3493 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3496 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3499 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3502 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3504 # For better backward compatibility. To be removed once Automake 1.9.x
3505 # dies out for good. For more background, see:
3506 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3507 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3508 mkdir_p='$(MKDIR_P)'
3510 # We need awk for the "check" target (and possibly the TAP driver). The
3511 # system "awk" is bad on some platforms.
3512 # Always define AMTAR for backward compatibility. Yes, it's still used
3513 # in the wild :-( We should find a proper way to deprecate it ...
3517 # We'll loop over all known methods to create a tar archive until one works.
3518 _am_tools='gnutar plaintar pax cpio none'
3520 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3521 # There is notably a 21 bits limit for the UID and the GID. In fact,
3522 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3524 am_max_uid=2097151 # 2^21 - 1
3525 am_max_gid=$am_max_uid
3526 # The $UID and $GID variables are not portable, so we need to resort
3527 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3528 # below are definitely unexpected, so allow the users to see them
3529 # (that is, avoid stderr redirection).
3530 am_uid=`id -u || echo unknown`
3531 am_gid=`id -g || echo unknown`
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3533 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3534 if test $am_uid -le $am_max_uid; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3543 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3544 if test $am_gid -le $am_max_gid; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3554 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3556 # Go ahead even if we have the value already cached. We do so because we
3557 # need to set the values for the 'am__tar' and 'am__untar' variables.
3558 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3560 for _am_tool in $_am_tools; do
3563 for _am_tar in tar gnutar gtar; do
3564 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3565 ($_am_tar --version) >&5 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && break
3570 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3571 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3572 am__untar="$_am_tar -xf -"
3575 # Must skip GNU tar: if it does not support --format= it doesn't create
3576 # ustar tarball either.
3577 (tar --version) >/dev/null 2>&1 && continue
3578 am__tar='tar chf - "$$tardir"'
3579 am__tar_='tar chf - "$tardir"'
3580 am__untar='tar xf -'
3583 am__tar='pax -L -x ustar -w "$$tardir"'
3584 am__tar_='pax -L -x ustar -w "$tardir"'
3588 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3589 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3590 am__untar='cpio -i -H ustar -d'
3599 # If the value was cached, stop now. We just wanted to have am__tar
3600 # and am__untar set.
3601 test -n "${am_cv_prog_tar_ustar}" && break
3603 # tar/untar a dummy directory, and stop if the command works.
3606 echo GrepMe > conftest.dir/file
3607 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3608 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3613 if test -s conftest.tar; then
3614 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3615 ($am__untar <conftest.tar) >&5 2>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }
3619 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3620 (cat conftest.dir/file) >&5 2>&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }
3624 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3629 if ${am_cv_prog_tar_ustar+:} false; then :
3630 $as_echo_n "(cached) " >&6
3632 am_cv_prog_tar_ustar=$_am_tool
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3636 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3643 # POSIX will say in a future version that running "rm -f" with no argument
3644 # is OK; and we want to be able to make that assumption in our Makefile
3645 # recipes. So use an aggressive probe to check that the usage we want is
3646 # actually supported "in the wild" to an acceptable degree.
3647 # See automake bug#10828.
3648 # To make any issue more visible, cause the running configure to be aborted
3649 # by default if the 'rm' program in use doesn't match our expectations; the
3650 # user can still override this though.
3651 if rm -f && rm -fr && rm -rf; then : OK; else
3655 Your 'rm' program seems unable to run without file operands specified
3656 on the command line, even when the '-f' option is present. This is contrary
3657 to the behaviour of most rm programs out there, and not conforming with
3658 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3660 Please tell bug-automake@gnu.org about your system, including the value
3661 of your $PATH and any error possibly output before this message. This
3662 can help us improve future automake versions.
3665 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3666 echo 'Configuration will proceed anyway, since you have set the' >&2
3667 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3671 Aborting the configuration process, to ensure you take notice of the issue.
3673 You can download and install GNU coreutils to get an 'rm' implementation
3674 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3676 If you want to complete the configuration process using your problematic
3677 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3678 to "yes", and re-run configure.
3681 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3685 # Check whether --enable-silent-rules was given.
3686 if test "${enable_silent_rules+set}" = set; then :
3687 enableval=$enable_silent_rules;
3690 case $enable_silent_rules in # (((
3691 yes) AM_DEFAULT_VERBOSITY=0;;
3692 no) AM_DEFAULT_VERBOSITY=1;;
3693 *) AM_DEFAULT_VERBOSITY=0;;
3695 am_make=${MAKE-make}
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3697 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3698 if ${am_cv_make_support_nested_variables+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 if $as_echo 'TRUE=$(BAR$(V))
3707 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3708 am_cv_make_support_nested_variables=yes
3710 am_cv_make_support_nested_variables=no
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3714 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3715 if test $am_cv_make_support_nested_variables = yes; then
3717 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3719 AM_V=$AM_DEFAULT_VERBOSITY
3720 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3725 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3726 if ${ac_cv_path_SED+:} false; then :
3727 $as_echo_n "(cached) " >&6
3729 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3730 for ac_i in 1 2 3 4 5 6 7; do
3731 ac_script="$ac_script$as_nl$ac_script"
3733 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3734 { ac_script=; unset ac_script;}
3735 if test -z "$SED"; then
3736 ac_path_SED_found=false
3737 # Loop through the user's path and test for each of PROGNAME-LIST
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in sed gsed; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3746 as_fn_executable_p "$ac_path_SED" || continue
3747 # Check for GNU ac_path_SED and select it if it is found.
3748 # Check for GNU $ac_path_SED
3749 case `"$ac_path_SED" --version 2>&1` in
3751 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3754 $as_echo_n 0123456789 >"conftest.in"
3757 cat "conftest.in" "conftest.in" >"conftest.tmp"
3758 mv "conftest.tmp" "conftest.in"
3759 cp "conftest.in" "conftest.nl"
3760 $as_echo '' >> "conftest.nl"
3761 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3763 as_fn_arith $ac_count + 1 && ac_count=$as_val
3764 if test $ac_count -gt ${ac_path_SED_max-0}; then
3765 # Best one so far, save it but keep looking for a better one
3766 ac_cv_path_SED="$ac_path_SED"
3767 ac_path_SED_max=$ac_count
3769 # 10*(2^10) chars as input seems more than enough
3770 test $ac_count -gt 10 && break
3772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775 $ac_path_SED_found && break 3
3780 if test -z "$ac_cv_path_SED"; then
3781 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3789 $as_echo "$ac_cv_path_SED" >&6; }
3790 SED="$ac_cv_path_SED"
3796 # allow to override gcov location
3798 # Check whether --with-gcov was given.
3799 if test "${with_gcov+set}" = set; then :
3800 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3802 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3807 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3808 # Check whether --enable-code-coverage was given.
3809 if test "${enable_code_coverage+set}" = set; then :
3810 enableval=$enable_code_coverage;
3812 enable_code_coverage=no
3816 if test x$enable_code_coverage = xyes; then
3817 CODE_COVERAGE_ENABLED_TRUE=
3818 CODE_COVERAGE_ENABLED_FALSE='#'
3820 CODE_COVERAGE_ENABLED_TRUE='#'
3821 CODE_COVERAGE_ENABLED_FALSE=
3824 CODE_COVERAGE_ENABLED=$enable_code_coverage
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3827 $as_echo "$enable_code_coverage" >&6; }
3829 if test "$enable_code_coverage" = "yes" ; then :
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_GCOV+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$GCOV"; then
3841 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 GCOV=$ac_cv_prog_GCOV
3861 if test -n "$GCOV"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3863 $as_echo "$GCOV" >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3871 if test -z "$ac_cv_prog_GCOV"; then
3873 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3874 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 if test -n "$ac_ct_GCOV"; then
3881 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3901 if test -n "$ac_ct_GCOV"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3903 $as_echo "$ac_ct_GCOV" >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3909 if test "x$ac_ct_GCOV" = x; then
3912 case $cross_compiling:$ac_tool_warned in
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3921 GCOV="$ac_cv_prog_GCOV"
3924 if test "X$GCOV" = "X:"; then :
3925 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3929 if test "$GCC" = "no" ; then :
3931 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3935 # Extract the first word of "lcov", so it can be a program name with args.
3936 set dummy lcov; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_LCOV+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$LCOV"; then
3943 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_LCOV="lcov"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 LCOV=$ac_cv_prog_LCOV
3963 if test -n "$LCOV"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3965 $as_echo "$LCOV" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 # Extract the first word of "genhtml", so it can be a program name with args.
3973 set dummy genhtml; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_GENHTML+:} false; then :
3977 $as_echo_n "(cached) " >&6
3979 if test -n "$GENHTML"; then
3980 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_GENHTML="genhtml"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 GENHTML=$ac_cv_prog_GENHTML
4000 if test -n "$GENHTML"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
4002 $as_echo "$GENHTML" >&6; }
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4010 if test -z "$LCOV" ; then :
4012 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4016 if test -z "$GENHTML" ; then :
4018 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4022 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4023 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4024 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4025 CODE_COVERAGE_LIBS="-lgcov"
4026 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
4034 CODE_COVERAGE_RULES_CHECK='
4035 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
4036 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
4038 CODE_COVERAGE_RULES_CAPTURE='
4039 $(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)
4040 $(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)
4041 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4042 $(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)
4043 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4045 CODE_COVERAGE_RULES_CLEAN='
4046 clean: code-coverage-clean
4047 distclean: code-coverage-clean
4048 code-coverage-clean:
4049 -$(LCOV) --directory $(top_builddir) -z
4050 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4051 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4056 CODE_COVERAGE_RULES_CHECK='
4057 @echo "Need to reconfigure with --enable-code-coverage"
4059 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4060 CODE_COVERAGE_RULES_CLEAN=''
4064 CODE_COVERAGE_RULES='
4068 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4069 # Multiple directories may be specified, separated by whitespace.
4070 # (Default: $(top_builddir))
4071 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4072 # by lcov for code coverage. (Default:
4073 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4074 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4075 # reports to be created. (Default:
4076 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4077 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4078 # set to 0 to disable it and leave empty to stay with the default.
4080 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4081 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4082 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4083 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4084 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4085 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4086 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4087 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4088 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4089 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4090 # lcov instance. (Default: empty)
4091 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4092 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4093 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4094 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4095 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4096 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4097 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4099 # The generated report will be titled using the $(PACKAGE_NAME) and
4100 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4101 # use the git-version-gen script, available online.
4103 # Optional variables
4104 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4105 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4106 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4107 CODE_COVERAGE_BRANCH_COVERAGE ?=
4108 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4109 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4110 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4111 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4112 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4113 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4114 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4115 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4116 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4117 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4118 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4119 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4120 CODE_COVERAGE_IGNORE_PATTERN ?=
4123 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4125 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4126 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4127 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4128 $(CODE_COVERAGE_OUTPUT_FILE);
4129 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4130 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4131 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4132 $(CODE_COVERAGE_IGNORE_PATTERN);
4133 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4134 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4135 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4136 code_coverage_quiet = $(code_coverage_quiet_$(V))
4137 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4138 code_coverage_quiet_0 = --quiet
4140 # sanitizes the test-name: replaces with underscores: dashes and dots
4141 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4143 # Use recursive makes in order to ignore errors during check
4144 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4146 # Capture code coverage data
4147 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4149 # Hook rule executed before code-coverage-capture, overridable by the user
4150 code-coverage-capture-hook:
4152 '"$CODE_COVERAGE_RULES_CLEAN"'
4154 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4155 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4157 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4164 # Initialize libtool
4165 DEPDIR="${am__leading_dot}deps"
4167 ac_config_commands="$ac_config_commands depfiles"
4170 am_make=${MAKE-make}
4171 cat > confinc << 'END'
4173 @echo this is the am__doit target
4176 # If we don't find an include directive, just comment out the code.
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4178 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4182 # First try GNU make style include.
4183 echo "include confinc" > confmf
4184 # Ignore all kinds of additional output from 'make'.
4185 case `$am_make -s -f confmf 2> /dev/null` in #(
4186 *the\ am__doit\ target*)
4192 # Now try BSD make style include.
4193 if test "$am__include" = "#"; then
4194 echo '.include "confinc"' > confmf
4195 case `$am_make -s -f confmf 2> /dev/null` in #(
4196 *the\ am__doit\ target*)
4197 am__include=.include
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4206 $as_echo "$_am_result" >&6; }
4207 rm -f confinc confmf
4209 # Check whether --enable-dependency-tracking was given.
4210 if test "${enable_dependency_tracking+set}" = set; then :
4211 enableval=$enable_dependency_tracking;
4214 if test "x$enable_dependency_tracking" != xno; then
4215 am_depcomp="$ac_aux_dir/depcomp"
4219 if test "x$enable_dependency_tracking" != xno; then
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4272 if test -z "$ac_cv_prog_CC"; then
4274 # Extract the first word of "gcc", so it can be a program name with args.
4275 set dummy gcc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$ac_ct_CC"; then
4282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_ac_ct_CC="gcc"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4302 if test -n "$ac_ct_CC"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4304 $as_echo "$ac_ct_CC" >&6; }
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4310 if test "x$ac_ct_CC" = x; then
4313 case $cross_compiling:$ac_tool_warned in
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4325 if test -z "$CC"; then
4326 if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}cc; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC="$CC" # Let the user override the test.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_CC="${ac_tool_prefix}cc"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 if test -n "$CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357 $as_echo "$CC" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4366 if test -z "$CC"; then
4367 # Extract the first word of "cc", so it can be a program name with args.
4368 set dummy cc; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_CC+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 if test -n "$CC"; then
4375 ac_cv_prog_CC="$CC" # Let the user override the test.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4386 ac_prog_rejected=yes
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 if test $ac_prog_rejected = yes; then
4398 # We found a bogon in the path, so make sure we never use it.
4399 set dummy $ac_cv_prog_CC
4401 if test $# != 0; then
4402 # We chose a different compiler from the bogus one.
4403 # However, it has the same basename, so the bogon will be chosen
4404 # first if we set CC to just the basename; use the full file name.
4406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4412 if test -n "$CC"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4414 $as_echo "$CC" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4422 if test -z "$CC"; then
4423 if test -n "$ac_tool_prefix"; then
4424 for ac_prog in cl.exe
4426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_CC+:} false; then :
4431 $as_echo_n "(cached) " >&6
4433 if test -n "$CC"; then
4434 ac_cv_prog_CC="$CC" # Let the user override the test.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 if test -n "$CC"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4456 $as_echo "$CC" >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4463 test -n "$CC" && break
4466 if test -z "$CC"; then
4468 for ac_prog in cl.exe
4470 # Extract the first word of "$ac_prog", so it can be a program name with args.
4471 set dummy $ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 if test -n "$ac_ct_CC"; then
4478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_ac_ct_CC="$ac_prog"
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4500 $as_echo "$ac_ct_CC" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4507 test -n "$ac_ct_CC" && break
4510 if test "x$ac_ct_CC" = x; then
4513 case $cross_compiling:$ac_tool_warned in
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528 as_fn_error $? "no acceptable C compiler found in \$PATH
4529 See \`config.log' for more details" "$LINENO" 5; }
4531 # Provide some information about the compiler.
4532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4535 for ac_option in --version -v -V -qversion; do
4536 { { ac_try="$ac_compiler $ac_option >&5"
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4542 $as_echo "$ac_try_echo"; } >&5
4543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4545 if test -s conftest.err; then
4547 ... rest of stderr output deleted ...
4548 10q' conftest.err >conftest.er1
4549 cat conftest.er1 >&5
4551 rm -f conftest.er1 conftest.err
4552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4553 test $ac_status = 0; }
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4567 ac_clean_files_save=$ac_clean_files
4568 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4569 # Try to create an executable without -o first, disregard a.out.
4570 # It will help us diagnose broken compilers, and finding out an intuition
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4573 $as_echo_n "checking whether the C compiler works... " >&6; }
4574 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4576 # The possible output files:
4577 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4580 for ac_file in $ac_files
4583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4584 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4589 if { { ac_try="$ac_link_default"
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_link_default") 2>&5
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; then :
4600 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4601 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4602 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4603 # so that the user can short-circuit this test for compilers unknown to
4605 for ac_file in $ac_files ''
4607 test -f "$ac_file" || continue
4609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4612 # We found the default executable, but exeext='' is most
4616 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4618 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4620 # We set ac_cv_exeext here because the later test for it is not
4621 # safe: cross compilers may not add the suffix if given an `-o'
4622 # argument, so we may need to know it at that point already.
4623 # Even if this section looks crufty: it has the advantage of
4630 test "$ac_cv_exeext" = no && ac_cv_exeext=
4635 if test -z "$ac_file"; then :
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4643 as_fn_error 77 "C compiler cannot create executables
4644 See \`config.log' for more details" "$LINENO" 5; }
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4647 $as_echo "yes" >&6; }
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4650 $as_echo_n "checking for C compiler default output file name... " >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4652 $as_echo "$ac_file" >&6; }
4653 ac_exeext=$ac_cv_exeext
4655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4656 ac_clean_files=$ac_clean_files_save
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4658 $as_echo_n "checking for suffix of executables... " >&6; }
4659 if { { ac_try="$ac_link"
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_link") 2>&5
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }; then :
4670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4674 for ac_file in conftest.exe conftest conftest.*; do
4675 test -f "$ac_file" || continue
4677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4687 See \`config.log' for more details" "$LINENO" 5; }
4689 rm -f conftest conftest$ac_cv_exeext
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4691 $as_echo "$ac_cv_exeext" >&6; }
4693 rm -f conftest.$ac_ext
4694 EXEEXT=$ac_cv_exeext
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4702 FILE *f = fopen ("conftest.out", "w");
4703 return ferror (f) || fclose (f) != 0;
4709 ac_clean_files="$ac_clean_files conftest.out"
4710 # Check that the compiler produces executables we can run. If not, either
4711 # the compiler is broken, or we cross compile.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4713 $as_echo_n "checking whether we are cross compiling... " >&6; }
4714 if test "$cross_compiling" != yes; then
4715 { { ac_try="$ac_link"
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721 $as_echo "$ac_try_echo"; } >&5
4722 (eval "$ac_link") 2>&5
4724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }
4726 if { ac_try='./conftest$ac_cv_exeext'
4727 { { case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 $as_echo "$ac_try_echo"; } >&5
4733 (eval "$ac_try") 2>&5
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }; }; then
4739 if test "$cross_compiling" = maybe; then
4742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error $? "cannot run C compiled programs.
4745 If you meant to cross compile, use \`--host'.
4746 See \`config.log' for more details" "$LINENO" 5; }
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4751 $as_echo "$cross_compiling" >&6; }
4753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4754 ac_clean_files=$ac_clean_files_save
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4756 $as_echo_n "checking for suffix of object files... " >&6; }
4757 if ${ac_cv_objext+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4771 rm -f conftest.o conftest.obj
4772 if { { ac_try="$ac_compile"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4778 $as_echo "$ac_try_echo"; } >&5
4779 (eval "$ac_compile") 2>&5
4781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4782 test $ac_status = 0; }; then :
4783 for ac_file in conftest.o conftest.obj conftest.*; do
4784 test -f "$ac_file" || continue;
4786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4787 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4792 $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4797 as_fn_error $? "cannot compute suffix of object files: cannot compile
4798 See \`config.log' for more details" "$LINENO" 5; }
4800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4803 $as_echo "$ac_cv_objext" >&6; }
4804 OBJEXT=$ac_cv_objext
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4808 if ${ac_cv_c_compiler_gnu+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4825 if ac_fn_c_try_compile "$LINENO"; then :
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4836 if test $ac_compiler_gnu = yes; then
4841 ac_test_CFLAGS=${CFLAGS+set}
4842 ac_save_CFLAGS=$CFLAGS
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4845 if ${ac_cv_prog_cc_g+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 ac_save_c_werror_flag=$ac_c_werror_flag
4849 ac_c_werror_flag=yes
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4863 if ac_fn_c_try_compile "$LINENO"; then :
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4878 if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_c_werror_flag=$ac_save_c_werror_flag
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4894 if ac_fn_c_try_compile "$LINENO"; then :
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ac_c_werror_flag=$ac_save_c_werror_flag
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4905 $as_echo "$ac_cv_prog_cc_g" >&6; }
4906 if test "$ac_test_CFLAGS" = set; then
4907 CFLAGS=$ac_save_CFLAGS
4908 elif test $ac_cv_prog_cc_g = yes; then
4909 if test "$GCC" = yes; then
4915 if test "$GCC" = yes; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4922 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4923 if ${ac_cv_prog_cc_c89+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 ac_cv_prog_cc_c89=no
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4934 struct buf { int x; };
4935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4936 static char *e (p, i)
4942 static char *f (char * (*g) (char **, int), char **p, ...)
4947 s = g (p, va_arg (v,int));
4952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4953 function prototypes and stuff, but not '\xHH' hex character constants.
4954 These don't provoke an error unfortunately, instead are silently treated
4955 as 'x'. The following induces an error, until -std is added to get
4956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4957 array size at least. It's necessary to write '\x00'==0 to get something
4958 that's true only with -std. */
4959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4962 inside strings and character constants. */
4964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4966 int test (int i, double x);
4967 struct s1 {int (*f) (int a);};
4968 struct s2 {int (*f) (double a);};
4969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4983 CC="$ac_save_CC $ac_arg"
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 ac_cv_prog_cc_c89=$ac_arg
4987 rm -f core conftest.err conftest.$ac_objext
4988 test "x$ac_cv_prog_cc_c89" != "xno" && break
4990 rm -f conftest.$ac_ext
4995 case "x$ac_cv_prog_cc_c89" in
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4998 $as_echo "none needed" >&6; } ;;
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5001 $as_echo "unsupported" >&6; } ;;
5003 CC="$CC $ac_cv_prog_cc_c89"
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5007 if test "x$ac_cv_prog_cc_c89" != xno; then :
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5023 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5024 if ${am_cv_prog_cc_c_o+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5038 # Make sure it works both with $CC and with simple cc.
5039 # Following AC_PROG_CC_C_O, we do the test twice because some
5040 # compilers refuse to overwrite an existing .o file with -o,
5041 # though they will create one.
5042 am_cv_prog_cc_c_o=yes
5044 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5045 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } \
5049 && test -f conftest2.$ac_objext; then
5052 am_cv_prog_cc_c_o=no
5056 rm -f core conftest*
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5060 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5061 if test "$am_cv_prog_cc_c_o" != yes; then
5062 # Losing compiler, so override with the script.
5063 # FIXME: It is wrong to rewrite CC.
5064 # But if we don't then we get into trouble of one sort or another.
5065 # A longer-term fix would be to have automake use am__CC in this case,
5066 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5067 CC="$am_aux_dir/compile $CC"
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 depcc="$CC" am_compiler_list=
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5079 $as_echo_n "checking dependency style of $depcc... " >&6; }
5080 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084 # We make a subdir and do the tests there. Otherwise we can end up
5085 # making bogus files that we don't know about and never remove. For
5086 # instance it was reported that on HP-UX the gcc test will end up
5087 # making a dummy file named 'D' -- because '-MD' means "put the output
5091 # Copy depcomp to subdir because otherwise we won't find it if we're
5092 # using a relative directory.
5093 cp "$am_depcomp" conftest.dir
5095 # We will build objects and dependencies in a subdirectory because
5096 # it helps to detect inapplicable dependency modes. For instance
5097 # both Tru64's cc and ICC support -MD to output dependencies as a
5098 # side effect of compilation, but ICC will put the dependencies in
5099 # the current directory while Tru64 will put them in the object
5103 am_cv_CC_dependencies_compiler_type=none
5104 if test "$am_compiler_list" = ""; then
5105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5108 case " $depcc " in #(
5109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5112 for depmode in $am_compiler_list; do
5113 # Setup a source with many dependencies, because some compilers
5114 # like to wrap large dependency lists on column 80 (with \), and
5115 # we should not choose a depcomp mode which is confused by this.
5117 # We need to recreate these files for each test, as the compiler may
5118 # overwrite some of them when testing with obscure command lines.
5119 # This happens at least with the AIX C compiler.
5121 for i in 1 2 3 4 5 6; do
5122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5123 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5124 # Solaris 10 /bin/sh.
5125 echo '/* dummy */' > sub/conftst$i.h
5127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5129 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5130 # mode. It turns out that the SunPro C++ compiler does not properly
5131 # handle '-M -o', and we need to detect this. Also, some Intel
5132 # versions had trouble with output in subdirs.
5133 am__obj=sub/conftest.${OBJEXT-o}
5134 am__minus_obj="-o $am__obj"
5137 # This depmode causes a compiler race in universal mode.
5138 test "$am__universal" = false || continue
5141 # After this tag, mechanisms are not by side-effect, so they'll
5142 # only be used when explicitly requested.
5143 if test "x$enable_dependency_tracking" = xyes; then
5149 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5150 # This compiler won't grok '-c -o', but also, the minuso test has
5151 # not run yet. These depmodes are late enough in the game, and
5152 # so weak that their functioning should not be impacted.
5153 am__obj=conftest.${OBJEXT-o}
5158 if depmode=$depmode \
5159 source=sub/conftest.c object=$am__obj \
5160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5162 >/dev/null 2>conftest.err &&
5163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5167 # icc doesn't choke on unknown options, it will just issue warnings
5168 # or remarks (even with -Werror). So we grep stderr for any message
5169 # that says an option was ignored or not supported.
5170 # When given -MP, icc 7.0 and 7.1 complain thusly:
5171 # icc: Command line warning: ignoring option '-M'; no argument required
5172 # The diagnosis changed in icc 8.0:
5173 # icc: Command line remark: option '-MP' not supported
5174 if (grep 'ignoring option' conftest.err ||
5175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5176 am_cv_CC_dependencies_compiler_type=$depmode
5185 am_cv_CC_dependencies_compiler_type=none
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5194 test "x$enable_dependency_tracking" != xno \
5195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5197 am__fastdepCC_FALSE='#'
5199 am__fastdepCC_TRUE='#'
5200 am__fastdepCC_FALSE=
5205 if test -n "$ac_tool_prefix"; then
5206 for ac_prog in ar lib "link -lib"
5208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_AR+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$AR"; then
5216 ac_cv_prog_AR="$AR" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 if test -n "$AR"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5238 $as_echo "$AR" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 test -n "$AR" && break
5248 if test -z "$AR"; then
5250 for ac_prog in ar lib "link -lib"
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -n "$ac_ct_AR"; then
5260 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_ac_ct_AR="$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5280 if test -n "$ac_ct_AR"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5282 $as_echo "$ac_ct_AR" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 test -n "$ac_ct_AR" && break
5292 if test "x$ac_ct_AR" = x; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5308 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5309 if ${am_cv_ar_interface+:} false; then :
5310 $as_echo_n "(cached) " >&6
5313 ac_cpp='$CPP $CPPFLAGS'
5314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318 am_cv_ar_interface=ar
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int some_variable = 0;
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5326 (eval $am_ar_try) 2>&5
5328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329 test $ac_status = 0; }
5330 if test "$ac_status" -eq 0; then
5331 am_cv_ar_interface=ar
5333 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5335 (eval $am_ar_try) 2>&5
5337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5338 test $ac_status = 0; }
5339 if test "$ac_status" -eq 0; then
5340 am_cv_ar_interface=lib
5342 am_cv_ar_interface=unknown
5345 rm -f conftest.lib libconftest.a
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5357 $as_echo "$am_cv_ar_interface" >&6; }
5359 case $am_cv_ar_interface in
5363 # Microsoft lib, so override with the ar-lib wrapper script.
5364 # FIXME: It is wrong to rewrite AR.
5365 # But if we don't then we get into trouble of one sort or another.
5366 # A longer-term fix would be to have automake use am__AR in this case,
5367 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5369 AR="$am_aux_dir/ar-lib $AR"
5372 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5380 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5385 macro_version='2.4.6'
5386 macro_revision='2.4.6'
5400 ltmain=$ac_aux_dir/ltmain.sh
5402 # Make sure we can run config.sub.
5403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5404 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5407 $as_echo_n "checking build system type... " >&6; }
5408 if ${ac_cv_build+:} false; then :
5409 $as_echo_n "(cached) " >&6
5411 ac_build_alias=$build_alias
5412 test "x$ac_build_alias" = x &&
5413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5414 test "x$ac_build_alias" = x &&
5415 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5421 $as_echo "$ac_cv_build" >&6; }
5422 case $ac_cv_build in
5424 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5427 ac_save_IFS=$IFS; IFS='-'
5433 # Remember, the first character of IFS is used to create $*,
5434 # except with old shells:
5437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5441 $as_echo_n "checking host system type... " >&6; }
5442 if ${ac_cv_host+:} false; then :
5443 $as_echo_n "(cached) " >&6
5445 if test "x$host_alias" = x; then
5446 ac_cv_host=$ac_cv_build
5448 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5454 $as_echo "$ac_cv_host" >&6; }
5457 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5460 ac_save_IFS=$IFS; IFS='-'
5466 # Remember, the first character of IFS is used to create $*,
5467 # except with old shells:
5470 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5473 # Backslashify metacharacters that are still active within
5474 # double-quoted strings.
5475 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5477 # Same as above, but do not quote variable references.
5478 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5480 # Sed substitution to delay expansion of an escaped shell variable in a
5481 # double_quote_subst'ed string.
5482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5484 # Sed substitution to delay expansion of an escaped single quote.
5485 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5487 # Sed substitution to avoid accidental globbing in evaled expressions
5488 no_glob_subst='s/\*/\\\*/g'
5490 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5495 $as_echo_n "checking how to print strings... " >&6; }
5496 # Test print first, because it will be a builtin if present.
5497 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5498 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5500 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5503 # Use this function as a fallback that always works.
5504 func_fallback_echo ()
5506 eval 'cat <<_LTECHO_EOF
5510 ECHO='func_fallback_echo'
5513 # func_echo_all arg...
5514 # Invoke $ECHO with all args, space-separated.
5521 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5522 $as_echo "printf" >&6; } ;;
5523 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5524 $as_echo "print -r" >&6; } ;;
5525 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5526 $as_echo "cat" >&6; } ;;
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5543 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5544 if ${ac_cv_path_SED+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5548 for ac_i in 1 2 3 4 5 6 7; do
5549 ac_script="$ac_script$as_nl$ac_script"
5551 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5552 { ac_script=; unset ac_script;}
5553 if test -z "$SED"; then
5554 ac_path_SED_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in sed gsed; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5564 as_fn_executable_p "$ac_path_SED" || continue
5565 # Check for GNU ac_path_SED and select it if it is found.
5566 # Check for GNU $ac_path_SED
5567 case `"$ac_path_SED" --version 2>&1` in
5569 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5572 $as_echo_n 0123456789 >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 $as_echo '' >> "conftest.nl"
5579 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 as_fn_arith $ac_count + 1 && ac_count=$as_val
5582 if test $ac_count -gt ${ac_path_SED_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_SED="$ac_path_SED"
5585 ac_path_SED_max=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593 $ac_path_SED_found && break 3
5598 if test -z "$ac_cv_path_SED"; then
5599 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5607 $as_echo "$ac_cv_path_SED" >&6; }
5608 SED="$ac_cv_path_SED"
5611 test -z "$SED" && SED=sed
5612 Xsed="$SED -e 1s/^X//"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5626 if ${ac_cv_path_GREP+:} false; then :
5627 $as_echo_n "(cached) " >&6
5629 if test -z "$GREP"; then
5630 ac_path_GREP_found=false
5631 # Loop through the user's path and test for each of PROGNAME-LIST
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5636 test -z "$as_dir" && as_dir=.
5637 for ac_prog in grep ggrep; do
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5640 as_fn_executable_p "$ac_path_GREP" || continue
5641 # Check for GNU ac_path_GREP and select it if it is found.
5642 # Check for GNU $ac_path_GREP
5643 case `"$ac_path_GREP" --version 2>&1` in
5645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5648 $as_echo_n 0123456789 >"conftest.in"
5651 cat "conftest.in" "conftest.in" >"conftest.tmp"
5652 mv "conftest.tmp" "conftest.in"
5653 cp "conftest.in" "conftest.nl"
5654 $as_echo 'GREP' >> "conftest.nl"
5655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657 as_fn_arith $ac_count + 1 && ac_count=$as_val
5658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5659 # Best one so far, save it but keep looking for a better one
5660 ac_cv_path_GREP="$ac_path_GREP"
5661 ac_path_GREP_max=$ac_count
5663 # 10*(2^10) chars as input seems more than enough
5664 test $ac_count -gt 10 && break
5666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669 $ac_path_GREP_found && break 3
5674 if test -z "$ac_cv_path_GREP"; then
5675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5678 ac_cv_path_GREP=$GREP
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5683 $as_echo "$ac_cv_path_GREP" >&6; }
5684 GREP="$ac_cv_path_GREP"
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5688 $as_echo_n "checking for egrep... " >&6; }
5689 if ${ac_cv_path_EGREP+:} false; then :
5690 $as_echo_n "(cached) " >&6
5692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5693 then ac_cv_path_EGREP="$GREP -E"
5695 if test -z "$EGREP"; then
5696 ac_path_EGREP_found=false
5697 # Loop through the user's path and test for each of PROGNAME-LIST
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702 test -z "$as_dir" && as_dir=.
5703 for ac_prog in egrep; do
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5706 as_fn_executable_p "$ac_path_EGREP" || continue
5707 # Check for GNU ac_path_EGREP and select it if it is found.
5708 # Check for GNU $ac_path_EGREP
5709 case `"$ac_path_EGREP" --version 2>&1` in
5711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5714 $as_echo_n 0123456789 >"conftest.in"
5717 cat "conftest.in" "conftest.in" >"conftest.tmp"
5718 mv "conftest.tmp" "conftest.in"
5719 cp "conftest.in" "conftest.nl"
5720 $as_echo 'EGREP' >> "conftest.nl"
5721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723 as_fn_arith $ac_count + 1 && ac_count=$as_val
5724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5725 # Best one so far, save it but keep looking for a better one
5726 ac_cv_path_EGREP="$ac_path_EGREP"
5727 ac_path_EGREP_max=$ac_count
5729 # 10*(2^10) chars as input seems more than enough
5730 test $ac_count -gt 10 && break
5732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 $ac_path_EGREP_found && break 3
5740 if test -z "$ac_cv_path_EGREP"; then
5741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5744 ac_cv_path_EGREP=$EGREP
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5750 $as_echo "$ac_cv_path_EGREP" >&6; }
5751 EGREP="$ac_cv_path_EGREP"
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5755 $as_echo_n "checking for fgrep... " >&6; }
5756 if ${ac_cv_path_FGREP+:} false; then :
5757 $as_echo_n "(cached) " >&6
5759 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5760 then ac_cv_path_FGREP="$GREP -F"
5762 if test -z "$FGREP"; then
5763 ac_path_FGREP_found=false
5764 # Loop through the user's path and test for each of PROGNAME-LIST
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5769 test -z "$as_dir" && as_dir=.
5770 for ac_prog in fgrep; do
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5773 as_fn_executable_p "$ac_path_FGREP" || continue
5774 # Check for GNU ac_path_FGREP and select it if it is found.
5775 # Check for GNU $ac_path_FGREP
5776 case `"$ac_path_FGREP" --version 2>&1` in
5778 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5781 $as_echo_n 0123456789 >"conftest.in"
5784 cat "conftest.in" "conftest.in" >"conftest.tmp"
5785 mv "conftest.tmp" "conftest.in"
5786 cp "conftest.in" "conftest.nl"
5787 $as_echo 'FGREP' >> "conftest.nl"
5788 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5790 as_fn_arith $ac_count + 1 && ac_count=$as_val
5791 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5792 # Best one so far, save it but keep looking for a better one
5793 ac_cv_path_FGREP="$ac_path_FGREP"
5794 ac_path_FGREP_max=$ac_count
5796 # 10*(2^10) chars as input seems more than enough
5797 test $ac_count -gt 10 && break
5799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5802 $ac_path_FGREP_found && break 3
5807 if test -z "$ac_cv_path_FGREP"; then
5808 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5811 ac_cv_path_FGREP=$FGREP
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5817 $as_echo "$ac_cv_path_FGREP" >&6; }
5818 FGREP="$ac_cv_path_FGREP"
5821 test -z "$GREP" && GREP=grep
5841 # Check whether --with-gnu-ld was given.
5842 if test "${with_gnu_ld+set}" = set; then :
5843 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5849 if test yes = "$GCC"; then
5850 # Check if gcc -print-prog-name=ld gives a path.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5852 $as_echo_n "checking for ld used by $CC... " >&6; }
5855 # gcc leaves a trailing carriage return, which upsets mingw
5856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5861 # Accept absolute paths.
5863 re_direlt='/[^/][^/]*/\.\./'
5864 # Canonicalize the pathname of ld
5865 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5866 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5867 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5869 test -z "$LD" && LD=$ac_prog
5872 # If it fails, then pretend we aren't using GCC.
5876 # If it is relative, then search for the first ld in PATH.
5880 elif test yes = "$with_gnu_ld"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5882 $as_echo_n "checking for GNU ld... " >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5885 $as_echo_n "checking for non-GNU ld... " >&6; }
5887 if ${lt_cv_path_LD+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -z "$LD"; then
5891 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5892 for ac_dir in $PATH; do
5894 test -z "$ac_dir" && ac_dir=.
5895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5896 lt_cv_path_LD=$ac_dir/$ac_prog
5897 # Check to see if the program is GNU ld. I'd rather use --version,
5898 # but apparently some variants of GNU ld only accept -v.
5899 # Break only if it was the GNU/non-GNU ld that we prefer.
5900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5901 *GNU* | *'with BFD'*)
5902 test no != "$with_gnu_ld" && break
5905 test yes != "$with_gnu_ld" && break
5912 lt_cv_path_LD=$LD # Let the user override the test with a path.
5917 if test -n "$LD"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5919 $as_echo "$LD" >&6; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5924 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5926 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5927 if ${lt_cv_prog_gnu_ld+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5931 case `$LD -v 2>&1 </dev/null` in
5932 *GNU* | *'with BFD'*)
5933 lt_cv_prog_gnu_ld=yes
5936 lt_cv_prog_gnu_ld=no
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5942 with_gnu_ld=$lt_cv_prog_gnu_ld
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5953 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5954 if ${lt_cv_path_NM+:} false; then :
5955 $as_echo_n "(cached) " >&6
5957 if test -n "$NM"; then
5958 # Let the user override the test.
5961 lt_nm_to_check=${ac_tool_prefix}nm
5962 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5963 lt_nm_to_check="$lt_nm_to_check nm"
5965 for lt_tmp_nm in $lt_nm_to_check; do
5966 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5969 test -z "$ac_dir" && ac_dir=.
5970 tmp_nm=$ac_dir/$lt_tmp_nm
5971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5972 # Check to see if the nm accepts a BSD-compat flag.
5973 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5974 # nm: unknown option "B" ignored
5975 # Tru64's nm complains that /dev/null is an invalid object file
5976 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5978 mingw*) lt_bad_file=conftest.nm/nofile ;;
5979 *) lt_bad_file=/dev/null ;;
5981 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5982 *$lt_bad_file* | *'Invalid file or object type'*)
5983 lt_cv_path_NM="$tmp_nm -B"
5987 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5989 lt_cv_path_NM="$tmp_nm -p"
5993 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5994 continue # so that we can try to find one that supports BSD flags
6003 : ${lt_cv_path_NM=no}
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6007 $as_echo "$lt_cv_path_NM" >&6; }
6008 if test no != "$lt_cv_path_NM"; then
6011 # Didn't find any BSD compatible name lister, look for dumpbin.
6012 if test -n "$DUMPBIN"; then :
6013 # Let the user override the test.
6015 if test -n "$ac_tool_prefix"; then
6016 for ac_prog in dumpbin "link -dump"
6018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_DUMPBIN+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 if test -n "$DUMPBIN"; then
6026 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 DUMPBIN=$ac_cv_prog_DUMPBIN
6046 if test -n "$DUMPBIN"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6048 $as_echo "$DUMPBIN" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6055 test -n "$DUMPBIN" && break
6058 if test -z "$DUMPBIN"; then
6059 ac_ct_DUMPBIN=$DUMPBIN
6060 for ac_prog in dumpbin "link -dump"
6062 # Extract the first word of "$ac_prog", so it can be a program name with args.
6063 set dummy $ac_prog; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6067 $as_echo_n "(cached) " >&6
6069 if test -n "$ac_ct_DUMPBIN"; then
6070 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6090 if test -n "$ac_ct_DUMPBIN"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6092 $as_echo "$ac_ct_DUMPBIN" >&6; }
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6099 test -n "$ac_ct_DUMPBIN" && break
6102 if test "x$ac_ct_DUMPBIN" = x; then
6105 case $cross_compiling:$ac_tool_warned in
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6111 DUMPBIN=$ac_ct_DUMPBIN
6115 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6117 DUMPBIN="$DUMPBIN -symbols -headers"
6125 if test : != "$DUMPBIN"; then
6129 test -z "$NM" && NM=nm
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6137 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6138 if ${lt_cv_nm_interface+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 lt_cv_nm_interface="BSD nm"
6142 echo "int some_variable = 0;" > conftest.$ac_ext
6143 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6144 (eval "$ac_compile" 2>conftest.err)
6145 cat conftest.err >&5
6146 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6147 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6148 cat conftest.err >&5
6149 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6150 cat conftest.out >&5
6151 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6152 lt_cv_nm_interface="MS dumpbin"
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6157 $as_echo "$lt_cv_nm_interface" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6160 $as_echo_n "checking whether ln -s works... " >&6; }
6162 if test "$LN_S" = "ln -s"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6164 $as_echo "yes" >&6; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6167 $as_echo "no, using $LN_S" >&6; }
6170 # find the maximum length of command line arguments
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6172 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6173 if ${lt_cv_sys_max_cmd_len+:} false; then :
6174 $as_echo_n "(cached) " >&6
6181 # On DJGPP, this test can blow up pretty badly due to problems in libc
6182 # (any single argument exceeding 2000 bytes causes a buffer overrun
6183 # during glob expansion). Even if it were fixed, the result of this
6184 # check would be larger than it should be.
6185 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6189 # Under GNU Hurd, this test is not required because there is
6190 # no limit to the length of command line arguments.
6191 # Libtool will interpret -1 as no limit whatsoever
6192 lt_cv_sys_max_cmd_len=-1;
6195 cygwin* | mingw* | cegcc*)
6196 # On Win9x/ME, this test blows up -- it succeeds, but takes
6197 # about 5 minutes as the teststring grows exponentially.
6198 # Worse, since 9x/ME are not pre-emptively multitasking,
6199 # you end up with a "frozen" computer, even though with patience
6200 # the test eventually succeeds (with a max line length of 256k).
6201 # Instead, let's just punt: use the minimum linelength reported by
6202 # all of the supported platforms: 8192 (on NT/2K/XP).
6203 lt_cv_sys_max_cmd_len=8192;
6207 # On MiNT this can take a long time and run out of memory.
6208 lt_cv_sys_max_cmd_len=8192;
6212 # On AmigaOS with pdksh, this test takes hours, literally.
6213 # So we just punt and use a minimum line length of 8192.
6214 lt_cv_sys_max_cmd_len=8192;
6217 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6218 # This has been around since 386BSD, at least. Likely further.
6219 if test -x /sbin/sysctl; then
6220 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6221 elif test -x /usr/sbin/sysctl; then
6222 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6224 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6226 # And add a safety zone
6227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6233 lt_cv_sys_max_cmd_len=196608
6237 # The test takes a long time on OS/2.
6238 lt_cv_sys_max_cmd_len=8192
6242 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6243 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6244 # nice to cause kernel panics so lets avoid the loop below.
6245 # First set a reasonable default.
6246 lt_cv_sys_max_cmd_len=16384
6248 if test -x /sbin/sysconfig; then
6249 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6250 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6255 lt_cv_sys_max_cmd_len=102400
6257 sysv5* | sco5v6* | sysv4.2uw2*)
6258 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6259 if test -n "$kargmax"; then
6260 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6262 lt_cv_sys_max_cmd_len=32768
6266 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6267 if test -n "$lt_cv_sys_max_cmd_len" && \
6268 test undefined != "$lt_cv_sys_max_cmd_len"; then
6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6272 # Make teststring a little bigger before we do anything with it.
6273 # a 1K string should be a reasonable start.
6274 for i in 1 2 3 4 5 6 7 8; do
6275 teststring=$teststring$teststring
6277 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6278 # If test is not a shell built-in, we'll probably end up computing a
6279 # maximum length that is only half of the actual maximum length, but
6281 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6282 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6283 test 17 != "$i" # 1/2 MB should be enough
6286 teststring=$teststring$teststring
6288 # Only check the string length outside the loop.
6289 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6291 # Add a significant safety factor because C++ compilers can tack on
6292 # massive amounts of additional arguments before passing them to the
6293 # linker. It appears as though 1/2 is a usable value.
6294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6301 if test -n "$lt_cv_sys_max_cmd_len"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6303 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6306 $as_echo "none" >&6; }
6308 max_cmd_len=$lt_cv_sys_max_cmd_len
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333 lt_SP2NL='tr \040 \012'
6334 lt_NL2SP='tr \015\012 \040\040'
6336 *) # EBCDIC based system
6337 lt_SP2NL='tr \100 \n'
6338 lt_NL2SP='tr \r\n \100\100'
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6351 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6352 if ${lt_cv_to_host_file_cmd+:} false; then :
6353 $as_echo_n "(cached) " >&6
6358 *-*-mingw* ) # actually msys
6359 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6362 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6364 * ) # otherwise, assume *nix
6365 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6371 *-*-mingw* ) # actually msys
6372 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6375 lt_cv_to_host_file_cmd=func_convert_file_noop
6377 * ) # otherwise, assume *nix
6378 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6382 * ) # unhandled hosts (and "normal" native builds)
6383 lt_cv_to_host_file_cmd=func_convert_file_noop
6389 to_host_file_cmd=$lt_cv_to_host_file_cmd
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6391 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6398 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6399 if ${lt_cv_to_tool_file_cmd+:} false; then :
6400 $as_echo_n "(cached) " >&6
6402 #assume ordinary cross tools, or native build.
6403 lt_cv_to_tool_file_cmd=func_convert_file_noop
6407 *-*-mingw* ) # actually msys
6408 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6416 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6418 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6425 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6426 if ${lt_cv_ld_reload_flag+:} false; then :
6427 $as_echo_n "(cached) " >&6
6429 lt_cv_ld_reload_flag='-r'
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6432 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6433 reload_flag=$lt_cv_ld_reload_flag
6434 case $reload_flag in
6436 *) reload_flag=" $reload_flag" ;;
6438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6440 cygwin* | mingw* | pw32* | cegcc*)
6441 if test yes != "$GCC"; then
6446 if test yes = "$GCC"; then
6447 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if ${ac_cv_prog_OBJDUMP+:} false; then :
6468 $as_echo_n "(cached) " >&6
6470 if test -n "$OBJDUMP"; then
6471 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 OBJDUMP=$ac_cv_prog_OBJDUMP
6491 if test -n "$OBJDUMP"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6493 $as_echo "$OBJDUMP" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6501 if test -z "$ac_cv_prog_OBJDUMP"; then
6502 ac_ct_OBJDUMP=$OBJDUMP
6503 # Extract the first word of "objdump", so it can be a program name with args.
6504 set dummy objdump; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 if test -n "$ac_ct_OBJDUMP"; then
6511 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6531 if test -n "$ac_ct_OBJDUMP"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6533 $as_echo "$ac_ct_OBJDUMP" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6539 if test "x$ac_ct_OBJDUMP" = x; then
6542 case $cross_compiling:$ac_tool_warned in
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6548 OBJDUMP=$ac_ct_OBJDUMP
6551 OBJDUMP="$ac_cv_prog_OBJDUMP"
6554 test -z "$OBJDUMP" && OBJDUMP=objdump
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6565 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6566 if ${lt_cv_deplibs_check_method+:} false; then :
6567 $as_echo_n "(cached) " >&6
6569 lt_cv_file_magic_cmd='$MAGIC_CMD'
6570 lt_cv_file_magic_test_file=
6571 lt_cv_deplibs_check_method='unknown'
6572 # Need to set the preceding variable on all platforms that support
6573 # interlibrary dependencies.
6574 # 'none' -- dependencies not supported.
6575 # 'unknown' -- same as none, but documents that we really don't know.
6576 # 'pass_all' -- all dependencies passed with no checks.
6577 # 'test_compile' -- check by making test program.
6578 # 'file_magic [[regex]]' -- check by looking for files in library path
6579 # that responds to the $file_magic_cmd with a given extended regex.
6580 # If you have 'file' or equivalent on your system and you're not sure
6581 # whether 'pass_all' will *always* work, you probably want this one.
6585 lt_cv_deplibs_check_method=pass_all
6589 lt_cv_deplibs_check_method=pass_all
6593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6594 lt_cv_file_magic_cmd='/usr/bin/file -L'
6595 lt_cv_file_magic_test_file=/shlib/libc.so
6599 # func_win32_libid is a shell function defined in ltmain.sh
6600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6601 lt_cv_file_magic_cmd='func_win32_libid'
6605 # Base MSYS/MinGW do not provide the 'file' command needed by
6606 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6607 # unless we find 'file', for example because we are cross-compiling.
6608 if ( file / ) >/dev/null 2>&1; then
6609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6610 lt_cv_file_magic_cmd='func_win32_libid'
6612 # Keep this pattern in sync with the one in func_win32_libid.
6613 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6614 lt_cv_file_magic_cmd='$OBJDUMP -f'
6619 # use the weaker test based on 'objdump'. See mingw*.
6620 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6621 lt_cv_file_magic_cmd='$OBJDUMP -f'
6624 darwin* | rhapsody*)
6625 lt_cv_deplibs_check_method=pass_all
6628 freebsd* | dragonfly*)
6629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6632 # Not sure whether the presence of OpenBSD here was a mistake.
6633 # Let's accept both of them until this is cleared up.
6634 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6635 lt_cv_file_magic_cmd=/usr/bin/file
6636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6640 lt_cv_deplibs_check_method=pass_all
6645 lt_cv_deplibs_check_method=pass_all
6648 hpux10.20* | hpux11*)
6649 lt_cv_file_magic_cmd=/usr/bin/file
6652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6653 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6656 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]'
6657 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6661 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6667 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6671 irix5* | irix6* | nonstopux*)
6673 *-32|*"-32 ") libmagic=32-bit;;
6674 *-n32|*"-n32 ") libmagic=N32;;
6675 *-64|*"-64 ") libmagic=64-bit;;
6676 *) libmagic=never-match;;
6678 lt_cv_deplibs_check_method=pass_all
6681 # This must be glibc/ELF.
6682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6683 lt_cv_deplibs_check_method=pass_all
6686 netbsd* | netbsdelf*-gnu)
6687 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6696 lt_cv_file_magic_cmd=/usr/bin/file
6697 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6701 lt_cv_deplibs_check_method=pass_all
6705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712 osf3* | osf4* | osf5*)
6713 lt_cv_deplibs_check_method=pass_all
6717 lt_cv_deplibs_check_method=pass_all
6721 lt_cv_deplibs_check_method=pass_all
6724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6725 lt_cv_deplibs_check_method=pass_all
6729 case $host_vendor in
6731 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]'
6732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6735 lt_cv_deplibs_check_method=pass_all
6738 lt_cv_file_magic_cmd='/bin/file'
6739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6742 lt_cv_file_magic_cmd='/bin/file'
6743 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6744 lt_cv_file_magic_test_file=/lib/libc.so
6747 lt_cv_deplibs_check_method=pass_all
6750 lt_cv_deplibs_check_method=pass_all
6756 lt_cv_deplibs_check_method=pass_all
6759 lt_cv_deplibs_check_method=pass_all
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6765 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6769 if test "$build" = "$host"; then
6772 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6775 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6781 file_magic_cmd=$lt_cv_file_magic_cmd
6782 deplibs_check_method=$lt_cv_deplibs_check_method
6783 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_DLLTOOL+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$DLLTOOL"; then
6815 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 DLLTOOL=$ac_cv_prog_DLLTOOL
6835 if test -n "$DLLTOOL"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6837 $as_echo "$DLLTOOL" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6845 if test -z "$ac_cv_prog_DLLTOOL"; then
6846 ac_ct_DLLTOOL=$DLLTOOL
6847 # Extract the first word of "dlltool", so it can be a program name with args.
6848 set dummy dlltool; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 if test -n "$ac_ct_DLLTOOL"; then
6855 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6875 if test -n "$ac_ct_DLLTOOL"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6877 $as_echo "$ac_ct_DLLTOOL" >&6; }
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6883 if test "x$ac_ct_DLLTOOL" = x; then
6886 case $cross_compiling:$ac_tool_warned in
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6892 DLLTOOL=$ac_ct_DLLTOOL
6895 DLLTOOL="$ac_cv_prog_DLLTOOL"
6898 test -z "$DLLTOOL" && DLLTOOL=dlltool
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6910 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6911 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6912 $as_echo_n "(cached) " >&6
6914 lt_cv_sharedlib_from_linklib_cmd='unknown'
6917 cygwin* | mingw* | pw32* | cegcc*)
6918 # two different shell functions defined in ltmain.sh;
6919 # decide which one to use based on capabilities of $DLLTOOL
6920 case `$DLLTOOL --help 2>&1` in
6921 *--identify-strict*)
6922 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6925 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6930 # fallback: assume linklib IS sharedlib
6931 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6937 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6938 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6939 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6947 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_AR+:} false; then :
6955 $as_echo_n "(cached) " >&6
6957 if test -n "$AR"; then
6958 ac_cv_prog_AR="$AR" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 if test -n "$AR"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6980 $as_echo "$AR" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6987 test -n "$AR" && break
6990 if test -z "$AR"; then
6994 # Extract the first word of "$ac_prog", so it can be a program name with args.
6995 set dummy $ac_prog; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6999 $as_echo_n "(cached) " >&6
7001 if test -n "$ac_ct_AR"; then
7002 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_ac_ct_AR="$ac_prog"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7022 if test -n "$ac_ct_AR"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7024 $as_echo "$ac_ct_AR" >&6; }
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7031 test -n "$ac_ct_AR" && break
7034 if test "x$ac_ct_AR" = x; then
7037 case $cross_compiling:$ac_tool_warned in
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7041 ac_tool_warned=yes ;;
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7061 $as_echo_n "checking for archiver @FILE support... " >&6; }
7062 if ${lt_cv_ar_at_file+:} false; then :
7063 $as_echo_n "(cached) " >&6
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7077 if ac_fn_c_try_compile "$LINENO"; then :
7078 echo conftest.$ac_objext > conftest.lst
7079 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7081 (eval $lt_ar_try) 2>&5
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }
7085 if test 0 -eq "$ac_status"; then
7086 # Ensure the archiver fails upon bogus file names.
7087 rm -f conftest.$ac_objext libconftest.a
7088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7089 (eval $lt_ar_try) 2>&5
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; }
7093 if test 0 -ne "$ac_status"; then
7097 rm -f conftest.* libconftest.a
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7104 $as_echo "$lt_cv_ar_at_file" >&6; }
7106 if test no = "$lt_cv_ar_at_file"; then
7109 archiver_list_spec=$lt_cv_ar_at_file
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}strip; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_STRIP+:} false; then :
7124 $as_echo_n "(cached) " >&6
7126 if test -n "$STRIP"; then
7127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 STRIP=$ac_cv_prog_STRIP
7147 if test -n "$STRIP"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7149 $as_echo "$STRIP" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7157 if test -z "$ac_cv_prog_STRIP"; then
7159 # Extract the first word of "strip", so it can be a program name with args.
7160 set dummy strip; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7164 $as_echo_n "(cached) " >&6
7166 if test -n "$ac_ct_STRIP"; then
7167 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_STRIP="strip"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7187 if test -n "$ac_ct_STRIP"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7189 $as_echo "$ac_ct_STRIP" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7195 if test "x$ac_ct_STRIP" = x; then
7198 case $cross_compiling:$ac_tool_warned in
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7207 STRIP="$ac_cv_prog_STRIP"
7210 test -z "$STRIP" && STRIP=:
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_RANLIB+:} false; then :
7223 $as_echo_n "(cached) " >&6
7225 if test -n "$RANLIB"; then
7226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 RANLIB=$ac_cv_prog_RANLIB
7246 if test -n "$RANLIB"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7248 $as_echo "$RANLIB" >&6; }
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7256 if test -z "$ac_cv_prog_RANLIB"; then
7257 ac_ct_RANLIB=$RANLIB
7258 # Extract the first word of "ranlib", so it can be a program name with args.
7259 set dummy ranlib; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -n "$ac_ct_RANLIB"; then
7266 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_ac_ct_RANLIB="ranlib"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7286 if test -n "$ac_ct_RANLIB"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7288 $as_echo "$ac_ct_RANLIB" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7294 if test "x$ac_ct_RANLIB" = x; then
7297 case $cross_compiling:$ac_tool_warned in
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7303 RANLIB=$ac_ct_RANLIB
7306 RANLIB="$ac_cv_prog_RANLIB"
7309 test -z "$RANLIB" && RANLIB=:
7316 # Determine commands to create old-style static archives.
7317 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7318 old_postinstall_cmds='chmod 644 $oldlib'
7319 old_postuninstall_cmds=
7321 if test -n "$RANLIB"; then
7324 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7327 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7330 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7335 lock_old_archive_extraction=yes ;;
7337 lock_old_archive_extraction=no ;;
7378 # If no C compiler was specified, use CC.
7381 # If no C compiler flags were specified, use CFLAGS.
7382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7384 # Allow CC to be a program name with arguments.
7388 # Check for command to grab the raw symbol name followed by C symbol from nm.
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7390 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7391 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7392 $as_echo_n "(cached) " >&6
7395 # These are sane defaults that work on at least a few old systems.
7396 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7398 # Character class describing NM global symbol codes.
7399 symcode='[BCDEGRST]'
7401 # Regexp to match symbols that can be accessed directly from C.
7402 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7404 # Define system-specific variables.
7409 cygwin* | mingw* | pw32* | cegcc*)
7410 symcode='[ABCDGISTW]'
7413 if test ia64 = "$host_cpu"; then
7414 symcode='[ABCDEGRST]'
7418 symcode='[BCDEGRST]'
7421 symcode='[BCDEGQRST]'
7432 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7440 # If we're using GNU nm, then use its standard symbol codes.
7441 case `$NM -V 2>&1` in
7442 *GNU* | *'with BFD'*)
7443 symcode='[ABCDGIRSTW]' ;;
7446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7447 # Gets list of data symbols to import.
7448 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7449 # Adjust the below global symbol transforms to fixup imported variables.
7450 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7451 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7452 lt_c_name_lib_hook="\
7453 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7454 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7456 # Disable hooks by default.
7457 lt_cv_sys_global_symbol_to_import=
7463 # Transform an extracted symbol line into a proper C declaration.
7464 # Some systems (esp. on ia64) link data and code symbols differently,
7465 # so use this general approach.
7466 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7468 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7469 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7471 # Transform an extracted symbol line into symbol name and symbol address
7472 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7474 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7475 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7477 # Transform an extracted symbol line into symbol name with lib prefix and
7479 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7480 $lt_c_name_lib_hook\
7481 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7482 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7483 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7485 # Handle CRLF in mingw tool chain
7489 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7493 # Try without a prefix underscore, then with it.
7494 for ac_symprfx in "" "_"; do
7496 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7497 symxfrm="\\1 $ac_symprfx\\2 \\2"
7499 # Write the raw and C identifiers.
7500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7501 # Fake it for dumpbin and say T for any non-static function,
7502 # D for any global variable and I for any imported variable.
7503 # Also find C++ and __fastcall symbols from MSVC++,
7504 # which start with @ or ?.
7505 lt_cv_sys_global_symbol_pipe="$AWK '"\
7506 " {last_section=section; section=\$ 3};"\
7507 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7508 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7509 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7510 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7511 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7512 " \$ 0!~/External *\|/{next};"\
7513 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7514 " {if(hide[section]) next};"\
7515 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7516 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7517 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7518 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7519 " ' prfx=^$ac_symprfx"
7521 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7523 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7525 # Check to see that the pipe works correctly.
7529 cat > conftest.$ac_ext <<_LT_EOF
7534 void nm_test_func(void);
7535 void nm_test_func(void){}
7539 int main(){nm_test_var='a';nm_test_func();return(0);}
7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7543 (eval $ac_compile) 2>&5
7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; }; then
7547 # Now try to grab the symbols.
7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7550 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; } && test -s "$nlist"; then
7554 # Try sorting and uniquifying the output.
7555 if sort "$nlist" | uniq > "$nlist"T; then
7556 mv -f "$nlist"T "$nlist"
7561 # Make sure that we snagged all the symbols we need.
7562 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7563 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7564 cat <<_LT_EOF > conftest.$ac_ext
7565 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7566 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7567 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7568 relocations are performed -- see ld's documentation on pseudo-relocs. */
7569 # define LT_DLSYM_CONST
7570 #elif defined __osf__
7571 /* This system does not cope well with relocations in const data. */
7572 # define LT_DLSYM_CONST
7574 # define LT_DLSYM_CONST const
7582 # Now generate the symbol file.
7583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7585 cat <<_LT_EOF >> conftest.$ac_ext
7587 /* The mapping between symbol names and symbols. */
7588 LT_DLSYM_CONST struct {
7592 lt__PROGRAM__LTX_preloaded_symbols[] =
7594 { "@PROGRAM@", (void *) 0 },
7596 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7597 cat <<\_LT_EOF >> conftest.$ac_ext
7601 /* This works around a problem in FreeBSD linker */
7602 #ifdef FREEBSD_WORKAROUND
7603 static const void *lt_preloaded_setup() {
7604 return lt__PROGRAM__LTX_preloaded_symbols;
7612 # Now try linking the two files.
7613 mv conftest.$ac_objext conftstm.$ac_objext
7614 lt_globsym_save_LIBS=$LIBS
7615 lt_globsym_save_CFLAGS=$CFLAGS
7616 LIBS=conftstm.$ac_objext
7617 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7619 (eval $ac_link) 2>&5
7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7625 LIBS=$lt_globsym_save_LIBS
7626 CFLAGS=$lt_globsym_save_CFLAGS
7628 echo "cannot find nm_test_func in $nlist" >&5
7631 echo "cannot find nm_test_var in $nlist" >&5
7634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7637 echo "$progname: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7640 rm -rf conftest* conftst*
7642 # Do not use the global_symbol_pipe unless it works.
7643 if test yes = "$pipe_works"; then
7646 lt_cv_sys_global_symbol_pipe=
7652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7653 lt_cv_sys_global_symbol_to_cdecl=
7655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7657 $as_echo "failed" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7660 $as_echo "ok" >&6; }
7663 # Response file support.
7664 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7665 nm_file_list_spec='@'
7666 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7667 nm_file_list_spec='@'
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7707 $as_echo_n "checking for sysroot... " >&6; }
7709 # Check whether --with-sysroot was given.
7710 if test "${with_sysroot+set}" = set; then :
7711 withval=$with_sysroot;
7718 case $with_sysroot in #(
7720 if test yes = "$GCC"; then
7721 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7725 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7731 $as_echo "$with_sysroot" >&6; }
7732 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7737 $as_echo "${lt_sysroot:-no}" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7744 $as_echo_n "checking for a working dd... " >&6; }
7745 if ${ac_cv_path_lt_DD+:} false; then :
7746 $as_echo_n "(cached) " >&6
7748 printf 0123456789abcdef0123456789abcdef >conftest.i
7749 cat conftest.i conftest.i >conftest2.i
7751 if test -z "$lt_DD"; then
7752 ac_path_lt_DD_found=false
7753 # Loop through the user's path and test for each of PROGNAME-LIST
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_prog in dd; do
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7762 as_fn_executable_p "$ac_path_lt_DD" || continue
7763 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7764 cmp -s conftest.i conftest.out \
7765 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7767 $ac_path_lt_DD_found && break 3
7772 if test -z "$ac_cv_path_lt_DD"; then
7776 ac_cv_path_lt_DD=$lt_DD
7779 rm -f conftest.i conftest2.i conftest.out
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7782 $as_echo "$ac_cv_path_lt_DD" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7786 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7787 if ${lt_cv_truncate_bin+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 printf 0123456789abcdef0123456789abcdef >conftest.i
7791 cat conftest.i conftest.i >conftest2.i
7793 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7794 cmp -s conftest.i conftest.out \
7795 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7797 rm -f conftest.i conftest2.i conftest.out
7798 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7801 $as_echo "$lt_cv_truncate_bin" >&6; }
7809 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7812 for cc_temp in $*""; do
7814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7820 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7823 # Check whether --enable-libtool-lock was given.
7824 if test "${enable_libtool_lock+set}" = set; then :
7825 enableval=$enable_libtool_lock;
7828 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7830 # Some flags need to be propagated to the compiler or linker for good
7834 # Find out what ABI is being produced by ac_compile, and set mode
7835 # options accordingly.
7836 echo 'int i;' > conftest.$ac_ext
7837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7838 (eval $ac_compile) 2>&5
7840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841 test $ac_status = 0; }; then
7842 case `/usr/bin/file conftest.$ac_objext` in
7854 # Find out what ABI is being produced by ac_compile, and set linker
7855 # options accordingly.
7856 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858 (eval $ac_compile) 2>&5
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7862 if test yes = "$lt_cv_prog_gnu_ld"; then
7863 case `/usr/bin/file conftest.$ac_objext` in
7865 LD="${LD-ld} -melf32bsmip"
7868 LD="${LD-ld} -melf32bmipn32"
7871 LD="${LD-ld} -melf64bmip"
7875 case `/usr/bin/file conftest.$ac_objext` in
7892 # Find out what ABI is being produced by ac_compile, and set linker
7893 # options accordingly.
7894 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7896 (eval $ac_compile) 2>&5
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }; then
7901 case `/usr/bin/file conftest.$ac_objext` in
7909 case `/usr/bin/file conftest.$ac_objext` in
7911 emul="${emul}btsmip"
7914 emul="${emul}ltsmip"
7917 case `/usr/bin/file conftest.$ac_objext` in
7922 LD="${LD-ld} -m $emul"
7927 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7928 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7929 # Find out what ABI is being produced by ac_compile, and set linker
7930 # options accordingly. Note that the listed cases only cover the
7931 # situations where additional linker options are needed (such as when
7932 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7933 # vice versa); the common cases where no linker options are needed do
7934 # not appear in the list.
7935 echo 'int i;' > conftest.$ac_ext
7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937 (eval $ac_compile) 2>&5
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940 test $ac_status = 0; }; then
7941 case `/usr/bin/file conftest.o` in
7944 x86_64-*kfreebsd*-gnu)
7945 LD="${LD-ld} -m elf_i386_fbsd"
7948 case `/usr/bin/file conftest.o` in
7950 LD="${LD-ld} -m elf32_x86_64"
7953 LD="${LD-ld} -m elf_i386"
7957 powerpc64le-*linux*)
7958 LD="${LD-ld} -m elf32lppclinux"
7961 LD="${LD-ld} -m elf32ppclinux"
7964 LD="${LD-ld} -m elf_s390"
7967 LD="${LD-ld} -m elf32_sparc"
7973 x86_64-*kfreebsd*-gnu)
7974 LD="${LD-ld} -m elf_x86_64_fbsd"
7977 LD="${LD-ld} -m elf_x86_64"
7980 LD="${LD-ld} -m elf64lppc"
7983 LD="${LD-ld} -m elf64ppc"
7985 s390*-*linux*|s390*-*tpf*)
7986 LD="${LD-ld} -m elf64_s390"
7989 LD="${LD-ld} -m elf64_sparc"
7999 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8001 CFLAGS="$CFLAGS -belf"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8003 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8004 if ${lt_cv_cc_needs_belf+:} false; then :
8005 $as_echo_n "(cached) " >&6
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8024 if ac_fn_c_try_link "$LINENO"; then :
8025 lt_cv_cc_needs_belf=yes
8027 lt_cv_cc_needs_belf=no
8029 rm -f core conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8039 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8040 if test yes != "$lt_cv_cc_needs_belf"; then
8041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8046 # Find out what ABI is being produced by ac_compile, and set linker
8047 # options accordingly.
8048 echo 'int i;' > conftest.$ac_ext
8049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8050 (eval $ac_compile) 2>&5
8052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053 test $ac_status = 0; }; then
8054 case `/usr/bin/file conftest.o` in
8056 case $lt_cv_prog_gnu_ld in
8059 i?86-*-solaris*|x86_64-*-solaris*)
8060 LD="${LD-ld} -m elf_x86_64"
8063 LD="${LD-ld} -m elf64_sparc"
8066 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8067 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8072 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8084 need_locks=$enable_libtool_lock
8086 if test -n "$ac_tool_prefix"; then
8087 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8088 set dummy ${ac_tool_prefix}mt; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 if test -n "$MANIFEST_TOOL"; then
8095 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8115 if test -n "$MANIFEST_TOOL"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8117 $as_echo "$MANIFEST_TOOL" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8125 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8126 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8127 # Extract the first word of "mt", so it can be a program name with args.
8128 set dummy mt; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 if test -n "$ac_ct_MANIFEST_TOOL"; then
8135 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8155 if test -n "$ac_ct_MANIFEST_TOOL"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8157 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8163 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8166 case $cross_compiling:$ac_tool_warned in
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8170 ac_tool_warned=yes ;;
8172 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8175 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8178 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8180 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8181 if ${lt_cv_path_mainfest_tool+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 lt_cv_path_mainfest_tool=no
8185 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8186 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8187 cat conftest.err >&5
8188 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8189 lt_cv_path_mainfest_tool=yes
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8194 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8195 if test yes != "$lt_cv_path_mainfest_tool"; then
8205 rhapsody* | darwin*)
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8212 $as_echo_n "(cached) " >&6
8214 if test -n "$DSYMUTIL"; then
8215 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8235 if test -n "$DSYMUTIL"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8237 $as_echo "$DSYMUTIL" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 if test -z "$ac_cv_prog_DSYMUTIL"; then
8246 ac_ct_DSYMUTIL=$DSYMUTIL
8247 # Extract the first word of "dsymutil", so it can be a program name with args.
8248 set dummy dsymutil; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$ac_ct_DSYMUTIL"; then
8255 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8275 if test -n "$ac_ct_DSYMUTIL"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8277 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8283 if test "x$ac_ct_DSYMUTIL" = x; then
8286 case $cross_compiling:$ac_tool_warned in
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8292 DSYMUTIL=$ac_ct_DSYMUTIL
8295 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8298 if test -n "$ac_tool_prefix"; then
8299 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_prog_NMEDIT+:} false; then :
8304 $as_echo_n "(cached) " >&6
8306 if test -n "$NMEDIT"; then
8307 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 NMEDIT=$ac_cv_prog_NMEDIT
8327 if test -n "$NMEDIT"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8329 $as_echo "$NMEDIT" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8337 if test -z "$ac_cv_prog_NMEDIT"; then
8338 ac_ct_NMEDIT=$NMEDIT
8339 # Extract the first word of "nmedit", so it can be a program name with args.
8340 set dummy nmedit; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$ac_ct_NMEDIT"; then
8347 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8367 if test -n "$ac_ct_NMEDIT"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8369 $as_echo "$ac_ct_NMEDIT" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8375 if test "x$ac_ct_NMEDIT" = x; then
8378 case $cross_compiling:$ac_tool_warned in
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8384 NMEDIT=$ac_ct_NMEDIT
8387 NMEDIT="$ac_cv_prog_NMEDIT"
8390 if test -n "$ac_tool_prefix"; then
8391 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_LIPO+:} false; then :
8396 $as_echo_n "(cached) " >&6
8398 if test -n "$LIPO"; then
8399 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 LIPO=$ac_cv_prog_LIPO
8419 if test -n "$LIPO"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8421 $as_echo "$LIPO" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 if test -z "$ac_cv_prog_LIPO"; then
8431 # Extract the first word of "lipo", so it can be a program name with args.
8432 set dummy lipo; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 if test -n "$ac_ct_LIPO"; then
8439 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_ac_ct_LIPO="lipo"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8459 if test -n "$ac_ct_LIPO"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8461 $as_echo "$ac_ct_LIPO" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8467 if test "x$ac_ct_LIPO" = x; then
8470 case $cross_compiling:$ac_tool_warned in
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8479 LIPO="$ac_cv_prog_LIPO"
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}otool; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_OTOOL+:} false; then :
8488 $as_echo_n "(cached) " >&6
8490 if test -n "$OTOOL"; then
8491 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 OTOOL=$ac_cv_prog_OTOOL
8511 if test -n "$OTOOL"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8513 $as_echo "$OTOOL" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8521 if test -z "$ac_cv_prog_OTOOL"; then
8523 # Extract the first word of "otool", so it can be a program name with args.
8524 set dummy otool; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8528 $as_echo_n "(cached) " >&6
8530 if test -n "$ac_ct_OTOOL"; then
8531 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_ac_ct_OTOOL="otool"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8551 if test -n "$ac_ct_OTOOL"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8553 $as_echo "$ac_ct_OTOOL" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8559 if test "x$ac_ct_OTOOL" = x; then
8562 case $cross_compiling:$ac_tool_warned in
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8571 OTOOL="$ac_cv_prog_OTOOL"
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_OTOOL64+:} false; then :
8580 $as_echo_n "(cached) " >&6
8582 if test -n "$OTOOL64"; then
8583 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 OTOOL64=$ac_cv_prog_OTOOL64
8603 if test -n "$OTOOL64"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8605 $as_echo "$OTOOL64" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8613 if test -z "$ac_cv_prog_OTOOL64"; then
8614 ac_ct_OTOOL64=$OTOOL64
8615 # Extract the first word of "otool64", so it can be a program name with args.
8616 set dummy otool64; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8620 $as_echo_n "(cached) " >&6
8622 if test -n "$ac_ct_OTOOL64"; then
8623 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632 ac_cv_prog_ac_ct_OTOOL64="otool64"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8643 if test -n "$ac_ct_OTOOL64"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8645 $as_echo "$ac_ct_OTOOL64" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8651 if test "x$ac_ct_OTOOL64" = x; then
8654 case $cross_compiling:$ac_tool_warned in
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8660 OTOOL64=$ac_ct_OTOOL64
8663 OTOOL64="$ac_cv_prog_OTOOL64"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8693 $as_echo_n "checking for -single_module linker flag... " >&6; }
8694 if ${lt_cv_apple_cc_single_mod+:} false; then :
8695 $as_echo_n "(cached) " >&6
8697 lt_cv_apple_cc_single_mod=no
8698 if test -z "$LT_MULTI_MODULE"; then
8699 # By default we will add the -single_module flag. You can override
8700 # by either setting the environment variable LT_MULTI_MODULE
8701 # non-empty at configure time, or by adding -multi_module to the
8703 rm -rf libconftest.dylib*
8704 echo "int foo(void){return 1;}" > conftest.c
8705 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8706 -dynamiclib -Wl,-single_module conftest.c" >&5
8707 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8708 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8710 # If there is a non-empty error log, and "single_module"
8711 # appears in it, assume the flag caused a linker warning
8712 if test -s conftest.err && $GREP single_module conftest.err; then
8713 cat conftest.err >&5
8714 # Otherwise, if the output was created with a 0 exit code from
8715 # the compiler, it worked.
8716 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8717 lt_cv_apple_cc_single_mod=yes
8719 cat conftest.err >&5
8721 rm -rf libconftest.dylib*
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8726 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8729 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8730 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8731 $as_echo_n "(cached) " >&6
8733 lt_cv_ld_exported_symbols_list=no
8734 save_LDFLAGS=$LDFLAGS
8735 echo "_main" > conftest.sym
8736 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8748 if ac_fn_c_try_link "$LINENO"; then :
8749 lt_cv_ld_exported_symbols_list=yes
8751 lt_cv_ld_exported_symbols_list=no
8753 rm -f core conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 LDFLAGS=$save_LDFLAGS
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8759 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8762 $as_echo_n "checking for -force_load linker flag... " >&6; }
8763 if ${lt_cv_ld_force_load+:} false; then :
8764 $as_echo_n "(cached) " >&6
8766 lt_cv_ld_force_load=no
8767 cat > conftest.c << _LT_EOF
8768 int forced_loaded() { return 2;}
8770 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8771 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8772 echo "$AR cru libconftest.a conftest.o" >&5
8773 $AR cru libconftest.a conftest.o 2>&5
8774 echo "$RANLIB libconftest.a" >&5
8775 $RANLIB libconftest.a 2>&5
8776 cat > conftest.c << _LT_EOF
8777 int main() { return 0;}
8779 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8780 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8782 if test -s conftest.err && $GREP force_load conftest.err; then
8783 cat conftest.err >&5
8784 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8785 lt_cv_ld_force_load=yes
8787 cat conftest.err >&5
8789 rm -f conftest.err libconftest.a conftest conftest.c
8790 rm -rf conftest.dSYM
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8794 $as_echo "$lt_cv_ld_force_load" >&6; }
8796 rhapsody* | darwin1.[012])
8797 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8799 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8800 darwin*) # darwin 5.x on
8801 # if running on 10.5 or later, the deployment target defaults
8802 # to the OS version, if on x86, and 10.4, the deployment
8803 # target defaults to 10.4. Don't you love it?
8804 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8805 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8806 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8808 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8810 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8814 if test yes = "$lt_cv_apple_cc_single_mod"; then
8815 _lt_dar_single_mod='$single_module'
8817 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8818 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8820 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8822 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8823 _lt_dsymutil='~$DSYMUTIL $lib || :'
8830 # func_munge_path_list VARIABLE PATH
8831 # -----------------------------------
8832 # VARIABLE is name of variable containing _space_ separated list of
8833 # directories to be munged by the contents of PATH, which is string
8836 # string "DIR[ DIR]" will be prepended to VARIABLE
8838 # string "DIR[ DIR]" will be appended to VARIABLE
8839 # "DIRP[:DIRP]::[DIRA:]DIRA"
8840 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8841 # "DIRA[ DIRA]" will be appended to VARIABLE
8843 # VARIABLE will be replaced by "DIR[ DIR]"
8844 func_munge_path_list ()
8850 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8853 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8856 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8857 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8860 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8871 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8872 # On Suns, sometimes $CPP names a directory.
8873 if test -n "$CPP" && test -d "$CPP"; then
8876 if test -z "$CPP"; then
8877 if ${ac_cv_prog_CPP+:} false; then :
8878 $as_echo_n "(cached) " >&6
8880 # Double quotes because CPP needs to be expanded
8881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8884 for ac_c_preproc_warn_flag in '' yes
8886 # Use a header file that comes with gcc, so configuring glibc
8887 # with a fresh cross-compiler works.
8888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889 # <limits.h> exists even on freestanding compilers.
8890 # On the NeXT, cc -E runs the code through the compiler's parser,
8891 # not just through cpp. "Syntax error" is here to catch this case.
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8895 # include <limits.h>
8897 # include <assert.h>
8901 if ac_fn_c_try_cpp "$LINENO"; then :
8904 # Broken: fails on valid input.
8907 rm -f conftest.err conftest.i conftest.$ac_ext
8909 # OK, works on sane cases. Now check whether nonexistent headers
8910 # can be detected and how.
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913 #include <ac_nonexistent.h>
8915 if ac_fn_c_try_cpp "$LINENO"; then :
8916 # Broken: success on invalid input.
8919 # Passes both tests.
8923 rm -f conftest.err conftest.i conftest.$ac_ext
8926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8927 rm -f conftest.i conftest.err conftest.$ac_ext
8928 if $ac_preproc_ok; then :
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8941 $as_echo "$CPP" >&6; }
8943 for ac_c_preproc_warn_flag in '' yes
8945 # Use a header file that comes with gcc, so configuring glibc
8946 # with a fresh cross-compiler works.
8947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8948 # <limits.h> exists even on freestanding compilers.
8949 # On the NeXT, cc -E runs the code through the compiler's parser,
8950 # not just through cpp. "Syntax error" is here to catch this case.
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8954 # include <limits.h>
8956 # include <assert.h>
8960 if ac_fn_c_try_cpp "$LINENO"; then :
8963 # Broken: fails on valid input.
8966 rm -f conftest.err conftest.i conftest.$ac_ext
8968 # OK, works on sane cases. Now check whether nonexistent headers
8969 # can be detected and how.
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <ac_nonexistent.h>
8974 if ac_fn_c_try_cpp "$LINENO"; then :
8975 # Broken: success on invalid input.
8978 # Passes both tests.
8982 rm -f conftest.err conftest.i conftest.$ac_ext
8985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8986 rm -f conftest.i conftest.err conftest.$ac_ext
8987 if $ac_preproc_ok; then :
8990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8992 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8993 See \`config.log' for more details" "$LINENO" 5; }
8997 ac_cpp='$CPP $CPPFLAGS'
8998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9004 $as_echo_n "checking for ANSI C header files... " >&6; }
9005 if ${ac_cv_header_stdc+:} false; then :
9006 $as_echo_n "(cached) " >&6
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 ac_cv_header_stdc=yes
9026 ac_cv_header_stdc=no
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 if test $ac_cv_header_stdc = yes; then
9031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 $EGREP "memchr" >/dev/null 2>&1; then :
9041 ac_cv_header_stdc=no
9047 if test $ac_cv_header_stdc = yes; then
9048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055 $EGREP "free" >/dev/null 2>&1; then :
9058 ac_cv_header_stdc=no
9064 if test $ac_cv_header_stdc = yes; then
9065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9066 if test "$cross_compiling" = yes; then :
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9073 #if ((' ' & 0x0FF) == 0x020)
9074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9077 # define ISLOWER(c) \
9078 (('a' <= (c) && (c) <= 'i') \
9079 || ('j' <= (c) && (c) <= 'r') \
9080 || ('s' <= (c) && (c) <= 'z'))
9081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9089 for (i = 0; i < 256; i++)
9090 if (XOR (islower (i), ISLOWER (i))
9091 || toupper (i) != TOUPPER (i))
9096 if ac_fn_c_try_run "$LINENO"; then :
9099 ac_cv_header_stdc=no
9101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9102 conftest.$ac_objext conftest.beam conftest.$ac_ext
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9108 $as_echo "$ac_cv_header_stdc" >&6; }
9109 if test $ac_cv_header_stdc = yes; then
9111 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9115 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9117 inttypes.h stdint.h unistd.h
9119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9123 cat >>confdefs.h <<_ACEOF
9124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9132 for ac_header in dlfcn.h
9134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9137 cat >>confdefs.h <<_ACEOF
9138 #define HAVE_DLFCN_H 1
9150 # Check whether --enable-static was given.
9151 if test "${enable_static+set}" = set; then :
9152 enableval=$enable_static; p=${PACKAGE-default}
9154 yes) enable_static=yes ;;
9155 no) enable_static=no ;;
9158 # Look at the argument we got. We use all the common list separators.
9159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9160 for pkg in $enableval; do
9162 if test "X$pkg" = "X$p"; then
9188 # Check whether --enable-shared was given.
9189 if test "${enable_shared+set}" = set; then :
9190 enableval=$enable_shared; p=${PACKAGE-default}
9192 yes) enable_shared=yes ;;
9193 no) enable_shared=no ;;
9196 # Look at the argument we got. We use all the common list separators.
9197 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9198 for pkg in $enableval; do
9200 if test "X$pkg" = "X$p"; then
9221 # Check whether --with-pic was given.
9222 if test "${with_pic+set}" = set; then :
9223 withval=$with_pic; lt_p=${PACKAGE-default}
9225 yes|no) pic_mode=$withval ;;
9228 # Look at the argument we got. We use all the common list separators.
9229 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9230 for lt_pkg in $withval; do
9232 if test "X$lt_pkg" = "X$lt_p"; then
9250 # Check whether --enable-fast-install was given.
9251 if test "${enable_fast_install+set}" = set; then :
9252 enableval=$enable_fast_install; p=${PACKAGE-default}
9254 yes) enable_fast_install=yes ;;
9255 no) enable_fast_install=no ;;
9257 enable_fast_install=no
9258 # Look at the argument we got. We use all the common list separators.
9259 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9260 for pkg in $enableval; do
9262 if test "X$pkg" = "X$p"; then
9263 enable_fast_install=yes
9270 enable_fast_install=yes
9280 shared_archive_member_spec=
9281 case $host,$enable_shared in
9282 power*-*-aix[5-9]*,yes)
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9284 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9286 # Check whether --with-aix-soname was given.
9287 if test "${with_aix_soname+set}" = set; then :
9288 withval=$with_aix_soname; case $withval in
9292 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9295 lt_cv_with_aix_soname=$with_aix_soname
9297 if ${lt_cv_with_aix_soname+:} false; then :
9298 $as_echo_n "(cached) " >&6
9300 lt_cv_with_aix_soname=aix
9303 with_aix_soname=$lt_cv_with_aix_soname
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9307 $as_echo "$with_aix_soname" >&6; }
9308 if test aix != "$with_aix_soname"; then
9309 # For the AIX way of multilib, we name the shared archive member
9310 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9311 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9312 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9313 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9314 if test 64 = "${OBJECT_MODE-32}"; then
9315 shared_archive_member_spec=shr_64
9317 shared_archive_member_spec=shr
9335 # This can be used to rebuild libtool when needed
9336 LIBTOOL_DEPS=$ltmain
9338 # Always use our own libtool.
9339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9370 test -z "$LN_S" && LN_S="ln -s"
9385 if test -n "${ZSH_VERSION+set}"; then
9386 setopt NO_GLOB_SUBST
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9390 $as_echo_n "checking for objdir... " >&6; }
9391 if ${lt_cv_objdir+:} false; then :
9392 $as_echo_n "(cached) " >&6
9394 rm -f .libs 2>/dev/null
9395 mkdir .libs 2>/dev/null
9396 if test -d .libs; then
9399 # MS-DOS does not allow filenames that begin with a dot.
9402 rmdir .libs 2>/dev/null
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9405 $as_echo "$lt_cv_objdir" >&6; }
9406 objdir=$lt_cv_objdir
9412 cat >>confdefs.h <<_ACEOF
9413 #define LT_OBJDIR "$lt_cv_objdir/"
9421 # AIX sometimes has problems with the GCC collect2 program. For some
9422 # reason, if we set the COLLECT_NAMES environment variable, the problems
9423 # vanish in a puff of smoke.
9424 if test set != "${COLLECT_NAMES+set}"; then
9426 export COLLECT_NAMES
9433 can_build_shared=yes
9435 # All known linkers require a '.a' archive for static linking (except MSVC,
9436 # which needs '.lib').
9439 with_gnu_ld=$lt_cv_prog_gnu_ld
9444 # Set sane defaults for various variables
9445 test -z "$CC" && CC=cc
9446 test -z "$LTCC" && LTCC=$CC
9447 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9448 test -z "$LD" && LD=ld
9449 test -z "$ac_objext" && ac_objext=o
9451 func_cc_basename $compiler
9452 cc_basename=$func_cc_basename_result
9455 # Only perform the check for file, if the check method requires it
9456 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9457 case $deplibs_check_method in
9459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9461 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9463 $as_echo_n "(cached) " >&6
9467 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9470 lt_save_MAGIC_CMD=$MAGIC_CMD
9471 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9473 for ac_dir in $ac_dummy; do
9475 test -z "$ac_dir" && ac_dir=.
9476 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9477 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9478 if test -n "$file_magic_test_file"; then
9479 case $deplibs_check_method in
9481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9482 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9484 $EGREP "$file_magic_regex" > /dev/null; then
9489 *** Warning: the command libtool uses to detect shared libraries,
9490 *** $file_magic_cmd, produces output that libtool cannot recognize.
9491 *** The result is that libtool may fail to recognize shared libraries
9492 *** as such. This will affect the creation of libtool libraries that
9493 *** depend on shared libraries, but programs linked with such libtool
9494 *** libraries will work regardless of this problem. Nevertheless, you
9495 *** may want to report the problem to your system manager and/or to
9496 *** bug-libtool@gnu.org
9506 MAGIC_CMD=$lt_save_MAGIC_CMD
9511 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9512 if test -n "$MAGIC_CMD"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9514 $as_echo "$MAGIC_CMD" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9524 if test -z "$lt_cv_path_MAGIC_CMD"; then
9525 if test -n "$ac_tool_prefix"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9527 $as_echo_n "checking for file... " >&6; }
9528 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9529 $as_echo_n "(cached) " >&6
9533 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9536 lt_save_MAGIC_CMD=$MAGIC_CMD
9537 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9539 for ac_dir in $ac_dummy; do
9541 test -z "$ac_dir" && ac_dir=.
9542 if test -f "$ac_dir/file"; then
9543 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9544 if test -n "$file_magic_test_file"; then
9545 case $deplibs_check_method in
9547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9548 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9550 $EGREP "$file_magic_regex" > /dev/null; then
9555 *** Warning: the command libtool uses to detect shared libraries,
9556 *** $file_magic_cmd, produces output that libtool cannot recognize.
9557 *** The result is that libtool may fail to recognize shared libraries
9558 *** as such. This will affect the creation of libtool libraries that
9559 *** depend on shared libraries, but programs linked with such libtool
9560 *** libraries will work regardless of this problem. Nevertheless, you
9561 *** may want to report the problem to your system manager and/or to
9562 *** bug-libtool@gnu.org
9572 MAGIC_CMD=$lt_save_MAGIC_CMD
9577 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9578 if test -n "$MAGIC_CMD"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9580 $as_echo "$MAGIC_CMD" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9596 # Use C for the default configuration in the libtool script
9600 ac_cpp='$CPP $CPPFLAGS'
9601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9606 # Source file extension for C test sources.
9609 # Object file extension for compiled C test sources.
9613 # Code to be used in simple compile tests
9614 lt_simple_compile_test_code="int some_variable = 0;"
9616 # Code to be used in simple link tests
9617 lt_simple_link_test_code='int main(){return(0);}'
9625 # If no C compiler was specified, use CC.
9628 # If no C compiler flags were specified, use CFLAGS.
9629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9631 # Allow CC to be a program name with arguments.
9634 # Save the default compiler, since it gets overwritten when the other
9635 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9636 compiler_DEFAULT=$CC
9638 # save warnings/boilerplate of simple test code
9639 ac_outfile=conftest.$ac_objext
9640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9642 _lt_compiler_boilerplate=`cat conftest.err`
9645 ac_outfile=conftest.$ac_objext
9646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9648 _lt_linker_boilerplate=`cat conftest.err`
9653 ## There is no encapsulation within the following macros, do not change
9654 ## the running order or otherwise move them around unless you know exactly
9655 ## what you are doing...
9656 if test -n "$compiler"; then
9658 lt_prog_compiler_no_builtin_flag=
9660 if test yes = "$GCC"; then
9661 case $cc_basename in
9663 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9665 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9669 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9670 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9671 $as_echo_n "(cached) " >&6
9673 lt_cv_prog_compiler_rtti_exceptions=no
9674 ac_outfile=conftest.$ac_objext
9675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9676 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9677 # Insert the option either (1) after the last *FLAGS variable, or
9678 # (2) before a word containing "conftest.", or (3) at the end.
9679 # Note that $ac_compile itself does not contain backslashes and begins
9680 # with a dollar sign (not a hyphen), so the echo should work correctly.
9681 # The option is referenced via a variable to avoid confusing sed.
9682 lt_compile=`echo "$ac_compile" | $SED \
9683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9685 -e 's:$: $lt_compiler_flag:'`
9686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9687 (eval "$lt_compile" 2>conftest.err)
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 if (exit $ac_status) && test -s "$ac_outfile"; then
9692 # The compiler can only warn and ignore the option if not recognized
9693 # So say no if there are warnings other than the usual output.
9694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9697 lt_cv_prog_compiler_rtti_exceptions=yes
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9704 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9706 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9707 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9719 lt_prog_compiler_wl=
9720 lt_prog_compiler_pic=
9721 lt_prog_compiler_static=
9724 if test yes = "$GCC"; then
9725 lt_prog_compiler_wl='-Wl,'
9726 lt_prog_compiler_static='-static'
9730 # All AIX code is PIC.
9731 if test ia64 = "$host_cpu"; then
9732 # AIX 5 now supports IA64 processor
9733 lt_prog_compiler_static='-Bstatic'
9735 lt_prog_compiler_pic='-fPIC'
9741 # see comment about AmigaOS4 .so support
9742 lt_prog_compiler_pic='-fPIC'
9745 # FIXME: we need at least 68020 code to build shared libraries, but
9746 # adding the '-m68020' flag to GCC prevents building anything better,
9748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9753 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9754 # PIC is the default for these OSes.
9757 mingw* | cygwin* | pw32* | os2* | cegcc*)
9758 # This hack is so that the source file can tell whether it is being
9759 # built for inclusion in a dll (and should export symbols for example).
9760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9761 # (--disable-auto-import) libraries
9762 lt_prog_compiler_pic='-DDLL_EXPORT'
9765 lt_prog_compiler_static='$wl-static'
9770 darwin* | rhapsody*)
9771 # PIC is the default on this platform
9772 # Common symbols not allowed in MH_DYLIB files
9773 lt_prog_compiler_pic='-fno-common'
9777 # PIC is the default for Haiku.
9778 # The "-static" flag exists, but is broken.
9779 lt_prog_compiler_static=
9783 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9784 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9785 # sets the default TLS model and affects inlining.
9791 lt_prog_compiler_pic='-fPIC'
9797 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9798 # Instead, we relocate shared libraries at runtime.
9802 # Just because we use GCC doesn't mean we suddenly get shared libraries
9803 # on systems that don't support them.
9804 lt_prog_compiler_can_build_shared=no
9809 # QNX uses GNU C++, but need to define -shared option too, otherwise
9811 lt_prog_compiler_pic='-fPIC -shared'
9815 if test -d /usr/nec; then
9816 lt_prog_compiler_pic=-Kconform_pic
9821 lt_prog_compiler_pic='-fPIC'
9825 case $cc_basename in
9826 nvcc*) # Cuda Compiler Driver 2.2
9827 lt_prog_compiler_wl='-Xlinker '
9828 if test -n "$lt_prog_compiler_pic"; then
9829 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9834 # PORTME Check for flag to pass linker flags through the system compiler.
9837 lt_prog_compiler_wl='-Wl,'
9838 if test ia64 = "$host_cpu"; then
9839 # AIX 5 now supports IA64 processor
9840 lt_prog_compiler_static='-Bstatic'
9842 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9846 darwin* | rhapsody*)
9847 # PIC is the default on this platform
9848 # Common symbols not allowed in MH_DYLIB files
9849 lt_prog_compiler_pic='-fno-common'
9850 case $cc_basename in
9852 # NAG Fortran compiler
9853 lt_prog_compiler_wl='-Wl,-Wl,,'
9854 lt_prog_compiler_pic='-PIC'
9855 lt_prog_compiler_static='-Bstatic'
9860 mingw* | cygwin* | pw32* | os2* | cegcc*)
9861 # This hack is so that the source file can tell whether it is being
9862 # built for inclusion in a dll (and should export symbols for example).
9863 lt_prog_compiler_pic='-DDLL_EXPORT'
9866 lt_prog_compiler_static='$wl-static'
9871 hpux9* | hpux10* | hpux11*)
9872 lt_prog_compiler_wl='-Wl,'
9873 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9880 lt_prog_compiler_pic='+Z'
9883 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9884 lt_prog_compiler_static='$wl-a ${wl}archive'
9887 irix5* | irix6* | nonstopux*)
9888 lt_prog_compiler_wl='-Wl,'
9889 # PIC (with -KPIC) is the default.
9890 lt_prog_compiler_static='-non_shared'
9893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9894 case $cc_basename in
9895 # old Intel for x86_64, which still supported -KPIC.
9897 lt_prog_compiler_wl='-Wl,'
9898 lt_prog_compiler_pic='-KPIC'
9899 lt_prog_compiler_static='-static'
9901 # icc used to be incompatible with GCC.
9902 # ICC 10 doesn't accept -KPIC any more.
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-fPIC'
9906 lt_prog_compiler_static='-static'
9908 # Lahey Fortran 8.1.
9910 lt_prog_compiler_wl='-Wl,'
9911 lt_prog_compiler_pic='--shared'
9912 lt_prog_compiler_static='--static'
9915 # NAG Fortran compiler
9916 lt_prog_compiler_wl='-Wl,-Wl,,'
9917 lt_prog_compiler_pic='-PIC'
9918 lt_prog_compiler_static='-Bstatic'
9921 # Fabrice Bellard et al's Tiny C Compiler
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='-fPIC'
9924 lt_prog_compiler_static='-static'
9926 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9927 # Portland Group compilers (*not* the Pentium gcc compiler,
9928 # which looks to be a dead project)
9929 lt_prog_compiler_wl='-Wl,'
9930 lt_prog_compiler_pic='-fpic'
9931 lt_prog_compiler_static='-Bstatic'
9934 lt_prog_compiler_wl='-Wl,'
9935 # All Alpha code is PIC.
9936 lt_prog_compiler_static='-non_shared'
9938 xl* | bgxl* | bgf* | mpixl*)
9939 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9940 lt_prog_compiler_wl='-Wl,'
9941 lt_prog_compiler_pic='-qpic'
9942 lt_prog_compiler_static='-qstaticlink'
9945 case `$CC -V 2>&1 | sed 5q` in
9946 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9947 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9948 lt_prog_compiler_pic='-KPIC'
9949 lt_prog_compiler_static='-Bstatic'
9950 lt_prog_compiler_wl=''
9952 *Sun\ F* | *Sun*Fortran*)
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 lt_prog_compiler_wl='-Qoption ld '
9959 lt_prog_compiler_pic='-KPIC'
9960 lt_prog_compiler_static='-Bstatic'
9961 lt_prog_compiler_wl='-Wl,'
9963 *Intel*\ [CF]*Compiler*)
9964 lt_prog_compiler_wl='-Wl,'
9965 lt_prog_compiler_pic='-fPIC'
9966 lt_prog_compiler_static='-static'
9969 lt_prog_compiler_wl='-Wl,'
9970 lt_prog_compiler_pic='-fpic'
9971 lt_prog_compiler_static='-Bstatic'
9979 lt_prog_compiler_pic='-KPIC'
9980 lt_prog_compiler_static='-Bstatic'
9984 # QNX uses GNU C++, but need to define -shared option too, otherwise
9986 lt_prog_compiler_pic='-fPIC -shared'
9989 osf3* | osf4* | osf5*)
9990 lt_prog_compiler_wl='-Wl,'
9991 # All OSF/1 code is PIC.
9992 lt_prog_compiler_static='-non_shared'
9996 lt_prog_compiler_static='-non_shared'
10000 lt_prog_compiler_pic='-KPIC'
10001 lt_prog_compiler_static='-Bstatic'
10002 case $cc_basename in
10003 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10004 lt_prog_compiler_wl='-Qoption ld ';;
10006 lt_prog_compiler_wl='-Wl,';;
10011 lt_prog_compiler_wl='-Qoption ld '
10012 lt_prog_compiler_pic='-PIC'
10013 lt_prog_compiler_static='-Bstatic'
10016 sysv4 | sysv4.2uw2* | sysv4.3*)
10017 lt_prog_compiler_wl='-Wl,'
10018 lt_prog_compiler_pic='-KPIC'
10019 lt_prog_compiler_static='-Bstatic'
10023 if test -d /usr/nec; then
10024 lt_prog_compiler_pic='-Kconform_pic'
10025 lt_prog_compiler_static='-Bstatic'
10029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10030 lt_prog_compiler_wl='-Wl,'
10031 lt_prog_compiler_pic='-KPIC'
10032 lt_prog_compiler_static='-Bstatic'
10036 lt_prog_compiler_wl='-Wl,'
10037 lt_prog_compiler_can_build_shared=no
10041 lt_prog_compiler_pic='-pic'
10042 lt_prog_compiler_static='-Bstatic'
10046 lt_prog_compiler_can_build_shared=no
10052 # For platforms that do not support PIC, -DPIC is meaningless:
10054 lt_prog_compiler_pic=
10057 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10063 if ${lt_cv_prog_compiler_pic+:} false; then :
10064 $as_echo_n "(cached) " >&6
10066 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10069 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10070 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10073 # Check to make sure the PIC flag actually works.
10075 if test -n "$lt_prog_compiler_pic"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10077 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10078 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10079 $as_echo_n "(cached) " >&6
10081 lt_cv_prog_compiler_pic_works=no
10082 ac_outfile=conftest.$ac_objext
10083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10084 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10085 # Insert the option either (1) after the last *FLAGS variable, or
10086 # (2) before a word containing "conftest.", or (3) at the end.
10087 # Note that $ac_compile itself does not contain backslashes and begins
10088 # with a dollar sign (not a hyphen), so the echo should work correctly.
10089 # The option is referenced via a variable to avoid confusing sed.
10090 lt_compile=`echo "$ac_compile" | $SED \
10091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10093 -e 's:$: $lt_compiler_flag:'`
10094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10095 (eval "$lt_compile" 2>conftest.err)
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 if (exit $ac_status) && test -s "$ac_outfile"; then
10100 # The compiler can only warn and ignore the option if not recognized
10101 # So say no if there are warnings other than the usual output.
10102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10104 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10105 lt_cv_prog_compiler_pic_works=yes
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10112 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10114 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10115 case $lt_prog_compiler_pic in
10117 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10120 lt_prog_compiler_pic=
10121 lt_prog_compiler_can_build_shared=no
10137 # Check to make sure the static flag actually works.
10139 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10141 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10142 if ${lt_cv_prog_compiler_static_works+:} false; then :
10143 $as_echo_n "(cached) " >&6
10145 lt_cv_prog_compiler_static_works=no
10146 save_LDFLAGS=$LDFLAGS
10147 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10148 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10149 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10150 # The linker can only warn and ignore the option if not recognized
10151 # So say no if there are warnings
10152 if test -s conftest.err; then
10153 # Append any errors to the config.log.
10154 cat conftest.err 1>&5
10155 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10157 if diff conftest.exp conftest.er2 >/dev/null; then
10158 lt_cv_prog_compiler_static_works=yes
10161 lt_cv_prog_compiler_static_works=yes
10165 LDFLAGS=$save_LDFLAGS
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10169 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10171 if test yes = "$lt_cv_prog_compiler_static_works"; then
10174 lt_prog_compiler_static=
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10185 if ${lt_cv_prog_compiler_c_o+:} false; then :
10186 $as_echo_n "(cached) " >&6
10188 lt_cv_prog_compiler_c_o=no
10189 $RM -r conftest 2>/dev/null
10193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195 lt_compiler_flag="-o out/conftest2.$ac_objext"
10196 # Insert the option either (1) after the last *FLAGS variable, or
10197 # (2) before a word containing "conftest.", or (3) at the end.
10198 # Note that $ac_compile itself does not contain backslashes and begins
10199 # with a dollar sign (not a hyphen), so the echo should work correctly.
10200 lt_compile=`echo "$ac_compile" | $SED \
10201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10203 -e 's:$: $lt_compiler_flag:'`
10204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10205 (eval "$lt_compile" 2>out/conftest.err)
10207 cat out/conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10211 # The compiler can only warn and ignore the option if not recognized
10212 # So say no if there are warnings
10213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10216 lt_cv_prog_compiler_c_o=yes
10221 # SGI C++ compiler will create directory out/ii_files/ for
10222 # template instantiation
10223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10224 $RM out/* && rmdir out
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10231 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10239 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10240 if ${lt_cv_prog_compiler_c_o+:} false; then :
10241 $as_echo_n "(cached) " >&6
10243 lt_cv_prog_compiler_c_o=no
10244 $RM -r conftest 2>/dev/null
10248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10250 lt_compiler_flag="-o out/conftest2.$ac_objext"
10251 # Insert the option either (1) after the last *FLAGS variable, or
10252 # (2) before a word containing "conftest.", or (3) at the end.
10253 # Note that $ac_compile itself does not contain backslashes and begins
10254 # with a dollar sign (not a hyphen), so the echo should work correctly.
10255 lt_compile=`echo "$ac_compile" | $SED \
10256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10258 -e 's:$: $lt_compiler_flag:'`
10259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10260 (eval "$lt_compile" 2>out/conftest.err)
10262 cat out/conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10266 # The compiler can only warn and ignore the option if not recognized
10267 # So say no if there are warnings
10268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10271 lt_cv_prog_compiler_c_o=yes
10276 # SGI C++ compiler will create directory out/ii_files/ for
10277 # template instantiation
10278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10279 $RM out/* && rmdir out
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10286 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10291 hard_links=nottested
10292 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10293 # do not overwrite the value of need_locks provided by the user
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10295 $as_echo_n "checking if we can lock with hard links... " >&6; }
10298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10300 ln conftest.a conftest.b 2>&5 || hard_links=no
10301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10303 $as_echo "$hard_links" >&6; }
10304 if test no = "$hard_links"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10306 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10322 allow_undefined_flag=
10323 always_export_symbols=no
10325 archive_expsym_cmds=
10326 compiler_needs_object=no
10327 enable_shared_with_static_runtimes=no
10328 export_dynamic_flag_spec=
10329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10330 hardcode_automatic=no
10332 hardcode_direct_absolute=no
10333 hardcode_libdir_flag_spec=
10334 hardcode_libdir_separator=
10335 hardcode_minus_L=no
10336 hardcode_shlibpath_var=unsupported
10338 link_all_deplibs=unknown
10340 module_expsym_cmds=
10341 old_archive_from_new_cmds=
10342 old_archive_from_expsyms_cmds=
10343 thread_safe_flag_spec=
10344 whole_archive_flag_spec=
10345 # include_expsyms should be a list of space-separated symbols to be *always*
10346 # included in the symbol list
10348 # exclude_expsyms can be an extended regexp of symbols to exclude
10349 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10350 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10351 # as well as any symbol that contains 'd'.
10352 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10353 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10354 # platforms (ab)use it in PIC code, but their linkers get confused if
10355 # the symbol is explicitly referenced. Since portable code cannot
10356 # rely on this symbol name, it's probably fine to never include it in
10357 # preloaded symbol tables.
10358 # Exclude shared library initialization/finalization symbols.
10359 extract_expsyms_cmds=
10362 cygwin* | mingw* | pw32* | cegcc*)
10363 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10364 # When not using gcc, we currently assume that we are using
10365 # Microsoft Visual C++.
10366 if test yes != "$GCC"; then
10371 # we just hope/assume this is gcc and not c89 (= MSVC++)
10374 openbsd* | bitrig*)
10377 linux* | k*bsd*-gnu | gnu*)
10378 link_all_deplibs=no
10384 # On some targets, GNU ld is compatible enough with the native linker
10385 # that we're better off using the native interface for both.
10386 lt_use_gnu_ld_interface=no
10387 if test yes = "$with_gnu_ld"; then
10390 # The AIX port of GNU ld has always aspired to compatibility
10391 # with the native linker. However, as the warning in the GNU ld
10392 # block says, versions before 2.19.5* couldn't really create working
10393 # shared libraries, regardless of the interface used.
10394 case `$LD -v 2>&1` in
10395 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10396 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10397 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10399 lt_use_gnu_ld_interface=yes
10404 lt_use_gnu_ld_interface=yes
10409 if test yes = "$lt_use_gnu_ld_interface"; then
10410 # If archive_cmds runs LD, not CC, wlarc should be empty
10413 # Set some defaults for GNU ld with shared library support. These
10414 # are reset later if shared libraries are not supported. Putting them
10415 # here allows them to be overridden if necessary.
10416 runpath_var=LD_RUN_PATH
10417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10418 export_dynamic_flag_spec='$wl--export-dynamic'
10419 # ancient GNU ld didn't support --whole-archive et. al.
10420 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10421 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10423 whole_archive_flag_spec=
10425 supports_anon_versioning=no
10426 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10427 *GNU\ gold*) supports_anon_versioning=yes ;;
10428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10431 *\ 2.11.*) ;; # other 2.11 versions
10432 *) supports_anon_versioning=yes ;;
10435 # See if GNU ld supports shared libraries.
10438 # On AIX/PPC, the GNU linker is very broken
10439 if test ia64 != "$host_cpu"; then
10443 *** Warning: the GNU linker, at least up to release 2.19, is reported
10444 *** to be unable to reliably create shared libraries on AIX.
10445 *** Therefore, libtool is disabling shared libraries support. If you
10446 *** really care for shared libraries, you may want to install binutils
10447 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10448 *** You will then need to restart the configuration process.
10457 # see comment about AmigaOS4 .so support
10458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10459 archive_expsym_cmds=''
10462 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)'
10463 hardcode_libdir_flag_spec='-L$libdir'
10464 hardcode_minus_L=yes
10470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10471 allow_undefined_flag=unsupported
10472 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10473 # support --undefined. This deserves some investigation. FIXME
10474 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10480 cygwin* | mingw* | pw32* | cegcc*)
10481 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10482 # as there is no search path for DLLs.
10483 hardcode_libdir_flag_spec='-L$libdir'
10484 export_dynamic_flag_spec='$wl--export-all-symbols'
10485 allow_undefined_flag=unsupported
10486 always_export_symbols=no
10487 enable_shared_with_static_runtimes=yes
10488 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'
10489 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10491 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10493 # If the export-symbols file already is a .def file, use it as
10494 # is; otherwise, prepend EXPORTS...
10495 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10496 cp $export_symbols $output_objdir/$soname.def;
10498 echo EXPORTS > $output_objdir/$soname.def;
10499 cat $export_symbols >> $output_objdir/$soname.def;
10501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509 link_all_deplibs=yes
10513 hardcode_libdir_flag_spec='-L$libdir'
10514 hardcode_minus_L=yes
10515 allow_undefined_flag=unsupported
10517 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10518 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10519 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10520 $ECHO EXPORTS >> $output_objdir/$libname.def~
10521 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10522 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10523 emximp -o $lib $output_objdir/$libname.def'
10524 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10525 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10526 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10527 $ECHO EXPORTS >> $output_objdir/$libname.def~
10528 prefix_cmds="$SED"~
10529 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10530 prefix_cmds="$prefix_cmds -e 1d";
10532 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10533 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10534 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10535 emximp -o $lib $output_objdir/$libname.def'
10536 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10537 enable_shared_with_static_runtimes=yes
10542 hardcode_shlibpath_var=no
10543 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10544 export_dynamic_flag_spec='$wl-E'
10545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10546 # Instead, shared libraries are loaded at an image base (0x10000000 by
10547 # default) and relocated if they conflict, which is a slow very memory
10548 # consuming and fragmenting process. To avoid this, we pick a random,
10549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10550 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10552 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'
10555 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10557 if test linux-dietlibc = "$host_os"; then
10558 case $cc_basename in
10559 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10562 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10563 && test no = "$tmp_diet"
10565 tmp_addflag=' $pic_flag'
10566 tmp_sharedflag='-shared'
10567 case $cc_basename,$host_cpu in
10568 pgcc*) # Portland Group C compiler
10569 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'
10570 tmp_addflag=' $pic_flag'
10572 pgf77* | pgf90* | pgf95* | pgfortran*)
10573 # Portland Group f77 and f90 compilers
10574 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'
10575 tmp_addflag=' $pic_flag -Mnomain' ;;
10576 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10577 tmp_addflag=' -i_dynamic' ;;
10578 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10579 tmp_addflag=' -i_dynamic -nofor_main' ;;
10580 ifc* | ifort*) # Intel Fortran compiler
10581 tmp_addflag=' -nofor_main' ;;
10582 lf95*) # Lahey Fortran 8.1
10583 whole_archive_flag_spec=
10584 tmp_sharedflag='--shared' ;;
10585 nagfor*) # NAGFOR 5.3
10586 tmp_sharedflag='-Wl,-shared' ;;
10587 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10588 tmp_sharedflag='-qmkshrobj'
10590 nvcc*) # Cuda Compiler Driver 2.2
10591 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'
10592 compiler_needs_object=yes
10595 case `$CC -V 2>&1 | sed 5q` in
10596 *Sun\ C*) # Sun C 5.9
10597 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'
10598 compiler_needs_object=yes
10599 tmp_sharedflag='-G' ;;
10600 *Sun\ F*) # Sun Fortran 8.3
10601 tmp_sharedflag='-G' ;;
10603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10605 if test yes = "$supports_anon_versioning"; then
10606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10608 echo "local: *; };" >> $output_objdir/$libname.ver~
10609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10612 case $cc_basename in
10614 export_dynamic_flag_spec='-rdynamic'
10616 xlf* | bgf* | bgxlf* | mpixlf*)
10617 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10618 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10619 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10620 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10621 if test yes = "$supports_anon_versioning"; then
10622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10624 echo "local: *; };" >> $output_objdir/$libname.ver~
10625 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10634 netbsd* | netbsdelf*-gnu)
10635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10636 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10639 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10640 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10645 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10650 *** create shared libraries on Solaris systems. Therefore, libtool
10651 *** is disabling shared libraries support. We urge you to upgrade GNU
10652 *** binutils to release 2.9.1 or newer. Another option is to modify
10653 *** your PATH or compiler configuration so that the native linker is
10654 *** used, and then restart.
10657 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10666 case `$LD -v 2>&1` in
10667 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10671 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10672 *** reliably create shared libraries on SCO systems. Therefore, libtool
10673 *** is disabling shared libraries support. We urge you to upgrade GNU
10674 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10675 *** your PATH or compiler configuration so that the native linker is
10676 *** used, and then restart.
10681 # For security reasons, it is highly recommended that you always
10682 # use absolute paths for naming shared libraries, and exclude the
10683 # DT_RUNPATH tag from executables and libraries. But doing so
10684 # requires that you compile everything twice, which is a pain.
10685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10686 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10688 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10697 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_direct=yes
10700 hardcode_shlibpath_var=no
10704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10713 if test no = "$ld_shlibs"; then
10715 hardcode_libdir_flag_spec=
10716 export_dynamic_flag_spec=
10717 whole_archive_flag_spec=
10720 # PORTME fill in a description of your system's linker (not GNU ld)
10723 allow_undefined_flag=unsupported
10724 always_export_symbols=yes
10725 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'
10726 # Note: this linker hardcodes the directories in LIBPATH if there
10727 # are no directories specified by -L.
10728 hardcode_minus_L=yes
10729 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10730 # Neither direct hardcoding nor static linking is supported with a
10732 hardcode_direct=unsupported
10737 if test ia64 = "$host_cpu"; then
10738 # On IA64, the linker does run time linking by default, so we don't
10739 # have to do anything special.
10740 aix_use_runtimelinking=no
10741 exp_sym_flag='-Bexport'
10744 # If we're using GNU nm, then we don't want the "-C" option.
10745 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10746 # Without the "-l" option, or with the "-B" option, AIX nm treats
10747 # weak defined symbols like other global defined symbols, whereas
10748 # GNU nm marks them as "W".
10749 # While the 'weak' keyword is ignored in the Export File, we need
10750 # it in the Import File for the 'aix-soname' feature, so we have
10751 # to replace the "-B" option with "-P" for AIX nm.
10752 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10753 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'
10755 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'
10757 aix_use_runtimelinking=no
10759 # Test if we are trying to use run time linking or normal
10760 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10761 # have runtime linking enabled, and use it for executables.
10762 # For shared libraries, we enable/disable runtime linking
10763 # depending on the kind of the shared library created -
10764 # when "with_aix_soname,aix_use_runtimelinking" is:
10765 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10766 # "aix,yes" lib.so shared, rtl:yes, for executables
10767 # lib.a static archive
10768 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10769 # lib.a(lib.so.V) shared, rtl:no, for executables
10770 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10771 # lib.a(lib.so.V) shared, rtl:no
10772 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10773 # lib.a static archive
10774 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10775 for ld_flag in $LDFLAGS; do
10776 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10777 aix_use_runtimelinking=yes
10781 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10782 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10783 # so we don't have lib.a shared libs to link our executables.
10784 # We have to force runtime linking in this case.
10785 aix_use_runtimelinking=yes
10786 LDFLAGS="$LDFLAGS -Wl,-brtl"
10791 exp_sym_flag='-bexport'
10792 no_entry_flag='-bnoentry'
10795 # When large executables or shared objects are built, AIX ld can
10796 # have problems creating the table of contents. If linking a library
10797 # or program results in "error TOC overflow" add -mminimal-toc to
10798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10802 hardcode_direct=yes
10803 hardcode_direct_absolute=yes
10804 hardcode_libdir_separator=':'
10805 link_all_deplibs=yes
10806 file_list_spec='$wl-f,'
10807 case $with_aix_soname,$aix_use_runtimelinking in
10808 aix,*) ;; # traditional, no import file
10809 svr4,* | *,yes) # use import file
10810 # The Import File defines what to hardcode.
10812 hardcode_direct_absolute=no
10816 if test yes = "$GCC"; then
10817 case $host_os in aix4.[012]|aix4.[012].*)
10818 # We only want to do this on AIX 4.2 and lower, the check
10819 # below for broken collect2 doesn't work under 4.3+
10820 collect2name=`$CC -print-prog-name=collect2`
10821 if test -f "$collect2name" &&
10822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10824 # We have reworked collect2
10827 # We have old collect2
10828 hardcode_direct=unsupported
10829 # It fails to find uninstalled libraries when the uninstalled
10830 # path is not listed in the libpath. Setting hardcode_minus_L
10831 # to unsupported forces relinking
10832 hardcode_minus_L=yes
10833 hardcode_libdir_flag_spec='-L$libdir'
10834 hardcode_libdir_separator=
10838 shared_flag='-shared'
10839 if test yes = "$aix_use_runtimelinking"; then
10840 shared_flag="$shared_flag "'$wl-G'
10842 # Need to ensure runtime linking is disabled for the traditional
10843 # shared library, or the linker may eventually find shared libraries
10844 # /with/ Import File - we do not want to mix them.
10845 shared_flag_aix='-shared'
10846 shared_flag_svr4='-shared $wl-G'
10849 if test ia64 = "$host_cpu"; then
10850 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10851 # chokes on -Wl,-G. The following line is correct:
10854 if test yes = "$aix_use_runtimelinking"; then
10855 shared_flag='$wl-G'
10857 shared_flag='$wl-bM:SRE'
10859 shared_flag_aix='$wl-bM:SRE'
10860 shared_flag_svr4='$wl-G'
10864 export_dynamic_flag_spec='$wl-bexpall'
10865 # It seems that -bexpall does not export symbols beginning with
10866 # underscore (_), so it is better to generate a list of symbols to export.
10867 always_export_symbols=yes
10868 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10869 # Warning - without using the other runtime loading flags (-brtl),
10870 # -berok will link without error, but may produce a broken library.
10871 allow_undefined_flag='-berok'
10872 # Determine the default libpath from the value encoded in an
10873 # empty executable.
10874 if test set = "${lt_cv_aix_libpath+set}"; then
10875 aix_libpath=$lt_cv_aix_libpath
10877 if ${lt_cv_aix_libpath_+:} false; then :
10878 $as_echo_n "(cached) " >&6
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10891 if ac_fn_c_try_link "$LINENO"; then :
10893 lt_aix_libpath_sed='
10894 /Import File Strings/,/^$/ {
10896 s/^0 *\([^ ]*\) *$/\1/
10900 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10901 # Check for a 64-bit object if we didn't find anything.
10902 if test -z "$lt_cv_aix_libpath_"; then
10903 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 if test -z "$lt_cv_aix_libpath_"; then
10909 lt_cv_aix_libpath_=/usr/lib:/lib
10914 aix_libpath=$lt_cv_aix_libpath_
10917 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10918 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
10920 if test ia64 = "$host_cpu"; then
10921 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10922 allow_undefined_flag="-z nodefs"
10923 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"
10925 # Determine the default libpath from the value encoded in an
10926 # empty executable.
10927 if test set = "${lt_cv_aix_libpath+set}"; then
10928 aix_libpath=$lt_cv_aix_libpath
10930 if ${lt_cv_aix_libpath_+:} false; then :
10931 $as_echo_n "(cached) " >&6
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10944 if ac_fn_c_try_link "$LINENO"; then :
10946 lt_aix_libpath_sed='
10947 /Import File Strings/,/^$/ {
10949 s/^0 *\([^ ]*\) *$/\1/
10953 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10954 # Check for a 64-bit object if we didn't find anything.
10955 if test -z "$lt_cv_aix_libpath_"; then
10956 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10959 rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 if test -z "$lt_cv_aix_libpath_"; then
10962 lt_cv_aix_libpath_=/usr/lib:/lib
10967 aix_libpath=$lt_cv_aix_libpath_
10970 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10971 # Warning - without using the other run time loading flags,
10972 # -berok will link without error, but may produce a broken library.
10973 no_undefined_flag=' $wl-bernotok'
10974 allow_undefined_flag=' $wl-berok'
10975 if test yes = "$with_gnu_ld"; then
10976 # We only use this code for GNU lds that support --whole-archive.
10977 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10979 # Exported symbols can be pulled into shared objects from archives
10980 whole_archive_flag_spec='$convenience'
10982 archive_cmds_need_lc=yes
10983 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10984 # -brtl affects multiple linker settings, -berok does not and is overridden later
10985 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10986 if test svr4 != "$with_aix_soname"; then
10987 # This is similar to how AIX traditionally builds its shared libraries.
10988 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'
10990 if test aix != "$with_aix_soname"; then
10991 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'
10993 # used by -dlpreopen to get the symbols
10994 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10996 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11004 # see comment about AmigaOS4 .so support
11005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11006 archive_expsym_cmds=''
11009 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)'
11010 hardcode_libdir_flag_spec='-L$libdir'
11011 hardcode_minus_L=yes
11017 export_dynamic_flag_spec=-rdynamic
11020 cygwin* | mingw* | pw32* | cegcc*)
11021 # When not using gcc, we currently assume that we are using
11022 # Microsoft Visual C++.
11023 # hardcode_libdir_flag_spec is actually meaningless, as there is
11024 # no search path for DLLs.
11025 case $cc_basename in
11028 hardcode_libdir_flag_spec=' '
11029 allow_undefined_flag=unsupported
11030 always_export_symbols=yes
11032 # Tell ltmain to make .lib files, not .a files.
11034 # Tell ltmain to make .dll files, not .so files.
11036 # FIXME: Setting linknames here is a bad hack.
11037 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11038 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11039 cp "$export_symbols" "$output_objdir/$soname.def";
11040 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11042 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11044 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11046 # The linker will not automatically build a static lib if we build a DLL.
11047 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11048 enable_shared_with_static_runtimes=yes
11049 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11052 old_postinstall_cmds='chmod 644 $oldlib'
11053 postlink_cmds='lt_outputfile="@OUTPUT@"~
11054 lt_tool_outputfile="@TOOL_OUTPUT@"~
11055 case $lt_outputfile in
11058 lt_outputfile=$lt_outputfile.exe
11059 lt_tool_outputfile=$lt_tool_outputfile.exe
11062 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11063 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11064 $RM "$lt_outputfile.manifest";
11068 # Assume MSVC wrapper
11069 hardcode_libdir_flag_spec=' '
11070 allow_undefined_flag=unsupported
11071 # Tell ltmain to make .lib files, not .a files.
11073 # Tell ltmain to make .dll files, not .so files.
11075 # FIXME: Setting linknames here is a bad hack.
11076 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11077 # The linker will automatically build a .lib file if we build a DLL.
11078 old_archive_from_new_cmds='true'
11079 # FIXME: Should let the user specify the lib program.
11080 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11081 enable_shared_with_static_runtimes=yes
11086 darwin* | rhapsody*)
11089 archive_cmds_need_lc=no
11091 hardcode_automatic=yes
11092 hardcode_shlibpath_var=unsupported
11093 if test yes = "$lt_cv_ld_force_load"; then
11094 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\"`'
11097 whole_archive_flag_spec=''
11099 link_all_deplibs=yes
11100 allow_undefined_flag=$_lt_dar_allow_undefined
11101 case $cc_basename in
11102 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11103 *) _lt_dar_can_shared=$GCC ;;
11105 if test yes = "$_lt_dar_can_shared"; then
11106 output_verbose_link_cmd=func_echo_all
11107 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11108 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11109 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"
11110 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"
11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11120 hardcode_libdir_flag_spec='-L$libdir'
11121 hardcode_shlibpath_var=no
11124 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11125 # support. Future versions do this automatically, but an explicit c++rt0.o
11126 # does not break anything, and helps significantly (at the cost of a little
11129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11130 hardcode_libdir_flag_spec='-R$libdir'
11131 hardcode_direct=yes
11132 hardcode_shlibpath_var=no
11135 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11138 hardcode_direct=yes
11139 hardcode_minus_L=yes
11140 hardcode_shlibpath_var=no
11143 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11144 freebsd* | dragonfly*)
11145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11146 hardcode_libdir_flag_spec='-R$libdir'
11147 hardcode_direct=yes
11148 hardcode_shlibpath_var=no
11152 if test yes = "$GCC"; then
11153 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'
11155 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'
11157 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11158 hardcode_libdir_separator=:
11159 hardcode_direct=yes
11161 # hardcode_minus_L: Not really in the search PATH,
11162 # but as the default location of the library.
11163 hardcode_minus_L=yes
11164 export_dynamic_flag_spec='$wl-E'
11168 if test yes,no = "$GCC,$with_gnu_ld"; then
11169 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11173 if test no = "$with_gnu_ld"; then
11174 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11175 hardcode_libdir_separator=:
11176 hardcode_direct=yes
11177 hardcode_direct_absolute=yes
11178 export_dynamic_flag_spec='$wl-E'
11179 # hardcode_minus_L: Not really in the search PATH,
11180 # but as the default location of the library.
11181 hardcode_minus_L=yes
11186 if test yes,no = "$GCC,$with_gnu_ld"; then
11189 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11192 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11195 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11201 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11204 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11208 # Older versions of the 11.00 compiler do not understand -b yet
11209 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11211 $as_echo_n "checking if $CC understands -b... " >&6; }
11212 if ${lt_cv_prog_compiler__b+:} false; then :
11213 $as_echo_n "(cached) " >&6
11215 lt_cv_prog_compiler__b=no
11216 save_LDFLAGS=$LDFLAGS
11217 LDFLAGS="$LDFLAGS -b"
11218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11220 # The linker can only warn and ignore the option if not recognized
11221 # So say no if there are warnings
11222 if test -s conftest.err; then
11223 # Append any errors to the config.log.
11224 cat conftest.err 1>&5
11225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11227 if diff conftest.exp conftest.er2 >/dev/null; then
11228 lt_cv_prog_compiler__b=yes
11231 lt_cv_prog_compiler__b=yes
11235 LDFLAGS=$save_LDFLAGS
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11239 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11241 if test yes = "$lt_cv_prog_compiler__b"; then
11242 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11250 if test no = "$with_gnu_ld"; then
11251 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11252 hardcode_libdir_separator=:
11257 hardcode_shlibpath_var=no
11260 hardcode_direct=yes
11261 hardcode_direct_absolute=yes
11262 export_dynamic_flag_spec='$wl-E'
11264 # hardcode_minus_L: Not really in the search PATH,
11265 # but as the default location of the library.
11266 hardcode_minus_L=yes
11272 irix5* | irix6* | nonstopux*)
11273 if test yes = "$GCC"; then
11274 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'
11275 # Try to use the -exported_symbol ld option, if it does not
11276 # work, assume that -exports_file does not work either and
11277 # implicitly export all symbols.
11278 # This should be the same for all languages, so no per-tag cache variable.
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11280 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11281 if ${lt_cv_irix_exported_symbol+:} false; then :
11282 $as_echo_n "(cached) " >&6
11284 save_LDFLAGS=$LDFLAGS
11285 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288 int foo (void) { return 0; }
11290 if ac_fn_c_try_link "$LINENO"; then :
11291 lt_cv_irix_exported_symbol=yes
11293 lt_cv_irix_exported_symbol=no
11295 rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext conftest.$ac_ext
11297 LDFLAGS=$save_LDFLAGS
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11300 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11301 if test yes = "$lt_cv_irix_exported_symbol"; then
11302 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'
11304 link_all_deplibs=no
11306 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'
11307 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'
11309 archive_cmds_need_lc='no'
11310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11311 hardcode_libdir_separator=:
11313 link_all_deplibs=yes
11317 case $cc_basename in
11319 # Fabrice Bellard et al's Tiny C Compiler
11321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11326 netbsd* | netbsdelf*-gnu)
11327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11330 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11332 hardcode_libdir_flag_spec='-R$libdir'
11333 hardcode_direct=yes
11334 hardcode_shlibpath_var=no
11338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339 hardcode_direct=yes
11340 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11341 hardcode_libdir_separator=:
11342 hardcode_shlibpath_var=no
11348 openbsd* | bitrig*)
11349 if test -f /usr/libexec/ld.so; then
11350 hardcode_direct=yes
11351 hardcode_shlibpath_var=no
11352 hardcode_direct_absolute=yes
11353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11355 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11356 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11357 export_dynamic_flag_spec='$wl-E'
11359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11360 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11368 hardcode_libdir_flag_spec='-L$libdir'
11369 hardcode_minus_L=yes
11370 allow_undefined_flag=unsupported
11372 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11373 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11374 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11375 $ECHO EXPORTS >> $output_objdir/$libname.def~
11376 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11377 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11378 emximp -o $lib $output_objdir/$libname.def'
11379 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11380 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11381 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11382 $ECHO EXPORTS >> $output_objdir/$libname.def~
11383 prefix_cmds="$SED"~
11384 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11385 prefix_cmds="$prefix_cmds -e 1d";
11387 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11388 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11389 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11390 emximp -o $lib $output_objdir/$libname.def'
11391 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11392 enable_shared_with_static_runtimes=yes
11396 if test yes = "$GCC"; then
11397 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11398 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'
11400 allow_undefined_flag=' -expect_unresolved \*'
11401 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'
11403 archive_cmds_need_lc='no'
11404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11405 hardcode_libdir_separator=:
11408 osf4* | osf5*) # as osf3* with the addition of -msym flag
11409 if test yes = "$GCC"; then
11410 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11411 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'
11412 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11414 allow_undefined_flag=' -expect_unresolved \*'
11415 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'
11416 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~
11417 $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'
11419 # Both c and cxx compiler support -rpath directly
11420 hardcode_libdir_flag_spec='-rpath $libdir'
11422 archive_cmds_need_lc='no'
11423 hardcode_libdir_separator=:
11427 no_undefined_flag=' -z defs'
11428 if test yes = "$GCC"; then
11430 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11432 $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'
11434 case `$CC -V 2>&1` in
11437 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11439 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11443 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11445 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11449 hardcode_libdir_flag_spec='-R$libdir'
11450 hardcode_shlibpath_var=no
11452 solaris2.[0-5] | solaris2.[0-5].*) ;;
11454 # The compiler driver will combine and reorder linker options,
11455 # but understands '-z linker_flag'. GCC discards it without '$wl',
11456 # but is careful enough not to reorder.
11457 # Supported since Solaris 2.6 (maybe 2.5.1?)
11458 if test yes = "$GCC"; then
11459 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11465 link_all_deplibs=yes
11469 if test sequent = "$host_vendor"; then
11470 # Use $CC to link under sequent, because it throws in some extra .o
11471 # files that make .init and .fini sections work.
11472 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11476 hardcode_libdir_flag_spec='-L$libdir'
11477 hardcode_direct=yes
11478 hardcode_minus_L=yes
11479 hardcode_shlibpath_var=no
11483 case $host_vendor in
11485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11486 hardcode_direct=yes # is this really true???
11489 ## LD is ld it makes a PLAMLIB
11490 ## CC just makes a GrossModule.
11491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11492 reload_cmds='$CC -r -o $output$reload_objs'
11496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11500 runpath_var='LD_RUN_PATH'
11501 hardcode_shlibpath_var=no
11505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11506 hardcode_shlibpath_var=no
11507 export_dynamic_flag_spec='-Bexport'
11511 if test -d /usr/nec; then
11512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11513 hardcode_shlibpath_var=no
11514 runpath_var=LD_RUN_PATH
11515 hardcode_runpath_var=yes
11520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11521 no_undefined_flag='$wl-z,text'
11522 archive_cmds_need_lc=no
11523 hardcode_shlibpath_var=no
11524 runpath_var='LD_RUN_PATH'
11526 if test yes = "$GCC"; then
11527 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11528 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11530 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11531 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11535 sysv5* | sco3.2v5* | sco5v6*)
11536 # Note: We CANNOT use -z defs as we might desire, because we do not
11537 # link with -lc, and that would cause any symbols used from libc to
11538 # always be unresolved, which means just about no library would
11539 # ever link correctly. If we're not using GNU ld we use -z text
11540 # though, which does catch some bad symbols but isn't as heavy-handed
11542 no_undefined_flag='$wl-z,text'
11543 allow_undefined_flag='$wl-z,nodefs'
11544 archive_cmds_need_lc=no
11545 hardcode_shlibpath_var=no
11546 hardcode_libdir_flag_spec='$wl-R,$libdir'
11547 hardcode_libdir_separator=':'
11548 link_all_deplibs=yes
11549 export_dynamic_flag_spec='$wl-Bexport'
11550 runpath_var='LD_RUN_PATH'
11552 if test yes = "$GCC"; then
11553 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11554 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11557 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11563 hardcode_libdir_flag_spec='-L$libdir'
11564 hardcode_shlibpath_var=no
11572 if test sni = "$host_vendor"; then
11574 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11575 export_dynamic_flag_spec='$wl-Blargedynsym'
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11582 $as_echo "$ld_shlibs" >&6; }
11583 test no = "$ld_shlibs" && can_build_shared=no
11585 with_gnu_ld=$with_gnu_ld
11602 # Do we need to explicitly link libc?
11604 case "x$archive_cmds_need_lc" in
11606 # Assume -lc should be added
11607 archive_cmds_need_lc=yes
11609 if test yes,yes = "$GCC,$enable_shared"; then
11610 case $archive_cmds in
11612 # FIXME: we may have to deal with multi-command sequences.
11615 # Test whether the compiler implicitly links with -lc since on some
11616 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11617 # to ld, don't add -lc before -lgcc.
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11619 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11620 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11621 $as_echo_n "(cached) " >&6
11624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11627 (eval $ac_compile) 2>&5
11629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630 test $ac_status = 0; } 2>conftest.err; then
11633 libobjs=conftest.$ac_objext
11635 wl=$lt_prog_compiler_wl
11636 pic_flag=$lt_prog_compiler_pic
11642 lt_save_allow_undefined_flag=$allow_undefined_flag
11643 allow_undefined_flag=
11644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11645 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648 test $ac_status = 0; }
11650 lt_cv_archive_cmds_need_lc=no
11652 lt_cv_archive_cmds_need_lc=yes
11654 allow_undefined_flag=$lt_save_allow_undefined_flag
11656 cat conftest.err 1>&5
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11662 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11663 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11822 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11824 if test yes = "$GCC"; then
11826 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11827 *) lt_awk_arg='/^libraries:/' ;;
11830 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11831 *) lt_sed_strip_eq='s|=/|/|g' ;;
11833 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11834 case $lt_search_path_spec in
11836 # if the path contains ";" then we assume it to be the separator
11837 # otherwise default to the standard path separator (i.e. ":") - it is
11838 # assumed that no part of a normal pathname contains ";" but that should
11839 # okay in the real world where ";" in dirpaths is itself problematic.
11840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11843 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11846 # Ok, now we have the path, separated by spaces, we can step through it
11847 # and add multilib dir if necessary...
11848 lt_tmp_lt_search_path_spec=
11849 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11850 # ...but if some path component already ends with the multilib dir we assume
11851 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11852 case "$lt_multi_os_dir; $lt_search_path_spec " in
11853 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11857 for lt_sys_path in $lt_search_path_spec; do
11858 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11859 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11860 elif test -n "$lt_multi_os_dir"; then
11861 test -d "$lt_sys_path" && \
11862 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11865 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11866 BEGIN {RS = " "; FS = "/|\n";} {
11869 for (lt_i = NF; lt_i > 0; lt_i--) {
11870 if ($lt_i != "" && $lt_i != ".") {
11871 if ($lt_i == "..") {
11874 if (lt_count == 0) {
11875 lt_foo = "/" $lt_i lt_foo;
11882 if (lt_foo != "") { lt_freq[lt_foo]++; }
11883 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11885 # AWK program above erroneously prepends '/' to C:/dos/paths
11888 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11889 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11891 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11893 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11895 library_names_spec=
11896 libname_spec='lib$name'
11900 postuninstall_cmds=
11904 shlibpath_overrides_runpath=unknown
11906 dynamic_linker="$host_os ld.so"
11907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11908 need_lib_prefix=unknown
11909 hardcode_into_libs=no
11911 # when you set need_version to no, make sure it does not cause -set_version
11912 # flags to be left without arguments
11913 need_version=unknown
11919 version_type=linux # correct to gnu/linux during the next big refactor
11920 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11921 shlibpath_var=LIBPATH
11923 # AIX 3 has no versioning support, so we append a major version to the name.
11924 soname_spec='$libname$release$shared_ext$major'
11928 version_type=linux # correct to gnu/linux during the next big refactor
11931 hardcode_into_libs=yes
11932 if test ia64 = "$host_cpu"; then
11933 # AIX 5 supports IA64
11934 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11935 shlibpath_var=LD_LIBRARY_PATH
11937 # With GCC up to 2.95.x, collect2 would create an import file
11938 # for dependence libraries. The import file would start with
11939 # the line '#! .'. This would cause the generated library to
11940 # depend on '.', always an invalid library. This was fixed in
11941 # development snapshots of GCC prior to 3.0.
11943 aix4 | aix4.[01] | aix4.[01].*)
11944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11946 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11949 can_build_shared=no
11953 # Using Import Files as archive members, it is possible to support
11954 # filename-based versioning of shared library archives on AIX. While
11955 # this would work for both with and without runtime linking, it will
11956 # prevent static linking of such archives. So we do filename-based
11957 # shared library versioning with .so extension only, which is used
11958 # when both runtime linking and shared linking is enabled.
11959 # Unfortunately, runtime linking may impact performance, so we do
11960 # not want this to be the default eventually. Also, we use the
11961 # versioned .so libs for executables only if there is the -brtl
11962 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11963 # To allow for filename-based versioning support, we need to create
11964 # libNAME.so.V as an archive file, containing:
11965 # *) an Import File, referring to the versioned filename of the
11966 # archive as well as the shared archive member, telling the
11967 # bitwidth (32 or 64) of that shared object, and providing the
11968 # list of exported symbols of that shared object, eventually
11969 # decorated with the 'weak' keyword
11970 # *) the shared object with the F_LOADONLY flag set, to really avoid
11971 # it being seen by the linker.
11972 # At run time we better use the real file rather than another symlink,
11973 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11975 case $with_aix_soname,$aix_use_runtimelinking in
11976 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11977 # soname into executable. Probably we can add versioning support to
11978 # collect2, so additional links can be useful in future.
11979 aix,yes) # traditional libtool
11980 dynamic_linker='AIX unversionable lib.so'
11981 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11982 # instead of lib<name>.a to let people know that these are not
11983 # typical AIX shared libraries.
11984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986 aix,no) # traditional AIX only
11987 dynamic_linker='AIX lib.a(lib.so.V)'
11988 # We preserve .a as extension for shared libraries through AIX4.2
11989 # and later when we are not doing run time linking.
11990 library_names_spec='$libname$release.a $libname.a'
11991 soname_spec='$libname$release$shared_ext$major'
11993 svr4,*) # full svr4 only
11994 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11995 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11996 # We do not specify a path in Import Files, so LIBPATH fires.
11997 shlibpath_overrides_runpath=yes
11999 *,yes) # both, prefer svr4
12000 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12001 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12002 # unpreferred sharedlib libNAME.a needs extra handling
12003 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"'
12004 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"'
12005 # We do not specify a path in Import Files, so LIBPATH fires.
12006 shlibpath_overrides_runpath=yes
12008 *,no) # both, prefer aix
12009 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12010 library_names_spec='$libname$release.a $libname.a'
12011 soname_spec='$libname$release$shared_ext$major'
12012 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12013 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)'
12014 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"'
12017 shlibpath_var=LIBPATH
12024 # Since July 2007 AmigaOS4 officially supports .so libraries.
12025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029 library_names_spec='$libname.ixlibrary $libname.a'
12030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12031 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'
12037 library_names_spec='$libname$shared_ext'
12038 dynamic_linker="$host_os ld.so"
12039 shlibpath_var=LIBRARY_PATH
12043 version_type=linux # correct to gnu/linux during the next big refactor
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 soname_spec='$libname$release$shared_ext$major'
12047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12051 # the default ld.so.conf also contains /usr/contrib/lib and
12052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12053 # libtool to hard-code these into programs
12056 cygwin* | mingw* | pw32* | cegcc*)
12057 version_type=windows
12062 case $GCC,$cc_basename in
12065 library_names_spec='$libname.dll.a'
12066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12067 postinstall_cmds='base_file=`basename \$file`~
12068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12069 dldir=$destdir/`dirname \$dlpath`~
12070 test -d \$dldir || mkdir -p \$dldir~
12071 $install_prog $dir/$dlname \$dldir/$dlname~
12072 chmod a+x \$dldir/$dlname~
12073 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12074 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12077 dlpath=$dir/\$dldll~
12079 shlibpath_overrides_runpath=yes
12083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12084 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12086 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12089 # MinGW DLLs use traditional 'lib' prefix
12090 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12093 # pw32 DLLs use 'pw' prefix rather than 'lib'
12094 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12097 dynamic_linker='Win32 ld.exe'
12102 libname_spec='$name'
12103 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12104 library_names_spec='$libname.dll.lib'
12108 sys_lib_search_path_spec=
12111 for lt_path in $LIB
12114 # Let DOS variable expansion print the short 8.3 style file name.
12115 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12116 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12119 # Convert to MSYS style.
12120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12123 # Convert to unix form, then to dos form, then back to unix form
12124 # but this time dos style (no spaces!) so that the unix form looks
12125 # like /cygdrive/c/PROGRA~1:/cygdr...
12126 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12127 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12128 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12131 sys_lib_search_path_spec=$LIB
12132 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12133 # It is most probably a Windows format PATH.
12134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12138 # FIXME: find the short name or the path components, as spaces are
12139 # common. (e.g. "Program Files" -> "PROGRA~1")
12143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12144 postinstall_cmds='base_file=`basename \$file`~
12145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12146 dldir=$destdir/`dirname \$dlpath`~
12147 test -d \$dldir || mkdir -p \$dldir~
12148 $install_prog $dir/$dlname \$dldir/$dlname'
12149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12150 dlpath=$dir/\$dldll~
12152 shlibpath_overrides_runpath=yes
12153 dynamic_linker='Win32 link.exe'
12157 # Assume MSVC wrapper
12158 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12159 dynamic_linker='Win32 ld.exe'
12162 # FIXME: first we should search . and the directory the executable is in
12166 darwin* | rhapsody*)
12167 dynamic_linker="$host_os dyld"
12168 version_type=darwin
12171 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12172 soname_spec='$libname$release$major$shared_ext'
12173 shlibpath_overrides_runpath=yes
12174 shlibpath_var=DYLD_LIBRARY_PATH
12175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12182 version_type=linux # correct to gnu/linux during the next big refactor
12185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12186 soname_spec='$libname$release$shared_ext$major'
12187 shlibpath_var=LD_LIBRARY_PATH
12190 freebsd* | dragonfly*)
12191 # DragonFly does not have aout. When/if they implement a new
12192 # versioning mechanism, adjust this.
12193 if test -x /usr/bin/objformat; then
12194 objformat=`/usr/bin/objformat`
12197 freebsd[23].*) objformat=aout ;;
12198 *) objformat=elf ;;
12201 version_type=freebsd-$objformat
12202 case $version_type in
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'
12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12214 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=yes
12219 freebsd3.[01]* | freebsdelf3.[01]*)
12220 shlibpath_overrides_runpath=yes
12221 hardcode_into_libs=yes
12223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12225 shlibpath_overrides_runpath=no
12226 hardcode_into_libs=yes
12228 *) # from 4.6 on, and DragonFly
12229 shlibpath_overrides_runpath=yes
12230 hardcode_into_libs=yes
12236 version_type=linux # correct to gnu/linux during the next big refactor
12239 dynamic_linker="$host_os runtime_loader"
12240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12241 soname_spec='$libname$release$shared_ext$major'
12242 shlibpath_var=LIBRARY_PATH
12243 shlibpath_overrides_runpath=no
12244 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12245 hardcode_into_libs=yes
12248 hpux9* | hpux10* | hpux11*)
12249 # Give a soname corresponding to the major version so that dld.sl refuses to
12250 # link against other versions.
12257 hardcode_into_libs=yes
12258 dynamic_linker="$host_os dld.so"
12259 shlibpath_var=LD_LIBRARY_PATH
12260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262 soname_spec='$libname$release$shared_ext$major'
12263 if test 32 = "$HPUX_IA64_MODE"; then
12264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12265 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12268 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12273 hardcode_into_libs=yes
12274 dynamic_linker="$host_os dld.sl"
12275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12278 soname_spec='$libname$release$shared_ext$major'
12279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12284 dynamic_linker="$host_os dld.sl"
12285 shlibpath_var=SHLIB_PATH
12286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12288 soname_spec='$libname$release$shared_ext$major'
12291 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12292 postinstall_cmds='chmod 555 $lib'
12293 # or fails outright, so override atomically:
12294 install_override_mode=555
12298 version_type=linux # correct to gnu/linux during the next big refactor
12301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12302 soname_spec='$libname$release$shared_ext$major'
12303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 shlibpath_overrides_runpath=no
12306 hardcode_into_libs=yes
12309 irix5* | irix6* | nonstopux*)
12311 nonstopux*) version_type=nonstopux ;;
12313 if test yes = "$lt_cv_prog_gnu_ld"; then
12314 version_type=linux # correct to gnu/linux during the next big refactor
12321 soname_spec='$libname$release$shared_ext$major'
12322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12324 irix5* | nonstopux*)
12325 libsuff= shlibsuff=
12328 case $LD in # libtool.m4 will add one of these switches to LD
12329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12330 libsuff= shlibsuff= libmagic=32-bit;;
12331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12332 libsuff=32 shlibsuff=N32 libmagic=N32;;
12333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12335 *) libsuff= shlibsuff= libmagic=never-match;;
12339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12340 shlibpath_overrides_runpath=no
12341 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12342 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12343 hardcode_into_libs=yes
12346 # No shared lib support for Linux oldld, aout, or coff.
12347 linux*oldld* | linux*aout* | linux*coff*)
12352 version_type=none # Android doesn't support versioned libraries.
12355 library_names_spec='$libname$release$shared_ext'
12356 soname_spec='$libname$release$shared_ext'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 shlibpath_overrides_runpath=yes
12361 # This implies no fast_install, which is unacceptable.
12362 # Some rework will be needed to allow for fast_install
12363 # before this can be enabled.
12364 hardcode_into_libs=yes
12366 dynamic_linker='Android linker'
12367 # Don't embed -rpath directories since the linker doesn't support them.
12368 hardcode_libdir_flag_spec='-L$libdir'
12371 # This must be glibc/ELF.
12372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12373 version_type=linux # correct to gnu/linux during the next big refactor
12376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377 soname_spec='$libname$release$shared_ext$major'
12378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=no
12382 # Some binutils ld are patched to set DT_RUNPATH
12383 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12384 $as_echo_n "(cached) " >&6
12386 lt_cv_shlibpath_overrides_runpath=no
12387 save_LDFLAGS=$LDFLAGS
12388 save_libdir=$libdir
12389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12402 if ac_fn_c_try_link "$LINENO"; then :
12403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12404 lt_cv_shlibpath_overrides_runpath=yes
12407 rm -f core conftest.err conftest.$ac_objext \
12408 conftest$ac_exeext conftest.$ac_ext
12409 LDFLAGS=$save_LDFLAGS
12410 libdir=$save_libdir
12414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12416 # This implies no fast_install, which is unacceptable.
12417 # Some rework will be needed to allow for fast_install
12418 # before this can be enabled.
12419 hardcode_into_libs=yes
12421 # Ideally, we could use ldconfig to report *all* directores which are
12422 # searched for libraries, however this is still not possible. Aside from not
12423 # being certain /sbin/ldconfig is available, command
12424 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12425 # even though it is searched at run-time. Try to do the best guess by
12426 # appending ld.so.conf contents (and includes) to the search path.
12427 if test -f /etc/ld.so.conf; then
12428 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' ' '`
12429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12432 # We used to test for /lib/ld.so.1 and disable shared libraries on
12433 # powerpc, because MkLinux only supported shared libraries with the
12434 # GNU dynamic linker. Since this was broken with cross compilers,
12435 # most powerpc-linux boxes support dynamic linking these days and
12436 # people can always --disable-shared, the test was removed, and we
12437 # assume the GNU/Linux dynamic linker is in use.
12438 dynamic_linker='GNU/Linux ld.so'
12445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12446 soname_spec='${libname}${release}${shared_ext}$major'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=no
12449 hardcode_into_libs=yes
12450 dynamic_linker='NetBSD ld.elf_so'
12457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12460 dynamic_linker='NetBSD (a.out) ld.so'
12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12463 soname_spec='$libname$release$shared_ext$major'
12464 dynamic_linker='NetBSD ld.elf_so'
12466 shlibpath_var=LD_LIBRARY_PATH
12467 shlibpath_overrides_runpath=yes
12468 hardcode_into_libs=yes
12472 version_type=linux # correct to gnu/linux during the next big refactor
12473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12474 shlibpath_var=LD_LIBRARY_PATH
12475 shlibpath_overrides_runpath=yes
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 soname_spec='$libname$release$shared_ext$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 shlibpath_overrides_runpath=no
12486 hardcode_into_libs=yes
12487 dynamic_linker='ldqnx.so'
12490 openbsd* | bitrig*)
12492 sys_lib_dlsearch_path_spec=/usr/lib
12494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12499 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12501 shlibpath_var=LD_LIBRARY_PATH
12502 shlibpath_overrides_runpath=yes
12506 libname_spec='$name'
12507 version_type=windows
12511 # OS/2 can only load a DLL with a base name of 8 characters or less.
12512 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12513 v=$($ECHO $release$versuffix | tr -d .-);
12514 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12515 $ECHO $n$v`$shared_ext'
12516 library_names_spec='${libname}_dll.$libext'
12517 dynamic_linker='OS/2 ld.exe'
12518 shlibpath_var=BEGINLIBPATH
12519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12521 postinstall_cmds='base_file=`basename \$file`~
12522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12523 dldir=$destdir/`dirname \$dlpath`~
12524 test -d \$dldir || mkdir -p \$dldir~
12525 $install_prog $dir/$dlname \$dldir/$dlname~
12526 chmod a+x \$dldir/$dlname~
12527 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12528 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12531 dlpath=$dir/\$dldll~
12535 osf3* | osf4* | osf5*)
12539 soname_spec='$libname$release$shared_ext$major'
12540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12541 shlibpath_var=LD_LIBRARY_PATH
12542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12551 version_type=linux # correct to gnu/linux during the next big refactor
12554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12555 soname_spec='$libname$release$shared_ext$major'
12556 shlibpath_var=LD_LIBRARY_PATH
12557 shlibpath_overrides_runpath=yes
12558 hardcode_into_libs=yes
12559 # ldd complains unless libraries are executable
12560 postinstall_cmds='chmod +x $lib'
12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 shlibpath_overrides_runpath=yes
12569 if test yes = "$with_gnu_ld"; then
12576 version_type=linux # correct to gnu/linux during the next big refactor
12577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12578 soname_spec='$libname$release$shared_ext$major'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 case $host_vendor in
12582 shlibpath_overrides_runpath=no
12584 runpath_var=LD_RUN_PATH
12592 shlibpath_overrides_runpath=no
12593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12599 if test -d /usr/nec; then
12600 version_type=linux # correct to gnu/linux during the next big refactor
12601 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12602 soname_spec='$libname$shared_ext.$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12612 soname_spec='$libname$release$shared_ext$major'
12613 shlibpath_var=LD_LIBRARY_PATH
12614 shlibpath_overrides_runpath=yes
12615 hardcode_into_libs=yes
12616 if test yes = "$with_gnu_ld"; then
12617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12626 sys_lib_dlsearch_path_spec='/usr/lib'
12630 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12631 version_type=linux # correct to gnu/linux during the next big refactor
12634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12635 shlibpath_var=LD_LIBRARY_PATH
12636 shlibpath_overrides_runpath=no
12637 hardcode_into_libs=yes
12641 version_type=linux # correct to gnu/linux during the next big refactor
12642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12643 soname_spec='$libname$release$shared_ext$major'
12644 shlibpath_var=LD_LIBRARY_PATH
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12652 $as_echo "$dynamic_linker" >&6; }
12653 test no = "$dynamic_linker" && can_build_shared=no
12655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12656 if test yes = "$GCC"; then
12657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12660 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12661 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12664 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12665 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12668 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12669 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12671 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12672 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12674 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12675 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12776 if test -n "$hardcode_libdir_flag_spec" ||
12777 test -n "$runpath_var" ||
12778 test yes = "$hardcode_automatic"; then
12780 # We can hardcode non-existent directories.
12781 if test no != "$hardcode_direct" &&
12782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12783 # have to relink, otherwise we might link with an installed library
12784 # when we should be linking with a yet-to-be-installed one
12785 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12786 test no != "$hardcode_minus_L"; then
12787 # Linking always hardcodes the temporary library directory.
12788 hardcode_action=relink
12790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12791 hardcode_action=immediate
12794 # We cannot hardcode anything, or else we can only hardcode existing
12796 hardcode_action=unsupported
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12799 $as_echo "$hardcode_action" >&6; }
12801 if test relink = "$hardcode_action" ||
12802 test yes = "$inherit_rpath"; then
12803 # Fast installation is not supported
12804 enable_fast_install=no
12805 elif test yes = "$shlibpath_overrides_runpath" ||
12806 test no = "$enable_shared"; then
12807 # Fast installation is not necessary
12808 enable_fast_install=needless
12816 if test yes != "$enable_dlopen"; then
12817 enable_dlopen=unknown
12818 enable_dlopen_self=unknown
12819 enable_dlopen_self_static=unknown
12826 lt_cv_dlopen=load_add_on
12828 lt_cv_dlopen_self=yes
12831 mingw* | pw32* | cegcc*)
12832 lt_cv_dlopen=LoadLibrary
12837 lt_cv_dlopen=dlopen
12842 # if libdl is installed we need to link against it
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12845 if ${ac_cv_lib_dl_dlopen+:} false; then :
12846 $as_echo_n "(cached) " >&6
12848 ac_check_lib_save_LIBS=$LIBS
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 ac_cv_lib_dl_dlopen=yes
12871 ac_cv_lib_dl_dlopen=no
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12880 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12885 lt_cv_dlopen_self=yes
12892 # Don't try to run any link tests for TPF. We know it's impossible
12893 # because TPF is a cross-compiler, and we know how we open DSOs.
12894 lt_cv_dlopen=dlopen
12896 lt_cv_dlopen_self=no
12900 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12901 if test "x$ac_cv_func_shl_load" = xyes; then :
12902 lt_cv_dlopen=shl_load
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12905 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12906 if ${ac_cv_lib_dld_shl_load+:} false; then :
12907 $as_echo_n "(cached) " >&6
12909 ac_check_lib_save_LIBS=$LIBS
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12914 /* Override any GCC internal prototype to avoid an error.
12915 Use char because int might match the return type of a GCC
12916 builtin and then its argument prototype would still apply. */
12924 return shl_load ();
12929 if ac_fn_c_try_link "$LINENO"; then :
12930 ac_cv_lib_dld_shl_load=yes
12932 ac_cv_lib_dld_shl_load=no
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936 LIBS=$ac_check_lib_save_LIBS
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12939 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12940 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12941 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12943 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12944 if test "x$ac_cv_func_dlopen" = xyes; then :
12945 lt_cv_dlopen=dlopen
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12948 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12949 if ${ac_cv_lib_dl_dlopen+:} false; then :
12950 $as_echo_n "(cached) " >&6
12952 ac_check_lib_save_LIBS=$LIBS
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12972 if ac_fn_c_try_link "$LINENO"; then :
12973 ac_cv_lib_dl_dlopen=yes
12975 ac_cv_lib_dl_dlopen=no
12977 rm -f core conftest.err conftest.$ac_objext \
12978 conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12982 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12983 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12984 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12987 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12988 if ${ac_cv_lib_svld_dlopen+:} false; then :
12989 $as_echo_n "(cached) " >&6
12991 ac_check_lib_save_LIBS=$LIBS
12992 LIBS="-lsvld $LIBS"
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12996 /* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
13011 if ac_fn_c_try_link "$LINENO"; then :
13012 ac_cv_lib_svld_dlopen=yes
13014 ac_cv_lib_svld_dlopen=no
13016 rm -f core conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext conftest.$ac_ext
13018 LIBS=$ac_check_lib_save_LIBS
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13021 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13022 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13023 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13026 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13027 if ${ac_cv_lib_dld_dld_link+:} false; then :
13028 $as_echo_n "(cached) " >&6
13030 ac_check_lib_save_LIBS=$LIBS
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13045 return dld_link ();
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_lib_dld_dld_link=yes
13053 ac_cv_lib_dld_dld_link=no
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13060 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13061 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13062 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13083 if test no = "$lt_cv_dlopen"; then
13089 case $lt_cv_dlopen in
13091 save_CPPFLAGS=$CPPFLAGS
13092 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13094 save_LDFLAGS=$LDFLAGS
13095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13098 LIBS="$lt_cv_dlopen_libs $LIBS"
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13101 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13102 if ${lt_cv_dlopen_self+:} false; then :
13103 $as_echo_n "(cached) " >&6
13105 if test yes = "$cross_compiling"; then :
13106 lt_cv_dlopen_self=cross
13108 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13109 lt_status=$lt_dlunknown
13110 cat > conftest.$ac_ext <<_LT_EOF
13111 #line $LINENO "configure"
13112 #include "confdefs.h"
13121 # define LT_DLGLOBAL RTLD_GLOBAL
13124 # define LT_DLGLOBAL DL_GLOBAL
13126 # define LT_DLGLOBAL 0
13130 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13131 find out it does not work in some platform. */
13132 #ifndef LT_DLLAZY_OR_NOW
13134 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13137 # define LT_DLLAZY_OR_NOW DL_LAZY
13140 # define LT_DLLAZY_OR_NOW RTLD_NOW
13143 # define LT_DLLAZY_OR_NOW DL_NOW
13145 # define LT_DLLAZY_OR_NOW 0
13152 /* When -fvisibility=hidden is used, assume the code has been annotated
13153 correspondingly for the symbols needed. */
13154 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13155 int fnord () __attribute__((visibility("default")));
13158 int fnord () { return 42; }
13161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13162 int status = $lt_dlunknown;
13166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13169 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13170 else puts (dlerror ());
13172 /* dlclose (self); */
13180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13181 (eval $ac_link) 2>&5
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13185 (./conftest; exit; ) >&5 2>/dev/null
13187 case x$lt_status in
13188 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13189 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13190 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13193 # compilation failed
13194 lt_cv_dlopen_self=no
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13202 $as_echo "$lt_cv_dlopen_self" >&6; }
13204 if test yes = "$lt_cv_dlopen_self"; then
13205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13207 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13208 if ${lt_cv_dlopen_self_static+:} false; then :
13209 $as_echo_n "(cached) " >&6
13211 if test yes = "$cross_compiling"; then :
13212 lt_cv_dlopen_self_static=cross
13214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13215 lt_status=$lt_dlunknown
13216 cat > conftest.$ac_ext <<_LT_EOF
13217 #line $LINENO "configure"
13218 #include "confdefs.h"
13227 # define LT_DLGLOBAL RTLD_GLOBAL
13230 # define LT_DLGLOBAL DL_GLOBAL
13232 # define LT_DLGLOBAL 0
13236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13237 find out it does not work in some platform. */
13238 #ifndef LT_DLLAZY_OR_NOW
13240 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13243 # define LT_DLLAZY_OR_NOW DL_LAZY
13246 # define LT_DLLAZY_OR_NOW RTLD_NOW
13249 # define LT_DLLAZY_OR_NOW DL_NOW
13251 # define LT_DLLAZY_OR_NOW 0
13258 /* When -fvisibility=hidden is used, assume the code has been annotated
13259 correspondingly for the symbols needed. */
13260 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13261 int fnord () __attribute__((visibility("default")));
13264 int fnord () { return 42; }
13267 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13268 int status = $lt_dlunknown;
13272 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13275 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13276 else puts (dlerror ());
13278 /* dlclose (self); */
13286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13287 (eval $ac_link) 2>&5
13289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13291 (./conftest; exit; ) >&5 2>/dev/null
13293 case x$lt_status in
13294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13299 # compilation failed
13300 lt_cv_dlopen_self_static=no
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13311 CPPFLAGS=$save_CPPFLAGS
13312 LDFLAGS=$save_LDFLAGS
13317 case $lt_cv_dlopen_self in
13318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13319 *) enable_dlopen_self=unknown ;;
13322 case $lt_cv_dlopen_self_static in
13323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13324 *) enable_dlopen_self_static=unknown ;;
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13348 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13352 $as_echo "yes" >&6; }
13354 # FIXME - insert some real tests, host_os isn't really good enough
13357 if test -n "$STRIP"; then
13358 striplib="$STRIP -x"
13359 old_striplib="$STRIP -S"
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361 $as_echo "yes" >&6; }
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13385 # Report what library types will actually be built
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13389 $as_echo "$can_build_shared" >&6; }
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13392 $as_echo_n "checking whether to build shared libraries... " >&6; }
13393 test no = "$can_build_shared" && enable_shared=no
13395 # On AIX, shared libraries and static libraries use the same namespace, and
13396 # are all built from PIC.
13399 test yes = "$enable_shared" && enable_static=no
13400 if test -n "$RANLIB"; then
13401 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13402 postinstall_cmds='$RANLIB $lib'
13407 if test ia64 != "$host_cpu"; then
13408 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13409 yes,aix,yes) ;; # shared object as lib.so file only
13410 yes,svr4,*) ;; # shared object as lib.so archive member only
13411 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13417 $as_echo "$enable_shared" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13420 $as_echo_n "checking whether to build static libraries... " >&6; }
13421 # Make sure either enable_shared or enable_static is yes.
13422 test yes = "$enable_shared" || enable_static=yes
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13424 $as_echo "$enable_static" >&6; }
13431 ac_cpp='$CPP $CPPFLAGS'
13432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13452 ac_config_commands="$ac_config_commands libtool"
13457 # Only expand once:
13461 # Check for programs
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467 if test -n "$ac_tool_prefix"; then
13468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471 $as_echo_n "checking for $ac_word... " >&6; }
13472 if ${ac_cv_prog_CC+:} false; then :
13473 $as_echo_n "(cached) " >&6
13475 if test -n "$CC"; then
13476 ac_cv_prog_CC="$CC" # Let the user override the test.
13478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479 for as_dir in $PATH
13482 test -z "$as_dir" && as_dir=.
13483 for ac_exec_ext in '' $ac_executable_extensions; do
13484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 if test -n "$CC"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13498 $as_echo "$CC" >&6; }
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13506 if test -z "$ac_cv_prog_CC"; then
13508 # Extract the first word of "gcc", so it can be a program name with args.
13509 set dummy gcc; ac_word=$2
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13511 $as_echo_n "checking for $ac_word... " >&6; }
13512 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13513 $as_echo_n "(cached) " >&6
13515 if test -n "$ac_ct_CC"; then
13516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13519 for as_dir in $PATH
13522 test -z "$as_dir" && as_dir=.
13523 for ac_exec_ext in '' $ac_executable_extensions; do
13524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13525 ac_cv_prog_ac_ct_CC="gcc"
13526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13536 if test -n "$ac_ct_CC"; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13538 $as_echo "$ac_ct_CC" >&6; }
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13544 if test "x$ac_ct_CC" = x; then
13547 case $cross_compiling:$ac_tool_warned in
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13551 ac_tool_warned=yes ;;
13556 CC="$ac_cv_prog_CC"
13559 if test -z "$CC"; then
13560 if test -n "$ac_tool_prefix"; then
13561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13562 set dummy ${ac_tool_prefix}cc; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_prog_CC+:} false; then :
13566 $as_echo_n "(cached) " >&6
13568 if test -n "$CC"; then
13569 ac_cv_prog_CC="$CC" # Let the user override the test.
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578 ac_cv_prog_CC="${ac_tool_prefix}cc"
13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589 if test -n "$CC"; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13591 $as_echo "$CC" >&6; }
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13600 if test -z "$CC"; then
13601 # Extract the first word of "cc", so it can be a program name with args.
13602 set dummy cc; ac_word=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if ${ac_cv_prog_CC+:} false; then :
13606 $as_echo_n "(cached) " >&6
13608 if test -n "$CC"; then
13609 ac_cv_prog_CC="$CC" # Let the user override the test.
13611 ac_prog_rejected=no
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13616 test -z "$as_dir" && as_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13620 ac_prog_rejected=yes
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13631 if test $ac_prog_rejected = yes; then
13632 # We found a bogon in the path, so make sure we never use it.
13633 set dummy $ac_cv_prog_CC
13635 if test $# != 0; then
13636 # We chose a different compiler from the bogus one.
13637 # However, it has the same basename, so the bogon will be chosen
13638 # first if we set CC to just the basename; use the full file name.
13640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13646 if test -n "$CC"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13648 $as_echo "$CC" >&6; }
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13656 if test -z "$CC"; then
13657 if test -n "$ac_tool_prefix"; then
13658 for ac_prog in cl.exe
13660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if ${ac_cv_prog_CC+:} false; then :
13665 $as_echo_n "(cached) " >&6
13667 if test -n "$CC"; then
13668 ac_cv_prog_CC="$CC" # Let the user override the test.
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13674 test -z "$as_dir" && as_dir=.
13675 for ac_exec_ext in '' $ac_executable_extensions; do
13676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 if test -n "$CC"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13690 $as_echo "$CC" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13697 test -n "$CC" && break
13700 if test -z "$CC"; then
13702 for ac_prog in cl.exe
13704 # Extract the first word of "$ac_prog", so it can be a program name with args.
13705 set dummy $ac_prog; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13709 $as_echo_n "(cached) " >&6
13711 if test -n "$ac_ct_CC"; then
13712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
13720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13721 ac_cv_prog_ac_ct_CC="$ac_prog"
13722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13732 if test -n "$ac_ct_CC"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13734 $as_echo "$ac_ct_CC" >&6; }
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13741 test -n "$ac_ct_CC" && break
13744 if test "x$ac_ct_CC" = x; then
13747 case $cross_compiling:$ac_tool_warned in
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13751 ac_tool_warned=yes ;;
13760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13762 as_fn_error $? "no acceptable C compiler found in \$PATH
13763 See \`config.log' for more details" "$LINENO" 5; }
13765 # Provide some information about the compiler.
13766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13769 for ac_option in --version -v -V -qversion; do
13770 { { ac_try="$ac_compiler $ac_option >&5"
13771 case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13776 $as_echo "$ac_try_echo"; } >&5
13777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13779 if test -s conftest.err; then
13781 ... rest of stderr output deleted ...
13782 10q' conftest.err >conftest.er1
13783 cat conftest.er1 >&5
13785 rm -f conftest.er1 conftest.err
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787 test $ac_status = 0; }
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13791 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13792 if ${ac_cv_c_compiler_gnu+:} false; then :
13793 $as_echo_n "(cached) " >&6
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810 ac_compiler_gnu=yes
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13819 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13820 if test $ac_compiler_gnu = yes; then
13825 ac_test_CFLAGS=${CFLAGS+set}
13826 ac_save_CFLAGS=$CFLAGS
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13828 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13829 if ${ac_cv_prog_cc_g+:} false; then :
13830 $as_echo_n "(cached) " >&6
13832 ac_save_c_werror_flag=$ac_c_werror_flag
13833 ac_c_werror_flag=yes
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848 ac_cv_prog_cc_g=yes
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13862 if ac_fn_c_try_compile "$LINENO"; then :
13865 ac_c_werror_flag=$ac_save_c_werror_flag
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13878 if ac_fn_c_try_compile "$LINENO"; then :
13879 ac_cv_prog_cc_g=yes
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886 ac_c_werror_flag=$ac_save_c_werror_flag
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13889 $as_echo "$ac_cv_prog_cc_g" >&6; }
13890 if test "$ac_test_CFLAGS" = set; then
13891 CFLAGS=$ac_save_CFLAGS
13892 elif test $ac_cv_prog_cc_g = yes; then
13893 if test "$GCC" = yes; then
13899 if test "$GCC" = yes; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13906 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13907 if ${ac_cv_prog_cc_c89+:} false; then :
13908 $as_echo_n "(cached) " >&6
13910 ac_cv_prog_cc_c89=no
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 #include <stdarg.h>
13917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13918 struct buf { int x; };
13919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13920 static char *e (p, i)
13926 static char *f (char * (*g) (char **, int), char **p, ...)
13931 s = g (p, va_arg (v,int));
13936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13937 function prototypes and stuff, but not '\xHH' hex character constants.
13938 These don't provoke an error unfortunately, instead are silently treated
13939 as 'x'. The following induces an error, until -std is added to get
13940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13941 array size at least. It's necessary to write '\x00'==0 to get something
13942 that's true only with -std. */
13943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13946 inside strings and character constants. */
13948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13950 int test (int i, double x);
13951 struct s1 {int (*f) (int a);};
13952 struct s2 {int (*f) (double a);};
13953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13959 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13967 CC="$ac_save_CC $ac_arg"
13968 if ac_fn_c_try_compile "$LINENO"; then :
13969 ac_cv_prog_cc_c89=$ac_arg
13971 rm -f core conftest.err conftest.$ac_objext
13972 test "x$ac_cv_prog_cc_c89" != "xno" && break
13974 rm -f conftest.$ac_ext
13979 case "x$ac_cv_prog_cc_c89" in
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13982 $as_echo "none needed" >&6; } ;;
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13985 $as_echo "unsupported" >&6; } ;;
13987 CC="$CC $ac_cv_prog_cc_c89"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13989 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13991 if test "x$ac_cv_prog_cc_c89" != xno; then :
13996 ac_cpp='$CPP $CPPFLAGS'
13997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14002 ac_cpp='$CPP $CPPFLAGS'
14003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14007 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14008 if ${am_cv_prog_cc_c_o+:} false; then :
14009 $as_echo_n "(cached) " >&6
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14022 # Make sure it works both with $CC and with simple cc.
14023 # Following AC_PROG_CC_C_O, we do the test twice because some
14024 # compilers refuse to overwrite an existing .o file with -o,
14025 # though they will create one.
14026 am_cv_prog_cc_c_o=yes
14027 for am_i in 1 2; do
14028 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14029 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } \
14033 && test -f conftest2.$ac_objext; then
14036 am_cv_prog_cc_c_o=no
14040 rm -f core conftest*
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14044 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14045 if test "$am_cv_prog_cc_c_o" != yes; then
14046 # Losing compiler, so override with the script.
14047 # FIXME: It is wrong to rewrite CC.
14048 # But if we don't then we get into trouble of one sort or another.
14049 # A longer-term fix would be to have automake use am__CC in this case,
14050 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14051 CC="$am_aux_dir/compile $CC"
14054 ac_cpp='$CPP $CPPFLAGS'
14055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14060 depcc="$CC" am_compiler_list=
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14063 $as_echo_n "checking dependency style of $depcc... " >&6; }
14064 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14065 $as_echo_n "(cached) " >&6
14067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14068 # We make a subdir and do the tests there. Otherwise we can end up
14069 # making bogus files that we don't know about and never remove. For
14070 # instance it was reported that on HP-UX the gcc test will end up
14071 # making a dummy file named 'D' -- because '-MD' means "put the output
14073 rm -rf conftest.dir
14075 # Copy depcomp to subdir because otherwise we won't find it if we're
14076 # using a relative directory.
14077 cp "$am_depcomp" conftest.dir
14079 # We will build objects and dependencies in a subdirectory because
14080 # it helps to detect inapplicable dependency modes. For instance
14081 # both Tru64's cc and ICC support -MD to output dependencies as a
14082 # side effect of compilation, but ICC will put the dependencies in
14083 # the current directory while Tru64 will put them in the object
14087 am_cv_CC_dependencies_compiler_type=none
14088 if test "$am_compiler_list" = ""; then
14089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14091 am__universal=false
14092 case " $depcc " in #(
14093 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14096 for depmode in $am_compiler_list; do
14097 # Setup a source with many dependencies, because some compilers
14098 # like to wrap large dependency lists on column 80 (with \), and
14099 # we should not choose a depcomp mode which is confused by this.
14101 # We need to recreate these files for each test, as the compiler may
14102 # overwrite some of them when testing with obscure command lines.
14103 # This happens at least with the AIX C compiler.
14105 for i in 1 2 3 4 5 6; do
14106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14107 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14108 # Solaris 10 /bin/sh.
14109 echo '/* dummy */' > sub/conftst$i.h
14111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14113 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14114 # mode. It turns out that the SunPro C++ compiler does not properly
14115 # handle '-M -o', and we need to detect this. Also, some Intel
14116 # versions had trouble with output in subdirs.
14117 am__obj=sub/conftest.${OBJEXT-o}
14118 am__minus_obj="-o $am__obj"
14121 # This depmode causes a compiler race in universal mode.
14122 test "$am__universal" = false || continue
14125 # After this tag, mechanisms are not by side-effect, so they'll
14126 # only be used when explicitly requested.
14127 if test "x$enable_dependency_tracking" = xyes; then
14133 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14134 # This compiler won't grok '-c -o', but also, the minuso test has
14135 # not run yet. These depmodes are late enough in the game, and
14136 # so weak that their functioning should not be impacted.
14137 am__obj=conftest.${OBJEXT-o}
14142 if depmode=$depmode \
14143 source=sub/conftest.c object=$am__obj \
14144 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14145 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14146 >/dev/null 2>conftest.err &&
14147 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14149 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14151 # icc doesn't choke on unknown options, it will just issue warnings
14152 # or remarks (even with -Werror). So we grep stderr for any message
14153 # that says an option was ignored or not supported.
14154 # When given -MP, icc 7.0 and 7.1 complain thusly:
14155 # icc: Command line warning: ignoring option '-M'; no argument required
14156 # The diagnosis changed in icc 8.0:
14157 # icc: Command line remark: option '-MP' not supported
14158 if (grep 'ignoring option' conftest.err ||
14159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14160 am_cv_CC_dependencies_compiler_type=$depmode
14167 rm -rf conftest.dir
14169 am_cv_CC_dependencies_compiler_type=none
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14174 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14175 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14178 test "x$enable_dependency_tracking" != xno \
14179 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14180 am__fastdepCC_TRUE=
14181 am__fastdepCC_FALSE='#'
14183 am__fastdepCC_TRUE='#'
14184 am__fastdepCC_FALSE=
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14189 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14190 if ${ac_cv_prog_cc_c99+:} false; then :
14191 $as_echo_n "(cached) " >&6
14193 ac_cv_prog_cc_c99=no
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 #include <stdarg.h>
14198 #include <stdbool.h>
14199 #include <stdlib.h>
14203 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14204 #define debug(...) fprintf (stderr, __VA_ARGS__)
14205 #define showlist(...) puts (#__VA_ARGS__)
14206 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14208 test_varargs_macros (void)
14213 debug ("X = %d\n", x);
14214 showlist (The first, second, and third items.);
14215 report (x>y, "x is %d but y is %d", x, y);
14218 // Check long long types.
14219 #define BIG64 18446744073709551615ull
14220 #define BIG32 4294967295ul
14221 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14223 your preprocessor is broken;
14227 your preprocessor is broken;
14229 static long long int bignum = -9223372036854775807LL;
14230 static unsigned long long int ubignum = BIG64;
14232 struct incomplete_array
14238 struct named_init {
14240 const wchar_t *name;
14244 typedef const char *ccp;
14247 test_restrict (ccp restrict text)
14249 // See if C++-style comments work.
14250 // Iterate through items via the restricted pointer.
14251 // Also check for declarations in for loops.
14252 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14257 // Check varargs and va_copy.
14259 test_varargs (const char *format, ...)
14262 va_start (args, format);
14264 va_copy (args_copy, args);
14274 case 's': // string
14275 str = va_arg (args_copy, const char *);
14278 number = va_arg (args_copy, int);
14281 fnumber = va_arg (args_copy, double);
14287 va_end (args_copy);
14296 _Bool success = false;
14299 if (test_restrict ("String literal") == 0)
14301 char *restrict newvar = "Another string";
14304 test_varargs ("s, d' f .", "string", 65, 34.234);
14305 test_varargs_macros ();
14307 // Check flexible array members.
14308 struct incomplete_array *ia =
14309 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14311 for (int i = 0; i < ia->datasize; ++i)
14312 ia->data[i] = i * 1.234;
14314 // Check named initializers.
14315 struct named_init ni = {
14317 .name = L"Test wide string",
14318 .average = 543.34343,
14323 int dynamic_array[ni.number];
14324 dynamic_array[ni.number - 1] = 543;
14326 // work around unused variable warnings
14327 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14328 || dynamic_array[ni.number - 1] != 543);
14334 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14336 CC="$ac_save_CC $ac_arg"
14337 if ac_fn_c_try_compile "$LINENO"; then :
14338 ac_cv_prog_cc_c99=$ac_arg
14340 rm -f core conftest.err conftest.$ac_objext
14341 test "x$ac_cv_prog_cc_c99" != "xno" && break
14343 rm -f conftest.$ac_ext
14348 case "x$ac_cv_prog_cc_c99" in
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14351 $as_echo "none needed" >&6; } ;;
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14354 $as_echo "unsupported" >&6; } ;;
14356 CC="$CC $ac_cv_prog_cc_c99"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14358 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14360 if test "x$ac_cv_prog_cc_c99" != xno; then :
14367 ac_cpp='$CXXCPP $CPPFLAGS'
14368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14371 if test -z "$CXX"; then
14372 if test -n "$CCC"; then
14375 if test -n "$ac_tool_prefix"; then
14376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if ${ac_cv_prog_CXX+:} false; then :
14383 $as_echo_n "(cached) " >&6
14385 if test -n "$CXX"; then
14386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14395 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14405 CXX=$ac_cv_prog_CXX
14406 if test -n "$CXX"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14408 $as_echo "$CXX" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14415 test -n "$CXX" && break
14418 if test -z "$CXX"; then
14420 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14422 # Extract the first word of "$ac_prog", so it can be a program name with args.
14423 set dummy $ac_prog; ac_word=$2
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14425 $as_echo_n "checking for $ac_word... " >&6; }
14426 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14427 $as_echo_n "(cached) " >&6
14429 if test -n "$ac_ct_CXX"; then
14430 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433 for as_dir in $PATH
14436 test -z "$as_dir" && as_dir=.
14437 for ac_exec_ext in '' $ac_executable_extensions; do
14438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14439 ac_cv_prog_ac_ct_CXX="$ac_prog"
14440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14450 if test -n "$ac_ct_CXX"; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14452 $as_echo "$ac_ct_CXX" >&6; }
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14459 test -n "$ac_ct_CXX" && break
14462 if test "x$ac_ct_CXX" = x; then
14465 case $cross_compiling:$ac_tool_warned in
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14469 ac_tool_warned=yes ;;
14477 # Provide some information about the compiler.
14478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14481 for ac_option in --version -v -V -qversion; do
14482 { { ac_try="$ac_compiler $ac_option >&5"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14488 $as_echo "$ac_try_echo"; } >&5
14489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14491 if test -s conftest.err; then
14493 ... rest of stderr output deleted ...
14494 10q' conftest.err >conftest.er1
14495 cat conftest.er1 >&5
14497 rm -f conftest.er1 conftest.err
14498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14499 test $ac_status = 0; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14503 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14504 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14505 $as_echo_n "(cached) " >&6
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14521 if ac_fn_cxx_try_compile "$LINENO"; then :
14522 ac_compiler_gnu=yes
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14531 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14532 if test $ac_compiler_gnu = yes; then
14537 ac_test_CXXFLAGS=${CXXFLAGS+set}
14538 ac_save_CXXFLAGS=$CXXFLAGS
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14540 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14541 if ${ac_cv_prog_cxx_g+:} false; then :
14542 $as_echo_n "(cached) " >&6
14544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14545 ac_cxx_werror_flag=yes
14546 ac_cv_prog_cxx_g=no
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14559 if ac_fn_cxx_try_compile "$LINENO"; then :
14560 ac_cv_prog_cxx_g=yes
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14574 if ac_fn_cxx_try_compile "$LINENO"; then :
14577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14590 if ac_fn_cxx_try_compile "$LINENO"; then :
14591 ac_cv_prog_cxx_g=yes
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14601 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14602 if test "$ac_test_CXXFLAGS" = set; then
14603 CXXFLAGS=$ac_save_CXXFLAGS
14604 elif test $ac_cv_prog_cxx_g = yes; then
14605 if test "$GXX" = yes; then
14611 if test "$GXX" = yes; then
14618 ac_cpp='$CPP $CPPFLAGS'
14619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14623 depcc="$CXX" am_compiler_list=
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14626 $as_echo_n "checking dependency style of $depcc... " >&6; }
14627 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14628 $as_echo_n "(cached) " >&6
14630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14631 # We make a subdir and do the tests there. Otherwise we can end up
14632 # making bogus files that we don't know about and never remove. For
14633 # instance it was reported that on HP-UX the gcc test will end up
14634 # making a dummy file named 'D' -- because '-MD' means "put the output
14636 rm -rf conftest.dir
14638 # Copy depcomp to subdir because otherwise we won't find it if we're
14639 # using a relative directory.
14640 cp "$am_depcomp" conftest.dir
14642 # We will build objects and dependencies in a subdirectory because
14643 # it helps to detect inapplicable dependency modes. For instance
14644 # both Tru64's cc and ICC support -MD to output dependencies as a
14645 # side effect of compilation, but ICC will put the dependencies in
14646 # the current directory while Tru64 will put them in the object
14650 am_cv_CXX_dependencies_compiler_type=none
14651 if test "$am_compiler_list" = ""; then
14652 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14654 am__universal=false
14655 case " $depcc " in #(
14656 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14659 for depmode in $am_compiler_list; do
14660 # Setup a source with many dependencies, because some compilers
14661 # like to wrap large dependency lists on column 80 (with \), and
14662 # we should not choose a depcomp mode which is confused by this.
14664 # We need to recreate these files for each test, as the compiler may
14665 # overwrite some of them when testing with obscure command lines.
14666 # This happens at least with the AIX C compiler.
14668 for i in 1 2 3 4 5 6; do
14669 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14670 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14671 # Solaris 10 /bin/sh.
14672 echo '/* dummy */' > sub/conftst$i.h
14674 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14676 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14677 # mode. It turns out that the SunPro C++ compiler does not properly
14678 # handle '-M -o', and we need to detect this. Also, some Intel
14679 # versions had trouble with output in subdirs.
14680 am__obj=sub/conftest.${OBJEXT-o}
14681 am__minus_obj="-o $am__obj"
14684 # This depmode causes a compiler race in universal mode.
14685 test "$am__universal" = false || continue
14688 # After this tag, mechanisms are not by side-effect, so they'll
14689 # only be used when explicitly requested.
14690 if test "x$enable_dependency_tracking" = xyes; then
14696 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14697 # This compiler won't grok '-c -o', but also, the minuso test has
14698 # not run yet. These depmodes are late enough in the game, and
14699 # so weak that their functioning should not be impacted.
14700 am__obj=conftest.${OBJEXT-o}
14705 if depmode=$depmode \
14706 source=sub/conftest.c object=$am__obj \
14707 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14708 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14709 >/dev/null 2>conftest.err &&
14710 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14711 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14712 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14713 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14714 # icc doesn't choke on unknown options, it will just issue warnings
14715 # or remarks (even with -Werror). So we grep stderr for any message
14716 # that says an option was ignored or not supported.
14717 # When given -MP, icc 7.0 and 7.1 complain thusly:
14718 # icc: Command line warning: ignoring option '-M'; no argument required
14719 # The diagnosis changed in icc 8.0:
14720 # icc: Command line remark: option '-MP' not supported
14721 if (grep 'ignoring option' conftest.err ||
14722 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14723 am_cv_CXX_dependencies_compiler_type=$depmode
14730 rm -rf conftest.dir
14732 am_cv_CXX_dependencies_compiler_type=none
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14737 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14738 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14741 test "x$enable_dependency_tracking" != xno \
14742 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14743 am__fastdepCXX_TRUE=
14744 am__fastdepCXX_FALSE='#'
14746 am__fastdepCXX_TRUE='#'
14747 am__fastdepCXX_FALSE=
14753 func_stripname_cnf ()
14756 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14757 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14759 } # func_stripname_cnf
14761 if test -n "$CXX" && ( test no != "$CXX" &&
14762 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14763 (test g++ != "$CXX"))); then
14765 ac_cpp='$CXXCPP $CPPFLAGS'
14766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14770 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14771 if test -z "$CXXCPP"; then
14772 if ${ac_cv_prog_CXXCPP+:} false; then :
14773 $as_echo_n "(cached) " >&6
14775 # Double quotes because CXXCPP needs to be expanded
14776 for CXXCPP in "$CXX -E" "/lib/cpp"
14778 ac_preproc_ok=false
14779 for ac_cxx_preproc_warn_flag in '' yes
14781 # Use a header file that comes with gcc, so configuring glibc
14782 # with a fresh cross-compiler works.
14783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14784 # <limits.h> exists even on freestanding compilers.
14785 # On the NeXT, cc -E runs the code through the compiler's parser,
14786 # not just through cpp. "Syntax error" is here to catch this case.
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14790 # include <limits.h>
14792 # include <assert.h>
14796 if ac_fn_cxx_try_cpp "$LINENO"; then :
14799 # Broken: fails on valid input.
14802 rm -f conftest.err conftest.i conftest.$ac_ext
14804 # OK, works on sane cases. Now check whether nonexistent headers
14805 # can be detected and how.
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808 #include <ac_nonexistent.h>
14810 if ac_fn_cxx_try_cpp "$LINENO"; then :
14811 # Broken: success on invalid input.
14814 # Passes both tests.
14818 rm -f conftest.err conftest.i conftest.$ac_ext
14821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14822 rm -f conftest.i conftest.err conftest.$ac_ext
14823 if $ac_preproc_ok; then :
14828 ac_cv_prog_CXXCPP=$CXXCPP
14831 CXXCPP=$ac_cv_prog_CXXCPP
14833 ac_cv_prog_CXXCPP=$CXXCPP
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14836 $as_echo "$CXXCPP" >&6; }
14837 ac_preproc_ok=false
14838 for ac_cxx_preproc_warn_flag in '' yes
14840 # Use a header file that comes with gcc, so configuring glibc
14841 # with a fresh cross-compiler works.
14842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14843 # <limits.h> exists even on freestanding compilers.
14844 # On the NeXT, cc -E runs the code through the compiler's parser,
14845 # not just through cpp. "Syntax error" is here to catch this case.
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14849 # include <limits.h>
14851 # include <assert.h>
14855 if ac_fn_cxx_try_cpp "$LINENO"; then :
14858 # Broken: fails on valid input.
14861 rm -f conftest.err conftest.i conftest.$ac_ext
14863 # OK, works on sane cases. Now check whether nonexistent headers
14864 # can be detected and how.
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867 #include <ac_nonexistent.h>
14869 if ac_fn_cxx_try_cpp "$LINENO"; then :
14870 # Broken: success on invalid input.
14873 # Passes both tests.
14877 rm -f conftest.err conftest.i conftest.$ac_ext
14880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14881 rm -f conftest.i conftest.err conftest.$ac_ext
14882 if $ac_preproc_ok; then :
14885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14887 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14888 See \`config.log' for more details" "$LINENO" 5; }
14892 ac_cpp='$CPP $CPPFLAGS'
14893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14898 _lt_caught_CXX_error=yes
14902 ac_cpp='$CXXCPP $CPPFLAGS'
14903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14907 archive_cmds_need_lc_CXX=no
14908 allow_undefined_flag_CXX=
14909 always_export_symbols_CXX=no
14910 archive_expsym_cmds_CXX=
14911 compiler_needs_object_CXX=no
14912 export_dynamic_flag_spec_CXX=
14913 hardcode_direct_CXX=no
14914 hardcode_direct_absolute_CXX=no
14915 hardcode_libdir_flag_spec_CXX=
14916 hardcode_libdir_separator_CXX=
14917 hardcode_minus_L_CXX=no
14918 hardcode_shlibpath_var_CXX=unsupported
14919 hardcode_automatic_CXX=no
14920 inherit_rpath_CXX=no
14922 module_expsym_cmds_CXX=
14923 link_all_deplibs_CXX=unknown
14924 old_archive_cmds_CXX=$old_archive_cmds
14925 reload_flag_CXX=$reload_flag
14926 reload_cmds_CXX=$reload_cmds
14927 no_undefined_flag_CXX=
14928 whole_archive_flag_spec_CXX=
14929 enable_shared_with_static_runtimes_CXX=no
14931 # Source file extension for C++ test sources.
14934 # Object file extension for compiled C++ test sources.
14938 # No sense in running all these tests if we already determined that
14939 # the CXX compiler isn't working. Some variables (like enable_shared)
14940 # are currently assumed to apply to all compilers on this platform,
14941 # and will be corrupted by setting them based on a non-working compiler.
14942 if test yes != "$_lt_caught_CXX_error"; then
14943 # Code to be used in simple compile tests
14944 lt_simple_compile_test_code="int some_variable = 0;"
14946 # Code to be used in simple link tests
14947 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14949 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14956 # If no C compiler was specified, use CC.
14959 # If no C compiler flags were specified, use CFLAGS.
14960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14962 # Allow CC to be a program name with arguments.
14966 # save warnings/boilerplate of simple test code
14967 ac_outfile=conftest.$ac_objext
14968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14970 _lt_compiler_boilerplate=`cat conftest.err`
14973 ac_outfile=conftest.$ac_objext
14974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14976 _lt_linker_boilerplate=`cat conftest.err`
14980 # Allow CC to be a program name with arguments.
14982 lt_save_CFLAGS=$CFLAGS
14986 lt_save_with_gnu_ld=$with_gnu_ld
14987 lt_save_path_LD=$lt_cv_path_LD
14988 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14989 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14991 $as_unset lt_cv_prog_gnu_ld
14993 if test -n "${lt_cv_path_LDCXX+set}"; then
14994 lt_cv_path_LD=$lt_cv_path_LDCXX
14996 $as_unset lt_cv_path_LD
14998 test -z "${LDCXX+set}" || LD=$LDCXX
15003 func_cc_basename $compiler
15004 cc_basename=$func_cc_basename_result
15007 if test -n "$compiler"; then
15008 # We don't want -fno-exception when compiling C++ code, so set the
15009 # no_builtin_flag separately
15010 if test yes = "$GXX"; then
15011 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15013 lt_prog_compiler_no_builtin_flag_CXX=
15016 if test yes = "$GXX"; then
15017 # Set up default GNU C++ configuration
15021 # Check whether --with-gnu-ld was given.
15022 if test "${with_gnu_ld+set}" = set; then :
15023 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15029 if test yes = "$GCC"; then
15030 # Check if gcc -print-prog-name=ld gives a path.
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15032 $as_echo_n "checking for ld used by $CC... " >&6; }
15035 # gcc leaves a trailing carriage return, which upsets mingw
15036 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15038 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15041 # Accept absolute paths.
15043 re_direlt='/[^/][^/]*/\.\./'
15044 # Canonicalize the pathname of ld
15045 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15046 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15047 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15049 test -z "$LD" && LD=$ac_prog
15052 # If it fails, then pretend we aren't using GCC.
15056 # If it is relative, then search for the first ld in PATH.
15057 with_gnu_ld=unknown
15060 elif test yes = "$with_gnu_ld"; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15062 $as_echo_n "checking for GNU ld... " >&6; }
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15065 $as_echo_n "checking for non-GNU ld... " >&6; }
15067 if ${lt_cv_path_LD+:} false; then :
15068 $as_echo_n "(cached) " >&6
15070 if test -z "$LD"; then
15071 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15072 for ac_dir in $PATH; do
15074 test -z "$ac_dir" && ac_dir=.
15075 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15076 lt_cv_path_LD=$ac_dir/$ac_prog
15077 # Check to see if the program is GNU ld. I'd rather use --version,
15078 # but apparently some variants of GNU ld only accept -v.
15079 # Break only if it was the GNU/non-GNU ld that we prefer.
15080 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15081 *GNU* | *'with BFD'*)
15082 test no != "$with_gnu_ld" && break
15085 test yes != "$with_gnu_ld" && break
15092 lt_cv_path_LD=$LD # Let the user override the test with a path.
15097 if test -n "$LD"; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15099 $as_echo "$LD" >&6; }
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15104 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15106 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15107 if ${lt_cv_prog_gnu_ld+:} false; then :
15108 $as_echo_n "(cached) " >&6
15110 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15111 case `$LD -v 2>&1 </dev/null` in
15112 *GNU* | *'with BFD'*)
15113 lt_cv_prog_gnu_ld=yes
15116 lt_cv_prog_gnu_ld=no
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15121 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15122 with_gnu_ld=$lt_cv_prog_gnu_ld
15130 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15131 # archiving commands below assume that GNU ld is being used.
15132 if test yes = "$with_gnu_ld"; then
15133 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15134 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'
15136 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15137 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15139 # If archive_cmds runs LD, not CC, wlarc should be empty
15140 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15141 # investigate it a little bit more. (MM)
15144 # ancient GNU ld didn't support --whole-archive et. al.
15145 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15146 $GREP 'no-whole-archive' > /dev/null; then
15147 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15149 whole_archive_flag_spec_CXX=
15155 # A generic and very simple default shared library creation
15156 # command for GNU C++ for the case where it uses the native
15157 # linker, instead of GNU ld. If possible, this setting should
15158 # overridden to take advantage of the native linker features on
15159 # the platform it is being used on.
15160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15163 # Commands to make compiler produce verbose output that lists
15164 # what "hidden" libraries, object files and flags are used when
15165 # linking a shared library.
15166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15174 # PORTME: fill in a description of your system's C++ link characteristics
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15176 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15180 # FIXME: insert proper C++ library support
15184 if test ia64 = "$host_cpu"; then
15185 # On IA64, the linker does run time linking by default, so we don't
15186 # have to do anything special.
15187 aix_use_runtimelinking=no
15188 exp_sym_flag='-Bexport'
15191 aix_use_runtimelinking=no
15193 # Test if we are trying to use run time linking or normal
15194 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15195 # have runtime linking enabled, and use it for executables.
15196 # For shared libraries, we enable/disable runtime linking
15197 # depending on the kind of the shared library created -
15198 # when "with_aix_soname,aix_use_runtimelinking" is:
15199 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15200 # "aix,yes" lib.so shared, rtl:yes, for executables
15201 # lib.a static archive
15202 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15203 # lib.a(lib.so.V) shared, rtl:no, for executables
15204 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15205 # lib.a(lib.so.V) shared, rtl:no
15206 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15207 # lib.a static archive
15208 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15209 for ld_flag in $LDFLAGS; do
15212 aix_use_runtimelinking=yes
15217 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15218 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15219 # so we don't have lib.a shared libs to link our executables.
15220 # We have to force runtime linking in this case.
15221 aix_use_runtimelinking=yes
15222 LDFLAGS="$LDFLAGS -Wl,-brtl"
15227 exp_sym_flag='-bexport'
15228 no_entry_flag='-bnoentry'
15231 # When large executables or shared objects are built, AIX ld can
15232 # have problems creating the table of contents. If linking a library
15233 # or program results in "error TOC overflow" add -mminimal-toc to
15234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15237 archive_cmds_CXX=''
15238 hardcode_direct_CXX=yes
15239 hardcode_direct_absolute_CXX=yes
15240 hardcode_libdir_separator_CXX=':'
15241 link_all_deplibs_CXX=yes
15242 file_list_spec_CXX='$wl-f,'
15243 case $with_aix_soname,$aix_use_runtimelinking in
15244 aix,*) ;; # no import file
15245 svr4,* | *,yes) # use import file
15246 # The Import File defines what to hardcode.
15247 hardcode_direct_CXX=no
15248 hardcode_direct_absolute_CXX=no
15252 if test yes = "$GXX"; then
15253 case $host_os in aix4.[012]|aix4.[012].*)
15254 # We only want to do this on AIX 4.2 and lower, the check
15255 # below for broken collect2 doesn't work under 4.3+
15256 collect2name=`$CC -print-prog-name=collect2`
15257 if test -f "$collect2name" &&
15258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15260 # We have reworked collect2
15263 # We have old collect2
15264 hardcode_direct_CXX=unsupported
15265 # It fails to find uninstalled libraries when the uninstalled
15266 # path is not listed in the libpath. Setting hardcode_minus_L
15267 # to unsupported forces relinking
15268 hardcode_minus_L_CXX=yes
15269 hardcode_libdir_flag_spec_CXX='-L$libdir'
15270 hardcode_libdir_separator_CXX=
15273 shared_flag='-shared'
15274 if test yes = "$aix_use_runtimelinking"; then
15275 shared_flag=$shared_flag' $wl-G'
15277 # Need to ensure runtime linking is disabled for the traditional
15278 # shared library, or the linker may eventually find shared libraries
15279 # /with/ Import File - we do not want to mix them.
15280 shared_flag_aix='-shared'
15281 shared_flag_svr4='-shared $wl-G'
15284 if test ia64 = "$host_cpu"; then
15285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15286 # chokes on -Wl,-G. The following line is correct:
15289 if test yes = "$aix_use_runtimelinking"; then
15290 shared_flag='$wl-G'
15292 shared_flag='$wl-bM:SRE'
15294 shared_flag_aix='$wl-bM:SRE'
15295 shared_flag_svr4='$wl-G'
15299 export_dynamic_flag_spec_CXX='$wl-bexpall'
15300 # It seems that -bexpall does not export symbols beginning with
15301 # underscore (_), so it is better to generate a list of symbols to
15303 always_export_symbols_CXX=yes
15304 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15305 # Warning - without using the other runtime loading flags (-brtl),
15306 # -berok will link without error, but may produce a broken library.
15307 # The "-G" linker flag allows undefined symbols.
15308 no_undefined_flag_CXX='-bernotok'
15309 # Determine the default libpath from the value encoded in an empty
15311 if test set = "${lt_cv_aix_libpath+set}"; then
15312 aix_libpath=$lt_cv_aix_libpath
15314 if ${lt_cv_aix_libpath__CXX+:} false; then :
15315 $as_echo_n "(cached) " >&6
15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15328 if ac_fn_cxx_try_link "$LINENO"; then :
15330 lt_aix_libpath_sed='
15331 /Import File Strings/,/^$/ {
15333 s/^0 *\([^ ]*\) *$/\1/
15337 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15338 # Check for a 64-bit object if we didn't find anything.
15339 if test -z "$lt_cv_aix_libpath__CXX"; then
15340 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 if test -z "$lt_cv_aix_libpath__CXX"; then
15346 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15351 aix_libpath=$lt_cv_aix_libpath__CXX
15354 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15356 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
15358 if test ia64 = "$host_cpu"; then
15359 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15360 allow_undefined_flag_CXX="-z nodefs"
15361 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"
15363 # Determine the default libpath from the value encoded in an
15364 # empty executable.
15365 if test set = "${lt_cv_aix_libpath+set}"; then
15366 aix_libpath=$lt_cv_aix_libpath
15368 if ${lt_cv_aix_libpath__CXX+:} false; then :
15369 $as_echo_n "(cached) " >&6
15371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15382 if ac_fn_cxx_try_link "$LINENO"; then :
15384 lt_aix_libpath_sed='
15385 /Import File Strings/,/^$/ {
15387 s/^0 *\([^ ]*\) *$/\1/
15391 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392 # Check for a 64-bit object if we didn't find anything.
15393 if test -z "$lt_cv_aix_libpath__CXX"; then
15394 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15397 rm -f core conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15399 if test -z "$lt_cv_aix_libpath__CXX"; then
15400 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15405 aix_libpath=$lt_cv_aix_libpath__CXX
15408 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15409 # Warning - without using the other run time loading flags,
15410 # -berok will link without error, but may produce a broken library.
15411 no_undefined_flag_CXX=' $wl-bernotok'
15412 allow_undefined_flag_CXX=' $wl-berok'
15413 if test yes = "$with_gnu_ld"; then
15414 # We only use this code for GNU lds that support --whole-archive.
15415 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15417 # Exported symbols can be pulled into shared objects from archives
15418 whole_archive_flag_spec_CXX='$convenience'
15420 archive_cmds_need_lc_CXX=yes
15421 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15422 # -brtl affects multiple linker settings, -berok does not and is overridden later
15423 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15424 if test svr4 != "$with_aix_soname"; then
15425 # This is similar to how AIX traditionally builds its shared
15426 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15427 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'
15429 if test aix != "$with_aix_soname"; then
15430 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'
15432 # used by -dlpreopen to get the symbols
15433 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15435 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15442 allow_undefined_flag_CXX=unsupported
15443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15444 # support --undefined. This deserves some investigation. FIXME
15445 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15452 case $cc_basename in
15454 # FIXME: insert proper C++ library support
15460 cygwin* | mingw* | pw32* | cegcc*)
15461 case $GXX,$cc_basename in
15464 # hardcode_libdir_flag_spec is actually meaningless, as there is
15465 # no search path for DLLs.
15466 hardcode_libdir_flag_spec_CXX=' '
15467 allow_undefined_flag_CXX=unsupported
15468 always_export_symbols_CXX=yes
15469 file_list_spec_CXX='@'
15470 # Tell ltmain to make .lib files, not .a files.
15472 # Tell ltmain to make .dll files, not .so files.
15474 # FIXME: Setting linknames here is a bad hack.
15475 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15476 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15477 cp "$export_symbols" "$output_objdir/$soname.def";
15478 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15480 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15482 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15484 # The linker will not automatically build a static lib if we build a DLL.
15485 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15486 enable_shared_with_static_runtimes_CXX=yes
15488 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15489 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15490 lt_tool_outputfile="@TOOL_OUTPUT@"~
15491 case $lt_outputfile in
15494 lt_outputfile=$lt_outputfile.exe
15495 lt_tool_outputfile=$lt_tool_outputfile.exe
15498 func_to_tool_file "$lt_outputfile"~
15499 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15500 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15501 $RM "$lt_outputfile.manifest";
15506 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15507 # as there is no search path for DLLs.
15508 hardcode_libdir_flag_spec_CXX='-L$libdir'
15509 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15510 allow_undefined_flag_CXX=unsupported
15511 always_export_symbols_CXX=no
15512 enable_shared_with_static_runtimes_CXX=yes
15514 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15515 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'
15516 # If the export-symbols file already is a .def file, use it as
15517 # is; otherwise, prepend EXPORTS...
15518 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15519 cp $export_symbols $output_objdir/$soname.def;
15521 echo EXPORTS > $output_objdir/$soname.def;
15522 cat $export_symbols >> $output_objdir/$soname.def;
15524 $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'
15531 darwin* | rhapsody*)
15534 archive_cmds_need_lc_CXX=no
15535 hardcode_direct_CXX=no
15536 hardcode_automatic_CXX=yes
15537 hardcode_shlibpath_var_CXX=unsupported
15538 if test yes = "$lt_cv_ld_force_load"; then
15539 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\"`'
15542 whole_archive_flag_spec_CXX=''
15544 link_all_deplibs_CXX=yes
15545 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15546 case $cc_basename in
15547 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15548 *) _lt_dar_can_shared=$GCC ;;
15550 if test yes = "$_lt_dar_can_shared"; then
15551 output_verbose_link_cmd=func_echo_all
15552 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"
15553 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15554 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"
15555 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"
15556 if test yes != "$lt_cv_apple_cc_single_mod"; then
15557 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"
15558 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"
15568 hardcode_libdir_flag_spec_CXX='-L$libdir'
15569 hardcode_minus_L_CXX=yes
15570 allow_undefined_flag_CXX=unsupported
15572 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15575 $ECHO EXPORTS >> $output_objdir/$libname.def~
15576 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15577 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15578 emximp -o $lib $output_objdir/$libname.def'
15579 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15580 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15581 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15582 $ECHO EXPORTS >> $output_objdir/$libname.def~
15583 prefix_cmds="$SED"~
15584 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15585 prefix_cmds="$prefix_cmds -e 1d";
15587 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15588 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15589 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15590 emximp -o $lib $output_objdir/$libname.def'
15591 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15592 enable_shared_with_static_runtimes_CXX=yes
15596 case $cc_basename in
15598 # FIXME: insert proper C++ library support
15602 # Green Hills C++ Compiler
15603 # FIXME: insert proper C++ library support
15607 # FIXME: insert proper C++ library support
15614 # C++ shared libraries reported to be fairly broken before
15620 archive_cmds_need_lc_CXX=no
15623 freebsd* | dragonfly*)
15624 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15630 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15631 link_all_deplibs_CXX=yes
15635 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15636 hardcode_libdir_separator_CXX=:
15637 export_dynamic_flag_spec_CXX='$wl-E'
15638 hardcode_direct_CXX=yes
15639 hardcode_minus_L_CXX=yes # Not in the search PATH,
15640 # but as the default
15641 # location of the library.
15643 case $cc_basename in
15645 # FIXME: insert proper C++ library support
15649 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'
15650 # Commands to make compiler produce verbose output that lists
15651 # what "hidden" libraries, object files and flags are used when
15652 # linking a shared library.
15654 # There doesn't appear to be a way to prevent this compiler from
15655 # explicitly linking system object files so we need to strip them
15656 # from the output so that they don't get included in the library
15658 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"'
15661 if test yes = "$GXX"; then
15662 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'
15664 # FIXME: insert proper C++ library support
15672 if test no = "$with_gnu_ld"; then
15673 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15674 hardcode_libdir_separator_CXX=:
15680 export_dynamic_flag_spec_CXX='$wl-E'
15686 hardcode_direct_CXX=no
15687 hardcode_shlibpath_var_CXX=no
15690 hardcode_direct_CXX=yes
15691 hardcode_direct_absolute_CXX=yes
15692 hardcode_minus_L_CXX=yes # Not in the search PATH,
15693 # but as the default
15694 # location of the library.
15698 case $cc_basename in
15700 # FIXME: insert proper C++ library support
15706 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15709 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15712 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15715 # Commands to make compiler produce verbose output that lists
15716 # what "hidden" libraries, object files and flags are used when
15717 # linking a shared library.
15719 # There doesn't appear to be a way to prevent this compiler from
15720 # explicitly linking system object files so we need to strip them
15721 # from the output so that they don't get included in the library
15723 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"'
15726 if test yes = "$GXX"; then
15727 if test no = "$with_gnu_ld"; then
15730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15733 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15736 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'
15741 # FIXME: insert proper C++ library support
15749 hardcode_direct_CXX=no
15750 hardcode_shlibpath_var_CXX=no
15751 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15752 export_dynamic_flag_spec_CXX='$wl-E'
15753 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15754 # Instead, shared libraries are loaded at an image base (0x10000000 by
15755 # default) and relocated if they conflict, which is a slow very memory
15756 # consuming and fragmenting process. To avoid this, we pick a random,
15757 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15758 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15759 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'
15760 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'
15763 case $cc_basename in
15766 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'
15768 # Archives containing C++ object files must be created using
15769 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15770 # necessary to make sure instantiated templates are included
15772 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15775 if test yes = "$GXX"; then
15776 if test no = "$with_gnu_ld"; then
15777 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'
15779 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'
15782 link_all_deplibs_CXX=yes
15785 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15786 hardcode_libdir_separator_CXX=:
15787 inherit_rpath_CXX=yes
15790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15791 case $cc_basename in
15793 # Kuck and Associates, Inc. (KAI) C++ Compiler
15795 # KCC will only create a shared library if the output file
15796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15797 # to its proper name (with version) after linking.
15798 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'
15799 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'
15800 # Commands to make compiler produce verbose output that lists
15801 # what "hidden" libraries, object files and flags are used when
15802 # linking a shared library.
15804 # There doesn't appear to be a way to prevent this compiler from
15805 # explicitly linking system object files so we need to strip them
15806 # from the output so that they don't get included in the library
15808 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"'
15810 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15811 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15813 # Archives containing C++ object files must be created using
15814 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15815 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15820 # version 8.0 and above of icpc choke on multiply defined symbols
15821 # if we add $predep_objects and $postdep_objects, however 7.1 and
15822 # earlier do not add the objects themselves.
15823 case `$CC -V 2>&1` in
15825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15826 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'
15828 *) # Version 8.0 or newer
15831 ia64*) tmp_idyn=' -i_dynamic';;
15833 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15834 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'
15837 archive_cmds_need_lc_CXX=no
15838 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15839 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15840 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15843 # Portland Group C++ compiler
15845 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15846 prelink_cmds_CXX='tpldir=Template.dir~
15848 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15849 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15850 old_archive_cmds_CXX='tpldir=Template.dir~
15852 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15853 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15855 archive_cmds_CXX='tpldir=Template.dir~
15857 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15858 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15859 archive_expsym_cmds_CXX='tpldir=Template.dir~
15861 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15862 $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'
15864 *) # Version 6 and above use weak symbols
15865 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15866 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'
15870 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15871 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15872 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'
15876 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15877 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'
15879 runpath_var=LD_RUN_PATH
15880 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15881 hardcode_libdir_separator_CXX=:
15883 # Commands to make compiler produce verbose output that lists
15884 # what "hidden" libraries, object files and flags are used when
15885 # linking a shared library.
15887 # There doesn't appear to be a way to prevent this compiler from
15888 # explicitly linking system object files so we need to strip them
15889 # from the output so that they don't get included in the library
15891 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'
15893 xl* | mpixl* | bgxl*)
15894 # IBM XL 8.0 on PPC, with GNU ld
15895 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15896 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15897 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15898 if test yes = "$supports_anon_versioning"; then
15899 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15901 echo "local: *; };" >> $output_objdir/$libname.ver~
15902 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15906 case `$CC -V 2>&1 | sed 5q` in
15909 no_undefined_flag_CXX=' -zdefs'
15910 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15911 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'
15912 hardcode_libdir_flag_spec_CXX='-R$libdir'
15913 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'
15914 compiler_needs_object_CXX=yes
15916 # Not sure whether something based on
15917 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15919 output_verbose_link_cmd='func_echo_all'
15921 # Archives containing C++ object files must be created using
15922 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15923 # necessary to make sure instantiated templates are included
15925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15933 # FIXME: insert proper C++ library support
15938 # FIXME: insert proper C++ library support
15943 case $cc_basename in
15945 # FIXME: insert proper C++ library support
15949 # FIXME: insert proper C++ library support
15956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15957 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15959 hardcode_libdir_flag_spec_CXX='-R$libdir'
15960 hardcode_direct_CXX=yes
15961 hardcode_shlibpath_var_CXX=no
15963 # Workaround some broken pre-1.5 toolchains
15964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15971 openbsd* | bitrig*)
15972 if test -f /usr/libexec/ld.so; then
15973 hardcode_direct_CXX=yes
15974 hardcode_shlibpath_var_CXX=no
15975 hardcode_direct_absolute_CXX=yes
15976 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15977 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15979 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15980 export_dynamic_flag_spec_CXX='$wl-E'
15981 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15983 output_verbose_link_cmd=func_echo_all
15989 osf3* | osf4* | osf5*)
15990 case $cc_basename in
15992 # Kuck and Associates, Inc. (KAI) C++ Compiler
15994 # KCC will only create a shared library if the output file
15995 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15996 # to its proper name (with version) after linking.
15997 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'
15999 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16000 hardcode_libdir_separator_CXX=:
16002 # Archives containing C++ object files must be created using
16003 # the KAI C++ compiler.
16005 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16006 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16010 # Rational C++ 2.4.1
16011 # FIXME: insert proper C++ library support
16017 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16018 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'
16019 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16022 allow_undefined_flag_CXX=' -expect_unresolved \*'
16023 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'
16024 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16025 echo "-hidden">> $lib.exp~
16026 $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~
16028 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16032 hardcode_libdir_separator_CXX=:
16034 # Commands to make compiler produce verbose output that lists
16035 # what "hidden" libraries, object files and flags are used when
16036 # linking a shared library.
16038 # There doesn't appear to be a way to prevent this compiler from
16039 # explicitly linking system object files so we need to strip them
16040 # from the output so that they don't get included in the library
16042 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"'
16045 if test yes,no = "$GXX,$with_gnu_ld"; then
16046 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16049 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'
16052 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'
16056 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16057 hardcode_libdir_separator_CXX=:
16059 # Commands to make compiler produce verbose output that lists
16060 # what "hidden" libraries, object files and flags are used when
16061 # linking a shared library.
16062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16065 # FIXME: insert proper C++ library support
16073 # FIXME: insert proper C++ library support
16078 case $cc_basename in
16081 # FIXME: insert proper C++ library support
16086 # FIXME: insert proper C++ library support
16090 # FIXME: insert proper C++ library support
16097 case $cc_basename in
16099 # Sun C++ 4.2, 5.x and Centerline C++
16100 archive_cmds_need_lc_CXX=yes
16101 no_undefined_flag_CXX=' -zdefs'
16102 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16103 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16104 $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'
16106 hardcode_libdir_flag_spec_CXX='-R$libdir'
16107 hardcode_shlibpath_var_CXX=no
16109 solaris2.[0-5] | solaris2.[0-5].*) ;;
16111 # The compiler driver will combine and reorder linker options,
16112 # but understands '-z linker_flag'.
16113 # Supported since Solaris 2.6 (maybe 2.5.1?)
16114 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16117 link_all_deplibs_CXX=yes
16119 output_verbose_link_cmd='func_echo_all'
16121 # Archives containing C++ object files must be created using
16122 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16123 # necessary to make sure instantiated templates are included
16125 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16128 # Green Hills C++ Compiler
16129 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16131 # The C++ compiler must be used to create the archive.
16132 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16135 # GNU C++ compiler with Solaris linker
16136 if test yes,no = "$GXX,$with_gnu_ld"; then
16137 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16138 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16139 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16140 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16141 $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'
16143 # Commands to make compiler produce verbose output that lists
16144 # what "hidden" libraries, object files and flags are used when
16145 # linking a shared library.
16146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16148 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16150 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16151 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16152 $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'
16154 # Commands to make compiler produce verbose output that lists
16155 # what "hidden" libraries, object files and flags are used when
16156 # linking a shared library.
16157 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16160 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16162 solaris2.[0-5] | solaris2.[0-5].*) ;;
16164 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16173 no_undefined_flag_CXX='$wl-z,text'
16174 archive_cmds_need_lc_CXX=no
16175 hardcode_shlibpath_var_CXX=no
16176 runpath_var='LD_RUN_PATH'
16178 case $cc_basename in
16180 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16181 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16184 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16185 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 sysv5* | sco3.2v5* | sco5v6*)
16191 # Note: We CANNOT use -z defs as we might desire, because we do not
16192 # link with -lc, and that would cause any symbols used from libc to
16193 # always be unresolved, which means just about no library would
16194 # ever link correctly. If we're not using GNU ld we use -z text
16195 # though, which does catch some bad symbols but isn't as heavy-handed
16197 no_undefined_flag_CXX='$wl-z,text'
16198 allow_undefined_flag_CXX='$wl-z,nodefs'
16199 archive_cmds_need_lc_CXX=no
16200 hardcode_shlibpath_var_CXX=no
16201 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16202 hardcode_libdir_separator_CXX=':'
16203 link_all_deplibs_CXX=yes
16204 export_dynamic_flag_spec_CXX='$wl-Bexport'
16205 runpath_var='LD_RUN_PATH'
16207 case $cc_basename in
16209 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16210 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16211 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16212 '"$old_archive_cmds_CXX"
16213 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16214 '"$reload_cmds_CXX"
16217 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 case $cc_basename in
16226 # NonStop-UX NCC 3.20
16227 # FIXME: insert proper C++ library support
16231 # FIXME: insert proper C++ library support
16238 # FIXME: insert proper C++ library support
16243 # FIXME: insert proper C++ library support
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16249 $as_echo "$ld_shlibs_CXX" >&6; }
16250 test no = "$ld_shlibs_CXX" && can_build_shared=no
16256 ## There is no encapsulation within the following macros, do not change
16257 ## the running order or otherwise move them around unless you know exactly
16258 ## what you are doing...
16259 # Dependencies to place before and after the object being linked:
16260 predep_objects_CXX=
16261 postdep_objects_CXX=
16264 compiler_lib_search_path_CXX=
16266 cat > conftest.$ac_ext <<_LT_EOF
16270 Foo (void) { a = 0; }
16277 _lt_libdeps_save_CFLAGS=$CFLAGS
16278 case "$CC $CFLAGS " in #(
16279 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16280 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16281 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16285 (eval $ac_compile) 2>&5
16287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16288 test $ac_status = 0; }; then
16289 # Parse the compiler output and extract the necessary
16290 # objects, libraries and library flags.
16292 # Sentinel used to keep track of whether or not we are before
16293 # the conftest object file.
16294 pre_test_object_deps_done=no
16296 for p in `eval "$output_verbose_link_cmd"`; do
16300 # Some compilers place space between "-{L,R}" and the path.
16301 # Remove the space.
16302 if test x-L = "$p" ||
16303 test x-R = "$p"; then
16308 # Expand the sysroot to ease extracting the directories later.
16309 if test -z "$prev"; then
16311 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16312 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16313 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16317 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16319 if test no = "$pre_test_object_deps_done"; then
16322 # Internal compiler library paths should come after those
16323 # provided the user. The postdeps already come after the
16324 # user supplied libs so there is no need to process them.
16325 if test -z "$compiler_lib_search_path_CXX"; then
16326 compiler_lib_search_path_CXX=$prev$p
16328 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16331 # The "-l" case would never come before the object being
16332 # linked, so don't bother handling this case.
16335 if test -z "$postdeps_CXX"; then
16336 postdeps_CXX=$prev$p
16338 postdeps_CXX="${postdeps_CXX} $prev$p"
16344 *.lto.$objext) ;; # Ignore GCC LTO objects
16346 # This assumes that the test object file only shows up
16347 # once in the compiler output.
16348 if test "$p" = "conftest.$objext"; then
16349 pre_test_object_deps_done=yes
16353 if test no = "$pre_test_object_deps_done"; then
16354 if test -z "$predep_objects_CXX"; then
16355 predep_objects_CXX=$p
16357 predep_objects_CXX="$predep_objects_CXX $p"
16360 if test -z "$postdep_objects_CXX"; then
16361 postdep_objects_CXX=$p
16363 postdep_objects_CXX="$postdep_objects_CXX $p"
16368 *) ;; # Ignore the rest.
16376 echo "libtool.m4: error: problem compiling CXX test program"
16379 $RM -f confest.$objext
16380 CFLAGS=$_lt_libdeps_save_CFLAGS
16382 # PORTME: override above test on systems where it is broken
16385 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16386 # hack all around it, let's just trust "g++" to DTRT.
16387 predep_objects_CXX=
16388 postdep_objects_CXX=
16394 case " $postdeps_CXX " in
16395 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16397 compiler_lib_search_dirs_CXX=
16398 if test -n "${compiler_lib_search_path_CXX}"; then
16399 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16432 lt_prog_compiler_wl_CXX=
16433 lt_prog_compiler_pic_CXX=
16434 lt_prog_compiler_static_CXX=
16437 # C++ specific cases for pic, static, wl, etc.
16438 if test yes = "$GXX"; then
16439 lt_prog_compiler_wl_CXX='-Wl,'
16440 lt_prog_compiler_static_CXX='-static'
16444 # All AIX code is PIC.
16445 if test ia64 = "$host_cpu"; then
16446 # AIX 5 now supports IA64 processor
16447 lt_prog_compiler_static_CXX='-Bstatic'
16449 lt_prog_compiler_pic_CXX='-fPIC'
16455 # see comment about AmigaOS4 .so support
16456 lt_prog_compiler_pic_CXX='-fPIC'
16459 # FIXME: we need at least 68020 code to build shared libraries, but
16460 # adding the '-m68020' flag to GCC prevents building anything better,
16462 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16467 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16468 # PIC is the default for these OSes.
16470 mingw* | cygwin* | os2* | pw32* | cegcc*)
16471 # This hack is so that the source file can tell whether it is being
16472 # built for inclusion in a dll (and should export symbols for example).
16473 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16474 # (--disable-auto-import) libraries
16475 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16478 lt_prog_compiler_static_CXX='$wl-static'
16482 darwin* | rhapsody*)
16483 # PIC is the default on this platform
16484 # Common symbols not allowed in MH_DYLIB files
16485 lt_prog_compiler_pic_CXX='-fno-common'
16488 # DJGPP does not support shared libraries at all
16489 lt_prog_compiler_pic_CXX=
16492 # PIC is the default for Haiku.
16493 # The "-static" flag exists, but is broken.
16494 lt_prog_compiler_static_CXX=
16497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16498 # Instead, we relocate shared libraries at runtime.
16501 if test -d /usr/nec; then
16502 lt_prog_compiler_pic_CXX=-Kconform_pic
16506 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16507 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16508 # sets the default TLS model and affects inlining.
16513 lt_prog_compiler_pic_CXX='-fPIC'
16518 # QNX uses GNU C++, but need to define -shared option too, otherwise
16519 # it will coredump.
16520 lt_prog_compiler_pic_CXX='-fPIC -shared'
16523 lt_prog_compiler_pic_CXX='-fPIC'
16529 # All AIX code is PIC.
16530 if test ia64 = "$host_cpu"; then
16531 # AIX 5 now supports IA64 processor
16532 lt_prog_compiler_static_CXX='-Bstatic'
16534 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16538 case $cc_basename in
16540 # Green Hills C++ Compiler
16541 # _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"
16545 mingw* | cygwin* | os2* | pw32* | cegcc*)
16546 # This hack is so that the source file can tell whether it is being
16547 # built for inclusion in a dll (and should export symbols for example).
16548 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16551 case $cc_basename in
16553 lt_prog_compiler_pic_CXX='-KPIC'
16556 # Green Hills C++ Compiler
16557 lt_prog_compiler_pic_CXX='-pic'
16563 freebsd* | dragonfly*)
16564 # FreeBSD uses GNU C++
16566 hpux9* | hpux10* | hpux11*)
16567 case $cc_basename in
16569 lt_prog_compiler_wl_CXX='-Wl,'
16570 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16571 if test ia64 != "$host_cpu"; then
16572 lt_prog_compiler_pic_CXX='+Z'
16576 lt_prog_compiler_wl_CXX='-Wl,'
16577 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16583 lt_prog_compiler_pic_CXX='+Z'
16592 # This is c89, which is MS Visual C++ (no shared libs)
16593 # Anyone wants to do a port?
16595 irix5* | irix6* | nonstopux*)
16596 case $cc_basename in
16598 lt_prog_compiler_wl_CXX='-Wl,'
16599 lt_prog_compiler_static_CXX='-non_shared'
16600 # CC pic flag -KPIC is the default.
16606 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16607 case $cc_basename in
16610 lt_prog_compiler_wl_CXX='--backend -Wl,'
16611 lt_prog_compiler_pic_CXX='-fPIC'
16614 # old Intel C++ for x86_64, which still supported -KPIC.
16615 lt_prog_compiler_wl_CXX='-Wl,'
16616 lt_prog_compiler_pic_CXX='-KPIC'
16617 lt_prog_compiler_static_CXX='-static'
16620 # Intel C++, used to be incompatible with GCC.
16621 # ICC 10 doesn't accept -KPIC any more.
16622 lt_prog_compiler_wl_CXX='-Wl,'
16623 lt_prog_compiler_pic_CXX='-fPIC'
16624 lt_prog_compiler_static_CXX='-static'
16627 # Portland Group C++ compiler
16628 lt_prog_compiler_wl_CXX='-Wl,'
16629 lt_prog_compiler_pic_CXX='-fpic'
16630 lt_prog_compiler_static_CXX='-Bstatic'
16634 # Make sure the PIC flag is empty. It appears that all Alpha
16635 # Linux and Compaq Tru64 Unix objects are PIC.
16636 lt_prog_compiler_pic_CXX=
16637 lt_prog_compiler_static_CXX='-non_shared'
16639 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16640 # IBM XL 8.0, 9.0 on PPC and BlueGene
16641 lt_prog_compiler_wl_CXX='-Wl,'
16642 lt_prog_compiler_pic_CXX='-qpic'
16643 lt_prog_compiler_static_CXX='-qstaticlink'
16646 case `$CC -V 2>&1 | sed 5q` in
16649 lt_prog_compiler_pic_CXX='-KPIC'
16650 lt_prog_compiler_static_CXX='-Bstatic'
16651 lt_prog_compiler_wl_CXX='-Qoption ld '
16662 case $cc_basename in
16664 lt_prog_compiler_pic_CXX='-W c,exportall'
16670 netbsd* | netbsdelf*-gnu)
16673 # QNX uses GNU C++, but need to define -shared option too, otherwise
16674 # it will coredump.
16675 lt_prog_compiler_pic_CXX='-fPIC -shared'
16677 osf3* | osf4* | osf5*)
16678 case $cc_basename in
16680 lt_prog_compiler_wl_CXX='--backend -Wl,'
16683 # Rational C++ 2.4.1
16684 lt_prog_compiler_pic_CXX='-pic'
16687 # Digital/Compaq C++
16688 lt_prog_compiler_wl_CXX='-Wl,'
16689 # Make sure the PIC flag is empty. It appears that all Alpha
16690 # Linux and Compaq Tru64 Unix objects are PIC.
16691 lt_prog_compiler_pic_CXX=
16692 lt_prog_compiler_static_CXX='-non_shared'
16701 case $cc_basename in
16703 # Sun C++ 4.2, 5.x and Centerline C++
16704 lt_prog_compiler_pic_CXX='-KPIC'
16705 lt_prog_compiler_static_CXX='-Bstatic'
16706 lt_prog_compiler_wl_CXX='-Qoption ld '
16709 # Green Hills C++ Compiler
16710 lt_prog_compiler_pic_CXX='-PIC'
16717 case $cc_basename in
16720 lt_prog_compiler_pic_CXX='-pic'
16721 lt_prog_compiler_static_CXX='-Bstatic'
16725 lt_prog_compiler_pic_CXX='-pic'
16731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16732 case $cc_basename in
16734 lt_prog_compiler_wl_CXX='-Wl,'
16735 lt_prog_compiler_pic_CXX='-KPIC'
16736 lt_prog_compiler_static_CXX='-Bstatic'
16741 case $cc_basename in
16743 # NonStop-UX NCC 3.20
16744 lt_prog_compiler_pic_CXX='-KPIC'
16753 lt_prog_compiler_can_build_shared_CXX=no
16759 # For platforms that do not support PIC, -DPIC is meaningless:
16761 lt_prog_compiler_pic_CXX=
16764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16769 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16770 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16771 $as_echo_n "(cached) " >&6
16773 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16776 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16777 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16780 # Check to make sure the PIC flag actually works.
16782 if test -n "$lt_prog_compiler_pic_CXX"; then
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16784 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16785 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16786 $as_echo_n "(cached) " >&6
16788 lt_cv_prog_compiler_pic_works_CXX=no
16789 ac_outfile=conftest.$ac_objext
16790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16791 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16792 # Insert the option either (1) after the last *FLAGS variable, or
16793 # (2) before a word containing "conftest.", or (3) at the end.
16794 # Note that $ac_compile itself does not contain backslashes and begins
16795 # with a dollar sign (not a hyphen), so the echo should work correctly.
16796 # The option is referenced via a variable to avoid confusing sed.
16797 lt_compile=`echo "$ac_compile" | $SED \
16798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16800 -e 's:$: $lt_compiler_flag:'`
16801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16802 (eval "$lt_compile" 2>conftest.err)
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 if (exit $ac_status) && test -s "$ac_outfile"; then
16807 # The compiler can only warn and ignore the option if not recognized
16808 # So say no if there are warnings other than the usual output.
16809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16812 lt_cv_prog_compiler_pic_works_CXX=yes
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16819 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16821 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16822 case $lt_prog_compiler_pic_CXX in
16824 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16827 lt_prog_compiler_pic_CXX=
16828 lt_prog_compiler_can_build_shared_CXX=no
16838 # Check to make sure the static flag actually works.
16840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16843 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16844 $as_echo_n "(cached) " >&6
16846 lt_cv_prog_compiler_static_works_CXX=no
16847 save_LDFLAGS=$LDFLAGS
16848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16851 # The linker can only warn and ignore the option if not recognized
16852 # So say no if there are warnings
16853 if test -s conftest.err; then
16854 # Append any errors to the config.log.
16855 cat conftest.err 1>&5
16856 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16858 if diff conftest.exp conftest.er2 >/dev/null; then
16859 lt_cv_prog_compiler_static_works_CXX=yes
16862 lt_cv_prog_compiler_static_works_CXX=yes
16866 LDFLAGS=$save_LDFLAGS
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16870 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16872 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16875 lt_prog_compiler_static_CXX=
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16882 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16883 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16884 $as_echo_n "(cached) " >&6
16886 lt_cv_prog_compiler_c_o_CXX=no
16887 $RM -r conftest 2>/dev/null
16891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16893 lt_compiler_flag="-o out/conftest2.$ac_objext"
16894 # Insert the option either (1) after the last *FLAGS variable, or
16895 # (2) before a word containing "conftest.", or (3) at the end.
16896 # Note that $ac_compile itself does not contain backslashes and begins
16897 # with a dollar sign (not a hyphen), so the echo should work correctly.
16898 lt_compile=`echo "$ac_compile" | $SED \
16899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16901 -e 's:$: $lt_compiler_flag:'`
16902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16903 (eval "$lt_compile" 2>out/conftest.err)
16905 cat out/conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16909 # The compiler can only warn and ignore the option if not recognized
16910 # So say no if there are warnings
16911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16914 lt_cv_prog_compiler_c_o_CXX=yes
16919 # SGI C++ compiler will create directory out/ii_files/ for
16920 # template instantiation
16921 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16922 $RM out/* && rmdir out
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16929 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16934 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16935 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16936 $as_echo_n "(cached) " >&6
16938 lt_cv_prog_compiler_c_o_CXX=no
16939 $RM -r conftest 2>/dev/null
16943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16945 lt_compiler_flag="-o out/conftest2.$ac_objext"
16946 # Insert the option either (1) after the last *FLAGS variable, or
16947 # (2) before a word containing "conftest.", or (3) at the end.
16948 # Note that $ac_compile itself does not contain backslashes and begins
16949 # with a dollar sign (not a hyphen), so the echo should work correctly.
16950 lt_compile=`echo "$ac_compile" | $SED \
16951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16953 -e 's:$: $lt_compiler_flag:'`
16954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16955 (eval "$lt_compile" 2>out/conftest.err)
16957 cat out/conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16961 # The compiler can only warn and ignore the option if not recognized
16962 # So say no if there are warnings
16963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16966 lt_cv_prog_compiler_c_o_CXX=yes
16971 # SGI C++ compiler will create directory out/ii_files/ for
16972 # template instantiation
16973 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16974 $RM out/* && rmdir out
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16981 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16986 hard_links=nottested
16987 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16988 # do not overwrite the value of need_locks provided by the user
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16990 $as_echo_n "checking if we can lock with hard links... " >&6; }
16993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16995 ln conftest.a conftest.b 2>&5 || hard_links=no
16996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16998 $as_echo "$hard_links" >&6; }
16999 if test no = "$hard_links"; then
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17001 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17011 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17013 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17014 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17017 # If we're using GNU nm, then we don't want the "-C" option.
17018 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17019 # Without the "-l" option, or with the "-B" option, AIX nm treats
17020 # weak defined symbols like other global defined symbols, whereas
17021 # GNU nm marks them as "W".
17022 # While the 'weak' keyword is ignored in the Export File, we need
17023 # it in the Import File for the 'aix-soname' feature, so we have
17024 # to replace the "-B" option with "-P" for AIX nm.
17025 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17026 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'
17028 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'
17032 export_symbols_cmds_CXX=$ltdll_cmds
17034 cygwin* | mingw* | cegcc*)
17035 case $cc_basename in
17037 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17040 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'
17041 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17045 linux* | k*bsd*-gnu | gnu*)
17046 link_all_deplibs_CXX=no
17049 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17054 $as_echo "$ld_shlibs_CXX" >&6; }
17055 test no = "$ld_shlibs_CXX" && can_build_shared=no
17057 with_gnu_ld_CXX=$with_gnu_ld
17065 # Do we need to explicitly link libc?
17067 case "x$archive_cmds_need_lc_CXX" in
17069 # Assume -lc should be added
17070 archive_cmds_need_lc_CXX=yes
17072 if test yes,yes = "$GCC,$enable_shared"; then
17073 case $archive_cmds_CXX in
17075 # FIXME: we may have to deal with multi-command sequences.
17078 # Test whether the compiler implicitly links with -lc since on some
17079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17080 # to ld, don't add -lc before -lgcc.
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17083 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17084 $as_echo_n "(cached) " >&6
17087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17090 (eval $ac_compile) 2>&5
17092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093 test $ac_status = 0; } 2>conftest.err; then
17096 libobjs=conftest.$ac_objext
17098 wl=$lt_prog_compiler_wl_CXX
17099 pic_flag=$lt_prog_compiler_pic_CXX
17105 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17106 allow_undefined_flag_CXX=
17107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17108 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17111 test $ac_status = 0; }
17113 lt_cv_archive_cmds_need_lc_CXX=no
17115 lt_cv_archive_cmds_need_lc_CXX=yes
17117 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17119 cat conftest.err 1>&5
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17125 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17126 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17197 library_names_spec=
17198 libname_spec='lib$name'
17202 postuninstall_cmds=
17206 shlibpath_overrides_runpath=unknown
17208 dynamic_linker="$host_os ld.so"
17209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17210 need_lib_prefix=unknown
17211 hardcode_into_libs=no
17213 # when you set need_version to no, make sure it does not cause -set_version
17214 # flags to be left without arguments
17215 need_version=unknown
17221 version_type=linux # correct to gnu/linux during the next big refactor
17222 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17223 shlibpath_var=LIBPATH
17225 # AIX 3 has no versioning support, so we append a major version to the name.
17226 soname_spec='$libname$release$shared_ext$major'
17230 version_type=linux # correct to gnu/linux during the next big refactor
17233 hardcode_into_libs=yes
17234 if test ia64 = "$host_cpu"; then
17235 # AIX 5 supports IA64
17236 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17237 shlibpath_var=LD_LIBRARY_PATH
17239 # With GCC up to 2.95.x, collect2 would create an import file
17240 # for dependence libraries. The import file would start with
17241 # the line '#! .'. This would cause the generated library to
17242 # depend on '.', always an invalid library. This was fixed in
17243 # development snapshots of GCC prior to 3.0.
17245 aix4 | aix4.[01] | aix4.[01].*)
17246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17248 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17251 can_build_shared=no
17255 # Using Import Files as archive members, it is possible to support
17256 # filename-based versioning of shared library archives on AIX. While
17257 # this would work for both with and without runtime linking, it will
17258 # prevent static linking of such archives. So we do filename-based
17259 # shared library versioning with .so extension only, which is used
17260 # when both runtime linking and shared linking is enabled.
17261 # Unfortunately, runtime linking may impact performance, so we do
17262 # not want this to be the default eventually. Also, we use the
17263 # versioned .so libs for executables only if there is the -brtl
17264 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17265 # To allow for filename-based versioning support, we need to create
17266 # libNAME.so.V as an archive file, containing:
17267 # *) an Import File, referring to the versioned filename of the
17268 # archive as well as the shared archive member, telling the
17269 # bitwidth (32 or 64) of that shared object, and providing the
17270 # list of exported symbols of that shared object, eventually
17271 # decorated with the 'weak' keyword
17272 # *) the shared object with the F_LOADONLY flag set, to really avoid
17273 # it being seen by the linker.
17274 # At run time we better use the real file rather than another symlink,
17275 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17277 case $with_aix_soname,$aix_use_runtimelinking in
17278 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17279 # soname into executable. Probably we can add versioning support to
17280 # collect2, so additional links can be useful in future.
17281 aix,yes) # traditional libtool
17282 dynamic_linker='AIX unversionable lib.so'
17283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17284 # instead of lib<name>.a to let people know that these are not
17285 # typical AIX shared libraries.
17286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17288 aix,no) # traditional AIX only
17289 dynamic_linker='AIX lib.a(lib.so.V)'
17290 # We preserve .a as extension for shared libraries through AIX4.2
17291 # and later when we are not doing run time linking.
17292 library_names_spec='$libname$release.a $libname.a'
17293 soname_spec='$libname$release$shared_ext$major'
17295 svr4,*) # full svr4 only
17296 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17297 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17298 # We do not specify a path in Import Files, so LIBPATH fires.
17299 shlibpath_overrides_runpath=yes
17301 *,yes) # both, prefer svr4
17302 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17303 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17304 # unpreferred sharedlib libNAME.a needs extra handling
17305 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"'
17306 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"'
17307 # We do not specify a path in Import Files, so LIBPATH fires.
17308 shlibpath_overrides_runpath=yes
17310 *,no) # both, prefer aix
17311 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17312 library_names_spec='$libname$release.a $libname.a'
17313 soname_spec='$libname$release$shared_ext$major'
17314 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17315 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)'
17316 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"'
17319 shlibpath_var=LIBPATH
17326 # Since July 2007 AmigaOS4 officially supports .so libraries.
17327 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17331 library_names_spec='$libname.ixlibrary $libname.a'
17332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17333 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'
17339 library_names_spec='$libname$shared_ext'
17340 dynamic_linker="$host_os ld.so"
17341 shlibpath_var=LIBRARY_PATH
17345 version_type=linux # correct to gnu/linux during the next big refactor
17347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17348 soname_spec='$libname$release$shared_ext$major'
17349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17353 # the default ld.so.conf also contains /usr/contrib/lib and
17354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17355 # libtool to hard-code these into programs
17358 cygwin* | mingw* | pw32* | cegcc*)
17359 version_type=windows
17364 case $GCC,$cc_basename in
17367 library_names_spec='$libname.dll.a'
17368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17369 postinstall_cmds='base_file=`basename \$file`~
17370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17371 dldir=$destdir/`dirname \$dlpath`~
17372 test -d \$dldir || mkdir -p \$dldir~
17373 $install_prog $dir/$dlname \$dldir/$dlname~
17374 chmod a+x \$dldir/$dlname~
17375 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17376 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17379 dlpath=$dir/\$dldll~
17381 shlibpath_overrides_runpath=yes
17385 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17386 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17390 # MinGW DLLs use traditional 'lib' prefix
17391 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17394 # pw32 DLLs use 'pw' prefix rather than 'lib'
17395 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17398 dynamic_linker='Win32 ld.exe'
17403 libname_spec='$name'
17404 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17405 library_names_spec='$libname.dll.lib'
17409 sys_lib_search_path_spec=
17412 for lt_path in $LIB
17415 # Let DOS variable expansion print the short 8.3 style file name.
17416 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17417 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17420 # Convert to MSYS style.
17421 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17424 # Convert to unix form, then to dos form, then back to unix form
17425 # but this time dos style (no spaces!) so that the unix form looks
17426 # like /cygdrive/c/PROGRA~1:/cygdr...
17427 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17428 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17429 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17432 sys_lib_search_path_spec=$LIB
17433 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17434 # It is most probably a Windows format PATH.
17435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17437 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17439 # FIXME: find the short name or the path components, as spaces are
17440 # common. (e.g. "Program Files" -> "PROGRA~1")
17444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17445 postinstall_cmds='base_file=`basename \$file`~
17446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17447 dldir=$destdir/`dirname \$dlpath`~
17448 test -d \$dldir || mkdir -p \$dldir~
17449 $install_prog $dir/$dlname \$dldir/$dlname'
17450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17451 dlpath=$dir/\$dldll~
17453 shlibpath_overrides_runpath=yes
17454 dynamic_linker='Win32 link.exe'
17458 # Assume MSVC wrapper
17459 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17460 dynamic_linker='Win32 ld.exe'
17463 # FIXME: first we should search . and the directory the executable is in
17467 darwin* | rhapsody*)
17468 dynamic_linker="$host_os dyld"
17469 version_type=darwin
17472 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17473 soname_spec='$libname$release$major$shared_ext'
17474 shlibpath_overrides_runpath=yes
17475 shlibpath_var=DYLD_LIBRARY_PATH
17476 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17478 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17482 version_type=linux # correct to gnu/linux during the next big refactor
17485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17486 soname_spec='$libname$release$shared_ext$major'
17487 shlibpath_var=LD_LIBRARY_PATH
17490 freebsd* | dragonfly*)
17491 # DragonFly does not have aout. When/if they implement a new
17492 # versioning mechanism, adjust this.
17493 if test -x /usr/bin/objformat; then
17494 objformat=`/usr/bin/objformat`
17497 freebsd[23].*) objformat=aout ;;
17498 *) objformat=elf ;;
17501 version_type=freebsd-$objformat
17502 case $version_type in
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'
17510 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17514 shlibpath_var=LD_LIBRARY_PATH
17517 shlibpath_overrides_runpath=yes
17519 freebsd3.[01]* | freebsdelf3.[01]*)
17520 shlibpath_overrides_runpath=yes
17521 hardcode_into_libs=yes
17523 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17524 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17525 shlibpath_overrides_runpath=no
17526 hardcode_into_libs=yes
17528 *) # from 4.6 on, and DragonFly
17529 shlibpath_overrides_runpath=yes
17530 hardcode_into_libs=yes
17536 version_type=linux # correct to gnu/linux during the next big refactor
17539 dynamic_linker="$host_os runtime_loader"
17540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17541 soname_spec='$libname$release$shared_ext$major'
17542 shlibpath_var=LIBRARY_PATH
17543 shlibpath_overrides_runpath=no
17544 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17545 hardcode_into_libs=yes
17548 hpux9* | hpux10* | hpux11*)
17549 # Give a soname corresponding to the major version so that dld.sl refuses to
17550 # link against other versions.
17557 hardcode_into_libs=yes
17558 dynamic_linker="$host_os dld.so"
17559 shlibpath_var=LD_LIBRARY_PATH
17560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17562 soname_spec='$libname$release$shared_ext$major'
17563 if test 32 = "$HPUX_IA64_MODE"; then
17564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17565 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17568 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17573 hardcode_into_libs=yes
17574 dynamic_linker="$host_os dld.sl"
17575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17578 soname_spec='$libname$release$shared_ext$major'
17579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17584 dynamic_linker="$host_os dld.sl"
17585 shlibpath_var=SHLIB_PATH
17586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17588 soname_spec='$libname$release$shared_ext$major'
17591 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17592 postinstall_cmds='chmod 555 $lib'
17593 # or fails outright, so override atomically:
17594 install_override_mode=555
17598 version_type=linux # correct to gnu/linux during the next big refactor
17601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17602 soname_spec='$libname$release$shared_ext$major'
17603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 shlibpath_overrides_runpath=no
17606 hardcode_into_libs=yes
17609 irix5* | irix6* | nonstopux*)
17611 nonstopux*) version_type=nonstopux ;;
17613 if test yes = "$lt_cv_prog_gnu_ld"; then
17614 version_type=linux # correct to gnu/linux during the next big refactor
17621 soname_spec='$libname$release$shared_ext$major'
17622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17624 irix5* | nonstopux*)
17625 libsuff= shlibsuff=
17628 case $LD in # libtool.m4 will add one of these switches to LD
17629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17630 libsuff= shlibsuff= libmagic=32-bit;;
17631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17632 libsuff=32 shlibsuff=N32 libmagic=N32;;
17633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17635 *) libsuff= shlibsuff= libmagic=never-match;;
17639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17640 shlibpath_overrides_runpath=no
17641 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17642 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17643 hardcode_into_libs=yes
17646 # No shared lib support for Linux oldld, aout, or coff.
17647 linux*oldld* | linux*aout* | linux*coff*)
17652 version_type=none # Android doesn't support versioned libraries.
17655 library_names_spec='$libname$release$shared_ext'
17656 soname_spec='$libname$release$shared_ext'
17658 shlibpath_var=LD_LIBRARY_PATH
17659 shlibpath_overrides_runpath=yes
17661 # This implies no fast_install, which is unacceptable.
17662 # Some rework will be needed to allow for fast_install
17663 # before this can be enabled.
17664 hardcode_into_libs=yes
17666 dynamic_linker='Android linker'
17667 # Don't embed -rpath directories since the linker doesn't support them.
17668 hardcode_libdir_flag_spec_CXX='-L$libdir'
17671 # This must be glibc/ELF.
17672 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17673 version_type=linux # correct to gnu/linux during the next big refactor
17676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17677 soname_spec='$libname$release$shared_ext$major'
17678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17679 shlibpath_var=LD_LIBRARY_PATH
17680 shlibpath_overrides_runpath=no
17682 # Some binutils ld are patched to set DT_RUNPATH
17683 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17684 $as_echo_n "(cached) " >&6
17686 lt_cv_shlibpath_overrides_runpath=no
17687 save_LDFLAGS=$LDFLAGS
17688 save_libdir=$libdir
17689 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17690 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17702 if ac_fn_cxx_try_link "$LINENO"; then :
17703 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17704 lt_cv_shlibpath_overrides_runpath=yes
17707 rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709 LDFLAGS=$save_LDFLAGS
17710 libdir=$save_libdir
17714 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17716 # This implies no fast_install, which is unacceptable.
17717 # Some rework will be needed to allow for fast_install
17718 # before this can be enabled.
17719 hardcode_into_libs=yes
17721 # Ideally, we could use ldconfig to report *all* directores which are
17722 # searched for libraries, however this is still not possible. Aside from not
17723 # being certain /sbin/ldconfig is available, command
17724 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17725 # even though it is searched at run-time. Try to do the best guess by
17726 # appending ld.so.conf contents (and includes) to the search path.
17727 if test -f /etc/ld.so.conf; then
17728 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' ' '`
17729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17732 # We used to test for /lib/ld.so.1 and disable shared libraries on
17733 # powerpc, because MkLinux only supported shared libraries with the
17734 # GNU dynamic linker. Since this was broken with cross compilers,
17735 # most powerpc-linux boxes support dynamic linking these days and
17736 # people can always --disable-shared, the test was removed, and we
17737 # assume the GNU/Linux dynamic linker is in use.
17738 dynamic_linker='GNU/Linux ld.so'
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=no
17749 hardcode_into_libs=yes
17750 dynamic_linker='NetBSD ld.elf_so'
17757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17758 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17760 dynamic_linker='NetBSD (a.out) ld.so'
17762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17763 soname_spec='$libname$release$shared_ext$major'
17764 dynamic_linker='NetBSD ld.elf_so'
17766 shlibpath_var=LD_LIBRARY_PATH
17767 shlibpath_overrides_runpath=yes
17768 hardcode_into_libs=yes
17772 version_type=linux # correct to gnu/linux during the next big refactor
17773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17774 shlibpath_var=LD_LIBRARY_PATH
17775 shlibpath_overrides_runpath=yes
17782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17783 soname_spec='$libname$release$shared_ext$major'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=no
17786 hardcode_into_libs=yes
17787 dynamic_linker='ldqnx.so'
17790 openbsd* | bitrig*)
17792 sys_lib_dlsearch_path_spec=/usr/lib
17794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17801 shlibpath_var=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath=yes
17806 libname_spec='$name'
17807 version_type=windows
17811 # OS/2 can only load a DLL with a base name of 8 characters or less.
17812 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17813 v=$($ECHO $release$versuffix | tr -d .-);
17814 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17815 $ECHO $n$v`$shared_ext'
17816 library_names_spec='${libname}_dll.$libext'
17817 dynamic_linker='OS/2 ld.exe'
17818 shlibpath_var=BEGINLIBPATH
17819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17821 postinstall_cmds='base_file=`basename \$file`~
17822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17823 dldir=$destdir/`dirname \$dlpath`~
17824 test -d \$dldir || mkdir -p \$dldir~
17825 $install_prog $dir/$dlname \$dldir/$dlname~
17826 chmod a+x \$dldir/$dlname~
17827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17831 dlpath=$dir/\$dldll~
17835 osf3* | osf4* | osf5*)
17839 soname_spec='$libname$release$shared_ext$major'
17840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17851 version_type=linux # correct to gnu/linux during the next big refactor
17854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17855 soname_spec='$libname$release$shared_ext$major'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 shlibpath_overrides_runpath=yes
17858 hardcode_into_libs=yes
17859 # ldd complains unless libraries are executable
17860 postinstall_cmds='chmod +x $lib'
17865 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes
17869 if test yes = "$with_gnu_ld"; then
17876 version_type=linux # correct to gnu/linux during the next big refactor
17877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17878 soname_spec='$libname$release$shared_ext$major'
17879 shlibpath_var=LD_LIBRARY_PATH
17880 case $host_vendor in
17882 shlibpath_overrides_runpath=no
17884 runpath_var=LD_RUN_PATH
17892 shlibpath_overrides_runpath=no
17893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17899 if test -d /usr/nec; then
17900 version_type=linux # correct to gnu/linux during the next big refactor
17901 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17902 soname_spec='$libname$shared_ext.$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17912 soname_spec='$libname$release$shared_ext$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 hardcode_into_libs=yes
17916 if test yes = "$with_gnu_ld"; then
17917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17926 sys_lib_dlsearch_path_spec='/usr/lib'
17930 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17931 version_type=linux # correct to gnu/linux during the next big refactor
17934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath=no
17937 hardcode_into_libs=yes
17941 version_type=linux # correct to gnu/linux during the next big refactor
17942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17943 soname_spec='$libname$release$shared_ext$major'
17944 shlibpath_var=LD_LIBRARY_PATH
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17952 $as_echo "$dynamic_linker" >&6; }
17953 test no = "$dynamic_linker" && can_build_shared=no
17955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17956 if test yes = "$GCC"; then
17957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17960 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17961 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17964 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17965 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17968 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17969 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17971 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17972 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17974 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17975 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18017 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18018 hardcode_action_CXX=
18019 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18020 test -n "$runpath_var_CXX" ||
18021 test yes = "$hardcode_automatic_CXX"; then
18023 # We can hardcode non-existent directories.
18024 if test no != "$hardcode_direct_CXX" &&
18025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18026 # have to relink, otherwise we might link with an installed library
18027 # when we should be linking with a yet-to-be-installed one
18028 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18029 test no != "$hardcode_minus_L_CXX"; then
18030 # Linking always hardcodes the temporary library directory.
18031 hardcode_action_CXX=relink
18033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18034 hardcode_action_CXX=immediate
18037 # We cannot hardcode anything, or else we can only hardcode existing
18039 hardcode_action_CXX=unsupported
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18042 $as_echo "$hardcode_action_CXX" >&6; }
18044 if test relink = "$hardcode_action_CXX" ||
18045 test yes = "$inherit_rpath_CXX"; then
18046 # Fast installation is not supported
18047 enable_fast_install=no
18048 elif test yes = "$shlibpath_overrides_runpath" ||
18049 test no = "$enable_shared"; then
18050 # Fast installation is not necessary
18051 enable_fast_install=needless
18060 fi # test -n "$compiler"
18063 CFLAGS=$lt_save_CFLAGS
18067 with_gnu_ld=$lt_save_with_gnu_ld
18068 lt_cv_path_LDCXX=$lt_cv_path_LD
18069 lt_cv_path_LD=$lt_save_path_LD
18070 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18071 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18072 fi # test yes != "$_lt_caught_CXX_error"
18075 ac_cpp='$CPP $CPPFLAGS'
18076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18081 # Check whether --enable-largefile was given.
18082 if test "${enable_largefile+set}" = set; then :
18083 enableval=$enable_largefile;
18086 if test "$enable_largefile" != no; then
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18089 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18090 if ${ac_cv_sys_largefile_CC+:} false; then :
18091 $as_echo_n "(cached) " >&6
18093 ac_cv_sys_largefile_CC=no
18094 if test "$GCC" != yes; then
18097 # IRIX 6.2 and later do not support large files by default,
18098 # so use the C compiler's -n32 option if that helps.
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18101 #include <sys/types.h>
18102 /* Check that off_t can represent 2**63 - 1 correctly.
18103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18104 since some C++ compilers masquerading as C compilers
18105 incorrectly reject 9223372036854775807. */
18106 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18108 && LARGE_OFF_T % 2147483647 == 1)
18118 if ac_fn_c_try_compile "$LINENO"; then :
18121 rm -f core conftest.err conftest.$ac_objext
18123 if ac_fn_c_try_compile "$LINENO"; then :
18124 ac_cv_sys_largefile_CC=' -n32'; break
18126 rm -f core conftest.err conftest.$ac_objext
18130 rm -f conftest.$ac_ext
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18134 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18135 if test "$ac_cv_sys_largefile_CC" != no; then
18136 CC=$CC$ac_cv_sys_largefile_CC
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18140 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18141 if ${ac_cv_sys_file_offset_bits+:} false; then :
18142 $as_echo_n "(cached) " >&6
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18147 #include <sys/types.h>
18148 /* Check that off_t can represent 2**63 - 1 correctly.
18149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18150 since some C++ compilers masquerading as C compilers
18151 incorrectly reject 9223372036854775807. */
18152 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18154 && LARGE_OFF_T % 2147483647 == 1)
18164 if ac_fn_c_try_compile "$LINENO"; then :
18165 ac_cv_sys_file_offset_bits=no; break
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h. */
18170 #define _FILE_OFFSET_BITS 64
18171 #include <sys/types.h>
18172 /* Check that off_t can represent 2**63 - 1 correctly.
18173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18174 since some C++ compilers masquerading as C compilers
18175 incorrectly reject 9223372036854775807. */
18176 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18178 && LARGE_OFF_T % 2147483647 == 1)
18188 if ac_fn_c_try_compile "$LINENO"; then :
18189 ac_cv_sys_file_offset_bits=64; break
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192 ac_cv_sys_file_offset_bits=unknown
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18197 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18198 case $ac_cv_sys_file_offset_bits in #(
18201 cat >>confdefs.h <<_ACEOF
18202 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18207 if test $ac_cv_sys_file_offset_bits = unknown; then
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18209 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18210 if ${ac_cv_sys_large_files+:} false; then :
18211 $as_echo_n "(cached) " >&6
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18216 #include <sys/types.h>
18217 /* Check that off_t can represent 2**63 - 1 correctly.
18218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18219 since some C++ compilers masquerading as C compilers
18220 incorrectly reject 9223372036854775807. */
18221 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18223 && LARGE_OFF_T % 2147483647 == 1)
18233 if ac_fn_c_try_compile "$LINENO"; then :
18234 ac_cv_sys_large_files=no; break
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 #define _LARGE_FILES 1
18240 #include <sys/types.h>
18241 /* Check that off_t can represent 2**63 - 1 correctly.
18242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18243 since some C++ compilers masquerading as C compilers
18244 incorrectly reject 9223372036854775807. */
18245 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18247 && LARGE_OFF_T % 2147483647 == 1)
18257 if ac_fn_c_try_compile "$LINENO"; then :
18258 ac_cv_sys_large_files=1; break
18260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18261 ac_cv_sys_large_files=unknown
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18266 $as_echo "$ac_cv_sys_large_files" >&6; }
18267 case $ac_cv_sys_large_files in #(
18270 cat >>confdefs.h <<_ACEOF
18271 #define _LARGE_FILES $ac_cv_sys_large_files
18288 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18289 if test -n "$ac_tool_prefix"; then
18290 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18291 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18293 $as_echo_n "checking for $ac_word... " >&6; }
18294 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18295 $as_echo_n "(cached) " >&6
18297 case $PKG_CONFIG in
18299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18303 for as_dir in $PATH
18306 test -z "$as_dir" && as_dir=.
18307 for ac_exec_ext in '' $ac_executable_extensions; do
18308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18321 if test -n "$PKG_CONFIG"; then
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18323 $as_echo "$PKG_CONFIG" >&6; }
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18326 $as_echo "no" >&6; }
18331 if test -z "$ac_cv_path_PKG_CONFIG"; then
18332 ac_pt_PKG_CONFIG=$PKG_CONFIG
18333 # Extract the first word of "pkg-config", so it can be a program name with args.
18334 set dummy pkg-config; ac_word=$2
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18336 $as_echo_n "checking for $ac_word... " >&6; }
18337 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18338 $as_echo_n "(cached) " >&6
18340 case $ac_pt_PKG_CONFIG in
18342 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346 for as_dir in $PATH
18349 test -z "$as_dir" && as_dir=.
18350 for ac_exec_ext in '' $ac_executable_extensions; do
18351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18352 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18363 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18364 if test -n "$ac_pt_PKG_CONFIG"; then
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18366 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369 $as_echo "no" >&6; }
18372 if test "x$ac_pt_PKG_CONFIG" = x; then
18375 case $cross_compiling:$ac_tool_warned in
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18379 ac_tool_warned=yes ;;
18381 PKG_CONFIG=$ac_pt_PKG_CONFIG
18384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18388 if test -n "$PKG_CONFIG"; then
18389 _pkg_min_version=0.20
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18391 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18394 $as_echo "yes" >&6; }
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397 $as_echo "no" >&6; }
18402 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18405 GIT=${GIT-"${am_missing_run}git"}
18427 HB_LIBTOOL_VERSION_INFO=20301:0:20301
18431 # Check whether --with-libstdc++ was given.
18432 if test "${with_libstdc__+set}" = set; then :
18433 withval=$with_libstdc__; with_libstdcxx=$withval
18438 if test "x$with_libstdcxx" = "xyes"; then
18439 WITH_LIBSTDCXX_TRUE=
18440 WITH_LIBSTDCXX_FALSE='#'
18442 WITH_LIBSTDCXX_TRUE='#'
18443 WITH_LIBSTDCXX_FALSE=
18453 gtk_doc_requires="gtk-doc >= 1.15"
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18455 $as_echo_n "checking for gtk-doc... " >&6; }
18456 if test -n "$PKG_CONFIG" && \
18457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18458 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18461 test $ac_status = 0; }; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18467 $as_echo "$have_gtk_doc" >&6; }
18469 if test "$have_gtk_doc" = "no"; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18471 You will not be able to create source packages with 'make dist'
18472 because $gtk_doc_requires is not found." >&5
18473 $as_echo "$as_me: WARNING:
18474 You will not be able to create source packages with 'make dist'
18475 because $gtk_doc_requires is not found." >&2;}
18478 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18479 set dummy gtkdoc-check; ac_word=$2
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18481 $as_echo_n "checking for $ac_word... " >&6; }
18482 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18483 $as_echo_n "(cached) " >&6
18485 if test -n "$GTKDOC_CHECK"; then
18486 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18492 test -z "$as_dir" && as_dir=.
18493 for ac_exec_ext in '' $ac_executable_extensions; do
18494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18505 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18506 if test -n "$GTKDOC_CHECK"; then
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18508 $as_echo "$GTKDOC_CHECK" >&6; }
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511 $as_echo "no" >&6; }
18515 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18516 set dummy gtkdoc-check; ac_word=$2
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18518 $as_echo_n "checking for $ac_word... " >&6; }
18519 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18520 $as_echo_n "(cached) " >&6
18522 case $GTKDOC_CHECK_PATH in
18524 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18528 for as_dir in $PATH
18531 test -z "$as_dir" && as_dir=.
18532 for ac_exec_ext in '' $ac_executable_extensions; do
18533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18534 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18545 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18546 if test -n "$GTKDOC_CHECK_PATH"; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18548 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551 $as_echo "no" >&6; }
18555 for ac_prog in gtkdoc-rebase
18557 # Extract the first word of "$ac_prog", so it can be a program name with args.
18558 set dummy $ac_prog; ac_word=$2
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18560 $as_echo_n "checking for $ac_word... " >&6; }
18561 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18562 $as_echo_n "(cached) " >&6
18564 case $GTKDOC_REBASE in
18566 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18570 for as_dir in $PATH
18573 test -z "$as_dir" && as_dir=.
18574 for ac_exec_ext in '' $ac_executable_extensions; do
18575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18576 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18587 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18588 if test -n "$GTKDOC_REBASE"; then
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18590 $as_echo "$GTKDOC_REBASE" >&6; }
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18597 test -n "$GTKDOC_REBASE" && break
18599 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18601 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18602 set dummy gtkdoc-mkpdf; ac_word=$2
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18604 $as_echo_n "checking for $ac_word... " >&6; }
18605 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18606 $as_echo_n "(cached) " >&6
18608 case $GTKDOC_MKPDF in
18610 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614 for as_dir in $PATH
18617 test -z "$as_dir" && as_dir=.
18618 for ac_exec_ext in '' $ac_executable_extensions; do
18619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18631 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18632 if test -n "$GTKDOC_MKPDF"; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18634 $as_echo "$GTKDOC_MKPDF" >&6; }
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18637 $as_echo "no" >&6; }
18643 # Check whether --with-html-dir was given.
18644 if test "${with_html_dir+set}" = set; then :
18645 withval=$with_html_dir;
18647 with_html_dir='${datadir}/gtk-doc/html'
18650 HTML_DIR="$with_html_dir"
18653 # Check whether --enable-gtk-doc was given.
18654 if test "${enable_gtk_doc+set}" = set; then :
18655 enableval=$enable_gtk_doc;
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18662 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18664 $as_echo "$enable_gtk_doc" >&6; }
18666 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18668 You must have $gtk_doc_requires installed to build documentation for
18669 $PACKAGE_NAME. Please install gtk-doc or disable building the
18670 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18673 if test "x$PACKAGE_NAME" != "xglib"; then
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18677 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18679 if test -n "$GTKDOC_DEPS_CFLAGS"; then
18680 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18681 elif test -n "$PKG_CONFIG"; then
18682 if test -n "$PKG_CONFIG" && \
18683 { { $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
18684 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18687 test $ac_status = 0; }; then
18688 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18689 test "x$?" != "x0" && pkg_failed=yes
18696 if test -n "$GTKDOC_DEPS_LIBS"; then
18697 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18698 elif test -n "$PKG_CONFIG"; then
18699 if test -n "$PKG_CONFIG" && \
18700 { { $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
18701 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704 test $ac_status = 0; }; then
18705 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18706 test "x$?" != "x0" && pkg_failed=yes
18716 if test $pkg_failed = yes; then
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18721 _pkg_short_errors_supported=yes
18723 _pkg_short_errors_supported=no
18725 if test $_pkg_short_errors_supported = yes; then
18726 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`
18728 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
18730 # Put the nasty error message in config.log where it belongs
18731 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18734 elif test $pkg_failed = untried; then
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18736 $as_echo "no" >&6; }
18739 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18740 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18742 $as_echo "yes" >&6; }
18747 # Check whether --enable-gtk-doc-html was given.
18748 if test "${enable_gtk_doc_html+set}" = set; then :
18749 enableval=$enable_gtk_doc_html;
18751 enable_gtk_doc_html=yes
18754 # Check whether --enable-gtk-doc-pdf was given.
18755 if test "${enable_gtk_doc_pdf+set}" = set; then :
18756 enableval=$enable_gtk_doc_pdf;
18758 enable_gtk_doc_pdf=no
18762 if test -z "$GTKDOC_MKPDF"; then
18763 enable_gtk_doc_pdf=no
18766 if test -z "$AM_DEFAULT_VERBOSITY"; then
18767 AM_DEFAULT_VERBOSITY=1
18771 if test x$have_gtk_doc = xyes; then
18773 HAVE_GTK_DOC_FALSE='#'
18775 HAVE_GTK_DOC_TRUE='#'
18776 HAVE_GTK_DOC_FALSE=
18779 if test x$enable_gtk_doc = xyes; then
18780 ENABLE_GTK_DOC_TRUE=
18781 ENABLE_GTK_DOC_FALSE='#'
18783 ENABLE_GTK_DOC_TRUE='#'
18784 ENABLE_GTK_DOC_FALSE=
18787 if test x$enable_gtk_doc_html = xyes; then
18788 GTK_DOC_BUILD_HTML_TRUE=
18789 GTK_DOC_BUILD_HTML_FALSE='#'
18791 GTK_DOC_BUILD_HTML_TRUE='#'
18792 GTK_DOC_BUILD_HTML_FALSE=
18795 if test x$enable_gtk_doc_pdf = xyes; then
18796 GTK_DOC_BUILD_PDF_TRUE=
18797 GTK_DOC_BUILD_PDF_FALSE='#'
18799 GTK_DOC_BUILD_PDF_TRUE='#'
18800 GTK_DOC_BUILD_PDF_FALSE=
18803 if test -n "$LIBTOOL"; then
18804 GTK_DOC_USE_LIBTOOL_TRUE=
18805 GTK_DOC_USE_LIBTOOL_FALSE='#'
18807 GTK_DOC_USE_LIBTOOL_TRUE='#'
18808 GTK_DOC_USE_LIBTOOL_FALSE=
18811 if test -n "$GTKDOC_REBASE"; then
18812 GTK_DOC_USE_REBASE_TRUE=
18813 GTK_DOC_USE_REBASE_FALSE='#'
18815 GTK_DOC_USE_REBASE_TRUE='#'
18816 GTK_DOC_USE_REBASE_FALSE=
18820 if test "x$enable_gtk_doc" = xyes; then
18825 # Functions and headers
18826 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l posix_memalign
18828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18830 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18831 cat >>confdefs.h <<_ACEOF
18832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18841 for ac_func in round
18843 ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
18844 if test "x$ac_cv_func_round" = xyes; then :
18845 cat >>confdefs.h <<_ACEOF
18846 #define HAVE_ROUND 1
18850 ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
18852 if test "x$ac_cv_have_decl_round" = xyes; then :
18858 cat >>confdefs.h <<_ACEOF
18859 #define HAVE_DECL_ROUND $ac_have_decl
18867 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
18869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18872 cat >>confdefs.h <<_ACEOF
18873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18883 # The cast to long int works around a bug in the HP C Compiler,
18884 # see AC_CHECK_SIZEOF for more information.
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18886 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18887 if ${ac_cv_alignof_struct_char__+:} false; then :
18888 $as_echo_n "(cached) " >&6
18890 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
18892 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18894 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18897 if test "$ac_cv_type_struct_char__" = yes; then
18898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18900 as_fn_error 77 "cannot compute alignment of struct{char;}
18901 See \`config.log' for more details" "$LINENO" 5; }
18903 ac_cv_alignof_struct_char__=0
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18909 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18913 cat >>confdefs.h <<_ACEOF
18914 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18918 if test "x$GCC" = "xyes"; then
18920 # Make symbols link locally
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
18922 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
18923 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
18924 $as_echo_n "(cached) " >&6
18927 ax_check_save_flags=$LDFLAGS
18928 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18940 if ac_fn_c_try_link "$LINENO"; then :
18941 ax_cv_check_ldflags___Bsymbolic_functions=yes
18943 ax_cv_check_ldflags___Bsymbolic_functions=no
18945 rm -f core conftest.err conftest.$ac_objext \
18946 conftest$ac_exeext conftest.$ac_ext
18947 LDFLAGS=$ax_check_save_flags
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
18950 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
18951 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
18952 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18958 # Make it possible to not link to libstdc++
18959 # No threadsafe statics in C++ as we do it ourselves.
18960 # We don't use these features, so it's safe to disable them
18961 # even in the cases where we DO link to libstdc++.
18962 # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
18963 # by overriding CXXFLAGS.
18964 CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
18970 # Hide inline methods
18971 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
18977 if test "x$ac_cv_alignof_struct_char__" != x1; then
18978 # Request byte alignment
18979 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
18985 if test "x$GCC" = "xyes"; then
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18996 $as_echo_n "checking for native Win32... " >&6; }
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19003 $as_echo "$hb_os_win32" >&6; }
19004 if test "$hb_os_win32" = "yes"; then
19014 if test "$hb_os_win32" = no; then
19020 ac_cpp='$CPP $CPPFLAGS'
19021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19027 # We used to check for pthread.h first, but this fails if pthread.h
19028 # requires special compiler flags (e.g. on Tru64 or Sequent).
19029 # It gets checked for in the link test anyway.
19031 # First of all, check if the user has set any of the PTHREAD_LIBS,
19032 # etcetera environment variables, and if threads linking works using
19034 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19035 ax_pthread_save_CC="$CC"
19036 ax_pthread_save_CFLAGS="$CFLAGS"
19037 ax_pthread_save_LIBS="$LIBS"
19038 if test "x$PTHREAD_CC" != "x"; then :
19041 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19042 LIBS="$PTHREAD_LIBS $LIBS"
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19044 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19048 /* Override any GCC internal prototype to avoid an error.
19049 Use char because int might match the return type of a GCC
19050 builtin and then its argument prototype would still apply. */
19054 char pthread_join ();
19058 return pthread_join ();
19063 if ac_fn_c_try_link "$LINENO"; then :
19066 rm -f core conftest.err conftest.$ac_objext \
19067 conftest$ac_exeext conftest.$ac_ext
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19069 $as_echo "$ax_pthread_ok" >&6; }
19070 if test "x$ax_pthread_ok" = "xno"; then
19074 CC="$ax_pthread_save_CC"
19075 CFLAGS="$ax_pthread_save_CFLAGS"
19076 LIBS="$ax_pthread_save_LIBS"
19079 # We must check for the threads library under a number of different
19080 # names; the ordering is very important because some systems
19081 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19082 # libraries is broken (non-POSIX).
19084 # Create a list of thread flags to try. Items starting with a "-" are
19085 # C compiler flags, and other items are library names, except for "none"
19086 # which indicates that we try without any flags at all, and "pthread-config"
19087 # which is a program returning the flags for the Pth emulation library.
19089 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19091 # The ordering *is* (sometimes) important. Some notes on the
19092 # individual items follow:
19094 # pthreads: AIX (must check this before -lpthread)
19095 # none: in case threads are in libc; should be tried before -Kthread and
19096 # other compiler flags to prevent continual compiler warnings
19097 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19098 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19099 # (Note: HP C rejects this with "bad form for `-t' option")
19100 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19101 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19102 # doesn't hurt to check since this sometimes defines pthreads and
19103 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19104 # is present but should not be used directly; and before -mthreads,
19105 # because the compiler interprets this as "-mt" + "-hreads")
19106 # -mthreads: Mingw32/gcc, Lynx/gcc
19107 # pthread: Linux, etcetera
19108 # --thread-safe: KAI C++
19109 # pthread-config: use pthread-config program (for GNU Pth library)
19115 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19116 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19118 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19123 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19124 # multi-threading and also sets -lpthread."
19126 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19131 # IBM z/OS requires a feature-test macro to be defined in order to
19132 # enable POSIX threads at all, so give the user a hint if this is
19133 # not set. (We don't define these ourselves, as they can affect
19134 # other portions of the system API in unpredictable ways.)
19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h. */
19139 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19140 AX_PTHREAD_ZOS_MISSING
19144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19145 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19147 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19155 # On Solaris (at least, for some versions), libc contains stubbed
19156 # (non-functional) versions of the pthreads routines, so link-based
19157 # tests will erroneously succeed. (N.B.: The stubs are missing
19158 # pthread_cleanup_push, or rather a function called by this macro,
19159 # so we could check for that, but who knows whether they'll stub
19160 # that too in a future libc.) So we'll check first for the
19161 # standard Solaris way of linking pthreads (-mt -lpthread).
19163 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19167 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19169 if test "x$GCC" = "xyes"; then :
19170 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19173 # The presence of a feature test macro requesting re-entrant function
19174 # definitions is, on some systems, a strong hint that pthreads support is
19175 # correctly enabled
19178 darwin* | hpux* | linux* | osf* | solaris*)
19179 ax_pthread_check_macro="_REENTRANT"
19183 ax_pthread_check_macro="_THREAD_SAFE"
19187 ax_pthread_check_macro="--"
19190 if test "x$ax_pthread_check_macro" = "x--"; then :
19191 ax_pthread_check_cond=0
19193 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19196 # Are we compiling with Clang?
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19199 $as_echo_n "checking whether $CC is Clang... " >&6; }
19200 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19201 $as_echo_n "(cached) " >&6
19203 ax_cv_PTHREAD_CLANG=no
19204 # Note that Autoconf sets GCC=yes for Clang as well as GCC
19205 if test "x$GCC" = "xyes"; then
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19209 # if defined(__clang__) && defined(__llvm__)
19210 AX_PTHREAD_CC_IS_CLANG
19214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19215 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19216 ax_cv_PTHREAD_CLANG=yes
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19224 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19225 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19227 ax_pthread_clang_warning=no
19229 # Clang needs special handling, because older versions handle the -pthread
19230 # option in a rather... idiosyncratic way
19232 if test "x$ax_pthread_clang" = "xyes"; then
19234 # Clang takes -pthread; it has never supported any other flag
19236 # (Note 1: This will need to be revisited if a system that Clang
19237 # supports has POSIX threads in a separate library. This tends not
19238 # to be the way of modern systems, but it's conceivable.)
19240 # (Note 2: On some systems, notably Darwin, -pthread is not needed
19241 # to get POSIX threads support; the API is always present and
19242 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
19243 # -pthread does define _REENTRANT, and while the Darwin headers
19244 # ignore this macro, third-party headers might not.)
19246 PTHREAD_CFLAGS="-pthread"
19251 # However, older versions of Clang make a point of warning the user
19252 # that, in an invocation where only linking and no compilation is
19253 # taking place, the -pthread option has no effect ("argument unused
19254 # during compilation"). They expect -pthread to be passed in only
19255 # when source code is being compiled.
19257 # Problem is, this is at odds with the way Automake and most other
19258 # C build frameworks function, which is that the same flags used in
19259 # compilation (CFLAGS) are also used in linking. Many systems
19260 # supported by AX_PTHREAD require exactly this for POSIX threads
19261 # support, and in fact it is often not straightforward to specify a
19262 # flag that is used only in the compilation phase and not in
19263 # linking. Such a scenario is extremely rare in practice.
19265 # Even though use of the -pthread flag in linking would only print
19266 # a warning, this can be a nuisance for well-run software projects
19267 # that build with -Werror. So if the active version of Clang has
19268 # this misfeature, we search for an option to squash it.
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19271 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19272 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19273 $as_echo_n "(cached) " >&6
19275 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19276 # Create an alternate version of $ac_link that compiles and
19277 # links in two steps (.c -> .o, .o -> exe) instead of one
19278 # (.c -> exe), because the warning occurs only in the second
19280 ax_pthread_save_ac_link="$ac_link"
19281 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19282 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19283 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19284 ax_pthread_save_CFLAGS="$CFLAGS"
19285 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19286 if test "x$ax_pthread_try" = "xunknown"; then :
19289 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19290 ac_link="$ax_pthread_save_ac_link"
19291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h. */
19293 int main(void){return 0;}
19295 if ac_fn_c_try_link "$LINENO"; then :
19296 ac_link="$ax_pthread_2step_ac_link"
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299 int main(void){return 0;}
19301 if ac_fn_c_try_link "$LINENO"; then :
19304 rm -f core conftest.err conftest.$ac_objext \
19305 conftest$ac_exeext conftest.$ac_ext
19308 rm -f core conftest.err conftest.$ac_objext \
19309 conftest$ac_exeext conftest.$ac_ext
19311 ac_link="$ax_pthread_save_ac_link"
19312 CFLAGS="$ax_pthread_save_CFLAGS"
19313 if test "x$ax_pthread_try" = "x"; then :
19316 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19320 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19322 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19324 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19327 fi # $ax_pthread_clang = yes
19329 if test "x$ax_pthread_ok" = "xno"; then
19330 for ax_pthread_try_flag in $ax_pthread_flags; do
19332 case $ax_pthread_try_flag in
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19335 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19340 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19341 PTHREAD_CFLAGS="-mt"
19342 PTHREAD_LIBS="-lpthread"
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19347 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19348 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19352 # Extract the first word of "pthread-config", so it can be a program name with args.
19353 set dummy pthread-config; ac_word=$2
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19355 $as_echo_n "checking for $ac_word... " >&6; }
19356 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19357 $as_echo_n "(cached) " >&6
19359 if test -n "$ax_pthread_config"; then
19360 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19363 for as_dir in $PATH
19366 test -z "$as_dir" && as_dir=.
19367 for ac_exec_ext in '' $ac_executable_extensions; do
19368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19369 ac_cv_prog_ax_pthread_config="yes"
19370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19377 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19380 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19381 if test -n "$ax_pthread_config"; then
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19383 $as_echo "$ax_pthread_config" >&6; }
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19386 $as_echo "no" >&6; }
19390 if test "x$ax_pthread_config" = "xno"; then :
19393 PTHREAD_CFLAGS="`pthread-config --cflags`"
19394 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19399 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19400 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19404 ax_pthread_save_CFLAGS="$CFLAGS"
19405 ax_pthread_save_LIBS="$LIBS"
19406 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19407 LIBS="$PTHREAD_LIBS $LIBS"
19409 # Check for various functions. We must include pthread.h,
19410 # since some functions may be macros. (On the Sequent, we
19411 # need a special flag -Kthread to make this header compile.)
19412 # We check for pthread_join because it is in -lpthread on IRIX
19413 # while pthread_create is in libc. We check for pthread_attr_init
19414 # due to DEC craziness with -lpthreads. We check for
19415 # pthread_cleanup_push because it is one of the few pthread
19416 # functions on Solaris that doesn't have a non-functional libc stub.
19417 # We try pthread_create on general principles.
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19421 #include <pthread.h>
19422 # if $ax_pthread_check_cond
19423 # error "$ax_pthread_check_macro must be defined"
19425 static void routine(void *a) { a = 0; }
19426 static void *start_routine(void *a) { return a; }
19430 pthread_t th; pthread_attr_t attr;
19431 pthread_create(&th, 0, start_routine, 0);
19432 pthread_join(th, 0);
19433 pthread_attr_init(&attr);
19434 pthread_cleanup_push(routine, 0);
19435 pthread_cleanup_pop(0) /* ; */
19440 if ac_fn_c_try_link "$LINENO"; then :
19443 rm -f core conftest.err conftest.$ac_objext \
19444 conftest$ac_exeext conftest.$ac_ext
19446 CFLAGS="$ax_pthread_save_CFLAGS"
19447 LIBS="$ax_pthread_save_LIBS"
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19450 $as_echo "$ax_pthread_ok" >&6; }
19451 if test "x$ax_pthread_ok" = "xyes"; then :
19460 # Various other checks:
19461 if test "x$ax_pthread_ok" = "xyes"; then
19462 ax_pthread_save_CFLAGS="$CFLAGS"
19463 ax_pthread_save_LIBS="$LIBS"
19464 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19465 LIBS="$PTHREAD_LIBS $LIBS"
19467 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19469 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19470 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19471 $as_echo_n "(cached) " >&6
19473 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19474 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h. */
19477 #include <pthread.h>
19481 int attr = $ax_pthread_attr; return attr /* ; */
19486 if ac_fn_c_try_link "$LINENO"; then :
19487 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19495 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19496 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19497 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19498 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19500 cat >>confdefs.h <<_ACEOF
19501 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19504 ax_pthread_joinable_attr_defined=yes
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19509 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19510 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19511 $as_echo_n "(cached) " >&6
19513 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19516 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19522 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19523 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19524 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19525 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19526 ax_pthread_special_flags_added=yes
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19530 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19531 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19532 $as_echo_n "(cached) " >&6
19534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h. */
19536 #include <pthread.h>
19540 int i = PTHREAD_PRIO_INHERIT;
19545 if ac_fn_c_try_link "$LINENO"; then :
19546 ax_cv_PTHREAD_PRIO_INHERIT=yes
19548 ax_cv_PTHREAD_PRIO_INHERIT=no
19550 rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19555 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19556 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19557 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19559 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19561 ax_pthread_prio_inherit_defined=yes
19565 CFLAGS="$ax_pthread_save_CFLAGS"
19566 LIBS="$ax_pthread_save_LIBS"
19568 # More AIX lossage: compile with *_r variant
19569 if test "x$GCC" != "xyes"; then
19573 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19574 #handle absolute path differently from PATH based program lookup
19577 if as_fn_executable_p ${CC}_r; then :
19578 PTHREAD_CC="${CC}_r"
19581 for ac_prog in ${CC}_r
19583 # Extract the first word of "$ac_prog", so it can be a program name with args.
19584 set dummy $ac_prog; ac_word=$2
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19586 $as_echo_n "checking for $ac_word... " >&6; }
19587 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19588 $as_echo_n "(cached) " >&6
19590 if test -n "$PTHREAD_CC"; then
19591 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594 for as_dir in $PATH
19597 test -z "$as_dir" && as_dir=.
19598 for ac_exec_ext in '' $ac_executable_extensions; do
19599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19600 ac_cv_prog_PTHREAD_CC="$ac_prog"
19601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19610 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19611 if test -n "$PTHREAD_CC"; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19613 $as_echo "$PTHREAD_CC" >&6; }
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616 $as_echo "no" >&6; }
19620 test -n "$PTHREAD_CC" && break
19622 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19633 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19639 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19640 if test "x$ax_pthread_ok" = "xyes"; then
19648 ac_cpp='$CPP $CPPFLAGS'
19649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19655 if $have_pthread; then
19657 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19660 if $have_pthread; then
19662 HAVE_PTHREAD_FALSE='#'
19664 HAVE_PTHREAD_TRUE='#'
19665 HAVE_PTHREAD_FALSE=
19671 if $have_fallback; then
19673 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19676 if $have_fallback; then
19677 HAVE_FALLBACK_TRUE=
19678 HAVE_FALLBACK_FALSE='#'
19680 HAVE_FALLBACK_TRUE='#'
19681 HAVE_FALLBACK_FALSE=
19687 # Check whether --with-glib was given.
19688 if test "${with_glib+set}" = set; then :
19689 withval=$with_glib;
19695 GLIB_DEPS="glib-2.0 >= 2.19.1"
19697 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19701 $as_echo_n "checking for GLIB... " >&6; }
19703 if test -n "$GLIB_CFLAGS"; then
19704 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19705 elif test -n "$PKG_CONFIG"; then
19706 if test -n "$PKG_CONFIG" && \
19707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19708 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19711 test $ac_status = 0; }; then
19712 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19713 test "x$?" != "x0" && pkg_failed=yes
19720 if test -n "$GLIB_LIBS"; then
19721 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19722 elif test -n "$PKG_CONFIG"; then
19723 if test -n "$PKG_CONFIG" && \
19724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19725 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19728 test $ac_status = 0; }; then
19729 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19730 test "x$?" != "x0" && pkg_failed=yes
19740 if test $pkg_failed = yes; then
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742 $as_echo "no" >&6; }
19744 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19745 _pkg_short_errors_supported=yes
19747 _pkg_short_errors_supported=no
19749 if test $_pkg_short_errors_supported = yes; then
19750 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19752 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19754 # Put the nasty error message in config.log where it belongs
19755 echo "$GLIB_PKG_ERRORS" >&5
19758 elif test $pkg_failed = untried; then
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19763 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19764 GLIB_LIBS=$pkg_cv_GLIB_LIBS
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19766 $as_echo "yes" >&6; }
19770 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19771 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19773 if $have_glib; then
19775 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19778 if $have_glib; then
19780 HAVE_GLIB_FALSE='#'
19789 # Check whether --with-gobject was given.
19790 if test "${with_gobject+set}" = set; then :
19791 withval=$with_gobject;
19797 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19801 $as_echo_n "checking for GOBJECT... " >&6; }
19803 if test -n "$GOBJECT_CFLAGS"; then
19804 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19805 elif test -n "$PKG_CONFIG"; then
19806 if test -n "$PKG_CONFIG" && \
19807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19808 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19811 test $ac_status = 0; }; then
19812 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19813 test "x$?" != "x0" && pkg_failed=yes
19820 if test -n "$GOBJECT_LIBS"; then
19821 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19822 elif test -n "$PKG_CONFIG"; then
19823 if test -n "$PKG_CONFIG" && \
19824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19825 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19828 test $ac_status = 0; }; then
19829 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19830 test "x$?" != "x0" && pkg_failed=yes
19840 if test $pkg_failed = yes; then
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19842 $as_echo "no" >&6; }
19844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19845 _pkg_short_errors_supported=yes
19847 _pkg_short_errors_supported=no
19849 if test $_pkg_short_errors_supported = yes; then
19850 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19852 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19854 # Put the nasty error message in config.log where it belongs
19855 echo "$GOBJECT_PKG_ERRORS" >&5
19858 elif test $pkg_failed = untried; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19860 $as_echo "no" >&6; }
19863 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19864 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19866 $as_echo "yes" >&6; }
19870 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19871 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19873 if $have_gobject; then
19875 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19877 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19880 if $have_gobject; then
19882 HAVE_GOBJECT_FALSE='#'
19884 HAVE_GOBJECT_TRUE='#'
19885 HAVE_GOBJECT_FALSE=
19892 # Gobject-Introspection
19893 have_introspection=false
19895 if $have_gobject; then
19899 # Check whether --enable-introspection was given.
19900 if test "${enable_introspection+set}" = set; then :
19901 enableval=$enable_introspection;
19903 enable_introspection=auto
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19908 $as_echo_n "checking for gobject-introspection... " >&6; }
19910 case $enable_introspection in #(
19912 found_introspection="no (disabled, use --enable-introspection to enable)"
19915 if test -n "$PKG_CONFIG" && \
19916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19917 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19920 test $ac_status = 0; }; then
19923 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19925 if test -n "$PKG_CONFIG" && \
19926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19927 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19930 test $ac_status = 0; }; then
19931 found_introspection=yes
19933 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
19937 if test -n "$PKG_CONFIG" && \
19938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19939 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19942 test $ac_status = 0; }; then
19943 found_introspection=yes
19945 found_introspection=no
19947 enable_introspection=$found_introspection
19950 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
19954 $as_echo "$found_introspection" >&6; }
19956 INTROSPECTION_SCANNER=
19957 INTROSPECTION_COMPILER=
19958 INTROSPECTION_GENERATE=
19959 INTROSPECTION_GIRDIR=
19960 INTROSPECTION_TYPELIBDIR=
19961 if test "x$found_introspection" = "xyes"; then
19962 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
19963 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
19964 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
19965 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
19966 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
19967 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
19968 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
19969 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
19980 if test "x$found_introspection" = "xyes"; then
19981 HAVE_INTROSPECTION_TRUE=
19982 HAVE_INTROSPECTION_FALSE='#'
19984 HAVE_INTROSPECTION_TRUE='#'
19985 HAVE_INTROSPECTION_FALSE=
19990 if test "x$found_introspection" = xyes; then
19991 have_introspection=true
19995 HAVE_INTROSPECTION_TRUE=
19996 HAVE_INTROSPECTION_FALSE='#'
19998 HAVE_INTROSPECTION_TRUE='#'
19999 HAVE_INTROSPECTION_FALSE=
20007 # Check whether --with-cairo was given.
20008 if test "${with_cairo+set}" = set; then :
20009 withval=$with_cairo;
20015 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20019 $as_echo_n "checking for CAIRO... " >&6; }
20021 if test -n "$CAIRO_CFLAGS"; then
20022 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20023 elif test -n "$PKG_CONFIG"; then
20024 if test -n "$PKG_CONFIG" && \
20025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20026 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20029 test $ac_status = 0; }; then
20030 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20031 test "x$?" != "x0" && pkg_failed=yes
20038 if test -n "$CAIRO_LIBS"; then
20039 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20040 elif test -n "$PKG_CONFIG"; then
20041 if test -n "$PKG_CONFIG" && \
20042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20043 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20046 test $ac_status = 0; }; then
20047 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20048 test "x$?" != "x0" && pkg_failed=yes
20058 if test $pkg_failed = yes; then
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20060 $as_echo "no" >&6; }
20062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20063 _pkg_short_errors_supported=yes
20065 _pkg_short_errors_supported=no
20067 if test $_pkg_short_errors_supported = yes; then
20068 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20070 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20072 # Put the nasty error message in config.log where it belongs
20073 echo "$CAIRO_PKG_ERRORS" >&5
20076 elif test $pkg_failed = untried; then
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078 $as_echo "no" >&6; }
20081 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20082 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20088 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20089 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20091 if $have_cairo; then
20093 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20096 if $have_cairo; then
20098 HAVE_CAIRO_FALSE='#'
20100 HAVE_CAIRO_TRUE='#'
20105 have_cairo_ft=false
20106 if $have_cairo; then
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20110 $as_echo_n "checking for CAIRO_FT... " >&6; }
20112 if test -n "$CAIRO_FT_CFLAGS"; then
20113 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20114 elif test -n "$PKG_CONFIG"; then
20115 if test -n "$PKG_CONFIG" && \
20116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20117 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20120 test $ac_status = 0; }; then
20121 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20122 test "x$?" != "x0" && pkg_failed=yes
20129 if test -n "$CAIRO_FT_LIBS"; then
20130 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20131 elif test -n "$PKG_CONFIG"; then
20132 if test -n "$PKG_CONFIG" && \
20133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20134 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20137 test $ac_status = 0; }; then
20138 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20139 test "x$?" != "x0" && pkg_failed=yes
20149 if test $pkg_failed = yes; then
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20151 $as_echo "no" >&6; }
20153 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20154 _pkg_short_errors_supported=yes
20156 _pkg_short_errors_supported=no
20158 if test $_pkg_short_errors_supported = yes; then
20159 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
20161 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
20163 # Put the nasty error message in config.log where it belongs
20164 echo "$CAIRO_FT_PKG_ERRORS" >&5
20167 elif test $pkg_failed = untried; then
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169 $as_echo "no" >&6; }
20172 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20173 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20175 $as_echo "yes" >&6; }
20179 if $have_cairo_ft; then
20181 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20184 if $have_cairo_ft; then
20185 HAVE_CAIRO_FT_TRUE=
20186 HAVE_CAIRO_FT_FALSE='#'
20188 HAVE_CAIRO_FT_TRUE='#'
20189 HAVE_CAIRO_FT_FALSE=
20195 # Check whether --with-fontconfig was given.
20196 if test "${with_fontconfig+set}" = set; then :
20197 withval=$with_fontconfig;
20199 with_fontconfig=auto
20202 have_fontconfig=false
20203 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20207 $as_echo_n "checking for FONTCONFIG... " >&6; }
20209 if test -n "$FONTCONFIG_CFLAGS"; then
20210 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20211 elif test -n "$PKG_CONFIG"; then
20212 if test -n "$PKG_CONFIG" && \
20213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20214 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20217 test $ac_status = 0; }; then
20218 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20219 test "x$?" != "x0" && pkg_failed=yes
20226 if test -n "$FONTCONFIG_LIBS"; then
20227 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20228 elif test -n "$PKG_CONFIG"; then
20229 if test -n "$PKG_CONFIG" && \
20230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20231 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20234 test $ac_status = 0; }; then
20235 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20236 test "x$?" != "x0" && pkg_failed=yes
20246 if test $pkg_failed = yes; then
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20248 $as_echo "no" >&6; }
20250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20251 _pkg_short_errors_supported=yes
20253 _pkg_short_errors_supported=no
20255 if test $_pkg_short_errors_supported = yes; then
20256 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
20258 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
20260 # Put the nasty error message in config.log where it belongs
20261 echo "$FONTCONFIG_PKG_ERRORS" >&5
20264 elif test $pkg_failed = untried; then
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20266 $as_echo "no" >&6; }
20269 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20270 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20272 $as_echo "yes" >&6; }
20273 have_fontconfig=true
20276 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20277 as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20279 if $have_fontconfig; then
20281 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20284 if $have_fontconfig; then
20285 HAVE_FONTCONFIG_TRUE=
20286 HAVE_FONTCONFIG_FALSE='#'
20288 HAVE_FONTCONFIG_TRUE='#'
20289 HAVE_FONTCONFIG_FALSE=
20295 # Check whether --with-icu was given.
20296 if test "${with_icu+set}" = set; then :
20303 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20307 $as_echo_n "checking for ICU... " >&6; }
20309 if test -n "$ICU_CFLAGS"; then
20310 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20311 elif test -n "$PKG_CONFIG"; then
20312 if test -n "$PKG_CONFIG" && \
20313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20314 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20317 test $ac_status = 0; }; then
20318 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20319 test "x$?" != "x0" && pkg_failed=yes
20326 if test -n "$ICU_LIBS"; then
20327 pkg_cv_ICU_LIBS="$ICU_LIBS"
20328 elif test -n "$PKG_CONFIG"; then
20329 if test -n "$PKG_CONFIG" && \
20330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20331 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20334 test $ac_status = 0; }; then
20335 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20336 test "x$?" != "x0" && pkg_failed=yes
20346 if test $pkg_failed = yes; then
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20348 $as_echo "no" >&6; }
20350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20351 _pkg_short_errors_supported=yes
20353 _pkg_short_errors_supported=no
20355 if test $_pkg_short_errors_supported = yes; then
20356 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
20358 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
20360 # Put the nasty error message in config.log where it belongs
20361 echo "$ICU_PKG_ERRORS" >&5
20364 elif test $pkg_failed = untried; then
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366 $as_echo "no" >&6; }
20369 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20370 ICU_LIBS=$pkg_cv_ICU_LIBS
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20372 $as_echo "yes" >&6; }
20376 if test "$have_icu" != "true"; then
20377 if test -n "$ac_tool_prefix"; then
20378 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20379 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20381 $as_echo_n "checking for $ac_word... " >&6; }
20382 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20383 $as_echo_n "(cached) " >&6
20385 if test -n "$ICU_CONFIG"; then
20386 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20389 for as_dir in $PATH
20392 test -z "$as_dir" && as_dir=.
20393 for ac_exec_ext in '' $ac_executable_extensions; do
20394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20395 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20405 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20406 if test -n "$ICU_CONFIG"; then
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20408 $as_echo "$ICU_CONFIG" >&6; }
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20411 $as_echo "no" >&6; }
20416 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20417 ac_ct_ICU_CONFIG=$ICU_CONFIG
20418 # Extract the first word of "icu-config", so it can be a program name with args.
20419 set dummy icu-config; ac_word=$2
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20421 $as_echo_n "checking for $ac_word... " >&6; }
20422 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20423 $as_echo_n "(cached) " >&6
20425 if test -n "$ac_ct_ICU_CONFIG"; then
20426 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20429 for as_dir in $PATH
20432 test -z "$as_dir" && as_dir=.
20433 for ac_exec_ext in '' $ac_executable_extensions; do
20434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20435 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20445 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20446 if test -n "$ac_ct_ICU_CONFIG"; then
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20448 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20451 $as_echo "no" >&6; }
20454 if test "x$ac_ct_ICU_CONFIG" = x; then
20457 case $cross_compiling:$ac_tool_warned in
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20461 ac_tool_warned=yes ;;
20463 ICU_CONFIG=$ac_ct_ICU_CONFIG
20466 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20470 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20471 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20473 # We don't use --cflags as this gives us a lot of things that we don't
20474 # necessarily want, like debugging and optimization flags
20475 # See man (1) icu-config for more info.
20476 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20477 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20481 $as_echo "yes" >&6; }
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20484 $as_echo "no" >&6; }
20488 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20489 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20493 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20495 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20497 if test "x$with_icu" = "xbuiltin"; then
20499 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20511 if $have_icu && test "x$with_icu" = "xbuiltin"; then
20512 HAVE_ICU_BUILTIN_TRUE=
20513 HAVE_ICU_BUILTIN_FALSE='#'
20515 HAVE_ICU_BUILTIN_TRUE='#'
20516 HAVE_ICU_BUILTIN_FALSE=
20522 # Check whether --with-ucdn was given.
20523 if test "${with_ucdn+set}" = set; then :
20524 withval=$with_ucdn;
20530 if test "x$with_ucdn" = "xyes"; then
20533 if $have_ucdn; then
20535 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20538 if $have_ucdn; then
20540 HAVE_UCDN_FALSE='#'
20549 # Check whether --with-graphite2 was given.
20550 if test "${with_graphite2+set}" = set; then :
20551 withval=$with_graphite2;
20556 have_graphite2=false
20557 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
20559 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20563 $as_echo_n "checking for GRAPHITE2... " >&6; }
20565 if test -n "$GRAPHITE2_CFLAGS"; then
20566 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20567 elif test -n "$PKG_CONFIG"; then
20568 if test -n "$PKG_CONFIG" && \
20569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20570 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20573 test $ac_status = 0; }; then
20574 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20575 test "x$?" != "x0" && pkg_failed=yes
20582 if test -n "$GRAPHITE2_LIBS"; then
20583 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20584 elif test -n "$PKG_CONFIG"; then
20585 if test -n "$PKG_CONFIG" && \
20586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20587 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20590 test $ac_status = 0; }; then
20591 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20592 test "x$?" != "x0" && pkg_failed=yes
20602 if test $pkg_failed = yes; then
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20604 $as_echo "no" >&6; }
20606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20607 _pkg_short_errors_supported=yes
20609 _pkg_short_errors_supported=no
20611 if test $_pkg_short_errors_supported = yes; then
20612 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20614 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20616 # Put the nasty error message in config.log where it belongs
20617 echo "$GRAPHITE2_PKG_ERRORS" >&5
20620 elif test $pkg_failed = untried; then
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20622 $as_echo "no" >&6; }
20625 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20626 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20628 $as_echo "yes" >&6; }
20629 have_graphite2=true
20631 if test "x$have_graphite2" != "xtrue"; then
20632 # If pkg-config is not available, graphite2 can still be there
20633 ac_save_CFLAGS="$CFLAGS"
20634 ac_save_CPPFLAGS="$CPPFLAGS"
20635 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20636 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20637 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20638 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20639 have_graphite2=true
20645 CPPFLAGS="$ac_save_CPPFLAGS"
20646 CFLAGS="$ac_save_CFLAGS"
20649 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20650 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20652 if $have_graphite2; then
20654 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20657 if $have_graphite2; then
20658 HAVE_GRAPHITE2_TRUE=
20659 HAVE_GRAPHITE2_FALSE='#'
20661 HAVE_GRAPHITE2_TRUE='#'
20662 HAVE_GRAPHITE2_FALSE=
20668 # Check whether --with-freetype was given.
20669 if test "${with_freetype+set}" = set; then :
20670 withval=$with_freetype;
20675 have_freetype=false
20676 FREETYPE_DEPS="freetype2 >= 12.0.6"
20678 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20679 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20683 $as_echo_n "checking for FREETYPE... " >&6; }
20685 if test -n "$FREETYPE_CFLAGS"; then
20686 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20687 elif test -n "$PKG_CONFIG"; then
20688 if test -n "$PKG_CONFIG" && \
20689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20690 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693 test $ac_status = 0; }; then
20694 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20695 test "x$?" != "x0" && pkg_failed=yes
20702 if test -n "$FREETYPE_LIBS"; then
20703 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
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 \"\$FREETYPE_DEPS\""; } >&5
20707 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; then
20711 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20712 test "x$?" != "x0" && pkg_failed=yes
20722 if test $pkg_failed = yes; then
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20724 $as_echo "no" >&6; }
20726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20727 _pkg_short_errors_supported=yes
20729 _pkg_short_errors_supported=no
20731 if test $_pkg_short_errors_supported = yes; then
20732 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20734 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20736 # Put the nasty error message in config.log where it belongs
20737 echo "$FREETYPE_PKG_ERRORS" >&5
20740 elif test $pkg_failed = untried; then
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20742 $as_echo "no" >&6; }
20745 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20746 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20748 $as_echo "yes" >&6; }
20752 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20753 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20755 if $have_freetype; then
20757 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20760 LIBS="$LIBS $FREETYPE_LIBS"
20761 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20766 cat >>confdefs.h <<_ACEOF
20767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20775 if $have_freetype; then
20776 HAVE_FREETYPE_TRUE=
20777 HAVE_FREETYPE_FALSE='#'
20779 HAVE_FREETYPE_TRUE='#'
20780 HAVE_FREETYPE_FALSE=
20786 # Check whether --with-uniscribe was given.
20787 if test "${with_uniscribe+set}" = set; then :
20788 withval=$with_uniscribe;
20793 have_uniscribe=false
20794 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20795 for ac_header in usp10.h windows.h
20797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20798 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20800 cat >>confdefs.h <<_ACEOF
20801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20803 have_uniscribe=true
20809 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20810 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20812 if $have_uniscribe; then
20814 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20818 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20821 if $have_uniscribe; then
20822 HAVE_UNISCRIBE_TRUE=
20823 HAVE_UNISCRIBE_FALSE='#'
20825 HAVE_UNISCRIBE_TRUE='#'
20826 HAVE_UNISCRIBE_FALSE=
20832 # Check whether --with-directwrite was given.
20833 if test "${with_directwrite+set}" = set; then :
20834 withval=$with_directwrite;
20836 with_directwrite=no
20839 have_directwrite=false
20841 ac_cpp='$CXXCPP $CPPFLAGS'
20842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20846 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20848 for ac_header in dwrite.h
20850 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20851 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20852 cat >>confdefs.h <<_ACEOF
20853 #define HAVE_DWRITE_H 1
20855 have_directwrite=true
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20867 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20868 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20870 if $have_directwrite; then
20871 DIRECTWRITE_CXXFLAGS=
20872 DIRECTWRITE_LIBS="-ldwrite"
20876 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20879 if $have_directwrite; then
20880 HAVE_DIRECTWRITE_TRUE=
20881 HAVE_DIRECTWRITE_FALSE='#'
20883 HAVE_DIRECTWRITE_TRUE='#'
20884 HAVE_DIRECTWRITE_FALSE=
20890 # Check whether --with-coretext was given.
20891 if test "${with_coretext+set}" = set; then :
20892 withval=$with_coretext;
20897 have_coretext=false
20898 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20899 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20901 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20906 if $have_coretext; then
20908 CORETEXT_LIBS="-framework ApplicationServices"
20912 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20913 if test "x$have_coretext" != "xtrue"; then
20914 # Check for a different symbol to avoid getting cached result.
20915 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20917 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20923 if $have_coretext; then
20925 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
20931 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
20932 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
20934 if $have_coretext; then
20936 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
20939 if $have_coretext; then
20940 HAVE_CORETEXT_TRUE=
20941 HAVE_CORETEXT_FALSE='#'
20943 HAVE_CORETEXT_TRUE='#'
20944 HAVE_CORETEXT_FALSE=
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
20950 $as_echo_n "checking for Intel atomic primitives... " >&6; }
20951 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
20952 $as_echo_n "(cached) " >&6
20955 hb_cv_have_intel_atomic_primitives=false
20956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20957 /* end confdefs.h. */
20959 void memory_barrier (void) { __sync_synchronize (); }
20960 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
20961 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
20962 void mutex_unlock (int *m) { __sync_lock_release (m); }
20972 if ac_fn_c_try_link "$LINENO"; then :
20973 hb_cv_have_intel_atomic_primitives=true
20976 rm -f core conftest.err conftest.$ac_objext \
20977 conftest$ac_exeext conftest.$ac_ext
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
20981 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
20982 if $hb_cv_have_intel_atomic_primitives; then
20984 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
20990 $as_echo_n "checking for Solaris atomic operations... " >&6; }
20991 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
20992 $as_echo_n "(cached) " >&6
20995 hb_cv_have_solaris_atomic_ops=false
20996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20997 /* end confdefs.h. */
20999 #include <atomic.h>
21000 /* This requires Solaris Studio 12.2 or newer: */
21001 #include <mbarrier.h>
21002 void memory_barrier (void) { __machine_rw_barrier (); }
21003 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21004 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21014 if ac_fn_c_try_link "$LINENO"; then :
21015 hb_cv_have_solaris_atomic_ops=true
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21023 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21024 if $hb_cv_have_solaris_atomic_ops; then
21026 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21030 if test "$os_win32" = no && ! $have_pthread; then
21031 for ac_header in sched.h
21033 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21034 if test "x$ac_cv_header_sched_h" = xyes; then :
21035 cat >>confdefs.h <<_ACEOF
21036 #define HAVE_SCHED_H 1
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21044 $as_echo_n "checking for library containing sched_yield... " >&6; }
21045 if ${ac_cv_search_sched_yield+:} false; then :
21046 $as_echo_n "(cached) " >&6
21048 ac_func_search_save_LIBS=$LIBS
21049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h. */
21052 /* Override any GCC internal prototype to avoid an error.
21053 Use char because int might match the return type of a GCC
21054 builtin and then its argument prototype would still apply. */
21058 char sched_yield ();
21062 return sched_yield ();
21067 for ac_lib in '' rt; do
21068 if test -z "$ac_lib"; then
21069 ac_res="none required"
21072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21074 if ac_fn_c_try_link "$LINENO"; then :
21075 ac_cv_search_sched_yield=$ac_res
21077 rm -f core conftest.err conftest.$ac_objext \
21079 if ${ac_cv_search_sched_yield+:} false; then :
21083 if ${ac_cv_search_sched_yield+:} false; then :
21086 ac_cv_search_sched_yield=no
21088 rm conftest.$ac_ext
21089 LIBS=$ac_func_search_save_LIBS
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21092 $as_echo "$ac_cv_search_sched_yield" >&6; }
21093 ac_res=$ac_cv_search_sched_yield
21094 if test "$ac_res" != no; then :
21095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21097 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21104 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21107 cat >confcache <<\_ACEOF
21108 # This file is a shell script that caches the results of configure
21109 # tests run on this system so they can be shared between configure
21110 # scripts and configure runs, see configure's option --config-cache.
21111 # It is not useful on other systems. If it contains results you don't
21112 # want to keep, you may remove or edit it.
21114 # config.status only pays attention to the cache file if you give it
21115 # the --recheck option to rerun configure.
21117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21119 # following values.
21123 # The following way of writing the cache mishandles newlines in values,
21124 # but we know of no workaround that is simple, portable, and efficient.
21125 # So, we kill variables containing newlines.
21126 # Ultrix sh set writes to stderr and can't be redirected directly,
21127 # and sets the high bit in the cache file unless we assign to the vars.
21129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21130 eval ac_val=\$$ac_var
21134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21138 _ | IFS | as_nl) ;; #(
21139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21140 *) { eval $ac_var=; unset $ac_var;} ;;
21146 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21147 *${as_nl}ac_space=\ *)
21148 # `set' does not quote correctly, so add quotes: double-quote
21149 # substitution turns \\\\ into \\, and sed turns \\ into \.
21152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21155 # `set' quotes correctly as required by POSIX, so do not add quotes.
21156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21167 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21170 if test -w "$cache_file"; then
21171 if test "x$cache_file" != "x/dev/null"; then
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21173 $as_echo "$as_me: updating cache $cache_file" >&6;}
21174 if test ! -f "$cache_file" || test -h "$cache_file"; then
21175 cat confcache >"$cache_file"
21177 case $cache_file in #(
21179 mv -f confcache "$cache_file"$$ &&
21180 mv -f "$cache_file"$$ "$cache_file" ;; #(
21182 mv -f confcache "$cache_file" ;;
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21194 # Let make expand exec_prefix.
21195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21197 DEFS=-DHAVE_CONFIG_H
21202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21203 # 1. Remove the extension, and $U if already installed.
21204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21205 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21207 # will be set to the directory where LIBOBJS objects are built.
21208 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21209 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21211 LIBOBJS=$ac_libobjs
21213 LTLIBOBJS=$ac_ltlibobjs
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21217 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21218 if test -n "$am_sleep_pid"; then
21219 # Hide warnings about reused PIDs.
21220 wait $am_sleep_pid 2>/dev/null
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21223 $as_echo "done" >&6; }
21224 if test -n "$EXEEXT"; then
21226 am__EXEEXT_FALSE='#'
21228 am__EXEEXT_TRUE='#'
21232 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21233 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21236 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21237 as_fn_error $? "conditional \"AMDEP\" was never defined.
21238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21240 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21241 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21245 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21248 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21249 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21252 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21253 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21256 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21257 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21260 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21261 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21264 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21265 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21268 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21269 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21272 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21273 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21276 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21277 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21280 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21281 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21284 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21285 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21288 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21289 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21292 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21293 as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21296 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21297 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21300 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21301 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21304 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21305 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21308 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21309 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21312 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21313 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21316 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21317 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21320 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21321 as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21324 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21325 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21328 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21329 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21332 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21333 as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21336 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21337 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21340 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21341 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21344 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21345 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21348 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21349 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21352 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21353 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21357 : "${CONFIG_STATUS=./config.status}"
21359 ac_clean_files_save=$ac_clean_files
21360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21366 # Generated by $as_me.
21367 # Run this file to recreate the current configuration.
21368 # Compiler output produced by configure, useful for debugging
21369 # configure, is in config.log if it exists.
21372 ac_cs_recheck=false
21375 SHELL=\${CONFIG_SHELL-$SHELL}
21378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21379 ## -------------------- ##
21380 ## M4sh Initialization. ##
21381 ## -------------------- ##
21383 # Be more Bourne compatible
21384 DUALCASE=1; export DUALCASE # for MKS sh
21385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21389 # is contrary to our usage. Disable this feature.
21390 alias -g '${1+"$@"}'='"$@"'
21391 setopt NO_GLOB_SUBST
21393 case `(set -o) 2>/dev/null` in #(
21405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21409 # Prefer a ksh shell builtin over an external printf program on Solaris,
21410 # but without wasting forks for bash or zsh.
21411 if test -z "$BASH_VERSION$ZSH_VERSION" \
21412 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21413 as_echo='print -r --'
21414 as_echo_n='print -rn --'
21415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21416 as_echo='printf %s\n'
21417 as_echo_n='printf %s'
21419 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21420 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21421 as_echo_n='/usr/ucb/echo -n'
21423 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21424 as_echo_n_body='eval
21428 expr "X$arg" : "X\\(.*\\)$as_nl";
21429 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21431 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21433 export as_echo_n_body
21434 as_echo_n='sh -c $as_echo_n_body as_echo'
21436 export as_echo_body
21437 as_echo='sh -c $as_echo_body as_echo'
21440 # The user is always right.
21441 if test "${PATH_SEPARATOR+set}" != set; then
21443 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21444 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21451 # We need space, tab and new line, in precisely that order. Quoting is
21452 # there to prevent editors from complaining about space-tab.
21453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21454 # splitting by setting IFS to empty value.)
21457 # Find who we are. Look in the path if we contain no directory separator.
21460 *[\\/]* ) as_myself=$0 ;;
21461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21462 for as_dir in $PATH
21465 test -z "$as_dir" && as_dir=.
21466 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21472 # We did not find ourselves, most probably we were run as `sh COMMAND'
21473 # in which case we are not to be found in the path.
21474 if test "x$as_myself" = x; then
21477 if test ! -f "$as_myself"; then
21478 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21482 # Unset variables that we do not need and which cause bugs (e.g. in
21483 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21484 # suppresses any "Segmentation fault" message there. '((' could
21485 # trigger a bug in pdksh 5.2.14.
21486 for as_var in BASH_ENV ENV MAIL MAILPATH
21487 do eval test x\${$as_var+set} = xset \
21488 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21504 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21505 # ----------------------------------------
21506 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21507 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21508 # script with STATUS, using 1 if that was 0.
21511 as_status=$1; test $as_status -eq 0 && as_status=1
21513 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21514 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21516 $as_echo "$as_me: error: $2" >&2
21517 as_fn_exit $as_status
21521 # as_fn_set_status STATUS
21522 # -----------------------
21523 # Set $? to STATUS, without forking.
21524 as_fn_set_status ()
21527 } # as_fn_set_status
21529 # as_fn_exit STATUS
21530 # -----------------
21531 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21535 as_fn_set_status $1
21541 # Portably unset VAR.
21544 { eval $1=; unset $1;}
21546 as_unset=as_fn_unset
21547 # as_fn_append VAR VALUE
21548 # ----------------------
21549 # Append the text in VALUE to the end of the definition contained in VAR. Take
21550 # advantage of any shell optimizations that allow amortized linear growth over
21551 # repeated appends, instead of the typical quadratic growth present in naive
21553 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21554 eval 'as_fn_append ()
21565 # as_fn_arith ARG...
21566 # ------------------
21567 # Perform arithmetic evaluation on the ARGs, and store the result in the
21568 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21569 # must be portable across $(()) and expr.
21570 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21571 eval 'as_fn_arith ()
21578 as_val=`expr "$@" || test $? -eq 1`
21583 if expr a : '\(a\)' >/dev/null 2>&1 &&
21584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21591 as_basename=basename
21596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21602 as_me=`$as_basename -- "$0" ||
21603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21604 X"$0" : 'X\(//\)$' \| \
21605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21607 sed '/^.*\/\([^/][^/]*\)\/*$/{
21621 # Avoid depending upon Character Ranges.
21622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21625 as_cr_digits='0123456789'
21626 as_cr_alnum=$as_cr_Letters$as_cr_digits
21628 ECHO_C= ECHO_N= ECHO_T=
21629 case `echo -n x` in #(((((
21631 case `echo 'xy\c'` in
21632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21634 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21641 rm -f conf$$ conf$$.exe conf$$.file
21642 if test -d conf$$.dir; then
21643 rm -f conf$$.dir/conf$$.file
21646 mkdir conf$$.dir 2>/dev/null
21648 if (echo >conf$$.file) 2>/dev/null; then
21649 if ln -s conf$$.file conf$$ 2>/dev/null; then
21651 # ... but there are two gotchas:
21652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21654 # In both cases, we have to default to `cp -pR'.
21655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21657 elif ln conf$$.file conf$$ 2>/dev/null; then
21665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21666 rmdir conf$$.dir 2>/dev/null
21671 # Create "$as_dir" as a directory, including parents if necessary.
21676 -*) as_dir=./$as_dir;;
21678 test -d "$as_dir" || eval $as_mkdir_p || {
21682 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21683 *) as_qdir=$as_dir;;
21685 as_dirs="'$as_qdir' $as_dirs"
21686 as_dir=`$as_dirname -- "$as_dir" ||
21687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21688 X"$as_dir" : 'X\(//\)[^/]' \| \
21689 X"$as_dir" : 'X\(//\)$' \| \
21690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21691 $as_echo X"$as_dir" |
21692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21696 /^X\(\/\/\)[^/].*/{
21709 test -d "$as_dir" && break
21711 test -z "$as_dirs" || eval "mkdir $as_dirs"
21712 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21716 if mkdir -p . 2>/dev/null; then
21717 as_mkdir_p='mkdir -p "$as_dir"'
21719 test -d ./-p && rmdir ./-p
21724 # as_fn_executable_p FILE
21725 # -----------------------
21726 # Test if FILE is an executable regular file.
21727 as_fn_executable_p ()
21729 test -f "$1" && test -x "$1"
21730 } # as_fn_executable_p
21731 as_test_x='test -x'
21732 as_executable_p=as_fn_executable_p
21734 # Sed expression to map a string onto a valid CPP name.
21735 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21737 # Sed expression to map a string onto a valid variable name.
21738 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21742 ## ----------------------------------- ##
21743 ## Main body of $CONFIG_STATUS script. ##
21744 ## ----------------------------------- ##
21746 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21749 # Save the log message, to keep $0 and so on meaningful, and to
21750 # report actual input values of CONFIG_FILES etc. instead of their
21751 # values after options handling.
21753 This file was extended by HarfBuzz $as_me 2.3.1, which was
21754 generated by GNU Autoconf 2.69. Invocation command line was
21756 CONFIG_FILES = $CONFIG_FILES
21757 CONFIG_HEADERS = $CONFIG_HEADERS
21758 CONFIG_LINKS = $CONFIG_LINKS
21759 CONFIG_COMMANDS = $CONFIG_COMMANDS
21762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21767 case $ac_config_files in *"
21768 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21771 case $ac_config_headers in *"
21772 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21777 # Files that config.status was made for.
21778 config_files="$ac_config_files"
21779 config_headers="$ac_config_headers"
21780 config_commands="$ac_config_commands"
21784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21786 \`$as_me' instantiates files and other configuration actions
21787 from templates according to the current configuration. Unless the files
21788 and actions are specified as TAGs, all are instantiated by default.
21790 Usage: $0 [OPTION]... [TAG]...
21792 -h, --help print this help, then exit
21793 -V, --version print version number and configuration settings, then exit
21794 --config print configuration, then exit
21795 -q, --quiet, --silent
21796 do not print progress messages
21797 -d, --debug don't remove temporary files
21798 --recheck update $as_me by reconfiguring in the same conditions
21799 --file=FILE[:TEMPLATE]
21800 instantiate the configuration file FILE
21801 --header=FILE[:TEMPLATE]
21802 instantiate the configuration header FILE
21804 Configuration files:
21807 Configuration headers:
21810 Configuration commands:
21813 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21814 HarfBuzz home page: <http://harfbuzz.org/>."
21817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21818 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21820 HarfBuzz config.status 2.3.1
21821 configured by $0, generated by GNU Autoconf 2.69,
21822 with options \\"\$ac_cs_config\\"
21824 Copyright (C) 2012 Free Software Foundation, Inc.
21825 This config.status script is free software; the Free Software Foundation
21826 gives unlimited permission to copy, distribute and modify it."
21833 test -n "\$AWK" || AWK=awk
21836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21837 # The default lists apply if the user does not specify any file.
21843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21848 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21860 # Handling of the options.
21861 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21863 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21864 $as_echo "$ac_cs_version"; exit ;;
21865 --config | --confi | --conf | --con | --co | --c )
21866 $as_echo "$ac_cs_config"; exit ;;
21867 --debug | --debu | --deb | --de | --d | -d )
21869 --file | --fil | --fi | --f )
21872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21873 '') as_fn_error $? "missing file argument" ;;
21875 as_fn_append CONFIG_FILES " '$ac_optarg'"
21876 ac_need_defaults=false;;
21877 --header | --heade | --head | --hea )
21880 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21882 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21883 ac_need_defaults=false;;
21885 # Conflict between --help and --header
21886 as_fn_error $? "ambiguous option: \`$1'
21887 Try \`$0 --help' for more information.";;
21888 --help | --hel | -h )
21889 $as_echo "$ac_cs_usage"; exit ;;
21890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21891 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21894 # This is an error.
21895 -*) as_fn_error $? "unrecognized option: \`$1'
21896 Try \`$0 --help' for more information." ;;
21898 *) as_fn_append ac_config_targets " $1"
21899 ac_need_defaults=false ;;
21905 ac_configure_extra_args=
21907 if $ac_cs_silent; then
21909 ac_configure_extra_args="$ac_configure_extra_args --silent"
21913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21914 if \$ac_cs_recheck; then
21915 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21917 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21918 CONFIG_SHELL='$SHELL'
21919 export CONFIG_SHELL
21924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21929 ## Running $as_me. ##
21935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21939 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21942 # The HP-UX ksh and POSIX shell print the target directory to stdout
21943 # if CDPATH is set.
21944 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21946 sed_quote_subst='$sed_quote_subst'
21947 double_quote_subst='$double_quote_subst'
21948 delay_variable_subst='$delay_variable_subst'
21949 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21950 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21951 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21952 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21953 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21954 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21955 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21956 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21957 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21958 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21959 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21960 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21961 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21962 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21963 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21964 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21965 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21966 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21967 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21968 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21969 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21970 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21971 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21972 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21973 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21974 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21975 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21976 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21977 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21978 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21979 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21980 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21981 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21982 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21983 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21984 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21985 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21986 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21987 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21988 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21989 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21990 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21992 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22005 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22006 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22007 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"`'
22008 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22009 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22010 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22011 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22012 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22013 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22014 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22015 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22016 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22017 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22018 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22019 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22020 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22021 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22022 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22023 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22024 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22025 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22026 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22027 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22028 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22029 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22030 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22031 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22032 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22033 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22034 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22035 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22036 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22037 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22038 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22039 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22040 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22041 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22042 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22043 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22044 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22045 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22046 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22047 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22048 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22049 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22050 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22051 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22052 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22053 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22054 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22055 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22056 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22057 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22058 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22059 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22060 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22061 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22062 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22063 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22064 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22065 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22066 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22067 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22068 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22069 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22070 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22071 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22072 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22073 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22074 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22075 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22076 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22077 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22078 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22079 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22080 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22081 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22082 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22083 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22084 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22085 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22086 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22087 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22088 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22089 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22090 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22091 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22092 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22093 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22094 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22095 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22096 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22097 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22098 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22099 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22100 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22101 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22102 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22103 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22104 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22105 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22106 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22107 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22108 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22109 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22110 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22111 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22112 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22113 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22114 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22115 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22116 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22117 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22118 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22119 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22120 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22121 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22122 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22123 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22124 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22125 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22126 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22127 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22128 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22129 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22130 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22131 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22132 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22133 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22134 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22135 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22136 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22137 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22140 LTCFLAGS='$LTCFLAGS'
22141 compiler='$compiler_DEFAULT'
22143 # A function that is used when there is no print builtin or printf.
22144 func_fallback_echo ()
22146 eval 'cat <<_LTECHO_EOF
22151 # Quote evaled strings.
22166 deplibs_check_method \
22171 sharedlib_from_linklib_cmd \
22174 archiver_list_spec \
22180 lt_cv_sys_global_symbol_pipe \
22181 lt_cv_sys_global_symbol_to_cdecl \
22182 lt_cv_sys_global_symbol_to_import \
22183 lt_cv_sys_global_symbol_to_c_name_address \
22184 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22185 lt_cv_nm_interface \
22186 nm_file_list_spec \
22187 lt_cv_truncate_bin \
22188 lt_prog_compiler_no_builtin_flag \
22189 lt_prog_compiler_pic \
22190 lt_prog_compiler_wl \
22191 lt_prog_compiler_static \
22192 lt_cv_prog_compiler_c_o \
22201 export_dynamic_flag_spec \
22202 whole_archive_flag_spec \
22203 compiler_needs_object \
22205 allow_undefined_flag \
22206 no_undefined_flag \
22207 hardcode_libdir_flag_spec \
22208 hardcode_libdir_separator \
22212 variables_saved_for_relink \
22214 library_names_spec \
22216 install_override_mode \
22220 compiler_lib_search_dirs \
22225 compiler_lib_search_path \
22229 lt_prog_compiler_no_builtin_flag_CXX \
22230 lt_prog_compiler_pic_CXX \
22231 lt_prog_compiler_wl_CXX \
22232 lt_prog_compiler_static_CXX \
22233 lt_cv_prog_compiler_c_o_CXX \
22234 export_dynamic_flag_spec_CXX \
22235 whole_archive_flag_spec_CXX \
22236 compiler_needs_object_CXX \
22238 allow_undefined_flag_CXX \
22239 no_undefined_flag_CXX \
22240 hardcode_libdir_flag_spec_CXX \
22241 hardcode_libdir_separator_CXX \
22242 exclude_expsyms_CXX \
22243 include_expsyms_CXX \
22244 file_list_spec_CXX \
22245 compiler_lib_search_dirs_CXX \
22246 predep_objects_CXX \
22247 postdep_objects_CXX \
22250 compiler_lib_search_path_CXX; do
22251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22252 *[\\\\\\\`\\"\\\$]*)
22253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22261 # Double-quote double-evaled strings.
22262 for var in reload_cmds \
22263 old_postinstall_cmds \
22264 old_postuninstall_cmds \
22266 extract_expsyms_cmds \
22267 old_archive_from_new_cmds \
22268 old_archive_from_expsyms_cmds \
22270 archive_expsym_cmds \
22272 module_expsym_cmds \
22273 export_symbols_cmds \
22277 postuninstall_cmds \
22279 sys_lib_search_path_spec \
22280 configure_time_dlsearch_path \
22281 configure_time_lt_sys_library_path \
22283 old_archive_cmds_CXX \
22284 old_archive_from_new_cmds_CXX \
22285 old_archive_from_expsyms_cmds_CXX \
22287 archive_expsym_cmds_CXX \
22289 module_expsym_cmds_CXX \
22290 export_symbols_cmds_CXX \
22292 postlink_cmds_CXX; do
22293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22294 *[\\\\\\\`\\"\\\$]*)
22295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22303 ac_aux_dir='$ac_aux_dir'
22305 # See if we are running on zsh, and set the options that allow our
22306 # commands through without removal of \ escapes INIT.
22307 if test -n "\${ZSH_VERSION+set}"; then
22308 setopt NO_GLOB_SUBST
22324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22326 # Handling of arguments.
22327 for ac_config_target in $ac_config_targets
22329 case $ac_config_target in
22330 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22331 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22332 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22333 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22334 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22335 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22336 "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22337 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22338 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22339 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22340 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22341 "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22342 "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22343 "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
22344 "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22345 "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22346 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22347 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22348 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22349 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22351 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22356 # If the user did not use the arguments to specify the items to instantiate,
22357 # then the envvar interface is used. Set only those that are not.
22358 # We use the long form for the default assignment because of an extremely
22359 # bizarre bug on SunOS 4.1.3.
22360 if $ac_need_defaults; then
22361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22366 # Have a temporary directory for convenience. Make it in the build tree
22367 # simply because there is no reason against having it here, and in addition,
22368 # creating and moving files from /tmp can sometimes cause problems.
22369 # Hook for its removal unless debugging.
22370 # Note that there is a small window in which the directory will not be cleaned:
22371 # after its creation but before its name has been assigned to `$tmp'.
22375 trap 'exit_status=$?
22376 : "${ac_tmp:=$tmp}"
22377 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22379 trap 'as_fn_exit 1' 1 2 13 15
22381 # Create a (secure) tmp directory for tmp files.
22384 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22388 tmp=./conf$$-$RANDOM
22389 (umask 077 && mkdir "$tmp")
22390 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22393 # Set up the scripts for CONFIG_FILES section.
22394 # No need to generate them if there are no CONFIG_FILES.
22395 # This happens for instance with `./config.status config.h'.
22396 if test -n "$CONFIG_FILES"; then
22399 ac_cr=`echo X | tr X '\015'`
22400 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22401 # But we know of no other shell where ac_cr would be empty at this
22402 # point, so we can use a bashism as a fallback.
22403 if test "x$ac_cr" = x; then
22404 eval ac_cr=\$\'\\r\'
22406 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22407 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22410 ac_cs_awk_cr=$ac_cr
22413 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22418 echo "cat >conf$$subs.awk <<_ACEOF" &&
22419 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22421 } >conf$$subs.sh ||
22422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22423 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22425 for ac_last_try in false false false false false :; do
22426 . ./conf$$subs.sh ||
22427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22429 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22430 if test $ac_delim_n = $ac_delim_num; then
22432 elif $ac_last_try; then
22433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22438 rm -f conf$$subs.sh
22440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22441 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22445 s/^/S["/; s/!.*/"]=/
22455 s/\(.\{148\}\)..*/\1/
22457 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22469 s/\(.\{148\}\)..*/\1/
22471 s/["\\]/\\&/g; s/^/"/; s/$/"/
22475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22480 ' <conf$$subs.awk | sed '
22485 ' >>$CONFIG_STATUS || ac_write_fail=1
22486 rm -f conf$$subs.awk
22487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22489 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22490 for (key in S) S_is_set[key] = 1
22496 nfields = split(line, field, "@")
22498 len = length(field[1])
22499 for (i = 2; i < nfields; i++) {
22501 keylen = length(key)
22502 if (S_is_set[key]) {
22504 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22505 len += length(value) + length(field[++i])
22516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22517 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22518 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22521 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22522 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22525 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22526 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22527 # trailing colons and then remove the whole line if VPATH becomes empty
22528 # (actually we leave an empty line to preserve line numbers).
22529 if test "x$srcdir" = x.; then
22530 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22549 fi # test -n "$CONFIG_FILES"
22551 # Set up the scripts for CONFIG_HEADERS section.
22552 # No need to generate them if there are no CONFIG_HEADERS.
22553 # This happens for instance with `./config.status Makefile'.
22554 if test -n "$CONFIG_HEADERS"; then
22555 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22559 # Transform confdefs.h into an awk script `defines.awk', embedded as
22560 # here-document in config.status, that substitutes the proper values into
22561 # config.h.in to produce config.h.
22563 # Create a delimiter string that does not exist in confdefs.h, to ease
22564 # handling of long lines.
22566 for ac_last_try in false false :; do
22567 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22568 if test -z "$ac_tt"; then
22570 elif $ac_last_try; then
22571 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22577 # For the awk script, D is an array of macro values keyed by name,
22578 # likewise P contains macro parameters if any. Preserve backslash
22579 # newline sequences.
22581 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22583 s/.\{148\}/&'"$ac_delim"'/g
22586 s/^[ ]*#[ ]*define[ ][ ]*/ /
22593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22600 D["\1"]=" \3\\\\\\n"\\/p
22602 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22607 s/.\{148\}/&'"$ac_delim"'/g
22612 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22615 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22617 ' <confdefs.h | sed '
22618 s/'"$ac_delim"'/"\\\
22619 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22622 for (key in D) D_is_set[key] = 1
22625 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22627 split(line, arg, " ")
22628 if (arg[1] == "#") {
22632 defundef = substr(arg[1], 2)
22635 split(mac1, mac2, "(") #)
22637 prefix = substr(line, 1, index(line, defundef) - 1)
22638 if (D_is_set[macro]) {
22639 # Preserve the white space surrounding the "#".
22640 print prefix "define", macro P[macro] D[macro]
22643 # Replace #undef with comments. This is necessary, for example,
22644 # in the case of _POSIX_SOURCE, which is predefined and required
22645 # on some systems where configure will not decide to define it.
22646 if (defundef == "undef") {
22647 print "/*", prefix defundef, macro, "*/"
22655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22656 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22657 fi # test -n "$CONFIG_HEADERS"
22660 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22665 :[FHLC]) ac_mode=$ac_tag; continue;;
22667 case $ac_mode$ac_tag in
22669 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22670 :[FH]-) ac_tag=-:-;;
22671 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22688 -) ac_f="$ac_tmp/stdin";;
22689 *) # Look for the file first in the build tree, then in the source tree
22690 # (if the path is not absolute). The absolute path cannot be DOS-style,
22691 # because $ac_f cannot contain `:'.
22695 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22697 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22699 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22700 as_fn_append ac_file_inputs " '$ac_f'"
22703 # Let's still pretend it is `configure' which instantiates (i.e., don't
22704 # use $as_me), people would be surprised to read:
22705 # /* config.h. Generated by config.status. */
22706 configure_input='Generated from '`
22707 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22709 if test x"$ac_file" != x-; then
22710 configure_input="$ac_file. $configure_input"
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22712 $as_echo "$as_me: creating $ac_file" >&6;}
22714 # Neutralize special characters interpreted by sed in replacement strings.
22715 case $configure_input in #(
22716 *\&* | *\|* | *\\* )
22717 ac_sed_conf_input=`$as_echo "$configure_input" |
22718 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22719 *) ac_sed_conf_input=$configure_input;;
22723 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22729 ac_dir=`$as_dirname -- "$ac_file" ||
22730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22731 X"$ac_file" : 'X\(//\)[^/]' \| \
22732 X"$ac_file" : 'X\(//\)$' \| \
22733 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22734 $as_echo X"$ac_file" |
22735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22739 /^X\(\/\/\)[^/].*/{
22752 as_dir="$ac_dir"; as_fn_mkdir_p
22756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22759 # A ".." for each directory in $ac_dir_suffix.
22760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22761 case $ac_top_builddir_sub in
22762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22766 ac_abs_top_builddir=$ac_pwd
22767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22768 # for backward compatibility:
22769 ac_top_builddir=$ac_top_build_prefix
22772 .) # We are building in place.
22774 ac_top_srcdir=$ac_top_builddir_sub
22775 ac_abs_top_srcdir=$ac_pwd ;;
22776 [\\/]* | ?:[\\/]* ) # Absolute name.
22777 ac_srcdir=$srcdir$ac_dir_suffix;
22778 ac_top_srcdir=$srcdir
22779 ac_abs_top_srcdir=$srcdir ;;
22780 *) # Relative name.
22781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22782 ac_top_srcdir=$ac_top_build_prefix$srcdir
22783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22798 ac_MKDIR_P=$MKDIR_P
22800 [\\/$]* | ?:[\\/]* ) ;;
22801 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22806 # If the template does not know about datarootdir, expand it.
22807 # FIXME: This hack should be removed a few years after 2.60.
22808 ac_datarootdir_hack=; ac_datarootdir_seen=
22819 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22820 *datarootdir*) ac_datarootdir_seen=yes;;
22821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22823 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22826 ac_datarootdir_hack='
22827 s&@datadir@&$datadir&g
22828 s&@docdir@&$docdir&g
22829 s&@infodir@&$infodir&g
22830 s&@localedir@&$localedir&g
22831 s&@mandir@&$mandir&g
22832 s&\\\${datarootdir}&$datarootdir&g' ;;
22836 # Neutralize VPATH when `$srcdir' = `.'.
22837 # Shell code in configure.ac might set extrasub.
22838 # FIXME: do we really want to maintain this feature?
22839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22840 ac_sed_extra="$ac_vpsub
22843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22846 s|@configure_input@|$ac_sed_conf_input|;t t
22847 s&@top_builddir@&$ac_top_builddir_sub&;t t
22848 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22849 s&@srcdir@&$ac_srcdir&;t t
22850 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22851 s&@top_srcdir@&$ac_top_srcdir&;t t
22852 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22853 s&@builddir@&$ac_builddir&;t t
22854 s&@abs_builddir@&$ac_abs_builddir&;t t
22855 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22856 s&@INSTALL@&$ac_INSTALL&;t t
22857 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22858 $ac_datarootdir_hack
22860 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22861 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22863 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22864 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22865 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22866 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22868 which seems to be undefined. Please make sure it is defined" >&5
22869 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22870 which seems to be undefined. Please make sure it is defined" >&2;}
22872 rm -f "$ac_tmp/stdin"
22874 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22875 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22883 if test x"$ac_file" != x-; then
22885 $as_echo "/* $configure_input */" \
22886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22887 } >"$ac_tmp/config.h" \
22888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22889 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22891 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22894 mv "$ac_tmp/config.h" "$ac_file" \
22895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22898 $as_echo "/* $configure_input */" \
22899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22900 || as_fn_error $? "could not create -" "$LINENO" 5
22902 # Compute "$ac_file"'s index in $config_headers.
22905 for _am_header in $config_headers :; do
22906 case $_am_header in
22907 $_am_arg | $_am_arg:* )
22910 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22913 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22914 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22915 X"$_am_arg" : 'X\(//\)[^/]' \| \
22916 X"$_am_arg" : 'X\(//\)$' \| \
22917 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22918 $as_echo X"$_am_arg" |
22919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22923 /^X\(\/\/\)[^/].*/{
22935 s/.*/./; q'`/stamp-h$_am_stamp_count
22938 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22939 $as_echo "$as_me: executing $ac_file commands" >&6;}
22944 case $ac_file$ac_mode in
22945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22946 # Older Autoconf quotes --file arguments for eval, but not when files
22947 # are listed without --file. Let's play safe and only enable the eval
22948 # if we detect the quoting.
22949 case $CONFIG_FILES in
22950 *\'*) eval set x "$CONFIG_FILES" ;;
22951 *) set x $CONFIG_FILES ;;
22956 # Strip MF so we end up with the name of the file.
22957 mf=`echo "$mf" | sed -e 's/:.*$//'`
22958 # Check whether this is an Automake generated Makefile or not.
22959 # We used to match only the files named 'Makefile.in', but
22960 # some people rename them; so instead we look at the file content.
22961 # Grep'ing the first line is not enough: some people post-process
22962 # each Makefile.in and add a new line on top of each file to say so.
22963 # Grep'ing the whole file is not good either: AIX grep has a line
22964 # limit of 2048, but all sed's we know have understand at least 4000.
22965 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22966 dirpart=`$as_dirname -- "$mf" ||
22967 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22968 X"$mf" : 'X\(//\)[^/]' \| \
22969 X"$mf" : 'X\(//\)$' \| \
22970 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22976 /^X\(\/\/\)[^/].*/{
22992 # Extract the definition of DEPDIR, am__include, and am__quote
22993 # from the Makefile without running 'make'.
22994 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22995 test -z "$DEPDIR" && continue
22996 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22997 test -z "$am__include" && continue
22998 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22999 # Find all dependency output files, they are included files with
23000 # $(DEPDIR) in their names. We invoke sed twice because it is the
23001 # simplest approach to changing $(DEPDIR) to its actual value in the
23003 for file in `sed -n "
23004 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23005 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23006 # Make sure the directory exists.
23007 test -f "$dirpart/$file" && continue
23008 fdir=`$as_dirname -- "$file" ||
23009 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23010 X"$file" : 'X\(//\)[^/]' \| \
23011 X"$file" : 'X\(//\)$' \| \
23012 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23013 $as_echo X"$file" |
23014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23018 /^X\(\/\/\)[^/].*/{
23031 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23032 # echo "creating $dirpart/$file"
23033 echo '# dummy' > "$dirpart/$file"
23040 # See if we are running on zsh, and set the options that allow our
23041 # commands through without removal of \ escapes.
23042 if test -n "${ZSH_VERSION+set}"; then
23043 setopt NO_GLOB_SUBST
23047 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23050 cat <<_LT_EOF >> "$cfgfile"
23052 # Generated automatically by $as_me ($PACKAGE) $VERSION
23053 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23055 # Provide generalized library-building support services.
23056 # Written by Gordon Matzigkeit, 1996
23058 # Copyright (C) 2014 Free Software Foundation, Inc.
23059 # This is free software; see the source for copying conditions. There is NO
23060 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23062 # GNU Libtool is free software; you can redistribute it and/or modify
23063 # it under the terms of the GNU General Public License as published by
23064 # the Free Software Foundation; either version 2 of of the License, or
23065 # (at your option) any later version.
23067 # As a special exception to the GNU General Public License, if you
23068 # distribute this file as part of a program or library that is built
23069 # using GNU Libtool, you may include this file under the same
23070 # distribution terms that you use for the rest of that program.
23072 # GNU Libtool is distributed in the hope that it will be useful, but
23073 # WITHOUT ANY WARRANTY; without even the implied warranty of
23074 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23075 # GNU General Public License for more details.
23077 # You should have received a copy of the GNU General Public License
23078 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23081 # The names of the tagged configurations supported by this script.
23082 available_tags='CXX '
23084 # Configured defaults for sys_lib_dlsearch_path munging.
23085 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23087 # ### BEGIN LIBTOOL CONFIG
23089 # Which release of libtool.m4 was used?
23090 macro_version=$macro_version
23091 macro_revision=$macro_revision
23093 # Whether or not to build static libraries.
23094 build_old_libs=$enable_static
23096 # Whether or not to build shared libraries.
23097 build_libtool_libs=$enable_shared
23099 # What type of objects to build.
23102 # Whether or not to optimize for fast installation.
23103 fast_install=$enable_fast_install
23105 # Shared archive member basename,for filename based shared library versioning on AIX.
23106 shared_archive_member_spec=$shared_archive_member_spec
23108 # Shell to use when invoking shell scripts.
23111 # An echo program that protects backslashes.
23114 # The PATH separator for the build system.
23115 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23118 host_alias=$host_alias
23122 # The build system.
23123 build_alias=$build_alias
23127 # A sed program that does not truncate output.
23130 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23131 Xsed="\$SED -e 1s/^X//"
23133 # A grep program that handles long lines.
23139 # A literal string matcher.
23142 # A BSD- or MS-compatible name lister.
23145 # Whether we need soft or hard links.
23148 # What is the maximum length of a command?
23149 max_cmd_len=$max_cmd_len
23151 # Object file suffix (normally "o").
23154 # Executable file suffix (normally "").
23157 # whether the shell understands "unset".
23160 # turn spaces into newlines.
23163 # turn newlines into spaces.
23166 # convert \$build file names to \$host format.
23167 to_host_file_cmd=$lt_cv_to_host_file_cmd
23169 # convert \$build files to toolchain format.
23170 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23172 # An object symbol dumper.
23173 OBJDUMP=$lt_OBJDUMP
23175 # Method to check whether dependent libraries are shared objects.
23176 deplibs_check_method=$lt_deplibs_check_method
23178 # Command to use when deplibs_check_method = "file_magic".
23179 file_magic_cmd=$lt_file_magic_cmd
23181 # How to find potential files when deplibs_check_method = "file_magic".
23182 file_magic_glob=$lt_file_magic_glob
23184 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23185 want_nocaseglob=$lt_want_nocaseglob
23187 # DLL creation program.
23188 DLLTOOL=$lt_DLLTOOL
23190 # Command to associate shared and link libraries.
23191 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23196 # Flags to create an archive.
23197 AR_FLAGS=$lt_AR_FLAGS
23199 # How to feed a file listing to the archiver.
23200 archiver_list_spec=$lt_archiver_list_spec
23202 # A symbol stripping program.
23205 # Commands used to install an old-style archive.
23207 old_postinstall_cmds=$lt_old_postinstall_cmds
23208 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23210 # Whether to use a lock for old archive extraction.
23211 lock_old_archive_extraction=$lock_old_archive_extraction
23216 # LTCC compiler flags.
23217 LTCFLAGS=$lt_CFLAGS
23219 # Take the output of nm and produce a listing of raw symbols and C names.
23220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23222 # Transform the output of nm in a proper C declaration.
23223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23225 # Transform the output of nm into a list of symbols to manually relocate.
23226 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23228 # Transform the output of nm in a C name address pair.
23229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23231 # Transform the output of nm in a C name address pair when lib prefix is needed.
23232 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23234 # The name lister interface.
23235 nm_interface=$lt_lt_cv_nm_interface
23237 # Specify filename containing input files for \$NM.
23238 nm_file_list_spec=$lt_nm_file_list_spec
23240 # The root where to search for dependent libraries,and where our libraries should be installed.
23241 lt_sysroot=$lt_sysroot
23243 # Command to truncate a binary pipe.
23244 lt_truncate_bin=$lt_lt_cv_truncate_bin
23246 # The name of the directory that contains temporary libtool files.
23249 # Used to examine libraries when file_magic_cmd begins with "file".
23250 MAGIC_CMD=$MAGIC_CMD
23252 # Must we lock files when doing compilation?
23253 need_locks=$lt_need_locks
23256 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23258 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23259 DSYMUTIL=$lt_DSYMUTIL
23261 # Tool to change global to local symbols on Mac OS X.
23264 # Tool to manipulate fat objects and archives on Mac OS X.
23267 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23270 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23271 OTOOL64=$lt_OTOOL64
23273 # Old archive suffix (normally "a").
23276 # Shared library suffix (normally ".so").
23277 shrext_cmds=$lt_shrext_cmds
23279 # The commands to extract the exported symbol list from a shared archive.
23280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23282 # Variables whose values should be saved in libtool wrapper scripts and
23283 # restored at link time.
23284 variables_saved_for_relink=$lt_variables_saved_for_relink
23286 # Do we need the "lib" prefix for modules?
23287 need_lib_prefix=$need_lib_prefix
23289 # Do we need a version for libraries?
23290 need_version=$need_version
23292 # Library versioning type.
23293 version_type=$version_type
23295 # Shared library runtime path variable.
23296 runpath_var=$runpath_var
23298 # Shared library path variable.
23299 shlibpath_var=$shlibpath_var
23301 # Is shlibpath searched before the hard-coded library search path?
23302 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23304 # Format of library name prefix.
23305 libname_spec=$lt_libname_spec
23307 # List of archive names. First name is the real one, the rest are links.
23308 # The last name is the one that the linker finds with -lNAME
23309 library_names_spec=$lt_library_names_spec
23311 # The coded name of the library, if different from the real name.
23312 soname_spec=$lt_soname_spec
23314 # Permission mode override for installation of shared libraries.
23315 install_override_mode=$lt_install_override_mode
23317 # Command to use after installation of a shared archive.
23318 postinstall_cmds=$lt_postinstall_cmds
23320 # Command to use after uninstallation of a shared archive.
23321 postuninstall_cmds=$lt_postuninstall_cmds
23323 # Commands used to finish a libtool library installation in a directory.
23324 finish_cmds=$lt_finish_cmds
23326 # As "finish_cmds", except a single script fragment to be evaled but
23328 finish_eval=$lt_finish_eval
23330 # Whether we should hardcode library paths into libraries.
23331 hardcode_into_libs=$hardcode_into_libs
23333 # Compile-time system search path for libraries.
23334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23336 # Detected run-time system search path for libraries.
23337 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23339 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23340 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23342 # Whether dlopen is supported.
23343 dlopen_support=$enable_dlopen
23345 # Whether dlopen of programs is supported.
23346 dlopen_self=$enable_dlopen_self
23348 # Whether dlopen of statically linked programs is supported.
23349 dlopen_self_static=$enable_dlopen_self_static
23351 # Commands to strip libraries.
23352 old_striplib=$lt_old_striplib
23353 striplib=$lt_striplib
23356 # The linker used to build libraries.
23359 # How to create reloadable object files.
23360 reload_flag=$lt_reload_flag
23361 reload_cmds=$lt_reload_cmds
23363 # Commands used to build an old-style archive.
23364 old_archive_cmds=$lt_old_archive_cmds
23366 # A language specific compiler.
23369 # Is the compiler the GNU compiler?
23372 # Compiler flag to turn off builtin functions.
23373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23375 # Additional compiler flags for building library objects.
23376 pic_flag=$lt_lt_prog_compiler_pic
23378 # How to pass a linker flag through the compiler.
23379 wl=$lt_lt_prog_compiler_wl
23381 # Compiler flag to prevent dynamic linking.
23382 link_static_flag=$lt_lt_prog_compiler_static
23384 # Does compiler simultaneously support -c and -o options?
23385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23387 # Whether or not to add -lc for building shared libraries.
23388 build_libtool_need_lc=$archive_cmds_need_lc
23390 # Whether or not to disallow shared libs when runtime libs are static.
23391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23393 # Compiler flag to allow reflexive dlopens.
23394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23396 # Compiler flag to generate shared objects directly from archives.
23397 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23399 # Whether the compiler copes with passing no objects directly.
23400 compiler_needs_object=$lt_compiler_needs_object
23402 # Create an old-style archive from a shared archive.
23403 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23405 # Create a temporary old-style archive to link instead of a shared archive.
23406 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23408 # Commands used to build a shared archive.
23409 archive_cmds=$lt_archive_cmds
23410 archive_expsym_cmds=$lt_archive_expsym_cmds
23412 # Commands used to build a loadable module if different from building
23413 # a shared archive.
23414 module_cmds=$lt_module_cmds
23415 module_expsym_cmds=$lt_module_expsym_cmds
23417 # Whether we are building with GNU ld or not.
23418 with_gnu_ld=$lt_with_gnu_ld
23420 # Flag that allows shared libraries with undefined symbols to be built.
23421 allow_undefined_flag=$lt_allow_undefined_flag
23423 # Flag that enforces no undefined symbols.
23424 no_undefined_flag=$lt_no_undefined_flag
23426 # Flag to hardcode \$libdir into a binary during linking.
23427 # This must work even if \$libdir does not exist
23428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23430 # Whether we need a single "-rpath" flag with a separated argument.
23431 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23433 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23434 # DIR into the resulting binary.
23435 hardcode_direct=$hardcode_direct
23437 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23438 # DIR into the resulting binary and the resulting library dependency is
23439 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23440 # library is relocated.
23441 hardcode_direct_absolute=$hardcode_direct_absolute
23443 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23444 # into the resulting binary.
23445 hardcode_minus_L=$hardcode_minus_L
23447 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23448 # into the resulting binary.
23449 hardcode_shlibpath_var=$hardcode_shlibpath_var
23451 # Set to "yes" if building a shared library automatically hardcodes DIR
23452 # into the library and all subsequent libraries and executables linked
23454 hardcode_automatic=$hardcode_automatic
23456 # Set to yes if linker adds runtime paths of dependent libraries
23457 # to runtime path list.
23458 inherit_rpath=$inherit_rpath
23460 # Whether libtool must link a program against all its dependency libraries.
23461 link_all_deplibs=$link_all_deplibs
23463 # Set to "yes" if exported symbols are required.
23464 always_export_symbols=$always_export_symbols
23466 # The commands to list exported symbols.
23467 export_symbols_cmds=$lt_export_symbols_cmds
23469 # Symbols that should not be listed in the preloaded symbols.
23470 exclude_expsyms=$lt_exclude_expsyms
23472 # Symbols that must always be exported.
23473 include_expsyms=$lt_include_expsyms
23475 # Commands necessary for linking programs (against libraries) with templates.
23476 prelink_cmds=$lt_prelink_cmds
23478 # Commands necessary for finishing linking programs.
23479 postlink_cmds=$lt_postlink_cmds
23481 # Specify filename containing input files.
23482 file_list_spec=$lt_file_list_spec
23484 # How to hardcode a shared library path into an executable.
23485 hardcode_action=$hardcode_action
23487 # The directories searched by this compiler when creating a shared library.
23488 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23490 # Dependencies to place before and after the objects being linked to
23491 # create a shared library.
23492 predep_objects=$lt_predep_objects
23493 postdep_objects=$lt_postdep_objects
23494 predeps=$lt_predeps
23495 postdeps=$lt_postdeps
23497 # The library search path used internally by the compiler when linking
23498 # a shared library.
23499 compiler_lib_search_path=$lt_compiler_lib_search_path
23501 # ### END LIBTOOL CONFIG
23505 cat <<'_LT_EOF' >> "$cfgfile"
23507 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23509 # func_munge_path_list VARIABLE PATH
23510 # -----------------------------------
23511 # VARIABLE is name of variable containing _space_ separated list of
23512 # directories to be munged by the contents of PATH, which is string
23515 # string "DIR[ DIR]" will be prepended to VARIABLE
23517 # string "DIR[ DIR]" will be appended to VARIABLE
23518 # "DIRP[:DIRP]::[DIRA:]DIRA"
23519 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23520 # "DIRA[ DIRA]" will be appended to VARIABLE
23522 # VARIABLE will be replaced by "DIR[ DIR]"
23523 func_munge_path_list ()
23529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23532 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23535 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23536 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23545 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23546 func_cc_basename ()
23548 for cc_temp in $*""; do
23550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23556 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23560 # ### END FUNCTIONS SHARED WITH CONFIGURE
23566 cat <<\_LT_EOF >> "$cfgfile"
23567 # AIX sometimes has problems with the GCC collect2 program. For some
23568 # reason, if we set the COLLECT_NAMES environment variable, the problems
23569 # vanish in a puff of smoke.
23570 if test set != "${COLLECT_NAMES+set}"; then
23572 export COLLECT_NAMES
23579 ltmain=$ac_aux_dir/ltmain.sh
23582 # We use sed instead of cat because bash on DJGPP gets confused if
23583 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23584 # text mode, it properly converts lines to CR/LF. This bash problem
23585 # is reportedly fixed, but why not run on old versions too?
23586 sed '$q' "$ltmain" >> "$cfgfile" \
23587 || (rm -f "$cfgfile"; exit 1)
23589 mv -f "$cfgfile" "$ofile" ||
23590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23594 cat <<_LT_EOF >> "$ofile"
23596 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23598 # The linker used to build libraries.
23601 # How to create reloadable object files.
23602 reload_flag=$lt_reload_flag_CXX
23603 reload_cmds=$lt_reload_cmds_CXX
23605 # Commands used to build an old-style archive.
23606 old_archive_cmds=$lt_old_archive_cmds_CXX
23608 # A language specific compiler.
23609 CC=$lt_compiler_CXX
23611 # Is the compiler the GNU compiler?
23614 # Compiler flag to turn off builtin functions.
23615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23617 # Additional compiler flags for building library objects.
23618 pic_flag=$lt_lt_prog_compiler_pic_CXX
23620 # How to pass a linker flag through the compiler.
23621 wl=$lt_lt_prog_compiler_wl_CXX
23623 # Compiler flag to prevent dynamic linking.
23624 link_static_flag=$lt_lt_prog_compiler_static_CXX
23626 # Does compiler simultaneously support -c and -o options?
23627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23629 # Whether or not to add -lc for building shared libraries.
23630 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23632 # Whether or not to disallow shared libs when runtime libs are static.
23633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23635 # Compiler flag to allow reflexive dlopens.
23636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23638 # Compiler flag to generate shared objects directly from archives.
23639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23641 # Whether the compiler copes with passing no objects directly.
23642 compiler_needs_object=$lt_compiler_needs_object_CXX
23644 # Create an old-style archive from a shared archive.
23645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23647 # Create a temporary old-style archive to link instead of a shared archive.
23648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23650 # Commands used to build a shared archive.
23651 archive_cmds=$lt_archive_cmds_CXX
23652 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23654 # Commands used to build a loadable module if different from building
23655 # a shared archive.
23656 module_cmds=$lt_module_cmds_CXX
23657 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23659 # Whether we are building with GNU ld or not.
23660 with_gnu_ld=$lt_with_gnu_ld_CXX
23662 # Flag that allows shared libraries with undefined symbols to be built.
23663 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23665 # Flag that enforces no undefined symbols.
23666 no_undefined_flag=$lt_no_undefined_flag_CXX
23668 # Flag to hardcode \$libdir into a binary during linking.
23669 # This must work even if \$libdir does not exist
23670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23672 # Whether we need a single "-rpath" flag with a separated argument.
23673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23675 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23676 # DIR into the resulting binary.
23677 hardcode_direct=$hardcode_direct_CXX
23679 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23680 # DIR into the resulting binary and the resulting library dependency is
23681 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23682 # library is relocated.
23683 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23686 # into the resulting binary.
23687 hardcode_minus_L=$hardcode_minus_L_CXX
23689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23690 # into the resulting binary.
23691 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23693 # Set to "yes" if building a shared library automatically hardcodes DIR
23694 # into the library and all subsequent libraries and executables linked
23696 hardcode_automatic=$hardcode_automatic_CXX
23698 # Set to yes if linker adds runtime paths of dependent libraries
23699 # to runtime path list.
23700 inherit_rpath=$inherit_rpath_CXX
23702 # Whether libtool must link a program against all its dependency libraries.
23703 link_all_deplibs=$link_all_deplibs_CXX
23705 # Set to "yes" if exported symbols are required.
23706 always_export_symbols=$always_export_symbols_CXX
23708 # The commands to list exported symbols.
23709 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23711 # Symbols that should not be listed in the preloaded symbols.
23712 exclude_expsyms=$lt_exclude_expsyms_CXX
23714 # Symbols that must always be exported.
23715 include_expsyms=$lt_include_expsyms_CXX
23717 # Commands necessary for linking programs (against libraries) with templates.
23718 prelink_cmds=$lt_prelink_cmds_CXX
23720 # Commands necessary for finishing linking programs.
23721 postlink_cmds=$lt_postlink_cmds_CXX
23723 # Specify filename containing input files.
23724 file_list_spec=$lt_file_list_spec_CXX
23726 # How to hardcode a shared library path into an executable.
23727 hardcode_action=$hardcode_action_CXX
23729 # The directories searched by this compiler when creating a shared library.
23730 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23732 # Dependencies to place before and after the objects being linked to
23733 # create a shared library.
23734 predep_objects=$lt_predep_objects_CXX
23735 postdep_objects=$lt_postdep_objects_CXX
23736 predeps=$lt_predeps_CXX
23737 postdeps=$lt_postdeps_CXX
23739 # The library search path used internally by the compiler when linking
23740 # a shared library.
23741 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23743 # ### END LIBTOOL TAG CONFIG: CXX
23754 ac_clean_files=$ac_clean_files_save
23756 test $ac_write_fail = 0 ||
23757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23760 # configure is writing to config.log, and then calls config.status.
23761 # config.status does its own redirection, appending to config.log.
23762 # Unfortunately, on DOS this fails, as config.log is still kept open
23763 # by configure, so config.status won't be able to write to it; its
23764 # output is simply discarded. So we exec the FD to /dev/null,
23765 # effectively closing config.log, so it can be properly (re)opened and
23766 # appended to by config.status. When coming back to configure, we
23767 # need to make the FD available again.
23768 if test "$no_create" != yes; then
23770 ac_config_status_args=
23771 test "$silent" = yes &&
23772 ac_config_status_args="$ac_config_status_args --quiet"
23774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23777 # would make configure fail if this is the last instruction.
23778 $ac_cs_success || as_fn_exit 1
23780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23782 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23786 { $as_echo "$as_me:${as_lineno-$LINENO}:
23788 Build configuration:
23790 Unicode callbacks (you want at least one):
23791 Builtin (UCDN): ${have_ucdn}
23795 Font callbacks (the more the merrier):
23796 FreeType: ${have_freetype}
23798 Tools used for command-line utilities:
23799 Cairo: ${have_cairo}
23800 Fontconfig: ${have_fontconfig}
23802 Additional shapers (the more the merrier):
23803 Graphite2: ${have_graphite2}
23805 Platform shapers (not normally needed):
23806 CoreText: ${have_coretext}
23807 DirectWrite: ${have_directwrite}
23808 Uniscribe: ${have_uniscribe}
23811 Documentation: ${enable_gtk_doc}
23812 GObject bindings: ${have_gobject}
23813 Introspection: ${have_introspection}
23817 Build configuration:
23819 Unicode callbacks (you want at least one):
23820 Builtin (UCDN): ${have_ucdn}
23824 Font callbacks (the more the merrier):
23825 FreeType: ${have_freetype}
23827 Tools used for command-line utilities:
23828 Cairo: ${have_cairo}
23829 Fontconfig: ${have_fontconfig}
23831 Additional shapers (the more the merrier):
23832 Graphite2: ${have_graphite2}
23834 Platform shapers (not normally needed):
23835 CoreText: ${have_coretext}
23836 DirectWrite: ${have_directwrite}
23837 Uniscribe: ${have_uniscribe}
23840 Documentation: ${enable_gtk_doc}
23841 GObject bindings: ${have_gobject}
23842 Introspection: ${have_introspection}