2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for FreeType 2.4.9.
5 # Report bugs to <freetype@nongnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: freetype@nongnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='FreeType'
572 PACKAGE_TARNAME='freetype'
573 PACKAGE_VERSION='2.4.9'
574 PACKAGE_STRING='FreeType 2.4.9'
575 PACKAGE_BUGREPORT='freetype@nongnu.org'
578 ac_unique_file="ftconfig.in"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
616 ac_subst_vars='LTLIBOBJS
620 hardcode_libdir_flag_spec
705 program_transform_name
718 enable_option_checking
726 with_quickdraw_toolbox
727 with_quickdraw_carbon
737 ac_precious_vars='build_alias
748 # Initialize some variables set by options.
750 ac_init_version=false
751 ac_unrecognized_opts=
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
762 program_transform_name=s,x,x,
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error $? "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
865 eval enable_$ac_useropt=no ;;
867 -docdir | --docdir | --docdi | --doc | --do)
869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 -enable-* | --enable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error $? "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
891 eval enable_$ac_useropt=\$ac_optarg ;;
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
906 -help | --help | --hel | --he | -h)
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 htmldir=$ac_optarg ;;
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
936 -libdir | --libdir | --libdi | --libd)
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
948 -localedir | --localedir | --localedi | --localed | --locale)
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 # Obsolete; use --without-fp.
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1027 -psdir | --psdir | --psdi | --psd | --ps)
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 sbindir=$ac_optarg ;;
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 sharedstatedir=$ac_optarg ;;
1053 -site | --site | --sit)
1055 -site=* | --site=* | --sit=*)
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1095 eval with_$ac_useropt=\$ac_optarg ;;
1097 -without-* | --without-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=no ;;
1114 # Obsolete; use --with-x.
1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118 | --x-incl | --x-inc | --x-in | --x-i)
1119 ac_prev=x_includes ;;
1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122 x_includes=$ac_optarg ;;
1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126 ac_prev=x_libraries ;;
1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129 x_libraries=$ac_optarg ;;
1131 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information"
1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 case $ac_envvar in #(
1139 '' | [0-9]* | *[!_$as_cr_alnum]* )
1140 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142 eval $ac_envvar=\$ac_optarg
1143 export $ac_envvar ;;
1146 # FIXME: should be removed in autoconf 3.0.
1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1156 if test -n "$ac_prev"; then
1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158 as_fn_error $? "missing argument to $ac_option"
1161 if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1164 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 # Check all directory arguments for consistency.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val=\$$ac_var
1176 # Remove trailing slashes.
1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\$ac_val;;
1182 # Be sure to have absolute directory names.
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used" >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $? "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $? "pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1288 \`configure' configures FreeType 2.4.9 to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1346 --build=BUILD configure for building on BUILD [guessed]
1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351 if test -n "$ac_init_help"; then
1352 case $ac_init_help in
1353 short | recursive ) echo "Configuration of FreeType 2.4.9:";;
1358 --disable-option-checking ignore unrecognized --enable/--with options
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --enable-biarch-config install biarch ftconfig.h to support multiple
1362 architectures by single file
1363 --disable-mmap do not check mmap() and do not use
1364 --enable-shared[=PKGS] build shared libraries [default=yes]
1365 --enable-static[=PKGS] build static libraries [default=yes]
1366 --enable-fast-install[=PKGS]
1367 optimize for fast installation [default=yes]
1368 --disable-libtool-lock avoid locking (might break parallel builds)
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --without-zlib use internal zlib instead of system-wide
1374 --without-bzip2 do not support bzip2 compressed fonts
1375 --with-old-mac-fonts allow Mac resource-based fonts to be used
1376 --with-fsspec use obsolete FSSpec API of MacOS, if available
1378 --with-fsref use Carbon FSRef API of MacOS, if available
1380 --with-quickdraw-toolbox
1381 use MacOS QuickDraw in ToolBox, if available
1383 --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1385 --with-ats use AppleTypeService, if available (default=yes)
1386 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1388 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1389 --with-sysroot=DIR Search for dependent libraries within DIR
1390 (or the compiler's sysroot if not specified).
1392 Some influential environment variables:
1393 CC C compiler command
1394 CFLAGS C compiler flags
1395 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1396 nonstandard directory <lib dir>
1397 LIBS libraries to pass to the linker, e.g. -l<library>
1398 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1399 you have headers in a nonstandard directory <include dir>
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to <freetype@nongnu.org>.
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1435 .) # We are building in place.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1468 FreeType configure 2.4.9
1469 generated by GNU Autoconf 2.68
1471 Copyright (C) 2010 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1482 # ac_fn_c_try_compile LINENO
1483 # --------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_compile ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 rm -f conftest.$ac_objext
1489 if { { ac_try="$ac_compile"
1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_compile") 2>conftest.err
1498 if test -s conftest.err; then
1499 grep -v '^ *+' conftest.err >conftest.er1
1500 cat conftest.er1 >&5
1501 mv -f conftest.er1 conftest.err
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } && {
1505 test -z "$ac_c_werror_flag" ||
1506 test ! -s conftest.err
1507 } && test -s conftest.$ac_objext; then :
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516 as_fn_set_status $ac_retval
1518 } # ac_fn_c_try_compile
1520 # ac_fn_c_try_cpp LINENO
1521 # ----------------------
1522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 if { { ac_try="$ac_cpp conftest.$ac_ext"
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } > conftest.i && {
1542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1557 # ac_fn_c_try_run LINENO
1558 # ----------------------
1559 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1560 # that executables *can* be run.
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 if { { ac_try="$ac_link"
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_link") 2>&5
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1575 { { case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_try") 2>&5
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; }; }; then :
1587 $as_echo "$as_me: program exited with status $ac_status" >&5
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=$ac_status
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1599 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602 # the include files in INCLUDES and setting the cache variable VAR
1604 ac_fn_c_check_header_mongrel ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if eval \${$3+:} false; then :
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if eval \${$3+:} false; then :
1611 $as_echo_n "(cached) " >&6
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1617 # Is the header compilable?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619 $as_echo_n "checking $2 usability... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 ac_header_compiler=yes
1628 ac_header_compiler=no
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632 $as_echo "$ac_header_compiler" >&6; }
1634 # Is the header present?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636 $as_echo_n "checking $2 presence... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1641 if ac_fn_c_try_cpp "$LINENO"; then :
1642 ac_header_preproc=yes
1644 ac_header_preproc=no
1646 rm -f conftest.err conftest.i conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648 $as_echo "$ac_header_preproc" >&6; }
1650 # So? What about this header?
1651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1662 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1666 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ( $as_echo "## ---------------------------------- ##
1670 ## Report this to freetype@nongnu.org ##
1671 ## ---------------------------------- ##"
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1680 eval "$3=\$ac_header_compiler"
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 } # ac_fn_c_check_header_mongrel
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1707 if ac_fn_c_try_compile "$LINENO"; then :
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_compile
1721 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1722 # --------------------------------------------
1723 # Tries to find the compile-time value of EXPR in a program that includes
1724 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1726 ac_fn_c_compute_int ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if test "$cross_compiling" = yes; then
1730 # Depending upon the size, compute the lo and hi bounds.
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1737 static int test_array [1 - 2 * !(($2) >= 0)];
1744 if ac_fn_c_try_compile "$LINENO"; then :
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1753 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 ac_hi=$ac_mid; break
1763 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1764 if test $ac_lo -le $ac_mid; then
1768 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1779 static int test_array [1 - 2 * !(($2) < 0)];
1786 if ac_fn_c_try_compile "$LINENO"; then :
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 ac_lo=$ac_mid; break
1805 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1806 if test $ac_mid -le $ac_hi; then
1810 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 # Binary search between lo and hi bounds.
1821 while test "x$ac_lo" != "x$ac_hi"; do
1822 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1829 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1836 if ac_fn_c_try_compile "$LINENO"; then :
1839 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1851 static long int longval () { return $2; }
1852 static unsigned long int ulongval () { return $2; }
1859 FILE *f = fopen ("conftest.val", "w");
1864 long int i = longval ();
1867 fprintf (f, "%ld", i);
1871 unsigned long int i = ulongval ();
1874 fprintf (f, "%lu", i);
1876 /* Do not output a trailing newline, as this causes \r\n confusion
1877 on some platforms. */
1878 return ferror (f) || fclose (f) != 0;
1884 if ac_fn_c_try_run "$LINENO"; then :
1885 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1890 conftest.$ac_objext conftest.beam conftest.$ac_ext
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1897 } # ac_fn_c_compute_int
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 $as_test_x conftest$ac_exeext
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_c_try_link
1945 # ac_fn_c_check_func LINENO FUNC VAR
1946 # ----------------------------------
1947 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1948 ac_fn_c_check_func ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1960 #define $2 innocuous_$2
1962 /* System header to define __stub macros and hopefully few prototypes,
1963 which can conflict with char $2 (); below.
1964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1965 <limits.h> exists even on freestanding compilers. */
1968 # include <limits.h>
1970 # include <assert.h>
1975 /* Override any GCC internal prototype to avoid an error.
1976 Use char because int might match the return type of a GCC
1977 builtin and then its argument prototype would still apply. */
1982 /* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985 #if defined __stub_$2 || defined __stub___$2
1997 if ac_fn_c_try_link "$LINENO"; then :
2002 rm -f core conftest.err conftest.$ac_objext \
2003 conftest$ac_exeext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_func
2012 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2013 # ---------------------------------------------
2014 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2016 ac_fn_c_check_decl ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 as_decl_name=`echo $2|sed 's/ *(.*//'`
2020 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2022 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2032 #ifndef $as_decl_name
2034 (void) $as_decl_use;
2036 (void) $as_decl_name;
2044 if ac_fn_c_try_compile "$LINENO"; then :
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_decl
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2061 It was created by FreeType $as_me 2.4.9, which was
2062 generated by GNU Autoconf 2.68. Invocation command line was
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2083 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 $as_echo "PATH: $as_dir"
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_must_keep_next=false
2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138 as_fn_append ac_configure_args1 " '$ac_arg'"
2139 if test $ac_must_keep_next = true; then
2140 ac_must_keep_next=false # Got value, back to normal.
2143 *=* | --config-cache | -C | -disable-* | --disable-* \
2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146 | -with-* | --with-* | -without-* | --without-* | --x)
2147 case "$ac_configure_args0 " in
2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151 -* ) ac_must_keep_next=true ;;
2154 as_fn_append ac_configure_args " '$ac_arg'"
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log. We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168 # Save into config.log some information that might help in debugging.
2172 $as_echo "## ---------------- ##
2173 ## Cache variables. ##
2174 ## ---------------- ##"
2176 # The following way of writing the cache mishandles newlines in values,
2178 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2179 eval ac_val=\$$ac_var
2183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 _ | IFS | as_nl) ;; #(
2188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2189 *) { eval $ac_var=; unset $ac_var;} ;;
2194 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2195 *${as_nl}ac_space=\ *)
2197 "s/'\''/'\''\\\\'\'''\''/g;
2198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208 $as_echo "## ----------------- ##
2209 ## Output variables. ##
2210 ## ----------------- ##"
2212 for ac_var in $ac_subst_vars
2214 eval ac_val=\$$ac_var
2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 $as_echo "$ac_var='\''$ac_val'\''"
2222 if test -n "$ac_subst_files"; then
2223 $as_echo "## ------------------- ##
2224 ## File substitutions. ##
2225 ## ------------------- ##"
2227 for ac_var in $ac_subst_files
2229 eval ac_val=\$$ac_var
2231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 $as_echo "$ac_var='\''$ac_val'\''"
2238 if test -s confdefs.h; then
2239 $as_echo "## ----------- ##
2246 test "$ac_signal" != 0 &&
2247 $as_echo "$as_me: caught signal $ac_signal"
2248 $as_echo "$as_me: exit $exit_status"
2250 rm -f core *.core core.conftest.* &&
2251 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 for ac_signal in 1 2 13 15; do
2255 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2262 $as_echo "/* confdefs.h */" > confdefs.h
2264 # Predefined preprocessor variables.
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_URL "$PACKAGE_URL"
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2295 if test -n "$CONFIG_SITE"; then
2296 # We do not want a PATH search for config.site.
2297 case $CONFIG_SITE in #((
2298 -*) ac_site_file1=./$CONFIG_SITE;;
2299 */*) ac_site_file1=$CONFIG_SITE;;
2300 *) ac_site_file1=./$CONFIG_SITE;;
2302 elif test "x$prefix" != xNONE; then
2303 ac_site_file1=$prefix/share/config.site
2304 ac_site_file2=$prefix/etc/config.site
2306 ac_site_file1=$ac_default_prefix/share/config.site
2307 ac_site_file2=$ac_default_prefix/etc/config.site
2309 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2311 test "x$ac_site_file" = xNONE && continue
2312 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2315 sed 's/^/| /' "$ac_site_file" >&5
2317 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 as_fn_error $? "failed to load site script $ac_site_file
2320 See \`config.log' for more details" "$LINENO" 5; }
2324 if test -r "$cache_file"; then
2325 # Some versions of bash will fail to source /dev/null (special files
2326 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2327 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2329 $as_echo "$as_me: loading cache $cache_file" >&6;}
2331 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332 *) . "./$cache_file";;
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2337 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341 as_fn_append ac_header_list " stdlib.h"
2342 as_fn_append ac_header_list " unistd.h"
2343 as_fn_append ac_header_list " sys/param.h"
2344 # Check that the precious variables saved in the cache have kept the same
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349 eval ac_new_set=\$ac_env_${ac_var}_set
2350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351 eval ac_new_val=\$ac_env_${ac_var}_value
2352 case $ac_old_set,$ac_new_set in
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2363 if test "x$ac_old_val" != "x$ac_new_val"; then
2364 # differences in whitespace do not lead to failure.
2365 ac_old_val_w=`echo x $ac_old_val`
2366 ac_new_val_w=`echo x $ac_new_val`
2367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370 ac_cache_corrupted=:
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374 eval $ac_var=\$ac_old_val
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2377 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2382 # Pass precious variables to config.status.
2383 if test "$ac_new_set" = set; then
2385 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 *) ac_arg=$ac_var=$ac_new_val ;;
2388 case " $ac_configure_args " in
2389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2394 if $ac_cache_corrupted; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 # Don't forget to update docs/VERSION.DLL!
2417 version_info='14:1:8'
2419 ft_version=`echo $version_info | tr : .`
2423 # checks for system type
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427 if test -f "$ac_dir/install-sh"; then
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2431 elif test -f "$ac_dir/install.sh"; then
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2435 elif test -f "$ac_dir/shtool"; then
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2459 $as_echo_n "checking build system type... " >&6; }
2460 if ${ac_cv_build+:} false; then :
2461 $as_echo_n "(cached) " >&6
2463 ac_build_alias=$build_alias
2464 test "x$ac_build_alias" = x &&
2465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2466 test "x$ac_build_alias" = x &&
2467 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2468 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2473 $as_echo "$ac_cv_build" >&6; }
2474 case $ac_cv_build in
2476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2479 ac_save_IFS=$IFS; IFS='-'
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2489 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2493 $as_echo_n "checking host system type... " >&6; }
2494 if ${ac_cv_host+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 if test "x$host_alias" = x; then
2498 ac_cv_host=$ac_cv_build
2500 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2506 $as_echo "$ac_cv_host" >&6; }
2509 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2512 ac_save_IFS=$IFS; IFS='-'
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2522 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2527 # checks for programs
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_CC+:} false; then :
2540 $as_echo_n "(cached) " >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2565 $as_echo "$CC" >&6; }
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2573 if test -z "$ac_cv_prog_CC"; then
2575 # Extract the first word of "gcc", so it can be a program name with args.
2576 set dummy gcc; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_CC="gcc"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603 if test -n "$ac_ct_CC"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2605 $as_echo "$ac_ct_CC" >&6; }
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2611 if test "x$ac_ct_CC" = x; then
2614 case $cross_compiling:$ac_tool_warned in
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618 ac_tool_warned=yes ;;
2626 if test -z "$CC"; then
2627 if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}cc; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_CC+:} false; then :
2633 $as_echo_n "(cached) " >&6
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_CC="${ac_tool_prefix}cc"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 if test -n "$CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2658 $as_echo "$CC" >&6; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2667 if test -z "$CC"; then
2668 # Extract the first word of "cc", so it can be a program name with args.
2669 set dummy cc; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_CC+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 if test -n "$CC"; then
2676 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2687 ac_prog_rejected=yes
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 if test $ac_prog_rejected = yes; then
2699 # We found a bogon in the path, so make sure we never use it.
2700 set dummy $ac_cv_prog_CC
2702 if test $# != 0; then
2703 # We chose a different compiler from the bogus one.
2704 # However, it has the same basename, so the bogon will be chosen
2705 # first if we set CC to just the basename; use the full file name.
2707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2723 if test -z "$CC"; then
2724 if test -n "$ac_tool_prefix"; then
2725 for ac_prog in cl.exe
2727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_CC+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test -n "$CC"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 $as_echo "$CC" >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2764 test -n "$CC" && break
2767 if test -z "$CC"; then
2769 for ac_prog in cl.exe
2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_CC="$ac_prog"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801 $as_echo "$ac_ct_CC" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2808 test -n "$ac_ct_CC" && break
2811 if test "x$ac_ct_CC" = x; then
2814 case $cross_compiling:$ac_tool_warned in
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2818 ac_tool_warned=yes ;;
2827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829 as_fn_error $? "no acceptable C compiler found in \$PATH
2830 See \`config.log' for more details" "$LINENO" 5; }
2832 # Provide some information about the compiler.
2833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2836 for ac_option in --version -v -V -qversion; do
2837 { { ac_try="$ac_compiler $ac_option >&5"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2846 if test -s conftest.err; then
2848 ... rest of stderr output deleted ...
2849 10q' conftest.err >conftest.er1
2850 cat conftest.er1 >&5
2852 rm -f conftest.er1 conftest.err
2853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854 test $ac_status = 0; }
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2868 ac_clean_files_save=$ac_clean_files
2869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2870 # Try to create an executable without -o first, disregard a.out.
2871 # It will help us diagnose broken compilers, and finding out an intuition
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2874 $as_echo_n "checking whether the C compiler works... " >&6; }
2875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2877 # The possible output files:
2878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2881 for ac_file in $ac_files
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890 if { { ac_try="$ac_link_default"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_link_default") 2>&5
2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900 test $ac_status = 0; }; then :
2901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2904 # so that the user can short-circuit this test for compilers unknown to
2906 for ac_file in $ac_files ''
2908 test -f "$ac_file" || continue
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2913 # We found the default executable, but exeext='' is most
2917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 # We set ac_cv_exeext here because the later test for it is not
2922 # safe: cross compilers may not add the suffix if given an `-o'
2923 # argument, so we may need to know it at that point already.
2924 # Even if this section looks crufty: it has the advantage of
2931 test "$ac_cv_exeext" = no && ac_cv_exeext=
2936 if test -z "$ac_file"; then :
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 $as_echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 as_fn_error 77 "C compiler cannot create executables
2945 See \`config.log' for more details" "$LINENO" 5; }
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2951 $as_echo_n "checking for C compiler default output file name... " >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2953 $as_echo "$ac_file" >&6; }
2954 ac_exeext=$ac_cv_exeext
2956 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2957 ac_clean_files=$ac_clean_files_save
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2959 $as_echo_n "checking for suffix of executables... " >&6; }
2960 if { { ac_try="$ac_link"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_link") 2>&5
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }; then :
2971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2972 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2973 # work properly (i.e., refer to `conftest.exe'), while it won't with
2975 for ac_file in conftest.exe conftest conftest.*; do
2976 test -f "$ac_file" || continue
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2988 See \`config.log' for more details" "$LINENO" 5; }
2990 rm -f conftest conftest$ac_cv_exeext
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2992 $as_echo "$ac_cv_exeext" >&6; }
2994 rm -f conftest.$ac_ext
2995 EXEEXT=$ac_cv_exeext
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
3003 FILE *f = fopen ("conftest.out", "w");
3004 return ferror (f) || fclose (f) != 0;
3010 ac_clean_files="$ac_clean_files conftest.out"
3011 # Check that the compiler produces executables we can run. If not, either
3012 # the compiler is broken, or we cross compile.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3014 $as_echo_n "checking whether we are cross compiling... " >&6; }
3015 if test "$cross_compiling" != yes; then
3016 { { ac_try="$ac_link"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_link") 2>&5
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }
3027 if { ac_try='./conftest$ac_cv_exeext'
3028 { { case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_try") 2>&5
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; }; then
3040 if test "$cross_compiling" = maybe; then
3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "cannot run C compiled programs.
3046 If you meant to cross compile, use \`--host'.
3047 See \`config.log' for more details" "$LINENO" 5; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3052 $as_echo "$cross_compiling" >&6; }
3054 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3055 ac_clean_files=$ac_clean_files_save
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3057 $as_echo_n "checking for suffix of object files... " >&6; }
3058 if ${ac_cv_objext+:} false; then :
3059 $as_echo_n "(cached) " >&6
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3072 rm -f conftest.o conftest.obj
3073 if { { ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_compile") 2>&5
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 for ac_file in conftest.o conftest.obj conftest.*; do
3085 test -f "$ac_file" || continue;
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3093 $as_echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $? "cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details" "$LINENO" 5; }
3101 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3104 $as_echo "$ac_cv_objext" >&6; }
3105 OBJEXT=$ac_cv_objext
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3108 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3109 if ${ac_cv_c_compiler_gnu+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3126 if ac_fn_c_try_compile "$LINENO"; then :
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3136 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3137 if test $ac_compiler_gnu = yes; then
3142 ac_test_CFLAGS=${CFLAGS+set}
3143 ac_save_CFLAGS=$CFLAGS
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3145 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3146 if ${ac_cv_prog_cc_g+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 ac_save_c_werror_flag=$ac_c_werror_flag
3150 ac_c_werror_flag=yes
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3164 if ac_fn_c_try_compile "$LINENO"; then :
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3179 if ac_fn_c_try_compile "$LINENO"; then :
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3195 if ac_fn_c_try_compile "$LINENO"; then :
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3206 $as_echo "$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3216 if test "$GCC" = yes; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3223 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3224 if ${ac_cv_prog_cc_c89+:} false; then :
3225 $as_echo_n "(cached) " >&6
3227 ac_cv_prog_cc_c89=no
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3249 s = g (p, va_arg (v,int));
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 CC="$ac_save_CC $ac_arg"
3286 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_cv_prog_cc_c89=$ac_arg
3289 rm -f core conftest.err conftest.$ac_objext
3290 test "x$ac_cv_prog_cc_c89" != "xno" && break
3292 rm -f conftest.$ac_ext
3297 case "x$ac_cv_prog_cc_c89" in
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3300 $as_echo "none needed" >&6; } ;;
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3303 $as_echo "unsupported" >&6; } ;;
3305 CC="$CC $ac_cv_prog_cc_c89"
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3309 if test "x$ac_cv_prog_cc_c89" != xno; then :
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3326 # On Suns, sometimes $CPP names a directory.
3327 if test -n "$CPP" && test -d "$CPP"; then
3330 if test -z "$CPP"; then
3331 if ${ac_cv_prog_CPP+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 # Double quotes because CPP needs to be expanded
3335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3338 for ac_c_preproc_warn_flag in '' yes
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
3344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3349 # include <limits.h>
3351 # include <assert.h>
3355 if ac_fn_c_try_cpp "$LINENO"; then :
3358 # Broken: fails on valid input.
3361 rm -f conftest.err conftest.i conftest.$ac_ext
3363 # OK, works on sane cases. Now check whether nonexistent headers
3364 # can be detected and how.
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <ac_nonexistent.h>
3369 if ac_fn_c_try_cpp "$LINENO"; then :
3370 # Broken: success on invalid input.
3373 # Passes both tests.
3377 rm -f conftest.err conftest.i conftest.$ac_ext
3380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3381 rm -f conftest.i conftest.err conftest.$ac_ext
3382 if $ac_preproc_ok; then :
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3395 $as_echo "$CPP" >&6; }
3397 for ac_c_preproc_warn_flag in '' yes
3399 # Use a header file that comes with gcc, so configuring glibc
3400 # with a fresh cross-compiler works.
3401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402 # <limits.h> exists even on freestanding compilers.
3403 # On the NeXT, cc -E runs the code through the compiler's parser,
3404 # not just through cpp. "Syntax error" is here to catch this case.
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3408 # include <limits.h>
3410 # include <assert.h>
3414 if ac_fn_c_try_cpp "$LINENO"; then :
3417 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.i conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3428 if ac_fn_c_try_cpp "$LINENO"; then :
3429 # Broken: success on invalid input.
3432 # Passes both tests.
3436 rm -f conftest.err conftest.i conftest.$ac_ext
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.i conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then :
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details" "$LINENO" 5; }
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 # checks for native programs to generate building tool
3461 if test ${cross_compiling} = yes; then
3462 # Extract the first word of "${build}-gcc", so it can be a program name with args.
3463 set dummy ${build}-gcc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC_BUILD+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$CC_BUILD"; then
3470 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_CC_BUILD="${build}-gcc"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 CC_BUILD=$ac_cv_prog_CC_BUILD
3490 if test -n "$CC_BUILD"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3492 $as_echo "$CC_BUILD" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC_BUILD+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$CC_BUILD"; then
3507 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_CC_BUILD="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 CC_BUILD=$ac_cv_prog_CC_BUILD
3527 if test -n "$CC_BUILD"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3529 $as_echo "$CC_BUILD" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3536 test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
3537 set dummy cc; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC_BUILD+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$CC_BUILD"; then
3544 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3555 ac_prog_rejected=yes
3558 ac_cv_prog_CC_BUILD="cc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 if test $ac_prog_rejected = yes; then
3567 # We found a bogon in the path, so make sure we never use it.
3568 set dummy $ac_cv_prog_CC_BUILD
3570 if test $# != 0; then
3571 # We chose a different compiler from the bogus one.
3572 # However, it has the same basename, so the bogon will be chosen
3573 # first if we set CC_BUILD to just the basename; use the full file name.
3575 ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
3580 CC_BUILD=$ac_cv_prog_CC_BUILD
3581 if test -n "$CC_BUILD"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3583 $as_echo "$CC_BUILD" >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3590 test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
3593 $as_echo_n "checking for suffix of native executables... " >&6; }
3594 rm -f a.* b.* a_out.exe conftest.*
3595 echo > conftest.c "int main() { return 0;}"
3596 ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
3598 if test -x a.out -o -x b.out -o -x conftest; then
3600 elif test -x a_out.exe -o -x conftest.exe; then
3602 elif test -x conftest.*; then
3603 EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
3605 rm -f a.* b.* a_out.exe conftest.*
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
3607 $as_echo "$EXEEXT_BUILD" >&6; }
3610 EXEEXT_BUILD=${EXEEXT}
3618 # get compiler flags right
3620 if test "x$GCC" = xyes; then
3622 XX_ANSIFLAGS="-pedantic -ansi"
3627 XX_CFLAGS="-std1 -g3"
3640 # auxiliary programs
3642 # Extract the first word of "rm", so it can be a program name with args.
3643 set dummy rm; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_RMF+:} false; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$RMF"; then
3650 ac_cv_prog_RMF="$RMF" # Let the user override the test.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_RMF="rm -f"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test -n "$RMF"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMF" >&5
3672 $as_echo "$RMF" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 # Extract the first word of "rmdir", so it can be a program name with args.
3680 set dummy rmdir; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if ${ac_cv_prog_RMDIR+:} false; then :
3684 $as_echo_n "(cached) " >&6
3686 if test -n "$RMDIR"; then
3687 ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_RMDIR="rmdir"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 RMDIR=$ac_cv_prog_RMDIR
3707 if test -n "$RMDIR"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3709 $as_echo "$RMDIR" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3718 # Since this file will be finally moved to another directory we make
3719 # the path of the install script absolute. This small code snippet has
3720 # been taken from automake's `ylwrap' script.
3722 # Find a good install program. We prefer a C program (faster),
3723 # so one script is as good as another. But avoid the broken or
3724 # incompatible versions:
3725 # SysV /etc/install, /usr/sbin/install
3726 # SunOS /usr/etc/install
3727 # IRIX /sbin/install
3729 # AmigaOS /C/install, which installs bootblocks on floppy discs
3730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3733 # OS/2's system install, which has a completely different semantic
3734 # ./install, which can be erroneously created by make from ./install.sh.
3735 # Reject install programs that cannot install multiple files.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3737 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3738 if test -z "$INSTALL"; then
3739 if ${ac_cv_path_install+:} false; then :
3740 $as_echo_n "(cached) " >&6
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir=.
3747 # Account for people who put trailing slashes in PATH elements.
3748 case $as_dir/ in #((
3749 ./ | .// | /[cC]/* | \
3750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3751 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3754 # OSF1 and SCO ODT 3.0 have their own names for install.
3755 # Don't use installbsd from OSF since it installs stuff as root
3757 for ac_prog in ginstall scoinst install; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3760 if test $ac_prog = install &&
3761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762 # AIX install. It has an incompatible calling convention.
3764 elif test $ac_prog = install &&
3765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766 # program-specific install script used by HP pwplus--don't use.
3769 rm -rf conftest.one conftest.two conftest.dir
3770 echo one > conftest.one
3771 echo two > conftest.two
3773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3774 test -s conftest.one && test -s conftest.two &&
3775 test -s conftest.dir/conftest.one &&
3776 test -s conftest.dir/conftest.two
3778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3791 rm -rf conftest.one conftest.two conftest.dir
3794 if test "${ac_cv_path_install+set}" = set; then
3795 INSTALL=$ac_cv_path_install
3797 # As a last resort, use the slow shell script. Don't cache a
3798 # value for INSTALL within a source directory, because that will
3799 # break other packages using the cache if that directory is
3800 # removed, or if the value is a relative name.
3801 INSTALL=$ac_install_sh
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3805 $as_echo "$INSTALL" >&6; }
3807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3808 # It thinks the first close brace ends the variable substitution.
3809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3819 INSTALL="`pwd`/$INSTALL"
3824 # checks for header files
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3829 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3830 if ${ac_cv_path_GREP+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -z "$GREP"; then
3834 ac_path_GREP_found=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in grep ggrep; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3845 # Check for GNU ac_path_GREP and select it if it is found.
3846 # Check for GNU $ac_path_GREP
3847 case `"$ac_path_GREP" --version 2>&1` in
3849 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3852 $as_echo_n 0123456789 >"conftest.in"
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 $as_echo 'GREP' >> "conftest.nl"
3859 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861 as_fn_arith $ac_count + 1 && ac_count=$as_val
3862 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_GREP="$ac_path_GREP"
3865 ac_path_GREP_max=$ac_count
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3873 $ac_path_GREP_found && break 3
3878 if test -z "$ac_cv_path_GREP"; then
3879 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3882 ac_cv_path_GREP=$GREP
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3887 $as_echo "$ac_cv_path_GREP" >&6; }
3888 GREP="$ac_cv_path_GREP"
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3892 $as_echo_n "checking for egrep... " >&6; }
3893 if ${ac_cv_path_EGREP+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3897 then ac_cv_path_EGREP="$GREP -E"
3899 if test -z "$EGREP"; then
3900 ac_path_EGREP_found=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in egrep; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3911 # Check for GNU ac_path_EGREP and select it if it is found.
3912 # Check for GNU $ac_path_EGREP
3913 case `"$ac_path_EGREP" --version 2>&1` in
3915 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3918 $as_echo_n 0123456789 >"conftest.in"
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 $as_echo 'EGREP' >> "conftest.nl"
3925 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 as_fn_arith $ac_count + 1 && ac_count=$as_val
3928 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_EGREP="$ac_path_EGREP"
3931 ac_path_EGREP_max=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 $ac_path_EGREP_found && break 3
3944 if test -z "$ac_cv_path_EGREP"; then
3945 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3948 ac_cv_path_EGREP=$EGREP
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3954 $as_echo "$ac_cv_path_EGREP" >&6; }
3955 EGREP="$ac_cv_path_EGREP"
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3959 $as_echo_n "checking for ANSI C header files... " >&6; }
3960 if ${ac_cv_header_stdc+:} false; then :
3961 $as_echo_n "(cached) " >&6
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979 ac_cv_header_stdc=yes
3981 ac_cv_header_stdc=no
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 if test $ac_cv_header_stdc = yes; then
3986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "memchr" >/dev/null 2>&1; then :
3996 ac_cv_header_stdc=no
4002 if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "free" >/dev/null 2>&1; then :
4013 ac_cv_header_stdc=no
4019 if test $ac_cv_header_stdc = yes; then
4020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4021 if test "$cross_compiling" = yes; then :
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4028 #if ((' ' & 0x0FF) == 0x020)
4029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4032 # define ISLOWER(c) \
4033 (('a' <= (c) && (c) <= 'i') \
4034 || ('j' <= (c) && (c) <= 'r') \
4035 || ('s' <= (c) && (c) <= 'z'))
4036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4044 for (i = 0; i < 256; i++)
4045 if (XOR (islower (i), ISLOWER (i))
4046 || toupper (i) != TOUPPER (i))
4051 if ac_fn_c_try_run "$LINENO"; then :
4054 ac_cv_header_stdc=no
4056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4057 conftest.$ac_objext conftest.beam conftest.$ac_ext
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4063 $as_echo "$ac_cv_header_stdc" >&6; }
4064 if test $ac_cv_header_stdc = yes; then
4066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4072 inttypes.h stdint.h unistd.h
4074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4078 cat >>confdefs.h <<_ACEOF
4079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4087 for ac_header in fcntl.h unistd.h
4089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4092 cat >>confdefs.h <<_ACEOF
4093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102 # checks for typedefs, structures, and compiler characteristics
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4105 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4106 if ${ac_cv_c_const+:} false; then :
4107 $as_echo_n "(cached) " >&6
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4115 /* FIXME: Include the comments suggested by Paul. */
4117 /* Ultrix mips cc rejects this. */
4118 typedef int charset[2];
4120 /* SunOS 4.1.1 cc rejects this. */
4121 char const *const *pcpcc;
4123 /* NEC SVR4.0.2 mips cc rejects this. */
4124 struct point {int x, y;};
4125 static struct point const zero = {0,0};
4126 /* AIX XL C 1.02.0.0 rejects this.
4127 It does not let you subtract one const X* pointer from another in
4128 an arm of an if-expression whose if-part is not a constant
4130 const char *g = "string";
4131 pcpcc = &g + (g ? g-g : 0);
4132 /* HPUX 7.0 cc rejects these. */
4134 ppc = (char**) pcpcc;
4135 pcpcc = (char const *const *) ppc;
4136 { /* SCO 3.2v4 cc rejects this. */
4138 char const *s = 0 ? (char *) 0 : (char const *) 0;
4143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4145 const int *foo = &x[0];
4148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4149 typedef const int *iptr;
4153 { /* AIX XL C 1.02.0.0 rejects this saying
4154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4155 struct s { int j; const int *ap[3]; };
4156 struct s *b; b->j = 5;
4158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4162 return !cs[0] && !zero.x;
4169 if ac_fn_c_try_compile "$LINENO"; then :
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4177 $as_echo "$ac_cv_c_const" >&6; }
4178 if test $ac_cv_c_const = no; then
4180 $as_echo "#define const /**/" >>confdefs.h
4184 # The cast to long int works around a bug in the HP C Compiler
4185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4187 # This bug is HP SR number 8606223364.
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4189 $as_echo_n "checking size of int... " >&6; }
4190 if ${ac_cv_sizeof_int+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4196 if test "$ac_cv_type_int" = yes; then
4197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199 as_fn_error 77 "cannot compute sizeof (int)
4200 See \`config.log' for more details" "$LINENO" 5; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4208 $as_echo "$ac_cv_sizeof_int" >&6; }
4212 cat >>confdefs.h <<_ACEOF
4213 #define SIZEOF_INT $ac_cv_sizeof_int
4217 # The cast to long int works around a bug in the HP C Compiler
4218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4220 # This bug is HP SR number 8606223364.
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4222 $as_echo_n "checking size of long... " >&6; }
4223 if ${ac_cv_sizeof_long+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4229 if test "$ac_cv_type_long" = yes; then
4230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232 as_fn_error 77 "cannot compute sizeof (long)
4233 See \`config.log' for more details" "$LINENO" 5; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4241 $as_echo "$ac_cv_sizeof_long" >&6; }
4245 cat >>confdefs.h <<_ACEOF
4246 #define SIZEOF_LONG $ac_cv_sizeof_long
4252 # check whether cpp computation of size of int and long in ftconfig.in works
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.in works" >&5
4255 $as_echo_n "checking whether cpp computation of bit length in ftconfig.in works... " >&6; }
4256 orig_CPPFLAGS="${CPPFLAGS}"
4257 CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
4258 ac_clean_files="ft2build.h ftoption.h ftstdlib.h"
4259 touch ft2build.h ftoption.h ftstdlib.h
4261 cat > conftest.c <<\_ACEOF
4263 #define FT_CONFIG_OPTIONS_H "ftoption.h"
4264 #define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
4265 #define FT_UINT_MAX UINT_MAX
4266 #define FT_ULONG_MAX ULONG_MAX
4267 #include "ftconfig.in"
4269 echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
4270 echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
4271 echo >> conftest.c "#endif"
4272 echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
4273 echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
4274 echo >> conftest.c "#endif"
4276 ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
4277 eval `cat conftest.sh`
4278 ${RMF} conftest.c conftest.sh confft2build.h ftoption.h ftstdlib.h
4280 if test x != "x${ac_cpp_ft_sizeof_int}" \
4281 -a x != x"${ac_cpp_ft_sizeof_long}"; then
4282 unset ft_use_autoconf_sizeof_types
4284 ft_use_autoconf_sizeof_types=yes
4287 # Check whether --enable-biarch-config was given.
4288 if test "${enable_biarch_config+set}" = set; then :
4289 enableval=$enable_biarch_config;
4293 case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
4296 $as_echo "broken but use it" >&6; }
4297 unset ft_use_autoconf_sizeof_types
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
4301 $as_echo "works but ignore it" >&6; }
4302 ft_use_autoconf_sizeof_types=yes
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4306 $as_echo "yes" >&6; }
4307 unset ft_use_autoconf_sizeof_types
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4312 ft_use_autoconf_sizeof_types=yes
4316 if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
4317 $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES 1" >>confdefs.h
4321 CPPFLAGS="${orig_CPPFLAGS}"
4324 # checks for library functions
4326 # Here we check whether we can use our mmap file component.
4328 # Check whether --enable-mmap was given.
4329 if test "${enable_mmap+set}" = set; then :
4330 enableval=$enable_mmap; enable_mmap="no"
4335 if test "x${enable_mmap}" != "xno"; then
4339 for ac_header in $ac_header_list
4341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4345 cat >>confdefs.h <<_ACEOF
4346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4360 for ac_func in getpagesize
4362 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4363 if test "x$ac_cv_func_getpagesize" = xyes; then :
4364 cat >>confdefs.h <<_ACEOF
4365 #define HAVE_GETPAGESIZE 1
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4372 $as_echo_n "checking for working mmap... " >&6; }
4373 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4374 $as_echo_n "(cached) " >&6
4376 if test "$cross_compiling" = yes; then :
4377 ac_cv_func_mmap_fixed_mapped=no
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 $ac_includes_default
4382 /* malloc might have been renamed as rpl_malloc. */
4385 /* Thanks to Mike Haertel and Jim Avera for this test.
4386 Here is a matrix of mmap possibilities:
4387 mmap private not fixed
4388 mmap private fixed at somewhere currently unmapped
4389 mmap private fixed at somewhere already mapped
4390 mmap shared not fixed
4391 mmap shared fixed at somewhere currently unmapped
4392 mmap shared fixed at somewhere already mapped
4393 For private mappings, we should verify that changes cannot be read()
4394 back from the file, nor mmap's back from the file at a different
4395 address. (There have been systems where private was not correctly
4396 implemented like the infamous i386 svr4.0, and systems where the
4397 VM page cache was not coherent with the file system buffer cache
4398 like early versions of FreeBSD and possibly contemporary NetBSD.)
4399 For shared mappings, we should conversely verify that changes get
4400 propagated back to all the places they're supposed to be.
4402 Grep wants private fixed already mapped.
4403 The main things grep needs to know about mmap are:
4404 * does it exist and is it safe to write into the mmap'd area
4405 * how to use it (BSD variants) */
4408 #include <sys/mman.h>
4410 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4414 /* This mess was copied from the GNU getpagesize.h. */
4415 #ifndef HAVE_GETPAGESIZE
4416 # ifdef _SC_PAGESIZE
4417 # define getpagesize() sysconf(_SC_PAGESIZE)
4418 # else /* no _SC_PAGESIZE */
4419 # ifdef HAVE_SYS_PARAM_H
4420 # include <sys/param.h>
4421 # ifdef EXEC_PAGESIZE
4422 # define getpagesize() EXEC_PAGESIZE
4423 # else /* no EXEC_PAGESIZE */
4425 # define getpagesize() NBPG * CLSIZE
4428 # endif /* no CLSIZE */
4429 # else /* no NBPG */
4431 # define getpagesize() NBPC
4432 # else /* no NBPC */
4434 # define getpagesize() PAGESIZE
4435 # endif /* PAGESIZE */
4436 # endif /* no NBPC */
4437 # endif /* no NBPG */
4438 # endif /* no EXEC_PAGESIZE */
4439 # else /* no HAVE_SYS_PARAM_H */
4440 # define getpagesize() 8192 /* punt totally */
4441 # endif /* no HAVE_SYS_PARAM_H */
4442 # endif /* no _SC_PAGESIZE */
4444 #endif /* no HAVE_GETPAGESIZE */
4449 char *data, *data2, *data3;
4454 pagesize = getpagesize ();
4456 /* First, make a file with some known garbage in it. */
4457 data = (char *) malloc (pagesize);
4460 for (i = 0; i < pagesize; ++i)
4461 *(data + i) = rand ();
4463 fd = creat ("conftest.mmap", 0600);
4466 if (write (fd, data, pagesize) != pagesize)
4470 /* Next, check that the tail of a page is zero-filled. File must have
4471 non-zero length, otherwise we risk SIGBUS for entire page. */
4472 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4476 if (write (fd2, cdata2, 1) != 1)
4478 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4479 if (data2 == MAP_FAILED)
4481 for (i = 0; i < pagesize; ++i)
4485 if (munmap (data2, pagesize))
4488 /* Next, try to mmap the file at a fixed address which already has
4489 something else allocated at it. If we can, also make sure that
4490 we see the same garbage. */
4491 fd = open ("conftest.mmap", O_RDWR);
4494 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4495 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4497 for (i = 0; i < pagesize; ++i)
4498 if (*(data + i) != *(data2 + i))
4501 /* Finally, make sure that changes to the mapped area do not
4502 percolate back to the file as seen by read(). (This is a bug on
4503 some variants of i386 svr4.0.) */
4504 for (i = 0; i < pagesize; ++i)
4505 *(data2 + i) = *(data2 + i) + 1;
4506 data3 = (char *) malloc (pagesize);
4509 if (read (fd, data3, pagesize) != pagesize)
4511 for (i = 0; i < pagesize; ++i)
4512 if (*(data + i) != *(data3 + i))
4518 if ac_fn_c_try_run "$LINENO"; then :
4519 ac_cv_func_mmap_fixed_mapped=yes
4521 ac_cv_func_mmap_fixed_mapped=no
4523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4524 conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4529 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4530 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4532 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4535 rm -f conftest.mmap conftest.txt
4538 if test "x${enable_mmap}" = "xno" \
4539 -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
4540 FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
4542 FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
4544 ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
4546 #ifdef HAVE_UNISTD_H
4549 #include <sys/mman.h>
4553 if test "x$ac_cv_have_decl_munmap" = xyes; then :
4559 cat >>confdefs.h <<_ACEOF
4560 #define HAVE_DECL_MUNMAP $ac_have_decl
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
4565 $as_echo_n "checking for munmap's first parameter type... " >&6; }
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4572 #include <sys/mman.h>
4573 int munmap(void *, size_t);
4578 if ac_fn_c_try_compile "$LINENO"; then :
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
4580 $as_echo "void *" >&6; }
4582 $as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
4586 $as_echo "char *" >&6; }
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 for ac_func in memcpy memmove
4595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4597 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4598 cat >>confdefs.h <<_ACEOF
4599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4607 # check for system zlib
4609 # don't quote AS_HELP_STRING!
4611 # Check whether --with-zlib was given.
4612 if test "${with_zlib+set}" = set; then :
4616 if test x$with_zlib != xno && test -z "$LIBZ"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
4618 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
4619 if ${ac_cv_lib_z_gzsetparams+:} false; then :
4620 $as_echo_n "(cached) " >&6
4622 ac_check_lib_save_LIBS=$LIBS
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4627 /* Override any GCC internal prototype to avoid an error.
4628 Use char because int might match the return type of a GCC
4629 builtin and then its argument prototype would still apply. */
4633 char gzsetparams ();
4637 return gzsetparams ();
4642 if ac_fn_c_try_link "$LINENO"; then :
4643 ac_cv_lib_z_gzsetparams=yes
4645 ac_cv_lib_z_gzsetparams=no
4647 rm -f core conftest.err conftest.$ac_objext \
4648 conftest$ac_exeext conftest.$ac_ext
4649 LIBS=$ac_check_lib_save_LIBS
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
4652 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
4653 if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
4654 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4655 if test "x$ac_cv_header_zlib_h" = xyes; then :
4663 if test x$with_zlib != xno && test -n "$LIBZ"; then
4664 CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
4665 LDFLAGS="$LDFLAGS $LIBZ"
4669 # check for system libbz2
4671 # don't quote AS_HELP_STRING!
4673 # Check whether --with-bzip2 was given.
4674 if test "${with_bzip2+set}" = set; then :
4675 withval=$with_bzip2;
4678 if test x$with_bzip2 != xno && test -z "$LIBBZ2"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
4680 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
4681 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
4682 $as_echo_n "(cached) " >&6
4684 ac_check_lib_save_LIBS=$LIBS
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4689 /* Override any GCC internal prototype to avoid an error.
4690 Use char because int might match the return type of a GCC
4691 builtin and then its argument prototype would still apply. */
4695 char BZ2_bzDecompress ();
4699 return BZ2_bzDecompress ();
4704 if ac_fn_c_try_link "$LINENO"; then :
4705 ac_cv_lib_bz2_BZ2_bzDecompress=yes
4707 ac_cv_lib_bz2_BZ2_bzDecompress=no
4709 rm -f core conftest.err conftest.$ac_objext \
4710 conftest$ac_exeext conftest.$ac_ext
4711 LIBS=$ac_check_lib_save_LIBS
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
4714 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
4715 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
4716 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
4717 if test "x$ac_cv_header_bzlib_h" = xyes; then :
4725 if test x$with_bzip2 != xno && test -n "$LIBBZ2"; then
4726 CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_USE_BZIP2"
4727 LDFLAGS="$LDFLAGS $LIBBZ2"
4730 # Some options handling SDKs/archs in CFLAGS should be copied
4731 # to LDFLAGS. Apple TechNote 2137 recommends to include these
4732 # options in CFLAGS but not in LDFLAGS.
4737 while test $i -le $#
4742 -isysroot|-arch) # options taking 1 argument
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
4745 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
4746 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4749 $as_echo "yes" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4752 $as_echo "no, copy to LDFLAGS" >&6; }
4753 LDFLAGS="${LDFLAGS} ${c} ${a}"
4757 -m32|-m64|-march=*|-mcpu=*) # options taking no argument
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: whether CFLAGS and LDFLAGS share ${c}" >&5
4759 $as_echo "whether CFLAGS and LDFLAGS share ${c}" >&6; }
4760 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763 $as_echo "yes" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4766 $as_echo "no, copy to LDFLAGS" >&6; }
4767 LDFLAGS="${LDFLAGS} ${c}"
4771 # AC_MSG_RESULT([${c} is not copied to LDFLAGS])
4777 set ${save_config_args}
4780 # Whether to use Mac OS resource-based fonts.
4782 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
4784 # don't quote AS_HELP_STRING!
4786 # Check whether --with-old-mac-fonts was given.
4787 if test "${with_old_mac_fonts+set}" = set; then :
4788 withval=$with_old_mac_fonts;
4791 if test x$with_old_mac_fonts = xyes; then
4792 orig_LDFLAGS="${LDFLAGS}"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
4794 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
4795 FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
4796 LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4802 #if defined(__GNUC__) && defined(__APPLE_CC__)
4803 # include <CoreServices/CoreServices.h>
4804 # include <ApplicationServices/ApplicationServices.h>
4806 # include <ConditionalMacros.h>
4826 if ac_fn_c_try_link "$LINENO"; then :
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4828 $as_echo "ok" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
4831 $as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
4832 orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
4833 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4839 #if defined(__GNUC__) && defined(__APPLE_CC__)
4840 # include <CoreServices/CoreServices.h>
4841 # include <ApplicationServices/ApplicationServices.h>
4843 # include <ConditionalMacros.h>
4853 /* OSHostByteOrder() is typed as OS_INLINE */
4854 int32_t os_byte_order = OSHostByteOrder();
4857 if ( OSBigEndian != os_byte_order )
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4867 $as_echo "ok" >&6; }
4868 CFLAGS="$orig_CFLAGS"
4869 CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
4873 $as_echo "no, ANSI incompatible" >&6; }
4874 CFLAGS="$orig_CFLAGS"
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
4879 $as_echo_n "checking type ResourceIndex... " >&6; }
4880 orig_CFLAGS="$CFLAGS"
4881 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4887 #if defined(__GNUC__) && defined(__APPLE_CC__)
4888 # include <CoreServices/CoreServices.h>
4889 # include <ApplicationServices/ApplicationServices.h>
4891 # include <ConditionalMacros.h>
4893 # include <Resources.h>
4902 ResourceIndex i = 0;
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4912 $as_echo "ok" >&6; }
4913 CFLAGS="$orig_CFLAGS"
4914 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 CFLAGS="$orig_CFLAGS"
4920 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4926 $as_echo "not found" >&6; }
4928 LDFLAGS="${orig_LDFLAGS}"
4929 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4931 rm -f core conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4936 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4944 # Whether to use FileManager which is deprecated since Mac OS X 10.4.
4947 # Check whether --with-fsspec was given.
4948 if test "${with_fsspec+set}" = set; then :
4949 withval=$with_fsspec;
4952 if test x$with_fsspec = xno; then
4953 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
4954 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
4956 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4962 #if defined(__GNUC__) && defined(__APPLE_CC__)
4963 # include <CoreServices/CoreServices.h>
4964 # include <ApplicationServices/ApplicationServices.h>
4966 # include <ConditionalMacros.h>
4976 FCBPBPtr paramBlock;
4979 ConstStr255Param fileName;
4983 /* FSSpec functions: deprecated since Mac OS X 10.4 */
4984 PBGetFCBInfoSync( paramBlock );
4985 FSMakeFSSpec( vRefNum, dirID, fileName, spec );
4992 if ac_fn_c_try_link "$LINENO"; then :
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4994 $as_echo "ok" >&6; }
4995 CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4998 $as_echo "not found" >&6; }
4999 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
5001 rm -f core conftest.err conftest.$ac_objext \
5002 conftest$ac_exeext conftest.$ac_ext
5006 # Whether to use FileManager in Carbon since MacOS 9.x.
5009 # Check whether --with-fsref was given.
5010 if test "${with_fsref+set}" = set; then :
5011 withval=$with_fsref;
5014 if test x$with_fsref = xno; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5017 FreeType2 built without FSRef API cannot load
5018 data-fork fonts on MacOS, except of XXX.dfont.
5020 $as_echo "$as_me: WARNING:
5022 FreeType2 built without FSRef API cannot load
5023 data-fork fonts on MacOS, except of XXX.dfont.
5025 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5026 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
5028 $as_echo_n "checking FSRef-based FileManager... " >&6; }
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5034 #if defined(__GNUC__) && defined(__APPLE_CC__)
5035 # include <CoreServices/CoreServices.h>
5036 # include <ApplicationServices/ApplicationServices.h>
5038 # include <ConditionalMacros.h>
5050 ConstStr255Param fileName;
5052 Boolean* isDirectory;
5054 SInt16 desiredRefNum;
5056 SInt16* actualRefNum;
5057 HFSUniStr255* outForkName;
5058 FSVolumeRefNum volume;
5059 FSCatalogInfoBitmap whichInfo;
5060 FSCatalogInfo* catalogInfo;
5061 FSForkInfo* forkInfo;
5068 /* FSRef functions: no need to check? */
5069 FSGetForkCBInfo( desiredRefNum, volume, iterator,
5070 actualRefNum, forkInfo, ref,
5072 FSPathMakeRef( path, ref, isDirectory );
5075 FSpMakeFSRef ( spec, ref );
5076 FSGetCatalogInfo( ref, whichInfo, catalogInfo,
5077 outForkName, spec, ref );
5084 if ac_fn_c_try_link "$LINENO"; then :
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5086 $as_echo "ok" >&6; }
5087 CFLAGS="$CFLAGS -DHAVE_FSREF=1"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5090 $as_echo "not found" >&6; }
5091 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5093 rm -f core conftest.err conftest.$ac_objext \
5094 conftest$ac_exeext conftest.$ac_ext
5098 # Whether to use QuickDraw API in ToolBox which is deprecated since
5102 # Check whether --with-quickdraw-toolbox was given.
5103 if test "${with_quickdraw_toolbox+set}" = set; then :
5104 withval=$with_quickdraw_toolbox;
5107 if test x$with_quickdraw_toolbox = xno; then
5108 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5109 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
5111 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5117 #if defined(__GNUC__) && defined(__APPLE_CC__)
5118 # include <CoreServices/CoreServices.h>
5119 # include <ApplicationServices/ApplicationServices.h>
5121 # include <ConditionalMacros.h>
5132 SInt16 familyID = 0;
5133 FMInput* fmIn = NULL;
5134 FMOutput* fmOut = NULL;
5137 GetFontName( familyID, familyName );
5138 GetFNum( familyName, &familyID );
5139 fmOut = FMSwapFont( fmIn );
5146 if ac_fn_c_try_link "$LINENO"; then :
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5148 $as_echo "ok" >&6; }
5149 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5152 $as_echo "not found" >&6; }
5153 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5155 rm -f core conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5160 # Whether to use QuickDraw API in Carbon which is deprecated since
5164 # Check whether --with-quickdraw-carbon was given.
5165 if test "${with_quickdraw_carbon+set}" = set; then :
5166 withval=$with_quickdraw_carbon;
5169 if test x$with_quickdraw_carbon = xno; then
5170 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5171 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
5173 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5179 #if defined(__GNUC__) && defined(__APPLE_CC__)
5180 # include <CoreServices/CoreServices.h>
5181 # include <ApplicationServices/ApplicationServices.h>
5183 # include <ConditionalMacros.h>
5193 FMFontFamilyIterator famIter;
5194 FMFontFamily family;
5196 FMFontFamilyInstanceIterator instIter;
5203 FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
5205 FMGetNextFontFamily( &famIter, &family );
5206 FMGetFontFamilyName( family, famNameStr );
5207 FMCreateFontFamilyInstanceIterator( family, &instIter );
5208 FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
5209 FMDisposeFontFamilyInstanceIterator( &instIter );
5210 FMDisposeFontFamilyIterator( &famIter );
5211 FMGetFontContainer( font, pathSpec );
5218 if ac_fn_c_try_link "$LINENO"; then :
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5220 $as_echo "ok" >&6; }
5221 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5224 $as_echo "not found" >&6; }
5225 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5227 rm -f core conftest.err conftest.$ac_objext \
5228 conftest$ac_exeext conftest.$ac_ext
5232 # Whether to use AppleTypeService since Mac OS X.
5234 # don't quote AS_HELP_STRING!
5236 # Check whether --with-ats was given.
5237 if test "${with_ats+set}" = set; then :
5241 if test x$with_ats = xno; then
5242 CFLAGS="$CFLAGS -DHAVE_ATS=0"
5243 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
5245 $as_echo_n "checking AppleTypeService functions... " >&6; }
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5251 #if defined(__GNUC__) && defined(__APPLE_CC__)
5252 # include <CoreServices/CoreServices.h>
5253 # include <ApplicationServices/ApplicationServices.h>
5255 # include <ConditionalMacros.h>
5268 ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
5270 ATSFontGetFileSpecification( 0, pathSpec );
5278 if ac_fn_c_try_link "$LINENO"; then :
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5280 $as_echo "ok" >&6; }
5281 CFLAGS="$CFLAGS -DHAVE_ATS=1"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5284 $as_echo "not found" >&6; }
5285 CFLAGS="$CFLAGS -DHAVE_ATS=0"
5287 rm -f core conftest.err conftest.$ac_objext \
5288 conftest$ac_exeext conftest.$ac_ext
5292 *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5295 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5296 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5298 $as_echo "$as_me: WARNING:
5300 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5301 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5303 CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5322 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5327 macro_version='2.4.2'
5328 macro_revision='1.3337'
5342 ltmain="$ac_aux_dir/ltmain.sh"
5344 # Backslashify metacharacters that are still active within
5345 # double-quoted strings.
5346 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5348 # Same as above, but do not quote variable references.
5349 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5351 # Sed substitution to delay expansion of an escaped shell variable in a
5352 # double_quote_subst'ed string.
5353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5355 # Sed substitution to delay expansion of an escaped single quote.
5356 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5358 # Sed substitution to avoid accidental globbing in evaled expressions
5359 no_glob_subst='s/\*/\\\*/g'
5361 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5362 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5366 $as_echo_n "checking how to print strings... " >&6; }
5367 # Test print first, because it will be a builtin if present.
5368 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5369 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5371 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5374 # Use this function as a fallback that always works.
5375 func_fallback_echo ()
5377 eval 'cat <<_LTECHO_EOF
5381 ECHO='func_fallback_echo'
5384 # func_echo_all arg...
5385 # Invoke $ECHO with all args, space-separated.
5392 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5393 $as_echo "printf" >&6; } ;;
5394 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5395 $as_echo "print -r" >&6; } ;;
5396 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5397 $as_echo "cat" >&6; } ;;
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5414 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5415 if ${ac_cv_path_SED+:} false; then :
5416 $as_echo_n "(cached) " >&6
5418 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5419 for ac_i in 1 2 3 4 5 6 7; do
5420 ac_script="$ac_script$as_nl$ac_script"
5422 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5423 { ac_script=; unset ac_script;}
5424 if test -z "$SED"; then
5425 ac_path_SED_found=false
5426 # Loop through the user's path and test for each of PROGNAME-LIST
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_prog in sed gsed; do
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5435 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5436 # Check for GNU ac_path_SED and select it if it is found.
5437 # Check for GNU $ac_path_SED
5438 case `"$ac_path_SED" --version 2>&1` in
5440 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5443 $as_echo_n 0123456789 >"conftest.in"
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 $as_echo '' >> "conftest.nl"
5450 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452 as_fn_arith $ac_count + 1 && ac_count=$as_val
5453 if test $ac_count -gt ${ac_path_SED_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_SED="$ac_path_SED"
5456 ac_path_SED_max=$ac_count
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5464 $ac_path_SED_found && break 3
5469 if test -z "$ac_cv_path_SED"; then
5470 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5478 $as_echo "$ac_cv_path_SED" >&6; }
5479 SED="$ac_cv_path_SED"
5482 test -z "$SED" && SED=sed
5483 Xsed="$SED -e 1s/^X//"
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5496 $as_echo_n "checking for fgrep... " >&6; }
5497 if ${ac_cv_path_FGREP+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5501 then ac_cv_path_FGREP="$GREP -F"
5503 if test -z "$FGREP"; then
5504 ac_path_FGREP_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in fgrep; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5514 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5515 # Check for GNU ac_path_FGREP and select it if it is found.
5516 # Check for GNU $ac_path_FGREP
5517 case `"$ac_path_FGREP" --version 2>&1` in
5519 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5522 $as_echo_n 0123456789 >"conftest.in"
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 $as_echo 'FGREP' >> "conftest.nl"
5529 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 as_fn_arith $ac_count + 1 && ac_count=$as_val
5532 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_FGREP="$ac_path_FGREP"
5535 ac_path_FGREP_max=$ac_count
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5543 $ac_path_FGREP_found && break 3
5548 if test -z "$ac_cv_path_FGREP"; then
5549 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5552 ac_cv_path_FGREP=$FGREP
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5558 $as_echo "$ac_cv_path_FGREP" >&6; }
5559 FGREP="$ac_cv_path_FGREP"
5562 test -z "$GREP" && GREP=grep
5582 # Check whether --with-gnu-ld was given.
5583 if test "${with_gnu_ld+set}" = set; then :
5584 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5590 if test "$GCC" = yes; then
5591 # Check if gcc -print-prog-name=ld gives a path.
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5593 $as_echo_n "checking for ld used by $CC... " >&6; }
5596 # gcc leaves a trailing carriage return which upsets mingw
5597 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5599 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5602 # Accept absolute paths.
5604 re_direlt='/[^/][^/]*/\.\./'
5605 # Canonicalize the pathname of ld
5606 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5607 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5608 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5610 test -z "$LD" && LD="$ac_prog"
5613 # If it fails, then pretend we aren't using GCC.
5617 # If it is relative, then search for the first ld in PATH.
5621 elif test "$with_gnu_ld" = yes; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5623 $as_echo_n "checking for GNU ld... " >&6; }
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5626 $as_echo_n "checking for non-GNU ld... " >&6; }
5628 if ${lt_cv_path_LD+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 if test -z "$LD"; then
5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH; do
5635 test -z "$ac_dir" && ac_dir=.
5636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5637 lt_cv_path_LD="$ac_dir/$ac_prog"
5638 # Check to see if the program is GNU ld. I'd rather use --version,
5639 # but apparently some variants of GNU ld only accept -v.
5640 # Break only if it was the GNU/non-GNU ld that we prefer.
5641 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5642 *GNU* | *'with BFD'*)
5643 test "$with_gnu_ld" != no && break
5646 test "$with_gnu_ld" != yes && break
5653 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5658 if test -n "$LD"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5660 $as_echo "$LD" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5665 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5668 if ${lt_cv_prog_gnu_ld+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5672 case `$LD -v 2>&1 </dev/null` in
5673 *GNU* | *'with BFD'*)
5674 lt_cv_prog_gnu_ld=yes
5677 lt_cv_prog_gnu_ld=no
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5682 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5683 with_gnu_ld=$lt_cv_prog_gnu_ld
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5694 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5695 if ${lt_cv_path_NM+:} false; then :
5696 $as_echo_n "(cached) " >&6
5698 if test -n "$NM"; then
5699 # Let the user override the test.
5702 lt_nm_to_check="${ac_tool_prefix}nm"
5703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5704 lt_nm_to_check="$lt_nm_to_check nm"
5706 for lt_tmp_nm in $lt_nm_to_check; do
5707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5710 test -z "$ac_dir" && ac_dir=.
5711 tmp_nm="$ac_dir/$lt_tmp_nm"
5712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5713 # Check to see if the nm accepts a BSD-compat flag.
5714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5715 # nm: unknown option "B" ignored
5716 # Tru64's nm complains that /dev/null is an invalid object file
5717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5718 */dev/null* | *'Invalid file or object type'*)
5719 lt_cv_path_NM="$tmp_nm -B"
5723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5725 lt_cv_path_NM="$tmp_nm -p"
5729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5730 continue # so that we can try to find one that supports BSD flags
5739 : ${lt_cv_path_NM=no}
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5743 $as_echo "$lt_cv_path_NM" >&6; }
5744 if test "$lt_cv_path_NM" != "no"; then
5747 # Didn't find any BSD compatible name lister, look for dumpbin.
5748 if test -n "$DUMPBIN"; then :
5749 # Let the user override the test.
5751 if test -n "$ac_tool_prefix"; then
5752 for ac_prog in dumpbin "link -dump"
5754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_DUMPBIN+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -n "$DUMPBIN"; then
5762 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 DUMPBIN=$ac_cv_prog_DUMPBIN
5782 if test -n "$DUMPBIN"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5784 $as_echo "$DUMPBIN" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5791 test -n "$DUMPBIN" && break
5794 if test -z "$DUMPBIN"; then
5795 ac_ct_DUMPBIN=$DUMPBIN
5796 for ac_prog in dumpbin "link -dump"
5798 # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$ac_ct_DUMPBIN"; then
5806 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5826 if test -n "$ac_ct_DUMPBIN"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5828 $as_echo "$ac_ct_DUMPBIN" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5835 test -n "$ac_ct_DUMPBIN" && break
5838 if test "x$ac_ct_DUMPBIN" = x; then
5841 case $cross_compiling:$ac_tool_warned in
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5847 DUMPBIN=$ac_ct_DUMPBIN
5851 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5853 DUMPBIN="$DUMPBIN -symbols"
5861 if test "$DUMPBIN" != ":"; then
5865 test -z "$NM" && NM=nm
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5873 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5874 if ${lt_cv_nm_interface+:} false; then :
5875 $as_echo_n "(cached) " >&6
5877 lt_cv_nm_interface="BSD nm"
5878 echo "int some_variable = 0;" > conftest.$ac_ext
5879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5880 (eval "$ac_compile" 2>conftest.err)
5881 cat conftest.err >&5
5882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5884 cat conftest.err >&5
5885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5886 cat conftest.out >&5
5887 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5888 lt_cv_nm_interface="MS dumpbin"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5893 $as_echo "$lt_cv_nm_interface" >&6; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5896 $as_echo_n "checking whether ln -s works... " >&6; }
5898 if test "$LN_S" = "ln -s"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5900 $as_echo "yes" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5903 $as_echo "no, using $LN_S" >&6; }
5906 # find the maximum length of command line arguments
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5908 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5909 if ${lt_cv_sys_max_cmd_len+:} false; then :
5910 $as_echo_n "(cached) " >&6
5917 # On DJGPP, this test can blow up pretty badly due to problems in libc
5918 # (any single argument exceeding 2000 bytes causes a buffer overrun
5919 # during glob expansion). Even if it were fixed, the result of this
5920 # check would be larger than it should be.
5921 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5925 # Under GNU Hurd, this test is not required because there is
5926 # no limit to the length of command line arguments.
5927 # Libtool will interpret -1 as no limit whatsoever
5928 lt_cv_sys_max_cmd_len=-1;
5931 cygwin* | mingw* | cegcc*)
5932 # On Win9x/ME, this test blows up -- it succeeds, but takes
5933 # about 5 minutes as the teststring grows exponentially.
5934 # Worse, since 9x/ME are not pre-emptively multitasking,
5935 # you end up with a "frozen" computer, even though with patience
5936 # the test eventually succeeds (with a max line length of 256k).
5937 # Instead, let's just punt: use the minimum linelength reported by
5938 # all of the supported platforms: 8192 (on NT/2K/XP).
5939 lt_cv_sys_max_cmd_len=8192;
5943 # On MiNT this can take a long time and run out of memory.
5944 lt_cv_sys_max_cmd_len=8192;
5948 # On AmigaOS with pdksh, this test takes hours, literally.
5949 # So we just punt and use a minimum line length of 8192.
5950 lt_cv_sys_max_cmd_len=8192;
5953 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5954 # This has been around since 386BSD, at least. Likely further.
5955 if test -x /sbin/sysctl; then
5956 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5957 elif test -x /usr/sbin/sysctl; then
5958 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5960 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5962 # And add a safety zone
5963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5968 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5969 lt_cv_sys_max_cmd_len=196608
5973 # The test takes a long time on OS/2.
5974 lt_cv_sys_max_cmd_len=8192
5978 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5979 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5980 # nice to cause kernel panics so lets avoid the loop below.
5981 # First set a reasonable default.
5982 lt_cv_sys_max_cmd_len=16384
5984 if test -x /sbin/sysconfig; then
5985 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5986 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5991 lt_cv_sys_max_cmd_len=102400
5993 sysv5* | sco5v6* | sysv4.2uw2*)
5994 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5995 if test -n "$kargmax"; then
5996 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5998 lt_cv_sys_max_cmd_len=32768
6002 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6003 if test -n "$lt_cv_sys_max_cmd_len"; then
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6007 # Make teststring a little bigger before we do anything with it.
6008 # a 1K string should be a reasonable start.
6009 for i in 1 2 3 4 5 6 7 8 ; do
6010 teststring=$teststring$teststring
6012 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6013 # If test is not a shell built-in, we'll probably end up computing a
6014 # maximum length that is only half of the actual maximum length, but
6016 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6017 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6018 test $i != 17 # 1/2 MB should be enough
6021 teststring=$teststring$teststring
6023 # Only check the string length outside the loop.
6024 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6026 # Add a significant safety factor because C++ compilers can tack on
6027 # massive amounts of additional arguments before passing them to the
6028 # linker. It appears as though 1/2 is a usable value.
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6036 if test -n $lt_cv_sys_max_cmd_len ; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6038 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6041 $as_echo "none" >&6; }
6043 max_cmd_len=$lt_cv_sys_max_cmd_len
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6055 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6056 # Try some XSI features
6059 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6061 && eval 'test $(( 1 + 1 )) -eq 2 \
6062 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6065 $as_echo "$xsi_shell" >&6; }
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6069 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6071 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6073 && lt_shell_append=yes
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6075 $as_echo "$lt_shell_append" >&6; }
6078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6088 # test EBCDIC or ASCII
6089 case `echo X|tr X '\101'` in
6090 A) # ASCII based system
6091 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6092 lt_SP2NL='tr \040 \012'
6093 lt_NL2SP='tr \015\012 \040\040'
6095 *) # EBCDIC based system
6096 lt_SP2NL='tr \100 \n'
6097 lt_NL2SP='tr \r\n \100\100'
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6110 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6111 if ${lt_cv_to_host_file_cmd+:} false; then :
6112 $as_echo_n "(cached) " >&6
6117 *-*-mingw* ) # actually msys
6118 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6121 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6123 * ) # otherwise, assume *nix
6124 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6130 *-*-mingw* ) # actually msys
6131 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6134 lt_cv_to_host_file_cmd=func_convert_file_noop
6136 * ) # otherwise, assume *nix
6137 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6141 * ) # unhandled hosts (and "normal" native builds)
6142 lt_cv_to_host_file_cmd=func_convert_file_noop
6148 to_host_file_cmd=$lt_cv_to_host_file_cmd
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6150 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6157 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6158 if ${lt_cv_to_tool_file_cmd+:} false; then :
6159 $as_echo_n "(cached) " >&6
6161 #assume ordinary cross tools, or native build.
6162 lt_cv_to_tool_file_cmd=func_convert_file_noop
6166 *-*-mingw* ) # actually msys
6167 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6175 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6177 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6184 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6185 if ${lt_cv_ld_reload_flag+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 lt_cv_ld_reload_flag='-r'
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6192 reload_flag=$lt_cv_ld_reload_flag
6193 case $reload_flag in
6195 *) reload_flag=" $reload_flag" ;;
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6199 cygwin* | mingw* | pw32* | cegcc*)
6200 if test "$GCC" != yes; then
6205 if test "$GCC" = yes; then
6206 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6221 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_OBJDUMP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -n "$OBJDUMP"; then
6230 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 OBJDUMP=$ac_cv_prog_OBJDUMP
6250 if test -n "$OBJDUMP"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6252 $as_echo "$OBJDUMP" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6260 if test -z "$ac_cv_prog_OBJDUMP"; then
6261 ac_ct_OBJDUMP=$OBJDUMP
6262 # Extract the first word of "objdump", so it can be a program name with args.
6263 set dummy objdump; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 if test -n "$ac_ct_OBJDUMP"; then
6270 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6290 if test -n "$ac_ct_OBJDUMP"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6292 $as_echo "$ac_ct_OBJDUMP" >&6; }
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6298 if test "x$ac_ct_OBJDUMP" = x; then
6301 case $cross_compiling:$ac_tool_warned in
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305 ac_tool_warned=yes ;;
6307 OBJDUMP=$ac_ct_OBJDUMP
6310 OBJDUMP="$ac_cv_prog_OBJDUMP"
6313 test -z "$OBJDUMP" && OBJDUMP=objdump
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6321 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6322 if ${lt_cv_deplibs_check_method+:} false; then :
6323 $as_echo_n "(cached) " >&6
6325 lt_cv_file_magic_cmd='$MAGIC_CMD'
6326 lt_cv_file_magic_test_file=
6327 lt_cv_deplibs_check_method='unknown'
6328 # Need to set the preceding variable on all platforms that support
6329 # interlibrary dependencies.
6330 # 'none' -- dependencies not supported.
6331 # `unknown' -- same as none, but documents that we really don't know.
6332 # 'pass_all' -- all dependencies passed with no checks.
6333 # 'test_compile' -- check by making test program.
6334 # 'file_magic [[regex]]' -- check by looking for files in library path
6335 # which responds to the $file_magic_cmd with a given extended regex.
6336 # If you have `file' or equivalent on your system and you're not sure
6337 # whether `pass_all' will *always* work, you probably want this one.
6341 lt_cv_deplibs_check_method=pass_all
6345 lt_cv_deplibs_check_method=pass_all
6349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6350 lt_cv_file_magic_cmd='/usr/bin/file -L'
6351 lt_cv_file_magic_test_file=/shlib/libc.so
6355 # func_win32_libid is a shell function defined in ltmain.sh
6356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6357 lt_cv_file_magic_cmd='func_win32_libid'
6361 # Base MSYS/MinGW do not provide the 'file' command needed by
6362 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6363 # unless we find 'file', for example because we are cross-compiling.
6364 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6365 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6366 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6367 lt_cv_file_magic_cmd='func_win32_libid'
6369 # Keep this pattern in sync with the one in func_win32_libid.
6370 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6371 lt_cv_file_magic_cmd='$OBJDUMP -f'
6376 # use the weaker test based on 'objdump'. See mingw*.
6377 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6378 lt_cv_file_magic_cmd='$OBJDUMP -f'
6381 darwin* | rhapsody*)
6382 lt_cv_deplibs_check_method=pass_all
6385 freebsd* | dragonfly*)
6386 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6389 # Not sure whether the presence of OpenBSD here was a mistake.
6390 # Let's accept both of them until this is cleared up.
6391 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6392 lt_cv_file_magic_cmd=/usr/bin/file
6393 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6397 lt_cv_deplibs_check_method=pass_all
6402 lt_cv_deplibs_check_method=pass_all
6406 lt_cv_deplibs_check_method=pass_all
6409 hpux10.20* | hpux11*)
6410 lt_cv_file_magic_cmd=/usr/bin/file
6413 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6414 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6417 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]'
6418 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6422 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6428 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6432 irix5* | irix6* | nonstopux*)
6434 *-32|*"-32 ") libmagic=32-bit;;
6435 *-n32|*"-n32 ") libmagic=N32;;
6436 *-64|*"-64 ") libmagic=64-bit;;
6437 *) libmagic=never-match;;
6439 lt_cv_deplibs_check_method=pass_all
6442 # This must be glibc/ELF.
6443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6444 lt_cv_deplibs_check_method=pass_all
6448 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6457 lt_cv_file_magic_cmd=/usr/bin/file
6458 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6462 lt_cv_deplibs_check_method=pass_all
6466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6473 osf3* | osf4* | osf5*)
6474 lt_cv_deplibs_check_method=pass_all
6478 lt_cv_deplibs_check_method=pass_all
6482 lt_cv_deplibs_check_method=pass_all
6485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6486 lt_cv_deplibs_check_method=pass_all
6490 case $host_vendor in
6492 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]'
6493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6496 lt_cv_deplibs_check_method=pass_all
6499 lt_cv_file_magic_cmd='/bin/file'
6500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6503 lt_cv_file_magic_cmd='/bin/file'
6504 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6505 lt_cv_file_magic_test_file=/lib/libc.so
6508 lt_cv_deplibs_check_method=pass_all
6511 lt_cv_deplibs_check_method=pass_all
6517 lt_cv_deplibs_check_method=pass_all
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6523 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6527 if test "$build" = "$host"; then
6530 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6533 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6539 file_magic_cmd=$lt_cv_file_magic_cmd
6540 deplibs_check_method=$lt_cv_deplibs_check_method
6541 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_DLLTOOL+:} false; then :
6570 $as_echo_n "(cached) " >&6
6572 if test -n "$DLLTOOL"; then
6573 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 DLLTOOL=$ac_cv_prog_DLLTOOL
6593 if test -n "$DLLTOOL"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6595 $as_echo "$DLLTOOL" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6603 if test -z "$ac_cv_prog_DLLTOOL"; then
6604 ac_ct_DLLTOOL=$DLLTOOL
6605 # Extract the first word of "dlltool", so it can be a program name with args.
6606 set dummy dlltool; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 if test -n "$ac_ct_DLLTOOL"; then
6613 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6633 if test -n "$ac_ct_DLLTOOL"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6635 $as_echo "$ac_ct_DLLTOOL" >&6; }
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6641 if test "x$ac_ct_DLLTOOL" = x; then
6644 case $cross_compiling:$ac_tool_warned in
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648 ac_tool_warned=yes ;;
6650 DLLTOOL=$ac_ct_DLLTOOL
6653 DLLTOOL="$ac_cv_prog_DLLTOOL"
6656 test -z "$DLLTOOL" && DLLTOOL=dlltool
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6665 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6666 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6667 $as_echo_n "(cached) " >&6
6669 lt_cv_sharedlib_from_linklib_cmd='unknown'
6672 cygwin* | mingw* | pw32* | cegcc*)
6673 # two different shell functions defined in ltmain.sh
6674 # decide which to use based on capabilities of $DLLTOOL
6675 case `$DLLTOOL --help 2>&1` in
6676 *--identify-strict*)
6677 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6680 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6685 # fallback: assume linklib IS sharedlib
6686 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6692 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6693 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6694 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6702 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_AR+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$AR"; then
6713 ac_cv_prog_AR="$AR" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 if test -n "$AR"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6735 $as_echo "$AR" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6742 test -n "$AR" && break
6745 if test -z "$AR"; then
6749 # Extract the first word of "$ac_prog", so it can be a program name with args.
6750 set dummy $ac_prog; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 if test -n "$ac_ct_AR"; then
6757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_prog_ac_ct_AR="$ac_prog"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6777 if test -n "$ac_ct_AR"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6779 $as_echo "$ac_ct_AR" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6786 test -n "$ac_ct_AR" && break
6789 if test "x$ac_ct_AR" = x; then
6792 case $cross_compiling:$ac_tool_warned in
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6816 $as_echo_n "checking for archiver @FILE support... " >&6; }
6817 if ${lt_cv_ar_at_file+:} false; then :
6818 $as_echo_n "(cached) " >&6
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 echo conftest.$ac_objext > conftest.lst
6834 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6836 (eval $lt_ar_try) 2>&5
6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839 test $ac_status = 0; }
6840 if test "$ac_status" -eq 0; then
6841 # Ensure the archiver fails upon bogus file names.
6842 rm -f conftest.$ac_objext libconftest.a
6843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6844 (eval $lt_ar_try) 2>&5
6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847 test $ac_status = 0; }
6848 if test "$ac_status" -ne 0; then
6852 rm -f conftest.* libconftest.a
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6859 $as_echo "$lt_cv_ar_at_file" >&6; }
6861 if test "x$lt_cv_ar_at_file" = xno; then
6864 archiver_list_spec=$lt_cv_ar_at_file
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}strip; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_STRIP+:} false; then :
6879 $as_echo_n "(cached) " >&6
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 STRIP=$ac_cv_prog_STRIP
6902 if test -n "$STRIP"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6904 $as_echo "$STRIP" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6912 if test -z "$ac_cv_prog_STRIP"; then
6914 # Extract the first word of "strip", so it can be a program name with args.
6915 set dummy strip; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6919 $as_echo_n "(cached) " >&6
6921 if test -n "$ac_ct_STRIP"; then
6922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_ac_ct_STRIP="strip"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6942 if test -n "$ac_ct_STRIP"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6944 $as_echo "$ac_ct_STRIP" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6950 if test "x$ac_ct_STRIP" = x; then
6953 case $cross_compiling:$ac_tool_warned in
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6962 STRIP="$ac_cv_prog_STRIP"
6965 test -z "$STRIP" && STRIP=:
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_RANLIB+:} false; then :
6978 $as_echo_n "(cached) " >&6
6980 if test -n "$RANLIB"; then
6981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 RANLIB=$ac_cv_prog_RANLIB
7001 if test -n "$RANLIB"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7003 $as_echo "$RANLIB" >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7011 if test -z "$ac_cv_prog_RANLIB"; then
7012 ac_ct_RANLIB=$RANLIB
7013 # Extract the first word of "ranlib", so it can be a program name with args.
7014 set dummy ranlib; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7018 $as_echo_n "(cached) " >&6
7020 if test -n "$ac_ct_RANLIB"; then
7021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_prog_ac_ct_RANLIB="ranlib"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7041 if test -n "$ac_ct_RANLIB"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7043 $as_echo "$ac_ct_RANLIB" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7049 if test "x$ac_ct_RANLIB" = x; then
7052 case $cross_compiling:$ac_tool_warned in
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7058 RANLIB=$ac_ct_RANLIB
7061 RANLIB="$ac_cv_prog_RANLIB"
7064 test -z "$RANLIB" && RANLIB=:
7071 # Determine commands to create old-style static archives.
7072 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7073 old_postinstall_cmds='chmod 644 $oldlib'
7074 old_postuninstall_cmds=
7076 if test -n "$RANLIB"; then
7079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7085 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7090 lock_old_archive_extraction=yes ;;
7092 lock_old_archive_extraction=no ;;
7115 for ac_prog in gawk mawk nawk awk
7117 # Extract the first word of "$ac_prog", so it can be a program name with args.
7118 set dummy $ac_prog; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_AWK+:} false; then :
7122 $as_echo_n "(cached) " >&6
7124 if test -n "$AWK"; then
7125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_AWK="$ac_prog"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 if test -n "$AWK"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7147 $as_echo "$AWK" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7154 test -n "$AWK" && break
7175 # If no C compiler was specified, use CC.
7178 # If no C compiler flags were specified, use CFLAGS.
7179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7181 # Allow CC to be a program name with arguments.
7185 # Check for command to grab the raw symbol name followed by C symbol from nm.
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7187 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7188 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7189 $as_echo_n "(cached) " >&6
7192 # These are sane defaults that work on at least a few old systems.
7193 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7195 # Character class describing NM global symbol codes.
7196 symcode='[BCDEGRST]'
7198 # Regexp to match symbols that can be accessed directly from C.
7199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7201 # Define system-specific variables.
7206 cygwin* | mingw* | pw32* | cegcc*)
7207 symcode='[ABCDGISTW]'
7210 if test "$host_cpu" = ia64; then
7211 symcode='[ABCDEGRST]'
7215 symcode='[BCDEGRST]'
7218 symcode='[BCDEGQRST]'
7229 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7237 # If we're using GNU nm, then use its standard symbol codes.
7238 case `$NM -V 2>&1` in
7239 *GNU* | *'with BFD'*)
7240 symcode='[ABCDGIRSTW]' ;;
7243 # Transform an extracted symbol line into a proper C declaration.
7244 # Some systems (esp. on ia64) link data and code symbols differently,
7245 # so use this general approach.
7246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7248 # Transform an extracted symbol line into symbol name and symbol address
7249 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7250 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'"
7252 # Handle CRLF in mingw tool chain
7256 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7260 # Try without a prefix underscore, then with it.
7261 for ac_symprfx in "" "_"; do
7263 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7264 symxfrm="\\1 $ac_symprfx\\2 \\2"
7266 # Write the raw and C identifiers.
7267 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7268 # Fake it for dumpbin and say T for any non-static function
7269 # and D for any global variable.
7270 # Also find C++ and __fastcall symbols from MSVC++,
7271 # which start with @ or ?.
7272 lt_cv_sys_global_symbol_pipe="$AWK '"\
7273 " {last_section=section; section=\$ 3};"\
7274 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7275 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7276 " \$ 0!~/External *\|/{next};"\
7277 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7278 " {if(hide[section]) next};"\
7279 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7280 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7281 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7282 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7283 " ' prfx=^$ac_symprfx"
7285 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7287 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7289 # Check to see that the pipe works correctly.
7293 cat > conftest.$ac_ext <<_LT_EOF
7298 void nm_test_func(void);
7299 void nm_test_func(void){}
7303 int main(){nm_test_var='a';nm_test_func();return(0);}
7306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7307 (eval $ac_compile) 2>&5
7309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7310 test $ac_status = 0; }; then
7311 # Now try to grab the symbols.
7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7314 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; } && test -s "$nlist"; then
7318 # Try sorting and uniquifying the output.
7319 if sort "$nlist" | uniq > "$nlist"T; then
7320 mv -f "$nlist"T "$nlist"
7325 # Make sure that we snagged all the symbols we need.
7326 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7327 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7328 cat <<_LT_EOF > conftest.$ac_ext
7329 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7330 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7331 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7332 relocations are performed -- see ld's documentation on pseudo-relocs. */
7333 # define LT_DLSYM_CONST
7334 #elif defined(__osf__)
7335 /* This system does not cope well with relocations in const data. */
7336 # define LT_DLSYM_CONST
7338 # define LT_DLSYM_CONST const
7346 # Now generate the symbol file.
7347 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7349 cat <<_LT_EOF >> conftest.$ac_ext
7351 /* The mapping between symbol names and symbols. */
7352 LT_DLSYM_CONST struct {
7356 lt__PROGRAM__LTX_preloaded_symbols[] =
7358 { "@PROGRAM@", (void *) 0 },
7360 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7361 cat <<\_LT_EOF >> conftest.$ac_ext
7365 /* This works around a problem in FreeBSD linker */
7366 #ifdef FREEBSD_WORKAROUND
7367 static const void *lt_preloaded_setup() {
7368 return lt__PROGRAM__LTX_preloaded_symbols;
7376 # Now try linking the two files.
7377 mv conftest.$ac_objext conftstm.$ac_objext
7378 lt_globsym_save_LIBS=$LIBS
7379 lt_globsym_save_CFLAGS=$CFLAGS
7380 LIBS="conftstm.$ac_objext"
7381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7383 (eval $ac_link) 2>&5
7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7389 LIBS=$lt_globsym_save_LIBS
7390 CFLAGS=$lt_globsym_save_CFLAGS
7392 echo "cannot find nm_test_func in $nlist" >&5
7395 echo "cannot find nm_test_var in $nlist" >&5
7398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7401 echo "$progname: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7404 rm -rf conftest* conftst*
7406 # Do not use the global_symbol_pipe unless it works.
7407 if test "$pipe_works" = yes; then
7410 lt_cv_sys_global_symbol_pipe=
7416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7417 lt_cv_sys_global_symbol_to_cdecl=
7419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7421 $as_echo "failed" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7424 $as_echo "ok" >&6; }
7427 # Response file support.
7428 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7429 nm_file_list_spec='@'
7430 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7431 nm_file_list_spec='@'
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7461 $as_echo_n "checking for sysroot... " >&6; }
7463 # Check whether --with-sysroot was given.
7464 if test "${with_sysroot+set}" = set; then :
7465 withval=$with_sysroot;
7472 case ${with_sysroot} in #(
7474 if test "$GCC" = yes; then
7475 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7479 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7485 $as_echo "${with_sysroot}" >&6; }
7486 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7491 $as_echo "${lt_sysroot:-no}" >&6; }
7497 # Check whether --enable-libtool-lock was given.
7498 if test "${enable_libtool_lock+set}" = set; then :
7499 enableval=$enable_libtool_lock;
7502 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7504 # Some flags need to be propagated to the compiler or linker for good
7508 # Find out which ABI we are using.
7509 echo 'int i;' > conftest.$ac_ext
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511 (eval $ac_compile) 2>&5
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; then
7515 case `/usr/bin/file conftest.$ac_objext` in
7527 # Find out which ABI we are using.
7528 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7530 (eval $ac_compile) 2>&5
7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; }; then
7534 if test "$lt_cv_prog_gnu_ld" = yes; then
7535 case `/usr/bin/file conftest.$ac_objext` in
7537 LD="${LD-ld} -melf32bsmip"
7540 LD="${LD-ld} -melf32bmipn32"
7543 LD="${LD-ld} -melf64bmip"
7547 case `/usr/bin/file conftest.$ac_objext` in
7563 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7564 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7565 # Find out which ABI we are using.
7566 echo 'int i;' > conftest.$ac_ext
7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7568 (eval $ac_compile) 2>&5
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }; then
7572 case `/usr/bin/file conftest.o` in
7575 x86_64-*kfreebsd*-gnu)
7576 LD="${LD-ld} -m elf_i386_fbsd"
7579 LD="${LD-ld} -m elf_i386"
7581 ppc64-*linux*|powerpc64-*linux*)
7582 LD="${LD-ld} -m elf32ppclinux"
7585 LD="${LD-ld} -m elf_s390"
7588 LD="${LD-ld} -m elf32_sparc"
7594 x86_64-*kfreebsd*-gnu)
7595 LD="${LD-ld} -m elf_x86_64_fbsd"
7598 LD="${LD-ld} -m elf_x86_64"
7600 ppc*-*linux*|powerpc*-*linux*)
7601 LD="${LD-ld} -m elf64ppc"
7603 s390*-*linux*|s390*-*tpf*)
7604 LD="${LD-ld} -m elf64_s390"
7607 LD="${LD-ld} -m elf64_sparc"
7617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7618 SAVE_CFLAGS="$CFLAGS"
7619 CFLAGS="$CFLAGS -belf"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7621 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7622 if ${lt_cv_cc_needs_belf+:} false; then :
7623 $as_echo_n "(cached) " >&6
7626 ac_cpp='$CPP $CPPFLAGS'
7627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7642 if ac_fn_c_try_link "$LINENO"; then :
7643 lt_cv_cc_needs_belf=yes
7645 lt_cv_cc_needs_belf=no
7647 rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7657 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7658 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7659 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7660 CFLAGS="$SAVE_CFLAGS"
7664 # Find out which ABI we are using.
7665 echo 'int i;' > conftest.$ac_ext
7666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7667 (eval $ac_compile) 2>&5
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }; then
7671 case `/usr/bin/file conftest.o` in
7673 case $lt_cv_prog_gnu_ld in
7677 LD="${LD-ld} -m elf_x86_64"
7680 LD="${LD-ld} -m elf64_sparc"
7683 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7684 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7689 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7701 need_locks="$enable_libtool_lock"
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}mt; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$MANIFEST_TOOL"; then
7712 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7732 if test -n "$MANIFEST_TOOL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7734 $as_echo "$MANIFEST_TOOL" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7743 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7744 # Extract the first word of "mt", so it can be a program name with args.
7745 set dummy mt; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$ac_ct_MANIFEST_TOOL"; then
7752 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7772 if test -n "$ac_ct_MANIFEST_TOOL"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7774 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7789 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7792 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7795 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7797 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7798 if ${lt_cv_path_mainfest_tool+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 lt_cv_path_mainfest_tool=no
7802 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7803 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7804 cat conftest.err >&5
7805 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7806 lt_cv_path_mainfest_tool=yes
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7811 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7812 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7822 rhapsody* | darwin*)
7823 if test -n "$ac_tool_prefix"; then
7824 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7825 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 if test -n "$DSYMUTIL"; then
7832 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7852 if test -n "$DSYMUTIL"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7854 $as_echo "$DSYMUTIL" >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7862 if test -z "$ac_cv_prog_DSYMUTIL"; then
7863 ac_ct_DSYMUTIL=$DSYMUTIL
7864 # Extract the first word of "dsymutil", so it can be a program name with args.
7865 set dummy dsymutil; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7869 $as_echo_n "(cached) " >&6
7871 if test -n "$ac_ct_DSYMUTIL"; then
7872 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7892 if test -n "$ac_ct_DSYMUTIL"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7894 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7900 if test "x$ac_ct_DSYMUTIL" = x; then
7903 case $cross_compiling:$ac_tool_warned in
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907 ac_tool_warned=yes ;;
7909 DSYMUTIL=$ac_ct_DSYMUTIL
7912 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7915 if test -n "$ac_tool_prefix"; then
7916 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7917 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_NMEDIT+:} false; then :
7921 $as_echo_n "(cached) " >&6
7923 if test -n "$NMEDIT"; then
7924 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7933 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 NMEDIT=$ac_cv_prog_NMEDIT
7944 if test -n "$NMEDIT"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7946 $as_echo "$NMEDIT" >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7954 if test -z "$ac_cv_prog_NMEDIT"; then
7955 ac_ct_NMEDIT=$NMEDIT
7956 # Extract the first word of "nmedit", so it can be a program name with args.
7957 set dummy nmedit; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7961 $as_echo_n "(cached) " >&6
7963 if test -n "$ac_ct_NMEDIT"; then
7964 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7984 if test -n "$ac_ct_NMEDIT"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7986 $as_echo "$ac_ct_NMEDIT" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7992 if test "x$ac_ct_NMEDIT" = x; then
7995 case $cross_compiling:$ac_tool_warned in
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7999 ac_tool_warned=yes ;;
8001 NMEDIT=$ac_ct_NMEDIT
8004 NMEDIT="$ac_cv_prog_NMEDIT"
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_LIPO+:} false; then :
8013 $as_echo_n "(cached) " >&6
8015 if test -n "$LIPO"; then
8016 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 LIPO=$ac_cv_prog_LIPO
8036 if test -n "$LIPO"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8038 $as_echo "$LIPO" >&6; }
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8046 if test -z "$ac_cv_prog_LIPO"; then
8048 # Extract the first word of "lipo", so it can be a program name with args.
8049 set dummy lipo; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8053 $as_echo_n "(cached) " >&6
8055 if test -n "$ac_ct_LIPO"; then
8056 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_prog_ac_ct_LIPO="lipo"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8076 if test -n "$ac_ct_LIPO"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8078 $as_echo "$ac_ct_LIPO" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8084 if test "x$ac_ct_LIPO" = x; then
8087 case $cross_compiling:$ac_tool_warned in
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8091 ac_tool_warned=yes ;;
8096 LIPO="$ac_cv_prog_LIPO"
8099 if test -n "$ac_tool_prefix"; then
8100 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8101 set dummy ${ac_tool_prefix}otool; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_prog_OTOOL+:} false; then :
8105 $as_echo_n "(cached) " >&6
8107 if test -n "$OTOOL"; then
8108 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 OTOOL=$ac_cv_prog_OTOOL
8128 if test -n "$OTOOL"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8130 $as_echo "$OTOOL" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8138 if test -z "$ac_cv_prog_OTOOL"; then
8140 # Extract the first word of "otool", so it can be a program name with args.
8141 set dummy otool; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8145 $as_echo_n "(cached) " >&6
8147 if test -n "$ac_ct_OTOOL"; then
8148 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_prog_ac_ct_OTOOL="otool"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8168 if test -n "$ac_ct_OTOOL"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8170 $as_echo "$ac_ct_OTOOL" >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8176 if test "x$ac_ct_OTOOL" = x; then
8179 case $cross_compiling:$ac_tool_warned in
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8183 ac_tool_warned=yes ;;
8188 OTOOL="$ac_cv_prog_OTOOL"
8191 if test -n "$ac_tool_prefix"; then
8192 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8193 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if ${ac_cv_prog_OTOOL64+:} false; then :
8197 $as_echo_n "(cached) " >&6
8199 if test -n "$OTOOL64"; then
8200 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 OTOOL64=$ac_cv_prog_OTOOL64
8220 if test -n "$OTOOL64"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8222 $as_echo "$OTOOL64" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8230 if test -z "$ac_cv_prog_OTOOL64"; then
8231 ac_ct_OTOOL64=$OTOOL64
8232 # Extract the first word of "otool64", so it can be a program name with args.
8233 set dummy otool64; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 if test -n "$ac_ct_OTOOL64"; then
8240 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_prog_ac_ct_OTOOL64="otool64"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8260 if test -n "$ac_ct_OTOOL64"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8262 $as_echo "$ac_ct_OTOOL64" >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8268 if test "x$ac_ct_OTOOL64" = x; then
8271 case $cross_compiling:$ac_tool_warned in
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8275 ac_tool_warned=yes ;;
8277 OTOOL64=$ac_ct_OTOOL64
8280 OTOOL64="$ac_cv_prog_OTOOL64"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8310 $as_echo_n "checking for -single_module linker flag... " >&6; }
8311 if ${lt_cv_apple_cc_single_mod+:} false; then :
8312 $as_echo_n "(cached) " >&6
8314 lt_cv_apple_cc_single_mod=no
8315 if test -z "${LT_MULTI_MODULE}"; then
8316 # By default we will add the -single_module flag. You can override
8317 # by either setting the environment variable LT_MULTI_MODULE
8318 # non-empty at configure time, or by adding -multi_module to the
8320 rm -rf libconftest.dylib*
8321 echo "int foo(void){return 1;}" > conftest.c
8322 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8323 -dynamiclib -Wl,-single_module conftest.c" >&5
8324 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8325 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8327 # If there is a non-empty error log, and "single_module"
8328 # appears in it, assume the flag caused a linker warning
8329 if test -s conftest.err && $GREP single_module conftest.err; then
8330 cat conftest.err >&5
8331 # Otherwise, if the output was created with a 0 exit code from
8332 # the compiler, it worked.
8333 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8334 lt_cv_apple_cc_single_mod=yes
8336 cat conftest.err >&5
8338 rm -rf libconftest.dylib*
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8343 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8346 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8347 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8348 $as_echo_n "(cached) " >&6
8350 lt_cv_ld_exported_symbols_list=no
8351 save_LDFLAGS=$LDFLAGS
8352 echo "_main" > conftest.sym
8353 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8365 if ac_fn_c_try_link "$LINENO"; then :
8366 lt_cv_ld_exported_symbols_list=yes
8368 lt_cv_ld_exported_symbols_list=no
8370 rm -f core conftest.err conftest.$ac_objext \
8371 conftest$ac_exeext conftest.$ac_ext
8372 LDFLAGS="$save_LDFLAGS"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8376 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8379 $as_echo_n "checking for -force_load linker flag... " >&6; }
8380 if ${lt_cv_ld_force_load+:} false; then :
8381 $as_echo_n "(cached) " >&6
8383 lt_cv_ld_force_load=no
8384 cat > conftest.c << _LT_EOF
8385 int forced_loaded() { return 2;}
8387 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8388 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8389 echo "$AR cru libconftest.a conftest.o" >&5
8390 $AR cru libconftest.a conftest.o 2>&5
8391 echo "$RANLIB libconftest.a" >&5
8392 $RANLIB libconftest.a 2>&5
8393 cat > conftest.c << _LT_EOF
8394 int main() { return 0;}
8396 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8397 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8399 if test -s conftest.err && $GREP force_load conftest.err; then
8400 cat conftest.err >&5
8401 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8402 lt_cv_ld_force_load=yes
8404 cat conftest.err >&5
8406 rm -f conftest.err libconftest.a conftest conftest.c
8407 rm -rf conftest.dSYM
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8411 $as_echo "$lt_cv_ld_force_load" >&6; }
8413 rhapsody* | darwin1.[012])
8414 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8417 darwin*) # darwin 5.x on
8418 # if running on 10.5 or later, the deployment target defaults
8419 # to the OS version, if on x86, and 10.4, the deployment
8420 # target defaults to 10.4. Don't you love it?
8421 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8422 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8431 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8432 _lt_dar_single_mod='$single_module'
8434 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8435 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8437 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8439 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8440 _lt_dsymutil='~$DSYMUTIL $lib || :'
8447 for ac_header in dlfcn.h
8449 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8451 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8452 cat >>confdefs.h <<_ACEOF
8453 #define HAVE_DLFCN_H 1
8465 enable_win32_dll=yes
8468 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8469 if test -n "$ac_tool_prefix"; then
8470 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8471 set dummy ${ac_tool_prefix}as; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_AS+:} false; then :
8475 $as_echo_n "(cached) " >&6
8477 if test -n "$AS"; then
8478 ac_cv_prog_AS="$AS" # Let the user override the test.
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8487 ac_cv_prog_AS="${ac_tool_prefix}as"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 if test -n "$AS"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8500 $as_echo "$AS" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8508 if test -z "$ac_cv_prog_AS"; then
8510 # Extract the first word of "as", so it can be a program name with args.
8511 set dummy as; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8515 $as_echo_n "(cached) " >&6
8517 if test -n "$ac_ct_AS"; then
8518 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527 ac_cv_prog_ac_ct_AS="as"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8538 if test -n "$ac_ct_AS"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8540 $as_echo "$ac_ct_AS" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8546 if test "x$ac_ct_AS" = x; then
8549 case $cross_compiling:$ac_tool_warned in
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8553 ac_tool_warned=yes ;;
8561 if test -n "$ac_tool_prefix"; then
8562 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8563 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if ${ac_cv_prog_DLLTOOL+:} false; then :
8567 $as_echo_n "(cached) " >&6
8569 if test -n "$DLLTOOL"; then
8570 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8579 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 DLLTOOL=$ac_cv_prog_DLLTOOL
8590 if test -n "$DLLTOOL"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8592 $as_echo "$DLLTOOL" >&6; }
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8600 if test -z "$ac_cv_prog_DLLTOOL"; then
8601 ac_ct_DLLTOOL=$DLLTOOL
8602 # Extract the first word of "dlltool", so it can be a program name with args.
8603 set dummy dlltool; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8607 $as_echo_n "(cached) " >&6
8609 if test -n "$ac_ct_DLLTOOL"; then
8610 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8630 if test -n "$ac_ct_DLLTOOL"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8632 $as_echo "$ac_ct_DLLTOOL" >&6; }
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8638 if test "x$ac_ct_DLLTOOL" = x; then
8641 case $cross_compiling:$ac_tool_warned in
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8645 ac_tool_warned=yes ;;
8647 DLLTOOL=$ac_ct_DLLTOOL
8650 DLLTOOL="$ac_cv_prog_DLLTOOL"
8653 if test -n "$ac_tool_prefix"; then
8654 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8655 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_prog_OBJDUMP+:} false; then :
8659 $as_echo_n "(cached) " >&6
8661 if test -n "$OBJDUMP"; then
8662 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 OBJDUMP=$ac_cv_prog_OBJDUMP
8682 if test -n "$OBJDUMP"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8684 $as_echo "$OBJDUMP" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8692 if test -z "$ac_cv_prog_OBJDUMP"; then
8693 ac_ct_OBJDUMP=$OBJDUMP
8694 # Extract the first word of "objdump", so it can be a program name with args.
8695 set dummy objdump; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 if test -n "$ac_ct_OBJDUMP"; then
8702 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8722 if test -n "$ac_ct_OBJDUMP"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8724 $as_echo "$ac_ct_OBJDUMP" >&6; }
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8730 if test "x$ac_ct_OBJDUMP" = x; then
8733 case $cross_compiling:$ac_tool_warned in
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8737 ac_tool_warned=yes ;;
8739 OBJDUMP=$ac_ct_OBJDUMP
8742 OBJDUMP="$ac_cv_prog_OBJDUMP"
8748 test -z "$AS" && AS=as
8754 test -z "$DLLTOOL" && DLLTOOL=dlltool
8760 test -z "$OBJDUMP" && OBJDUMP=objdump
8772 # Check whether --enable-shared was given.
8773 if test "${enable_shared+set}" = set; then :
8774 enableval=$enable_shared; p=${PACKAGE-default}
8776 yes) enable_shared=yes ;;
8777 no) enable_shared=no ;;
8780 # Look at the argument we got. We use all the common list separators.
8781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8782 for pkg in $enableval; do
8784 if test "X$pkg" = "X$p"; then
8803 # Check whether --enable-static was given.
8804 if test "${enable_static+set}" = set; then :
8805 enableval=$enable_static; p=${PACKAGE-default}
8807 yes) enable_static=yes ;;
8808 no) enable_static=no ;;
8811 # Look at the argument we got. We use all the common list separators.
8812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8813 for pkg in $enableval; do
8815 if test "X$pkg" = "X$p"; then
8835 # Check whether --with-pic was given.
8836 if test "${with_pic+set}" = set; then :
8837 withval=$with_pic; lt_p=${PACKAGE-default}
8839 yes|no) pic_mode=$withval ;;
8842 # Look at the argument we got. We use all the common list separators.
8843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8844 for lt_pkg in $withval; do
8846 if test "X$lt_pkg" = "X$lt_p"; then
8858 test -z "$pic_mode" && pic_mode=default
8866 # Check whether --enable-fast-install was given.
8867 if test "${enable_fast_install+set}" = set; then :
8868 enableval=$enable_fast_install; p=${PACKAGE-default}
8870 yes) enable_fast_install=yes ;;
8871 no) enable_fast_install=no ;;
8873 enable_fast_install=no
8874 # Look at the argument we got. We use all the common list separators.
8875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8876 for pkg in $enableval; do
8878 if test "X$pkg" = "X$p"; then
8879 enable_fast_install=yes
8886 enable_fast_install=yes
8899 # This can be used to rebuild libtool when needed
8900 LIBTOOL_DEPS="$ltmain"
8902 # Always use our own libtool.
8903 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8934 test -z "$LN_S" && LN_S="ln -s"
8949 if test -n "${ZSH_VERSION+set}" ; then
8950 setopt NO_GLOB_SUBST
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8954 $as_echo_n "checking for objdir... " >&6; }
8955 if ${lt_cv_objdir+:} false; then :
8956 $as_echo_n "(cached) " >&6
8958 rm -f .libs 2>/dev/null
8959 mkdir .libs 2>/dev/null
8960 if test -d .libs; then
8963 # MS-DOS does not allow filenames that begin with a dot.
8966 rmdir .libs 2>/dev/null
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8969 $as_echo "$lt_cv_objdir" >&6; }
8970 objdir=$lt_cv_objdir
8976 cat >>confdefs.h <<_ACEOF
8977 #define LT_OBJDIR "$lt_cv_objdir/"
8985 # AIX sometimes has problems with the GCC collect2 program. For some
8986 # reason, if we set the COLLECT_NAMES environment variable, the problems
8987 # vanish in a puff of smoke.
8988 if test "X${COLLECT_NAMES+set}" != Xset; then
8990 export COLLECT_NAMES
8997 can_build_shared=yes
8999 # All known linkers require a `.a' archive for static linking (except MSVC,
9000 # which needs '.lib').
9003 with_gnu_ld="$lt_cv_prog_gnu_ld"
9006 old_CFLAGS="$CFLAGS"
9008 # Set sane defaults for various variables
9009 test -z "$CC" && CC=cc
9010 test -z "$LTCC" && LTCC=$CC
9011 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9012 test -z "$LD" && LD=ld
9013 test -z "$ac_objext" && ac_objext=o
9015 for cc_temp in $compiler""; do
9017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9023 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9026 # Only perform the check for file, if the check method requires it
9027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9028 case $deplibs_check_method in
9030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9032 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9033 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9034 $as_echo_n "(cached) " >&6
9038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9041 lt_save_MAGIC_CMD="$MAGIC_CMD"
9042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9044 for ac_dir in $ac_dummy; do
9046 test -z "$ac_dir" && ac_dir=.
9047 if test -f $ac_dir/${ac_tool_prefix}file; then
9048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9049 if test -n "$file_magic_test_file"; then
9050 case $deplibs_check_method in
9052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9055 $EGREP "$file_magic_regex" > /dev/null; then
9060 *** Warning: the command libtool uses to detect shared libraries,
9061 *** $file_magic_cmd, produces output that libtool cannot recognize.
9062 *** The result is that libtool may fail to recognize shared libraries
9063 *** as such. This will affect the creation of libtool libraries that
9064 *** depend on shared libraries, but programs linked with such libtool
9065 *** libraries will work regardless of this problem. Nevertheless, you
9066 *** may want to report the problem to your system manager and/or to
9067 *** bug-libtool@gnu.org
9077 MAGIC_CMD="$lt_save_MAGIC_CMD"
9082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9083 if test -n "$MAGIC_CMD"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9085 $as_echo "$MAGIC_CMD" >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9095 if test -z "$lt_cv_path_MAGIC_CMD"; then
9096 if test -n "$ac_tool_prefix"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9098 $as_echo_n "checking for file... " >&6; }
9099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9100 $as_echo_n "(cached) " >&6
9104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9107 lt_save_MAGIC_CMD="$MAGIC_CMD"
9108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9110 for ac_dir in $ac_dummy; do
9112 test -z "$ac_dir" && ac_dir=.
9113 if test -f $ac_dir/file; then
9114 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9115 if test -n "$file_magic_test_file"; then
9116 case $deplibs_check_method in
9118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9121 $EGREP "$file_magic_regex" > /dev/null; then
9126 *** Warning: the command libtool uses to detect shared libraries,
9127 *** $file_magic_cmd, produces output that libtool cannot recognize.
9128 *** The result is that libtool may fail to recognize shared libraries
9129 *** as such. This will affect the creation of libtool libraries that
9130 *** depend on shared libraries, but programs linked with such libtool
9131 *** libraries will work regardless of this problem. Nevertheless, you
9132 *** may want to report the problem to your system manager and/or to
9133 *** bug-libtool@gnu.org
9143 MAGIC_CMD="$lt_save_MAGIC_CMD"
9148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9149 if test -n "$MAGIC_CMD"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9151 $as_echo "$MAGIC_CMD" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9167 # Use C for the default configuration in the libtool script
9171 ac_cpp='$CPP $CPPFLAGS'
9172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9177 # Source file extension for C test sources.
9180 # Object file extension for compiled C test sources.
9184 # Code to be used in simple compile tests
9185 lt_simple_compile_test_code="int some_variable = 0;"
9187 # Code to be used in simple link tests
9188 lt_simple_link_test_code='int main(){return(0);}'
9196 # If no C compiler was specified, use CC.
9199 # If no C compiler flags were specified, use CFLAGS.
9200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9202 # Allow CC to be a program name with arguments.
9205 # Save the default compiler, since it gets overwritten when the other
9206 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9207 compiler_DEFAULT=$CC
9209 # save warnings/boilerplate of simple test code
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9213 _lt_compiler_boilerplate=`cat conftest.err`
9216 ac_outfile=conftest.$ac_objext
9217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9219 _lt_linker_boilerplate=`cat conftest.err`
9223 if test -n "$compiler"; then
9225 lt_prog_compiler_no_builtin_flag=
9227 if test "$GCC" = yes; then
9228 case $cc_basename in
9230 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9232 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9236 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9237 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9238 $as_echo_n "(cached) " >&6
9240 lt_cv_prog_compiler_rtti_exceptions=no
9241 ac_outfile=conftest.$ac_objext
9242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9243 lt_compiler_flag="-fno-rtti -fno-exceptions"
9244 # Insert the option either (1) after the last *FLAGS variable, or
9245 # (2) before a word containing "conftest.", or (3) at the end.
9246 # Note that $ac_compile itself does not contain backslashes and begins
9247 # with a dollar sign (not a hyphen), so the echo should work correctly.
9248 # The option is referenced via a variable to avoid confusing sed.
9249 lt_compile=`echo "$ac_compile" | $SED \
9250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9252 -e 's:$: $lt_compiler_flag:'`
9253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9254 (eval "$lt_compile" 2>conftest.err)
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 if (exit $ac_status) && test -s "$ac_outfile"; then
9259 # The compiler can only warn and ignore the option if not recognized
9260 # So say no if there are warnings other than the usual output.
9261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9264 lt_cv_prog_compiler_rtti_exceptions=yes
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9271 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9274 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9286 lt_prog_compiler_wl=
9287 lt_prog_compiler_pic=
9288 lt_prog_compiler_static=
9291 if test "$GCC" = yes; then
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_static='-static'
9297 # All AIX code is PIC.
9298 if test "$host_cpu" = ia64; then
9299 # AIX 5 now supports IA64 processor
9300 lt_prog_compiler_static='-Bstatic'
9307 # see comment about AmigaOS4 .so support
9308 lt_prog_compiler_pic='-fPIC'
9311 # FIXME: we need at least 68020 code to build shared libraries, but
9312 # adding the `-m68020' flag to GCC prevents building anything better,
9314 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9319 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9320 # PIC is the default for these OSes.
9323 mingw* | cygwin* | pw32* | os2* | cegcc*)
9324 # This hack is so that the source file can tell whether it is being
9325 # built for inclusion in a dll (and should export symbols for example).
9326 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9327 # (--disable-auto-import) libraries
9328 lt_prog_compiler_pic='-DDLL_EXPORT'
9331 darwin* | rhapsody*)
9332 # PIC is the default on this platform
9333 # Common symbols not allowed in MH_DYLIB files
9334 lt_prog_compiler_pic='-fno-common'
9338 # PIC is the default for Haiku.
9339 # The "-static" flag exists, but is broken.
9340 lt_prog_compiler_static=
9344 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9345 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9346 # sets the default TLS model and affects inlining.
9352 lt_prog_compiler_pic='-fPIC'
9358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9359 # Instead, we relocate shared libraries at runtime.
9363 # Just because we use GCC doesn't mean we suddenly get shared libraries
9364 # on systems that don't support them.
9365 lt_prog_compiler_can_build_shared=no
9370 # QNX uses GNU C++, but need to define -shared option too, otherwise
9372 lt_prog_compiler_pic='-fPIC -shared'
9376 if test -d /usr/nec; then
9377 lt_prog_compiler_pic=-Kconform_pic
9382 lt_prog_compiler_pic='-fPIC'
9386 case $cc_basename in
9387 nvcc*) # Cuda Compiler Driver 2.2
9388 lt_prog_compiler_wl='-Xlinker '
9389 if test -n "$lt_prog_compiler_pic"; then
9390 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9395 # PORTME Check for flag to pass linker flags through the system compiler.
9398 lt_prog_compiler_wl='-Wl,'
9399 if test "$host_cpu" = ia64; then
9400 # AIX 5 now supports IA64 processor
9401 lt_prog_compiler_static='-Bstatic'
9403 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9407 mingw* | cygwin* | pw32* | os2* | cegcc*)
9408 # This hack is so that the source file can tell whether it is being
9409 # built for inclusion in a dll (and should export symbols for example).
9410 lt_prog_compiler_pic='-DDLL_EXPORT'
9413 hpux9* | hpux10* | hpux11*)
9414 lt_prog_compiler_wl='-Wl,'
9415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9422 lt_prog_compiler_pic='+Z'
9425 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9426 lt_prog_compiler_static='${wl}-a ${wl}archive'
9429 irix5* | irix6* | nonstopux*)
9430 lt_prog_compiler_wl='-Wl,'
9431 # PIC (with -KPIC) is the default.
9432 lt_prog_compiler_static='-non_shared'
9435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9436 case $cc_basename in
9437 # old Intel for x86_64 which still supported -KPIC.
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-static'
9443 # icc used to be incompatible with GCC.
9444 # ICC 10 doesn't accept -KPIC any more.
9446 lt_prog_compiler_wl='-Wl,'
9447 lt_prog_compiler_pic='-fPIC'
9448 lt_prog_compiler_static='-static'
9450 # Lahey Fortran 8.1.
9452 lt_prog_compiler_wl='-Wl,'
9453 lt_prog_compiler_pic='--shared'
9454 lt_prog_compiler_static='--static'
9457 # NAG Fortran compiler
9458 lt_prog_compiler_wl='-Wl,-Wl,,'
9459 lt_prog_compiler_pic='-PIC'
9460 lt_prog_compiler_static='-Bstatic'
9462 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9463 # Portland Group compilers (*not* the Pentium gcc compiler,
9464 # which looks to be a dead project)
9465 lt_prog_compiler_wl='-Wl,'
9466 lt_prog_compiler_pic='-fpic'
9467 lt_prog_compiler_static='-Bstatic'
9470 lt_prog_compiler_wl='-Wl,'
9471 # All Alpha code is PIC.
9472 lt_prog_compiler_static='-non_shared'
9474 xl* | bgxl* | bgf* | mpixl*)
9475 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_pic='-qpic'
9478 lt_prog_compiler_static='-qstaticlink'
9481 case `$CC -V 2>&1 | sed 5q` in
9482 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9483 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-Bstatic'
9486 lt_prog_compiler_wl=''
9488 *Sun\ F* | *Sun*Fortran*)
9489 lt_prog_compiler_pic='-KPIC'
9490 lt_prog_compiler_static='-Bstatic'
9491 lt_prog_compiler_wl='-Qoption ld '
9495 lt_prog_compiler_pic='-KPIC'
9496 lt_prog_compiler_static='-Bstatic'
9497 lt_prog_compiler_wl='-Wl,'
9499 *Intel*\ [CF]*Compiler*)
9500 lt_prog_compiler_wl='-Wl,'
9501 lt_prog_compiler_pic='-fPIC'
9502 lt_prog_compiler_static='-static'
9505 lt_prog_compiler_wl='-Wl,'
9506 lt_prog_compiler_pic='-fpic'
9507 lt_prog_compiler_static='-Bstatic'
9515 lt_prog_compiler_pic='-KPIC'
9516 lt_prog_compiler_static='-Bstatic'
9520 # QNX uses GNU C++, but need to define -shared option too, otherwise
9522 lt_prog_compiler_pic='-fPIC -shared'
9525 osf3* | osf4* | osf5*)
9526 lt_prog_compiler_wl='-Wl,'
9527 # All OSF/1 code is PIC.
9528 lt_prog_compiler_static='-non_shared'
9532 lt_prog_compiler_static='-non_shared'
9536 lt_prog_compiler_pic='-KPIC'
9537 lt_prog_compiler_static='-Bstatic'
9538 case $cc_basename in
9539 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9540 lt_prog_compiler_wl='-Qoption ld ';;
9542 lt_prog_compiler_wl='-Wl,';;
9547 lt_prog_compiler_wl='-Qoption ld '
9548 lt_prog_compiler_pic='-PIC'
9549 lt_prog_compiler_static='-Bstatic'
9552 sysv4 | sysv4.2uw2* | sysv4.3*)
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-Bstatic'
9559 if test -d /usr/nec ;then
9560 lt_prog_compiler_pic='-Kconform_pic'
9561 lt_prog_compiler_static='-Bstatic'
9565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9566 lt_prog_compiler_wl='-Wl,'
9567 lt_prog_compiler_pic='-KPIC'
9568 lt_prog_compiler_static='-Bstatic'
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_can_build_shared=no
9577 lt_prog_compiler_pic='-pic'
9578 lt_prog_compiler_static='-Bstatic'
9582 lt_prog_compiler_can_build_shared=no
9588 # For platforms which do not support PIC, -DPIC is meaningless:
9590 lt_prog_compiler_pic=
9593 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9598 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9599 if ${lt_cv_prog_compiler_pic+:} false; then :
9600 $as_echo_n "(cached) " >&6
9602 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9605 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9606 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9609 # Check to make sure the PIC flag actually works.
9611 if test -n "$lt_prog_compiler_pic"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9613 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9614 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9615 $as_echo_n "(cached) " >&6
9617 lt_cv_prog_compiler_pic_works=no
9618 ac_outfile=conftest.$ac_objext
9619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9621 # Insert the option either (1) after the last *FLAGS variable, or
9622 # (2) before a word containing "conftest.", or (3) at the end.
9623 # Note that $ac_compile itself does not contain backslashes and begins
9624 # with a dollar sign (not a hyphen), so the echo should work correctly.
9625 # The option is referenced via a variable to avoid confusing sed.
9626 lt_compile=`echo "$ac_compile" | $SED \
9627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9629 -e 's:$: $lt_compiler_flag:'`
9630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9631 (eval "$lt_compile" 2>conftest.err)
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 if (exit $ac_status) && test -s "$ac_outfile"; then
9636 # The compiler can only warn and ignore the option if not recognized
9637 # So say no if there are warnings other than the usual output.
9638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9641 lt_cv_prog_compiler_pic_works=yes
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9648 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9650 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9651 case $lt_prog_compiler_pic in
9653 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9656 lt_prog_compiler_pic=
9657 lt_prog_compiler_can_build_shared=no
9673 # Check to make sure the static flag actually works.
9675 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9677 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9678 if ${lt_cv_prog_compiler_static_works+:} false; then :
9679 $as_echo_n "(cached) " >&6
9681 lt_cv_prog_compiler_static_works=no
9682 save_LDFLAGS="$LDFLAGS"
9683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9684 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9686 # The linker can only warn and ignore the option if not recognized
9687 # So say no if there are warnings
9688 if test -s conftest.err; then
9689 # Append any errors to the config.log.
9690 cat conftest.err 1>&5
9691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9693 if diff conftest.exp conftest.er2 >/dev/null; then
9694 lt_cv_prog_compiler_static_works=yes
9697 lt_cv_prog_compiler_static_works=yes
9701 LDFLAGS="$save_LDFLAGS"
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9705 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9707 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9710 lt_prog_compiler_static=
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9720 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9721 if ${lt_cv_prog_compiler_c_o+:} false; then :
9722 $as_echo_n "(cached) " >&6
9724 lt_cv_prog_compiler_c_o=no
9725 $RM -r conftest 2>/dev/null
9729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9731 lt_compiler_flag="-o out/conftest2.$ac_objext"
9732 # Insert the option either (1) after the last *FLAGS variable, or
9733 # (2) before a word containing "conftest.", or (3) at the end.
9734 # Note that $ac_compile itself does not contain backslashes and begins
9735 # with a dollar sign (not a hyphen), so the echo should work correctly.
9736 lt_compile=`echo "$ac_compile" | $SED \
9737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9739 -e 's:$: $lt_compiler_flag:'`
9740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9741 (eval "$lt_compile" 2>out/conftest.err)
9743 cat out/conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9747 # The compiler can only warn and ignore the option if not recognized
9748 # So say no if there are warnings
9749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9752 lt_cv_prog_compiler_c_o=yes
9757 # SGI C++ compiler will create directory out/ii_files/ for
9758 # template instantiation
9759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9760 $RM out/* && rmdir out
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9767 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9775 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9776 if ${lt_cv_prog_compiler_c_o+:} false; then :
9777 $as_echo_n "(cached) " >&6
9779 lt_cv_prog_compiler_c_o=no
9780 $RM -r conftest 2>/dev/null
9784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9786 lt_compiler_flag="-o out/conftest2.$ac_objext"
9787 # Insert the option either (1) after the last *FLAGS variable, or
9788 # (2) before a word containing "conftest.", or (3) at the end.
9789 # Note that $ac_compile itself does not contain backslashes and begins
9790 # with a dollar sign (not a hyphen), so the echo should work correctly.
9791 lt_compile=`echo "$ac_compile" | $SED \
9792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9794 -e 's:$: $lt_compiler_flag:'`
9795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9796 (eval "$lt_compile" 2>out/conftest.err)
9798 cat out/conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9802 # The compiler can only warn and ignore the option if not recognized
9803 # So say no if there are warnings
9804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9807 lt_cv_prog_compiler_c_o=yes
9812 # SGI C++ compiler will create directory out/ii_files/ for
9813 # template instantiation
9814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9815 $RM out/* && rmdir out
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9822 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9827 hard_links="nottested"
9828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9829 # do not overwrite the value of need_locks provided by the user
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9831 $as_echo_n "checking if we can lock with hard links... " >&6; }
9834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9836 ln conftest.a conftest.b 2>&5 || hard_links=no
9837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9839 $as_echo "$hard_links" >&6; }
9840 if test "$hard_links" = no; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9842 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9858 allow_undefined_flag=
9859 always_export_symbols=no
9861 archive_expsym_cmds=
9862 compiler_needs_object=no
9863 enable_shared_with_static_runtimes=no
9864 export_dynamic_flag_spec=
9865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9866 hardcode_automatic=no
9868 hardcode_direct_absolute=no
9869 hardcode_libdir_flag_spec=
9870 hardcode_libdir_separator=
9872 hardcode_shlibpath_var=unsupported
9874 link_all_deplibs=unknown
9877 old_archive_from_new_cmds=
9878 old_archive_from_expsyms_cmds=
9879 thread_safe_flag_spec=
9880 whole_archive_flag_spec=
9881 # include_expsyms should be a list of space-separated symbols to be *always*
9882 # included in the symbol list
9884 # exclude_expsyms can be an extended regexp of symbols to exclude
9885 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9886 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9887 # as well as any symbol that contains `d'.
9888 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9889 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9890 # platforms (ab)use it in PIC code, but their linkers get confused if
9891 # the symbol is explicitly referenced. Since portable code cannot
9892 # rely on this symbol name, it's probably fine to never include it in
9893 # preloaded symbol tables.
9894 # Exclude shared library initialization/finalization symbols.
9895 extract_expsyms_cmds=
9898 cygwin* | mingw* | pw32* | cegcc*)
9899 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9900 # When not using gcc, we currently assume that we are using
9901 # Microsoft Visual C++.
9902 if test "$GCC" != yes; then
9907 # we just hope/assume this is gcc and not c89 (= MSVC++)
9917 # On some targets, GNU ld is compatible enough with the native linker
9918 # that we're better off using the native interface for both.
9919 lt_use_gnu_ld_interface=no
9920 if test "$with_gnu_ld" = yes; then
9923 # The AIX port of GNU ld has always aspired to compatibility
9924 # with the native linker. However, as the warning in the GNU ld
9925 # block says, versions before 2.19.5* couldn't really create working
9926 # shared libraries, regardless of the interface used.
9927 case `$LD -v 2>&1` in
9928 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9929 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9930 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9932 lt_use_gnu_ld_interface=yes
9937 lt_use_gnu_ld_interface=yes
9942 if test "$lt_use_gnu_ld_interface" = yes; then
9943 # If archive_cmds runs LD, not CC, wlarc should be empty
9946 # Set some defaults for GNU ld with shared library support. These
9947 # are reset later if shared libraries are not supported. Putting them
9948 # here allows them to be overridden if necessary.
9949 runpath_var=LD_RUN_PATH
9950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951 export_dynamic_flag_spec='${wl}--export-dynamic'
9952 # ancient GNU ld didn't support --whole-archive et. al.
9953 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9956 whole_archive_flag_spec=
9958 supports_anon_versioning=no
9959 case `$LD -v 2>&1` in
9960 *GNU\ gold*) supports_anon_versioning=yes ;;
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9964 *\ 2.11.*) ;; # other 2.11 versions
9965 *) supports_anon_versioning=yes ;;
9968 # See if GNU ld supports shared libraries.
9971 # On AIX/PPC, the GNU linker is very broken
9972 if test "$host_cpu" != ia64; then
9976 *** Warning: the GNU linker, at least up to release 2.19, is reported
9977 *** to be unable to reliably create shared libraries on AIX.
9978 *** Therefore, libtool is disabling shared libraries support. If you
9979 *** really care for shared libraries, you may want to install binutils
9980 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9981 *** You will then need to restart the configuration process.
9990 # see comment about AmigaOS4 .so support
9991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992 archive_expsym_cmds=''
9995 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)'
9996 hardcode_libdir_flag_spec='-L$libdir'
9997 hardcode_minus_L=yes
10003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10004 allow_undefined_flag=unsupported
10005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10006 # support --undefined. This deserves some investigation. FIXME
10007 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013 cygwin* | mingw* | pw32* | cegcc*)
10014 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10015 # as there is no search path for DLLs.
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 export_dynamic_flag_spec='${wl}--export-all-symbols'
10018 allow_undefined_flag=unsupported
10019 always_export_symbols=no
10020 enable_shared_with_static_runtimes=yes
10021 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'
10022 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10024 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10026 # If the export-symbols file already is a .def file (1st line
10027 # is EXPORTS), use it as is; otherwise, prepend...
10028 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10029 cp $export_symbols $output_objdir/$soname.def;
10031 echo EXPORTS > $output_objdir/$soname.def;
10032 cat $export_symbols >> $output_objdir/$soname.def;
10034 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042 link_all_deplibs=yes
10047 hardcode_shlibpath_var=no
10048 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10049 export_dynamic_flag_spec='${wl}-E'
10050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10051 # Instead, shared libraries are loaded at an image base (0x10000000 by
10052 # default) and relocated if they conflict, which is a slow very memory
10053 # consuming and fragmenting process. To avoid this, we pick a random,
10054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10057 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'
10060 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10062 if test "$host_os" = linux-dietlibc; then
10063 case $cc_basename in
10064 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10067 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10068 && test "$tmp_diet" = no
10070 tmp_addflag=' $pic_flag'
10071 tmp_sharedflag='-shared'
10072 case $cc_basename,$host_cpu in
10073 pgcc*) # Portland Group C compiler
10074 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'
10075 tmp_addflag=' $pic_flag'
10077 pgf77* | pgf90* | pgf95* | pgfortran*)
10078 # Portland Group f77 and f90 compilers
10079 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'
10080 tmp_addflag=' $pic_flag -Mnomain' ;;
10081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10082 tmp_addflag=' -i_dynamic' ;;
10083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10084 tmp_addflag=' -i_dynamic -nofor_main' ;;
10085 ifc* | ifort*) # Intel Fortran compiler
10086 tmp_addflag=' -nofor_main' ;;
10087 lf95*) # Lahey Fortran 8.1
10088 whole_archive_flag_spec=
10089 tmp_sharedflag='--shared' ;;
10090 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10091 tmp_sharedflag='-qmkshrobj'
10093 nvcc*) # Cuda Compiler Driver 2.2
10094 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'
10095 compiler_needs_object=yes
10098 case `$CC -V 2>&1 | sed 5q` in
10099 *Sun\ C*) # Sun C 5.9
10100 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'
10101 compiler_needs_object=yes
10102 tmp_sharedflag='-G' ;;
10103 *Sun\ F*) # Sun Fortran 8.3
10104 tmp_sharedflag='-G' ;;
10106 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108 if test "x$supports_anon_versioning" = xyes; then
10109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10111 echo "local: *; };" >> $output_objdir/$libname.ver~
10112 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10115 case $cc_basename in
10116 xlf* | bgf* | bgxlf* | mpixlf*)
10117 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10118 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10121 if test "x$supports_anon_versioning" = xyes; then
10122 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10124 echo "local: *; };" >> $output_objdir/$libname.ver~
10125 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10136 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10139 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10145 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10150 *** create shared libraries on Solaris systems. Therefore, libtool
10151 *** is disabling shared libraries support. We urge you to upgrade GNU
10152 *** binutils to release 2.9.1 or newer. Another option is to modify
10153 *** your PATH or compiler configuration so that the native linker is
10154 *** used, and then restart.
10157 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10158 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10166 case `$LD -v 2>&1` in
10167 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10171 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10172 *** reliably create shared libraries on SCO systems. Therefore, libtool
10173 *** is disabling shared libraries support. We urge you to upgrade GNU
10174 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10175 *** your PATH or compiler configuration so that the native linker is
10176 *** used, and then restart.
10181 # For security reasons, it is highly recommended that you always
10182 # use absolute paths for naming shared libraries, and exclude the
10183 # DT_RUNPATH tag from executables and libraries. But doing so
10184 # requires that you compile everything twice, which is a pain.
10185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10197 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=yes
10200 hardcode_shlibpath_var=no
10204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10213 if test "$ld_shlibs" = no; then
10215 hardcode_libdir_flag_spec=
10216 export_dynamic_flag_spec=
10217 whole_archive_flag_spec=
10220 # PORTME fill in a description of your system's linker (not GNU ld)
10223 allow_undefined_flag=unsupported
10224 always_export_symbols=yes
10225 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'
10226 # Note: this linker hardcodes the directories in LIBPATH if there
10227 # are no directories specified by -L.
10228 hardcode_minus_L=yes
10229 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10230 # Neither direct hardcoding nor static linking is supported with a
10232 hardcode_direct=unsupported
10237 if test "$host_cpu" = ia64; then
10238 # On IA64, the linker does run time linking by default, so we don't
10239 # have to do anything special.
10240 aix_use_runtimelinking=no
10241 exp_sym_flag='-Bexport'
10244 # If we're using GNU nm, then we don't want the "-C" option.
10245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10246 # Also, AIX nm treats weak defined symbols like other global
10247 # defined symbols, whereas GNU nm marks them as "W".
10248 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10249 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'
10251 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'
10253 aix_use_runtimelinking=no
10255 # Test if we are trying to use run time linking or normal
10256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10257 # need to do runtime linking.
10258 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10259 for ld_flag in $LDFLAGS; do
10260 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10261 aix_use_runtimelinking=yes
10268 exp_sym_flag='-bexport'
10269 no_entry_flag='-bnoentry'
10272 # When large executables or shared objects are built, AIX ld can
10273 # have problems creating the table of contents. If linking a library
10274 # or program results in "error TOC overflow" add -mminimal-toc to
10275 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10276 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10279 hardcode_direct=yes
10280 hardcode_direct_absolute=yes
10281 hardcode_libdir_separator=':'
10282 link_all_deplibs=yes
10283 file_list_spec='${wl}-f,'
10285 if test "$GCC" = yes; then
10286 case $host_os in aix4.[012]|aix4.[012].*)
10287 # We only want to do this on AIX 4.2 and lower, the check
10288 # below for broken collect2 doesn't work under 4.3+
10289 collect2name=`${CC} -print-prog-name=collect2`
10290 if test -f "$collect2name" &&
10291 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10293 # We have reworked collect2
10296 # We have old collect2
10297 hardcode_direct=unsupported
10298 # It fails to find uninstalled libraries when the uninstalled
10299 # path is not listed in the libpath. Setting hardcode_minus_L
10300 # to unsupported forces relinking
10301 hardcode_minus_L=yes
10302 hardcode_libdir_flag_spec='-L$libdir'
10303 hardcode_libdir_separator=
10307 shared_flag='-shared'
10308 if test "$aix_use_runtimelinking" = yes; then
10309 shared_flag="$shared_flag "'${wl}-G'
10313 if test "$host_cpu" = ia64; then
10314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10315 # chokes on -Wl,-G. The following line is correct:
10318 if test "$aix_use_runtimelinking" = yes; then
10319 shared_flag='${wl}-G'
10321 shared_flag='${wl}-bM:SRE'
10326 export_dynamic_flag_spec='${wl}-bexpall'
10327 # It seems that -bexpall does not export symbols beginning with
10328 # underscore (_), so it is better to generate a list of symbols to export.
10329 always_export_symbols=yes
10330 if test "$aix_use_runtimelinking" = yes; then
10331 # Warning - without using the other runtime loading flags (-brtl),
10332 # -berok will link without error, but may produce a broken library.
10333 allow_undefined_flag='-berok'
10334 # Determine the default libpath from the value encoded in an
10335 # empty executable.
10336 if test "${lt_cv_aix_libpath+set}" = set; then
10337 aix_libpath=$lt_cv_aix_libpath
10339 if ${lt_cv_aix_libpath_+:} false; then :
10340 $as_echo_n "(cached) " >&6
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10353 if ac_fn_c_try_link "$LINENO"; then :
10355 lt_aix_libpath_sed='
10356 /Import File Strings/,/^$/ {
10358 s/^0 *\([^ ]*\) *$/\1/
10362 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10363 # Check for a 64-bit object if we didn't find anything.
10364 if test -z "$lt_cv_aix_libpath_"; then
10365 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 if test -z "$lt_cv_aix_libpath_"; then
10371 lt_cv_aix_libpath_="/usr/lib:/lib"
10376 aix_libpath=$lt_cv_aix_libpath_
10379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10380 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"
10382 if test "$host_cpu" = ia64; then
10383 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10384 allow_undefined_flag="-z nodefs"
10385 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"
10387 # Determine the default libpath from the value encoded in an
10388 # empty executable.
10389 if test "${lt_cv_aix_libpath+set}" = set; then
10390 aix_libpath=$lt_cv_aix_libpath
10392 if ${lt_cv_aix_libpath_+:} false; then :
10393 $as_echo_n "(cached) " >&6
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10406 if ac_fn_c_try_link "$LINENO"; then :
10408 lt_aix_libpath_sed='
10409 /Import File Strings/,/^$/ {
10411 s/^0 *\([^ ]*\) *$/\1/
10415 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10416 # Check for a 64-bit object if we didn't find anything.
10417 if test -z "$lt_cv_aix_libpath_"; then
10418 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421 rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 if test -z "$lt_cv_aix_libpath_"; then
10424 lt_cv_aix_libpath_="/usr/lib:/lib"
10429 aix_libpath=$lt_cv_aix_libpath_
10432 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10433 # Warning - without using the other run time loading flags,
10434 # -berok will link without error, but may produce a broken library.
10435 no_undefined_flag=' ${wl}-bernotok'
10436 allow_undefined_flag=' ${wl}-berok'
10437 if test "$with_gnu_ld" = yes; then
10438 # We only use this code for GNU lds that support --whole-archive.
10439 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10441 # Exported symbols can be pulled into shared objects from archives
10442 whole_archive_flag_spec='$convenience'
10444 archive_cmds_need_lc=yes
10445 # This is similar to how AIX traditionally builds its shared libraries.
10446 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'
10454 # see comment about AmigaOS4 .so support
10455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 archive_expsym_cmds=''
10459 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)'
10460 hardcode_libdir_flag_spec='-L$libdir'
10461 hardcode_minus_L=yes
10467 export_dynamic_flag_spec=-rdynamic
10470 cygwin* | mingw* | pw32* | cegcc*)
10471 # When not using gcc, we currently assume that we are using
10472 # Microsoft Visual C++.
10473 # hardcode_libdir_flag_spec is actually meaningless, as there is
10474 # no search path for DLLs.
10475 case $cc_basename in
10478 hardcode_libdir_flag_spec=' '
10479 allow_undefined_flag=unsupported
10480 always_export_symbols=yes
10482 # Tell ltmain to make .lib files, not .a files.
10484 # Tell ltmain to make .dll files, not .so files.
10486 # FIXME: Setting linknames here is a bad hack.
10487 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10488 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10489 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10491 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10493 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10495 # The linker will not automatically build a static lib if we build a DLL.
10496 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10497 enable_shared_with_static_runtimes=yes
10498 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10501 old_postinstall_cmds='chmod 644 $oldlib'
10502 postlink_cmds='lt_outputfile="@OUTPUT@"~
10503 lt_tool_outputfile="@TOOL_OUTPUT@"~
10504 case $lt_outputfile in
10507 lt_outputfile="$lt_outputfile.exe"
10508 lt_tool_outputfile="$lt_tool_outputfile.exe"
10511 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10512 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10513 $RM "$lt_outputfile.manifest";
10517 # Assume MSVC wrapper
10518 hardcode_libdir_flag_spec=' '
10519 allow_undefined_flag=unsupported
10520 # Tell ltmain to make .lib files, not .a files.
10522 # Tell ltmain to make .dll files, not .so files.
10524 # FIXME: Setting linknames here is a bad hack.
10525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10526 # The linker will automatically build a .lib file if we build a DLL.
10527 old_archive_from_new_cmds='true'
10528 # FIXME: Should let the user specify the lib program.
10529 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10530 enable_shared_with_static_runtimes=yes
10535 darwin* | rhapsody*)
10538 archive_cmds_need_lc=no
10540 hardcode_automatic=yes
10541 hardcode_shlibpath_var=unsupported
10542 if test "$lt_cv_ld_force_load" = "yes"; then
10543 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\"`'
10546 whole_archive_flag_spec=''
10548 link_all_deplibs=yes
10549 allow_undefined_flag="$_lt_dar_allow_undefined"
10550 case $cc_basename in
10551 ifort*) _lt_dar_can_shared=yes ;;
10552 *) _lt_dar_can_shared=$GCC ;;
10554 if test "$_lt_dar_can_shared" = "yes"; then
10555 output_verbose_link_cmd=func_echo_all
10556 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10557 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10558 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}"
10559 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}"
10568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_libdir_flag_spec='-L$libdir'
10570 hardcode_shlibpath_var=no
10573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10574 # support. Future versions do this automatically, but an explicit c++rt0.o
10575 # does not break anything, and helps significantly (at the cost of a little
10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10579 hardcode_libdir_flag_spec='-R$libdir'
10580 hardcode_direct=yes
10581 hardcode_shlibpath_var=no
10584 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_direct=yes
10588 hardcode_minus_L=yes
10589 hardcode_shlibpath_var=no
10592 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10593 freebsd* | dragonfly*)
10594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10595 hardcode_libdir_flag_spec='-R$libdir'
10596 hardcode_direct=yes
10597 hardcode_shlibpath_var=no
10601 if test "$GCC" = yes; then
10602 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'
10604 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'
10606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10607 hardcode_libdir_separator=:
10608 hardcode_direct=yes
10610 # hardcode_minus_L: Not really in the search PATH,
10611 # but as the default location of the library.
10612 hardcode_minus_L=yes
10613 export_dynamic_flag_spec='${wl}-E'
10617 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10618 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10622 if test "$with_gnu_ld" = no; then
10623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10624 hardcode_libdir_separator=:
10625 hardcode_direct=yes
10626 hardcode_direct_absolute=yes
10627 export_dynamic_flag_spec='${wl}-E'
10628 # hardcode_minus_L: Not really in the search PATH,
10629 # but as the default location of the library.
10630 hardcode_minus_L=yes
10635 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10638 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10650 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10657 # Older versions of the 11.00 compiler do not understand -b yet
10658 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10660 $as_echo_n "checking if $CC understands -b... " >&6; }
10661 if ${lt_cv_prog_compiler__b+:} false; then :
10662 $as_echo_n "(cached) " >&6
10664 lt_cv_prog_compiler__b=no
10665 save_LDFLAGS="$LDFLAGS"
10666 LDFLAGS="$LDFLAGS -b"
10667 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10669 # The linker can only warn and ignore the option if not recognized
10670 # So say no if there are warnings
10671 if test -s conftest.err; then
10672 # Append any errors to the config.log.
10673 cat conftest.err 1>&5
10674 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10676 if diff conftest.exp conftest.er2 >/dev/null; then
10677 lt_cv_prog_compiler__b=yes
10680 lt_cv_prog_compiler__b=yes
10684 LDFLAGS="$save_LDFLAGS"
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10688 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10690 if test x"$lt_cv_prog_compiler__b" = xyes; then
10691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10699 if test "$with_gnu_ld" = no; then
10700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10701 hardcode_libdir_separator=:
10706 hardcode_shlibpath_var=no
10709 hardcode_direct=yes
10710 hardcode_direct_absolute=yes
10711 export_dynamic_flag_spec='${wl}-E'
10713 # hardcode_minus_L: Not really in the search PATH,
10714 # but as the default location of the library.
10715 hardcode_minus_L=yes
10721 irix5* | irix6* | nonstopux*)
10722 if test "$GCC" = yes; then
10723 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'
10724 # Try to use the -exported_symbol ld option, if it does not
10725 # work, assume that -exports_file does not work either and
10726 # implicitly export all symbols.
10727 # This should be the same for all languages, so no per-tag cache variable.
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10729 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10730 if ${lt_cv_irix_exported_symbol+:} false; then :
10731 $as_echo_n "(cached) " >&6
10733 save_LDFLAGS="$LDFLAGS"
10734 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 int foo (void) { return 0; }
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 lt_cv_irix_exported_symbol=yes
10742 lt_cv_irix_exported_symbol=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LDFLAGS="$save_LDFLAGS"
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10749 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10750 if test "$lt_cv_irix_exported_symbol" = yes; then
10751 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'
10754 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'
10755 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'
10757 archive_cmds_need_lc='no'
10758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10759 hardcode_libdir_separator=:
10761 link_all_deplibs=yes
10765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10768 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10770 hardcode_libdir_flag_spec='-R$libdir'
10771 hardcode_direct=yes
10772 hardcode_shlibpath_var=no
10776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10777 hardcode_direct=yes
10778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10779 hardcode_libdir_separator=:
10780 hardcode_shlibpath_var=no
10787 if test -f /usr/libexec/ld.so; then
10788 hardcode_direct=yes
10789 hardcode_shlibpath_var=no
10790 hardcode_direct_absolute=yes
10791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10795 export_dynamic_flag_spec='${wl}-E'
10798 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_libdir_flag_spec='-R$libdir'
10803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10814 hardcode_libdir_flag_spec='-L$libdir'
10815 hardcode_minus_L=yes
10816 allow_undefined_flag=unsupported
10817 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'
10818 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10822 if test "$GCC" = yes; then
10823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10824 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'
10826 allow_undefined_flag=' -expect_unresolved \*'
10827 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'
10829 archive_cmds_need_lc='no'
10830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831 hardcode_libdir_separator=:
10834 osf4* | osf5*) # as osf3* with the addition of -msym flag
10835 if test "$GCC" = yes; then
10836 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10837 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'
10838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10840 allow_undefined_flag=' -expect_unresolved \*'
10841 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'
10842 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~
10843 $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'
10845 # Both c and cxx compiler support -rpath directly
10846 hardcode_libdir_flag_spec='-rpath $libdir'
10848 archive_cmds_need_lc='no'
10849 hardcode_libdir_separator=:
10853 no_undefined_flag=' -z defs'
10854 if test "$GCC" = yes; then
10856 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10858 $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'
10860 case `$CC -V 2>&1` in
10863 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10865 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10869 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10871 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10875 hardcode_libdir_flag_spec='-R$libdir'
10876 hardcode_shlibpath_var=no
10878 solaris2.[0-5] | solaris2.[0-5].*) ;;
10880 # The compiler driver will combine and reorder linker options,
10881 # but understands `-z linker_flag'. GCC discards it without `$wl',
10882 # but is careful enough not to reorder.
10883 # Supported since Solaris 2.6 (maybe 2.5.1?)
10884 if test "$GCC" = yes; then
10885 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10887 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10891 link_all_deplibs=yes
10895 if test "x$host_vendor" = xsequent; then
10896 # Use $CC to link under sequent, because it throws in some extra .o
10897 # files that make .init and .fini sections work.
10898 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10900 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10902 hardcode_libdir_flag_spec='-L$libdir'
10903 hardcode_direct=yes
10904 hardcode_minus_L=yes
10905 hardcode_shlibpath_var=no
10909 case $host_vendor in
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_direct=yes # is this really true???
10915 ## LD is ld it makes a PLAMLIB
10916 ## CC just makes a GrossModule.
10917 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10918 reload_cmds='$CC -r -o $output$reload_objs'
10922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10926 runpath_var='LD_RUN_PATH'
10927 hardcode_shlibpath_var=no
10931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932 hardcode_shlibpath_var=no
10933 export_dynamic_flag_spec='-Bexport'
10937 if test -d /usr/nec; then
10938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_shlibpath_var=no
10940 runpath_var=LD_RUN_PATH
10941 hardcode_runpath_var=yes
10946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10947 no_undefined_flag='${wl}-z,text'
10948 archive_cmds_need_lc=no
10949 hardcode_shlibpath_var=no
10950 runpath_var='LD_RUN_PATH'
10952 if test "$GCC" = yes; then
10953 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 sysv5* | sco3.2v5* | sco5v6*)
10962 # Note: We can NOT use -z defs as we might desire, because we do not
10963 # link with -lc, and that would cause any symbols used from libc to
10964 # always be unresolved, which means just about no library would
10965 # ever link correctly. If we're not using GNU ld we use -z text
10966 # though, which does catch some bad symbols but isn't as heavy-handed
10968 no_undefined_flag='${wl}-z,text'
10969 allow_undefined_flag='${wl}-z,nodefs'
10970 archive_cmds_need_lc=no
10971 hardcode_shlibpath_var=no
10972 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10973 hardcode_libdir_separator=':'
10974 link_all_deplibs=yes
10975 export_dynamic_flag_spec='${wl}-Bexport'
10976 runpath_var='LD_RUN_PATH'
10978 if test "$GCC" = yes; then
10979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_libdir_flag_spec='-L$libdir'
10990 hardcode_shlibpath_var=no
10998 if test x$host_vendor = xsni; then
11000 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11001 export_dynamic_flag_spec='${wl}-Blargedynsym'
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11008 $as_echo "$ld_shlibs" >&6; }
11009 test "$ld_shlibs" = no && can_build_shared=no
11011 with_gnu_ld=$with_gnu_ld
11028 # Do we need to explicitly link libc?
11030 case "x$archive_cmds_need_lc" in
11032 # Assume -lc should be added
11033 archive_cmds_need_lc=yes
11035 if test "$enable_shared" = yes && test "$GCC" = yes; then
11036 case $archive_cmds in
11038 # FIXME: we may have to deal with multi-command sequences.
11041 # Test whether the compiler implicitly links with -lc since on some
11042 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11043 # to ld, don't add -lc before -lgcc.
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11045 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11046 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11047 $as_echo_n "(cached) " >&6
11050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11053 (eval $ac_compile) 2>&5
11055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11056 test $ac_status = 0; } 2>conftest.err; then
11059 libobjs=conftest.$ac_objext
11061 wl=$lt_prog_compiler_wl
11062 pic_flag=$lt_prog_compiler_pic
11068 lt_save_allow_undefined_flag=$allow_undefined_flag
11069 allow_undefined_flag=
11070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11071 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074 test $ac_status = 0; }
11076 lt_cv_archive_cmds_need_lc=no
11078 lt_cv_archive_cmds_need_lc=yes
11080 allow_undefined_flag=$lt_save_allow_undefined_flag
11082 cat conftest.err 1>&5
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11088 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11089 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11248 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11250 if test "$GCC" = yes; then
11252 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11253 *) lt_awk_arg="/^libraries:/" ;;
11256 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11257 *) lt_sed_strip_eq="s,=/,/,g" ;;
11259 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11260 case $lt_search_path_spec in
11262 # if the path contains ";" then we assume it to be the separator
11263 # otherwise default to the standard path separator (i.e. ":") - it is
11264 # assumed that no part of a normal pathname contains ";" but that should
11265 # okay in the real world where ";" in dirpaths is itself problematic.
11266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11269 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11272 # Ok, now we have the path, separated by spaces, we can step through it
11273 # and add multilib dir if necessary.
11274 lt_tmp_lt_search_path_spec=
11275 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11276 for lt_sys_path in $lt_search_path_spec; do
11277 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11280 test -d "$lt_sys_path" && \
11281 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11284 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11285 BEGIN {RS=" "; FS="/|\n";} {
11288 for (lt_i = NF; lt_i > 0; lt_i--) {
11289 if ($lt_i != "" && $lt_i != ".") {
11290 if ($lt_i == "..") {
11293 if (lt_count == 0) {
11294 lt_foo="/" $lt_i lt_foo;
11301 if (lt_foo != "") { lt_freq[lt_foo]++; }
11302 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11304 # AWK program above erroneously prepends '/' to C:/dos/paths
11307 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11308 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11310 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11312 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11314 library_names_spec=
11315 libname_spec='lib$name'
11319 postuninstall_cmds=
11323 shlibpath_overrides_runpath=unknown
11325 dynamic_linker="$host_os ld.so"
11326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11327 need_lib_prefix=unknown
11328 hardcode_into_libs=no
11330 # when you set need_version to no, make sure it does not cause -set_version
11331 # flags to be left without arguments
11332 need_version=unknown
11336 version_type=linux # correct to gnu/linux during the next big refactor
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11338 shlibpath_var=LIBPATH
11340 # AIX 3 has no versioning support, so we append a major version to the name.
11341 soname_spec='${libname}${release}${shared_ext}$major'
11345 version_type=linux # correct to gnu/linux during the next big refactor
11348 hardcode_into_libs=yes
11349 if test "$host_cpu" = ia64; then
11350 # AIX 5 supports IA64
11351 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11352 shlibpath_var=LD_LIBRARY_PATH
11354 # With GCC up to 2.95.x, collect2 would create an import file
11355 # for dependence libraries. The import file would start with
11356 # the line `#! .'. This would cause the generated library to
11357 # depend on `.', always an invalid library. This was fixed in
11358 # development snapshots of GCC prior to 3.0.
11360 aix4 | aix4.[01] | aix4.[01].*)
11361 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11363 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11366 can_build_shared=no
11370 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11371 # soname into executable. Probably we can add versioning support to
11372 # collect2, so additional links can be useful in future.
11373 if test "$aix_use_runtimelinking" = yes; then
11374 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11375 # instead of lib<name>.a to let people know that these are not
11376 # typical AIX shared libraries.
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 # We preserve .a as extension for shared libraries through AIX4.2
11380 # and later when we are not doing run time linking.
11381 library_names_spec='${libname}${release}.a $libname.a'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11384 shlibpath_var=LIBPATH
11391 # Since July 2007 AmigaOS4 officially supports .so libraries.
11392 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 library_names_spec='$libname.ixlibrary $libname.a'
11397 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11398 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'
11404 library_names_spec='${libname}${shared_ext}'
11405 dynamic_linker="$host_os ld.so"
11406 shlibpath_var=LIBRARY_PATH
11410 version_type=linux # correct to gnu/linux during the next big refactor
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413 soname_spec='${libname}${release}${shared_ext}$major'
11414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11418 # the default ld.so.conf also contains /usr/contrib/lib and
11419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11420 # libtool to hard-code these into programs
11423 cygwin* | mingw* | pw32* | cegcc*)
11424 version_type=windows
11429 case $GCC,$cc_basename in
11432 library_names_spec='$libname.dll.a'
11433 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11434 postinstall_cmds='base_file=`basename \${file}`~
11435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11436 dldir=$destdir/`dirname \$dlpath`~
11437 test -d \$dldir || mkdir -p \$dldir~
11438 $install_prog $dir/$dlname \$dldir/$dlname~
11439 chmod a+x \$dldir/$dlname~
11440 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11441 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11444 dlpath=$dir/\$dldll~
11446 shlibpath_overrides_runpath=yes
11450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11456 # MinGW DLLs use traditional 'lib' prefix
11457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11460 # pw32 DLLs use 'pw' prefix rather than 'lib'
11461 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11464 dynamic_linker='Win32 ld.exe'
11469 libname_spec='$name'
11470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11471 library_names_spec='${libname}.dll.lib'
11475 sys_lib_search_path_spec=
11478 for lt_path in $LIB
11481 # Let DOS variable expansion print the short 8.3 style file name.
11482 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11483 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11486 # Convert to MSYS style.
11487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11490 # Convert to unix form, then to dos form, then back to unix form
11491 # but this time dos style (no spaces!) so that the unix form looks
11492 # like /cygdrive/c/PROGRA~1:/cygdr...
11493 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11494 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11495 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11498 sys_lib_search_path_spec="$LIB"
11499 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11500 # It is most probably a Windows format PATH.
11501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11503 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11505 # FIXME: find the short name or the path components, as spaces are
11506 # common. (e.g. "Program Files" -> "PROGRA~1")
11510 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11511 postinstall_cmds='base_file=`basename \${file}`~
11512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11513 dldir=$destdir/`dirname \$dlpath`~
11514 test -d \$dldir || mkdir -p \$dldir~
11515 $install_prog $dir/$dlname \$dldir/$dlname'
11516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11517 dlpath=$dir/\$dldll~
11519 shlibpath_overrides_runpath=yes
11520 dynamic_linker='Win32 link.exe'
11524 # Assume MSVC wrapper
11525 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11526 dynamic_linker='Win32 ld.exe'
11529 # FIXME: first we should search . and the directory the executable is in
11533 darwin* | rhapsody*)
11534 dynamic_linker="$host_os dyld"
11535 version_type=darwin
11538 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11539 soname_spec='${libname}${release}${major}$shared_ext'
11540 shlibpath_overrides_runpath=yes
11541 shlibpath_var=DYLD_LIBRARY_PATH
11542 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11544 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11545 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11549 version_type=linux # correct to gnu/linux during the next big refactor
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11557 freebsd* | dragonfly*)
11558 # DragonFly does not have aout. When/if they implement a new
11559 # versioning mechanism, adjust this.
11560 if test -x /usr/bin/objformat; then
11561 objformat=`/usr/bin/objformat`
11564 freebsd[23].*) objformat=aout ;;
11565 *) objformat=elf ;;
11568 version_type=freebsd-$objformat
11569 case $version_type in
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11580 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=yes
11585 freebsd3.[01]* | freebsdelf3.[01]*)
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11589 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11590 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11591 shlibpath_overrides_runpath=no
11592 hardcode_into_libs=yes
11594 *) # from 4.6 on, and DragonFly
11595 shlibpath_overrides_runpath=yes
11596 hardcode_into_libs=yes
11602 version_type=linux # correct to gnu/linux during the next big refactor
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=no
11609 hardcode_into_libs=yes
11613 version_type=linux # correct to gnu/linux during the next big refactor
11616 dynamic_linker="$host_os runtime_loader"
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 shlibpath_var=LIBRARY_PATH
11620 shlibpath_overrides_runpath=yes
11621 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11622 hardcode_into_libs=yes
11625 hpux9* | hpux10* | hpux11*)
11626 # Give a soname corresponding to the major version so that dld.sl refuses to
11627 # link against other versions.
11634 hardcode_into_libs=yes
11635 dynamic_linker="$host_os dld.so"
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 if test "X$HPUX_IA64_MODE" = X32; then
11641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11649 hardcode_into_libs=yes
11650 dynamic_linker="$host_os dld.sl"
11651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11660 dynamic_linker="$host_os dld.sl"
11661 shlibpath_var=SHLIB_PATH
11662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 soname_spec='${libname}${release}${shared_ext}$major'
11667 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11668 postinstall_cmds='chmod 555 $lib'
11669 # or fails outright, so override atomically:
11670 install_override_mode=555
11674 version_type=linux # correct to gnu/linux during the next big refactor
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=no
11682 hardcode_into_libs=yes
11685 irix5* | irix6* | nonstopux*)
11687 nonstopux*) version_type=nonstopux ;;
11689 if test "$lt_cv_prog_gnu_ld" = yes; then
11690 version_type=linux # correct to gnu/linux during the next big refactor
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11700 irix5* | nonstopux*)
11701 libsuff= shlibsuff=
11704 case $LD in # libtool.m4 will add one of these switches to LD
11705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11706 libsuff= shlibsuff= libmagic=32-bit;;
11707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11708 libsuff=32 shlibsuff=N32 libmagic=N32;;
11709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11711 *) libsuff= shlibsuff= libmagic=never-match;;
11715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11716 shlibpath_overrides_runpath=no
11717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11719 hardcode_into_libs=yes
11722 # No shared lib support for Linux oldld, aout, or coff.
11723 linux*oldld* | linux*aout* | linux*coff*)
11727 # This must be glibc/ELF.
11728 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11729 version_type=linux # correct to gnu/linux during the next big refactor
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 soname_spec='${libname}${release}${shared_ext}$major'
11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 shlibpath_overrides_runpath=no
11738 # Some binutils ld are patched to set DT_RUNPATH
11739 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11740 $as_echo_n "(cached) " >&6
11742 lt_cv_shlibpath_overrides_runpath=no
11743 save_LDFLAGS=$LDFLAGS
11744 save_libdir=$libdir
11745 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11746 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11758 if ac_fn_c_try_link "$LINENO"; then :
11759 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11760 lt_cv_shlibpath_overrides_runpath=yes
11763 rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11765 LDFLAGS=$save_LDFLAGS
11766 libdir=$save_libdir
11770 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11772 # This implies no fast_install, which is unacceptable.
11773 # Some rework will be needed to allow for fast_install
11774 # before this can be enabled.
11775 hardcode_into_libs=yes
11777 # Append ld.so.conf contents to the search path
11778 if test -f /etc/ld.so.conf; then
11779 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' ' '`
11780 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11783 # We used to test for /lib/ld.so.1 and disable shared libraries on
11784 # powerpc, because MkLinux only supported shared libraries with the
11785 # GNU dynamic linker. Since this was broken with cross compilers,
11786 # most powerpc-linux boxes support dynamic linking these days and
11787 # people can always --disable-shared, the test was removed, and we
11788 # assume the GNU/Linux dynamic linker is in use.
11789 dynamic_linker='GNU/Linux ld.so'
11796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11799 dynamic_linker='NetBSD (a.out) ld.so'
11801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 dynamic_linker='NetBSD ld.elf_so'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11807 hardcode_into_libs=yes
11811 version_type=linux # correct to gnu/linux during the next big refactor
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=yes
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 shlibpath_overrides_runpath=no
11825 hardcode_into_libs=yes
11826 dynamic_linker='ldqnx.so'
11831 sys_lib_dlsearch_path_spec="/usr/lib"
11833 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11835 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11836 *) need_version=no ;;
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11843 openbsd2.[89] | openbsd2.[89].*)
11844 shlibpath_overrides_runpath=no
11847 shlibpath_overrides_runpath=yes
11851 shlibpath_overrides_runpath=yes
11856 libname_spec='$name'
11859 library_names_spec='$libname${shared_ext} $libname.a'
11860 dynamic_linker='OS/2 ld.exe'
11861 shlibpath_var=LIBPATH
11864 osf3* | osf4* | osf5*)
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11872 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11880 version_type=linux # correct to gnu/linux during the next big refactor
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884 soname_spec='${libname}${release}${shared_ext}$major'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11887 hardcode_into_libs=yes
11888 # ldd complains unless libraries are executable
11889 postinstall_cmds='chmod +x $lib'
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11895 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=yes
11898 if test "$with_gnu_ld" = yes; then
11905 version_type=linux # correct to gnu/linux during the next big refactor
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 case $host_vendor in
11911 shlibpath_overrides_runpath=no
11913 runpath_var=LD_RUN_PATH
11921 shlibpath_overrides_runpath=no
11922 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11928 if test -d /usr/nec ;then
11929 version_type=linux # correct to gnu/linux during the next big refactor
11930 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11931 soname_spec='$libname${shared_ext}.$major'
11932 shlibpath_var=LD_LIBRARY_PATH
11936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11937 version_type=freebsd-elf
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11941 soname_spec='${libname}${release}${shared_ext}$major'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 shlibpath_overrides_runpath=yes
11944 hardcode_into_libs=yes
11945 if test "$with_gnu_ld" = yes; then
11946 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11948 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11955 sys_lib_dlsearch_path_spec='/usr/lib'
11959 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11960 version_type=linux # correct to gnu/linux during the next big refactor
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath=no
11966 hardcode_into_libs=yes
11970 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11981 $as_echo "$dynamic_linker" >&6; }
11982 test "$dynamic_linker" = no && can_build_shared=no
11984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11985 if test "$GCC" = yes; then
11986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11989 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11990 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11992 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11993 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12088 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12090 if test -n "$hardcode_libdir_flag_spec" ||
12091 test -n "$runpath_var" ||
12092 test "X$hardcode_automatic" = "Xyes" ; then
12094 # We can hardcode non-existent directories.
12095 if test "$hardcode_direct" != no &&
12096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12097 # have to relink, otherwise we might link with an installed library
12098 # when we should be linking with a yet-to-be-installed one
12099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12100 test "$hardcode_minus_L" != no; then
12101 # Linking always hardcodes the temporary library directory.
12102 hardcode_action=relink
12104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12105 hardcode_action=immediate
12108 # We cannot hardcode anything, or else we can only hardcode existing
12110 hardcode_action=unsupported
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12113 $as_echo "$hardcode_action" >&6; }
12115 if test "$hardcode_action" = relink ||
12116 test "$inherit_rpath" = yes; then
12117 # Fast installation is not supported
12118 enable_fast_install=no
12119 elif test "$shlibpath_overrides_runpath" = yes ||
12120 test "$enable_shared" = no; then
12121 # Fast installation is not necessary
12122 enable_fast_install=needless
12130 if test "x$enable_dlopen" != xyes; then
12131 enable_dlopen=unknown
12132 enable_dlopen_self=unknown
12133 enable_dlopen_self_static=unknown
12140 lt_cv_dlopen="load_add_on"
12142 lt_cv_dlopen_self=yes
12145 mingw* | pw32* | cegcc*)
12146 lt_cv_dlopen="LoadLibrary"
12151 lt_cv_dlopen="dlopen"
12156 # if libdl is installed we need to link against it
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12158 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12159 if ${ac_cv_lib_dl_dlopen+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 ac_check_lib_save_LIBS=$LIBS
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12182 if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_dl_dlopen=yes
12185 ac_cv_lib_dl_dlopen=no
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12192 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12193 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12197 lt_cv_dlopen="dyld"
12199 lt_cv_dlopen_self=yes
12206 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12207 if test "x$ac_cv_func_shl_load" = xyes; then :
12208 lt_cv_dlopen="shl_load"
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12212 if ${ac_cv_lib_dld_shl_load+:} false; then :
12213 $as_echo_n "(cached) " >&6
12215 ac_check_lib_save_LIBS=$LIBS
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12230 return shl_load ();
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_lib_dld_shl_load=yes
12238 ac_cv_lib_dld_shl_load=no
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12247 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12250 if test "x$ac_cv_func_dlopen" = xyes; then :
12251 lt_cv_dlopen="dlopen"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12255 if ${ac_cv_lib_dl_dlopen+:} false; then :
12256 $as_echo_n "(cached) " >&6
12258 ac_check_lib_save_LIBS=$LIBS
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12263 /* Override any GCC internal prototype to avoid an error.
12264 Use char because int might match the return type of a GCC
12265 builtin and then its argument prototype would still apply. */
12278 if ac_fn_c_try_link "$LINENO"; then :
12279 ac_cv_lib_dl_dlopen=yes
12281 ac_cv_lib_dl_dlopen=no
12283 rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12289 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12294 if ${ac_cv_lib_svld_dlopen+:} false; then :
12295 $as_echo_n "(cached) " >&6
12297 ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lsvld $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 ac_cv_lib_svld_dlopen=yes
12320 ac_cv_lib_svld_dlopen=no
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12328 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12333 if ${ac_cv_lib_dld_dld_link+:} false; then :
12334 $as_echo_n "(cached) " >&6
12336 ac_check_lib_save_LIBS=$LIBS
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12351 return dld_link ();
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_lib_dld_dld_link=yes
12359 ac_cv_lib_dld_dld_link=no
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12367 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12368 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12389 if test "x$lt_cv_dlopen" != xno; then
12395 case $lt_cv_dlopen in
12397 save_CPPFLAGS="$CPPFLAGS"
12398 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12400 save_LDFLAGS="$LDFLAGS"
12401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12404 LIBS="$lt_cv_dlopen_libs $LIBS"
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12408 if ${lt_cv_dlopen_self+:} false; then :
12409 $as_echo_n "(cached) " >&6
12411 if test "$cross_compiling" = yes; then :
12412 lt_cv_dlopen_self=cross
12414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12415 lt_status=$lt_dlunknown
12416 cat > conftest.$ac_ext <<_LT_EOF
12417 #line $LINENO "configure"
12418 #include "confdefs.h"
12427 # define LT_DLGLOBAL RTLD_GLOBAL
12430 # define LT_DLGLOBAL DL_GLOBAL
12432 # define LT_DLGLOBAL 0
12436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12437 find out it does not work in some platform. */
12438 #ifndef LT_DLLAZY_OR_NOW
12440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12443 # define LT_DLLAZY_OR_NOW DL_LAZY
12446 # define LT_DLLAZY_OR_NOW RTLD_NOW
12449 # define LT_DLLAZY_OR_NOW DL_NOW
12451 # define LT_DLLAZY_OR_NOW 0
12458 /* When -fvisbility=hidden is used, assume the code has been annotated
12459 correspondingly for the symbols needed. */
12460 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12461 int fnord () __attribute__((visibility("default")));
12464 int fnord () { return 42; }
12467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12468 int status = $lt_dlunknown;
12472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12476 else puts (dlerror ());
12478 /* dlclose (self); */
12486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12487 (eval $ac_link) 2>&5
12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12491 (./conftest; exit; ) >&5 2>/dev/null
12493 case x$lt_status in
12494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12499 # compilation failed
12500 lt_cv_dlopen_self=no
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12508 $as_echo "$lt_cv_dlopen_self" >&6; }
12510 if test "x$lt_cv_dlopen_self" = xyes; then
12511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12514 if ${lt_cv_dlopen_self_static+:} false; then :
12515 $as_echo_n "(cached) " >&6
12517 if test "$cross_compiling" = yes; then :
12518 lt_cv_dlopen_self_static=cross
12520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12521 lt_status=$lt_dlunknown
12522 cat > conftest.$ac_ext <<_LT_EOF
12523 #line $LINENO "configure"
12524 #include "confdefs.h"
12533 # define LT_DLGLOBAL RTLD_GLOBAL
12536 # define LT_DLGLOBAL DL_GLOBAL
12538 # define LT_DLGLOBAL 0
12542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12543 find out it does not work in some platform. */
12544 #ifndef LT_DLLAZY_OR_NOW
12546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12549 # define LT_DLLAZY_OR_NOW DL_LAZY
12552 # define LT_DLLAZY_OR_NOW RTLD_NOW
12555 # define LT_DLLAZY_OR_NOW DL_NOW
12557 # define LT_DLLAZY_OR_NOW 0
12564 /* When -fvisbility=hidden is used, assume the code has been annotated
12565 correspondingly for the symbols needed. */
12566 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12567 int fnord () __attribute__((visibility("default")));
12570 int fnord () { return 42; }
12573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12574 int status = $lt_dlunknown;
12578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12582 else puts (dlerror ());
12584 /* dlclose (self); */
12592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12593 (eval $ac_link) 2>&5
12595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12596 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12597 (./conftest; exit; ) >&5 2>/dev/null
12599 case x$lt_status in
12600 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12601 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12602 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12605 # compilation failed
12606 lt_cv_dlopen_self_static=no
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12617 CPPFLAGS="$save_CPPFLAGS"
12618 LDFLAGS="$save_LDFLAGS"
12623 case $lt_cv_dlopen_self in
12624 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12625 *) enable_dlopen_self=unknown ;;
12628 case $lt_cv_dlopen_self_static in
12629 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12630 *) enable_dlopen_self_static=unknown ;;
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12654 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658 $as_echo "yes" >&6; }
12660 # FIXME - insert some real tests, host_os isn't really good enough
12663 if test -n "$STRIP" ; then
12664 striplib="$STRIP -x"
12665 old_striplib="$STRIP -S"
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12667 $as_echo "yes" >&6; }
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12691 # Report which library types will actually be built
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12695 $as_echo "$can_build_shared" >&6; }
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12698 $as_echo_n "checking whether to build shared libraries... " >&6; }
12699 test "$can_build_shared" = "no" && enable_shared=no
12701 # On AIX, shared libraries and static libraries use the same namespace, and
12702 # are all built from PIC.
12705 test "$enable_shared" = yes && enable_static=no
12706 if test -n "$RANLIB"; then
12707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12708 postinstall_cmds='$RANLIB $lib'
12713 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12714 test "$enable_shared" = yes && enable_static=no
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12719 $as_echo "$enable_shared" >&6; }
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12722 $as_echo_n "checking whether to build static libraries... " >&6; }
12723 # Make sure either enable_shared or enable_static is yes.
12724 test "$enable_shared" = yes || enable_static=yes
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12726 $as_echo "$enable_static" >&6; }
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12754 ac_config_commands="$ac_config_commands libtool"
12759 # Only expand once:
12768 # configuration file -- stay in 8.3 limit
12770 # since #undef doesn't survive in configuration header files we replace
12771 # `/undef' with `#undef' after creating the output file
12773 ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
12776 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
12777 # and `builds/unix/unix-cc.mk' that will be used by the build system
12779 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config freetype2.pc:freetype2.in"
12782 # re-generate the Jamfile to use libtool now
12784 # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
12786 cat >confcache <<\_ACEOF
12787 # This file is a shell script that caches the results of configure
12788 # tests run on this system so they can be shared between configure
12789 # scripts and configure runs, see configure's option --config-cache.
12790 # It is not useful on other systems. If it contains results you don't
12791 # want to keep, you may remove or edit it.
12793 # config.status only pays attention to the cache file if you give it
12794 # the --recheck option to rerun configure.
12796 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12797 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12798 # following values.
12802 # The following way of writing the cache mishandles newlines in values,
12803 # but we know of no workaround that is simple, portable, and efficient.
12804 # So, we kill variables containing newlines.
12805 # Ultrix sh set writes to stderr and can't be redirected directly,
12806 # and sets the high bit in the cache file unless we assign to the vars.
12808 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12809 eval ac_val=\$$ac_var
12813 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12817 _ | IFS | as_nl) ;; #(
12818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12819 *) { eval $ac_var=; unset $ac_var;} ;;
12825 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12826 *${as_nl}ac_space=\ *)
12827 # `set' does not quote correctly, so add quotes: double-quote
12828 # substitution turns \\\\ into \\, and sed turns \\ into \.
12831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12834 # `set' quotes correctly as required by POSIX, so do not add quotes.
12835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12846 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12848 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12849 if test -w "$cache_file"; then
12850 if test "x$cache_file" != "x/dev/null"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12852 $as_echo "$as_me: updating cache $cache_file" >&6;}
12853 if test ! -f "$cache_file" || test -h "$cache_file"; then
12854 cat confcache >"$cache_file"
12856 case $cache_file in #(
12858 mv -f confcache "$cache_file"$$ &&
12859 mv -f "$cache_file"$$ "$cache_file" ;; #(
12861 mv -f confcache "$cache_file" ;;
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12867 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12872 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12873 # Let make expand exec_prefix.
12874 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12876 DEFS=-DHAVE_CONFIG_H
12881 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12882 # 1. Remove the extension, and $U if already installed.
12883 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12884 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12886 # will be set to the directory where LIBOBJS objects are built.
12887 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12888 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12890 LIBOBJS=$ac_libobjs
12892 LTLIBOBJS=$ac_ltlibobjs
12896 : "${CONFIG_STATUS=./config.status}"
12898 ac_clean_files_save=$ac_clean_files
12899 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12901 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12903 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12905 # Generated by $as_me.
12906 # Run this file to recreate the current configuration.
12907 # Compiler output produced by configure, useful for debugging
12908 # configure, is in config.log if it exists.
12911 ac_cs_recheck=false
12914 SHELL=\${CONFIG_SHELL-$SHELL}
12917 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12918 ## -------------------- ##
12919 ## M4sh Initialization. ##
12920 ## -------------------- ##
12922 # Be more Bourne compatible
12923 DUALCASE=1; export DUALCASE # for MKS sh
12924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12927 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12928 # is contrary to our usage. Disable this feature.
12929 alias -g '${1+"$@"}'='"$@"'
12930 setopt NO_GLOB_SUBST
12932 case `(set -o) 2>/dev/null` in #(
12944 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12945 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12948 # Prefer a ksh shell builtin over an external printf program on Solaris,
12949 # but without wasting forks for bash or zsh.
12950 if test -z "$BASH_VERSION$ZSH_VERSION" \
12951 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12952 as_echo='print -r --'
12953 as_echo_n='print -rn --'
12954 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12955 as_echo='printf %s\n'
12956 as_echo_n='printf %s'
12958 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12959 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12960 as_echo_n='/usr/ucb/echo -n'
12962 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12963 as_echo_n_body='eval
12967 expr "X$arg" : "X\\(.*\\)$as_nl";
12968 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12970 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12972 export as_echo_n_body
12973 as_echo_n='sh -c $as_echo_n_body as_echo'
12975 export as_echo_body
12976 as_echo='sh -c $as_echo_body as_echo'
12979 # The user is always right.
12980 if test "${PATH_SEPARATOR+set}" != set; then
12982 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12983 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12990 # We need space, tab and new line, in precisely that order. Quoting is
12991 # there to prevent editors from complaining about space-tab.
12992 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12993 # splitting by setting IFS to empty value.)
12996 # Find who we are. Look in the path if we contain no directory separator.
12999 *[\\/]* ) as_myself=$0 ;;
13000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13004 test -z "$as_dir" && as_dir=.
13005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13011 # We did not find ourselves, most probably we were run as `sh COMMAND'
13012 # in which case we are not to be found in the path.
13013 if test "x$as_myself" = x; then
13016 if test ! -f "$as_myself"; then
13017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13021 # Unset variables that we do not need and which cause bugs (e.g. in
13022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13023 # suppresses any "Segmentation fault" message there. '((' could
13024 # trigger a bug in pdksh 5.2.14.
13025 for as_var in BASH_ENV ENV MAIL MAILPATH
13026 do eval test x\${$as_var+set} = xset \
13027 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13043 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13044 # ----------------------------------------
13045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13047 # script with STATUS, using 1 if that was 0.
13050 as_status=$1; test $as_status -eq 0 && as_status=1
13052 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13055 $as_echo "$as_me: error: $2" >&2
13056 as_fn_exit $as_status
13060 # as_fn_set_status STATUS
13061 # -----------------------
13062 # Set $? to STATUS, without forking.
13063 as_fn_set_status ()
13066 } # as_fn_set_status
13068 # as_fn_exit STATUS
13069 # -----------------
13070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13074 as_fn_set_status $1
13080 # Portably unset VAR.
13083 { eval $1=; unset $1;}
13085 as_unset=as_fn_unset
13086 # as_fn_append VAR VALUE
13087 # ----------------------
13088 # Append the text in VALUE to the end of the definition contained in VAR. Take
13089 # advantage of any shell optimizations that allow amortized linear growth over
13090 # repeated appends, instead of the typical quadratic growth present in naive
13092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13093 eval 'as_fn_append ()
13104 # as_fn_arith ARG...
13105 # ------------------
13106 # Perform arithmetic evaluation on the ARGs, and store the result in the
13107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13108 # must be portable across $(()) and expr.
13109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13110 eval 'as_fn_arith ()
13117 as_val=`expr "$@" || test $? -eq 1`
13122 if expr a : '\(a\)' >/dev/null 2>&1 &&
13123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13130 as_basename=basename
13135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13141 as_me=`$as_basename -- "$0" ||
13142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13143 X"$0" : 'X\(//\)$' \| \
13144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13146 sed '/^.*\/\([^/][^/]*\)\/*$/{
13160 # Avoid depending upon Character Ranges.
13161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13164 as_cr_digits='0123456789'
13165 as_cr_alnum=$as_cr_Letters$as_cr_digits
13167 ECHO_C= ECHO_N= ECHO_T=
13168 case `echo -n x` in #(((((
13170 case `echo 'xy\c'` in
13171 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13173 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13180 rm -f conf$$ conf$$.exe conf$$.file
13181 if test -d conf$$.dir; then
13182 rm -f conf$$.dir/conf$$.file
13185 mkdir conf$$.dir 2>/dev/null
13187 if (echo >conf$$.file) 2>/dev/null; then
13188 if ln -s conf$$.file conf$$ 2>/dev/null; then
13190 # ... but there are two gotchas:
13191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13193 # In both cases, we have to default to `cp -p'.
13194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13196 elif ln conf$$.file conf$$ 2>/dev/null; then
13204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13205 rmdir conf$$.dir 2>/dev/null
13210 # Create "$as_dir" as a directory, including parents if necessary.
13215 -*) as_dir=./$as_dir;;
13217 test -d "$as_dir" || eval $as_mkdir_p || {
13221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13222 *) as_qdir=$as_dir;;
13224 as_dirs="'$as_qdir' $as_dirs"
13225 as_dir=`$as_dirname -- "$as_dir" ||
13226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13227 X"$as_dir" : 'X\(//\)[^/]' \| \
13228 X"$as_dir" : 'X\(//\)$' \| \
13229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13230 $as_echo X"$as_dir" |
13231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13235 /^X\(\/\/\)[^/].*/{
13248 test -d "$as_dir" && break
13250 test -z "$as_dirs" || eval "mkdir $as_dirs"
13251 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13255 if mkdir -p . 2>/dev/null; then
13256 as_mkdir_p='mkdir -p "$as_dir"'
13258 test -d ./-p && rmdir ./-p
13262 if test -x / >/dev/null 2>&1; then
13263 as_test_x='test -x'
13265 if ls -dL / >/dev/null 2>&1; then
13272 if test -d "$1"; then
13278 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13279 ???[sx]*):;;*)false;;esac;fi
13283 as_executable_p=$as_test_x
13285 # Sed expression to map a string onto a valid CPP name.
13286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13288 # Sed expression to map a string onto a valid variable name.
13289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13293 ## ----------------------------------- ##
13294 ## Main body of $CONFIG_STATUS script. ##
13295 ## ----------------------------------- ##
13297 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13300 # Save the log message, to keep $0 and so on meaningful, and to
13301 # report actual input values of CONFIG_FILES etc. instead of their
13302 # values after options handling.
13304 This file was extended by FreeType $as_me 2.4.9, which was
13305 generated by GNU Autoconf 2.68. Invocation command line was
13307 CONFIG_FILES = $CONFIG_FILES
13308 CONFIG_HEADERS = $CONFIG_HEADERS
13309 CONFIG_LINKS = $CONFIG_LINKS
13310 CONFIG_COMMANDS = $CONFIG_COMMANDS
13313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13318 case $ac_config_files in *"
13319 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13322 case $ac_config_headers in *"
13323 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13328 # Files that config.status was made for.
13329 config_files="$ac_config_files"
13330 config_headers="$ac_config_headers"
13331 config_commands="$ac_config_commands"
13335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13337 \`$as_me' instantiates files and other configuration actions
13338 from templates according to the current configuration. Unless the files
13339 and actions are specified as TAGs, all are instantiated by default.
13341 Usage: $0 [OPTION]... [TAG]...
13343 -h, --help print this help, then exit
13344 -V, --version print version number and configuration settings, then exit
13345 --config print configuration, then exit
13346 -q, --quiet, --silent
13347 do not print progress messages
13348 -d, --debug don't remove temporary files
13349 --recheck update $as_me by reconfiguring in the same conditions
13350 --file=FILE[:TEMPLATE]
13351 instantiate the configuration file FILE
13352 --header=FILE[:TEMPLATE]
13353 instantiate the configuration header FILE
13355 Configuration files:
13358 Configuration headers:
13361 Configuration commands:
13364 Report bugs to <freetype@nongnu.org>."
13367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13370 FreeType config.status 2.4.9
13371 configured by $0, generated by GNU Autoconf 2.68,
13372 with options \\"\$ac_cs_config\\"
13374 Copyright (C) 2010 Free Software Foundation, Inc.
13375 This config.status script is free software; the Free Software Foundation
13376 gives unlimited permission to copy, distribute and modify it."
13382 test -n "\$AWK" || AWK=awk
13385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386 # The default lists apply if the user does not specify any file.
13392 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13393 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13397 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13409 # Handling of the options.
13410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13412 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13413 $as_echo "$ac_cs_version"; exit ;;
13414 --config | --confi | --conf | --con | --co | --c )
13415 $as_echo "$ac_cs_config"; exit ;;
13416 --debug | --debu | --deb | --de | --d | -d )
13418 --file | --fil | --fi | --f )
13421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13422 '') as_fn_error $? "missing file argument" ;;
13424 as_fn_append CONFIG_FILES " '$ac_optarg'"
13425 ac_need_defaults=false;;
13426 --header | --heade | --head | --hea )
13429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13432 ac_need_defaults=false;;
13434 # Conflict between --help and --header
13435 as_fn_error $? "ambiguous option: \`$1'
13436 Try \`$0 --help' for more information.";;
13437 --help | --hel | -h )
13438 $as_echo "$ac_cs_usage"; exit ;;
13439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13443 # This is an error.
13444 -*) as_fn_error $? "unrecognized option: \`$1'
13445 Try \`$0 --help' for more information." ;;
13447 *) as_fn_append ac_config_targets " $1"
13448 ac_need_defaults=false ;;
13454 ac_configure_extra_args=
13456 if $ac_cs_silent; then
13458 ac_configure_extra_args="$ac_configure_extra_args --silent"
13462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13463 if \$ac_cs_recheck; then
13464 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13467 CONFIG_SHELL='$SHELL'
13468 export CONFIG_SHELL
13473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13478 ## Running $as_me. ##
13484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13490 # The HP-UX ksh and POSIX shell print the target directory to stdout
13491 # if CDPATH is set.
13492 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13494 sed_quote_subst='$sed_quote_subst'
13495 double_quote_subst='$double_quote_subst'
13496 delay_variable_subst='$delay_variable_subst'
13497 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13498 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13499 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13500 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13501 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13502 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13503 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13504 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13505 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13506 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13507 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13508 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13509 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13510 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13511 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13512 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13513 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13514 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13515 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13516 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13517 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13518 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13519 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13520 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13521 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13522 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13523 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13524 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13525 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13526 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13527 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13528 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13529 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13530 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13531 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13532 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13533 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13534 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13535 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13536 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13537 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13538 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13539 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13540 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13541 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13542 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13543 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13544 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13545 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13546 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13547 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13548 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13549 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13550 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13551 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13553 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13554 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"`'
13555 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13556 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13557 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13558 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13559 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13560 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13561 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13562 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13563 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13564 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13565 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13566 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13567 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13568 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13569 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13570 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13571 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13572 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13573 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13574 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13575 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13576 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13577 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13578 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13579 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13580 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13581 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13582 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13583 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13584 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13585 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13586 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13587 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13588 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13589 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13590 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13591 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13592 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13593 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13594 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13595 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13596 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13597 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13598 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13599 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13600 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13601 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13602 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13603 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13604 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13605 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13606 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13607 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13608 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13609 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13610 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13611 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13612 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13613 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13614 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13615 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13616 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13617 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13618 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13619 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13620 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13621 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13622 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13623 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13624 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13625 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13626 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13627 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13630 LTCFLAGS='$LTCFLAGS'
13631 compiler='$compiler_DEFAULT'
13633 # A function that is used when there is no print builtin or printf.
13634 func_fallback_echo ()
13636 eval 'cat <<_LTECHO_EOF
13641 # Quote evaled strings.
13658 deplibs_check_method \
13662 sharedlib_from_linklib_cmd \
13665 archiver_list_spec \
13671 lt_cv_sys_global_symbol_pipe \
13672 lt_cv_sys_global_symbol_to_cdecl \
13673 lt_cv_sys_global_symbol_to_c_name_address \
13674 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13675 nm_file_list_spec \
13676 lt_prog_compiler_no_builtin_flag \
13677 lt_prog_compiler_pic \
13678 lt_prog_compiler_wl \
13679 lt_prog_compiler_static \
13680 lt_cv_prog_compiler_c_o \
13689 export_dynamic_flag_spec \
13690 whole_archive_flag_spec \
13691 compiler_needs_object \
13693 allow_undefined_flag \
13694 no_undefined_flag \
13695 hardcode_libdir_flag_spec \
13696 hardcode_libdir_separator \
13700 variables_saved_for_relink \
13702 library_names_spec \
13704 install_override_mode \
13708 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13709 *[\\\\\\\`\\"\\\$]*)
13710 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13713 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13718 # Double-quote double-evaled strings.
13719 for var in reload_cmds \
13720 old_postinstall_cmds \
13721 old_postuninstall_cmds \
13723 extract_expsyms_cmds \
13724 old_archive_from_new_cmds \
13725 old_archive_from_expsyms_cmds \
13727 archive_expsym_cmds \
13729 module_expsym_cmds \
13730 export_symbols_cmds \
13734 postuninstall_cmds \
13736 sys_lib_search_path_spec \
13737 sys_lib_dlsearch_path_spec; do
13738 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13739 *[\\\\\\\`\\"\\\$]*)
13740 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13743 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13748 ac_aux_dir='$ac_aux_dir'
13749 xsi_shell='$xsi_shell'
13750 lt_shell_append='$lt_shell_append'
13752 # See if we are running on zsh, and set the options which allow our
13753 # commands through without removal of \ escapes INIT.
13754 if test -n "\${ZSH_VERSION+set}" ; then
13755 setopt NO_GLOB_SUBST
13761 TIMESTAMP='$TIMESTAMP'
13770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13772 # Handling of arguments.
13773 for ac_config_target in $ac_config_targets
13775 case $ac_config_target in
13776 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13777 "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
13778 "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
13779 "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
13780 "freetype-config") CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
13781 "freetype2.pc") CONFIG_FILES="$CONFIG_FILES freetype2.pc:freetype2.in" ;;
13783 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13788 # If the user did not use the arguments to specify the items to instantiate,
13789 # then the envvar interface is used. Set only those that are not.
13790 # We use the long form for the default assignment because of an extremely
13791 # bizarre bug on SunOS 4.1.3.
13792 if $ac_need_defaults; then
13793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13795 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13798 # Have a temporary directory for convenience. Make it in the build tree
13799 # simply because there is no reason against having it here, and in addition,
13800 # creating and moving files from /tmp can sometimes cause problems.
13801 # Hook for its removal unless debugging.
13802 # Note that there is a small window in which the directory will not be cleaned:
13803 # after its creation but before its name has been assigned to `$tmp'.
13807 trap 'exit_status=$?
13808 : "${ac_tmp:=$tmp}"
13809 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13811 trap 'as_fn_exit 1' 1 2 13 15
13813 # Create a (secure) tmp directory for tmp files.
13816 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13820 tmp=./conf$$-$RANDOM
13821 (umask 077 && mkdir "$tmp")
13822 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13825 # Set up the scripts for CONFIG_FILES section.
13826 # No need to generate them if there are no CONFIG_FILES.
13827 # This happens for instance with `./config.status config.h'.
13828 if test -n "$CONFIG_FILES"; then
13831 ac_cr=`echo X | tr X '\015'`
13832 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13833 # But we know of no other shell where ac_cr would be empty at this
13834 # point, so we can use a bashism as a fallback.
13835 if test "x$ac_cr" = x; then
13836 eval ac_cr=\$\'\\r\'
13838 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13839 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13842 ac_cs_awk_cr=$ac_cr
13845 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13850 echo "cat >conf$$subs.awk <<_ACEOF" &&
13851 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13853 } >conf$$subs.sh ||
13854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13855 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13857 for ac_last_try in false false false false false :; do
13858 . ./conf$$subs.sh ||
13859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13861 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13862 if test $ac_delim_n = $ac_delim_num; then
13864 elif $ac_last_try; then
13865 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13870 rm -f conf$$subs.sh
13872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13873 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13877 s/^/S["/; s/!.*/"]=/
13887 s/\(.\{148\}\)..*/\1/
13889 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13894 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13901 s/\(.\{148\}\)..*/\1/
13903 s/["\\]/\\&/g; s/^/"/; s/$/"/
13907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13912 ' <conf$$subs.awk | sed '
13917 ' >>$CONFIG_STATUS || ac_write_fail=1
13918 rm -f conf$$subs.awk
13919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13921 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13922 for (key in S) S_is_set[key] = 1
13928 nfields = split(line, field, "@")
13930 len = length(field[1])
13931 for (i = 2; i < nfields; i++) {
13933 keylen = length(key)
13934 if (S_is_set[key]) {
13936 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13937 len += length(value) + length(field[++i])
13948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13950 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13953 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13954 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13957 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13958 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13959 # trailing colons and then remove the whole line if VPATH becomes empty
13960 # (actually we leave an empty line to preserve line numbers).
13961 if test "x$srcdir" = x.; then
13962 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981 fi # test -n "$CONFIG_FILES"
13983 # Set up the scripts for CONFIG_HEADERS section.
13984 # No need to generate them if there are no CONFIG_HEADERS.
13985 # This happens for instance with `./config.status Makefile'.
13986 if test -n "$CONFIG_HEADERS"; then
13987 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13991 # Transform confdefs.h into an awk script `defines.awk', embedded as
13992 # here-document in config.status, that substitutes the proper values into
13993 # config.h.in to produce config.h.
13995 # Create a delimiter string that does not exist in confdefs.h, to ease
13996 # handling of long lines.
13998 for ac_last_try in false false :; do
13999 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14000 if test -z "$ac_tt"; then
14002 elif $ac_last_try; then
14003 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14009 # For the awk script, D is an array of macro values keyed by name,
14010 # likewise P contains macro parameters if any. Preserve backslash
14011 # newline sequences.
14013 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14015 s/.\{148\}/&'"$ac_delim"'/g
14018 s/^[ ]*#[ ]*define[ ][ ]*/ /
14025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14027 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14032 D["\1"]=" \3\\\\\\n"\\/p
14034 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14039 s/.\{148\}/&'"$ac_delim"'/g
14044 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14047 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14049 ' <confdefs.h | sed '
14050 s/'"$ac_delim"'/"\\\
14051 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054 for (key in D) D_is_set[key] = 1
14057 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14059 split(line, arg, " ")
14060 if (arg[1] == "#") {
14064 defundef = substr(arg[1], 2)
14067 split(mac1, mac2, "(") #)
14069 prefix = substr(line, 1, index(line, defundef) - 1)
14070 if (D_is_set[macro]) {
14071 # Preserve the white space surrounding the "#".
14072 print prefix "define", macro P[macro] D[macro]
14075 # Replace #undef with comments. This is necessary, for example,
14076 # in the case of _POSIX_SOURCE, which is predefined and required
14077 # on some systems where configure will not decide to define it.
14078 if (defundef == "undef") {
14079 print "/*", prefix defundef, macro, "*/"
14087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14088 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14089 fi # test -n "$CONFIG_HEADERS"
14092 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14097 :[FHLC]) ac_mode=$ac_tag; continue;;
14099 case $ac_mode$ac_tag in
14101 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14102 :[FH]-) ac_tag=-:-;;
14103 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14120 -) ac_f="$ac_tmp/stdin";;
14121 *) # Look for the file first in the build tree, then in the source tree
14122 # (if the path is not absolute). The absolute path cannot be DOS-style,
14123 # because $ac_f cannot contain `:'.
14127 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14129 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14131 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14132 as_fn_append ac_file_inputs " '$ac_f'"
14135 # Let's still pretend it is `configure' which instantiates (i.e., don't
14136 # use $as_me), people would be surprised to read:
14137 # /* config.h. Generated by config.status. */
14138 configure_input='Generated from '`
14139 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14141 if test x"$ac_file" != x-; then
14142 configure_input="$ac_file. $configure_input"
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14144 $as_echo "$as_me: creating $ac_file" >&6;}
14146 # Neutralize special characters interpreted by sed in replacement strings.
14147 case $configure_input in #(
14148 *\&* | *\|* | *\\* )
14149 ac_sed_conf_input=`$as_echo "$configure_input" |
14150 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14151 *) ac_sed_conf_input=$configure_input;;
14155 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14161 ac_dir=`$as_dirname -- "$ac_file" ||
14162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14163 X"$ac_file" : 'X\(//\)[^/]' \| \
14164 X"$ac_file" : 'X\(//\)$' \| \
14165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14166 $as_echo X"$ac_file" |
14167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14171 /^X\(\/\/\)[^/].*/{
14184 as_dir="$ac_dir"; as_fn_mkdir_p
14188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14190 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14191 # A ".." for each directory in $ac_dir_suffix.
14192 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14193 case $ac_top_builddir_sub in
14194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14198 ac_abs_top_builddir=$ac_pwd
14199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14200 # for backward compatibility:
14201 ac_top_builddir=$ac_top_build_prefix
14204 .) # We are building in place.
14206 ac_top_srcdir=$ac_top_builddir_sub
14207 ac_abs_top_srcdir=$ac_pwd ;;
14208 [\\/]* | ?:[\\/]* ) # Absolute name.
14209 ac_srcdir=$srcdir$ac_dir_suffix;
14210 ac_top_srcdir=$srcdir
14211 ac_abs_top_srcdir=$srcdir ;;
14212 *) # Relative name.
14213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14214 ac_top_srcdir=$ac_top_build_prefix$srcdir
14215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14227 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14228 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14233 # If the template does not know about datarootdir, expand it.
14234 # FIXME: This hack should be removed a few years after 2.60.
14235 ac_datarootdir_hack=; ac_datarootdir_seen=
14246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14247 *datarootdir*) ac_datarootdir_seen=yes;;
14248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14250 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253 ac_datarootdir_hack='
14254 s&@datadir@&$datadir&g
14255 s&@docdir@&$docdir&g
14256 s&@infodir@&$infodir&g
14257 s&@localedir@&$localedir&g
14258 s&@mandir@&$mandir&g
14259 s&\\\${datarootdir}&$datarootdir&g' ;;
14263 # Neutralize VPATH when `$srcdir' = `.'.
14264 # Shell code in configure.ac might set extrasub.
14265 # FIXME: do we really want to maintain this feature?
14266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14267 ac_sed_extra="$ac_vpsub
14270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14273 s|@configure_input@|$ac_sed_conf_input|;t t
14274 s&@top_builddir@&$ac_top_builddir_sub&;t t
14275 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14276 s&@srcdir@&$ac_srcdir&;t t
14277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14278 s&@top_srcdir@&$ac_top_srcdir&;t t
14279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14280 s&@builddir@&$ac_builddir&;t t
14281 s&@abs_builddir@&$ac_abs_builddir&;t t
14282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14283 s&@INSTALL@&$ac_INSTALL&;t t
14284 $ac_datarootdir_hack
14286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14287 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14290 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14292 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14294 which seems to be undefined. Please make sure it is defined" >&5
14295 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14296 which seems to be undefined. Please make sure it is defined" >&2;}
14298 rm -f "$ac_tmp/stdin"
14300 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14301 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14309 if test x"$ac_file" != x-; then
14311 $as_echo "/* $configure_input */" \
14312 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14313 } >"$ac_tmp/config.h" \
14314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14315 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14317 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14320 mv "$ac_tmp/config.h" "$ac_file" \
14321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14324 $as_echo "/* $configure_input */" \
14325 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14326 || as_fn_error $? "could not create -" "$LINENO" 5
14330 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14331 $as_echo "$as_me: executing $ac_file commands" >&6;}
14336 case $ac_file$ac_mode in
14339 # See if we are running on zsh, and set the options which allow our
14340 # commands through without removal of \ escapes.
14341 if test -n "${ZSH_VERSION+set}" ; then
14342 setopt NO_GLOB_SUBST
14345 cfgfile="${ofile}T"
14346 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14349 cat <<_LT_EOF >> "$cfgfile"
14352 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14353 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14355 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14357 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14358 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14360 # Written by Gordon Matzigkeit, 1996
14362 # This file is part of GNU Libtool.
14364 # GNU Libtool is free software; you can redistribute it and/or
14365 # modify it under the terms of the GNU General Public License as
14366 # published by the Free Software Foundation; either version 2 of
14367 # the License, or (at your option) any later version.
14369 # As a special exception to the GNU General Public License,
14370 # if you distribute this file as part of a program or library that
14371 # is built using GNU Libtool, you may include this file under the
14372 # same distribution terms that you use for the rest of that program.
14374 # GNU Libtool is distributed in the hope that it will be useful,
14375 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14376 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14377 # GNU General Public License for more details.
14379 # You should have received a copy of the GNU General Public License
14380 # along with GNU Libtool; see the file COPYING. If not, a copy
14381 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14382 # obtained by writing to the Free Software Foundation, Inc.,
14383 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14386 # The names of the tagged configurations supported by this script.
14389 # ### BEGIN LIBTOOL CONFIG
14391 # Which release of libtool.m4 was used?
14392 macro_version=$macro_version
14393 macro_revision=$macro_revision
14395 # Assembler program.
14398 # DLL creation program.
14399 DLLTOOL=$lt_DLLTOOL
14401 # Object dumper program.
14402 OBJDUMP=$lt_OBJDUMP
14404 # Whether or not to build shared libraries.
14405 build_libtool_libs=$enable_shared
14407 # Whether or not to build static libraries.
14408 build_old_libs=$enable_static
14410 # What type of objects to build.
14413 # Whether or not to optimize for fast installation.
14414 fast_install=$enable_fast_install
14416 # Shell to use when invoking shell scripts.
14419 # An echo program that protects backslashes.
14422 # The PATH separator for the build system.
14423 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14426 host_alias=$host_alias
14430 # The build system.
14431 build_alias=$build_alias
14435 # A sed program that does not truncate output.
14438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14439 Xsed="\$SED -e 1s/^X//"
14441 # A grep program that handles long lines.
14447 # A literal string matcher.
14450 # A BSD- or MS-compatible name lister.
14453 # Whether we need soft or hard links.
14456 # What is the maximum length of a command?
14457 max_cmd_len=$max_cmd_len
14459 # Object file suffix (normally "o").
14462 # Executable file suffix (normally "").
14465 # whether the shell understands "unset".
14468 # turn spaces into newlines.
14471 # turn newlines into spaces.
14474 # convert \$build file names to \$host format.
14475 to_host_file_cmd=$lt_cv_to_host_file_cmd
14477 # convert \$build files to toolchain format.
14478 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14480 # Method to check whether dependent libraries are shared objects.
14481 deplibs_check_method=$lt_deplibs_check_method
14483 # Command to use when deplibs_check_method = "file_magic".
14484 file_magic_cmd=$lt_file_magic_cmd
14486 # How to find potential files when deplibs_check_method = "file_magic".
14487 file_magic_glob=$lt_file_magic_glob
14489 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14490 want_nocaseglob=$lt_want_nocaseglob
14492 # Command to associate shared and link libraries.
14493 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14498 # Flags to create an archive.
14499 AR_FLAGS=$lt_AR_FLAGS
14501 # How to feed a file listing to the archiver.
14502 archiver_list_spec=$lt_archiver_list_spec
14504 # A symbol stripping program.
14507 # Commands used to install an old-style archive.
14509 old_postinstall_cmds=$lt_old_postinstall_cmds
14510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14512 # Whether to use a lock for old archive extraction.
14513 lock_old_archive_extraction=$lock_old_archive_extraction
14518 # LTCC compiler flags.
14519 LTCFLAGS=$lt_CFLAGS
14521 # Take the output of nm and produce a listing of raw symbols and C names.
14522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14524 # Transform the output of nm in a proper C declaration.
14525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14527 # Transform the output of nm in a C name address pair.
14528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14530 # Transform the output of nm in a C name address pair when lib prefix is needed.
14531 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14533 # Specify filename containing input files for \$NM.
14534 nm_file_list_spec=$lt_nm_file_list_spec
14536 # The root where to search for dependent libraries,and in which our libraries should be installed.
14537 lt_sysroot=$lt_sysroot
14539 # The name of the directory that contains temporary libtool files.
14542 # Used to examine libraries when file_magic_cmd begins with "file".
14543 MAGIC_CMD=$MAGIC_CMD
14545 # Must we lock files when doing compilation?
14546 need_locks=$lt_need_locks
14549 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14551 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14552 DSYMUTIL=$lt_DSYMUTIL
14554 # Tool to change global to local symbols on Mac OS X.
14557 # Tool to manipulate fat objects and archives on Mac OS X.
14560 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14563 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14564 OTOOL64=$lt_OTOOL64
14566 # Old archive suffix (normally "a").
14569 # Shared library suffix (normally ".so").
14570 shrext_cmds=$lt_shrext_cmds
14572 # The commands to extract the exported symbol list from a shared archive.
14573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14575 # Variables whose values should be saved in libtool wrapper scripts and
14576 # restored at link time.
14577 variables_saved_for_relink=$lt_variables_saved_for_relink
14579 # Do we need the "lib" prefix for modules?
14580 need_lib_prefix=$need_lib_prefix
14582 # Do we need a version for libraries?
14583 need_version=$need_version
14585 # Library versioning type.
14586 version_type=$version_type
14588 # Shared library runtime path variable.
14589 runpath_var=$runpath_var
14591 # Shared library path variable.
14592 shlibpath_var=$shlibpath_var
14594 # Is shlibpath searched before the hard-coded library search path?
14595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14597 # Format of library name prefix.
14598 libname_spec=$lt_libname_spec
14600 # List of archive names. First name is the real one, the rest are links.
14601 # The last name is the one that the linker finds with -lNAME
14602 library_names_spec=$lt_library_names_spec
14604 # The coded name of the library, if different from the real name.
14605 soname_spec=$lt_soname_spec
14607 # Permission mode override for installation of shared libraries.
14608 install_override_mode=$lt_install_override_mode
14610 # Command to use after installation of a shared archive.
14611 postinstall_cmds=$lt_postinstall_cmds
14613 # Command to use after uninstallation of a shared archive.
14614 postuninstall_cmds=$lt_postuninstall_cmds
14616 # Commands used to finish a libtool library installation in a directory.
14617 finish_cmds=$lt_finish_cmds
14619 # As "finish_cmds", except a single script fragment to be evaled but
14621 finish_eval=$lt_finish_eval
14623 # Whether we should hardcode library paths into libraries.
14624 hardcode_into_libs=$hardcode_into_libs
14626 # Compile-time system search path for libraries.
14627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14629 # Run-time system search path for libraries.
14630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14632 # Whether dlopen is supported.
14633 dlopen_support=$enable_dlopen
14635 # Whether dlopen of programs is supported.
14636 dlopen_self=$enable_dlopen_self
14638 # Whether dlopen of statically linked programs is supported.
14639 dlopen_self_static=$enable_dlopen_self_static
14641 # Commands to strip libraries.
14642 old_striplib=$lt_old_striplib
14643 striplib=$lt_striplib
14646 # The linker used to build libraries.
14649 # How to create reloadable object files.
14650 reload_flag=$lt_reload_flag
14651 reload_cmds=$lt_reload_cmds
14653 # Commands used to build an old-style archive.
14654 old_archive_cmds=$lt_old_archive_cmds
14656 # A language specific compiler.
14659 # Is the compiler the GNU compiler?
14662 # Compiler flag to turn off builtin functions.
14663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14665 # Additional compiler flags for building library objects.
14666 pic_flag=$lt_lt_prog_compiler_pic
14668 # How to pass a linker flag through the compiler.
14669 wl=$lt_lt_prog_compiler_wl
14671 # Compiler flag to prevent dynamic linking.
14672 link_static_flag=$lt_lt_prog_compiler_static
14674 # Does compiler simultaneously support -c and -o options?
14675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14677 # Whether or not to add -lc for building shared libraries.
14678 build_libtool_need_lc=$archive_cmds_need_lc
14680 # Whether or not to disallow shared libs when runtime libs are static.
14681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14683 # Compiler flag to allow reflexive dlopens.
14684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14686 # Compiler flag to generate shared objects directly from archives.
14687 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14689 # Whether the compiler copes with passing no objects directly.
14690 compiler_needs_object=$lt_compiler_needs_object
14692 # Create an old-style archive from a shared archive.
14693 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14695 # Create a temporary old-style archive to link instead of a shared archive.
14696 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14698 # Commands used to build a shared archive.
14699 archive_cmds=$lt_archive_cmds
14700 archive_expsym_cmds=$lt_archive_expsym_cmds
14702 # Commands used to build a loadable module if different from building
14703 # a shared archive.
14704 module_cmds=$lt_module_cmds
14705 module_expsym_cmds=$lt_module_expsym_cmds
14707 # Whether we are building with GNU ld or not.
14708 with_gnu_ld=$lt_with_gnu_ld
14710 # Flag that allows shared libraries with undefined symbols to be built.
14711 allow_undefined_flag=$lt_allow_undefined_flag
14713 # Flag that enforces no undefined symbols.
14714 no_undefined_flag=$lt_no_undefined_flag
14716 # Flag to hardcode \$libdir into a binary during linking.
14717 # This must work even if \$libdir does not exist
14718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14720 # Whether we need a single "-rpath" flag with a separated argument.
14721 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14723 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14724 # DIR into the resulting binary.
14725 hardcode_direct=$hardcode_direct
14727 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14728 # DIR into the resulting binary and the resulting library dependency is
14729 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14730 # library is relocated.
14731 hardcode_direct_absolute=$hardcode_direct_absolute
14733 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14734 # into the resulting binary.
14735 hardcode_minus_L=$hardcode_minus_L
14737 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14738 # into the resulting binary.
14739 hardcode_shlibpath_var=$hardcode_shlibpath_var
14741 # Set to "yes" if building a shared library automatically hardcodes DIR
14742 # into the library and all subsequent libraries and executables linked
14744 hardcode_automatic=$hardcode_automatic
14746 # Set to yes if linker adds runtime paths of dependent libraries
14747 # to runtime path list.
14748 inherit_rpath=$inherit_rpath
14750 # Whether libtool must link a program against all its dependency libraries.
14751 link_all_deplibs=$link_all_deplibs
14753 # Set to "yes" if exported symbols are required.
14754 always_export_symbols=$always_export_symbols
14756 # The commands to list exported symbols.
14757 export_symbols_cmds=$lt_export_symbols_cmds
14759 # Symbols that should not be listed in the preloaded symbols.
14760 exclude_expsyms=$lt_exclude_expsyms
14762 # Symbols that must always be exported.
14763 include_expsyms=$lt_include_expsyms
14765 # Commands necessary for linking programs (against libraries) with templates.
14766 prelink_cmds=$lt_prelink_cmds
14768 # Commands necessary for finishing linking programs.
14769 postlink_cmds=$lt_postlink_cmds
14771 # Specify filename containing input files.
14772 file_list_spec=$lt_file_list_spec
14774 # How to hardcode a shared library path into an executable.
14775 hardcode_action=$hardcode_action
14777 # ### END LIBTOOL CONFIG
14783 cat <<\_LT_EOF >> "$cfgfile"
14784 # AIX sometimes has problems with the GCC collect2 program. For some
14785 # reason, if we set the COLLECT_NAMES environment variable, the problems
14786 # vanish in a puff of smoke.
14787 if test "X${COLLECT_NAMES+set}" != Xset; then
14789 export COLLECT_NAMES
14796 ltmain="$ac_aux_dir/ltmain.sh"
14799 # We use sed instead of cat because bash on DJGPP gets confused if
14800 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14801 # text mode, it properly converts lines to CR/LF. This bash problem
14802 # is reportedly fixed, but why not run on old versions too?
14803 sed '$q' "$ltmain" >> "$cfgfile" \
14804 || (rm -f "$cfgfile"; exit 1)
14806 if test x"$xsi_shell" = xyes; then
14807 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14811 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14812 \ * ) func_dirname_result="${3}" ;;\
14814 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14815 && mv -f "$cfgfile.tmp" "$cfgfile" \
14816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14817 test 0 -eq $? || _lt_function_replace_fail=:
14820 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14823 \ func_basename_result="${1##*/}"\
14824 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14825 && mv -f "$cfgfile.tmp" "$cfgfile" \
14826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14827 test 0 -eq $? || _lt_function_replace_fail=:
14830 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14831 func_dirname_and_basename ()\
14834 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14835 \ * ) func_dirname_result="${3}" ;;\
14837 \ func_basename_result="${1##*/}"\
14838 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14839 && mv -f "$cfgfile.tmp" "$cfgfile" \
14840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14841 test 0 -eq $? || _lt_function_replace_fail=:
14844 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14847 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14848 \ # positional parameters, so assign one to ordinary parameter first.\
14849 \ func_stripname_result=${3}\
14850 \ func_stripname_result=${func_stripname_result#"${1}"}\
14851 \ func_stripname_result=${func_stripname_result%"${2}"}\
14852 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14853 && mv -f "$cfgfile.tmp" "$cfgfile" \
14854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14855 test 0 -eq $? || _lt_function_replace_fail=:
14858 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14859 func_split_long_opt ()\
14861 \ func_split_long_opt_name=${1%%=*}\
14862 \ func_split_long_opt_arg=${1#*=}\
14863 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14864 && mv -f "$cfgfile.tmp" "$cfgfile" \
14865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14866 test 0 -eq $? || _lt_function_replace_fail=:
14869 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14870 func_split_short_opt ()\
14872 \ func_split_short_opt_arg=${1#??}\
14873 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14874 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14875 && mv -f "$cfgfile.tmp" "$cfgfile" \
14876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14877 test 0 -eq $? || _lt_function_replace_fail=:
14880 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14884 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14885 \ *) func_lo2o_result=${1} ;;\
14887 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14888 && mv -f "$cfgfile.tmp" "$cfgfile" \
14889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14890 test 0 -eq $? || _lt_function_replace_fail=:
14893 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14896 func_xform_result=${1%.*}.lo\
14897 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14898 && mv -f "$cfgfile.tmp" "$cfgfile" \
14899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14900 test 0 -eq $? || _lt_function_replace_fail=:
14903 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14906 func_arith_result=$(( $* ))\
14907 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14908 && mv -f "$cfgfile.tmp" "$cfgfile" \
14909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14910 test 0 -eq $? || _lt_function_replace_fail=:
14913 sed -e '/^func_len ()$/,/^} # func_len /c\
14916 func_len_result=${#1}\
14917 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14918 && mv -f "$cfgfile.tmp" "$cfgfile" \
14919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14920 test 0 -eq $? || _lt_function_replace_fail=:
14924 if test x"$lt_shell_append" = xyes; then
14925 sed -e '/^func_append ()$/,/^} # func_append /c\
14928 eval "${1}+=\\${2}"\
14929 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14930 && mv -f "$cfgfile.tmp" "$cfgfile" \
14931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14932 test 0 -eq $? || _lt_function_replace_fail=:
14935 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14936 func_append_quoted ()\
14938 \ func_quote_for_eval "${2}"\
14939 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14940 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14941 && mv -f "$cfgfile.tmp" "$cfgfile" \
14942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14943 test 0 -eq $? || _lt_function_replace_fail=:
14946 # Save a `func_append' function call where possible by direct use of '+='
14947 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14948 && mv -f "$cfgfile.tmp" "$cfgfile" \
14949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14950 test 0 -eq $? || _lt_function_replace_fail=:
14952 # Save a `func_append' function call even when '+=' is not available
14953 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14954 && mv -f "$cfgfile.tmp" "$cfgfile" \
14955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14956 test 0 -eq $? || _lt_function_replace_fail=:
14959 if test x"$_lt_function_replace_fail" = x":"; then
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14961 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14965 mv -f "$cfgfile" "$ofile" ||
14966 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14970 "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
14971 sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
14980 ac_clean_files=$ac_clean_files_save
14982 test $ac_write_fail = 0 ||
14983 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14986 # configure is writing to config.log, and then calls config.status.
14987 # config.status does its own redirection, appending to config.log.
14988 # Unfortunately, on DOS this fails, as config.log is still kept open
14989 # by configure, so config.status won't be able to write to it; its
14990 # output is simply discarded. So we exec the FD to /dev/null,
14991 # effectively closing config.log, so it can be properly (re)opened and
14992 # appended to by config.status. When coming back to configure, we
14993 # need to make the FD available again.
14994 if test "$no_create" != yes; then
14996 ac_config_status_args=
14997 test "$silent" = yes &&
14998 ac_config_status_args="$ac_config_status_args --quiet"
15000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15003 # would make configure fail if this is the last instruction.
15004 $ac_cs_success || as_fn_exit 1
15006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15012 # end of configure.raw