2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for FreeType 2.5.4.
5 # Report bugs to <freetype@nongnu.org>.
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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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: freetype@nongnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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='FreeType'
592 PACKAGE_TARNAME='freetype'
593 PACKAGE_VERSION='2.5.4'
594 PACKAGE_STRING='FreeType 2.5.4'
595 PACKAGE_BUGREPORT='freetype@nongnu.org'
598 ac_unique_file="ftconfig.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>
636 ac_subst_vars='LTLIBOBJS
640 hardcode_libdir_flag_spec
734 program_transform_name
747 enable_option_checking
764 with_quickdraw_toolbox
765 with_quickdraw_carbon
768 ac_precious_vars='build_alias
790 # Initialize some variables set by options.
792 ac_init_version=false
793 ac_unrecognized_opts=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name=s,x,x,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=no ;;
909 -docdir | --docdir | --docdi | --doc | --do)
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
933 eval enable_$ac_useropt=\$ac_optarg ;;
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
948 -help | --help | --hel | --he | -h)
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 htmldir=$ac_optarg ;;
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
978 -libdir | --libdir | --libdi | --libd)
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
990 -localedir | --localedir | --localedi | --localed | --locale)
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1069 -psdir | --psdir | --psdi | --psd | --ps)
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 sbindir=$ac_optarg ;;
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 sharedstatedir=$ac_optarg ;;
1095 -site | --site | --sit)
1097 -site=* | --site=* | --sit=*)
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval with_$ac_useropt=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures FreeType 2.5.4 to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of FreeType 2.5.4:";;
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1406 --enable-biarch-config install biarch ftconfig.h to support multiple
1407 architectures by single file
1408 --disable-mmap do not check mmap() and do not use
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1416 --with-sysroot=DIR Search for dependent libraries within DIR
1417 (or the compiler's sysroot if not specified).
1418 --with-zlib=[yes|no|auto]
1419 use system zlib instead of internal library
1421 --with-bzip2=[yes|no|auto]
1422 support bzip2 compressed fonts [default=auto]
1423 --with-png=[yes|no|auto]
1424 support png compressed OpenType embedded bitmaps
1426 --with-harfbuzz=[yes|no|auto]
1427 improve auto-hinting of OpenType fonts
1429 --with-old-mac-fonts allow Mac resource-based fonts to be used
1430 --with-fsspec use obsolete FSSpec API of MacOS, if available
1432 --with-fsref use Carbon FSRef API of MacOS, if available
1434 --with-quickdraw-toolbox
1435 use MacOS QuickDraw in ToolBox, if available
1437 --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1439 --with-ats use AppleTypeService, if available (default=yes)
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1450 PKG_CONFIG path to pkg-config utility
1452 directories to add to pkg-config's search path
1454 path overriding pkg-config's built-in search path
1455 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1456 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1458 C compiler flags for BZIP2, overriding pkg-config
1459 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
1461 C compiler flags for LIBPNG, overriding pkg-config
1462 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1464 C compiler flags for HARFBUZZ, overriding pkg-config
1466 linker flags for HARFBUZZ, overriding pkg-config
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <freetype@nongnu.org>.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 FreeType configure 2.5.4
1535 generated by GNU Autoconf 2.69
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_c_try_compile
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 test -x conftest$ac_exeext
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1667 } # ac_fn_c_try_link
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1686 if ac_fn_c_try_compile "$LINENO"; then :
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 } # ac_fn_c_check_header_compile
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 ac_retval=$ac_status
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (); below.
1761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762 <limits.h> exists even on freestanding compilers. */
1765 # include <limits.h>
1767 # include <assert.h>
1772 /* Override any GCC internal prototype to avoid an error.
1773 Use char because int might match the return type of a GCC
1774 builtin and then its argument prototype would still apply. */
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined __stub_$2 || defined __stub___$2
1794 if ac_fn_c_try_link "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext \
1800 conftest$ac_exeext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 } # ac_fn_c_check_func
1809 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812 # the include files in INCLUDES and setting the cache variable VAR
1814 ac_fn_c_check_header_mongrel ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if eval \${$3+:} false; then :
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 # Is the header compilable?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829 $as_echo_n "checking $2 usability... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 ac_header_compiler=yes
1838 ac_header_compiler=no
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842 $as_echo "$ac_header_compiler" >&6; }
1844 # Is the header present?
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846 $as_echo_n "checking $2 presence... " >&6; }
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 if ac_fn_c_try_cpp "$LINENO"; then :
1852 ac_header_preproc=yes
1854 ac_header_preproc=no
1856 rm -f conftest.err conftest.i conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858 $as_echo "$ac_header_preproc" >&6; }
1860 # So? What about this header?
1861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1872 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1876 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 ( $as_echo "## ---------------------------------- ##
1880 ## Report this to freetype@nongnu.org ##
1881 ## ---------------------------------- ##"
1882 ) | sed "s/^/$as_me: WARNING: /" >&2
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 eval "$3=\$ac_header_compiler"
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_header_mongrel
1900 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1901 # --------------------------------------------
1902 # Tries to find the compile-time value of EXPR in a program that includes
1903 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1905 ac_fn_c_compute_int ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if test "$cross_compiling" = yes; then
1909 # Depending upon the size, compute the lo and hi bounds.
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1916 static int test_array [1 - 2 * !(($2) >= 0)];
1918 return test_array [0];
1924 if ac_fn_c_try_compile "$LINENO"; then :
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1933 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1935 return test_array [0];
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_hi=$ac_mid; break
1944 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1945 if test $ac_lo -le $ac_mid; then
1949 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1960 static int test_array [1 - 2 * !(($2) < 0)];
1962 return test_array [0];
1968 if ac_fn_c_try_compile "$LINENO"; then :
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1977 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1979 return test_array [0];
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_lo=$ac_mid; break
1988 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1989 if test $ac_mid -le $ac_hi; then
1993 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 # Binary search between lo and hi bounds.
2004 while test "x$ac_lo" != "x$ac_hi"; do
2005 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2012 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2014 return test_array [0];
2020 if ac_fn_c_try_compile "$LINENO"; then :
2023 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2035 static long int longval () { return $2; }
2036 static unsigned long int ulongval () { return $2; }
2043 FILE *f = fopen ("conftest.val", "w");
2048 long int i = longval ();
2051 fprintf (f, "%ld", i);
2055 unsigned long int i = ulongval ();
2058 fprintf (f, "%lu", i);
2060 /* Do not output a trailing newline, as this causes \r\n confusion
2061 on some platforms. */
2062 return ferror (f) || fclose (f) != 0;
2068 if ac_fn_c_try_run "$LINENO"; then :
2069 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2074 conftest.$ac_objext conftest.beam conftest.$ac_ext
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_c_compute_int
2083 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2084 # ---------------------------------------------
2085 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2087 ac_fn_c_check_decl ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 as_decl_name=`echo $2|sed 's/ *(.*//'`
2091 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2093 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 #ifndef $as_decl_name
2105 (void) $as_decl_use;
2107 (void) $as_decl_name;
2115 if ac_fn_c_try_compile "$LINENO"; then :
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_decl
2128 cat >config.log <<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2132 It was created by FreeType $as_me 2.5.4, which was
2133 generated by GNU Autoconf 2.69. Invocation command line was
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 $as_echo "PATH: $as_dir"
2185 # Keep a trace of the command line.
2186 # Strip out --no-create and --no-recursion so they do not pile up.
2187 # Strip out --silent because we don't want to record it for future runs.
2188 # Also quote any args containing shell meta-characters.
2189 # Make two passes to allow for proper duplicate-argument suppression.
2193 ac_must_keep_next=false
2199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2201 | -silent | --silent | --silen | --sile | --sil)
2204 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209 as_fn_append ac_configure_args1 " '$ac_arg'"
2210 if test $ac_must_keep_next = true; then
2211 ac_must_keep_next=false # Got value, back to normal.
2214 *=* | --config-cache | -C | -disable-* | --disable-* \
2215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2217 | -with-* | --with-* | -without-* | --without-* | --x)
2218 case "$ac_configure_args0 " in
2219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222 -* ) ac_must_keep_next=true ;;
2225 as_fn_append ac_configure_args " '$ac_arg'"
2230 { ac_configure_args0=; unset ac_configure_args0;}
2231 { ac_configure_args1=; unset ac_configure_args1;}
2233 # When interrupted or exit'd, cleanup temporary files, and complete
2234 # config.log. We remove comments because anyway the quotes in there
2235 # would cause problems or look ugly.
2236 # WARNING: Use '\'' to represent an apostrophe within the trap.
2237 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2238 trap 'exit_status=$?
2239 # Save into config.log some information that might help in debugging.
2243 $as_echo "## ---------------- ##
2244 ## Cache variables. ##
2245 ## ---------------- ##"
2247 # The following way of writing the cache mishandles newlines in values,
2249 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2250 eval ac_val=\$$ac_var
2254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2255 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258 _ | IFS | as_nl) ;; #(
2259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2260 *) { eval $ac_var=; unset $ac_var;} ;;
2265 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2266 *${as_nl}ac_space=\ *)
2268 "s/'\''/'\''\\\\'\'''\''/g;
2269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279 $as_echo "## ----------------- ##
2280 ## Output variables. ##
2281 ## ----------------- ##"
2283 for ac_var in $ac_subst_vars
2285 eval ac_val=\$$ac_var
2287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 $as_echo "$ac_var='\''$ac_val'\''"
2293 if test -n "$ac_subst_files"; then
2294 $as_echo "## ------------------- ##
2295 ## File substitutions. ##
2296 ## ------------------- ##"
2298 for ac_var in $ac_subst_files
2300 eval ac_val=\$$ac_var
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304 $as_echo "$ac_var='\''$ac_val'\''"
2309 if test -s confdefs.h; then
2310 $as_echo "## ----------- ##
2317 test "$ac_signal" != 0 &&
2318 $as_echo "$as_me: caught signal $ac_signal"
2319 $as_echo "$as_me: exit $exit_status"
2321 rm -f core *.core core.conftest.* &&
2322 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325 for ac_signal in 1 2 13 15; do
2326 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2331 rm -f -r conftest* confdefs.h
2333 $as_echo "/* confdefs.h */" > confdefs.h
2335 # Predefined preprocessor variables.
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_NAME "$PACKAGE_NAME"
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_STRING "$PACKAGE_STRING"
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_URL "$PACKAGE_URL"
2362 # Let the site file select an alternate cache file if it wants to.
2363 # Prefer an explicitly selected file to automatically selected ones.
2366 if test -n "$CONFIG_SITE"; then
2367 # We do not want a PATH search for config.site.
2368 case $CONFIG_SITE in #((
2369 -*) ac_site_file1=./$CONFIG_SITE;;
2370 */*) ac_site_file1=$CONFIG_SITE;;
2371 *) ac_site_file1=./$CONFIG_SITE;;
2373 elif test "x$prefix" != xNONE; then
2374 ac_site_file1=$prefix/share/config.site
2375 ac_site_file2=$prefix/etc/config.site
2377 ac_site_file1=$ac_default_prefix/share/config.site
2378 ac_site_file2=$ac_default_prefix/etc/config.site
2380 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 test "x$ac_site_file" = xNONE && continue
2383 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2385 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2386 sed 's/^/| /' "$ac_site_file" >&5
2388 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 as_fn_error $? "failed to load site script $ac_site_file
2391 See \`config.log' for more details" "$LINENO" 5; }
2395 if test -r "$cache_file"; then
2396 # Some versions of bash will fail to source /dev/null (special files
2397 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2398 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2400 $as_echo "$as_me: loading cache $cache_file" >&6;}
2402 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2403 *) . "./$cache_file";;
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2408 $as_echo "$as_me: creating cache $cache_file" >&6;}
2412 as_fn_append ac_header_list " stdlib.h"
2413 as_fn_append ac_header_list " unistd.h"
2414 as_fn_append ac_header_list " sys/param.h"
2415 # Check that the precious variables saved in the cache have kept the same
2417 ac_cache_corrupted=false
2418 for ac_var in $ac_precious_vars; do
2419 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420 eval ac_new_set=\$ac_env_${ac_var}_set
2421 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422 eval ac_new_val=\$ac_env_${ac_var}_value
2423 case $ac_old_set,$ac_new_set in
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427 ac_cache_corrupted=: ;;
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2434 if test "x$ac_old_val" != "x$ac_new_val"; then
2435 # differences in whitespace do not lead to failure.
2436 ac_old_val_w=`echo x $ac_old_val`
2437 ac_new_val_w=`echo x $ac_new_val`
2438 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441 ac_cache_corrupted=:
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445 eval $ac_var=\$ac_old_val
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2448 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2450 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2453 # Pass precious variables to config.status.
2454 if test "$ac_new_set" = set; then
2456 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457 *) ac_arg=$ac_var=$ac_new_val ;;
2459 case " $ac_configure_args " in
2460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2461 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2465 if $ac_cache_corrupted; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2470 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2472 ## -------------------- ##
2473 ## Main body of script. ##
2474 ## -------------------- ##
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486 # Don't forget to update docs/VERSION.DLL!
2488 version_info='17:3:11'
2490 ft_version=`echo $version_info | tr : .`
2494 # checks for system type
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 if test -f "$ac_dir/install-sh"; then
2500 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 elif test -f "$ac_dir/install.sh"; then
2504 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 elif test -f "$ac_dir/shtool"; then
2508 ac_install_sh="$ac_aux_dir/shtool install -c"
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if ${ac_cv_build+:} false; then :
2532 $as_echo_n "(cached) " >&6
2534 ac_build_alias=$build_alias
2535 test "x$ac_build_alias" = x &&
2536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x &&
2538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2547 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2550 ac_save_IFS=$IFS; IFS='-'
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2560 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if ${ac_cv_host+:} false; then :
2566 $as_echo_n "(cached) " >&6
2568 if test "x$host_alias" = x; then
2569 ac_cv_host=$ac_cv_build
2571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2580 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2583 ac_save_IFS=$IFS; IFS='-'
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2593 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2598 # checks for programs
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_CC+:} false; then :
2611 $as_echo_n "(cached) " >&6
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 if test -n "$CC"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2644 if test -z "$ac_cv_prog_CC"; then
2646 # Extract the first word of "gcc", so it can be a program name with args.
2647 set dummy gcc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_ac_ct_CC="gcc"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2676 $as_echo "$ac_ct_CC" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2682 if test "x$ac_ct_CC" = x; then
2685 case $cross_compiling:$ac_tool_warned in
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2689 ac_tool_warned=yes ;;
2697 if test -z "$CC"; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}cc; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_CC+:} false; then :
2704 $as_echo_n "(cached) " >&6
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_CC="${ac_tool_prefix}cc"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test -n "$CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729 $as_echo "$CC" >&6; }
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2738 if test -z "$CC"; then
2739 # Extract the first word of "cc", so it can be a program name with args.
2740 set dummy cc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_CC+:} false; then :
2744 $as_echo_n "(cached) " >&6
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2758 ac_prog_rejected=yes
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 if test $ac_prog_rejected = yes; then
2770 # We found a bogon in the path, so make sure we never use it.
2771 set dummy $ac_cv_prog_CC
2773 if test $# != 0; then
2774 # We chose a different compiler from the bogus one.
2775 # However, it has the same basename, so the bogon will be chosen
2776 # first if we set CC to just the basename; use the full file name.
2778 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2794 if test -z "$CC"; then
2795 if test -n "$ac_tool_prefix"; then
2796 for ac_prog in cl.exe
2798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test -n "$CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2835 test -n "$CC" && break
2838 if test -z "$CC"; then
2840 for ac_prog in cl.exe
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC="$ac_prog"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2872 $as_echo "$ac_ct_CC" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2879 test -n "$ac_ct_CC" && break
2882 if test "x$ac_ct_CC" = x; then
2885 case $cross_compiling:$ac_tool_warned in
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889 ac_tool_warned=yes ;;
2898 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "no acceptable C compiler found in \$PATH
2901 See \`config.log' for more details" "$LINENO" 5; }
2903 # Provide some information about the compiler.
2904 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2907 for ac_option in --version -v -V -qversion; do
2908 { { ac_try="$ac_compiler $ac_option >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2917 if test -s conftest.err; then
2919 ... rest of stderr output deleted ...
2920 10q' conftest.err >conftest.er1
2921 cat conftest.er1 >&5
2923 rm -f conftest.er1 conftest.err
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2939 ac_clean_files_save=$ac_clean_files
2940 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2941 # Try to create an executable without -o first, disregard a.out.
2942 # It will help us diagnose broken compilers, and finding out an intuition
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2945 $as_echo_n "checking whether the C compiler works... " >&6; }
2946 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2948 # The possible output files:
2949 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2952 for ac_file in $ac_files
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2956 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2961 if { { ac_try="$ac_link_default"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_link_default") 2>&5
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }; then :
2972 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2973 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2974 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2975 # so that the user can short-circuit this test for compilers unknown to
2977 for ac_file in $ac_files ''
2979 test -f "$ac_file" || continue
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2984 # We found the default executable, but exeext='' is most
2988 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2990 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 # We set ac_cv_exeext here because the later test for it is not
2993 # safe: cross compilers may not add the suffix if given an `-o'
2994 # argument, so we may need to know it at that point already.
2995 # Even if this section looks crufty: it has the advantage of
3002 test "$ac_cv_exeext" = no && ac_cv_exeext=
3007 if test -z "$ac_file"; then :
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 $as_echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error 77 "C compiler cannot create executables
3016 See \`config.log' for more details" "$LINENO" 5; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3022 $as_echo_n "checking for C compiler default output file name... " >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3024 $as_echo "$ac_file" >&6; }
3025 ac_exeext=$ac_cv_exeext
3027 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3028 ac_clean_files=$ac_clean_files_save
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3030 $as_echo_n "checking for suffix of executables... " >&6; }
3031 if { { ac_try="$ac_link"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_link") 2>&5
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; then :
3042 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3043 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3044 # work properly (i.e., refer to `conftest.exe'), while it won't with
3046 for ac_file in conftest.exe conftest conftest.*; do
3047 test -f "$ac_file" || continue
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3059 See \`config.log' for more details" "$LINENO" 5; }
3061 rm -f conftest conftest$ac_cv_exeext
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3063 $as_echo "$ac_cv_exeext" >&6; }
3065 rm -f conftest.$ac_ext
3066 EXEEXT=$ac_cv_exeext
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3074 FILE *f = fopen ("conftest.out", "w");
3075 return ferror (f) || fclose (f) != 0;
3081 ac_clean_files="$ac_clean_files conftest.out"
3082 # Check that the compiler produces executables we can run. If not, either
3083 # the compiler is broken, or we cross compile.
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3085 $as_echo_n "checking whether we are cross compiling... " >&6; }
3086 if test "$cross_compiling" != yes; then
3087 { { ac_try="$ac_link"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_link") 2>&5
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098 if { ac_try='./conftest$ac_cv_exeext'
3099 { { case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_try") 2>&5
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; }; then
3111 if test "$cross_compiling" = maybe; then
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $? "cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details" "$LINENO" 5; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3123 $as_echo "$cross_compiling" >&6; }
3125 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3126 ac_clean_files=$ac_clean_files_save
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3128 $as_echo_n "checking for suffix of object files... " >&6; }
3129 if ${ac_cv_objext+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3143 rm -f conftest.o conftest.obj
3144 if { { ac_try="$ac_compile"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_compile") 2>&5
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }; then :
3155 for ac_file in conftest.o conftest.obj conftest.*; do
3156 test -f "$ac_file" || continue;
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3164 $as_echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "cannot compute suffix of object files: cannot compile
3170 See \`config.log' for more details" "$LINENO" 5; }
3172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3175 $as_echo "$ac_cv_objext" >&6; }
3176 OBJEXT=$ac_cv_objext
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3180 if ${ac_cv_c_compiler_gnu+:} false; then :
3181 $as_echo_n "(cached) " >&6
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3197 if ac_fn_c_try_compile "$LINENO"; then :
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3208 if test $ac_compiler_gnu = yes; then
3213 ac_test_CFLAGS=${CFLAGS+set}
3214 ac_save_CFLAGS=$CFLAGS
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3217 if ${ac_cv_prog_cc_g+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 ac_save_c_werror_flag=$ac_c_werror_flag
3221 ac_c_werror_flag=yes
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3235 if ac_fn_c_try_compile "$LINENO"; then :
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3250 if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3266 if ac_fn_c_try_compile "$LINENO"; then :
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_c_werror_flag=$ac_save_c_werror_flag
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3277 $as_echo "$ac_cv_prog_cc_g" >&6; }
3278 if test "$ac_test_CFLAGS" = set; then
3279 CFLAGS=$ac_save_CFLAGS
3280 elif test $ac_cv_prog_cc_g = yes; then
3281 if test "$GCC" = yes; then
3287 if test "$GCC" = yes; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3294 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3295 if ${ac_cv_prog_cc_c89+:} false; then :
3296 $as_echo_n "(cached) " >&6
3298 ac_cv_prog_cc_c89=no
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3306 struct buf { int x; };
3307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3308 static char *e (p, i)
3314 static char *f (char * (*g) (char **, int), char **p, ...)
3319 s = g (p, va_arg (v,int));
3324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3325 function prototypes and stuff, but not '\xHH' hex character constants.
3326 These don't provoke an error unfortunately, instead are silently treated
3327 as 'x'. The following induces an error, until -std is added to get
3328 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3329 array size at least. It's necessary to write '\x00'==0 to get something
3330 that's true only with -std. */
3331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3334 inside strings and character constants. */
3336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3338 int test (int i, double x);
3339 struct s1 {int (*f) (int a);};
3340 struct s2 {int (*f) (double a);};
3341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3347 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3353 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3355 CC="$ac_save_CC $ac_arg"
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_cv_prog_cc_c89=$ac_arg
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 rm -f conftest.$ac_ext
3367 case "x$ac_cv_prog_cc_c89" in
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3370 $as_echo "none needed" >&6; } ;;
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3373 $as_echo "unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3377 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3379 if test "x$ac_cv_prog_cc_c89" != xno; then :
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3395 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3396 # On Suns, sometimes $CPP names a directory.
3397 if test -n "$CPP" && test -d "$CPP"; then
3400 if test -z "$CPP"; then
3401 if ${ac_cv_prog_CPP+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 # Double quotes because CPP needs to be expanded
3405 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3408 for ac_c_preproc_warn_flag in '' yes
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
3412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
3414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3419 # include <limits.h>
3421 # include <assert.h>
3425 if ac_fn_c_try_cpp "$LINENO"; then :
3428 # Broken: fails on valid input.
3431 rm -f conftest.err conftest.i conftest.$ac_ext
3433 # OK, works on sane cases. Now check whether nonexistent headers
3434 # can be detected and how.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3439 if ac_fn_c_try_cpp "$LINENO"; then :
3440 # Broken: success on invalid input.
3443 # Passes both tests.
3447 rm -f conftest.err conftest.i conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.i conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then :
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3465 $as_echo "$CPP" >&6; }
3467 for ac_c_preproc_warn_flag in '' yes
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3478 # include <limits.h>
3480 # include <assert.h>
3484 if ac_fn_c_try_cpp "$LINENO"; then :
3487 # Broken: fails on valid input.
3490 rm -f conftest.err conftest.i conftest.$ac_ext
3492 # OK, works on sane cases. Now check whether nonexistent headers
3493 # can be detected and how.
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499 # Broken: success on invalid input.
3502 # Passes both tests.
3506 rm -f conftest.err conftest.i conftest.$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.i conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then :
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details" "$LINENO" 5; }
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3542 $as_echo_n "(cached) " >&6
3546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3568 if test -n "$PKG_CONFIG"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3570 $as_echo "$PKG_CONFIG" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$ac_cv_path_PKG_CONFIG"; then
3579 ac_pt_PKG_CONFIG=$PKG_CONFIG
3580 # Extract the first word of "pkg-config", so it can be a program name with args.
3581 set dummy pkg-config; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3585 $as_echo_n "(cached) " >&6
3587 case $ac_pt_PKG_CONFIG in
3589 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3611 if test -n "$ac_pt_PKG_CONFIG"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3613 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3619 if test "x$ac_pt_PKG_CONFIG" = x; then
3622 case $cross_compiling:$ac_tool_warned in
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3628 PKG_CONFIG=$ac_pt_PKG_CONFIG
3631 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3635 if test -n "$PKG_CONFIG"; then
3636 _pkg_min_version=0.24
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3638 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3639 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 $as_echo "yes" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3652 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3657 macro_version='2.4.2'
3658 macro_revision='1.3337'
3672 ltmain="$ac_aux_dir/ltmain.sh"
3674 # Backslashify metacharacters that are still active within
3675 # double-quoted strings.
3676 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3678 # Same as above, but do not quote variable references.
3679 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3681 # Sed substitution to delay expansion of an escaped shell variable in a
3682 # double_quote_subst'ed string.
3683 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3685 # Sed substitution to delay expansion of an escaped single quote.
3686 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3688 # Sed substitution to avoid accidental globbing in evaled expressions
3689 no_glob_subst='s/\*/\\\*/g'
3691 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3692 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3693 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3696 $as_echo_n "checking how to print strings... " >&6; }
3697 # Test print first, because it will be a builtin if present.
3698 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3699 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3701 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3704 # Use this function as a fallback that always works.
3705 func_fallback_echo ()
3707 eval 'cat <<_LTECHO_EOF
3711 ECHO='func_fallback_echo'
3714 # func_echo_all arg...
3715 # Invoke $ECHO with all args, space-separated.
3722 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3723 $as_echo "printf" >&6; } ;;
3724 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3725 $as_echo "print -r" >&6; } ;;
3726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3727 $as_echo "cat" >&6; } ;;
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3744 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3745 if ${ac_cv_path_SED+:} false; then :
3746 $as_echo_n "(cached) " >&6
3748 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3749 for ac_i in 1 2 3 4 5 6 7; do
3750 ac_script="$ac_script$as_nl$ac_script"
3752 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3753 { ac_script=; unset ac_script;}
3754 if test -z "$SED"; then
3755 ac_path_SED_found=false
3756 # Loop through the user's path and test for each of PROGNAME-LIST
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_prog in sed gsed; do
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3765 as_fn_executable_p "$ac_path_SED" || continue
3766 # Check for GNU ac_path_SED and select it if it is found.
3767 # Check for GNU $ac_path_SED
3768 case `"$ac_path_SED" --version 2>&1` in
3770 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3773 $as_echo_n 0123456789 >"conftest.in"
3776 cat "conftest.in" "conftest.in" >"conftest.tmp"
3777 mv "conftest.tmp" "conftest.in"
3778 cp "conftest.in" "conftest.nl"
3779 $as_echo '' >> "conftest.nl"
3780 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3782 as_fn_arith $ac_count + 1 && ac_count=$as_val
3783 if test $ac_count -gt ${ac_path_SED_max-0}; then
3784 # Best one so far, save it but keep looking for a better one
3785 ac_cv_path_SED="$ac_path_SED"
3786 ac_path_SED_max=$ac_count
3788 # 10*(2^10) chars as input seems more than enough
3789 test $ac_count -gt 10 && break
3791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794 $ac_path_SED_found && break 3
3799 if test -z "$ac_cv_path_SED"; then
3800 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3808 $as_echo "$ac_cv_path_SED" >&6; }
3809 SED="$ac_cv_path_SED"
3812 test -z "$SED" && SED=sed
3813 Xsed="$SED -e 1s/^X//"
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3826 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3827 if ${ac_cv_path_GREP+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 if test -z "$GREP"; then
3831 ac_path_GREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in grep ggrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3841 as_fn_executable_p "$ac_path_GREP" || continue
3842 # Check for GNU ac_path_GREP and select it if it is found.
3843 # Check for GNU $ac_path_GREP
3844 case `"$ac_path_GREP" --version 2>&1` in
3846 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3849 $as_echo_n 0123456789 >"conftest.in"
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 $as_echo 'GREP' >> "conftest.nl"
3856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 as_fn_arith $ac_count + 1 && ac_count=$as_val
3859 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_GREP="$ac_path_GREP"
3862 ac_path_GREP_max=$ac_count
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3870 $ac_path_GREP_found && break 3
3875 if test -z "$ac_cv_path_GREP"; then
3876 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3879 ac_cv_path_GREP=$GREP
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3884 $as_echo "$ac_cv_path_GREP" >&6; }
3885 GREP="$ac_cv_path_GREP"
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3889 $as_echo_n "checking for egrep... " >&6; }
3890 if ${ac_cv_path_EGREP+:} false; then :
3891 $as_echo_n "(cached) " >&6
3893 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3894 then ac_cv_path_EGREP="$GREP -E"
3896 if test -z "$EGREP"; then
3897 ac_path_EGREP_found=false
3898 # Loop through the user's path and test for each of PROGNAME-LIST
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3903 test -z "$as_dir" && as_dir=.
3904 for ac_prog in egrep; do
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3907 as_fn_executable_p "$ac_path_EGREP" || continue
3908 # Check for GNU ac_path_EGREP and select it if it is found.
3909 # Check for GNU $ac_path_EGREP
3910 case `"$ac_path_EGREP" --version 2>&1` in
3912 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3915 $as_echo_n 0123456789 >"conftest.in"
3918 cat "conftest.in" "conftest.in" >"conftest.tmp"
3919 mv "conftest.tmp" "conftest.in"
3920 cp "conftest.in" "conftest.nl"
3921 $as_echo 'EGREP' >> "conftest.nl"
3922 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3924 as_fn_arith $ac_count + 1 && ac_count=$as_val
3925 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3926 # Best one so far, save it but keep looking for a better one
3927 ac_cv_path_EGREP="$ac_path_EGREP"
3928 ac_path_EGREP_max=$ac_count
3930 # 10*(2^10) chars as input seems more than enough
3931 test $ac_count -gt 10 && break
3933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3936 $ac_path_EGREP_found && break 3
3941 if test -z "$ac_cv_path_EGREP"; then
3942 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3945 ac_cv_path_EGREP=$EGREP
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3951 $as_echo "$ac_cv_path_EGREP" >&6; }
3952 EGREP="$ac_cv_path_EGREP"
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3956 $as_echo_n "checking for fgrep... " >&6; }
3957 if ${ac_cv_path_FGREP+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3961 then ac_cv_path_FGREP="$GREP -F"
3963 if test -z "$FGREP"; then
3964 ac_path_FGREP_found=false
3965 # Loop through the user's path and test for each of PROGNAME-LIST
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970 test -z "$as_dir" && as_dir=.
3971 for ac_prog in fgrep; do
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3974 as_fn_executable_p "$ac_path_FGREP" || continue
3975 # Check for GNU ac_path_FGREP and select it if it is found.
3976 # Check for GNU $ac_path_FGREP
3977 case `"$ac_path_FGREP" --version 2>&1` in
3979 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3982 $as_echo_n 0123456789 >"conftest.in"
3985 cat "conftest.in" "conftest.in" >"conftest.tmp"
3986 mv "conftest.tmp" "conftest.in"
3987 cp "conftest.in" "conftest.nl"
3988 $as_echo 'FGREP' >> "conftest.nl"
3989 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3991 as_fn_arith $ac_count + 1 && ac_count=$as_val
3992 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3993 # Best one so far, save it but keep looking for a better one
3994 ac_cv_path_FGREP="$ac_path_FGREP"
3995 ac_path_FGREP_max=$ac_count
3997 # 10*(2^10) chars as input seems more than enough
3998 test $ac_count -gt 10 && break
4000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003 $ac_path_FGREP_found && break 3
4008 if test -z "$ac_cv_path_FGREP"; then
4009 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4012 ac_cv_path_FGREP=$FGREP
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4018 $as_echo "$ac_cv_path_FGREP" >&6; }
4019 FGREP="$ac_cv_path_FGREP"
4022 test -z "$GREP" && GREP=grep
4042 # Check whether --with-gnu-ld was given.
4043 if test "${with_gnu_ld+set}" = set; then :
4044 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4050 if test "$GCC" = yes; then
4051 # Check if gcc -print-prog-name=ld gives a path.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4053 $as_echo_n "checking for ld used by $CC... " >&6; }
4056 # gcc leaves a trailing carriage return which upsets mingw
4057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4062 # Accept absolute paths.
4064 re_direlt='/[^/][^/]*/\.\./'
4065 # Canonicalize the pathname of ld
4066 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4067 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4068 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4070 test -z "$LD" && LD="$ac_prog"
4073 # If it fails, then pretend we aren't using GCC.
4077 # If it is relative, then search for the first ld in PATH.
4081 elif test "$with_gnu_ld" = yes; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4083 $as_echo_n "checking for GNU ld... " >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4086 $as_echo_n "checking for non-GNU ld... " >&6; }
4088 if ${lt_cv_path_LD+:} false; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -z "$LD"; then
4092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4093 for ac_dir in $PATH; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4097 lt_cv_path_LD="$ac_dir/$ac_prog"
4098 # Check to see if the program is GNU ld. I'd rather use --version,
4099 # but apparently some variants of GNU ld only accept -v.
4100 # Break only if it was the GNU/non-GNU ld that we prefer.
4101 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4102 *GNU* | *'with BFD'*)
4103 test "$with_gnu_ld" != no && break
4106 test "$with_gnu_ld" != yes && break
4113 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4118 if test -n "$LD"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4120 $as_echo "$LD" >&6; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4125 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4127 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4128 if ${lt_cv_prog_gnu_ld+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4132 case `$LD -v 2>&1 </dev/null` in
4133 *GNU* | *'with BFD'*)
4134 lt_cv_prog_gnu_ld=yes
4137 lt_cv_prog_gnu_ld=no
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4142 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4143 with_gnu_ld=$lt_cv_prog_gnu_ld
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4154 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4155 if ${lt_cv_path_NM+:} false; then :
4156 $as_echo_n "(cached) " >&6
4158 if test -n "$NM"; then
4159 # Let the user override the test.
4162 lt_nm_to_check="${ac_tool_prefix}nm"
4163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4164 lt_nm_to_check="$lt_nm_to_check nm"
4166 for lt_tmp_nm in $lt_nm_to_check; do
4167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4170 test -z "$ac_dir" && ac_dir=.
4171 tmp_nm="$ac_dir/$lt_tmp_nm"
4172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173 # Check to see if the nm accepts a BSD-compat flag.
4174 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175 # nm: unknown option "B" ignored
4176 # Tru64's nm complains that /dev/null is an invalid object file
4177 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178 */dev/null* | *'Invalid file or object type'*)
4179 lt_cv_path_NM="$tmp_nm -B"
4183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4185 lt_cv_path_NM="$tmp_nm -p"
4189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190 continue # so that we can try to find one that supports BSD flags
4199 : ${lt_cv_path_NM=no}
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4203 $as_echo "$lt_cv_path_NM" >&6; }
4204 if test "$lt_cv_path_NM" != "no"; then
4207 # Didn't find any BSD compatible name lister, look for dumpbin.
4208 if test -n "$DUMPBIN"; then :
4209 # Let the user override the test.
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in dumpbin "link -dump"
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_prog_DUMPBIN+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -n "$DUMPBIN"; then
4222 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 DUMPBIN=$ac_cv_prog_DUMPBIN
4242 if test -n "$DUMPBIN"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4244 $as_echo "$DUMPBIN" >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4251 test -n "$DUMPBIN" && break
4254 if test -z "$DUMPBIN"; then
4255 ac_ct_DUMPBIN=$DUMPBIN
4256 for ac_prog in dumpbin "link -dump"
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4263 $as_echo_n "(cached) " >&6
4265 if test -n "$ac_ct_DUMPBIN"; then
4266 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4286 if test -n "$ac_ct_DUMPBIN"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4288 $as_echo "$ac_ct_DUMPBIN" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$ac_ct_DUMPBIN" && break
4298 if test "x$ac_ct_DUMPBIN" = x; then
4301 case $cross_compiling:$ac_tool_warned in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4307 DUMPBIN=$ac_ct_DUMPBIN
4311 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4313 DUMPBIN="$DUMPBIN -symbols"
4321 if test "$DUMPBIN" != ":"; then
4325 test -z "$NM" && NM=nm
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4333 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4334 if ${lt_cv_nm_interface+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 lt_cv_nm_interface="BSD nm"
4338 echo "int some_variable = 0;" > conftest.$ac_ext
4339 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4340 (eval "$ac_compile" 2>conftest.err)
4341 cat conftest.err >&5
4342 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4343 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4344 cat conftest.err >&5
4345 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4346 cat conftest.out >&5
4347 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4348 lt_cv_nm_interface="MS dumpbin"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4353 $as_echo "$lt_cv_nm_interface" >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4356 $as_echo_n "checking whether ln -s works... " >&6; }
4358 if test "$LN_S" = "ln -s"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360 $as_echo "yes" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4363 $as_echo "no, using $LN_S" >&6; }
4366 # find the maximum length of command line arguments
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4368 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4369 if ${lt_cv_sys_max_cmd_len+:} false; then :
4370 $as_echo_n "(cached) " >&6
4377 # On DJGPP, this test can blow up pretty badly due to problems in libc
4378 # (any single argument exceeding 2000 bytes causes a buffer overrun
4379 # during glob expansion). Even if it were fixed, the result of this
4380 # check would be larger than it should be.
4381 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4385 # Under GNU Hurd, this test is not required because there is
4386 # no limit to the length of command line arguments.
4387 # Libtool will interpret -1 as no limit whatsoever
4388 lt_cv_sys_max_cmd_len=-1;
4391 cygwin* | mingw* | cegcc*)
4392 # On Win9x/ME, this test blows up -- it succeeds, but takes
4393 # about 5 minutes as the teststring grows exponentially.
4394 # Worse, since 9x/ME are not pre-emptively multitasking,
4395 # you end up with a "frozen" computer, even though with patience
4396 # the test eventually succeeds (with a max line length of 256k).
4397 # Instead, let's just punt: use the minimum linelength reported by
4398 # all of the supported platforms: 8192 (on NT/2K/XP).
4399 lt_cv_sys_max_cmd_len=8192;
4403 # On MiNT this can take a long time and run out of memory.
4404 lt_cv_sys_max_cmd_len=8192;
4408 # On AmigaOS with pdksh, this test takes hours, literally.
4409 # So we just punt and use a minimum line length of 8192.
4410 lt_cv_sys_max_cmd_len=8192;
4413 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4414 # This has been around since 386BSD, at least. Likely further.
4415 if test -x /sbin/sysctl; then
4416 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4417 elif test -x /usr/sbin/sysctl; then
4418 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4420 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4422 # And add a safety zone
4423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4428 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4429 lt_cv_sys_max_cmd_len=196608
4433 # The test takes a long time on OS/2.
4434 lt_cv_sys_max_cmd_len=8192
4438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4440 # nice to cause kernel panics so lets avoid the loop below.
4441 # First set a reasonable default.
4442 lt_cv_sys_max_cmd_len=16384
4444 if test -x /sbin/sysconfig; then
4445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4446 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4451 lt_cv_sys_max_cmd_len=102400
4453 sysv5* | sco5v6* | sysv4.2uw2*)
4454 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4455 if test -n "$kargmax"; then
4456 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4458 lt_cv_sys_max_cmd_len=32768
4462 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4463 if test -n "$lt_cv_sys_max_cmd_len" && \
4464 test undefined != "$lt_cv_sys_max_cmd_len"; then
4465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4468 # Make teststring a little bigger before we do anything with it.
4469 # a 1K string should be a reasonable start.
4470 for i in 1 2 3 4 5 6 7 8 ; do
4471 teststring=$teststring$teststring
4473 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4474 # If test is not a shell built-in, we'll probably end up computing a
4475 # maximum length that is only half of the actual maximum length, but
4477 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4478 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4479 test $i != 17 # 1/2 MB should be enough
4482 teststring=$teststring$teststring
4484 # Only check the string length outside the loop.
4485 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4487 # Add a significant safety factor because C++ compilers can tack on
4488 # massive amounts of additional arguments before passing them to the
4489 # linker. It appears as though 1/2 is a usable value.
4490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4497 if test -n $lt_cv_sys_max_cmd_len ; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4499 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4502 $as_echo "none" >&6; }
4504 max_cmd_len=$lt_cv_sys_max_cmd_len
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4516 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4517 # Try some XSI features
4520 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4522 && eval 'test $(( 1 + 1 )) -eq 2 \
4523 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4526 $as_echo "$xsi_shell" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4530 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4532 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4534 && lt_shell_append=yes
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4536 $as_echo "$lt_shell_append" >&6; }
4539 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4549 # test EBCDIC or ASCII
4550 case `echo X|tr X '\101'` in
4551 A) # ASCII based system
4552 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4553 lt_SP2NL='tr \040 \012'
4554 lt_NL2SP='tr \015\012 \040\040'
4556 *) # EBCDIC based system
4557 lt_SP2NL='tr \100 \n'
4558 lt_NL2SP='tr \r\n \100\100'
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4571 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4572 if ${lt_cv_to_host_file_cmd+:} false; then :
4573 $as_echo_n "(cached) " >&6
4578 *-*-mingw* ) # actually msys
4579 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4582 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4584 * ) # otherwise, assume *nix
4585 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4591 *-*-mingw* ) # actually msys
4592 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4595 lt_cv_to_host_file_cmd=func_convert_file_noop
4597 * ) # otherwise, assume *nix
4598 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4602 * ) # unhandled hosts (and "normal" native builds)
4603 lt_cv_to_host_file_cmd=func_convert_file_noop
4609 to_host_file_cmd=$lt_cv_to_host_file_cmd
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4611 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4618 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4619 if ${lt_cv_to_tool_file_cmd+:} false; then :
4620 $as_echo_n "(cached) " >&6
4622 #assume ordinary cross tools, or native build.
4623 lt_cv_to_tool_file_cmd=func_convert_file_noop
4627 *-*-mingw* ) # actually msys
4628 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4636 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4638 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4645 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4646 if ${lt_cv_ld_reload_flag+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 lt_cv_ld_reload_flag='-r'
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4652 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4653 reload_flag=$lt_cv_ld_reload_flag
4654 case $reload_flag in
4656 *) reload_flag=" $reload_flag" ;;
4658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4660 cygwin* | mingw* | pw32* | cegcc*)
4661 if test "$GCC" != yes; then
4666 if test "$GCC" = yes; then
4667 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4669 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_OBJDUMP+:} false; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$OBJDUMP"; then
4691 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 OBJDUMP=$ac_cv_prog_OBJDUMP
4711 if test -n "$OBJDUMP"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4713 $as_echo "$OBJDUMP" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4721 if test -z "$ac_cv_prog_OBJDUMP"; then
4722 ac_ct_OBJDUMP=$OBJDUMP
4723 # Extract the first word of "objdump", so it can be a program name with args.
4724 set dummy objdump; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4728 $as_echo_n "(cached) " >&6
4730 if test -n "$ac_ct_OBJDUMP"; then
4731 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4751 if test -n "$ac_ct_OBJDUMP"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4753 $as_echo "$ac_ct_OBJDUMP" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4759 if test "x$ac_ct_OBJDUMP" = x; then
4762 case $cross_compiling:$ac_tool_warned in
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4768 OBJDUMP=$ac_ct_OBJDUMP
4771 OBJDUMP="$ac_cv_prog_OBJDUMP"
4774 test -z "$OBJDUMP" && OBJDUMP=objdump
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4782 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4783 if ${lt_cv_deplibs_check_method+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 lt_cv_file_magic_cmd='$MAGIC_CMD'
4787 lt_cv_file_magic_test_file=
4788 lt_cv_deplibs_check_method='unknown'
4789 # Need to set the preceding variable on all platforms that support
4790 # interlibrary dependencies.
4791 # 'none' -- dependencies not supported.
4792 # `unknown' -- same as none, but documents that we really don't know.
4793 # 'pass_all' -- all dependencies passed with no checks.
4794 # 'test_compile' -- check by making test program.
4795 # 'file_magic [[regex]]' -- check by looking for files in library path
4796 # which responds to the $file_magic_cmd with a given extended regex.
4797 # If you have `file' or equivalent on your system and you're not sure
4798 # whether `pass_all' will *always* work, you probably want this one.
4802 lt_cv_deplibs_check_method=pass_all
4806 lt_cv_deplibs_check_method=pass_all
4810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4811 lt_cv_file_magic_cmd='/usr/bin/file -L'
4812 lt_cv_file_magic_test_file=/shlib/libc.so
4816 # func_win32_libid is a shell function defined in ltmain.sh
4817 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4818 lt_cv_file_magic_cmd='func_win32_libid'
4822 # Base MSYS/MinGW do not provide the 'file' command needed by
4823 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4824 # unless we find 'file', for example because we are cross-compiling.
4825 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4826 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828 lt_cv_file_magic_cmd='func_win32_libid'
4830 # Keep this pattern in sync with the one in func_win32_libid.
4831 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4832 lt_cv_file_magic_cmd='$OBJDUMP -f'
4837 # use the weaker test based on 'objdump'. See mingw*.
4838 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4839 lt_cv_file_magic_cmd='$OBJDUMP -f'
4842 darwin* | rhapsody*)
4843 lt_cv_deplibs_check_method=pass_all
4846 freebsd* | dragonfly*)
4847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850 # Not sure whether the presence of OpenBSD here was a mistake.
4851 # Let's accept both of them until this is cleared up.
4852 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4853 lt_cv_file_magic_cmd=/usr/bin/file
4854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4858 lt_cv_deplibs_check_method=pass_all
4863 lt_cv_deplibs_check_method=pass_all
4866 hpux10.20* | hpux11*)
4867 lt_cv_file_magic_cmd=/usr/bin/file
4870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4874 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]'
4875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4889 irix5* | irix6* | nonstopux*)
4891 *-32|*"-32 ") libmagic=32-bit;;
4892 *-n32|*"-n32 ") libmagic=N32;;
4893 *-64|*"-64 ") libmagic=64-bit;;
4894 *) libmagic=never-match;;
4896 lt_cv_deplibs_check_method=pass_all
4899 # This must be glibc/ELF.
4900 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4901 lt_cv_deplibs_check_method=pass_all
4904 netbsd* | netbsdelf*-gnu)
4905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4914 lt_cv_file_magic_cmd=/usr/bin/file
4915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4919 lt_cv_deplibs_check_method=pass_all
4923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4930 osf3* | osf4* | osf5*)
4931 lt_cv_deplibs_check_method=pass_all
4935 lt_cv_deplibs_check_method=pass_all
4939 lt_cv_deplibs_check_method=pass_all
4942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4943 lt_cv_deplibs_check_method=pass_all
4947 case $host_vendor in
4949 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]'
4950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4953 lt_cv_deplibs_check_method=pass_all
4956 lt_cv_file_magic_cmd='/bin/file'
4957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4960 lt_cv_file_magic_cmd='/bin/file'
4961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4962 lt_cv_file_magic_test_file=/lib/libc.so
4965 lt_cv_deplibs_check_method=pass_all
4968 lt_cv_deplibs_check_method=pass_all
4974 lt_cv_deplibs_check_method=pass_all
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4984 if test "$build" = "$host"; then
4987 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4990 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4996 file_magic_cmd=$lt_cv_file_magic_cmd
4997 deplibs_check_method=$lt_cv_deplibs_check_method
4998 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_DLLTOOL+:} false; then :
5027 $as_echo_n "(cached) " >&6
5029 if test -n "$DLLTOOL"; then
5030 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 DLLTOOL=$ac_cv_prog_DLLTOOL
5050 if test -n "$DLLTOOL"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5052 $as_echo "$DLLTOOL" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5060 if test -z "$ac_cv_prog_DLLTOOL"; then
5061 ac_ct_DLLTOOL=$DLLTOOL
5062 # Extract the first word of "dlltool", so it can be a program name with args.
5063 set dummy dlltool; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$ac_ct_DLLTOOL"; then
5070 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5090 if test -n "$ac_ct_DLLTOOL"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5092 $as_echo "$ac_ct_DLLTOOL" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5098 if test "x$ac_ct_DLLTOOL" = x; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5107 DLLTOOL=$ac_ct_DLLTOOL
5110 DLLTOOL="$ac_cv_prog_DLLTOOL"
5113 test -z "$DLLTOOL" && DLLTOOL=dlltool
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5122 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5123 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5124 $as_echo_n "(cached) " >&6
5126 lt_cv_sharedlib_from_linklib_cmd='unknown'
5129 cygwin* | mingw* | pw32* | cegcc*)
5130 # two different shell functions defined in ltmain.sh
5131 # decide which to use based on capabilities of $DLLTOOL
5132 case `$DLLTOOL --help 2>&1` in
5133 *--identify-strict*)
5134 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5137 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5142 # fallback: assume linklib IS sharedlib
5143 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5149 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5150 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5151 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5160 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_AR+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 if test -n "$AR"; then
5171 ac_cv_prog_AR="$AR" # Let the user override the test.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 if test -n "$AR"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5193 $as_echo "$AR" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5200 test -n "$AR" && break
5203 if test -z "$AR"; then
5207 # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$ac_ct_AR"; then
5215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_ac_ct_AR="$ac_prog"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5235 if test -n "$ac_ct_AR"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5237 $as_echo "$ac_ct_AR" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 test -n "$ac_ct_AR" && break
5247 if test "x$ac_ct_AR" = x; then
5250 case $cross_compiling:$ac_tool_warned in
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5274 $as_echo_n "checking for archiver @FILE support... " >&6; }
5275 if ${lt_cv_ar_at_file+:} false; then :
5276 $as_echo_n "(cached) " >&6
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291 echo conftest.$ac_objext > conftest.lst
5292 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5294 (eval $lt_ar_try) 2>&5
5296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5297 test $ac_status = 0; }
5298 if test "$ac_status" -eq 0; then
5299 # Ensure the archiver fails upon bogus file names.
5300 rm -f conftest.$ac_objext libconftest.a
5301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5302 (eval $lt_ar_try) 2>&5
5304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5305 test $ac_status = 0; }
5306 if test "$ac_status" -ne 0; then
5310 rm -f conftest.* libconftest.a
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5317 $as_echo "$lt_cv_ar_at_file" >&6; }
5319 if test "x$lt_cv_ar_at_file" = xno; then
5322 archiver_list_spec=$lt_cv_ar_at_file
5331 if test -n "$ac_tool_prefix"; then
5332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5333 set dummy ${ac_tool_prefix}strip; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_STRIP+:} false; then :
5337 $as_echo_n "(cached) " >&6
5339 if test -n "$STRIP"; then
5340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 STRIP=$ac_cv_prog_STRIP
5360 if test -n "$STRIP"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5362 $as_echo "$STRIP" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5370 if test -z "$ac_cv_prog_STRIP"; then
5372 # Extract the first word of "strip", so it can be a program name with args.
5373 set dummy strip; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5377 $as_echo_n "(cached) " >&6
5379 if test -n "$ac_ct_STRIP"; then
5380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_ac_ct_STRIP="strip"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5400 if test -n "$ac_ct_STRIP"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5402 $as_echo "$ac_ct_STRIP" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5408 if test "x$ac_ct_STRIP" = x; then
5411 case $cross_compiling:$ac_tool_warned in
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5420 STRIP="$ac_cv_prog_STRIP"
5423 test -z "$STRIP" && STRIP=:
5430 if test -n "$ac_tool_prefix"; then
5431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_RANLIB+:} false; then :
5436 $as_echo_n "(cached) " >&6
5438 if test -n "$RANLIB"; then
5439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 RANLIB=$ac_cv_prog_RANLIB
5459 if test -n "$RANLIB"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5461 $as_echo "$RANLIB" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5469 if test -z "$ac_cv_prog_RANLIB"; then
5470 ac_ct_RANLIB=$RANLIB
5471 # Extract the first word of "ranlib", so it can be a program name with args.
5472 set dummy ranlib; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -n "$ac_ct_RANLIB"; then
5479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_ac_ct_RANLIB="ranlib"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5499 if test -n "$ac_ct_RANLIB"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5501 $as_echo "$ac_ct_RANLIB" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5507 if test "x$ac_ct_RANLIB" = x; then
5510 case $cross_compiling:$ac_tool_warned in
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5514 ac_tool_warned=yes ;;
5516 RANLIB=$ac_ct_RANLIB
5519 RANLIB="$ac_cv_prog_RANLIB"
5522 test -z "$RANLIB" && RANLIB=:
5529 # Determine commands to create old-style static archives.
5530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5531 old_postinstall_cmds='chmod 644 $oldlib'
5532 old_postuninstall_cmds=
5534 if test -n "$RANLIB"; then
5537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5548 lock_old_archive_extraction=yes ;;
5550 lock_old_archive_extraction=no ;;
5573 for ac_prog in gawk mawk nawk awk
5575 # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_AWK+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$AWK"; then
5583 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_AWK="$ac_prog"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 if test -n "$AWK"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5605 $as_echo "$AWK" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 test -n "$AWK" && break
5633 # If no C compiler was specified, use CC.
5636 # If no C compiler flags were specified, use CFLAGS.
5637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5639 # Allow CC to be a program name with arguments.
5643 # Check for command to grab the raw symbol name followed by C symbol from nm.
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5645 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5646 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5647 $as_echo_n "(cached) " >&6
5650 # These are sane defaults that work on at least a few old systems.
5651 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5653 # Character class describing NM global symbol codes.
5654 symcode='[BCDEGRST]'
5656 # Regexp to match symbols that can be accessed directly from C.
5657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5659 # Define system-specific variables.
5664 cygwin* | mingw* | pw32* | cegcc*)
5665 symcode='[ABCDGISTW]'
5668 if test "$host_cpu" = ia64; then
5669 symcode='[ABCDEGRST]'
5673 symcode='[BCDEGRST]'
5676 symcode='[BCDEGQRST]'
5687 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5695 # If we're using GNU nm, then use its standard symbol codes.
5696 case `$NM -V 2>&1` in
5697 *GNU* | *'with BFD'*)
5698 symcode='[ABCDGIRSTW]' ;;
5701 # Transform an extracted symbol line into a proper C declaration.
5702 # Some systems (esp. on ia64) link data and code symbols differently,
5703 # so use this general approach.
5704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5706 # Transform an extracted symbol line into symbol name and symbol address
5707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5710 # Handle CRLF in mingw tool chain
5714 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5718 # Try without a prefix underscore, then with it.
5719 for ac_symprfx in "" "_"; do
5721 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5722 symxfrm="\\1 $ac_symprfx\\2 \\2"
5724 # Write the raw and C identifiers.
5725 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5726 # Fake it for dumpbin and say T for any non-static function
5727 # and D for any global variable.
5728 # Also find C++ and __fastcall symbols from MSVC++,
5729 # which start with @ or ?.
5730 lt_cv_sys_global_symbol_pipe="$AWK '"\
5731 " {last_section=section; section=\$ 3};"\
5732 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5733 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5734 " \$ 0!~/External *\|/{next};"\
5735 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5736 " {if(hide[section]) next};"\
5737 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5738 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5739 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5740 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5741 " ' prfx=^$ac_symprfx"
5743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5745 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5747 # Check to see that the pipe works correctly.
5751 cat > conftest.$ac_ext <<_LT_EOF
5756 void nm_test_func(void);
5757 void nm_test_func(void){}
5761 int main(){nm_test_var='a';nm_test_func();return(0);}
5764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5765 (eval $ac_compile) 2>&5
5767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5768 test $ac_status = 0; }; then
5769 # Now try to grab the symbols.
5771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5772 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775 test $ac_status = 0; } && test -s "$nlist"; then
5776 # Try sorting and uniquifying the output.
5777 if sort "$nlist" | uniq > "$nlist"T; then
5778 mv -f "$nlist"T "$nlist"
5783 # Make sure that we snagged all the symbols we need.
5784 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5785 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5786 cat <<_LT_EOF > conftest.$ac_ext
5787 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5788 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5789 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5790 relocations are performed -- see ld's documentation on pseudo-relocs. */
5791 # define LT_DLSYM_CONST
5792 #elif defined(__osf__)
5793 /* This system does not cope well with relocations in const data. */
5794 # define LT_DLSYM_CONST
5796 # define LT_DLSYM_CONST const
5804 # Now generate the symbol file.
5805 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5807 cat <<_LT_EOF >> conftest.$ac_ext
5809 /* The mapping between symbol names and symbols. */
5810 LT_DLSYM_CONST struct {
5814 lt__PROGRAM__LTX_preloaded_symbols[] =
5816 { "@PROGRAM@", (void *) 0 },
5818 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5819 cat <<\_LT_EOF >> conftest.$ac_ext
5823 /* This works around a problem in FreeBSD linker */
5824 #ifdef FREEBSD_WORKAROUND
5825 static const void *lt_preloaded_setup() {
5826 return lt__PROGRAM__LTX_preloaded_symbols;
5834 # Now try linking the two files.
5835 mv conftest.$ac_objext conftstm.$ac_objext
5836 lt_globsym_save_LIBS=$LIBS
5837 lt_globsym_save_CFLAGS=$CFLAGS
5838 LIBS="conftstm.$ac_objext"
5839 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5841 (eval $ac_link) 2>&5
5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5847 LIBS=$lt_globsym_save_LIBS
5848 CFLAGS=$lt_globsym_save_CFLAGS
5850 echo "cannot find nm_test_func in $nlist" >&5
5853 echo "cannot find nm_test_var in $nlist" >&5
5856 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5859 echo "$progname: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5862 rm -rf conftest* conftst*
5864 # Do not use the global_symbol_pipe unless it works.
5865 if test "$pipe_works" = yes; then
5868 lt_cv_sys_global_symbol_pipe=
5874 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5875 lt_cv_sys_global_symbol_to_cdecl=
5877 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5879 $as_echo "failed" >&6; }
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5882 $as_echo "ok" >&6; }
5885 # Response file support.
5886 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5887 nm_file_list_spec='@'
5888 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5889 nm_file_list_spec='@'
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5919 $as_echo_n "checking for sysroot... " >&6; }
5921 # Check whether --with-sysroot was given.
5922 if test "${with_sysroot+set}" = set; then :
5923 withval=$with_sysroot;
5930 case ${with_sysroot} in #(
5932 if test "$GCC" = yes; then
5933 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5937 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5943 $as_echo "${with_sysroot}" >&6; }
5944 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5949 $as_echo "${lt_sysroot:-no}" >&6; }
5955 # Check whether --enable-libtool-lock was given.
5956 if test "${enable_libtool_lock+set}" = set; then :
5957 enableval=$enable_libtool_lock;
5960 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5962 # Some flags need to be propagated to the compiler or linker for good
5966 # Find out which ABI we are using.
5967 echo 'int i;' > conftest.$ac_ext
5968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5969 (eval $ac_compile) 2>&5
5971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972 test $ac_status = 0; }; then
5973 case `/usr/bin/file conftest.$ac_objext` in
5985 # Find out which ABI we are using.
5986 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5988 (eval $ac_compile) 2>&5
5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }; then
5992 if test "$lt_cv_prog_gnu_ld" = yes; then
5993 case `/usr/bin/file conftest.$ac_objext` in
5995 LD="${LD-ld} -melf32bsmip"
5998 LD="${LD-ld} -melf32bmipn32"
6001 LD="${LD-ld} -melf64bmip"
6005 case `/usr/bin/file conftest.$ac_objext` in
6021 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6022 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6023 # Find out which ABI we are using.
6024 echo 'int i;' > conftest.$ac_ext
6025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6026 (eval $ac_compile) 2>&5
6028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029 test $ac_status = 0; }; then
6030 case `/usr/bin/file conftest.o` in
6033 x86_64-*kfreebsd*-gnu)
6034 LD="${LD-ld} -m elf_i386_fbsd"
6037 case `/usr/bin/file conftest.o` in
6039 LD="${LD-ld} -m elf32_x86_64"
6042 LD="${LD-ld} -m elf_i386"
6047 LD="${LD-ld} -m elf32lppclinux"
6050 LD="${LD-ld} -m elf32ppclinux"
6053 LD="${LD-ld} -m elf_s390"
6056 LD="${LD-ld} -m elf32_sparc"
6062 x86_64-*kfreebsd*-gnu)
6063 LD="${LD-ld} -m elf_x86_64_fbsd"
6066 LD="${LD-ld} -m elf_x86_64"
6069 LD="${LD-ld} -m elf64lppc"
6072 LD="${LD-ld} -m elf64ppc"
6074 s390*-*linux*|s390*-*tpf*)
6075 LD="${LD-ld} -m elf64_s390"
6078 LD="${LD-ld} -m elf64_sparc"
6088 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6089 SAVE_CFLAGS="$CFLAGS"
6090 CFLAGS="$CFLAGS -belf"
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6092 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6093 if ${lt_cv_cc_needs_belf+:} false; then :
6094 $as_echo_n "(cached) " >&6
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6113 if ac_fn_c_try_link "$LINENO"; then :
6114 lt_cv_cc_needs_belf=yes
6116 lt_cv_cc_needs_belf=no
6118 rm -f core conftest.err conftest.$ac_objext \
6119 conftest$ac_exeext conftest.$ac_ext
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6128 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6129 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6130 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6131 CFLAGS="$SAVE_CFLAGS"
6135 # Find out which ABI we are using.
6136 echo 'int i;' > conftest.$ac_ext
6137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6138 (eval $ac_compile) 2>&5
6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; }; then
6142 case `/usr/bin/file conftest.o` in
6144 case $lt_cv_prog_gnu_ld in
6148 LD="${LD-ld} -m elf_x86_64"
6151 LD="${LD-ld} -m elf64_sparc"
6154 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6155 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6160 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6172 need_locks="$enable_libtool_lock"
6174 if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}mt; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 if test -n "$MANIFEST_TOOL"; then
6183 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6203 if test -n "$MANIFEST_TOOL"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6205 $as_echo "$MANIFEST_TOOL" >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6213 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6214 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6215 # Extract the first word of "mt", so it can be a program name with args.
6216 set dummy mt; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6220 $as_echo_n "(cached) " >&6
6222 if test -n "$ac_ct_MANIFEST_TOOL"; then
6223 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6243 if test -n "$ac_ct_MANIFEST_TOOL"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6245 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6251 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6254 case $cross_compiling:$ac_tool_warned in
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258 ac_tool_warned=yes ;;
6260 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6263 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6266 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6268 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6269 if ${lt_cv_path_mainfest_tool+:} false; then :
6270 $as_echo_n "(cached) " >&6
6272 lt_cv_path_mainfest_tool=no
6273 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6274 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6275 cat conftest.err >&5
6276 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6277 lt_cv_path_mainfest_tool=yes
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6282 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6283 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6293 rhapsody* | darwin*)
6294 if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6300 $as_echo_n "(cached) " >&6
6302 if test -n "$DSYMUTIL"; then
6303 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6323 if test -n "$DSYMUTIL"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6325 $as_echo "$DSYMUTIL" >&6; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6333 if test -z "$ac_cv_prog_DSYMUTIL"; then
6334 ac_ct_DSYMUTIL=$DSYMUTIL
6335 # Extract the first word of "dsymutil", so it can be a program name with args.
6336 set dummy dsymutil; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 if test -n "$ac_ct_DSYMUTIL"; then
6343 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6363 if test -n "$ac_ct_DSYMUTIL"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6365 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6371 if test "x$ac_ct_DSYMUTIL" = x; then
6374 case $cross_compiling:$ac_tool_warned in
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6380 DSYMUTIL=$ac_ct_DSYMUTIL
6383 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6386 if test -n "$ac_tool_prefix"; then
6387 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6388 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_NMEDIT+:} false; then :
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$NMEDIT"; then
6395 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 NMEDIT=$ac_cv_prog_NMEDIT
6415 if test -n "$NMEDIT"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6417 $as_echo "$NMEDIT" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6425 if test -z "$ac_cv_prog_NMEDIT"; then
6426 ac_ct_NMEDIT=$NMEDIT
6427 # Extract the first word of "nmedit", so it can be a program name with args.
6428 set dummy nmedit; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 if test -n "$ac_ct_NMEDIT"; then
6435 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6455 if test -n "$ac_ct_NMEDIT"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6457 $as_echo "$ac_ct_NMEDIT" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6463 if test "x$ac_ct_NMEDIT" = x; then
6466 case $cross_compiling:$ac_tool_warned in
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470 ac_tool_warned=yes ;;
6472 NMEDIT=$ac_ct_NMEDIT
6475 NMEDIT="$ac_cv_prog_NMEDIT"
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_LIPO+:} false; then :
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$LIPO"; then
6487 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 LIPO=$ac_cv_prog_LIPO
6507 if test -n "$LIPO"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6509 $as_echo "$LIPO" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test -z "$ac_cv_prog_LIPO"; then
6519 # Extract the first word of "lipo", so it can be a program name with args.
6520 set dummy lipo; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6524 $as_echo_n "(cached) " >&6
6526 if test -n "$ac_ct_LIPO"; then
6527 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_ac_ct_LIPO="lipo"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6547 if test -n "$ac_ct_LIPO"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6549 $as_echo "$ac_ct_LIPO" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6555 if test "x$ac_ct_LIPO" = x; then
6558 case $cross_compiling:$ac_tool_warned in
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6567 LIPO="$ac_cv_prog_LIPO"
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}otool; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_OTOOL+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$OTOOL"; then
6579 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 OTOOL=$ac_cv_prog_OTOOL
6599 if test -n "$OTOOL"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6601 $as_echo "$OTOOL" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6609 if test -z "$ac_cv_prog_OTOOL"; then
6611 # Extract the first word of "otool", so it can be a program name with args.
6612 set dummy otool; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6616 $as_echo_n "(cached) " >&6
6618 if test -n "$ac_ct_OTOOL"; then
6619 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_ac_ct_OTOOL="otool"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6639 if test -n "$ac_ct_OTOOL"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6641 $as_echo "$ac_ct_OTOOL" >&6; }
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6647 if test "x$ac_ct_OTOOL" = x; then
6650 case $cross_compiling:$ac_tool_warned in
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6659 OTOOL="$ac_cv_prog_OTOOL"
6662 if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6664 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_OTOOL64+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$OTOOL64"; then
6671 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 OTOOL64=$ac_cv_prog_OTOOL64
6691 if test -n "$OTOOL64"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6693 $as_echo "$OTOOL64" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6701 if test -z "$ac_cv_prog_OTOOL64"; then
6702 ac_ct_OTOOL64=$OTOOL64
6703 # Extract the first word of "otool64", so it can be a program name with args.
6704 set dummy otool64; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6708 $as_echo_n "(cached) " >&6
6710 if test -n "$ac_ct_OTOOL64"; then
6711 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720 ac_cv_prog_ac_ct_OTOOL64="otool64"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6731 if test -n "$ac_ct_OTOOL64"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6733 $as_echo "$ac_ct_OTOOL64" >&6; }
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6739 if test "x$ac_ct_OTOOL64" = x; then
6742 case $cross_compiling:$ac_tool_warned in
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6748 OTOOL64=$ac_ct_OTOOL64
6751 OTOOL64="$ac_cv_prog_OTOOL64"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6781 $as_echo_n "checking for -single_module linker flag... " >&6; }
6782 if ${lt_cv_apple_cc_single_mod+:} false; then :
6783 $as_echo_n "(cached) " >&6
6785 lt_cv_apple_cc_single_mod=no
6786 if test -z "${LT_MULTI_MODULE}"; then
6787 # By default we will add the -single_module flag. You can override
6788 # by either setting the environment variable LT_MULTI_MODULE
6789 # non-empty at configure time, or by adding -multi_module to the
6791 rm -rf libconftest.dylib*
6792 echo "int foo(void){return 1;}" > conftest.c
6793 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6794 -dynamiclib -Wl,-single_module conftest.c" >&5
6795 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6796 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6798 # If there is a non-empty error log, and "single_module"
6799 # appears in it, assume the flag caused a linker warning
6800 if test -s conftest.err && $GREP single_module conftest.err; then
6801 cat conftest.err >&5
6802 # Otherwise, if the output was created with a 0 exit code from
6803 # the compiler, it worked.
6804 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6805 lt_cv_apple_cc_single_mod=yes
6807 cat conftest.err >&5
6809 rm -rf libconftest.dylib*
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6814 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6817 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6818 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 lt_cv_ld_exported_symbols_list=no
6822 save_LDFLAGS=$LDFLAGS
6823 echo "_main" > conftest.sym
6824 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6836 if ac_fn_c_try_link "$LINENO"; then :
6837 lt_cv_ld_exported_symbols_list=yes
6839 lt_cv_ld_exported_symbols_list=no
6841 rm -f core conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6843 LDFLAGS="$save_LDFLAGS"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6847 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6850 $as_echo_n "checking for -force_load linker flag... " >&6; }
6851 if ${lt_cv_ld_force_load+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 lt_cv_ld_force_load=no
6855 cat > conftest.c << _LT_EOF
6856 int forced_loaded() { return 2;}
6858 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6859 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6860 echo "$AR cru libconftest.a conftest.o" >&5
6861 $AR cru libconftest.a conftest.o 2>&5
6862 echo "$RANLIB libconftest.a" >&5
6863 $RANLIB libconftest.a 2>&5
6864 cat > conftest.c << _LT_EOF
6865 int main() { return 0;}
6867 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6868 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6870 if test -s conftest.err && $GREP force_load conftest.err; then
6871 cat conftest.err >&5
6872 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6873 lt_cv_ld_force_load=yes
6875 cat conftest.err >&5
6877 rm -f conftest.err libconftest.a conftest conftest.c
6878 rm -rf conftest.dSYM
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6882 $as_echo "$lt_cv_ld_force_load" >&6; }
6884 rhapsody* | darwin1.[012])
6885 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6887 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6888 darwin*) # darwin 5.x on
6889 # if running on 10.5 or later, the deployment target defaults
6890 # to the OS version, if on x86, and 10.4, the deployment
6891 # target defaults to 10.4. Don't you love it?
6892 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6893 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6894 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6896 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6898 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6902 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6903 _lt_dar_single_mod='$single_module'
6905 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6906 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6908 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6910 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6911 _lt_dsymutil='~$DSYMUTIL $lib || :'
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6920 $as_echo_n "checking for ANSI C header files... " >&6; }
6921 if ${ac_cv_header_stdc+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940 ac_cv_header_stdc=yes
6942 ac_cv_header_stdc=no
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 if test $ac_cv_header_stdc = yes; then
6947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6954 $EGREP "memchr" >/dev/null 2>&1; then :
6957 ac_cv_header_stdc=no
6963 if test $ac_cv_header_stdc = yes; then
6964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "free" >/dev/null 2>&1; then :
6974 ac_cv_header_stdc=no
6980 if test $ac_cv_header_stdc = yes; then
6981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6982 if test "$cross_compiling" = yes; then :
6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6989 #if ((' ' & 0x0FF) == 0x020)
6990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6993 # define ISLOWER(c) \
6994 (('a' <= (c) && (c) <= 'i') \
6995 || ('j' <= (c) && (c) <= 'r') \
6996 || ('s' <= (c) && (c) <= 'z'))
6997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7005 for (i = 0; i < 256; i++)
7006 if (XOR (islower (i), ISLOWER (i))
7007 || toupper (i) != TOUPPER (i))
7012 if ac_fn_c_try_run "$LINENO"; then :
7015 ac_cv_header_stdc=no
7017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7018 conftest.$ac_objext conftest.beam conftest.$ac_ext
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7024 $as_echo "$ac_cv_header_stdc" >&6; }
7025 if test $ac_cv_header_stdc = yes; then
7027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7033 inttypes.h stdint.h unistd.h
7035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7039 cat >>confdefs.h <<_ACEOF
7040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7048 for ac_header in dlfcn.h
7050 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7052 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_DLFCN_H 1
7066 enable_win32_dll=yes
7069 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}as; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_AS+:} false; then :
7076 $as_echo_n "(cached) " >&6
7078 if test -n "$AS"; then
7079 ac_cv_prog_AS="$AS" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_AS="${ac_tool_prefix}as"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 if test -n "$AS"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7101 $as_echo "$AS" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7109 if test -z "$ac_cv_prog_AS"; then
7111 # Extract the first word of "as", so it can be a program name with args.
7112 set dummy as; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 if test -n "$ac_ct_AS"; then
7119 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_ac_ct_AS="as"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7139 if test -n "$ac_ct_AS"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7141 $as_echo "$ac_ct_AS" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7147 if test "x$ac_ct_AS" = x; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_DLLTOOL+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$DLLTOOL"; then
7171 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 DLLTOOL=$ac_cv_prog_DLLTOOL
7191 if test -n "$DLLTOOL"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7193 $as_echo "$DLLTOOL" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7201 if test -z "$ac_cv_prog_DLLTOOL"; then
7202 ac_ct_DLLTOOL=$DLLTOOL
7203 # Extract the first word of "dlltool", so it can be a program name with args.
7204 set dummy dlltool; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$ac_ct_DLLTOOL"; then
7211 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7231 if test -n "$ac_ct_DLLTOOL"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7233 $as_echo "$ac_ct_DLLTOOL" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7239 if test "x$ac_ct_DLLTOOL" = x; then
7242 case $cross_compiling:$ac_tool_warned in
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7248 DLLTOOL=$ac_ct_DLLTOOL
7251 DLLTOOL="$ac_cv_prog_DLLTOOL"
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_OBJDUMP+:} false; then :
7260 $as_echo_n "(cached) " >&6
7262 if test -n "$OBJDUMP"; then
7263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 OBJDUMP=$ac_cv_prog_OBJDUMP
7283 if test -n "$OBJDUMP"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7285 $as_echo "$OBJDUMP" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7293 if test -z "$ac_cv_prog_OBJDUMP"; then
7294 ac_ct_OBJDUMP=$OBJDUMP
7295 # Extract the first word of "objdump", so it can be a program name with args.
7296 set dummy objdump; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 if test -n "$ac_ct_OBJDUMP"; then
7303 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7323 if test -n "$ac_ct_OBJDUMP"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7325 $as_echo "$ac_ct_OBJDUMP" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7331 if test "x$ac_ct_OBJDUMP" = x; then
7334 case $cross_compiling:$ac_tool_warned in
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7340 OBJDUMP=$ac_ct_OBJDUMP
7343 OBJDUMP="$ac_cv_prog_OBJDUMP"
7349 test -z "$AS" && AS=as
7355 test -z "$DLLTOOL" && DLLTOOL=dlltool
7361 test -z "$OBJDUMP" && OBJDUMP=objdump
7373 # Check whether --enable-shared was given.
7374 if test "${enable_shared+set}" = set; then :
7375 enableval=$enable_shared; p=${PACKAGE-default}
7377 yes) enable_shared=yes ;;
7378 no) enable_shared=no ;;
7381 # Look at the argument we got. We use all the common list separators.
7382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383 for pkg in $enableval; do
7385 if test "X$pkg" = "X$p"; then
7404 # Check whether --enable-static was given.
7405 if test "${enable_static+set}" = set; then :
7406 enableval=$enable_static; p=${PACKAGE-default}
7408 yes) enable_static=yes ;;
7409 no) enable_static=no ;;
7412 # Look at the argument we got. We use all the common list separators.
7413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414 for pkg in $enableval; do
7416 if test "X$pkg" = "X$p"; then
7436 # Check whether --with-pic was given.
7437 if test "${with_pic+set}" = set; then :
7438 withval=$with_pic; lt_p=${PACKAGE-default}
7440 yes|no) pic_mode=$withval ;;
7443 # Look at the argument we got. We use all the common list separators.
7444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445 for lt_pkg in $withval; do
7447 if test "X$lt_pkg" = "X$lt_p"; then
7459 test -z "$pic_mode" && pic_mode=default
7467 # Check whether --enable-fast-install was given.
7468 if test "${enable_fast_install+set}" = set; then :
7469 enableval=$enable_fast_install; p=${PACKAGE-default}
7471 yes) enable_fast_install=yes ;;
7472 no) enable_fast_install=no ;;
7474 enable_fast_install=no
7475 # Look at the argument we got. We use all the common list separators.
7476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7477 for pkg in $enableval; do
7479 if test "X$pkg" = "X$p"; then
7480 enable_fast_install=yes
7487 enable_fast_install=yes
7500 # This can be used to rebuild libtool when needed
7501 LIBTOOL_DEPS="$ltmain"
7503 # Always use our own libtool.
7504 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7535 test -z "$LN_S" && LN_S="ln -s"
7550 if test -n "${ZSH_VERSION+set}" ; then
7551 setopt NO_GLOB_SUBST
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7555 $as_echo_n "checking for objdir... " >&6; }
7556 if ${lt_cv_objdir+:} false; then :
7557 $as_echo_n "(cached) " >&6
7559 rm -f .libs 2>/dev/null
7560 mkdir .libs 2>/dev/null
7561 if test -d .libs; then
7564 # MS-DOS does not allow filenames that begin with a dot.
7567 rmdir .libs 2>/dev/null
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7570 $as_echo "$lt_cv_objdir" >&6; }
7571 objdir=$lt_cv_objdir
7577 cat >>confdefs.h <<_ACEOF
7578 #define LT_OBJDIR "$lt_cv_objdir/"
7586 # AIX sometimes has problems with the GCC collect2 program. For some
7587 # reason, if we set the COLLECT_NAMES environment variable, the problems
7588 # vanish in a puff of smoke.
7589 if test "X${COLLECT_NAMES+set}" != Xset; then
7591 export COLLECT_NAMES
7598 can_build_shared=yes
7600 # All known linkers require a `.a' archive for static linking (except MSVC,
7601 # which needs '.lib').
7604 with_gnu_ld="$lt_cv_prog_gnu_ld"
7607 old_CFLAGS="$CFLAGS"
7609 # Set sane defaults for various variables
7610 test -z "$CC" && CC=cc
7611 test -z "$LTCC" && LTCC=$CC
7612 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7613 test -z "$LD" && LD=ld
7614 test -z "$ac_objext" && ac_objext=o
7616 for cc_temp in $compiler""; do
7618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7624 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7627 # Only perform the check for file, if the check method requires it
7628 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7629 case $deplibs_check_method in
7631 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7633 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7634 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7635 $as_echo_n "(cached) " >&6
7639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7642 lt_save_MAGIC_CMD="$MAGIC_CMD"
7643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7645 for ac_dir in $ac_dummy; do
7647 test -z "$ac_dir" && ac_dir=.
7648 if test -f $ac_dir/${ac_tool_prefix}file; then
7649 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7650 if test -n "$file_magic_test_file"; then
7651 case $deplibs_check_method in
7653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7656 $EGREP "$file_magic_regex" > /dev/null; then
7661 *** Warning: the command libtool uses to detect shared libraries,
7662 *** $file_magic_cmd, produces output that libtool cannot recognize.
7663 *** The result is that libtool may fail to recognize shared libraries
7664 *** as such. This will affect the creation of libtool libraries that
7665 *** depend on shared libraries, but programs linked with such libtool
7666 *** libraries will work regardless of this problem. Nevertheless, you
7667 *** may want to report the problem to your system manager and/or to
7668 *** bug-libtool@gnu.org
7678 MAGIC_CMD="$lt_save_MAGIC_CMD"
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if test -n "$MAGIC_CMD"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7686 $as_echo "$MAGIC_CMD" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7696 if test -z "$lt_cv_path_MAGIC_CMD"; then
7697 if test -n "$ac_tool_prefix"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7699 $as_echo_n "checking for file... " >&6; }
7700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7701 $as_echo_n "(cached) " >&6
7705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7708 lt_save_MAGIC_CMD="$MAGIC_CMD"
7709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7711 for ac_dir in $ac_dummy; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f $ac_dir/file; then
7715 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7716 if test -n "$file_magic_test_file"; then
7717 case $deplibs_check_method in
7719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7722 $EGREP "$file_magic_regex" > /dev/null; then
7727 *** Warning: the command libtool uses to detect shared libraries,
7728 *** $file_magic_cmd, produces output that libtool cannot recognize.
7729 *** The result is that libtool may fail to recognize shared libraries
7730 *** as such. This will affect the creation of libtool libraries that
7731 *** depend on shared libraries, but programs linked with such libtool
7732 *** libraries will work regardless of this problem. Nevertheless, you
7733 *** may want to report the problem to your system manager and/or to
7734 *** bug-libtool@gnu.org
7744 MAGIC_CMD="$lt_save_MAGIC_CMD"
7749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7750 if test -n "$MAGIC_CMD"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7752 $as_echo "$MAGIC_CMD" >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7768 # Use C for the default configuration in the libtool script
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778 # Source file extension for C test sources.
7781 # Object file extension for compiled C test sources.
7785 # Code to be used in simple compile tests
7786 lt_simple_compile_test_code="int some_variable = 0;"
7788 # Code to be used in simple link tests
7789 lt_simple_link_test_code='int main(){return(0);}'
7797 # If no C compiler was specified, use CC.
7800 # If no C compiler flags were specified, use CFLAGS.
7801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7803 # Allow CC to be a program name with arguments.
7806 # Save the default compiler, since it gets overwritten when the other
7807 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7808 compiler_DEFAULT=$CC
7810 # save warnings/boilerplate of simple test code
7811 ac_outfile=conftest.$ac_objext
7812 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814 _lt_compiler_boilerplate=`cat conftest.err`
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820 _lt_linker_boilerplate=`cat conftest.err`
7824 if test -n "$compiler"; then
7826 lt_prog_compiler_no_builtin_flag=
7828 if test "$GCC" = yes; then
7829 case $cc_basename in
7831 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7833 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7837 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7838 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7839 $as_echo_n "(cached) " >&6
7841 lt_cv_prog_compiler_rtti_exceptions=no
7842 ac_outfile=conftest.$ac_objext
7843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844 lt_compiler_flag="-fno-rtti -fno-exceptions"
7845 # Insert the option either (1) after the last *FLAGS variable, or
7846 # (2) before a word containing "conftest.", or (3) at the end.
7847 # Note that $ac_compile itself does not contain backslashes and begins
7848 # with a dollar sign (not a hyphen), so the echo should work correctly.
7849 # The option is referenced via a variable to avoid confusing sed.
7850 lt_compile=`echo "$ac_compile" | $SED \
7851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7853 -e 's:$: $lt_compiler_flag:'`
7854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7855 (eval "$lt_compile" 2>conftest.err)
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 if (exit $ac_status) && test -s "$ac_outfile"; then
7860 # The compiler can only warn and ignore the option if not recognized
7861 # So say no if there are warnings other than the usual output.
7862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7864 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7865 lt_cv_prog_compiler_rtti_exceptions=yes
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7872 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7874 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7875 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7887 lt_prog_compiler_wl=
7888 lt_prog_compiler_pic=
7889 lt_prog_compiler_static=
7892 if test "$GCC" = yes; then
7893 lt_prog_compiler_wl='-Wl,'
7894 lt_prog_compiler_static='-static'
7898 # All AIX code is PIC.
7899 if test "$host_cpu" = ia64; then
7900 # AIX 5 now supports IA64 processor
7901 lt_prog_compiler_static='-Bstatic'
7908 # see comment about AmigaOS4 .so support
7909 lt_prog_compiler_pic='-fPIC'
7912 # FIXME: we need at least 68020 code to build shared libraries, but
7913 # adding the `-m68020' flag to GCC prevents building anything better,
7915 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7920 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7921 # PIC is the default for these OSes.
7924 mingw* | cygwin* | pw32* | os2* | cegcc*)
7925 # This hack is so that the source file can tell whether it is being
7926 # built for inclusion in a dll (and should export symbols for example).
7927 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7928 # (--disable-auto-import) libraries
7929 lt_prog_compiler_pic='-DDLL_EXPORT'
7932 darwin* | rhapsody*)
7933 # PIC is the default on this platform
7934 # Common symbols not allowed in MH_DYLIB files
7935 lt_prog_compiler_pic='-fno-common'
7939 # PIC is the default for Haiku.
7940 # The "-static" flag exists, but is broken.
7941 lt_prog_compiler_static=
7945 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7946 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7947 # sets the default TLS model and affects inlining.
7953 lt_prog_compiler_pic='-fPIC'
7959 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7960 # Instead, we relocate shared libraries at runtime.
7964 # Just because we use GCC doesn't mean we suddenly get shared libraries
7965 # on systems that don't support them.
7966 lt_prog_compiler_can_build_shared=no
7971 # QNX uses GNU C++, but need to define -shared option too, otherwise
7973 lt_prog_compiler_pic='-fPIC -shared'
7977 if test -d /usr/nec; then
7978 lt_prog_compiler_pic=-Kconform_pic
7983 lt_prog_compiler_pic='-fPIC'
7987 case $cc_basename in
7988 nvcc*) # Cuda Compiler Driver 2.2
7989 lt_prog_compiler_wl='-Xlinker '
7990 if test -n "$lt_prog_compiler_pic"; then
7991 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7996 # PORTME Check for flag to pass linker flags through the system compiler.
7999 lt_prog_compiler_wl='-Wl,'
8000 if test "$host_cpu" = ia64; then
8001 # AIX 5 now supports IA64 processor
8002 lt_prog_compiler_static='-Bstatic'
8004 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8008 mingw* | cygwin* | pw32* | os2* | cegcc*)
8009 # This hack is so that the source file can tell whether it is being
8010 # built for inclusion in a dll (and should export symbols for example).
8011 lt_prog_compiler_pic='-DDLL_EXPORT'
8014 hpux9* | hpux10* | hpux11*)
8015 lt_prog_compiler_wl='-Wl,'
8016 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8023 lt_prog_compiler_pic='+Z'
8026 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8027 lt_prog_compiler_static='${wl}-a ${wl}archive'
8030 irix5* | irix6* | nonstopux*)
8031 lt_prog_compiler_wl='-Wl,'
8032 # PIC (with -KPIC) is the default.
8033 lt_prog_compiler_static='-non_shared'
8036 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8037 case $cc_basename in
8038 # old Intel for x86_64 which still supported -KPIC.
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-static'
8044 # icc used to be incompatible with GCC.
8045 # ICC 10 doesn't accept -KPIC any more.
8047 lt_prog_compiler_wl='-Wl,'
8048 lt_prog_compiler_pic='-fPIC'
8049 lt_prog_compiler_static='-static'
8051 # Lahey Fortran 8.1.
8053 lt_prog_compiler_wl='-Wl,'
8054 lt_prog_compiler_pic='--shared'
8055 lt_prog_compiler_static='--static'
8058 # NAG Fortran compiler
8059 lt_prog_compiler_wl='-Wl,-Wl,,'
8060 lt_prog_compiler_pic='-PIC'
8061 lt_prog_compiler_static='-Bstatic'
8063 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8064 # Portland Group compilers (*not* the Pentium gcc compiler,
8065 # which looks to be a dead project)
8066 lt_prog_compiler_wl='-Wl,'
8067 lt_prog_compiler_pic='-fpic'
8068 lt_prog_compiler_static='-Bstatic'
8071 lt_prog_compiler_wl='-Wl,'
8072 # All Alpha code is PIC.
8073 lt_prog_compiler_static='-non_shared'
8075 xl* | bgxl* | bgf* | mpixl*)
8076 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-qpic'
8079 lt_prog_compiler_static='-qstaticlink'
8082 case `$CC -V 2>&1 | sed 5q` in
8083 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8084 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8085 lt_prog_compiler_pic='-KPIC'
8086 lt_prog_compiler_static='-Bstatic'
8087 lt_prog_compiler_wl=''
8089 *Sun\ F* | *Sun*Fortran*)
8090 lt_prog_compiler_pic='-KPIC'
8091 lt_prog_compiler_static='-Bstatic'
8092 lt_prog_compiler_wl='-Qoption ld '
8096 lt_prog_compiler_pic='-KPIC'
8097 lt_prog_compiler_static='-Bstatic'
8098 lt_prog_compiler_wl='-Wl,'
8100 *Intel*\ [CF]*Compiler*)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-fPIC'
8103 lt_prog_compiler_static='-static'
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='-fpic'
8108 lt_prog_compiler_static='-Bstatic'
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8121 # QNX uses GNU C++, but need to define -shared option too, otherwise
8123 lt_prog_compiler_pic='-fPIC -shared'
8126 osf3* | osf4* | osf5*)
8127 lt_prog_compiler_wl='-Wl,'
8128 # All OSF/1 code is PIC.
8129 lt_prog_compiler_static='-non_shared'
8133 lt_prog_compiler_static='-non_shared'
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 case $cc_basename in
8140 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8141 lt_prog_compiler_wl='-Qoption ld ';;
8143 lt_prog_compiler_wl='-Wl,';;
8148 lt_prog_compiler_wl='-Qoption ld '
8149 lt_prog_compiler_pic='-PIC'
8150 lt_prog_compiler_static='-Bstatic'
8153 sysv4 | sysv4.2uw2* | sysv4.3*)
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_pic='-KPIC'
8156 lt_prog_compiler_static='-Bstatic'
8160 if test -d /usr/nec ;then
8161 lt_prog_compiler_pic='-Kconform_pic'
8162 lt_prog_compiler_static='-Bstatic'
8166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_can_build_shared=no
8178 lt_prog_compiler_pic='-pic'
8179 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_can_build_shared=no
8189 # For platforms which do not support PIC, -DPIC is meaningless:
8191 lt_prog_compiler_pic=
8194 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8199 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8200 if ${lt_cv_prog_compiler_pic+:} false; then :
8201 $as_echo_n "(cached) " >&6
8203 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8206 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8207 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8210 # Check to make sure the PIC flag actually works.
8212 if test -n "$lt_prog_compiler_pic"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8214 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8215 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8216 $as_echo_n "(cached) " >&6
8218 lt_cv_prog_compiler_pic_works=no
8219 ac_outfile=conftest.$ac_objext
8220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8221 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8222 # Insert the option either (1) after the last *FLAGS variable, or
8223 # (2) before a word containing "conftest.", or (3) at the end.
8224 # Note that $ac_compile itself does not contain backslashes and begins
8225 # with a dollar sign (not a hyphen), so the echo should work correctly.
8226 # The option is referenced via a variable to avoid confusing sed.
8227 lt_compile=`echo "$ac_compile" | $SED \
8228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8230 -e 's:$: $lt_compiler_flag:'`
8231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8232 (eval "$lt_compile" 2>conftest.err)
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 if (exit $ac_status) && test -s "$ac_outfile"; then
8237 # The compiler can only warn and ignore the option if not recognized
8238 # So say no if there are warnings other than the usual output.
8239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8242 lt_cv_prog_compiler_pic_works=yes
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8249 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8251 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8252 case $lt_prog_compiler_pic in
8254 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8257 lt_prog_compiler_pic=
8258 lt_prog_compiler_can_build_shared=no
8274 # Check to make sure the static flag actually works.
8276 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8279 if ${lt_cv_prog_compiler_static_works+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 lt_cv_prog_compiler_static_works=no
8283 save_LDFLAGS="$LDFLAGS"
8284 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8285 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8287 # The linker can only warn and ignore the option if not recognized
8288 # So say no if there are warnings
8289 if test -s conftest.err; then
8290 # Append any errors to the config.log.
8291 cat conftest.err 1>&5
8292 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294 if diff conftest.exp conftest.er2 >/dev/null; then
8295 lt_cv_prog_compiler_static_works=yes
8298 lt_cv_prog_compiler_static_works=yes
8302 LDFLAGS="$save_LDFLAGS"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8306 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8308 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8311 lt_prog_compiler_static=
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if ${lt_cv_prog_compiler_c_o+:} false; then :
8323 $as_echo_n "(cached) " >&6
8325 lt_cv_prog_compiler_c_o=no
8326 $RM -r conftest 2>/dev/null
8330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8332 lt_compiler_flag="-o out/conftest2.$ac_objext"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 lt_compile=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>out/conftest.err)
8344 cat out/conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings
8350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_c_o=yes
8358 # SGI C++ compiler will create directory out/ii_files/ for
8359 # template instantiation
8360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361 $RM out/* && rmdir out
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8377 if ${lt_cv_prog_compiler_c_o+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 lt_cv_prog_compiler_c_o=no
8381 $RM -r conftest 2>/dev/null
8385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8387 lt_compiler_flag="-o out/conftest2.$ac_objext"
8388 # Insert the option either (1) after the last *FLAGS variable, or
8389 # (2) before a word containing "conftest.", or (3) at the end.
8390 # Note that $ac_compile itself does not contain backslashes and begins
8391 # with a dollar sign (not a hyphen), so the echo should work correctly.
8392 lt_compile=`echo "$ac_compile" | $SED \
8393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395 -e 's:$: $lt_compiler_flag:'`
8396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8397 (eval "$lt_compile" 2>out/conftest.err)
8399 cat out/conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8403 # The compiler can only warn and ignore the option if not recognized
8404 # So say no if there are warnings
8405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8408 lt_cv_prog_compiler_c_o=yes
8413 # SGI C++ compiler will create directory out/ii_files/ for
8414 # template instantiation
8415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8416 $RM out/* && rmdir out
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8428 hard_links="nottested"
8429 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8430 # do not overwrite the value of need_locks provided by the user
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8432 $as_echo_n "checking if we can lock with hard links... " >&6; }
8435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8437 ln conftest.a conftest.b 2>&5 || hard_links=no
8438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8440 $as_echo "$hard_links" >&6; }
8441 if test "$hard_links" = no; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8443 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8456 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8459 allow_undefined_flag=
8460 always_export_symbols=no
8462 archive_expsym_cmds=
8463 compiler_needs_object=no
8464 enable_shared_with_static_runtimes=no
8465 export_dynamic_flag_spec=
8466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8467 hardcode_automatic=no
8469 hardcode_direct_absolute=no
8470 hardcode_libdir_flag_spec=
8471 hardcode_libdir_separator=
8473 hardcode_shlibpath_var=unsupported
8475 link_all_deplibs=unknown
8478 old_archive_from_new_cmds=
8479 old_archive_from_expsyms_cmds=
8480 thread_safe_flag_spec=
8481 whole_archive_flag_spec=
8482 # include_expsyms should be a list of space-separated symbols to be *always*
8483 # included in the symbol list
8485 # exclude_expsyms can be an extended regexp of symbols to exclude
8486 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8487 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8488 # as well as any symbol that contains `d'.
8489 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8490 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8491 # platforms (ab)use it in PIC code, but their linkers get confused if
8492 # the symbol is explicitly referenced. Since portable code cannot
8493 # rely on this symbol name, it's probably fine to never include it in
8494 # preloaded symbol tables.
8495 # Exclude shared library initialization/finalization symbols.
8496 extract_expsyms_cmds=
8499 cygwin* | mingw* | pw32* | cegcc*)
8500 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8501 # When not using gcc, we currently assume that we are using
8502 # Microsoft Visual C++.
8503 if test "$GCC" != yes; then
8508 # we just hope/assume this is gcc and not c89 (= MSVC++)
8514 linux* | k*bsd*-gnu | gnu*)
8521 # On some targets, GNU ld is compatible enough with the native linker
8522 # that we're better off using the native interface for both.
8523 lt_use_gnu_ld_interface=no
8524 if test "$with_gnu_ld" = yes; then
8527 # The AIX port of GNU ld has always aspired to compatibility
8528 # with the native linker. However, as the warning in the GNU ld
8529 # block says, versions before 2.19.5* couldn't really create working
8530 # shared libraries, regardless of the interface used.
8531 case `$LD -v 2>&1` in
8532 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8533 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8534 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8536 lt_use_gnu_ld_interface=yes
8541 lt_use_gnu_ld_interface=yes
8546 if test "$lt_use_gnu_ld_interface" = yes; then
8547 # If archive_cmds runs LD, not CC, wlarc should be empty
8550 # Set some defaults for GNU ld with shared library support. These
8551 # are reset later if shared libraries are not supported. Putting them
8552 # here allows them to be overridden if necessary.
8553 runpath_var=LD_RUN_PATH
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 export_dynamic_flag_spec='${wl}--export-dynamic'
8556 # ancient GNU ld didn't support --whole-archive et. al.
8557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8560 whole_archive_flag_spec=
8562 supports_anon_versioning=no
8563 case `$LD -v 2>&1` in
8564 *GNU\ gold*) supports_anon_versioning=yes ;;
8565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8568 *\ 2.11.*) ;; # other 2.11 versions
8569 *) supports_anon_versioning=yes ;;
8572 # See if GNU ld supports shared libraries.
8575 # On AIX/PPC, the GNU linker is very broken
8576 if test "$host_cpu" != ia64; then
8580 *** Warning: the GNU linker, at least up to release 2.19, is reported
8581 *** to be unable to reliably create shared libraries on AIX.
8582 *** Therefore, libtool is disabling shared libraries support. If you
8583 *** really care for shared libraries, you may want to install binutils
8584 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8585 *** You will then need to restart the configuration process.
8594 # see comment about AmigaOS4 .so support
8595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596 archive_expsym_cmds=''
8599 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)'
8600 hardcode_libdir_flag_spec='-L$libdir'
8601 hardcode_minus_L=yes
8607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8608 allow_undefined_flag=unsupported
8609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8610 # support --undefined. This deserves some investigation. FIXME
8611 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617 cygwin* | mingw* | pw32* | cegcc*)
8618 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8619 # as there is no search path for DLLs.
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 export_dynamic_flag_spec='${wl}--export-all-symbols'
8622 allow_undefined_flag=unsupported
8623 always_export_symbols=no
8624 enable_shared_with_static_runtimes=yes
8625 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'
8626 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8628 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8630 # If the export-symbols file already is a .def file (1st line
8631 # is EXPORTS), use it as is; otherwise, prepend...
8632 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8633 cp $export_symbols $output_objdir/$soname.def;
8635 echo EXPORTS > $output_objdir/$soname.def;
8636 cat $export_symbols >> $output_objdir/$soname.def;
8638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646 link_all_deplibs=yes
8651 hardcode_shlibpath_var=no
8652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8653 export_dynamic_flag_spec='${wl}-E'
8654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8655 # Instead, shared libraries are loaded at an image base (0x10000000 by
8656 # default) and relocated if they conflict, which is a slow very memory
8657 # consuming and fragmenting process. To avoid this, we pick a random,
8658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8659 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8661 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'
8664 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8666 if test "$host_os" = linux-dietlibc; then
8667 case $cc_basename in
8668 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8671 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8672 && test "$tmp_diet" = no
8674 tmp_addflag=' $pic_flag'
8675 tmp_sharedflag='-shared'
8676 case $cc_basename,$host_cpu in
8677 pgcc*) # Portland Group C compiler
8678 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'
8679 tmp_addflag=' $pic_flag'
8681 pgf77* | pgf90* | pgf95* | pgfortran*)
8682 # Portland Group f77 and f90 compilers
8683 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'
8684 tmp_addflag=' $pic_flag -Mnomain' ;;
8685 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8686 tmp_addflag=' -i_dynamic' ;;
8687 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8688 tmp_addflag=' -i_dynamic -nofor_main' ;;
8689 ifc* | ifort*) # Intel Fortran compiler
8690 tmp_addflag=' -nofor_main' ;;
8691 lf95*) # Lahey Fortran 8.1
8692 whole_archive_flag_spec=
8693 tmp_sharedflag='--shared' ;;
8694 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8695 tmp_sharedflag='-qmkshrobj'
8697 nvcc*) # Cuda Compiler Driver 2.2
8698 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'
8699 compiler_needs_object=yes
8702 case `$CC -V 2>&1 | sed 5q` in
8703 *Sun\ C*) # Sun C 5.9
8704 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'
8705 compiler_needs_object=yes
8706 tmp_sharedflag='-G' ;;
8707 *Sun\ F*) # Sun Fortran 8.3
8708 tmp_sharedflag='-G' ;;
8710 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 if test "x$supports_anon_versioning" = xyes; then
8713 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715 echo "local: *; };" >> $output_objdir/$libname.ver~
8716 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8719 case $cc_basename in
8720 xlf* | bgf* | bgxlf* | mpixlf*)
8721 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8722 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8724 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8725 if test "x$supports_anon_versioning" = xyes; then
8726 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8728 echo "local: *; };" >> $output_objdir/$libname.ver~
8729 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8738 netbsd* | netbsdelf*-gnu)
8739 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8740 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8753 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8754 *** create shared libraries on Solaris systems. Therefore, libtool
8755 *** is disabling shared libraries support. We urge you to upgrade GNU
8756 *** binutils to release 2.9.1 or newer. Another option is to modify
8757 *** your PATH or compiler configuration so that the native linker is
8758 *** used, and then restart.
8761 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8770 case `$LD -v 2>&1` in
8771 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8775 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8776 *** reliably create shared libraries on SCO systems. Therefore, libtool
8777 *** is disabling shared libraries support. We urge you to upgrade GNU
8778 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8779 *** your PATH or compiler configuration so that the native linker is
8780 *** used, and then restart.
8785 # For security reasons, it is highly recommended that you always
8786 # use absolute paths for naming shared libraries, and exclude the
8787 # DT_RUNPATH tag from executables and libraries. But doing so
8788 # requires that you compile everything twice, which is a pain.
8789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8801 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8804 hardcode_shlibpath_var=no
8808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8817 if test "$ld_shlibs" = no; then
8819 hardcode_libdir_flag_spec=
8820 export_dynamic_flag_spec=
8821 whole_archive_flag_spec=
8824 # PORTME fill in a description of your system's linker (not GNU ld)
8827 allow_undefined_flag=unsupported
8828 always_export_symbols=yes
8829 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'
8830 # Note: this linker hardcodes the directories in LIBPATH if there
8831 # are no directories specified by -L.
8832 hardcode_minus_L=yes
8833 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8834 # Neither direct hardcoding nor static linking is supported with a
8836 hardcode_direct=unsupported
8841 if test "$host_cpu" = ia64; then
8842 # On IA64, the linker does run time linking by default, so we don't
8843 # have to do anything special.
8844 aix_use_runtimelinking=no
8845 exp_sym_flag='-Bexport'
8848 # If we're using GNU nm, then we don't want the "-C" option.
8849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8850 # Also, AIX nm treats weak defined symbols like other global
8851 # defined symbols, whereas GNU nm marks them as "W".
8852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8853 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8855 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8857 aix_use_runtimelinking=no
8859 # Test if we are trying to use run time linking or normal
8860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8861 # need to do runtime linking.
8862 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8863 for ld_flag in $LDFLAGS; do
8864 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8865 aix_use_runtimelinking=yes
8872 exp_sym_flag='-bexport'
8873 no_entry_flag='-bnoentry'
8876 # When large executables or shared objects are built, AIX ld can
8877 # have problems creating the table of contents. If linking a library
8878 # or program results in "error TOC overflow" add -mminimal-toc to
8879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8884 hardcode_direct_absolute=yes
8885 hardcode_libdir_separator=':'
8886 link_all_deplibs=yes
8887 file_list_spec='${wl}-f,'
8889 if test "$GCC" = yes; then
8890 case $host_os in aix4.[012]|aix4.[012].*)
8891 # We only want to do this on AIX 4.2 and lower, the check
8892 # below for broken collect2 doesn't work under 4.3+
8893 collect2name=`${CC} -print-prog-name=collect2`
8894 if test -f "$collect2name" &&
8895 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8897 # We have reworked collect2
8900 # We have old collect2
8901 hardcode_direct=unsupported
8902 # It fails to find uninstalled libraries when the uninstalled
8903 # path is not listed in the libpath. Setting hardcode_minus_L
8904 # to unsupported forces relinking
8905 hardcode_minus_L=yes
8906 hardcode_libdir_flag_spec='-L$libdir'
8907 hardcode_libdir_separator=
8911 shared_flag='-shared'
8912 if test "$aix_use_runtimelinking" = yes; then
8913 shared_flag="$shared_flag "'${wl}-G'
8918 if test "$host_cpu" = ia64; then
8919 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8920 # chokes on -Wl,-G. The following line is correct:
8923 if test "$aix_use_runtimelinking" = yes; then
8924 shared_flag='${wl}-G'
8926 shared_flag='${wl}-bM:SRE'
8931 export_dynamic_flag_spec='${wl}-bexpall'
8932 # It seems that -bexpall does not export symbols beginning with
8933 # underscore (_), so it is better to generate a list of symbols to export.
8934 always_export_symbols=yes
8935 if test "$aix_use_runtimelinking" = yes; then
8936 # Warning - without using the other runtime loading flags (-brtl),
8937 # -berok will link without error, but may produce a broken library.
8938 allow_undefined_flag='-berok'
8939 # Determine the default libpath from the value encoded in an
8941 if test "${lt_cv_aix_libpath+set}" = set; then
8942 aix_libpath=$lt_cv_aix_libpath
8944 if ${lt_cv_aix_libpath_+:} false; then :
8945 $as_echo_n "(cached) " >&6
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8958 if ac_fn_c_try_link "$LINENO"; then :
8960 lt_aix_libpath_sed='
8961 /Import File Strings/,/^$/ {
8963 s/^0 *\([^ ]*\) *$/\1/
8967 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8968 # Check for a 64-bit object if we didn't find anything.
8969 if test -z "$lt_cv_aix_libpath_"; then
8970 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8973 rm -f core conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 if test -z "$lt_cv_aix_libpath_"; then
8976 lt_cv_aix_libpath_="/usr/lib:/lib"
8981 aix_libpath=$lt_cv_aix_libpath_
8984 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8985 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8987 if test "$host_cpu" = ia64; then
8988 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8989 allow_undefined_flag="-z nodefs"
8990 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"
8992 # Determine the default libpath from the value encoded in an
8994 if test "${lt_cv_aix_libpath+set}" = set; then
8995 aix_libpath=$lt_cv_aix_libpath
8997 if ${lt_cv_aix_libpath_+:} false; then :
8998 $as_echo_n "(cached) " >&6
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9011 if ac_fn_c_try_link "$LINENO"; then :
9013 lt_aix_libpath_sed='
9014 /Import File Strings/,/^$/ {
9016 s/^0 *\([^ ]*\) *$/\1/
9020 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9021 # Check for a 64-bit object if we didn't find anything.
9022 if test -z "$lt_cv_aix_libpath_"; then
9023 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026 rm -f core conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
9028 if test -z "$lt_cv_aix_libpath_"; then
9029 lt_cv_aix_libpath_="/usr/lib:/lib"
9034 aix_libpath=$lt_cv_aix_libpath_
9037 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9038 # Warning - without using the other run time loading flags,
9039 # -berok will link without error, but may produce a broken library.
9040 no_undefined_flag=' ${wl}-bernotok'
9041 allow_undefined_flag=' ${wl}-berok'
9042 if test "$with_gnu_ld" = yes; then
9043 # We only use this code for GNU lds that support --whole-archive.
9044 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9046 # Exported symbols can be pulled into shared objects from archives
9047 whole_archive_flag_spec='$convenience'
9049 archive_cmds_need_lc=yes
9050 # This is similar to how AIX traditionally builds its shared libraries.
9051 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9059 # see comment about AmigaOS4 .so support
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061 archive_expsym_cmds=''
9064 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)'
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_minus_L=yes
9072 export_dynamic_flag_spec=-rdynamic
9075 cygwin* | mingw* | pw32* | cegcc*)
9076 # When not using gcc, we currently assume that we are using
9077 # Microsoft Visual C++.
9078 # hardcode_libdir_flag_spec is actually meaningless, as there is
9079 # no search path for DLLs.
9080 case $cc_basename in
9083 hardcode_libdir_flag_spec=' '
9084 allow_undefined_flag=unsupported
9085 always_export_symbols=yes
9087 # Tell ltmain to make .lib files, not .a files.
9089 # Tell ltmain to make .dll files, not .so files.
9091 # FIXME: Setting linknames here is a bad hack.
9092 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9093 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9094 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9096 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9098 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9100 # The linker will not automatically build a static lib if we build a DLL.
9101 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9102 enable_shared_with_static_runtimes=yes
9103 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9106 old_postinstall_cmds='chmod 644 $oldlib'
9107 postlink_cmds='lt_outputfile="@OUTPUT@"~
9108 lt_tool_outputfile="@TOOL_OUTPUT@"~
9109 case $lt_outputfile in
9112 lt_outputfile="$lt_outputfile.exe"
9113 lt_tool_outputfile="$lt_tool_outputfile.exe"
9116 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9117 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9118 $RM "$lt_outputfile.manifest";
9122 # Assume MSVC wrapper
9123 hardcode_libdir_flag_spec=' '
9124 allow_undefined_flag=unsupported
9125 # Tell ltmain to make .lib files, not .a files.
9127 # Tell ltmain to make .dll files, not .so files.
9129 # FIXME: Setting linknames here is a bad hack.
9130 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9131 # The linker will automatically build a .lib file if we build a DLL.
9132 old_archive_from_new_cmds='true'
9133 # FIXME: Should let the user specify the lib program.
9134 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9135 enable_shared_with_static_runtimes=yes
9140 darwin* | rhapsody*)
9143 archive_cmds_need_lc=no
9145 hardcode_automatic=yes
9146 hardcode_shlibpath_var=unsupported
9147 if test "$lt_cv_ld_force_load" = "yes"; then
9148 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\"`'
9151 whole_archive_flag_spec=''
9153 link_all_deplibs=yes
9154 allow_undefined_flag="$_lt_dar_allow_undefined"
9155 case $cc_basename in
9156 ifort*) _lt_dar_can_shared=yes ;;
9157 *) _lt_dar_can_shared=$GCC ;;
9159 if test "$_lt_dar_can_shared" = "yes"; then
9160 output_verbose_link_cmd=func_echo_all
9161 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9162 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9163 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}"
9164 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}"
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 hardcode_shlibpath_var=no
9178 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9179 # support. Future versions do this automatically, but an explicit c++rt0.o
9180 # does not break anything, and helps significantly (at the cost of a little
9183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9184 hardcode_libdir_flag_spec='-R$libdir'
9186 hardcode_shlibpath_var=no
9189 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9193 hardcode_minus_L=yes
9194 hardcode_shlibpath_var=no
9197 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9198 freebsd* | dragonfly*)
9199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200 hardcode_libdir_flag_spec='-R$libdir'
9202 hardcode_shlibpath_var=no
9206 if test "$GCC" = yes; then
9207 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9209 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9212 hardcode_libdir_separator=:
9215 # hardcode_minus_L: Not really in the search PATH,
9216 # but as the default location of the library.
9217 hardcode_minus_L=yes
9218 export_dynamic_flag_spec='${wl}-E'
9222 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9223 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9225 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9227 if test "$with_gnu_ld" = no; then
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_separator=:
9231 hardcode_direct_absolute=yes
9232 export_dynamic_flag_spec='${wl}-E'
9233 # hardcode_minus_L: Not really in the search PATH,
9234 # but as the default location of the library.
9235 hardcode_minus_L=yes
9240 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9246 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9249 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9262 # Older versions of the 11.00 compiler do not understand -b yet
9263 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9265 $as_echo_n "checking if $CC understands -b... " >&6; }
9266 if ${lt_cv_prog_compiler__b+:} false; then :
9267 $as_echo_n "(cached) " >&6
9269 lt_cv_prog_compiler__b=no
9270 save_LDFLAGS="$LDFLAGS"
9271 LDFLAGS="$LDFLAGS -b"
9272 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9274 # The linker can only warn and ignore the option if not recognized
9275 # So say no if there are warnings
9276 if test -s conftest.err; then
9277 # Append any errors to the config.log.
9278 cat conftest.err 1>&5
9279 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9281 if diff conftest.exp conftest.er2 >/dev/null; then
9282 lt_cv_prog_compiler__b=yes
9285 lt_cv_prog_compiler__b=yes
9289 LDFLAGS="$save_LDFLAGS"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9293 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9295 if test x"$lt_cv_prog_compiler__b" = xyes; then
9296 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9304 if test "$with_gnu_ld" = no; then
9305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9306 hardcode_libdir_separator=:
9311 hardcode_shlibpath_var=no
9315 hardcode_direct_absolute=yes
9316 export_dynamic_flag_spec='${wl}-E'
9318 # hardcode_minus_L: Not really in the search PATH,
9319 # but as the default location of the library.
9320 hardcode_minus_L=yes
9326 irix5* | irix6* | nonstopux*)
9327 if test "$GCC" = yes; then
9328 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'
9329 # Try to use the -exported_symbol ld option, if it does not
9330 # work, assume that -exports_file does not work either and
9331 # implicitly export all symbols.
9332 # This should be the same for all languages, so no per-tag cache variable.
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9334 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9335 if ${lt_cv_irix_exported_symbol+:} false; then :
9336 $as_echo_n "(cached) " >&6
9338 save_LDFLAGS="$LDFLAGS"
9339 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 int foo (void) { return 0; }
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 lt_cv_irix_exported_symbol=yes
9347 lt_cv_irix_exported_symbol=no
9349 rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351 LDFLAGS="$save_LDFLAGS"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9354 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9355 if test "$lt_cv_irix_exported_symbol" = yes; then
9356 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'
9359 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'
9360 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'
9362 archive_cmds_need_lc='no'
9363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9364 hardcode_libdir_separator=:
9366 link_all_deplibs=yes
9369 netbsd* | netbsdelf*-gnu)
9370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9373 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9375 hardcode_libdir_flag_spec='-R$libdir'
9377 hardcode_shlibpath_var=no
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384 hardcode_libdir_separator=:
9385 hardcode_shlibpath_var=no
9392 if test -f /usr/libexec/ld.so; then
9394 hardcode_shlibpath_var=no
9395 hardcode_direct_absolute=yes
9396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9400 export_dynamic_flag_spec='${wl}-E'
9403 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_libdir_flag_spec='-R$libdir'
9408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9409 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9419 hardcode_libdir_flag_spec='-L$libdir'
9420 hardcode_minus_L=yes
9421 allow_undefined_flag=unsupported
9422 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9423 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9427 if test "$GCC" = yes; then
9428 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9429 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'
9431 allow_undefined_flag=' -expect_unresolved \*'
9432 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'
9434 archive_cmds_need_lc='no'
9435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9436 hardcode_libdir_separator=:
9439 osf4* | osf5*) # as osf3* with the addition of -msym flag
9440 if test "$GCC" = yes; then
9441 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9442 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'
9443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445 allow_undefined_flag=' -expect_unresolved \*'
9446 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'
9447 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~
9448 $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'
9450 # Both c and cxx compiler support -rpath directly
9451 hardcode_libdir_flag_spec='-rpath $libdir'
9453 archive_cmds_need_lc='no'
9454 hardcode_libdir_separator=:
9458 no_undefined_flag=' -z defs'
9459 if test "$GCC" = yes; then
9461 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9463 $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'
9465 case `$CC -V 2>&1` in
9468 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9470 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9474 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9475 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9476 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9480 hardcode_libdir_flag_spec='-R$libdir'
9481 hardcode_shlibpath_var=no
9483 solaris2.[0-5] | solaris2.[0-5].*) ;;
9485 # The compiler driver will combine and reorder linker options,
9486 # but understands `-z linker_flag'. GCC discards it without `$wl',
9487 # but is careful enough not to reorder.
9488 # Supported since Solaris 2.6 (maybe 2.5.1?)
9489 if test "$GCC" = yes; then
9490 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9492 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9496 link_all_deplibs=yes
9500 if test "x$host_vendor" = xsequent; then
9501 # Use $CC to link under sequent, because it throws in some extra .o
9502 # files that make .init and .fini sections work.
9503 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_libdir_flag_spec='-L$libdir'
9509 hardcode_minus_L=yes
9510 hardcode_shlibpath_var=no
9514 case $host_vendor in
9516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517 hardcode_direct=yes # is this really true???
9520 ## LD is ld it makes a PLAMLIB
9521 ## CC just makes a GrossModule.
9522 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9523 reload_cmds='$CC -r -o $output$reload_objs'
9527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9531 runpath_var='LD_RUN_PATH'
9532 hardcode_shlibpath_var=no
9536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537 hardcode_shlibpath_var=no
9538 export_dynamic_flag_spec='-Bexport'
9542 if test -d /usr/nec; then
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_shlibpath_var=no
9545 runpath_var=LD_RUN_PATH
9546 hardcode_runpath_var=yes
9551 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9552 no_undefined_flag='${wl}-z,text'
9553 archive_cmds_need_lc=no
9554 hardcode_shlibpath_var=no
9555 runpath_var='LD_RUN_PATH'
9557 if test "$GCC" = yes; then
9558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 sysv5* | sco3.2v5* | sco5v6*)
9567 # Note: We can NOT use -z defs as we might desire, because we do not
9568 # link with -lc, and that would cause any symbols used from libc to
9569 # always be unresolved, which means just about no library would
9570 # ever link correctly. If we're not using GNU ld we use -z text
9571 # though, which does catch some bad symbols but isn't as heavy-handed
9573 no_undefined_flag='${wl}-z,text'
9574 allow_undefined_flag='${wl}-z,nodefs'
9575 archive_cmds_need_lc=no
9576 hardcode_shlibpath_var=no
9577 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9578 hardcode_libdir_separator=':'
9579 link_all_deplibs=yes
9580 export_dynamic_flag_spec='${wl}-Bexport'
9581 runpath_var='LD_RUN_PATH'
9583 if test "$GCC" = yes; then
9584 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9588 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9594 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_shlibpath_var=no
9603 if test x$host_vendor = xsni; then
9605 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9606 export_dynamic_flag_spec='${wl}-Blargedynsym'
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9613 $as_echo "$ld_shlibs" >&6; }
9614 test "$ld_shlibs" = no && can_build_shared=no
9616 with_gnu_ld=$with_gnu_ld
9633 # Do we need to explicitly link libc?
9635 case "x$archive_cmds_need_lc" in
9637 # Assume -lc should be added
9638 archive_cmds_need_lc=yes
9640 if test "$enable_shared" = yes && test "$GCC" = yes; then
9641 case $archive_cmds in
9643 # FIXME: we may have to deal with multi-command sequences.
9646 # Test whether the compiler implicitly links with -lc since on some
9647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9648 # to ld, don't add -lc before -lgcc.
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9650 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9651 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9652 $as_echo_n "(cached) " >&6
9655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9658 (eval $ac_compile) 2>&5
9660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9661 test $ac_status = 0; } 2>conftest.err; then
9664 libobjs=conftest.$ac_objext
9666 wl=$lt_prog_compiler_wl
9667 pic_flag=$lt_prog_compiler_pic
9673 lt_save_allow_undefined_flag=$allow_undefined_flag
9674 allow_undefined_flag=
9675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9676 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9679 test $ac_status = 0; }
9681 lt_cv_archive_cmds_need_lc=no
9683 lt_cv_archive_cmds_need_lc=yes
9685 allow_undefined_flag=$lt_save_allow_undefined_flag
9687 cat conftest.err 1>&5
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9693 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9694 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9853 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9855 if test "$GCC" = yes; then
9857 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9858 *) lt_awk_arg="/^libraries:/" ;;
9861 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9862 *) lt_sed_strip_eq="s,=/,/,g" ;;
9864 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9865 case $lt_search_path_spec in
9867 # if the path contains ";" then we assume it to be the separator
9868 # otherwise default to the standard path separator (i.e. ":") - it is
9869 # assumed that no part of a normal pathname contains ";" but that should
9870 # okay in the real world where ";" in dirpaths is itself problematic.
9871 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9874 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9877 # Ok, now we have the path, separated by spaces, we can step through it
9878 # and add multilib dir if necessary.
9879 lt_tmp_lt_search_path_spec=
9880 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9881 for lt_sys_path in $lt_search_path_spec; do
9882 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9885 test -d "$lt_sys_path" && \
9886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9889 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9890 BEGIN {RS=" "; FS="/|\n";} {
9893 for (lt_i = NF; lt_i > 0; lt_i--) {
9894 if ($lt_i != "" && $lt_i != ".") {
9895 if ($lt_i == "..") {
9898 if (lt_count == 0) {
9899 lt_foo="/" $lt_i lt_foo;
9906 if (lt_foo != "") { lt_freq[lt_foo]++; }
9907 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9909 # AWK program above erroneously prepends '/' to C:/dos/paths
9912 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9913 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9915 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9920 libname_spec='lib$name'
9928 shlibpath_overrides_runpath=unknown
9930 dynamic_linker="$host_os ld.so"
9931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9932 need_lib_prefix=unknown
9933 hardcode_into_libs=no
9935 # when you set need_version to no, make sure it does not cause -set_version
9936 # flags to be left without arguments
9937 need_version=unknown
9941 version_type=linux # correct to gnu/linux during the next big refactor
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9943 shlibpath_var=LIBPATH
9945 # AIX 3 has no versioning support, so we append a major version to the name.
9946 soname_spec='${libname}${release}${shared_ext}$major'
9950 version_type=linux # correct to gnu/linux during the next big refactor
9953 hardcode_into_libs=yes
9954 if test "$host_cpu" = ia64; then
9955 # AIX 5 supports IA64
9956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9957 shlibpath_var=LD_LIBRARY_PATH
9959 # With GCC up to 2.95.x, collect2 would create an import file
9960 # for dependence libraries. The import file would start with
9961 # the line `#! .'. This would cause the generated library to
9962 # depend on `.', always an invalid library. This was fixed in
9963 # development snapshots of GCC prior to 3.0.
9965 aix4 | aix4.[01] | aix4.[01].*)
9966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9968 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9976 # soname into executable. Probably we can add versioning support to
9977 # collect2, so additional links can be useful in future.
9978 if test "$aix_use_runtimelinking" = yes; then
9979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9980 # instead of lib<name>.a to let people know that these are not
9981 # typical AIX shared libraries.
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 # We preserve .a as extension for shared libraries through AIX4.2
9985 # and later when we are not doing run time linking.
9986 library_names_spec='${libname}${release}.a $libname.a'
9987 soname_spec='${libname}${release}${shared_ext}$major'
9989 shlibpath_var=LIBPATH
9996 # Since July 2007 AmigaOS4 officially supports .so libraries.
9997 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 library_names_spec='$libname.ixlibrary $libname.a'
10002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10003 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10009 library_names_spec='${libname}${shared_ext}'
10010 dynamic_linker="$host_os ld.so"
10011 shlibpath_var=LIBRARY_PATH
10015 version_type=linux # correct to gnu/linux during the next big refactor
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10023 # the default ld.so.conf also contains /usr/contrib/lib and
10024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10025 # libtool to hard-code these into programs
10028 cygwin* | mingw* | pw32* | cegcc*)
10029 version_type=windows
10034 case $GCC,$cc_basename in
10037 library_names_spec='$libname.dll.a'
10038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10039 postinstall_cmds='base_file=`basename \${file}`~
10040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10041 dldir=$destdir/`dirname \$dlpath`~
10042 test -d \$dldir || mkdir -p \$dldir~
10043 $install_prog $dir/$dlname \$dldir/$dlname~
10044 chmod a+x \$dldir/$dlname~
10045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10049 dlpath=$dir/\$dldll~
10051 shlibpath_overrides_runpath=yes
10055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10058 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10061 # MinGW DLLs use traditional 'lib' prefix
10062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10065 # pw32 DLLs use 'pw' prefix rather than 'lib'
10066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10069 dynamic_linker='Win32 ld.exe'
10074 libname_spec='$name'
10075 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10076 library_names_spec='${libname}.dll.lib'
10080 sys_lib_search_path_spec=
10083 for lt_path in $LIB
10086 # Let DOS variable expansion print the short 8.3 style file name.
10087 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10088 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10091 # Convert to MSYS style.
10092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10095 # Convert to unix form, then to dos form, then back to unix form
10096 # but this time dos style (no spaces!) so that the unix form looks
10097 # like /cygdrive/c/PROGRA~1:/cygdr...
10098 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10099 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10100 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10103 sys_lib_search_path_spec="$LIB"
10104 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10105 # It is most probably a Windows format PATH.
10106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10110 # FIXME: find the short name or the path components, as spaces are
10111 # common. (e.g. "Program Files" -> "PROGRA~1")
10115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10116 postinstall_cmds='base_file=`basename \${file}`~
10117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10118 dldir=$destdir/`dirname \$dlpath`~
10119 test -d \$dldir || mkdir -p \$dldir~
10120 $install_prog $dir/$dlname \$dldir/$dlname'
10121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10122 dlpath=$dir/\$dldll~
10124 shlibpath_overrides_runpath=yes
10125 dynamic_linker='Win32 link.exe'
10129 # Assume MSVC wrapper
10130 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10131 dynamic_linker='Win32 ld.exe'
10134 # FIXME: first we should search . and the directory the executable is in
10138 darwin* | rhapsody*)
10139 dynamic_linker="$host_os dyld"
10140 version_type=darwin
10143 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10144 soname_spec='${libname}${release}${major}$shared_ext'
10145 shlibpath_overrides_runpath=yes
10146 shlibpath_var=DYLD_LIBRARY_PATH
10147 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10154 version_type=linux # correct to gnu/linux during the next big refactor
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LD_LIBRARY_PATH
10162 freebsd* | dragonfly*)
10163 # DragonFly does not have aout. When/if they implement a new
10164 # versioning mechanism, adjust this.
10165 if test -x /usr/bin/objformat; then
10166 objformat=`/usr/bin/objformat`
10169 freebsd[23].*) objformat=aout ;;
10170 *) objformat=elf ;;
10173 version_type=freebsd-$objformat
10174 case $version_type in
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10185 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=yes
10190 freebsd3.[01]* | freebsdelf3.[01]*)
10191 shlibpath_overrides_runpath=yes
10192 hardcode_into_libs=yes
10194 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10195 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10196 shlibpath_overrides_runpath=no
10197 hardcode_into_libs=yes
10199 *) # from 4.6 on, and DragonFly
10200 shlibpath_overrides_runpath=yes
10201 hardcode_into_libs=yes
10207 version_type=linux # correct to gnu/linux during the next big refactor
10210 dynamic_linker="$host_os runtime_loader"
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LIBRARY_PATH
10214 shlibpath_overrides_runpath=yes
10215 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10216 hardcode_into_libs=yes
10219 hpux9* | hpux10* | hpux11*)
10220 # Give a soname corresponding to the major version so that dld.sl refuses to
10221 # link against other versions.
10228 hardcode_into_libs=yes
10229 dynamic_linker="$host_os dld.so"
10230 shlibpath_var=LD_LIBRARY_PATH
10231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 if test "X$HPUX_IA64_MODE" = X32; then
10235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10243 hardcode_into_libs=yes
10244 dynamic_linker="$host_os dld.sl"
10245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10254 dynamic_linker="$host_os dld.sl"
10255 shlibpath_var=SHLIB_PATH
10256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10261 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10262 postinstall_cmds='chmod 555 $lib'
10263 # or fails outright, so override atomically:
10264 install_override_mode=555
10268 version_type=linux # correct to gnu/linux during the next big refactor
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 shlibpath_overrides_runpath=no
10276 hardcode_into_libs=yes
10279 irix5* | irix6* | nonstopux*)
10281 nonstopux*) version_type=nonstopux ;;
10283 if test "$lt_cv_prog_gnu_ld" = yes; then
10284 version_type=linux # correct to gnu/linux during the next big refactor
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10294 irix5* | nonstopux*)
10295 libsuff= shlibsuff=
10298 case $LD in # libtool.m4 will add one of these switches to LD
10299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10300 libsuff= shlibsuff= libmagic=32-bit;;
10301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10302 libsuff=32 shlibsuff=N32 libmagic=N32;;
10303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10305 *) libsuff= shlibsuff= libmagic=never-match;;
10309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10310 shlibpath_overrides_runpath=no
10311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10313 hardcode_into_libs=yes
10316 # No shared lib support for Linux oldld, aout, or coff.
10317 linux*oldld* | linux*aout* | linux*coff*)
10321 # This must be glibc/ELF.
10322 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10323 version_type=linux # correct to gnu/linux during the next big refactor
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=no
10332 # Some binutils ld are patched to set DT_RUNPATH
10333 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10334 $as_echo_n "(cached) " >&6
10336 lt_cv_shlibpath_overrides_runpath=no
10337 save_LDFLAGS=$LDFLAGS
10338 save_libdir=$libdir
10339 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10340 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10352 if ac_fn_c_try_link "$LINENO"; then :
10353 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10354 lt_cv_shlibpath_overrides_runpath=yes
10357 rm -f core conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359 LDFLAGS=$save_LDFLAGS
10360 libdir=$save_libdir
10364 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10366 # This implies no fast_install, which is unacceptable.
10367 # Some rework will be needed to allow for fast_install
10368 # before this can be enabled.
10369 hardcode_into_libs=yes
10371 # Append ld.so.conf contents to the search path
10372 if test -f /etc/ld.so.conf; then
10373 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' ' '`
10374 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10377 # We used to test for /lib/ld.so.1 and disable shared libraries on
10378 # powerpc, because MkLinux only supported shared libraries with the
10379 # GNU dynamic linker. Since this was broken with cross compilers,
10380 # most powerpc-linux boxes support dynamic linking these days and
10381 # people can always --disable-shared, the test was removed, and we
10382 # assume the GNU/Linux dynamic linker is in use.
10383 dynamic_linker='GNU/Linux ld.so'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 dynamic_linker='NetBSD ld.elf_so'
10402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10405 dynamic_linker='NetBSD (a.out) ld.so'
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 dynamic_linker='NetBSD ld.elf_so'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=yes
10413 hardcode_into_libs=yes
10417 version_type=linux # correct to gnu/linux during the next big refactor
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=yes
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10431 hardcode_into_libs=yes
10432 dynamic_linker='ldqnx.so'
10437 sys_lib_dlsearch_path_spec="/usr/lib"
10439 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10441 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10442 *) need_version=no ;;
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10449 openbsd2.[89] | openbsd2.[89].*)
10450 shlibpath_overrides_runpath=no
10453 shlibpath_overrides_runpath=yes
10457 shlibpath_overrides_runpath=yes
10462 libname_spec='$name'
10465 library_names_spec='$libname${shared_ext} $libname.a'
10466 dynamic_linker='OS/2 ld.exe'
10467 shlibpath_var=LIBPATH
10470 osf3* | osf4* | osf5*)
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10486 version_type=linux # correct to gnu/linux during the next big refactor
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=yes
10493 hardcode_into_libs=yes
10494 # ldd complains unless libraries are executable
10495 postinstall_cmds='chmod +x $lib'
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10504 if test "$with_gnu_ld" = yes; then
10511 version_type=linux # correct to gnu/linux during the next big refactor
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 case $host_vendor in
10517 shlibpath_overrides_runpath=no
10519 runpath_var=LD_RUN_PATH
10527 shlibpath_overrides_runpath=no
10528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10534 if test -d /usr/nec ;then
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10537 soname_spec='$libname${shared_ext}.$major'
10538 shlibpath_var=LD_LIBRARY_PATH
10542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10543 version_type=freebsd-elf
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10551 if test "$with_gnu_ld" = yes; then
10552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10554 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10561 sys_lib_dlsearch_path_spec='/usr/lib'
10565 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10566 version_type=linux # correct to gnu/linux during the next big refactor
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=no
10572 hardcode_into_libs=yes
10576 version_type=linux # correct to gnu/linux during the next big refactor
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10587 $as_echo "$dynamic_linker" >&6; }
10588 test "$dynamic_linker" = no && can_build_shared=no
10590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10591 if test "$GCC" = yes; then
10592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10595 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10596 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10598 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10599 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10696 if test -n "$hardcode_libdir_flag_spec" ||
10697 test -n "$runpath_var" ||
10698 test "X$hardcode_automatic" = "Xyes" ; then
10700 # We can hardcode non-existent directories.
10701 if test "$hardcode_direct" != no &&
10702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10703 # have to relink, otherwise we might link with an installed library
10704 # when we should be linking with a yet-to-be-installed one
10705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10706 test "$hardcode_minus_L" != no; then
10707 # Linking always hardcodes the temporary library directory.
10708 hardcode_action=relink
10710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10711 hardcode_action=immediate
10714 # We cannot hardcode anything, or else we can only hardcode existing
10716 hardcode_action=unsupported
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10719 $as_echo "$hardcode_action" >&6; }
10721 if test "$hardcode_action" = relink ||
10722 test "$inherit_rpath" = yes; then
10723 # Fast installation is not supported
10724 enable_fast_install=no
10725 elif test "$shlibpath_overrides_runpath" = yes ||
10726 test "$enable_shared" = no; then
10727 # Fast installation is not necessary
10728 enable_fast_install=needless
10736 if test "x$enable_dlopen" != xyes; then
10737 enable_dlopen=unknown
10738 enable_dlopen_self=unknown
10739 enable_dlopen_self_static=unknown
10746 lt_cv_dlopen="load_add_on"
10748 lt_cv_dlopen_self=yes
10751 mingw* | pw32* | cegcc*)
10752 lt_cv_dlopen="LoadLibrary"
10757 lt_cv_dlopen="dlopen"
10762 # if libdl is installed we need to link against it
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10765 if ${ac_cv_lib_dl_dlopen+:} false; then :
10766 $as_echo_n "(cached) " >&6
10768 ac_check_lib_save_LIBS=$LIBS
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10773 /* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
10788 if ac_fn_c_try_link "$LINENO"; then :
10789 ac_cv_lib_dl_dlopen=yes
10791 ac_cv_lib_dl_dlopen=no
10793 rm -f core conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10799 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10803 lt_cv_dlopen="dyld"
10805 lt_cv_dlopen_self=yes
10812 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10813 if test "x$ac_cv_func_shl_load" = xyes; then :
10814 lt_cv_dlopen="shl_load"
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10817 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10818 if ${ac_cv_lib_dld_shl_load+:} false; then :
10819 $as_echo_n "(cached) " >&6
10821 ac_check_lib_save_LIBS=$LIBS
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 /* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10836 return shl_load ();
10841 if ac_fn_c_try_link "$LINENO"; then :
10842 ac_cv_lib_dld_shl_load=yes
10844 ac_cv_lib_dld_shl_load=no
10846 rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10851 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10852 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10855 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10856 if test "x$ac_cv_func_dlopen" = xyes; then :
10857 lt_cv_dlopen="dlopen"
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10861 if ${ac_cv_lib_dl_dlopen+:} false; then :
10862 $as_echo_n "(cached) " >&6
10864 ac_check_lib_save_LIBS=$LIBS
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10884 if ac_fn_c_try_link "$LINENO"; then :
10885 ac_cv_lib_dl_dlopen=yes
10887 ac_cv_lib_dl_dlopen=no
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10895 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10899 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10900 if ${ac_cv_lib_svld_dlopen+:} false; then :
10901 $as_echo_n "(cached) " >&6
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_svld_dlopen=yes
10926 ac_cv_lib_svld_dlopen=no
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10933 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10934 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10938 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10939 if ${ac_cv_lib_dld_dld_link+:} false; then :
10940 $as_echo_n "(cached) " >&6
10942 ac_check_lib_save_LIBS=$LIBS
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 /* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
10957 return dld_link ();
10962 if ac_fn_c_try_link "$LINENO"; then :
10963 ac_cv_lib_dld_dld_link=yes
10965 ac_cv_lib_dld_dld_link=no
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10972 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10973 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10974 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10995 if test "x$lt_cv_dlopen" != xno; then
11001 case $lt_cv_dlopen in
11003 save_CPPFLAGS="$CPPFLAGS"
11004 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11006 save_LDFLAGS="$LDFLAGS"
11007 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11010 LIBS="$lt_cv_dlopen_libs $LIBS"
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11013 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11014 if ${lt_cv_dlopen_self+:} false; then :
11015 $as_echo_n "(cached) " >&6
11017 if test "$cross_compiling" = yes; then :
11018 lt_cv_dlopen_self=cross
11020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11021 lt_status=$lt_dlunknown
11022 cat > conftest.$ac_ext <<_LT_EOF
11023 #line $LINENO "configure"
11024 #include "confdefs.h"
11033 # define LT_DLGLOBAL RTLD_GLOBAL
11036 # define LT_DLGLOBAL DL_GLOBAL
11038 # define LT_DLGLOBAL 0
11042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11043 find out it does not work in some platform. */
11044 #ifndef LT_DLLAZY_OR_NOW
11046 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11049 # define LT_DLLAZY_OR_NOW DL_LAZY
11052 # define LT_DLLAZY_OR_NOW RTLD_NOW
11055 # define LT_DLLAZY_OR_NOW DL_NOW
11057 # define LT_DLLAZY_OR_NOW 0
11064 /* When -fvisbility=hidden is used, assume the code has been annotated
11065 correspondingly for the symbols needed. */
11066 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11067 int fnord () __attribute__((visibility("default")));
11070 int fnord () { return 42; }
11073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11074 int status = $lt_dlunknown;
11078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11082 else puts (dlerror ());
11084 /* dlclose (self); */
11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11093 (eval $ac_link) 2>&5
11095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11097 (./conftest; exit; ) >&5 2>/dev/null
11099 case x$lt_status in
11100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11105 # compilation failed
11106 lt_cv_dlopen_self=no
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11114 $as_echo "$lt_cv_dlopen_self" >&6; }
11116 if test "x$lt_cv_dlopen_self" = xyes; then
11117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11119 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11120 if ${lt_cv_dlopen_self_static+:} false; then :
11121 $as_echo_n "(cached) " >&6
11123 if test "$cross_compiling" = yes; then :
11124 lt_cv_dlopen_self_static=cross
11126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127 lt_status=$lt_dlunknown
11128 cat > conftest.$ac_ext <<_LT_EOF
11129 #line $LINENO "configure"
11130 #include "confdefs.h"
11139 # define LT_DLGLOBAL RTLD_GLOBAL
11142 # define LT_DLGLOBAL DL_GLOBAL
11144 # define LT_DLGLOBAL 0
11148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149 find out it does not work in some platform. */
11150 #ifndef LT_DLLAZY_OR_NOW
11152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11155 # define LT_DLLAZY_OR_NOW DL_LAZY
11158 # define LT_DLLAZY_OR_NOW RTLD_NOW
11161 # define LT_DLLAZY_OR_NOW DL_NOW
11163 # define LT_DLLAZY_OR_NOW 0
11170 /* When -fvisbility=hidden is used, assume the code has been annotated
11171 correspondingly for the symbols needed. */
11172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11173 int fnord () __attribute__((visibility("default")));
11176 int fnord () { return 42; }
11179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11180 int status = $lt_dlunknown;
11184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11188 else puts (dlerror ());
11190 /* dlclose (self); */
11198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11199 (eval $ac_link) 2>&5
11201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11203 (./conftest; exit; ) >&5 2>/dev/null
11205 case x$lt_status in
11206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11208 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11211 # compilation failed
11212 lt_cv_dlopen_self_static=no
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11220 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11223 CPPFLAGS="$save_CPPFLAGS"
11224 LDFLAGS="$save_LDFLAGS"
11229 case $lt_cv_dlopen_self in
11230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11231 *) enable_dlopen_self=unknown ;;
11234 case $lt_cv_dlopen_self_static in
11235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11236 *) enable_dlopen_self_static=unknown ;;
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11259 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11260 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11262 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264 $as_echo "yes" >&6; }
11266 # FIXME - insert some real tests, host_os isn't really good enough
11269 if test -n "$STRIP" ; then
11270 striplib="$STRIP -x"
11271 old_striplib="$STRIP -S"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11273 $as_echo "yes" >&6; }
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11297 # Report which library types will actually be built
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11299 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11301 $as_echo "$can_build_shared" >&6; }
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11304 $as_echo_n "checking whether to build shared libraries... " >&6; }
11305 test "$can_build_shared" = "no" && enable_shared=no
11307 # On AIX, shared libraries and static libraries use the same namespace, and
11308 # are all built from PIC.
11311 test "$enable_shared" = yes && enable_static=no
11312 if test -n "$RANLIB"; then
11313 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11314 postinstall_cmds='$RANLIB $lib'
11319 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11320 test "$enable_shared" = yes && enable_static=no
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11325 $as_echo "$enable_shared" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11328 $as_echo_n "checking whether to build static libraries... " >&6; }
11329 # Make sure either enable_shared or enable_static is yes.
11330 test "$enable_shared" = yes || enable_static=yes
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11332 $as_echo "$enable_static" >&6; }
11339 ac_cpp='$CPP $CPPFLAGS'
11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11360 ac_config_commands="$ac_config_commands libtool"
11365 # Only expand once:
11370 # checks for native programs to generate building tool
11372 if test ${cross_compiling} = yes; then
11373 # Extract the first word of "${build}-gcc", so it can be a program name with args.
11374 set dummy ${build}-gcc; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 $as_echo_n "checking for $ac_word... " >&6; }
11377 if ${ac_cv_prog_CC_BUILD+:} false; then :
11378 $as_echo_n "(cached) " >&6
11380 if test -n "$CC_BUILD"; then
11381 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_CC_BUILD="${build}-gcc"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 CC_BUILD=$ac_cv_prog_CC_BUILD
11401 if test -n "$CC_BUILD"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
11403 $as_echo "$CC_BUILD" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11410 test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
11411 set dummy gcc; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if ${ac_cv_prog_CC_BUILD+:} false; then :
11415 $as_echo_n "(cached) " >&6
11417 if test -n "$CC_BUILD"; then
11418 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427 ac_cv_prog_CC_BUILD="gcc"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 CC_BUILD=$ac_cv_prog_CC_BUILD
11438 if test -n "$CC_BUILD"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
11440 $as_echo "$CC_BUILD" >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
11448 set dummy cc; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_prog_CC_BUILD+:} false; then :
11452 $as_echo_n "(cached) " >&6
11454 if test -n "$CC_BUILD"; then
11455 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
11457 ac_prog_rejected=no
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11462 test -z "$as_dir" && as_dir=.
11463 for ac_exec_ext in '' $ac_executable_extensions; do
11464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11465 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11466 ac_prog_rejected=yes
11469 ac_cv_prog_CC_BUILD="cc"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 if test $ac_prog_rejected = yes; then
11478 # We found a bogon in the path, so make sure we never use it.
11479 set dummy $ac_cv_prog_CC_BUILD
11481 if test $# != 0; then
11482 # We chose a different compiler from the bogus one.
11483 # However, it has the same basename, so the bogon will be chosen
11484 # first if we set CC_BUILD to just the basename; use the full file name.
11486 ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
11491 CC_BUILD=$ac_cv_prog_CC_BUILD
11492 if test -n "$CC_BUILD"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
11494 $as_echo "$CC_BUILD" >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11501 test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
11504 $as_echo_n "checking for suffix of native executables... " >&6; }
11505 rm -f a.* b.* a_out.exe conftest.*
11506 echo > conftest.c "int main() { return 0;}"
11507 ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
11509 if test -x a.out -o -x b.out -o -x conftest; then
11511 elif test -x a_out.exe -o -x conftest.exe; then
11512 EXEEXT_BUILD=".exe"
11513 elif test -x conftest.*; then
11514 EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
11516 rm -f a.* b.* a_out.exe conftest.*
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
11518 $as_echo "$EXEEXT_BUILD" >&6; }
11521 EXEEXT_BUILD=${EXEEXT}
11528 # auxiliary programs
11530 # Extract the first word of "rmdir", so it can be a program name with args.
11531 set dummy rmdir; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if ${ac_cv_prog_RMDIR+:} false; then :
11535 $as_echo_n "(cached) " >&6
11537 if test -n "$RMDIR"; then
11538 ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11547 ac_cv_prog_RMDIR="rmdir"
11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 RMDIR=$ac_cv_prog_RMDIR
11558 if test -n "$RMDIR"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
11560 $as_echo "$RMDIR" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11569 # Since this file will be finally moved to another directory we make
11570 # the path of the install script absolute. This small code snippet has
11571 # been taken from automake's `ylwrap' script.
11573 # Find a good install program. We prefer a C program (faster),
11574 # so one script is as good as another. But avoid the broken or
11575 # incompatible versions:
11576 # SysV /etc/install, /usr/sbin/install
11577 # SunOS /usr/etc/install
11578 # IRIX /sbin/install
11580 # AmigaOS /C/install, which installs bootblocks on floppy discs
11581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11584 # OS/2's system install, which has a completely different semantic
11585 # ./install, which can be erroneously created by make from ./install.sh.
11586 # Reject install programs that cannot install multiple files.
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11588 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11589 if test -z "$INSTALL"; then
11590 if ${ac_cv_path_install+:} false; then :
11591 $as_echo_n "(cached) " >&6
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11597 test -z "$as_dir" && as_dir=.
11598 # Account for people who put trailing slashes in PATH elements.
11599 case $as_dir/ in #((
11600 ./ | .// | /[cC]/* | \
11601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11602 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11605 # OSF1 and SCO ODT 3.0 have their own names for install.
11606 # Don't use installbsd from OSF since it installs stuff as root
11608 for ac_prog in ginstall scoinst install; do
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11611 if test $ac_prog = install &&
11612 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11613 # AIX install. It has an incompatible calling convention.
11615 elif test $ac_prog = install &&
11616 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11617 # program-specific install script used by HP pwplus--don't use.
11620 rm -rf conftest.one conftest.two conftest.dir
11621 echo one > conftest.one
11622 echo two > conftest.two
11624 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11625 test -s conftest.one && test -s conftest.two &&
11626 test -s conftest.dir/conftest.one &&
11627 test -s conftest.dir/conftest.two
11629 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11642 rm -rf conftest.one conftest.two conftest.dir
11645 if test "${ac_cv_path_install+set}" = set; then
11646 INSTALL=$ac_cv_path_install
11648 # As a last resort, use the slow shell script. Don't cache a
11649 # value for INSTALL within a source directory, because that will
11650 # break other packages using the cache if that directory is
11651 # removed, or if the value is a relative name.
11652 INSTALL=$ac_install_sh
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11656 $as_echo "$INSTALL" >&6; }
11658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11659 # It thinks the first close brace ends the variable substitution.
11660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11670 INSTALL="`pwd`/$INSTALL"
11675 # checks for header files
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11678 $as_echo_n "checking for ANSI C header files... " >&6; }
11679 if ${ac_cv_header_stdc+:} false; then :
11680 $as_echo_n "(cached) " >&6
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 #include <stdlib.h>
11685 #include <stdarg.h>
11686 #include <string.h>
11697 if ac_fn_c_try_compile "$LINENO"; then :
11698 ac_cv_header_stdc=yes
11700 ac_cv_header_stdc=no
11702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704 if test $ac_cv_header_stdc = yes; then
11705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708 #include <string.h>
11711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11712 $EGREP "memchr" >/dev/null 2>&1; then :
11715 ac_cv_header_stdc=no
11721 if test $ac_cv_header_stdc = yes; then
11722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11725 #include <stdlib.h>
11728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11729 $EGREP "free" >/dev/null 2>&1; then :
11732 ac_cv_header_stdc=no
11738 if test $ac_cv_header_stdc = yes; then
11739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11740 if test "$cross_compiling" = yes; then :
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11746 #include <stdlib.h>
11747 #if ((' ' & 0x0FF) == 0x020)
11748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11751 # define ISLOWER(c) \
11752 (('a' <= (c) && (c) <= 'i') \
11753 || ('j' <= (c) && (c) <= 'r') \
11754 || ('s' <= (c) && (c) <= 'z'))
11755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11763 for (i = 0; i < 256; i++)
11764 if (XOR (islower (i), ISLOWER (i))
11765 || toupper (i) != TOUPPER (i))
11770 if ac_fn_c_try_run "$LINENO"; then :
11773 ac_cv_header_stdc=no
11775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11776 conftest.$ac_objext conftest.beam conftest.$ac_ext
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11782 $as_echo "$ac_cv_header_stdc" >&6; }
11783 if test $ac_cv_header_stdc = yes; then
11785 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11789 for ac_header in fcntl.h unistd.h
11791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11794 cat >>confdefs.h <<_ACEOF
11795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11804 # checks for typedefs, structures, and compiler characteristics
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11807 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11808 if ${ac_cv_c_const+:} false; then :
11809 $as_echo_n "(cached) " >&6
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11818 #ifndef __cplusplus
11819 /* Ultrix mips cc rejects this sort of thing. */
11820 typedef int charset[2];
11821 const charset cs = { 0, 0 };
11822 /* SunOS 4.1.1 cc rejects this. */
11823 char const *const *pcpcc;
11825 /* NEC SVR4.0.2 mips cc rejects this. */
11826 struct point {int x, y;};
11827 static struct point const zero = {0,0};
11828 /* AIX XL C 1.02.0.0 rejects this.
11829 It does not let you subtract one const X* pointer from another in
11830 an arm of an if-expression whose if-part is not a constant
11832 const char *g = "string";
11833 pcpcc = &g + (g ? g-g : 0);
11834 /* HPUX 7.0 cc rejects these. */
11836 ppc = (char**) pcpcc;
11837 pcpcc = (char const *const *) ppc;
11838 { /* SCO 3.2v4 cc rejects this sort of thing. */
11841 char const *s = 0 ? (char *) 0 : (char const *) 0;
11846 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11847 int x[] = {25, 17};
11848 const int *foo = &x[0];
11851 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11852 typedef const int *iptr;
11856 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11857 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11858 struct s { int j; const int *ap[3]; } bx;
11859 struct s *b = &bx; b->j = 5;
11861 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11862 const int foo = 10;
11863 if (!foo) return 0;
11865 return !cs[0] && !zero.x;
11872 if ac_fn_c_try_compile "$LINENO"; then :
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11880 $as_echo "$ac_cv_c_const" >&6; }
11881 if test $ac_cv_c_const = no; then
11883 $as_echo "#define const /**/" >>confdefs.h
11887 # The cast to long int works around a bug in the HP C Compiler
11888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11890 # This bug is HP SR number 8606223364.
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11892 $as_echo_n "checking size of int... " >&6; }
11893 if ${ac_cv_sizeof_int+:} false; then :
11894 $as_echo_n "(cached) " >&6
11896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11899 if test "$ac_cv_type_int" = yes; then
11900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902 as_fn_error 77 "cannot compute sizeof (int)
11903 See \`config.log' for more details" "$LINENO" 5; }
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11911 $as_echo "$ac_cv_sizeof_int" >&6; }
11915 cat >>confdefs.h <<_ACEOF
11916 #define SIZEOF_INT $ac_cv_sizeof_int
11920 # The cast to long int works around a bug in the HP C Compiler
11921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11923 # This bug is HP SR number 8606223364.
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11925 $as_echo_n "checking size of long... " >&6; }
11926 if ${ac_cv_sizeof_long+:} false; then :
11927 $as_echo_n "(cached) " >&6
11929 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11932 if test "$ac_cv_type_long" = yes; then
11933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11935 as_fn_error 77 "cannot compute sizeof (long)
11936 See \`config.log' for more details" "$LINENO" 5; }
11938 ac_cv_sizeof_long=0
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11944 $as_echo "$ac_cv_sizeof_long" >&6; }
11948 cat >>confdefs.h <<_ACEOF
11949 #define SIZEOF_LONG $ac_cv_sizeof_long
11955 # check whether cpp computation of size of int and long in ftconfig.in works
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.in works" >&5
11958 $as_echo_n "checking whether cpp computation of bit length in ftconfig.in works... " >&6; }
11959 orig_CPPFLAGS="${CPPFLAGS}"
11960 CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
11963 for f in ft2build.h ftoption.h ftstdlib.h; do
11964 if test ! -f $f; then
11965 ac_clean_files="$ac_clean_files $f"
11970 cat > conftest.c <<\_ACEOF
11971 #include <limits.h>
11972 #define FT_CONFIG_OPTIONS_H "ftoption.h"
11973 #define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
11974 #define FT_UINT_MAX UINT_MAX
11975 #define FT_ULONG_MAX ULONG_MAX
11976 #include "ftconfig.in"
11978 echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
11979 echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
11980 echo >> conftest.c "#endif"
11981 echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
11982 echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
11983 echo >> conftest.c "#endif"
11985 ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
11986 eval `cat conftest.sh`
11987 rm -f conftest.* $ac_clean_files
11989 if test x != "x${ac_cpp_ft_sizeof_int}" \
11990 -a x != x"${ac_cpp_ft_sizeof_long}"; then
11991 unset ft_use_autoconf_sizeof_types
11993 ft_use_autoconf_sizeof_types=yes
11996 # Check whether --enable-biarch-config was given.
11997 if test "${enable_biarch_config+set}" = set; then :
11998 enableval=$enable_biarch_config;
12002 case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
12005 $as_echo "broken but use it" >&6; }
12006 unset ft_use_autoconf_sizeof_types
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
12010 $as_echo "works but ignore it" >&6; }
12011 ft_use_autoconf_sizeof_types=yes
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12015 $as_echo "yes" >&6; }
12016 unset ft_use_autoconf_sizeof_types
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12021 ft_use_autoconf_sizeof_types=yes
12025 if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
12027 $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES /**/" >>confdefs.h
12031 CPPFLAGS="${orig_CPPFLAGS}"
12034 # checks for library functions
12036 # Here we check whether we can use our mmap file component.
12038 # Check whether --enable-mmap was given.
12039 if test "${enable_mmap+set}" = set; then :
12040 enableval=$enable_mmap; enable_mmap="no"
12045 if test "x${enable_mmap}" != "xno"; then
12049 for ac_header in $ac_header_list
12051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12052 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12054 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12055 cat >>confdefs.h <<_ACEOF
12056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070 for ac_func in getpagesize
12072 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12073 if test "x$ac_cv_func_getpagesize" = xyes; then :
12074 cat >>confdefs.h <<_ACEOF
12075 #define HAVE_GETPAGESIZE 1
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12082 $as_echo_n "checking for working mmap... " >&6; }
12083 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12084 $as_echo_n "(cached) " >&6
12086 if test "$cross_compiling" = yes; then :
12087 ac_cv_func_mmap_fixed_mapped=no
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12091 $ac_includes_default
12092 /* malloc might have been renamed as rpl_malloc. */
12095 /* Thanks to Mike Haertel and Jim Avera for this test.
12096 Here is a matrix of mmap possibilities:
12097 mmap private not fixed
12098 mmap private fixed at somewhere currently unmapped
12099 mmap private fixed at somewhere already mapped
12100 mmap shared not fixed
12101 mmap shared fixed at somewhere currently unmapped
12102 mmap shared fixed at somewhere already mapped
12103 For private mappings, we should verify that changes cannot be read()
12104 back from the file, nor mmap's back from the file at a different
12105 address. (There have been systems where private was not correctly
12106 implemented like the infamous i386 svr4.0, and systems where the
12107 VM page cache was not coherent with the file system buffer cache
12108 like early versions of FreeBSD and possibly contemporary NetBSD.)
12109 For shared mappings, we should conversely verify that changes get
12110 propagated back to all the places they're supposed to be.
12112 Grep wants private fixed already mapped.
12113 The main things grep needs to know about mmap are:
12114 * does it exist and is it safe to write into the mmap'd area
12115 * how to use it (BSD variants) */
12118 #include <sys/mman.h>
12120 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12124 /* This mess was copied from the GNU getpagesize.h. */
12125 #ifndef HAVE_GETPAGESIZE
12126 # ifdef _SC_PAGESIZE
12127 # define getpagesize() sysconf(_SC_PAGESIZE)
12128 # else /* no _SC_PAGESIZE */
12129 # ifdef HAVE_SYS_PARAM_H
12130 # include <sys/param.h>
12131 # ifdef EXEC_PAGESIZE
12132 # define getpagesize() EXEC_PAGESIZE
12133 # else /* no EXEC_PAGESIZE */
12135 # define getpagesize() NBPG * CLSIZE
12138 # endif /* no CLSIZE */
12139 # else /* no NBPG */
12141 # define getpagesize() NBPC
12142 # else /* no NBPC */
12144 # define getpagesize() PAGESIZE
12145 # endif /* PAGESIZE */
12146 # endif /* no NBPC */
12147 # endif /* no NBPG */
12148 # endif /* no EXEC_PAGESIZE */
12149 # else /* no HAVE_SYS_PARAM_H */
12150 # define getpagesize() 8192 /* punt totally */
12151 # endif /* no HAVE_SYS_PARAM_H */
12152 # endif /* no _SC_PAGESIZE */
12154 #endif /* no HAVE_GETPAGESIZE */
12159 char *data, *data2, *data3;
12160 const char *cdata2;
12164 pagesize = getpagesize ();
12166 /* First, make a file with some known garbage in it. */
12167 data = (char *) malloc (pagesize);
12170 for (i = 0; i < pagesize; ++i)
12171 *(data + i) = rand ();
12173 fd = creat ("conftest.mmap", 0600);
12176 if (write (fd, data, pagesize) != pagesize)
12180 /* Next, check that the tail of a page is zero-filled. File must have
12181 non-zero length, otherwise we risk SIGBUS for entire page. */
12182 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12186 if (write (fd2, cdata2, 1) != 1)
12188 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12189 if (data2 == MAP_FAILED)
12191 for (i = 0; i < pagesize; ++i)
12195 if (munmap (data2, pagesize))
12198 /* Next, try to mmap the file at a fixed address which already has
12199 something else allocated at it. If we can, also make sure that
12200 we see the same garbage. */
12201 fd = open ("conftest.mmap", O_RDWR);
12204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12207 for (i = 0; i < pagesize; ++i)
12208 if (*(data + i) != *(data2 + i))
12211 /* Finally, make sure that changes to the mapped area do not
12212 percolate back to the file as seen by read(). (This is a bug on
12213 some variants of i386 svr4.0.) */
12214 for (i = 0; i < pagesize; ++i)
12215 *(data2 + i) = *(data2 + i) + 1;
12216 data3 = (char *) malloc (pagesize);
12219 if (read (fd, data3, pagesize) != pagesize)
12221 for (i = 0; i < pagesize; ++i)
12222 if (*(data + i) != *(data3 + i))
12228 if ac_fn_c_try_run "$LINENO"; then :
12229 ac_cv_func_mmap_fixed_mapped=yes
12231 ac_cv_func_mmap_fixed_mapped=no
12233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12234 conftest.$ac_objext conftest.beam conftest.$ac_ext
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12239 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12242 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12245 rm -f conftest.mmap conftest.txt
12248 if test "x${enable_mmap}" = "xno" \
12249 -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
12250 FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
12252 FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
12254 ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
12256 #ifdef HAVE_UNISTD_H
12257 #include <unistd.h>
12259 #include <sys/mman.h>
12263 if test "x$ac_cv_have_decl_munmap" = xyes; then :
12269 cat >>confdefs.h <<_ACEOF
12270 #define HAVE_DECL_MUNMAP $ac_have_decl
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
12275 $as_echo_n "checking for munmap's first parameter type... " >&6; }
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12281 #include <unistd.h>
12282 #include <sys/mman.h>
12283 int munmap(void *, size_t);
12288 if ac_fn_c_try_compile "$LINENO"; then :
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
12290 $as_echo "void *" >&6; }
12292 $as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
12296 $as_echo "char *" >&6; }
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 for ac_func in memcpy memmove
12305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12306 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12307 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12308 cat >>confdefs.h <<_ACEOF
12309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12317 # get compiler flags right
12319 # We try to make the compiler work for C89-strict source. Even if the
12320 # C compiler is gcc and C89 flags are available, some system headers
12321 # (e.g., Android Bionic libc) are broken in C89 mode. We have to check
12322 # whether the compilation finishes successfully.
12324 # Due to bugs in mingwrt 4.0.3 we don't use `-ansi' for MinGW.
12326 # To avoid zillions of
12328 # ISO C90 does not support 'long long'
12330 # warnings, we disable `-pedantic' for gcc version < 4.6.
12332 if test "x$GCC" = xyes; then
12336 XX_ANSIFLAGS="-pedantic"
12339 GCC_VERSION=`$CC -dumpversion`
12340 GCC_MAJOR=`echo "$GCC_VERSION" | sed 's/\([^.][^.]*\).*/\1/'`
12341 GCC_MINOR=`echo "$GCC_VERSION" | sed 's/[^.][^.]*.\([^.][^.]*\).*/\1/'`
12343 XX_PEDANTIC=-pedantic
12344 if test $GCC_MAJOR -lt 4; then
12347 if test $GCC_MAJOR -eq 4 -a $GCC_MINOR -lt 6; then
12353 for a in $XX_PEDANTIC -ansi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc compiler flag ${a} to assure ANSI C works correctly" >&5
12356 $as_echo_n "checking gcc compiler flag ${a} to assure ANSI C works correctly... " >&6; }
12357 orig_CFLAGS="${CFLAGS}"
12358 CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, add it to XX_ANSIFLAGS" >&5
12384 $as_echo "ok, add it to XX_ANSIFLAGS" >&6; }
12385 XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 CFLAGS="${orig_CFLAGS}"
12400 XX_CFLAGS="-std1 -g3"
12413 # All library tests below try `pkg-config' first. If that fails, a function
12414 # from the library is tested in the traditional autoconf way (zlib, bzip2),
12415 # or a config script is called (libpng).
12417 # The `xxx_reqpriv' variables are for the `Requires.private' field in
12418 # `freetype2.pc'. The `xxx_libpriv' variables are for the `Libs.private'
12419 # field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
12421 # The `xxx_libstaticconf' variables are for the `freetype-config' script.
12423 # Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
12424 # output variables `XXX_CFLAGS' and `XXX_LIBS'. In case one or both are set
12425 # for a library by the user, no entry for this library is added to
12426 # `Requires.private'. Instead, it gets added to `Libs.private'
12429 # check for system zlib
12432 # Check whether --with-zlib was given.
12433 if test "${with_zlib+set}" = set; then :
12434 withval=$with_zlib;
12441 if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
12445 if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
12446 if test -n "$PKG_CONFIG" && \
12447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
12448 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
12450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451 test $ac_status = 0; }; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
12458 $as_echo_n "checking for ZLIB... " >&6; }
12460 if test -n "$ZLIB_CFLAGS"; then
12461 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
12462 elif test -n "$PKG_CONFIG"; then
12463 if test -n "$PKG_CONFIG" && \
12464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
12465 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
12467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12468 test $ac_status = 0; }; then
12469 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
12470 test "x$?" != "x0" && pkg_failed=yes
12477 if test -n "$ZLIB_LIBS"; then
12478 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
12479 elif test -n "$PKG_CONFIG"; then
12480 if test -n "$PKG_CONFIG" && \
12481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
12482 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
12484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12485 test $ac_status = 0; }; then
12486 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
12487 test "x$?" != "x0" && pkg_failed=yes
12497 if test $pkg_failed = yes; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12502 _pkg_short_errors_supported=yes
12504 _pkg_short_errors_supported=no
12506 if test $_pkg_short_errors_supported = yes; then
12507 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
12509 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
12511 # Put the nasty error message in config.log where it belongs
12512 echo "$ZLIB_PKG_ERRORS" >&5
12515 elif test $pkg_failed = untried; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12520 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
12521 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12523 $as_echo "yes" >&6; }
12524 have_zlib="yes (pkg-config)"
12527 if test $have_zlib_pkg = yes; then
12529 zlib_reqpriv="$zlib_pkg"
12531 zlib_libstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
12535 if test "$have_zlib" != no; then
12536 # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
12537 zlib_libpriv="$ZLIB_LIBS"
12538 zlib_libstaticconf="$ZLIB_LIBS"
12539 have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
12541 # fall back to standard autoconf test
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
12543 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
12544 if ${ac_cv_lib_z_gzsetparams+:} false; then :
12545 $as_echo_n "(cached) " >&6
12547 ac_check_lib_save_LIBS=$LIBS
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12552 /* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12558 char gzsetparams ();
12562 return gzsetparams ();
12567 if ac_fn_c_try_link "$LINENO"; then :
12568 ac_cv_lib_z_gzsetparams=yes
12570 ac_cv_lib_z_gzsetparams=no
12572 rm -f core conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
12577 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
12578 if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
12579 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12580 if test "x$ac_cv_header_zlib_h" = xyes; then :
12581 have_zlib="yes (autoconf test)"
12583 zlib_libstaticconf="$zlib_libpriv"
12584 ZLIB_LIBS="$zlib_libpriv"
12594 if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
12595 as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
12599 # check for system libbz2
12602 # Check whether --with-bzip2 was given.
12603 if test "${with_bzip2+set}" = set; then :
12604 withval=$with_bzip2;
12611 if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
12615 if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
12616 if test -n "$PKG_CONFIG" && \
12617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
12618 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; }; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
12628 $as_echo_n "checking for BZIP2... " >&6; }
12630 if test -n "$BZIP2_CFLAGS"; then
12631 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
12632 elif test -n "$PKG_CONFIG"; then
12633 if test -n "$PKG_CONFIG" && \
12634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
12635 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
12637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12638 test $ac_status = 0; }; then
12639 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
12640 test "x$?" != "x0" && pkg_failed=yes
12647 if test -n "$BZIP2_LIBS"; then
12648 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
12649 elif test -n "$PKG_CONFIG"; then
12650 if test -n "$PKG_CONFIG" && \
12651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
12652 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
12657 test "x$?" != "x0" && pkg_failed=yes
12667 if test $pkg_failed = yes; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12672 _pkg_short_errors_supported=yes
12674 _pkg_short_errors_supported=no
12676 if test $_pkg_short_errors_supported = yes; then
12677 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
12679 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
12681 # Put the nasty error message in config.log where it belongs
12682 echo "$BZIP2_PKG_ERRORS" >&5
12685 elif test $pkg_failed = untried; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12690 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
12691 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12694 have_bzip2="yes (pkg-config)"
12697 if test $have_bzip2_pkg = yes; then
12699 bzip2_reqpriv="$bzip2_pkg"
12701 bzip2_libstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
12705 if test "$have_bzip2" != no; then
12706 # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
12707 bzip2_libpriv="$BZIP2_LIBS"
12708 bzip2_libstaticconf="$BZIP2_LIBS"
12709 have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
12711 # fall back to standard autoconf test
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
12713 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
12714 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
12715 $as_echo_n "(cached) " >&6
12717 ac_check_lib_save_LIBS=$LIBS
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12722 /* Override any GCC internal prototype to avoid an error.
12723 Use char because int might match the return type of a GCC
12724 builtin and then its argument prototype would still apply. */
12728 char BZ2_bzDecompress ();
12732 return BZ2_bzDecompress ();
12737 if ac_fn_c_try_link "$LINENO"; then :
12738 ac_cv_lib_bz2_BZ2_bzDecompress=yes
12740 ac_cv_lib_bz2_BZ2_bzDecompress=no
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
12747 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
12748 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
12749 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
12750 if test "x$ac_cv_header_bzlib_h" = xyes; then :
12751 have_bzip2="yes (autoconf test)"
12752 bzip2_libpriv="-lbz2"
12753 bzip2_libstaticconf="$bzip2_libpriv"
12754 BZIP2_LIBS="$bzip2_libpriv"
12764 if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
12765 as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
12769 # check for system libpng
12772 # Check whether --with-png was given.
12773 if test "${with_png+set}" = set; then :
12781 if test x"$with_png" = xyes -o x"$with_png" = xauto; then
12782 libpng_pkg="libpng"
12785 if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
12786 if test -n "$PKG_CONFIG" && \
12787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
12788 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
12790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791 test $ac_status = 0; }; then
12792 have_libpng_pkg=yes
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
12798 $as_echo_n "checking for LIBPNG... " >&6; }
12800 if test -n "$LIBPNG_CFLAGS"; then
12801 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
12802 elif test -n "$PKG_CONFIG"; then
12803 if test -n "$PKG_CONFIG" && \
12804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
12805 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
12807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12808 test $ac_status = 0; }; then
12809 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
12810 test "x$?" != "x0" && pkg_failed=yes
12817 if test -n "$LIBPNG_LIBS"; then
12818 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
12819 elif test -n "$PKG_CONFIG"; then
12820 if test -n "$PKG_CONFIG" && \
12821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
12822 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
12824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12825 test $ac_status = 0; }; then
12826 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
12827 test "x$?" != "x0" && pkg_failed=yes
12837 if test $pkg_failed = yes; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12841 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12842 _pkg_short_errors_supported=yes
12844 _pkg_short_errors_supported=no
12846 if test $_pkg_short_errors_supported = yes; then
12847 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
12849 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
12851 # Put the nasty error message in config.log where it belongs
12852 echo "$LIBPNG_PKG_ERRORS" >&5
12855 elif test $pkg_failed = untried; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12860 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
12861 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12863 $as_echo "yes" >&6; }
12864 have_libpng="yes (pkg-config)"
12867 if test $have_libpng_pkg = yes; then
12868 # we have libpng.pc
12869 libpng_reqpriv="$libpng_pkg"
12871 libpng_libstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
12875 if test "$have_libpng" != no; then
12876 # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
12877 libpng_libpriv="$LIBPNG_LIBS"
12878 libpng_libstaticconf="$LIBPNG_LIBS"
12879 have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
12881 # fall back to config script.
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
12883 $as_echo_n "checking for libpng-config... " >&6; }
12884 if which libpng-config > /dev/null 2>&1; then
12885 LIBPNG_CFLAGS=`libpng-config --cflags`
12886 LIBPNG_LIBS=`libpng-config --ldflags`
12887 libpng_libpriv=`libpng-config --static --ldflags`
12888 libpng_libstaticconf="$libpng_libpriv"
12889 have_libpng="yes (libpng-config)"
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12891 $as_echo "yes" >&6; }
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12900 if test x"$with_png" = xyes -a "$have_libpng" = no; then
12901 as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
12905 # check for system libharfbuzz
12908 # Check whether --with-harfbuzz was given.
12909 if test "${with_harfbuzz+set}" = set; then :
12910 withval=$with_harfbuzz;
12917 if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
12918 harfbuzz_pkg="harfbuzz >= 0.9.19"
12919 have_harfbuzz_pkg=no
12921 if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
12922 if test -n "$PKG_CONFIG" && \
12923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
12924 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
12926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12927 test $ac_status = 0; }; then
12928 have_harfbuzz_pkg=yes
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
12934 $as_echo_n "checking for HARFBUZZ... " >&6; }
12936 if test -n "$HARFBUZZ_CFLAGS"; then
12937 pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
12938 elif test -n "$PKG_CONFIG"; then
12939 if test -n "$PKG_CONFIG" && \
12940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
12941 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
12943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12944 test $ac_status = 0; }; then
12945 pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
12946 test "x$?" != "x0" && pkg_failed=yes
12953 if test -n "$HARFBUZZ_LIBS"; then
12954 pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
12955 elif test -n "$PKG_CONFIG"; then
12956 if test -n "$PKG_CONFIG" && \
12957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
12958 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
12960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12961 test $ac_status = 0; }; then
12962 pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
12963 test "x$?" != "x0" && pkg_failed=yes
12973 if test $pkg_failed = yes; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12978 _pkg_short_errors_supported=yes
12980 _pkg_short_errors_supported=no
12982 if test $_pkg_short_errors_supported = yes; then
12983 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
12985 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
12987 # Put the nasty error message in config.log where it belongs
12988 echo "$HARFBUZZ_PKG_ERRORS" >&5
12991 elif test $pkg_failed = untried; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12996 HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
12997 HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12999 $as_echo "yes" >&6; }
13000 have_harfbuzz="yes (pkg-config)"
13003 if test $have_harfbuzz_pkg = yes; then
13004 # we have harfbuzz.pc
13005 harfbuzz_reqpriv="$harfbuzz_pkg"
13007 harfbuzz_libstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
13011 if test "$have_harfbuzz" != no; then
13012 # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
13013 harfbuzz_libpriv="$HARFBUZZ_LIBS"
13014 harfbuzz_libstaticconf="$HARFBUZZ_LIBS"
13015 have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
13017 # since HarfBuzz is quite a new library we don't fall back to a
13018 # different test; additionally, it has too many dependencies
13024 if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no; then
13025 as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
13029 # Some options handling SDKs/archs in CFLAGS should be copied
13030 # to LDFLAGS. Apple TechNote 2137 recommends to include these
13031 # options in CFLAGS but not in LDFLAGS.
13033 save_config_args=$*
13034 set dummy ${CFLAGS}
13036 while test $i -le $#
13041 -isysroot|-arch) # options taking 1 argument
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
13044 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
13045 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048 $as_echo "yes" >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
13051 $as_echo "no, copy to LDFLAGS" >&6; }
13052 LDFLAGS="${LDFLAGS} ${c} ${a}"
13056 -m32|-m64|-march=*|-mcpu=*) # options taking no argument
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
13058 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
13059 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
13065 $as_echo "no, copy to LDFLAGS" >&6; }
13066 LDFLAGS="${LDFLAGS} ${c}"
13070 # AC_MSG_RESULT([${c} is not copied to LDFLAGS])
13076 set ${save_config_args}
13079 # Whether to use Mac OS resource-based fonts.
13081 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
13084 # Check whether --with-old-mac-fonts was given.
13085 if test "${with_old_mac_fonts+set}" = set; then :
13086 withval=$with_old_mac_fonts;
13089 if test x$with_old_mac_fonts = xyes; then
13090 orig_LDFLAGS="${LDFLAGS}"
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
13092 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
13093 ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
13094 LDFLAGS="$LDFLAGS $ft2_extra_libs"
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13100 #if defined(__GNUC__) && defined(__APPLE_CC__)
13101 # include <CoreServices/CoreServices.h>
13102 # include <ApplicationServices/ApplicationServices.h>
13104 # include <ConditionalMacros.h>
13105 # include <Files.h>
13124 if ac_fn_c_try_link "$LINENO"; then :
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13126 $as_echo "ok" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
13129 $as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
13130 orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
13131 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13137 #if defined(__GNUC__) && defined(__APPLE_CC__)
13138 # include <CoreServices/CoreServices.h>
13139 # include <ApplicationServices/ApplicationServices.h>
13141 # include <ConditionalMacros.h>
13142 # include <Files.h>
13151 /* OSHostByteOrder() is typed as OS_INLINE */
13152 int32_t os_byte_order = OSHostByteOrder();
13155 if ( OSBigEndian != os_byte_order )
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13165 $as_echo "ok" >&6; }
13166 CFLAGS="$orig_CFLAGS"
13167 CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
13171 $as_echo "no, ANSI incompatible" >&6; }
13172 CFLAGS="$orig_CFLAGS"
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
13177 $as_echo_n "checking type ResourceIndex... " >&6; }
13178 orig_CFLAGS="$CFLAGS"
13179 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13185 #if defined(__GNUC__) && defined(__APPLE_CC__)
13186 # include <CoreServices/CoreServices.h>
13187 # include <ApplicationServices/ApplicationServices.h>
13189 # include <ConditionalMacros.h>
13190 # include <Files.h>
13191 # include <Resources.h>
13200 ResourceIndex i = 0;
13208 if ac_fn_c_try_compile "$LINENO"; then :
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13210 $as_echo "ok" >&6; }
13211 CFLAGS="$orig_CFLAGS"
13212 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 CFLAGS="$orig_CFLAGS"
13218 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13224 $as_echo "not found" >&6; }
13226 LDFLAGS="${orig_LDFLAGS}"
13227 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13234 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
13242 # Whether to use FileManager, which is deprecated since Mac OS X 10.4.
13245 # Check whether --with-fsspec was given.
13246 if test "${with_fsspec+set}" = set; then :
13247 withval=$with_fsspec;
13250 if test x$with_fsspec = xno; then
13251 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
13252 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
13254 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13260 #if defined(__GNUC__) && defined(__APPLE_CC__)
13261 # include <CoreServices/CoreServices.h>
13262 # include <ApplicationServices/ApplicationServices.h>
13264 # include <ConditionalMacros.h>
13265 # include <Files.h>
13274 FCBPBPtr paramBlock;
13277 ConstStr255Param fileName;
13281 /* FSSpec functions: deprecated since Mac OS X 10.4 */
13282 PBGetFCBInfoSync( paramBlock );
13283 FSMakeFSSpec( vRefNum, dirID, fileName, spec );
13290 if ac_fn_c_try_link "$LINENO"; then :
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13292 $as_echo "ok" >&6; }
13293 CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13296 $as_echo "not found" >&6; }
13297 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13304 # Whether to use FileManager in Carbon since MacOS 9.x.
13307 # Check whether --with-fsref was given.
13308 if test "${with_fsref+set}" = set; then :
13309 withval=$with_fsref;
13312 if test x$with_fsref = xno; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13315 FreeType2 built without FSRef API cannot load
13316 data-fork fonts on MacOS, except of XXX.dfont.
13318 $as_echo "$as_me: WARNING:
13320 FreeType2 built without FSRef API cannot load
13321 data-fork fonts on MacOS, except of XXX.dfont.
13323 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
13324 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
13326 $as_echo_n "checking FSRef-based FileManager... " >&6; }
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13332 #if defined(__GNUC__) && defined(__APPLE_CC__)
13333 # include <CoreServices/CoreServices.h>
13334 # include <ApplicationServices/ApplicationServices.h>
13336 # include <ConditionalMacros.h>
13337 # include <Files.h>
13348 ConstStr255Param fileName;
13350 Boolean* isDirectory;
13352 SInt16 desiredRefNum;
13354 SInt16* actualRefNum;
13355 HFSUniStr255* outForkName;
13356 FSVolumeRefNum volume;
13357 FSCatalogInfoBitmap whichInfo;
13358 FSCatalogInfo* catalogInfo;
13359 FSForkInfo* forkInfo;
13366 /* FSRef functions: no need to check? */
13367 FSGetForkCBInfo( desiredRefNum, volume, iterator,
13368 actualRefNum, forkInfo, ref,
13370 FSPathMakeRef( path, ref, isDirectory );
13373 FSpMakeFSRef ( spec, ref );
13374 FSGetCatalogInfo( ref, whichInfo, catalogInfo,
13375 outForkName, spec, ref );
13382 if ac_fn_c_try_link "$LINENO"; then :
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13384 $as_echo "ok" >&6; }
13385 CFLAGS="$CFLAGS -DHAVE_FSREF=1"
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13388 $as_echo "not found" >&6; }
13389 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
13391 rm -f core conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext conftest.$ac_ext
13396 # Whether to use QuickDraw API in ToolBox, which is deprecated since
13400 # Check whether --with-quickdraw-toolbox was given.
13401 if test "${with_quickdraw_toolbox+set}" = set; then :
13402 withval=$with_quickdraw_toolbox;
13405 if test x$with_quickdraw_toolbox = xno; then
13406 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
13407 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
13409 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13415 #if defined(__GNUC__) && defined(__APPLE_CC__)
13416 # include <CoreServices/CoreServices.h>
13417 # include <ApplicationServices/ApplicationServices.h>
13419 # include <ConditionalMacros.h>
13420 # include <Fonts.h>
13430 SInt16 familyID = 0;
13431 FMInput* fmIn = NULL;
13432 FMOutput* fmOut = NULL;
13435 GetFontName( familyID, familyName );
13436 GetFNum( familyName, &familyID );
13437 fmOut = FMSwapFont( fmIn );
13444 if ac_fn_c_try_link "$LINENO"; then :
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13446 $as_echo "ok" >&6; }
13447 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13450 $as_echo "not found" >&6; }
13451 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
13453 rm -f core conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext conftest.$ac_ext
13458 # Whether to use QuickDraw API in Carbon, which is deprecated since
13462 # Check whether --with-quickdraw-carbon was given.
13463 if test "${with_quickdraw_carbon+set}" = set; then :
13464 withval=$with_quickdraw_carbon;
13467 if test x$with_quickdraw_carbon = xno; then
13468 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
13469 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
13471 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13477 #if defined(__GNUC__) && defined(__APPLE_CC__)
13478 # include <CoreServices/CoreServices.h>
13479 # include <ApplicationServices/ApplicationServices.h>
13481 # include <ConditionalMacros.h>
13482 # include <Fonts.h>
13491 FMFontFamilyIterator famIter;
13492 FMFontFamily family;
13494 FMFontFamilyInstanceIterator instIter;
13501 FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
13503 FMGetNextFontFamily( &famIter, &family );
13504 FMGetFontFamilyName( family, famNameStr );
13505 FMCreateFontFamilyInstanceIterator( family, &instIter );
13506 FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
13507 FMDisposeFontFamilyInstanceIterator( &instIter );
13508 FMDisposeFontFamilyIterator( &famIter );
13509 FMGetFontContainer( font, pathSpec );
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13518 $as_echo "ok" >&6; }
13519 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13522 $as_echo "not found" >&6; }
13523 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
13525 rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13530 # Whether to use AppleTypeService since Mac OS X.
13533 # Check whether --with-ats was given.
13534 if test "${with_ats+set}" = set; then :
13538 if test x$with_ats = xno; then
13539 CFLAGS="$CFLAGS -DHAVE_ATS=0"
13540 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
13542 $as_echo_n "checking AppleTypeService functions... " >&6; }
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13548 #if defined(__GNUC__) && defined(__APPLE_CC__)
13549 # include <CoreServices/CoreServices.h>
13550 # include <ApplicationServices/ApplicationServices.h>
13552 # include <ConditionalMacros.h>
13553 # include <Files.h>
13565 ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
13567 ATSFontGetFileSpecification( 0, pathSpec );
13575 if ac_fn_c_try_link "$LINENO"; then :
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13577 $as_echo "ok" >&6; }
13578 CFLAGS="$CFLAGS -DHAVE_ATS=1"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13581 $as_echo "not found" >&6; }
13582 CFLAGS="$CFLAGS -DHAVE_ATS=0"
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13589 *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13592 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
13593 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
13595 $as_echo "$as_me: WARNING:
13597 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
13598 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
13600 CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
13607 # entries in Requires.private are separated by commas;
13608 REQUIRES_PRIVATE="$zlib_reqpriv, \
13613 REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \
13614 | sed -e 's/^ *//' \
13622 LIBS_PRIVATE="$zlib_libpriv \
13625 $harfbuzz_libpriv \
13628 LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \
13629 | sed -e 's/^ *//' \
13633 LIBSSTATIC_CONFIG="-lfreetype \
13634 $zlib_libstaticconf \
13635 $bzip2_libstaticconf \
13636 $libpng_libstaticconf \
13637 $harfbuzz_libstaticconf \
13639 # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
13640 # on if necessary; also beautify
13641 LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG" \
13642 | sed -e 's|-L */usr/lib64/* | |g' \
13643 -e 's|-L */usr/lib/* | |g' \
13659 # changing LDFLAGS value should only be done after
13660 # lt_cv_prog_compiler_static_works test
13662 if test "$have_zlib" != no; then
13663 CFLAGS="$CFLAGS $ZLIB_CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
13664 LDFLAGS="$LDFLAGS $ZLIB_LIBS"
13667 if test "$have_bzip2" != no; then
13668 CFLAGS="$CFLAGS $BZIP2_CFLAGS -DFT_CONFIG_OPTION_USE_BZIP2"
13669 LDFLAGS="$LDFLAGS $BZIP2_LIBS"
13671 if test "$have_libpng" != no; then
13672 CFLAGS="$CFLAGS $LIBPNG_CFLAGS -DFT_CONFIG_OPTION_USE_PNG"
13673 LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
13675 if test "$have_harfbuzz" != no; then
13676 CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS -DFT_CONFIG_OPTION_USE_HARFBUZZ"
13677 LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
13683 # configuration file -- stay in 8.3 limit
13685 # since #undef doesn't survive in configuration header files we replace
13686 # `/undef' with `#undef' after creating the output file
13688 ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
13691 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
13692 # and `builds/unix/unix-cc.mk' that will be used by the build system
13694 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
13697 # re-generate the Jamfile to use libtool now
13699 # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
13701 cat >confcache <<\_ACEOF
13702 # This file is a shell script that caches the results of configure
13703 # tests run on this system so they can be shared between configure
13704 # scripts and configure runs, see configure's option --config-cache.
13705 # It is not useful on other systems. If it contains results you don't
13706 # want to keep, you may remove or edit it.
13708 # config.status only pays attention to the cache file if you give it
13709 # the --recheck option to rerun configure.
13711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13713 # following values.
13717 # The following way of writing the cache mishandles newlines in values,
13718 # but we know of no workaround that is simple, portable, and efficient.
13719 # So, we kill variables containing newlines.
13720 # Ultrix sh set writes to stderr and can't be redirected directly,
13721 # and sets the high bit in the cache file unless we assign to the vars.
13723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13724 eval ac_val=\$$ac_var
13728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13732 _ | IFS | as_nl) ;; #(
13733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13734 *) { eval $ac_var=; unset $ac_var;} ;;
13740 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13741 *${as_nl}ac_space=\ *)
13742 # `set' does not quote correctly, so add quotes: double-quote
13743 # substitution turns \\\\ into \\, and sed turns \\ into \.
13746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13749 # `set' quotes correctly as required by POSIX, so do not add quotes.
13750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13764 if test -w "$cache_file"; then
13765 if test "x$cache_file" != "x/dev/null"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13767 $as_echo "$as_me: updating cache $cache_file" >&6;}
13768 if test ! -f "$cache_file" || test -h "$cache_file"; then
13769 cat confcache >"$cache_file"
13771 case $cache_file in #(
13773 mv -f confcache "$cache_file"$$ &&
13774 mv -f "$cache_file"$$ "$cache_file" ;; #(
13776 mv -f confcache "$cache_file" ;;
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13788 # Let make expand exec_prefix.
13789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13791 DEFS=-DHAVE_CONFIG_H
13796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13797 # 1. Remove the extension, and $U if already installed.
13798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13801 # will be set to the directory where LIBOBJS objects are built.
13802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13805 LIBOBJS=$ac_libobjs
13807 LTLIBOBJS=$ac_ltlibobjs
13811 : "${CONFIG_STATUS=./config.status}"
13813 ac_clean_files_save=$ac_clean_files
13814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13816 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13818 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13820 # Generated by $as_me.
13821 # Run this file to recreate the current configuration.
13822 # Compiler output produced by configure, useful for debugging
13823 # configure, is in config.log if it exists.
13826 ac_cs_recheck=false
13829 SHELL=\${CONFIG_SHELL-$SHELL}
13832 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13833 ## -------------------- ##
13834 ## M4sh Initialization. ##
13835 ## -------------------- ##
13837 # Be more Bourne compatible
13838 DUALCASE=1; export DUALCASE # for MKS sh
13839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13843 # is contrary to our usage. Disable this feature.
13844 alias -g '${1+"$@"}'='"$@"'
13845 setopt NO_GLOB_SUBST
13847 case `(set -o) 2>/dev/null` in #(
13859 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13860 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13863 # Prefer a ksh shell builtin over an external printf program on Solaris,
13864 # but without wasting forks for bash or zsh.
13865 if test -z "$BASH_VERSION$ZSH_VERSION" \
13866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13867 as_echo='print -r --'
13868 as_echo_n='print -rn --'
13869 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13870 as_echo='printf %s\n'
13871 as_echo_n='printf %s'
13873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13875 as_echo_n='/usr/ucb/echo -n'
13877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13878 as_echo_n_body='eval
13882 expr "X$arg" : "X\\(.*\\)$as_nl";
13883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13887 export as_echo_n_body
13888 as_echo_n='sh -c $as_echo_n_body as_echo'
13890 export as_echo_body
13891 as_echo='sh -c $as_echo_body as_echo'
13894 # The user is always right.
13895 if test "${PATH_SEPARATOR+set}" != set; then
13897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13905 # We need space, tab and new line, in precisely that order. Quoting is
13906 # there to prevent editors from complaining about space-tab.
13907 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13908 # splitting by setting IFS to empty value.)
13911 # Find who we are. Look in the path if we contain no directory separator.
13914 *[\\/]* ) as_myself=$0 ;;
13915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13916 for as_dir in $PATH
13919 test -z "$as_dir" && as_dir=.
13920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13926 # We did not find ourselves, most probably we were run as `sh COMMAND'
13927 # in which case we are not to be found in the path.
13928 if test "x$as_myself" = x; then
13931 if test ! -f "$as_myself"; then
13932 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13936 # Unset variables that we do not need and which cause bugs (e.g. in
13937 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13938 # suppresses any "Segmentation fault" message there. '((' could
13939 # trigger a bug in pdksh 5.2.14.
13940 for as_var in BASH_ENV ENV MAIL MAILPATH
13941 do eval test x\${$as_var+set} = xset \
13942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13955 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13958 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13959 # ----------------------------------------
13960 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13961 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13962 # script with STATUS, using 1 if that was 0.
13965 as_status=$1; test $as_status -eq 0 && as_status=1
13967 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13968 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13970 $as_echo "$as_me: error: $2" >&2
13971 as_fn_exit $as_status
13975 # as_fn_set_status STATUS
13976 # -----------------------
13977 # Set $? to STATUS, without forking.
13978 as_fn_set_status ()
13981 } # as_fn_set_status
13983 # as_fn_exit STATUS
13984 # -----------------
13985 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13989 as_fn_set_status $1
13995 # Portably unset VAR.
13998 { eval $1=; unset $1;}
14000 as_unset=as_fn_unset
14001 # as_fn_append VAR VALUE
14002 # ----------------------
14003 # Append the text in VALUE to the end of the definition contained in VAR. Take
14004 # advantage of any shell optimizations that allow amortized linear growth over
14005 # repeated appends, instead of the typical quadratic growth present in naive
14007 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14008 eval 'as_fn_append ()
14019 # as_fn_arith ARG...
14020 # ------------------
14021 # Perform arithmetic evaluation on the ARGs, and store the result in the
14022 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14023 # must be portable across $(()) and expr.
14024 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14025 eval 'as_fn_arith ()
14032 as_val=`expr "$@" || test $? -eq 1`
14037 if expr a : '\(a\)' >/dev/null 2>&1 &&
14038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14045 as_basename=basename
14050 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14056 as_me=`$as_basename -- "$0" ||
14057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14058 X"$0" : 'X\(//\)$' \| \
14059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14061 sed '/^.*\/\([^/][^/]*\)\/*$/{
14075 # Avoid depending upon Character Ranges.
14076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14079 as_cr_digits='0123456789'
14080 as_cr_alnum=$as_cr_Letters$as_cr_digits
14082 ECHO_C= ECHO_N= ECHO_T=
14083 case `echo -n x` in #(((((
14085 case `echo 'xy\c'` in
14086 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14088 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14095 rm -f conf$$ conf$$.exe conf$$.file
14096 if test -d conf$$.dir; then
14097 rm -f conf$$.dir/conf$$.file
14100 mkdir conf$$.dir 2>/dev/null
14102 if (echo >conf$$.file) 2>/dev/null; then
14103 if ln -s conf$$.file conf$$ 2>/dev/null; then
14105 # ... but there are two gotchas:
14106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14108 # In both cases, we have to default to `cp -pR'.
14109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14111 elif ln conf$$.file conf$$ 2>/dev/null; then
14119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14120 rmdir conf$$.dir 2>/dev/null
14125 # Create "$as_dir" as a directory, including parents if necessary.
14130 -*) as_dir=./$as_dir;;
14132 test -d "$as_dir" || eval $as_mkdir_p || {
14136 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14137 *) as_qdir=$as_dir;;
14139 as_dirs="'$as_qdir' $as_dirs"
14140 as_dir=`$as_dirname -- "$as_dir" ||
14141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14142 X"$as_dir" : 'X\(//\)[^/]' \| \
14143 X"$as_dir" : 'X\(//\)$' \| \
14144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14145 $as_echo X"$as_dir" |
14146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14150 /^X\(\/\/\)[^/].*/{
14163 test -d "$as_dir" && break
14165 test -z "$as_dirs" || eval "mkdir $as_dirs"
14166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14170 if mkdir -p . 2>/dev/null; then
14171 as_mkdir_p='mkdir -p "$as_dir"'
14173 test -d ./-p && rmdir ./-p
14178 # as_fn_executable_p FILE
14179 # -----------------------
14180 # Test if FILE is an executable regular file.
14181 as_fn_executable_p ()
14183 test -f "$1" && test -x "$1"
14184 } # as_fn_executable_p
14185 as_test_x='test -x'
14186 as_executable_p=as_fn_executable_p
14188 # Sed expression to map a string onto a valid CPP name.
14189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14191 # Sed expression to map a string onto a valid variable name.
14192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14196 ## ----------------------------------- ##
14197 ## Main body of $CONFIG_STATUS script. ##
14198 ## ----------------------------------- ##
14200 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14203 # Save the log message, to keep $0 and so on meaningful, and to
14204 # report actual input values of CONFIG_FILES etc. instead of their
14205 # values after options handling.
14207 This file was extended by FreeType $as_me 2.5.4, which was
14208 generated by GNU Autoconf 2.69. Invocation command line was
14210 CONFIG_FILES = $CONFIG_FILES
14211 CONFIG_HEADERS = $CONFIG_HEADERS
14212 CONFIG_LINKS = $CONFIG_LINKS
14213 CONFIG_COMMANDS = $CONFIG_COMMANDS
14216 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14221 case $ac_config_files in *"
14222 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14225 case $ac_config_headers in *"
14226 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14231 # Files that config.status was made for.
14232 config_files="$ac_config_files"
14233 config_headers="$ac_config_headers"
14234 config_commands="$ac_config_commands"
14238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14240 \`$as_me' instantiates files and other configuration actions
14241 from templates according to the current configuration. Unless the files
14242 and actions are specified as TAGs, all are instantiated by default.
14244 Usage: $0 [OPTION]... [TAG]...
14246 -h, --help print this help, then exit
14247 -V, --version print version number and configuration settings, then exit
14248 --config print configuration, then exit
14249 -q, --quiet, --silent
14250 do not print progress messages
14251 -d, --debug don't remove temporary files
14252 --recheck update $as_me by reconfiguring in the same conditions
14253 --file=FILE[:TEMPLATE]
14254 instantiate the configuration file FILE
14255 --header=FILE[:TEMPLATE]
14256 instantiate the configuration header FILE
14258 Configuration files:
14261 Configuration headers:
14264 Configuration commands:
14267 Report bugs to <freetype@nongnu.org>."
14270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14271 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14273 FreeType config.status 2.5.4
14274 configured by $0, generated by GNU Autoconf 2.69,
14275 with options \\"\$ac_cs_config\\"
14277 Copyright (C) 2012 Free Software Foundation, Inc.
14278 This config.status script is free software; the Free Software Foundation
14279 gives unlimited permission to copy, distribute and modify it."
14285 test -n "\$AWK" || AWK=awk
14288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14289 # The default lists apply if the user does not specify any file.
14295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14312 # Handling of the options.
14313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14316 $as_echo "$ac_cs_version"; exit ;;
14317 --config | --confi | --conf | --con | --co | --c )
14318 $as_echo "$ac_cs_config"; exit ;;
14319 --debug | --debu | --deb | --de | --d | -d )
14321 --file | --fil | --fi | --f )
14324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14325 '') as_fn_error $? "missing file argument" ;;
14327 as_fn_append CONFIG_FILES " '$ac_optarg'"
14328 ac_need_defaults=false;;
14329 --header | --heade | --head | --hea )
14332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14335 ac_need_defaults=false;;
14337 # Conflict between --help and --header
14338 as_fn_error $? "ambiguous option: \`$1'
14339 Try \`$0 --help' for more information.";;
14340 --help | --hel | -h )
14341 $as_echo "$ac_cs_usage"; exit ;;
14342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14346 # This is an error.
14347 -*) as_fn_error $? "unrecognized option: \`$1'
14348 Try \`$0 --help' for more information." ;;
14350 *) as_fn_append ac_config_targets " $1"
14351 ac_need_defaults=false ;;
14357 ac_configure_extra_args=
14359 if $ac_cs_silent; then
14361 ac_configure_extra_args="$ac_configure_extra_args --silent"
14365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14366 if \$ac_cs_recheck; then
14367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14370 CONFIG_SHELL='$SHELL'
14371 export CONFIG_SHELL
14376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14381 ## Running $as_me. ##
14387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14393 # The HP-UX ksh and POSIX shell print the target directory to stdout
14394 # if CDPATH is set.
14395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14397 sed_quote_subst='$sed_quote_subst'
14398 double_quote_subst='$double_quote_subst'
14399 delay_variable_subst='$delay_variable_subst'
14400 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14401 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14402 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14403 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14404 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14405 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14406 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14407 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14408 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14409 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14410 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14411 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14412 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14413 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14414 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14415 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14416 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14417 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14418 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14419 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14420 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14421 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14422 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14423 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14424 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14425 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14426 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14427 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14428 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14429 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14430 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14431 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14432 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14433 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14434 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14435 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14436 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14437 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14438 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14439 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14440 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14442 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14443 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14444 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14445 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14446 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14447 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14448 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14449 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14450 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14451 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14452 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14453 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14454 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14456 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14457 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"`'
14458 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14459 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14460 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14461 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14462 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14463 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14464 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14465 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14466 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14467 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14468 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14469 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14470 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14471 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14472 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14473 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14474 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14475 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14476 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14477 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14478 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14479 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14480 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14481 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14482 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14483 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14484 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14485 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14486 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14487 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14488 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14489 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14490 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14491 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14492 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14493 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14494 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14495 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14496 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14497 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14498 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14499 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14500 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14501 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14502 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14503 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14504 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14505 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14506 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14507 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14508 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14509 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14510 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14511 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14512 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14513 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14514 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14515 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14516 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14517 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14518 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14519 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14520 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14521 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14522 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14523 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14524 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14525 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14526 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14527 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14528 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14529 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14530 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14533 LTCFLAGS='$LTCFLAGS'
14534 compiler='$compiler_DEFAULT'
14536 # A function that is used when there is no print builtin or printf.
14537 func_fallback_echo ()
14539 eval 'cat <<_LTECHO_EOF
14544 # Quote evaled strings.
14561 deplibs_check_method \
14565 sharedlib_from_linklib_cmd \
14568 archiver_list_spec \
14574 lt_cv_sys_global_symbol_pipe \
14575 lt_cv_sys_global_symbol_to_cdecl \
14576 lt_cv_sys_global_symbol_to_c_name_address \
14577 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14578 nm_file_list_spec \
14579 lt_prog_compiler_no_builtin_flag \
14580 lt_prog_compiler_pic \
14581 lt_prog_compiler_wl \
14582 lt_prog_compiler_static \
14583 lt_cv_prog_compiler_c_o \
14592 export_dynamic_flag_spec \
14593 whole_archive_flag_spec \
14594 compiler_needs_object \
14596 allow_undefined_flag \
14597 no_undefined_flag \
14598 hardcode_libdir_flag_spec \
14599 hardcode_libdir_separator \
14603 variables_saved_for_relink \
14605 library_names_spec \
14607 install_override_mode \
14611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14612 *[\\\\\\\`\\"\\\$]*)
14613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14621 # Double-quote double-evaled strings.
14622 for var in reload_cmds \
14623 old_postinstall_cmds \
14624 old_postuninstall_cmds \
14626 extract_expsyms_cmds \
14627 old_archive_from_new_cmds \
14628 old_archive_from_expsyms_cmds \
14630 archive_expsym_cmds \
14632 module_expsym_cmds \
14633 export_symbols_cmds \
14637 postuninstall_cmds \
14639 sys_lib_search_path_spec \
14640 sys_lib_dlsearch_path_spec; do
14641 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14642 *[\\\\\\\`\\"\\\$]*)
14643 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14646 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14651 ac_aux_dir='$ac_aux_dir'
14652 xsi_shell='$xsi_shell'
14653 lt_shell_append='$lt_shell_append'
14655 # See if we are running on zsh, and set the options which allow our
14656 # commands through without removal of \ escapes INIT.
14657 if test -n "\${ZSH_VERSION+set}" ; then
14658 setopt NO_GLOB_SUBST
14664 TIMESTAMP='$TIMESTAMP'
14673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14675 # Handling of arguments.
14676 for ac_config_target in $ac_config_targets
14678 case $ac_config_target in
14679 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14680 "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
14681 "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
14682 "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
14684 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14689 # If the user did not use the arguments to specify the items to instantiate,
14690 # then the envvar interface is used. Set only those that are not.
14691 # We use the long form for the default assignment because of an extremely
14692 # bizarre bug on SunOS 4.1.3.
14693 if $ac_need_defaults; then
14694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14699 # Have a temporary directory for convenience. Make it in the build tree
14700 # simply because there is no reason against having it here, and in addition,
14701 # creating and moving files from /tmp can sometimes cause problems.
14702 # Hook for its removal unless debugging.
14703 # Note that there is a small window in which the directory will not be cleaned:
14704 # after its creation but before its name has been assigned to `$tmp'.
14708 trap 'exit_status=$?
14709 : "${ac_tmp:=$tmp}"
14710 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14712 trap 'as_fn_exit 1' 1 2 13 15
14714 # Create a (secure) tmp directory for tmp files.
14717 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14721 tmp=./conf$$-$RANDOM
14722 (umask 077 && mkdir "$tmp")
14723 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14726 # Set up the scripts for CONFIG_FILES section.
14727 # No need to generate them if there are no CONFIG_FILES.
14728 # This happens for instance with `./config.status config.h'.
14729 if test -n "$CONFIG_FILES"; then
14732 ac_cr=`echo X | tr X '\015'`
14733 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14734 # But we know of no other shell where ac_cr would be empty at this
14735 # point, so we can use a bashism as a fallback.
14736 if test "x$ac_cr" = x; then
14737 eval ac_cr=\$\'\\r\'
14739 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14743 ac_cs_awk_cr=$ac_cr
14746 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14751 echo "cat >conf$$subs.awk <<_ACEOF" &&
14752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14754 } >conf$$subs.sh ||
14755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14758 for ac_last_try in false false false false false :; do
14759 . ./conf$$subs.sh ||
14760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14762 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14763 if test $ac_delim_n = $ac_delim_num; then
14765 elif $ac_last_try; then
14766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14771 rm -f conf$$subs.sh
14773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14778 s/^/S["/; s/!.*/"]=/
14788 s/\(.\{148\}\)..*/\1/
14790 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14802 s/\(.\{148\}\)..*/\1/
14804 s/["\\]/\\&/g; s/^/"/; s/$/"/
14808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14813 ' <conf$$subs.awk | sed '
14818 ' >>$CONFIG_STATUS || ac_write_fail=1
14819 rm -f conf$$subs.awk
14820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14822 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14823 for (key in S) S_is_set[key] = 1
14829 nfields = split(line, field, "@")
14831 len = length(field[1])
14832 for (i = 2; i < nfields; i++) {
14834 keylen = length(key)
14835 if (S_is_set[key]) {
14837 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14838 len += length(value) + length(field[++i])
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14850 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14851 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14854 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14855 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14858 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14859 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14860 # trailing colons and then remove the whole line if VPATH becomes empty
14861 # (actually we leave an empty line to preserve line numbers).
14862 if test "x$srcdir" = x.; then
14863 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14882 fi # test -n "$CONFIG_FILES"
14884 # Set up the scripts for CONFIG_HEADERS section.
14885 # No need to generate them if there are no CONFIG_HEADERS.
14886 # This happens for instance with `./config.status Makefile'.
14887 if test -n "$CONFIG_HEADERS"; then
14888 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14892 # Transform confdefs.h into an awk script `defines.awk', embedded as
14893 # here-document in config.status, that substitutes the proper values into
14894 # config.h.in to produce config.h.
14896 # Create a delimiter string that does not exist in confdefs.h, to ease
14897 # handling of long lines.
14899 for ac_last_try in false false :; do
14900 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14901 if test -z "$ac_tt"; then
14903 elif $ac_last_try; then
14904 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14910 # For the awk script, D is an array of macro values keyed by name,
14911 # likewise P contains macro parameters if any. Preserve backslash
14912 # newline sequences.
14914 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14916 s/.\{148\}/&'"$ac_delim"'/g
14919 s/^[ ]*#[ ]*define[ ][ ]*/ /
14926 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14928 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14932 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14933 D["\1"]=" \3\\\\\\n"\\/p
14935 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14940 s/.\{148\}/&'"$ac_delim"'/g
14945 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14948 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14950 ' <confdefs.h | sed '
14951 s/'"$ac_delim"'/"\\\
14952 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955 for (key in D) D_is_set[key] = 1
14958 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14960 split(line, arg, " ")
14961 if (arg[1] == "#") {
14965 defundef = substr(arg[1], 2)
14968 split(mac1, mac2, "(") #)
14970 prefix = substr(line, 1, index(line, defundef) - 1)
14971 if (D_is_set[macro]) {
14972 # Preserve the white space surrounding the "#".
14973 print prefix "define", macro P[macro] D[macro]
14976 # Replace #undef with comments. This is necessary, for example,
14977 # in the case of _POSIX_SOURCE, which is predefined and required
14978 # on some systems where configure will not decide to define it.
14979 if (defundef == "undef") {
14980 print "/*", prefix defundef, macro, "*/"
14988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14990 fi # test -n "$CONFIG_HEADERS"
14993 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14998 :[FHLC]) ac_mode=$ac_tag; continue;;
15000 case $ac_mode$ac_tag in
15002 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15003 :[FH]-) ac_tag=-:-;;
15004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15021 -) ac_f="$ac_tmp/stdin";;
15022 *) # Look for the file first in the build tree, then in the source tree
15023 # (if the path is not absolute). The absolute path cannot be DOS-style,
15024 # because $ac_f cannot contain `:'.
15028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15030 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15032 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15033 as_fn_append ac_file_inputs " '$ac_f'"
15036 # Let's still pretend it is `configure' which instantiates (i.e., don't
15037 # use $as_me), people would be surprised to read:
15038 # /* config.h. Generated by config.status. */
15039 configure_input='Generated from '`
15040 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15042 if test x"$ac_file" != x-; then
15043 configure_input="$ac_file. $configure_input"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15045 $as_echo "$as_me: creating $ac_file" >&6;}
15047 # Neutralize special characters interpreted by sed in replacement strings.
15048 case $configure_input in #(
15049 *\&* | *\|* | *\\* )
15050 ac_sed_conf_input=`$as_echo "$configure_input" |
15051 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15052 *) ac_sed_conf_input=$configure_input;;
15056 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15062 ac_dir=`$as_dirname -- "$ac_file" ||
15063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15064 X"$ac_file" : 'X\(//\)[^/]' \| \
15065 X"$ac_file" : 'X\(//\)$' \| \
15066 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15067 $as_echo X"$ac_file" |
15068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15072 /^X\(\/\/\)[^/].*/{
15085 as_dir="$ac_dir"; as_fn_mkdir_p
15089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15091 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15092 # A ".." for each directory in $ac_dir_suffix.
15093 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15094 case $ac_top_builddir_sub in
15095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15099 ac_abs_top_builddir=$ac_pwd
15100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15101 # for backward compatibility:
15102 ac_top_builddir=$ac_top_build_prefix
15105 .) # We are building in place.
15107 ac_top_srcdir=$ac_top_builddir_sub
15108 ac_abs_top_srcdir=$ac_pwd ;;
15109 [\\/]* | ?:[\\/]* ) # Absolute name.
15110 ac_srcdir=$srcdir$ac_dir_suffix;
15111 ac_top_srcdir=$srcdir
15112 ac_abs_top_srcdir=$srcdir ;;
15113 *) # Relative name.
15114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15115 ac_top_srcdir=$ac_top_build_prefix$srcdir
15116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15128 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15129 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15134 # If the template does not know about datarootdir, expand it.
15135 # FIXME: This hack should be removed a few years after 2.60.
15136 ac_datarootdir_hack=; ac_datarootdir_seen=
15147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15148 *datarootdir*) ac_datarootdir_seen=yes;;
15149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15154 ac_datarootdir_hack='
15155 s&@datadir@&$datadir&g
15156 s&@docdir@&$docdir&g
15157 s&@infodir@&$infodir&g
15158 s&@localedir@&$localedir&g
15159 s&@mandir@&$mandir&g
15160 s&\\\${datarootdir}&$datarootdir&g' ;;
15164 # Neutralize VPATH when `$srcdir' = `.'.
15165 # Shell code in configure.ac might set extrasub.
15166 # FIXME: do we really want to maintain this feature?
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 ac_sed_extra="$ac_vpsub
15171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15174 s|@configure_input@|$ac_sed_conf_input|;t t
15175 s&@top_builddir@&$ac_top_builddir_sub&;t t
15176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15177 s&@srcdir@&$ac_srcdir&;t t
15178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15179 s&@top_srcdir@&$ac_top_srcdir&;t t
15180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15181 s&@builddir@&$ac_builddir&;t t
15182 s&@abs_builddir@&$ac_abs_builddir&;t t
15183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15184 s&@INSTALL@&$ac_INSTALL&;t t
15185 $ac_datarootdir_hack
15187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15188 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15191 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15193 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15195 which seems to be undefined. Please make sure it is defined" >&5
15196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15197 which seems to be undefined. Please make sure it is defined" >&2;}
15199 rm -f "$ac_tmp/stdin"
15201 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15202 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15210 if test x"$ac_file" != x-; then
15212 $as_echo "/* $configure_input */" \
15213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15214 } >"$ac_tmp/config.h" \
15215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15216 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15221 mv "$ac_tmp/config.h" "$ac_file" \
15222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15225 $as_echo "/* $configure_input */" \
15226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15227 || as_fn_error $? "could not create -" "$LINENO" 5
15231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15232 $as_echo "$as_me: executing $ac_file commands" >&6;}
15237 case $ac_file$ac_mode in
15240 # See if we are running on zsh, and set the options which allow our
15241 # commands through without removal of \ escapes.
15242 if test -n "${ZSH_VERSION+set}" ; then
15243 setopt NO_GLOB_SUBST
15246 cfgfile="${ofile}T"
15247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15250 cat <<_LT_EOF >> "$cfgfile"
15253 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15254 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15258 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15259 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15261 # Written by Gordon Matzigkeit, 1996
15263 # This file is part of GNU Libtool.
15265 # GNU Libtool is free software; you can redistribute it and/or
15266 # modify it under the terms of the GNU General Public License as
15267 # published by the Free Software Foundation; either version 2 of
15268 # the License, or (at your option) any later version.
15270 # As a special exception to the GNU General Public License,
15271 # if you distribute this file as part of a program or library that
15272 # is built using GNU Libtool, you may include this file under the
15273 # same distribution terms that you use for the rest of that program.
15275 # GNU Libtool is distributed in the hope that it will be useful,
15276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15278 # GNU General Public License for more details.
15280 # You should have received a copy of the GNU General Public License
15281 # along with GNU Libtool; see the file COPYING. If not, a copy
15282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15283 # obtained by writing to the Free Software Foundation, Inc.,
15284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15287 # The names of the tagged configurations supported by this script.
15290 # ### BEGIN LIBTOOL CONFIG
15292 # Which release of libtool.m4 was used?
15293 macro_version=$macro_version
15294 macro_revision=$macro_revision
15296 # Assembler program.
15299 # DLL creation program.
15300 DLLTOOL=$lt_DLLTOOL
15302 # Object dumper program.
15303 OBJDUMP=$lt_OBJDUMP
15305 # Whether or not to build shared libraries.
15306 build_libtool_libs=$enable_shared
15308 # Whether or not to build static libraries.
15309 build_old_libs=$enable_static
15311 # What type of objects to build.
15314 # Whether or not to optimize for fast installation.
15315 fast_install=$enable_fast_install
15317 # Shell to use when invoking shell scripts.
15320 # An echo program that protects backslashes.
15323 # The PATH separator for the build system.
15324 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15327 host_alias=$host_alias
15331 # The build system.
15332 build_alias=$build_alias
15336 # A sed program that does not truncate output.
15339 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15340 Xsed="\$SED -e 1s/^X//"
15342 # A grep program that handles long lines.
15348 # A literal string matcher.
15351 # A BSD- or MS-compatible name lister.
15354 # Whether we need soft or hard links.
15357 # What is the maximum length of a command?
15358 max_cmd_len=$max_cmd_len
15360 # Object file suffix (normally "o").
15363 # Executable file suffix (normally "").
15366 # whether the shell understands "unset".
15369 # turn spaces into newlines.
15372 # turn newlines into spaces.
15375 # convert \$build file names to \$host format.
15376 to_host_file_cmd=$lt_cv_to_host_file_cmd
15378 # convert \$build files to toolchain format.
15379 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15381 # Method to check whether dependent libraries are shared objects.
15382 deplibs_check_method=$lt_deplibs_check_method
15384 # Command to use when deplibs_check_method = "file_magic".
15385 file_magic_cmd=$lt_file_magic_cmd
15387 # How to find potential files when deplibs_check_method = "file_magic".
15388 file_magic_glob=$lt_file_magic_glob
15390 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15391 want_nocaseglob=$lt_want_nocaseglob
15393 # Command to associate shared and link libraries.
15394 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15399 # Flags to create an archive.
15400 AR_FLAGS=$lt_AR_FLAGS
15402 # How to feed a file listing to the archiver.
15403 archiver_list_spec=$lt_archiver_list_spec
15405 # A symbol stripping program.
15408 # Commands used to install an old-style archive.
15410 old_postinstall_cmds=$lt_old_postinstall_cmds
15411 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15413 # Whether to use a lock for old archive extraction.
15414 lock_old_archive_extraction=$lock_old_archive_extraction
15419 # LTCC compiler flags.
15420 LTCFLAGS=$lt_CFLAGS
15422 # Take the output of nm and produce a listing of raw symbols and C names.
15423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15425 # Transform the output of nm in a proper C declaration.
15426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15428 # Transform the output of nm in a C name address pair.
15429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15431 # Transform the output of nm in a C name address pair when lib prefix is needed.
15432 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15434 # Specify filename containing input files for \$NM.
15435 nm_file_list_spec=$lt_nm_file_list_spec
15437 # The root where to search for dependent libraries,and in which our libraries should be installed.
15438 lt_sysroot=$lt_sysroot
15440 # The name of the directory that contains temporary libtool files.
15443 # Used to examine libraries when file_magic_cmd begins with "file".
15444 MAGIC_CMD=$MAGIC_CMD
15446 # Must we lock files when doing compilation?
15447 need_locks=$lt_need_locks
15450 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15452 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15453 DSYMUTIL=$lt_DSYMUTIL
15455 # Tool to change global to local symbols on Mac OS X.
15458 # Tool to manipulate fat objects and archives on Mac OS X.
15461 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15464 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15465 OTOOL64=$lt_OTOOL64
15467 # Old archive suffix (normally "a").
15470 # Shared library suffix (normally ".so").
15471 shrext_cmds=$lt_shrext_cmds
15473 # The commands to extract the exported symbol list from a shared archive.
15474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15476 # Variables whose values should be saved in libtool wrapper scripts and
15477 # restored at link time.
15478 variables_saved_for_relink=$lt_variables_saved_for_relink
15480 # Do we need the "lib" prefix for modules?
15481 need_lib_prefix=$need_lib_prefix
15483 # Do we need a version for libraries?
15484 need_version=$need_version
15486 # Library versioning type.
15487 version_type=$version_type
15489 # Shared library runtime path variable.
15490 runpath_var=$runpath_var
15492 # Shared library path variable.
15493 shlibpath_var=$shlibpath_var
15495 # Is shlibpath searched before the hard-coded library search path?
15496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15498 # Format of library name prefix.
15499 libname_spec=$lt_libname_spec
15501 # List of archive names. First name is the real one, the rest are links.
15502 # The last name is the one that the linker finds with -lNAME
15503 library_names_spec=$lt_library_names_spec
15505 # The coded name of the library, if different from the real name.
15506 soname_spec=$lt_soname_spec
15508 # Permission mode override for installation of shared libraries.
15509 install_override_mode=$lt_install_override_mode
15511 # Command to use after installation of a shared archive.
15512 postinstall_cmds=$lt_postinstall_cmds
15514 # Command to use after uninstallation of a shared archive.
15515 postuninstall_cmds=$lt_postuninstall_cmds
15517 # Commands used to finish a libtool library installation in a directory.
15518 finish_cmds=$lt_finish_cmds
15520 # As "finish_cmds", except a single script fragment to be evaled but
15522 finish_eval=$lt_finish_eval
15524 # Whether we should hardcode library paths into libraries.
15525 hardcode_into_libs=$hardcode_into_libs
15527 # Compile-time system search path for libraries.
15528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15530 # Run-time system search path for libraries.
15531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15533 # Whether dlopen is supported.
15534 dlopen_support=$enable_dlopen
15536 # Whether dlopen of programs is supported.
15537 dlopen_self=$enable_dlopen_self
15539 # Whether dlopen of statically linked programs is supported.
15540 dlopen_self_static=$enable_dlopen_self_static
15542 # Commands to strip libraries.
15543 old_striplib=$lt_old_striplib
15544 striplib=$lt_striplib
15547 # The linker used to build libraries.
15550 # How to create reloadable object files.
15551 reload_flag=$lt_reload_flag
15552 reload_cmds=$lt_reload_cmds
15554 # Commands used to build an old-style archive.
15555 old_archive_cmds=$lt_old_archive_cmds
15557 # A language specific compiler.
15560 # Is the compiler the GNU compiler?
15563 # Compiler flag to turn off builtin functions.
15564 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15566 # Additional compiler flags for building library objects.
15567 pic_flag=$lt_lt_prog_compiler_pic
15569 # How to pass a linker flag through the compiler.
15570 wl=$lt_lt_prog_compiler_wl
15572 # Compiler flag to prevent dynamic linking.
15573 link_static_flag=$lt_lt_prog_compiler_static
15575 # Does compiler simultaneously support -c and -o options?
15576 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15578 # Whether or not to add -lc for building shared libraries.
15579 build_libtool_need_lc=$archive_cmds_need_lc
15581 # Whether or not to disallow shared libs when runtime libs are static.
15582 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15584 # Compiler flag to allow reflexive dlopens.
15585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15587 # Compiler flag to generate shared objects directly from archives.
15588 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15590 # Whether the compiler copes with passing no objects directly.
15591 compiler_needs_object=$lt_compiler_needs_object
15593 # Create an old-style archive from a shared archive.
15594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15596 # Create a temporary old-style archive to link instead of a shared archive.
15597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15599 # Commands used to build a shared archive.
15600 archive_cmds=$lt_archive_cmds
15601 archive_expsym_cmds=$lt_archive_expsym_cmds
15603 # Commands used to build a loadable module if different from building
15604 # a shared archive.
15605 module_cmds=$lt_module_cmds
15606 module_expsym_cmds=$lt_module_expsym_cmds
15608 # Whether we are building with GNU ld or not.
15609 with_gnu_ld=$lt_with_gnu_ld
15611 # Flag that allows shared libraries with undefined symbols to be built.
15612 allow_undefined_flag=$lt_allow_undefined_flag
15614 # Flag that enforces no undefined symbols.
15615 no_undefined_flag=$lt_no_undefined_flag
15617 # Flag to hardcode \$libdir into a binary during linking.
15618 # This must work even if \$libdir does not exist
15619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15621 # Whether we need a single "-rpath" flag with a separated argument.
15622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15625 # DIR into the resulting binary.
15626 hardcode_direct=$hardcode_direct
15628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15629 # DIR into the resulting binary and the resulting library dependency is
15630 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15631 # library is relocated.
15632 hardcode_direct_absolute=$hardcode_direct_absolute
15634 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15635 # into the resulting binary.
15636 hardcode_minus_L=$hardcode_minus_L
15638 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15639 # into the resulting binary.
15640 hardcode_shlibpath_var=$hardcode_shlibpath_var
15642 # Set to "yes" if building a shared library automatically hardcodes DIR
15643 # into the library and all subsequent libraries and executables linked
15645 hardcode_automatic=$hardcode_automatic
15647 # Set to yes if linker adds runtime paths of dependent libraries
15648 # to runtime path list.
15649 inherit_rpath=$inherit_rpath
15651 # Whether libtool must link a program against all its dependency libraries.
15652 link_all_deplibs=$link_all_deplibs
15654 # Set to "yes" if exported symbols are required.
15655 always_export_symbols=$always_export_symbols
15657 # The commands to list exported symbols.
15658 export_symbols_cmds=$lt_export_symbols_cmds
15660 # Symbols that should not be listed in the preloaded symbols.
15661 exclude_expsyms=$lt_exclude_expsyms
15663 # Symbols that must always be exported.
15664 include_expsyms=$lt_include_expsyms
15666 # Commands necessary for linking programs (against libraries) with templates.
15667 prelink_cmds=$lt_prelink_cmds
15669 # Commands necessary for finishing linking programs.
15670 postlink_cmds=$lt_postlink_cmds
15672 # Specify filename containing input files.
15673 file_list_spec=$lt_file_list_spec
15675 # How to hardcode a shared library path into an executable.
15676 hardcode_action=$hardcode_action
15678 # ### END LIBTOOL CONFIG
15684 cat <<\_LT_EOF >> "$cfgfile"
15685 # AIX sometimes has problems with the GCC collect2 program. For some
15686 # reason, if we set the COLLECT_NAMES environment variable, the problems
15687 # vanish in a puff of smoke.
15688 if test "X${COLLECT_NAMES+set}" != Xset; then
15690 export COLLECT_NAMES
15697 ltmain="$ac_aux_dir/ltmain.sh"
15700 # We use sed instead of cat because bash on DJGPP gets confused if
15701 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15702 # text mode, it properly converts lines to CR/LF. This bash problem
15703 # is reportedly fixed, but why not run on old versions too?
15704 sed '$q' "$ltmain" >> "$cfgfile" \
15705 || (rm -f "$cfgfile"; exit 1)
15707 if test x"$xsi_shell" = xyes; then
15708 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15712 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15713 \ * ) func_dirname_result="${3}" ;;\
15715 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15716 && mv -f "$cfgfile.tmp" "$cfgfile" \
15717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15718 test 0 -eq $? || _lt_function_replace_fail=:
15721 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15724 \ func_basename_result="${1##*/}"\
15725 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15726 && mv -f "$cfgfile.tmp" "$cfgfile" \
15727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15728 test 0 -eq $? || _lt_function_replace_fail=:
15731 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15732 func_dirname_and_basename ()\
15735 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15736 \ * ) func_dirname_result="${3}" ;;\
15738 \ func_basename_result="${1##*/}"\
15739 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15740 && mv -f "$cfgfile.tmp" "$cfgfile" \
15741 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15742 test 0 -eq $? || _lt_function_replace_fail=:
15745 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15748 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15749 \ # positional parameters, so assign one to ordinary parameter first.\
15750 \ func_stripname_result=${3}\
15751 \ func_stripname_result=${func_stripname_result#"${1}"}\
15752 \ func_stripname_result=${func_stripname_result%"${2}"}\
15753 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15754 && mv -f "$cfgfile.tmp" "$cfgfile" \
15755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15756 test 0 -eq $? || _lt_function_replace_fail=:
15759 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15760 func_split_long_opt ()\
15762 \ func_split_long_opt_name=${1%%=*}\
15763 \ func_split_long_opt_arg=${1#*=}\
15764 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15765 && mv -f "$cfgfile.tmp" "$cfgfile" \
15766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767 test 0 -eq $? || _lt_function_replace_fail=:
15770 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15771 func_split_short_opt ()\
15773 \ func_split_short_opt_arg=${1#??}\
15774 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15775 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15776 && mv -f "$cfgfile.tmp" "$cfgfile" \
15777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15778 test 0 -eq $? || _lt_function_replace_fail=:
15781 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15785 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15786 \ *) func_lo2o_result=${1} ;;\
15788 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15789 && mv -f "$cfgfile.tmp" "$cfgfile" \
15790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15791 test 0 -eq $? || _lt_function_replace_fail=:
15794 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15797 func_xform_result=${1%.*}.lo\
15798 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15799 && mv -f "$cfgfile.tmp" "$cfgfile" \
15800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15801 test 0 -eq $? || _lt_function_replace_fail=:
15804 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15807 func_arith_result=$(( $* ))\
15808 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15809 && mv -f "$cfgfile.tmp" "$cfgfile" \
15810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15811 test 0 -eq $? || _lt_function_replace_fail=:
15814 sed -e '/^func_len ()$/,/^} # func_len /c\
15817 func_len_result=${#1}\
15818 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15819 && mv -f "$cfgfile.tmp" "$cfgfile" \
15820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15821 test 0 -eq $? || _lt_function_replace_fail=:
15825 if test x"$lt_shell_append" = xyes; then
15826 sed -e '/^func_append ()$/,/^} # func_append /c\
15829 eval "${1}+=\\${2}"\
15830 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15831 && mv -f "$cfgfile.tmp" "$cfgfile" \
15832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15833 test 0 -eq $? || _lt_function_replace_fail=:
15836 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15837 func_append_quoted ()\
15839 \ func_quote_for_eval "${2}"\
15840 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15841 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15842 && mv -f "$cfgfile.tmp" "$cfgfile" \
15843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15844 test 0 -eq $? || _lt_function_replace_fail=:
15847 # Save a `func_append' function call where possible by direct use of '+='
15848 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15849 && mv -f "$cfgfile.tmp" "$cfgfile" \
15850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15851 test 0 -eq $? || _lt_function_replace_fail=:
15853 # Save a `func_append' function call even when '+=' is not available
15854 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15855 && mv -f "$cfgfile.tmp" "$cfgfile" \
15856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15857 test 0 -eq $? || _lt_function_replace_fail=:
15860 if test x"$_lt_function_replace_fail" = x":"; then
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15862 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15866 mv -f "$cfgfile" "$ofile" ||
15867 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15871 "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
15872 sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
15881 ac_clean_files=$ac_clean_files_save
15883 test $ac_write_fail = 0 ||
15884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15887 # configure is writing to config.log, and then calls config.status.
15888 # config.status does its own redirection, appending to config.log.
15889 # Unfortunately, on DOS this fails, as config.log is still kept open
15890 # by configure, so config.status won't be able to write to it; its
15891 # output is simply discarded. So we exec the FD to /dev/null,
15892 # effectively closing config.log, so it can be properly (re)opened and
15893 # appended to by config.status. When coming back to configure, we
15894 # need to make the FD available again.
15895 if test "$no_create" != yes; then
15897 ac_config_status_args=
15898 test "$silent" = yes &&
15899 ac_config_status_args="$ac_config_status_args --quiet"
15901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15904 # would make configure fail if this is the last instruction.
15905 $ac_cs_success || as_fn_exit 1
15907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15913 { $as_echo "$as_me:${as_lineno-$LINENO}:
15915 Library configuration:
15916 external zlib: $have_zlib
15918 libpng: $have_libpng
15919 harfbuzz: $have_harfbuzz
15923 Library configuration:
15924 external zlib: $have_zlib
15926 libpng: $have_libpng
15927 harfbuzz: $have_harfbuzz
15930 # end of configure.raw