2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="fonts.dtd"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars='am__EXEEXT_FALSE
674 CROSS_COMPILING_FALSE
679 MS_LIB_AVAILABLE_FALSE
680 MS_LIB_AVAILABLE_TRUE
736 LIBT_CURRENT_MINUS_AGE
752 INSTALL_STRIP_PROGRAM
794 program_transform_name
807 enable_option_checking
809 enable_dependency_tracking
821 with_libiconv_includes
836 ac_precious_vars='build_alias
857 # Initialize some variables set by options.
859 ac_init_version=false
860 ac_unrecognized_opts=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name=s,x,x,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE}'
896 infodir='${datarootdir}/info'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 # Accept the important Cygnus configure options, so we can diagnose typos.
924 case $ac_dashdash$ac_option in
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
946 cache_file=config.cache ;;
948 -datadir | --datadir | --datadi | --datad)
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
974 eval enable_$ac_useropt=no ;;
976 -docdir | --docdir | --docdi | --doc | --do)
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1164 -site=* | --site=* | --sit=*)
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=\$ac_optarg ;;
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1220 eval with_$ac_useropt=no ;;
1223 # Obsolete; use --with-x.
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1291 # Be sure to have absolute directory names.
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1304 target=$target_alias
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures this package to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 if test -n "$ac_init_help"; then
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --disable-largefile omit support for large files
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --enable-iconv Use iconv to support non-Unicode SFNT name
1484 --enable-libxml2 Use libxml2 instead of Expat
1485 --disable-docs Don't build and install documentation
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot=DIR Search for dependent libraries within DIR
1494 (or the compiler's sysroot if not specified).
1495 --with-arch=ARCH Force architecture to ARCH
1496 --with-libiconv=DIR Use libiconv in DIR
1497 --with-libiconv-includes=DIR
1498 Use libiconv includes in DIR
1499 --with-libiconv-lib=DIR Use libiconv library in DIR
1500 --with-expat=DIR Use Expat in DIR
1501 --with-expat-includes=DIR
1502 Use Expat includes in DIR
1503 --with-expat-lib=DIR
1504 --with-default-fonts=DIR
1505 Use fonts from DIR when config is busted
1506 --with-add-fonts=DIR1,DIR2,...
1507 Find additional fonts in DIR1,DIR2,...
1508 --with-cache-dir=DIR Use DIR to store cache files
1509 [default=LOCALSTATEDIR/cache/fontconfig]
1510 --with-templatedir=DIR Use DIR to store the configuration template files
1511 [default=DATADIR/fontconfig/conf.avail]
1512 --with-baseconfigdir=DIR
1513 Use DIR to store the base configuration files
1514 [default=SYSCONFDIR/fonts]
1515 --with-configdir=DIR Use DIR to store active configuration files
1516 [default=BASECONFIGDIR/conf.d]
1517 --with-xmldir=DIR Use DIR to store XML schema files
1518 [default=DATADIR/xml/fontconfig]
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1529 PKG_CONFIG path to pkg-config utility
1531 directories to add to pkg-config's search path
1533 path overriding pkg-config's built-in search path
1535 build system C compiler
1537 C compiler flags for FREETYPE, overriding pkg-config
1539 linker flags for FREETYPE, overriding pkg-config
1541 C compiler flags for EXPAT, overriding pkg-config
1542 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1544 C compiler flags for LIBXML2, overriding pkg-config
1546 linker flags for LIBXML2, overriding pkg-config
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1551 Report bugs to the package provider.
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" ||
1560 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568 # A ".." for each directory in $ac_dir_suffix.
1569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1581 .) # We are building in place.
1583 ac_top_srcdir=$ac_top_builddir_sub
1584 ac_abs_top_srcdir=$ac_pwd ;;
1585 [\\/]* | ?:[\\/]* ) # Absolute name.
1586 ac_srcdir=$srcdir$ac_dir_suffix;
1587 ac_top_srcdir=$srcdir
1588 ac_abs_top_srcdir=$srcdir ;;
1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596 cd "$ac_dir" || { ac_status=$?; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1615 generated by GNU Autoconf 2.69
1617 Copyright (C) 2012 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext
1635 if { { ac_try="$ac_compile"
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext; then :
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1664 } # ac_fn_c_try_compile
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } > conftest.i && {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1703 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1706 # the include files in INCLUDES and setting the cache variable VAR
1708 ac_fn_c_check_header_mongrel ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if eval \${$3+:} false; then :
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1721 # Is the header compilable?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1723 $as_echo_n "checking $2 usability... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 ac_header_compiler=yes
1732 ac_header_compiler=no
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1736 $as_echo "$ac_header_compiler" >&6; }
1738 # Is the header present?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1740 $as_echo_n "checking $2 presence... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1745 if ac_fn_c_try_cpp "$LINENO"; then :
1746 ac_header_preproc=yes
1748 ac_header_preproc=no
1750 rm -f conftest.err conftest.i conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1752 $as_echo "$ac_header_preproc" >&6; }
1754 # So? What about this header?
1755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1758 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1764 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1766 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1768 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1770 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1780 eval "$3=\$ac_header_compiler"
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 } # ac_fn_c_check_header_mongrel
1790 # ac_fn_c_try_run LINENO
1791 # ----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793 # that executables *can* be run.
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_link"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>&5
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808 { { case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_try") 2>&5
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; }; }; then :
1820 $as_echo "$as_me: program exited with status $ac_status" >&5
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=$ac_status
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_header_compile
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 test -x conftest$ac_exeext
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_link
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924 #define $2 innocuous_$2
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below.
1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929 <limits.h> exists even on freestanding compilers. */
1932 # include <limits.h>
1934 # include <assert.h>
1939 /* Override any GCC internal prototype to avoid an error.
1940 Use char because int might match the return type of a GCC
1941 builtin and then its argument prototype would still apply. */
1946 /* The GNU C library defines this for functions which it implements
1947 to always fail with ENOSYS. Some functions are actually named
1948 something starting with __ and the normal name is an alias. */
1949 #if defined __stub_$2 || defined __stub___$2
1961 if ac_fn_c_try_link "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_func
1976 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1977 # -------------------------------------------
1978 # Tests whether TYPE exists after having included INCLUDES, setting cache
1979 # variable VAR accordingly.
1980 ac_fn_c_check_type ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2014 if ac_fn_c_try_compile "$LINENO"; then :
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_type
2030 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2031 # --------------------------------------------
2032 # Tries to find the compile-time value of EXPR in a program that includes
2033 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2035 ac_fn_c_compute_int ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 if test "$cross_compiling" = yes; then
2039 # Depending upon the size, compute the lo and hi bounds.
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) >= 0)];
2048 return test_array [0];
2054 if ac_fn_c_try_compile "$LINENO"; then :
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 return test_array [0];
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=$ac_mid; break
2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075 if test $ac_lo -le $ac_mid; then
2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2090 static int test_array [1 - 2 * !(($2) < 0)];
2092 return test_array [0];
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2109 return test_array [0];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_lo=$ac_mid; break
2118 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2119 if test $ac_mid -le $ac_hi; then
2123 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 # Binary search between lo and hi bounds.
2134 while test "x$ac_lo" != "x$ac_hi"; do
2135 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 return test_array [0];
2150 if ac_fn_c_try_compile "$LINENO"; then :
2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2173 FILE *f = fopen ("conftest.val", "w");
2178 long int i = longval ();
2181 fprintf (f, "%ld", i);
2185 unsigned long int i = ulongval ();
2188 fprintf (f, "%lu", i);
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2198 if ac_fn_c_try_run "$LINENO"; then :
2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204 conftest.$ac_objext conftest.beam conftest.$ac_ext
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 as_fn_set_status $ac_retval
2211 } # ac_fn_c_compute_int
2213 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2214 # ----------------------------------------------------
2215 # Tries to find if the field MEMBER exists in type AGGR, after including
2216 # INCLUDES, setting cache variable VAR accordingly.
2217 ac_fn_c_check_member ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2221 $as_echo_n "checking for $2.$3... " >&6; }
2222 if eval \${$4+:} false; then :
2223 $as_echo_n "(cached) " >&6
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2248 if (sizeof ac_aggr.$3)
2254 if ac_fn_c_try_compile "$LINENO"; then :
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268 } # ac_fn_c_check_member
2269 cat >config.log <<_ACEOF
2270 This file contains any messages produced by compilers while
2271 running configure, to aid debugging if configure makes a mistake.
2273 It was created by $as_me, which was
2274 generated by GNU Autoconf 2.69. Invocation command line was
2286 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2287 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2288 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2289 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2290 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2292 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2293 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2295 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2296 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2297 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2298 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2299 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2300 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2301 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 $as_echo "PATH: $as_dir"
2326 # Keep a trace of the command line.
2327 # Strip out --no-create and --no-recursion so they do not pile up.
2328 # Strip out --silent because we don't want to record it for future runs.
2329 # Also quote any args containing shell meta-characters.
2330 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_must_keep_next=false
2340 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2342 | -silent | --silent | --silen | --sile | --sil)
2345 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2350 as_fn_append ac_configure_args1 " '$ac_arg'"
2351 if test $ac_must_keep_next = true; then
2352 ac_must_keep_next=false # Got value, back to normal.
2355 *=* | --config-cache | -C | -disable-* | --disable-* \
2356 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2357 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2358 | -with-* | --with-* | -without-* | --without-* | --x)
2359 case "$ac_configure_args0 " in
2360 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2363 -* ) ac_must_keep_next=true ;;
2366 as_fn_append ac_configure_args " '$ac_arg'"
2371 { ac_configure_args0=; unset ac_configure_args0;}
2372 { ac_configure_args1=; unset ac_configure_args1;}
2374 # When interrupted or exit'd, cleanup temporary files, and complete
2375 # config.log. We remove comments because anyway the quotes in there
2376 # would cause problems or look ugly.
2377 # WARNING: Use '\'' to represent an apostrophe within the trap.
2378 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2379 trap 'exit_status=$?
2380 # Save into config.log some information that might help in debugging.
2384 $as_echo "## ---------------- ##
2385 ## Cache variables. ##
2386 ## ---------------- ##"
2388 # The following way of writing the cache mishandles newlines in values,
2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391 eval ac_val=\$$ac_var
2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2399 _ | IFS | as_nl) ;; #(
2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401 *) { eval $ac_var=; unset $ac_var;} ;;
2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407 *${as_nl}ac_space=\ *)
2409 "s/'\''/'\''\\\\'\'''\''/g;
2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2420 $as_echo "## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##"
2424 for ac_var in $ac_subst_vars
2426 eval ac_val=\$$ac_var
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 $as_echo "$ac_var='\''$ac_val'\''"
2434 if test -n "$ac_subst_files"; then
2435 $as_echo "## ------------------- ##
2436 ## File substitutions. ##
2437 ## ------------------- ##"
2439 for ac_var in $ac_subst_files
2441 eval ac_val=\$$ac_var
2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 $as_echo "$ac_var='\''$ac_val'\''"
2450 if test -s confdefs.h; then
2451 $as_echo "## ----------- ##
2458 test "$ac_signal" != 0 &&
2459 $as_echo "$as_me: caught signal $ac_signal"
2460 $as_echo "$as_me: exit $exit_status"
2462 rm -f core *.core core.conftest.* &&
2463 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2466 for ac_signal in 1 2 13 15; do
2467 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2472 rm -f -r conftest* confdefs.h
2474 $as_echo "/* confdefs.h */" > confdefs.h
2476 # Predefined preprocessor variables.
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_NAME "$PACKAGE_NAME"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_STRING "$PACKAGE_STRING"
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_URL "$PACKAGE_URL"
2503 # Let the site file select an alternate cache file if it wants to.
2504 # Prefer an explicitly selected file to automatically selected ones.
2507 if test -n "$CONFIG_SITE"; then
2508 # We do not want a PATH search for config.site.
2509 case $CONFIG_SITE in #((
2510 -*) ac_site_file1=./$CONFIG_SITE;;
2511 */*) ac_site_file1=$CONFIG_SITE;;
2512 *) ac_site_file1=./$CONFIG_SITE;;
2514 elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 test "x$ac_site_file" = xNONE && continue
2524 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2529 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 as_fn_error $? "failed to load site script $ac_site_file
2532 See \`config.log' for more details" "$LINENO" 5; }
2536 if test -r "$cache_file"; then
2537 # Some versions of bash will fail to source /dev/null (special files
2538 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2539 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541 $as_echo "$as_me: loading cache $cache_file" >&6;}
2543 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544 *) . "./$cache_file";;
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 as_fn_append ac_header_list " stdlib.h"
2554 as_fn_append ac_header_list " unistd.h"
2555 as_fn_append ac_header_list " sys/param.h"
2556 # Check that the precious variables saved in the cache have kept the same
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561 eval ac_new_set=\$ac_env_${ac_var}_set
2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563 eval ac_new_val=\$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w=`echo x $ac_old_val`
2578 ac_new_val_w=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted=:
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\$ac_old_val
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg=$ac_var=$ac_new_val ;;
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606 if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 am__api_version='1.12'
2629 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2630 if test -f "$ac_dir/install-sh"; then
2632 ac_install_sh="$ac_aux_dir/install-sh -c"
2634 elif test -f "$ac_dir/install.sh"; then
2636 ac_install_sh="$ac_aux_dir/install.sh -c"
2638 elif test -f "$ac_dir/shtool"; then
2640 ac_install_sh="$ac_aux_dir/shtool install -c"
2644 if test -z "$ac_aux_dir"; then
2645 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2648 # These three variables are undocumented and unsupported,
2649 # and are intended to be withdrawn in a future Autoconf release.
2650 # They can cause serious problems if a builder's source tree is in a directory
2651 # whose full name contains unusual characters.
2652 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2653 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2654 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2657 # Find a good install program. We prefer a C program (faster),
2658 # so one script is as good as another. But avoid the broken or
2659 # incompatible versions:
2660 # SysV /etc/install, /usr/sbin/install
2661 # SunOS /usr/etc/install
2662 # IRIX /sbin/install
2664 # AmigaOS /C/install, which installs bootblocks on floppy discs
2665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2668 # OS/2's system install, which has a completely different semantic
2669 # ./install, which can be erroneously created by make from ./install.sh.
2670 # Reject install programs that cannot install multiple files.
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2672 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2673 if test -z "$INSTALL"; then
2674 if ${ac_cv_path_install+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 # Account for people who put trailing slashes in PATH elements.
2683 case $as_dir/ in #((
2684 ./ | .// | /[cC]/* | \
2685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2686 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2689 # OSF1 and SCO ODT 3.0 have their own names for install.
2690 # Don't use installbsd from OSF since it installs stuff as root
2692 for ac_prog in ginstall scoinst install; do
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2695 if test $ac_prog = install &&
2696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697 # AIX install. It has an incompatible calling convention.
2699 elif test $ac_prog = install &&
2700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701 # program-specific install script used by HP pwplus--don't use.
2704 rm -rf conftest.one conftest.two conftest.dir
2705 echo one > conftest.one
2706 echo two > conftest.two
2708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2709 test -s conftest.one && test -s conftest.two &&
2710 test -s conftest.dir/conftest.one &&
2711 test -s conftest.dir/conftest.two
2713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2726 rm -rf conftest.one conftest.two conftest.dir
2729 if test "${ac_cv_path_install+set}" = set; then
2730 INSTALL=$ac_cv_path_install
2732 # As a last resort, use the slow shell script. Don't cache a
2733 # value for INSTALL within a source directory, because that will
2734 # break other packages using the cache if that directory is
2735 # removed, or if the value is a relative name.
2736 INSTALL=$ac_install_sh
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2740 $as_echo "$INSTALL" >&6; }
2742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2743 # It thinks the first close brace ends the variable substitution.
2744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2751 $as_echo_n "checking whether build environment is sane... " >&6; }
2752 # Reject unsafe characters in $srcdir or the absolute working directory
2753 # name. Accept space and tab only in the latter.
2757 *[\\\"\#\$\&\'\`$am_lf]*)
2758 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2761 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2762 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2765 # Do 'set' in a subshell so we don't clobber the current shell's
2766 # arguments. Must try -L first in case configure is actually a
2767 # symlink; some systems play weird games with the mod time of symlinks
2768 # (eg FreeBSD returns the mod time of the symlink's containing
2772 for am_try in 1 2; do
2773 echo "timestamp, slept: $am_has_slept" > conftest.file
2774 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2775 if test "$*" = "X"; then
2777 set X `ls -t "$srcdir/configure" conftest.file`
2779 if test "$*" != "X $srcdir/configure conftest.file" \
2780 && test "$*" != "X conftest.file $srcdir/configure"; then
2782 # If neither matched, then we have a broken ls. This can happen
2783 # if, for instance, CONFIG_SHELL is bash and it inherits a
2784 # broken ls alias from the environment. This has actually
2785 # happened. Such a system could not be considered "sane".
2786 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2787 alias in your environment" "$LINENO" 5
2789 if test "$2" = conftest.file || test $am_try -eq 2; then
2796 test "$2" = conftest.file
2802 as_fn_error $? "newly created file is older than distributed files!
2803 Check your system clock" "$LINENO" 5
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2806 $as_echo "yes" >&6; }
2807 # If we didn't sleep, we still need to ensure time stamps of config.status and
2808 # generated files are strictly newer.
2810 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2817 test "$program_prefix" != NONE &&
2818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE &&
2821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2830 if test x"${MISSING+set}" != xset; then
2833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --run true"; then
2840 am_missing_run="$MISSING --run "
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2847 if test x"${install_sh}" != xset; then
2850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852 install_sh="\${SHELL} $am_aux_dir/install-sh"
2856 # Installed binaries are usually stripped using 'strip' when the user
2857 # run "make install-strip". However 'strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the 'STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_STRIP+:} false; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$STRIP"; then
2870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2900 if test -z "$ac_cv_prog_STRIP"; then
2902 # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2907 $as_echo_n "(cached) " >&6
2909 if test -n "$ac_ct_STRIP"; then
2910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_ac_ct_STRIP="strip"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2938 if test "x$ac_ct_STRIP" = x; then
2941 case $cross_compiling:$ac_tool_warned in
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959 if ${ac_cv_path_mkdir+:} false; then :
2960 $as_echo_n "(cached) " >&6
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2966 test -z "$as_dir" && as_dir=.
2967 for ac_prog in mkdir gmkdir; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971 'mkdir (GNU coreutils) '* | \
2972 'mkdir (coreutils) '* | \
2973 'mkdir (fileutils) '4.1*)
2974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2984 test -d ./--version && rmdir ./--version
2985 if test "${ac_cv_path_mkdir+set}" = set; then
2986 MKDIR_P="$ac_cv_path_mkdir -p"
2988 # As a last resort, use the slow shell script. Don't cache a
2989 # value for MKDIR_P within a source directory, because that will
2990 # break other packages using the cache if that directory is
2991 # removed, or if the value is a relative name.
2992 MKDIR_P="$ac_install_sh -d"
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
2998 for ac_prog in gawk mawk nawk awk
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_AWK+:} false; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$AWK"; then
3008 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_AWK="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$AWK"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3030 $as_echo "$AWK" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$AWK" && break
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3043 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3044 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 cat >conftest.make <<\_ACEOF
3050 @echo '@@@%%%=$(MAKE)=@@@%%%'
3052 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3055 eval ac_cv_prog_make_${ac_make}_set=yes;;
3057 eval ac_cv_prog_make_${ac_make}_set=no;;
3061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 SET_MAKE="MAKE=${MAKE-make}"
3071 rm -rf .tst 2>/dev/null
3072 mkdir .tst 2>/dev/null
3073 if test -d .tst; then
3078 rmdir .tst 2>/dev/null
3080 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082 # is not polluted with repeated "-I."
3083 am__isrc=' -I$(srcdir)'
3084 # test to see if srcdir already configured
3085 if test -f $srcdir/config.status; then
3086 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3090 # test whether we have cygpath
3091 if test -z "$CYGPATH_W"; then
3092 if (cygpath --version) >/dev/null 2>/dev/null; then
3093 CYGPATH_W='cygpath -w'
3100 # Define the identity of the package.
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE "$PACKAGE"
3111 cat >>confdefs.h <<_ACEOF
3112 #define VERSION "$VERSION"
3115 # Some tools Automake needs.
3117 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3120 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3123 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3126 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3129 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3131 # For better backward compatibility. To be removed once Automake 1.9.x
3132 # dies out for good. For more background, see:
3133 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3134 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3135 mkdir_p='$(MKDIR_P)'
3137 # We need awk for the "check" target. The system "awk" is bad on
3139 # Always define AMTAR for backward compatibility. Yes, it's still used
3140 # in the wild :-( We should find a proper way to deprecate it ...
3143 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3149 # Check whether --enable-silent-rules was given.
3150 if test "${enable_silent_rules+set}" = set; then :
3151 enableval=$enable_silent_rules;
3154 case $enable_silent_rules in # (((
3155 yes) AM_DEFAULT_VERBOSITY=0;;
3156 no) AM_DEFAULT_VERBOSITY=1;;
3157 *) AM_DEFAULT_VERBOSITY=0;;
3159 am_make=${MAKE-make}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3161 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3162 if ${am_cv_make_support_nested_variables+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 if $as_echo 'TRUE=$(BAR$(V))
3171 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3172 am_cv_make_support_nested_variables=yes
3174 am_cv_make_support_nested_variables=no
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3178 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3179 if test $am_cv_make_support_nested_variables = yes; then
3181 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3183 AM_V=$AM_DEFAULT_VERBOSITY
3184 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3196 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
3199 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
3203 ac_config_headers="$ac_config_headers config.h"
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3251 if test -z "$ac_cv_prog_CC"; then
3253 # Extract the first word of "gcc", so it can be a program name with args.
3254 set dummy gcc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_ac_ct_CC="gcc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283 $as_echo "$ac_ct_CC" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3289 if test "x$ac_ct_CC" = x; then
3292 case $cross_compiling:$ac_tool_warned in
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296 ac_tool_warned=yes ;;
3304 if test -z "$CC"; then
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}cc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_CC="${ac_tool_prefix}cc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3345 if test -z "$CC"; then
3346 # Extract the first word of "cc", so it can be a program name with args.
3347 set dummy cc; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_CC+:} false; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3365 ac_prog_rejected=yes
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test $ac_prog_rejected = yes; then
3377 # We found a bogon in the path, so make sure we never use it.
3378 set dummy $ac_cv_prog_CC
3380 if test $# != 0; then
3381 # We chose a different compiler from the bogus one.
3382 # However, it has the same basename, so the bogon will be chosen
3383 # first if we set CC to just the basename; use the full file name.
3385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3401 if test -z "$CC"; then
3402 if test -n "$ac_tool_prefix"; then
3403 for ac_prog in cl.exe
3405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 if test -n "$CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435 $as_echo "$CC" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3442 test -n "$CC" && break
3445 if test -z "$CC"; then
3447 for ac_prog in cl.exe
3449 # Extract the first word of "$ac_prog", so it can be a program name with args.
3450 set dummy $ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3456 if test -n "$ac_ct_CC"; then
3457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_ac_ct_CC="$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3479 $as_echo "$ac_ct_CC" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3486 test -n "$ac_ct_CC" && break
3489 if test "x$ac_ct_CC" = x; then
3492 case $cross_compiling:$ac_tool_warned in
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3505 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507 as_fn_error $? "no acceptable C compiler found in \$PATH
3508 See \`config.log' for more details" "$LINENO" 5; }
3510 # Provide some information about the compiler.
3511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3514 for ac_option in --version -v -V -qversion; do
3515 { { ac_try="$ac_compiler $ac_option >&5"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3524 if test -s conftest.err; then
3526 ... rest of stderr output deleted ...
3527 10q' conftest.err >conftest.er1
3528 cat conftest.er1 >&5
3530 rm -f conftest.er1 conftest.err
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3552 $as_echo_n "checking whether the C compiler works... " >&6; }
3553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3555 # The possible output files:
3556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3559 for ac_file in $ac_files
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3568 if { { ac_try="$ac_link_default"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_link_default") 2>&5
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; then :
3579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3582 # so that the user can short-circuit this test for compilers unknown to
3584 for ac_file in $ac_files ''
3586 test -f "$ac_file" || continue
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3591 # We found the default executable, but exeext='' is most
3595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 # We set ac_cv_exeext here because the later test for it is not
3600 # safe: cross compilers may not add the suffix if given an `-o'
3601 # argument, so we may need to know it at that point already.
3602 # Even if this section looks crufty: it has the advantage of
3609 test "$ac_cv_exeext" = no && ac_cv_exeext=
3614 if test -z "$ac_file"; then :
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error 77 "C compiler cannot create executables
3623 See \`config.log' for more details" "$LINENO" 5; }
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3629 $as_echo_n "checking for C compiler default output file name... " >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3631 $as_echo "$ac_file" >&6; }
3632 ac_exeext=$ac_cv_exeext
3634 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3635 ac_clean_files=$ac_clean_files_save
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { { ac_try="$ac_link"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_link") 2>&5
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; then :
3649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 for ac_file in conftest.exe conftest conftest.*; do
3654 test -f "$ac_file" || continue
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details" "$LINENO" 5; }
3668 rm -f conftest conftest$ac_cv_exeext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3670 $as_echo "$ac_cv_exeext" >&6; }
3672 rm -f conftest.$ac_ext
3673 EXEEXT=$ac_cv_exeext
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3681 FILE *f = fopen ("conftest.out", "w");
3682 return ferror (f) || fclose (f) != 0;
3688 ac_clean_files="$ac_clean_files conftest.out"
3689 # Check that the compiler produces executables we can run. If not, either
3690 # the compiler is broken, or we cross compile.
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3692 $as_echo_n "checking whether we are cross compiling... " >&6; }
3693 if test "$cross_compiling" != yes; then
3694 { { ac_try="$ac_link"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }
3705 if { ac_try='./conftest$ac_cv_exeext'
3706 { { case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_try") 2>&5
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; }; then
3718 if test "$cross_compiling" = maybe; then
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot run C compiled programs.
3724 If you meant to cross compile, use \`--host'.
3725 See \`config.log' for more details" "$LINENO" 5; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3730 $as_echo "$cross_compiling" >&6; }
3732 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3735 $as_echo_n "checking for suffix of object files... " >&6; }
3736 if ${ac_cv_objext+:} false; then :
3737 $as_echo_n "(cached) " >&6
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3750 rm -f conftest.o conftest.obj
3751 if { { ac_try="$ac_compile"
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_compile") 2>&5
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; then :
3762 for ac_file in conftest.o conftest.obj conftest.*; do
3763 test -f "$ac_file" || continue;
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3771 $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "cannot compute suffix of object files: cannot compile
3777 See \`config.log' for more details" "$LINENO" 5; }
3779 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3782 $as_echo "$ac_cv_objext" >&6; }
3783 OBJEXT=$ac_cv_objext
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3786 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3787 if ${ac_cv_c_compiler_gnu+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3804 if ac_fn_c_try_compile "$LINENO"; then :
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3814 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3815 if test $ac_compiler_gnu = yes; then
3820 ac_test_CFLAGS=${CFLAGS+set}
3821 ac_save_CFLAGS=$CFLAGS
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3823 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3824 if ${ac_cv_prog_cc_g+:} false; then :
3825 $as_echo_n "(cached) " >&6
3827 ac_save_c_werror_flag=$ac_c_werror_flag
3828 ac_c_werror_flag=yes
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3842 if ac_fn_c_try_compile "$LINENO"; then :
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3857 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_c_werror_flag=$ac_save_c_werror_flag
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 if ac_fn_c_try_compile "$LINENO"; then :
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_c_werror_flag=$ac_save_c_werror_flag
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3884 $as_echo "$ac_cv_prog_cc_g" >&6; }
3885 if test "$ac_test_CFLAGS" = set; then
3886 CFLAGS=$ac_save_CFLAGS
3887 elif test $ac_cv_prog_cc_g = yes; then
3888 if test "$GCC" = yes; then
3894 if test "$GCC" = yes; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3902 if ${ac_cv_prog_cc_c89+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 ac_cv_prog_cc_c89=no
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3913 struct buf { int x; };
3914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915 static char *e (p, i)
3921 static char *f (char * (*g) (char **, int), char **p, ...)
3926 s = g (p, va_arg (v,int));
3931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3932 function prototypes and stuff, but not '\xHH' hex character constants.
3933 These don't provoke an error unfortunately, instead are silently treated
3934 as 'x'. The following induces an error, until -std is added to get
3935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3936 array size at least. It's necessary to write '\x00'==0 to get something
3937 that's true only with -std. */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941 inside strings and character constants. */
3943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3945 int test (int i, double x);
3946 struct s1 {int (*f) (int a);};
3947 struct s2 {int (*f) (double a);};
3948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962 CC="$ac_save_CC $ac_arg"
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_prog_cc_c89=$ac_arg
3966 rm -f core conftest.err conftest.$ac_objext
3967 test "x$ac_cv_prog_cc_c89" != "xno" && break
3969 rm -f conftest.$ac_ext
3974 case "x$ac_cv_prog_cc_c89" in
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3977 $as_echo "none needed" >&6; } ;;
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3980 $as_echo "unsupported" >&6; } ;;
3982 CC="$CC $ac_cv_prog_cc_c89"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3984 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3986 if test "x$ac_cv_prog_cc_c89" != xno; then :
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 DEPDIR="${am__leading_dot}deps"
3997 ac_config_commands="$ac_config_commands depfiles"
4000 am_make=${MAKE-make}
4001 cat > confinc << 'END'
4003 @echo this is the am__doit target
4006 # If we don't find an include directive, just comment out the code.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4008 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4012 # First try GNU make style include.
4013 echo "include confinc" > confmf
4014 # Ignore all kinds of additional output from 'make'.
4015 case `$am_make -s -f confmf 2> /dev/null` in #(
4016 *the\ am__doit\ target*)
4022 # Now try BSD make style include.
4023 if test "$am__include" = "#"; then
4024 echo '.include "confinc"' > confmf
4025 case `$am_make -s -f confmf 2> /dev/null` in #(
4026 *the\ am__doit\ target*)
4027 am__include=.include
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4036 $as_echo "$_am_result" >&6; }
4037 rm -f confinc confmf
4039 # Check whether --enable-dependency-tracking was given.
4040 if test "${enable_dependency_tracking+set}" = set; then :
4041 enableval=$enable_dependency_tracking;
4044 if test "x$enable_dependency_tracking" != xno; then
4045 am_depcomp="$ac_aux_dir/depcomp"
4049 if test "x$enable_dependency_tracking" != xno; then
4059 depcc="$CC" am_compiler_list=
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062 $as_echo_n "checking dependency style of $depcc... " >&6; }
4063 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4064 $as_echo_n "(cached) " >&6
4066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067 # We make a subdir and do the tests there. Otherwise we can end up
4068 # making bogus files that we don't know about and never remove. For
4069 # instance it was reported that on HP-UX the gcc test will end up
4070 # making a dummy file named 'D' -- because '-MD' means "put the output
4074 # Copy depcomp to subdir because otherwise we won't find it if we're
4075 # using a relative directory.
4076 cp "$am_depcomp" conftest.dir
4078 # We will build objects and dependencies in a subdirectory because
4079 # it helps to detect inapplicable dependency modes. For instance
4080 # both Tru64's cc and ICC support -MD to output dependencies as a
4081 # side effect of compilation, but ICC will put the dependencies in
4082 # the current directory while Tru64 will put them in the object
4086 am_cv_CC_dependencies_compiler_type=none
4087 if test "$am_compiler_list" = ""; then
4088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4091 case " $depcc " in #(
4092 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4095 for depmode in $am_compiler_list; do
4096 # Setup a source with many dependencies, because some compilers
4097 # like to wrap large dependency lists on column 80 (with \), and
4098 # we should not choose a depcomp mode which is confused by this.
4100 # We need to recreate these files for each test, as the compiler may
4101 # overwrite some of them when testing with obscure command lines.
4102 # This happens at least with the AIX C compiler.
4104 for i in 1 2 3 4 5 6; do
4105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4106 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4107 # Solaris 10 /bin/sh.
4108 echo '/* dummy */' > sub/conftst$i.h
4110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4112 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4113 # mode. It turns out that the SunPro C++ compiler does not properly
4114 # handle '-M -o', and we need to detect this. Also, some Intel
4115 # versions had trouble with output in subdirs.
4116 am__obj=sub/conftest.${OBJEXT-o}
4117 am__minus_obj="-o $am__obj"
4120 # This depmode causes a compiler race in universal mode.
4121 test "$am__universal" = false || continue
4124 # After this tag, mechanisms are not by side-effect, so they'll
4125 # only be used when explicitly requested.
4126 if test "x$enable_dependency_tracking" = xyes; then
4132 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4133 # This compiler won't grok '-c -o', but also, the minuso test has
4134 # not run yet. These depmodes are late enough in the game, and
4135 # so weak that their functioning should not be impacted.
4136 am__obj=conftest.${OBJEXT-o}
4141 if depmode=$depmode \
4142 source=sub/conftest.c object=$am__obj \
4143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4145 >/dev/null 2>conftest.err &&
4146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4150 # icc doesn't choke on unknown options, it will just issue warnings
4151 # or remarks (even with -Werror). So we grep stderr for any message
4152 # that says an option was ignored or not supported.
4153 # When given -MP, icc 7.0 and 7.1 complain thusly:
4154 # icc: Command line warning: ignoring option '-M'; no argument required
4155 # The diagnosis changed in icc 8.0:
4156 # icc: Command line remark: option '-MP' not supported
4157 if (grep 'ignoring option' conftest.err ||
4158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4159 am_cv_CC_dependencies_compiler_type=$depmode
4168 am_cv_CC_dependencies_compiler_type=none
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4173 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4174 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4177 test "x$enable_dependency_tracking" != xno \
4178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4180 am__fastdepCC_FALSE='#'
4182 am__fastdepCC_TRUE='#'
4183 am__fastdepCC_FALSE=
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4194 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4195 # On Suns, sometimes $CPP names a directory.
4196 if test -n "$CPP" && test -d "$CPP"; then
4199 if test -z "$CPP"; then
4200 if ${ac_cv_prog_CPP+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 # Double quotes because CPP needs to be expanded
4204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4207 for ac_c_preproc_warn_flag in '' yes
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4218 # include <limits.h>
4220 # include <assert.h>
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: fails on valid input.
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: success on invalid input.
4242 # Passes both tests.
4246 rm -f conftest.err conftest.i conftest.$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.i conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then :
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4264 $as_echo "$CPP" >&6; }
4266 for ac_c_preproc_warn_flag in '' yes
4268 # Use a header file that comes with gcc, so configuring glibc
4269 # with a fresh cross-compiler works.
4270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 # <limits.h> exists even on freestanding compilers.
4272 # On the NeXT, cc -E runs the code through the compiler's parser,
4273 # not just through cpp. "Syntax error" is here to catch this case.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4277 # include <limits.h>
4279 # include <assert.h>
4283 if ac_fn_c_try_cpp "$LINENO"; then :
4286 # Broken: fails on valid input.
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4291 # OK, works on sane cases. Now check whether nonexistent headers
4292 # can be detected and how.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4298 # Broken: success on invalid input.
4301 # Passes both tests.
4305 rm -f conftest.err conftest.i conftest.$ac_ext
4308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 rm -f conftest.i conftest.err conftest.$ac_ext
4310 if $ac_preproc_ok; then :
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4316 See \`config.log' for more details" "$LINENO" 5; }
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328 if ${ac_cv_path_GREP+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -z "$GREP"; then
4332 ac_path_GREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in grep ggrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342 as_fn_executable_p "$ac_path_GREP" || continue
4343 # Check for GNU ac_path_GREP and select it if it is found.
4344 # Check for GNU $ac_path_GREP
4345 case `"$ac_path_GREP" --version 2>&1` in
4347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4350 $as_echo_n 0123456789 >"conftest.in"
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'GREP' >> "conftest.nl"
4357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_GREP="$ac_path_GREP"
4363 ac_path_GREP_max=$ac_count
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4371 $ac_path_GREP_found && break 3
4376 if test -z "$ac_cv_path_GREP"; then
4377 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4380 ac_cv_path_GREP=$GREP
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385 $as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390 $as_echo_n "checking for egrep... " >&6; }
4391 if ${ac_cv_path_EGREP+:} false; then :
4392 $as_echo_n "(cached) " >&6
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4397 if test -z "$EGREP"; then
4398 ac_path_EGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in egrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 as_fn_executable_p "$ac_path_EGREP" || continue
4409 # Check for GNU ac_path_EGREP and select it if it is found.
4410 # Check for GNU $ac_path_EGREP
4411 case `"$ac_path_EGREP" --version 2>&1` in
4413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4416 $as_echo_n 0123456789 >"conftest.in"
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'EGREP' >> "conftest.nl"
4423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_EGREP="$ac_path_EGREP"
4429 ac_path_EGREP_max=$ac_count
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4437 $ac_path_EGREP_found && break 3
4442 if test -z "$ac_cv_path_EGREP"; then
4443 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4446 ac_cv_path_EGREP=$EGREP
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457 $as_echo_n "checking for ANSI C header files... " >&6; }
4458 if ${ac_cv_header_stdc+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_header_stdc=yes
4479 ac_cv_header_stdc=no
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then :
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "free" >/dev/null 2>&1; then :
4511 ac_cv_header_stdc=no
4517 if test $ac_cv_header_stdc = yes; then
4518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519 if test "$cross_compiling" = yes; then :
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4526 #if ((' ' & 0x0FF) == 0x020)
4527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530 # define ISLOWER(c) \
4531 (('a' <= (c) && (c) <= 'i') \
4532 || ('j' <= (c) && (c) <= 'r') \
4533 || ('s' <= (c) && (c) <= 'z'))
4534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4542 for (i = 0; i < 256; i++)
4543 if (XOR (islower (i), ISLOWER (i))
4544 || toupper (i) != TOUPPER (i))
4549 if ac_fn_c_try_run "$LINENO"; then :
4552 ac_cv_header_stdc=no
4554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555 conftest.$ac_objext conftest.beam conftest.$ac_ext
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561 $as_echo "$ac_cv_header_stdc" >&6; }
4562 if test $ac_cv_header_stdc = yes; then
4564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4576 cat >>confdefs.h <<_ACEOF
4577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4587 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4594 if test "$MINIX" = yes; then
4596 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4599 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4602 $as_echo "#define _MINIX 1" >>confdefs.h
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4608 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4609 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4610 $as_echo_n "(cached) " >&6
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4615 # define __EXTENSIONS__ 1
4616 $ac_includes_default
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_safe_to_define___extensions__=yes
4628 ac_cv_safe_to_define___extensions__=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4633 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4634 test $ac_cv_safe_to_define___extensions__ = yes &&
4635 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4637 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4639 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4641 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4643 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4646 # Check whether --enable-largefile was given.
4647 if test "${enable_largefile+set}" = set; then :
4648 enableval=$enable_largefile;
4651 if test "$enable_largefile" != no; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4654 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4655 if ${ac_cv_sys_largefile_CC+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 ac_cv_sys_largefile_CC=no
4659 if test "$GCC" != yes; then
4662 # IRIX 6.2 and later do not support large files by default,
4663 # so use the C compiler's -n32 option if that helps.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <sys/types.h>
4667 /* Check that off_t can represent 2**63 - 1 correctly.
4668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4669 since some C++ compilers masquerading as C compilers
4670 incorrectly reject 9223372036854775807. */
4671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4673 && LARGE_OFF_T % 2147483647 == 1)
4683 if ac_fn_c_try_compile "$LINENO"; then :
4686 rm -f core conftest.err conftest.$ac_objext
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_cv_sys_largefile_CC=' -n32'; break
4691 rm -f core conftest.err conftest.$ac_objext
4695 rm -f conftest.$ac_ext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4699 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4700 if test "$ac_cv_sys_largefile_CC" != no; then
4701 CC=$CC$ac_cv_sys_largefile_CC
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4705 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4706 if ${ac_cv_sys_file_offset_bits+:} false; then :
4707 $as_echo_n "(cached) " >&6
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <sys/types.h>
4713 /* Check that off_t can represent 2**63 - 1 correctly.
4714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4715 since some C++ compilers masquerading as C compilers
4716 incorrectly reject 9223372036854775807. */
4717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4719 && LARGE_OFF_T % 2147483647 == 1)
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_sys_file_offset_bits=no; break
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #define _FILE_OFFSET_BITS 64
4736 #include <sys/types.h>
4737 /* Check that off_t can represent 2**63 - 1 correctly.
4738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4739 since some C++ compilers masquerading as C compilers
4740 incorrectly reject 9223372036854775807. */
4741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4743 && LARGE_OFF_T % 2147483647 == 1)
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_sys_file_offset_bits=64; break
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_cv_sys_file_offset_bits=unknown
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4762 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4763 case $ac_cv_sys_file_offset_bits in #(
4766 cat >>confdefs.h <<_ACEOF
4767 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4772 if test $ac_cv_sys_file_offset_bits = unknown; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4774 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4775 if ${ac_cv_sys_large_files+:} false; then :
4776 $as_echo_n "(cached) " >&6
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #include <sys/types.h>
4782 /* Check that off_t can represent 2**63 - 1 correctly.
4783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4784 since some C++ compilers masquerading as C compilers
4785 incorrectly reject 9223372036854775807. */
4786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4788 && LARGE_OFF_T % 2147483647 == 1)
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_sys_large_files=no; break
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #define _LARGE_FILES 1
4805 #include <sys/types.h>
4806 /* Check that off_t can represent 2**63 - 1 correctly.
4807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808 since some C++ compilers masquerading as C compilers
4809 incorrectly reject 9223372036854775807. */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812 && LARGE_OFF_T % 2147483647 == 1)
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823 ac_cv_sys_large_files=1; break
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cv_sys_large_files=unknown
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4831 $as_echo "$ac_cv_sys_large_files" >&6; }
4832 case $ac_cv_sys_large_files in #(
4835 cat >>confdefs.h <<_ACEOF
4836 #define _LARGE_FILES $ac_cv_sys_large_files
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4848 $as_echo_n "checking whether ln -s works... " >&6; }
4850 if test "$LN_S" = "ln -s"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4852 $as_echo "yes" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4855 $as_echo "no, using $LN_S" >&6; }
4858 # Make sure we can run config.sub.
4859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4860 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4863 $as_echo_n "checking build system type... " >&6; }
4864 if ${ac_cv_build+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 ac_build_alias=$build_alias
4868 test "x$ac_build_alias" = x &&
4869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4870 test "x$ac_build_alias" = x &&
4871 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4872 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4877 $as_echo "$ac_cv_build" >&6; }
4878 case $ac_cv_build in
4880 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4883 ac_save_IFS=$IFS; IFS='-'
4889 # Remember, the first character of IFS is used to create $*,
4890 # except with old shells:
4893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4897 $as_echo_n "checking host system type... " >&6; }
4898 if ${ac_cv_host+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 if test "x$host_alias" = x; then
4902 ac_cv_host=$ac_cv_build
4904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4910 $as_echo "$ac_cv_host" >&6; }
4913 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4916 ac_save_IFS=$IFS; IFS='-'
4922 # Remember, the first character of IFS is used to create $*,
4923 # except with old shells:
4926 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4929 enable_win32_dll=yes
4932 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4933 if test -n "$ac_tool_prefix"; then
4934 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4935 set dummy ${ac_tool_prefix}as; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_AS+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 if test -n "$AS"; then
4942 ac_cv_prog_AS="$AS" # Let the user override the test.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_AS="${ac_tool_prefix}as"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 if test -n "$AS"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4964 $as_echo "$AS" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4972 if test -z "$ac_cv_prog_AS"; then
4974 # Extract the first word of "as", so it can be a program name with args.
4975 set dummy as; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4979 $as_echo_n "(cached) " >&6
4981 if test -n "$ac_ct_AS"; then
4982 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_ac_ct_AS="as"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5002 if test -n "$ac_ct_AS"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5004 $as_echo "$ac_ct_AS" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5010 if test "x$ac_ct_AS" = x; then
5013 case $cross_compiling:$ac_tool_warned in
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5017 ac_tool_warned=yes ;;
5025 if test -n "$ac_tool_prefix"; then
5026 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5027 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_DLLTOOL+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 if test -n "$DLLTOOL"; then
5034 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 DLLTOOL=$ac_cv_prog_DLLTOOL
5054 if test -n "$DLLTOOL"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5056 $as_echo "$DLLTOOL" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5064 if test -z "$ac_cv_prog_DLLTOOL"; then
5065 ac_ct_DLLTOOL=$DLLTOOL
5066 # Extract the first word of "dlltool", so it can be a program name with args.
5067 set dummy dlltool; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 if test -n "$ac_ct_DLLTOOL"; then
5074 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5094 if test -n "$ac_ct_DLLTOOL"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5096 $as_echo "$ac_ct_DLLTOOL" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5102 if test "x$ac_ct_DLLTOOL" = x; then
5105 case $cross_compiling:$ac_tool_warned in
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5111 DLLTOOL=$ac_ct_DLLTOOL
5114 DLLTOOL="$ac_cv_prog_DLLTOOL"
5117 if test -n "$ac_tool_prefix"; then
5118 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5119 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_prog_OBJDUMP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5125 if test -n "$OBJDUMP"; then
5126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 OBJDUMP=$ac_cv_prog_OBJDUMP
5146 if test -n "$OBJDUMP"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5148 $as_echo "$OBJDUMP" >&6; }
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5156 if test -z "$ac_cv_prog_OBJDUMP"; then
5157 ac_ct_OBJDUMP=$OBJDUMP
5158 # Extract the first word of "objdump", so it can be a program name with args.
5159 set dummy objdump; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5163 $as_echo_n "(cached) " >&6
5165 if test -n "$ac_ct_OBJDUMP"; then
5166 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5186 if test -n "$ac_ct_OBJDUMP"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5188 $as_echo "$ac_ct_OBJDUMP" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5194 if test "x$ac_ct_OBJDUMP" = x; then
5197 case $cross_compiling:$ac_tool_warned in
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5203 OBJDUMP=$ac_ct_OBJDUMP
5206 OBJDUMP="$ac_cv_prog_OBJDUMP"
5212 test -z "$AS" && AS=as
5218 test -z "$DLLTOOL" && DLLTOOL=dlltool
5224 test -z "$OBJDUMP" && OBJDUMP=objdump
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5235 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5240 macro_version='2.4.2'
5241 macro_revision='1.3337'
5255 ltmain="$ac_aux_dir/ltmain.sh"
5257 # Backslashify metacharacters that are still active within
5258 # double-quoted strings.
5259 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5261 # Same as above, but do not quote variable references.
5262 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5264 # Sed substitution to delay expansion of an escaped shell variable in a
5265 # double_quote_subst'ed string.
5266 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5268 # Sed substitution to delay expansion of an escaped single quote.
5269 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5271 # Sed substitution to avoid accidental globbing in evaled expressions
5272 no_glob_subst='s/\*/\\\*/g'
5274 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5275 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5276 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5279 $as_echo_n "checking how to print strings... " >&6; }
5280 # Test print first, because it will be a builtin if present.
5281 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5282 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5284 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5287 # Use this function as a fallback that always works.
5288 func_fallback_echo ()
5290 eval 'cat <<_LTECHO_EOF
5294 ECHO='func_fallback_echo'
5297 # func_echo_all arg...
5298 # Invoke $ECHO with all args, space-separated.
5305 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5306 $as_echo "printf" >&6; } ;;
5307 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5308 $as_echo "print -r" >&6; } ;;
5309 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5310 $as_echo "cat" >&6; } ;;
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5327 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5328 if ${ac_cv_path_SED+:} false; then :
5329 $as_echo_n "(cached) " >&6
5331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5332 for ac_i in 1 2 3 4 5 6 7; do
5333 ac_script="$ac_script$as_nl$ac_script"
5335 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5336 { ac_script=; unset ac_script;}
5337 if test -z "$SED"; then
5338 ac_path_SED_found=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_prog in sed gsed; do
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5348 as_fn_executable_p "$ac_path_SED" || continue
5349 # Check for GNU ac_path_SED and select it if it is found.
5350 # Check for GNU $ac_path_SED
5351 case `"$ac_path_SED" --version 2>&1` in
5353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5356 $as_echo_n 0123456789 >"conftest.in"
5359 cat "conftest.in" "conftest.in" >"conftest.tmp"
5360 mv "conftest.tmp" "conftest.in"
5361 cp "conftest.in" "conftest.nl"
5362 $as_echo '' >> "conftest.nl"
5363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5365 as_fn_arith $ac_count + 1 && ac_count=$as_val
5366 if test $ac_count -gt ${ac_path_SED_max-0}; then
5367 # Best one so far, save it but keep looking for a better one
5368 ac_cv_path_SED="$ac_path_SED"
5369 ac_path_SED_max=$ac_count
5371 # 10*(2^10) chars as input seems more than enough
5372 test $ac_count -gt 10 && break
5374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5377 $ac_path_SED_found && break 3
5382 if test -z "$ac_cv_path_SED"; then
5383 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5391 $as_echo "$ac_cv_path_SED" >&6; }
5392 SED="$ac_cv_path_SED"
5395 test -z "$SED" && SED=sed
5396 Xsed="$SED -e 1s/^X//"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5409 $as_echo_n "checking for fgrep... " >&6; }
5410 if ${ac_cv_path_FGREP+:} false; then :
5411 $as_echo_n "(cached) " >&6
5413 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5414 then ac_cv_path_FGREP="$GREP -F"
5416 if test -z "$FGREP"; then
5417 ac_path_FGREP_found=false
5418 # Loop through the user's path and test for each of PROGNAME-LIST
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5423 test -z "$as_dir" && as_dir=.
5424 for ac_prog in fgrep; do
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5427 as_fn_executable_p "$ac_path_FGREP" || continue
5428 # Check for GNU ac_path_FGREP and select it if it is found.
5429 # Check for GNU $ac_path_FGREP
5430 case `"$ac_path_FGREP" --version 2>&1` in
5432 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5435 $as_echo_n 0123456789 >"conftest.in"
5438 cat "conftest.in" "conftest.in" >"conftest.tmp"
5439 mv "conftest.tmp" "conftest.in"
5440 cp "conftest.in" "conftest.nl"
5441 $as_echo 'FGREP' >> "conftest.nl"
5442 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5444 as_fn_arith $ac_count + 1 && ac_count=$as_val
5445 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5446 # Best one so far, save it but keep looking for a better one
5447 ac_cv_path_FGREP="$ac_path_FGREP"
5448 ac_path_FGREP_max=$ac_count
5450 # 10*(2^10) chars as input seems more than enough
5451 test $ac_count -gt 10 && break
5453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5456 $ac_path_FGREP_found && break 3
5461 if test -z "$ac_cv_path_FGREP"; then
5462 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5465 ac_cv_path_FGREP=$FGREP
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5471 $as_echo "$ac_cv_path_FGREP" >&6; }
5472 FGREP="$ac_cv_path_FGREP"
5475 test -z "$GREP" && GREP=grep
5495 # Check whether --with-gnu-ld was given.
5496 if test "${with_gnu_ld+set}" = set; then :
5497 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5503 if test "$GCC" = yes; then
5504 # Check if gcc -print-prog-name=ld gives a path.
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5506 $as_echo_n "checking for ld used by $CC... " >&6; }
5509 # gcc leaves a trailing carriage return which upsets mingw
5510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5515 # Accept absolute paths.
5517 re_direlt='/[^/][^/]*/\.\./'
5518 # Canonicalize the pathname of ld
5519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5523 test -z "$LD" && LD="$ac_prog"
5526 # If it fails, then pretend we aren't using GCC.
5530 # If it is relative, then search for the first ld in PATH.
5534 elif test "$with_gnu_ld" = yes; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5536 $as_echo_n "checking for GNU ld... " >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5539 $as_echo_n "checking for non-GNU ld... " >&6; }
5541 if ${lt_cv_path_LD+:} false; then :
5542 $as_echo_n "(cached) " >&6
5544 if test -z "$LD"; then
5545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5546 for ac_dir in $PATH; do
5548 test -z "$ac_dir" && ac_dir=.
5549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5550 lt_cv_path_LD="$ac_dir/$ac_prog"
5551 # Check to see if the program is GNU ld. I'd rather use --version,
5552 # but apparently some variants of GNU ld only accept -v.
5553 # Break only if it was the GNU/non-GNU ld that we prefer.
5554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5555 *GNU* | *'with BFD'*)
5556 test "$with_gnu_ld" != no && break
5559 test "$with_gnu_ld" != yes && break
5566 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5571 if test -n "$LD"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5573 $as_echo "$LD" >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5581 if ${lt_cv_prog_gnu_ld+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5585 case `$LD -v 2>&1 </dev/null` in
5586 *GNU* | *'with BFD'*)
5587 lt_cv_prog_gnu_ld=yes
5590 lt_cv_prog_gnu_ld=no
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5596 with_gnu_ld=$lt_cv_prog_gnu_ld
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5607 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5608 if ${lt_cv_path_NM+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$NM"; then
5612 # Let the user override the test.
5615 lt_nm_to_check="${ac_tool_prefix}nm"
5616 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5617 lt_nm_to_check="$lt_nm_to_check nm"
5619 for lt_tmp_nm in $lt_nm_to_check; do
5620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5621 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5623 test -z "$ac_dir" && ac_dir=.
5624 tmp_nm="$ac_dir/$lt_tmp_nm"
5625 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5626 # Check to see if the nm accepts a BSD-compat flag.
5627 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5628 # nm: unknown option "B" ignored
5629 # Tru64's nm complains that /dev/null is an invalid object file
5630 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5631 */dev/null* | *'Invalid file or object type'*)
5632 lt_cv_path_NM="$tmp_nm -B"
5636 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5638 lt_cv_path_NM="$tmp_nm -p"
5642 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5643 continue # so that we can try to find one that supports BSD flags
5652 : ${lt_cv_path_NM=no}
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5656 $as_echo "$lt_cv_path_NM" >&6; }
5657 if test "$lt_cv_path_NM" != "no"; then
5660 # Didn't find any BSD compatible name lister, look for dumpbin.
5661 if test -n "$DUMPBIN"; then :
5662 # Let the user override the test.
5664 if test -n "$ac_tool_prefix"; then
5665 for ac_prog in dumpbin "link -dump"
5667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_DUMPBIN+:} false; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$DUMPBIN"; then
5675 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 DUMPBIN=$ac_cv_prog_DUMPBIN
5695 if test -n "$DUMPBIN"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5697 $as_echo "$DUMPBIN" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 test -n "$DUMPBIN" && break
5707 if test -z "$DUMPBIN"; then
5708 ac_ct_DUMPBIN=$DUMPBIN
5709 for ac_prog in dumpbin "link -dump"
5711 # Extract the first word of "$ac_prog", so it can be a program name with args.
5712 set dummy $ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5716 $as_echo_n "(cached) " >&6
5718 if test -n "$ac_ct_DUMPBIN"; then
5719 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5739 if test -n "$ac_ct_DUMPBIN"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5741 $as_echo "$ac_ct_DUMPBIN" >&6; }
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5748 test -n "$ac_ct_DUMPBIN" && break
5751 if test "x$ac_ct_DUMPBIN" = x; then
5754 case $cross_compiling:$ac_tool_warned in
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5760 DUMPBIN=$ac_ct_DUMPBIN
5764 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5766 DUMPBIN="$DUMPBIN -symbols"
5774 if test "$DUMPBIN" != ":"; then
5778 test -z "$NM" && NM=nm
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5786 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5787 if ${lt_cv_nm_interface+:} false; then :
5788 $as_echo_n "(cached) " >&6
5790 lt_cv_nm_interface="BSD nm"
5791 echo "int some_variable = 0;" > conftest.$ac_ext
5792 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5793 (eval "$ac_compile" 2>conftest.err)
5794 cat conftest.err >&5
5795 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5796 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5797 cat conftest.err >&5
5798 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5799 cat conftest.out >&5
5800 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5801 lt_cv_nm_interface="MS dumpbin"
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5806 $as_echo "$lt_cv_nm_interface" >&6; }
5808 # find the maximum length of command line arguments
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5810 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5811 if ${lt_cv_sys_max_cmd_len+:} false; then :
5812 $as_echo_n "(cached) " >&6
5819 # On DJGPP, this test can blow up pretty badly due to problems in libc
5820 # (any single argument exceeding 2000 bytes causes a buffer overrun
5821 # during glob expansion). Even if it were fixed, the result of this
5822 # check would be larger than it should be.
5823 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5827 # Under GNU Hurd, this test is not required because there is
5828 # no limit to the length of command line arguments.
5829 # Libtool will interpret -1 as no limit whatsoever
5830 lt_cv_sys_max_cmd_len=-1;
5833 cygwin* | mingw* | cegcc*)
5834 # On Win9x/ME, this test blows up -- it succeeds, but takes
5835 # about 5 minutes as the teststring grows exponentially.
5836 # Worse, since 9x/ME are not pre-emptively multitasking,
5837 # you end up with a "frozen" computer, even though with patience
5838 # the test eventually succeeds (with a max line length of 256k).
5839 # Instead, let's just punt: use the minimum linelength reported by
5840 # all of the supported platforms: 8192 (on NT/2K/XP).
5841 lt_cv_sys_max_cmd_len=8192;
5845 # On MiNT this can take a long time and run out of memory.
5846 lt_cv_sys_max_cmd_len=8192;
5850 # On AmigaOS with pdksh, this test takes hours, literally.
5851 # So we just punt and use a minimum line length of 8192.
5852 lt_cv_sys_max_cmd_len=8192;
5855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5856 # This has been around since 386BSD, at least. Likely further.
5857 if test -x /sbin/sysctl; then
5858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5859 elif test -x /usr/sbin/sysctl; then
5860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5864 # And add a safety zone
5865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5870 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5871 lt_cv_sys_max_cmd_len=196608
5875 # The test takes a long time on OS/2.
5876 lt_cv_sys_max_cmd_len=8192
5880 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5881 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5882 # nice to cause kernel panics so lets avoid the loop below.
5883 # First set a reasonable default.
5884 lt_cv_sys_max_cmd_len=16384
5886 if test -x /sbin/sysconfig; then
5887 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5888 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5893 lt_cv_sys_max_cmd_len=102400
5895 sysv5* | sco5v6* | sysv4.2uw2*)
5896 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5897 if test -n "$kargmax"; then
5898 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5900 lt_cv_sys_max_cmd_len=32768
5904 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5905 if test -n "$lt_cv_sys_max_cmd_len"; then
5906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5909 # Make teststring a little bigger before we do anything with it.
5910 # a 1K string should be a reasonable start.
5911 for i in 1 2 3 4 5 6 7 8 ; do
5912 teststring=$teststring$teststring
5914 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5915 # If test is not a shell built-in, we'll probably end up computing a
5916 # maximum length that is only half of the actual maximum length, but
5918 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5919 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5920 test $i != 17 # 1/2 MB should be enough
5923 teststring=$teststring$teststring
5925 # Only check the string length outside the loop.
5926 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5928 # Add a significant safety factor because C++ compilers can tack on
5929 # massive amounts of additional arguments before passing them to the
5930 # linker. It appears as though 1/2 is a usable value.
5931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5938 if test -n $lt_cv_sys_max_cmd_len ; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5940 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5943 $as_echo "none" >&6; }
5945 max_cmd_len=$lt_cv_sys_max_cmd_len
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5957 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5958 # Try some XSI features
5961 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5963 && eval 'test $(( 1 + 1 )) -eq 2 \
5964 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5967 $as_echo "$xsi_shell" >&6; }
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5971 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5973 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5975 && lt_shell_append=yes
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5977 $as_echo "$lt_shell_append" >&6; }
5980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5990 # test EBCDIC or ASCII
5991 case `echo X|tr X '\101'` in
5992 A) # ASCII based system
5993 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5994 lt_SP2NL='tr \040 \012'
5995 lt_NL2SP='tr \015\012 \040\040'
5997 *) # EBCDIC based system
5998 lt_SP2NL='tr \100 \n'
5999 lt_NL2SP='tr \r\n \100\100'
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6012 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6013 if ${lt_cv_to_host_file_cmd+:} false; then :
6014 $as_echo_n "(cached) " >&6
6019 *-*-mingw* ) # actually msys
6020 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6023 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6025 * ) # otherwise, assume *nix
6026 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6032 *-*-mingw* ) # actually msys
6033 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6036 lt_cv_to_host_file_cmd=func_convert_file_noop
6038 * ) # otherwise, assume *nix
6039 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6043 * ) # unhandled hosts (and "normal" native builds)
6044 lt_cv_to_host_file_cmd=func_convert_file_noop
6050 to_host_file_cmd=$lt_cv_to_host_file_cmd
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6052 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6059 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6060 if ${lt_cv_to_tool_file_cmd+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 #assume ordinary cross tools, or native build.
6064 lt_cv_to_tool_file_cmd=func_convert_file_noop
6068 *-*-mingw* ) # actually msys
6069 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6079 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6086 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6087 if ${lt_cv_ld_reload_flag+:} false; then :
6088 $as_echo_n "(cached) " >&6
6090 lt_cv_ld_reload_flag='-r'
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6093 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6094 reload_flag=$lt_cv_ld_reload_flag
6095 case $reload_flag in
6097 *) reload_flag=" $reload_flag" ;;
6099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6101 cygwin* | mingw* | pw32* | cegcc*)
6102 if test "$GCC" != yes; then
6107 if test "$GCC" = yes; then
6108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_OBJDUMP+:} false; then :
6129 $as_echo_n "(cached) " >&6
6131 if test -n "$OBJDUMP"; then
6132 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 OBJDUMP=$ac_cv_prog_OBJDUMP
6152 if test -n "$OBJDUMP"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6154 $as_echo "$OBJDUMP" >&6; }
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6162 if test -z "$ac_cv_prog_OBJDUMP"; then
6163 ac_ct_OBJDUMP=$OBJDUMP
6164 # Extract the first word of "objdump", so it can be a program name with args.
6165 set dummy objdump; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 if test -n "$ac_ct_OBJDUMP"; then
6172 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6192 if test -n "$ac_ct_OBJDUMP"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6194 $as_echo "$ac_ct_OBJDUMP" >&6; }
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6200 if test "x$ac_ct_OBJDUMP" = x; then
6203 case $cross_compiling:$ac_tool_warned in
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6209 OBJDUMP=$ac_ct_OBJDUMP
6212 OBJDUMP="$ac_cv_prog_OBJDUMP"
6215 test -z "$OBJDUMP" && OBJDUMP=objdump
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6223 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6224 if ${lt_cv_deplibs_check_method+:} false; then :
6225 $as_echo_n "(cached) " >&6
6227 lt_cv_file_magic_cmd='$MAGIC_CMD'
6228 lt_cv_file_magic_test_file=
6229 lt_cv_deplibs_check_method='unknown'
6230 # Need to set the preceding variable on all platforms that support
6231 # interlibrary dependencies.
6232 # 'none' -- dependencies not supported.
6233 # `unknown' -- same as none, but documents that we really don't know.
6234 # 'pass_all' -- all dependencies passed with no checks.
6235 # 'test_compile' -- check by making test program.
6236 # 'file_magic [[regex]]' -- check by looking for files in library path
6237 # which responds to the $file_magic_cmd with a given extended regex.
6238 # If you have `file' or equivalent on your system and you're not sure
6239 # whether `pass_all' will *always* work, you probably want this one.
6243 lt_cv_deplibs_check_method=pass_all
6247 lt_cv_deplibs_check_method=pass_all
6251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6252 lt_cv_file_magic_cmd='/usr/bin/file -L'
6253 lt_cv_file_magic_test_file=/shlib/libc.so
6257 # func_win32_libid is a shell function defined in ltmain.sh
6258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6259 lt_cv_file_magic_cmd='func_win32_libid'
6263 # Base MSYS/MinGW do not provide the 'file' command needed by
6264 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6265 # unless we find 'file', for example because we are cross-compiling.
6266 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6267 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6269 lt_cv_file_magic_cmd='func_win32_libid'
6271 # Keep this pattern in sync with the one in func_win32_libid.
6272 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6273 lt_cv_file_magic_cmd='$OBJDUMP -f'
6278 # use the weaker test based on 'objdump'. See mingw*.
6279 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6280 lt_cv_file_magic_cmd='$OBJDUMP -f'
6283 darwin* | rhapsody*)
6284 lt_cv_deplibs_check_method=pass_all
6287 freebsd* | dragonfly*)
6288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6291 # Not sure whether the presence of OpenBSD here was a mistake.
6292 # Let's accept both of them until this is cleared up.
6293 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6294 lt_cv_file_magic_cmd=/usr/bin/file
6295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6299 lt_cv_deplibs_check_method=pass_all
6304 lt_cv_deplibs_check_method=pass_all
6308 lt_cv_deplibs_check_method=pass_all
6311 hpux10.20* | hpux11*)
6312 lt_cv_file_magic_cmd=/usr/bin/file
6315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6316 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6319 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]'
6320 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6324 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6330 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6334 irix5* | irix6* | nonstopux*)
6336 *-32|*"-32 ") libmagic=32-bit;;
6337 *-n32|*"-n32 ") libmagic=N32;;
6338 *-64|*"-64 ") libmagic=64-bit;;
6339 *) libmagic=never-match;;
6341 lt_cv_deplibs_check_method=pass_all
6344 # This must be glibc/ELF.
6345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6346 lt_cv_deplibs_check_method=pass_all
6350 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6359 lt_cv_file_magic_cmd=/usr/bin/file
6360 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6364 lt_cv_deplibs_check_method=pass_all
6368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6375 osf3* | osf4* | osf5*)
6376 lt_cv_deplibs_check_method=pass_all
6380 lt_cv_deplibs_check_method=pass_all
6384 lt_cv_deplibs_check_method=pass_all
6387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6388 lt_cv_deplibs_check_method=pass_all
6392 case $host_vendor in
6394 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]'
6395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6398 lt_cv_deplibs_check_method=pass_all
6401 lt_cv_file_magic_cmd='/bin/file'
6402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6405 lt_cv_file_magic_cmd='/bin/file'
6406 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6407 lt_cv_file_magic_test_file=/lib/libc.so
6410 lt_cv_deplibs_check_method=pass_all
6413 lt_cv_deplibs_check_method=pass_all
6419 lt_cv_deplibs_check_method=pass_all
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6429 if test "$build" = "$host"; then
6432 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6435 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6441 file_magic_cmd=$lt_cv_file_magic_cmd
6442 deplibs_check_method=$lt_cv_deplibs_check_method
6443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_DLLTOOL+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 if test -n "$DLLTOOL"; then
6475 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 DLLTOOL=$ac_cv_prog_DLLTOOL
6495 if test -n "$DLLTOOL"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6497 $as_echo "$DLLTOOL" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6505 if test -z "$ac_cv_prog_DLLTOOL"; then
6506 ac_ct_DLLTOOL=$DLLTOOL
6507 # Extract the first word of "dlltool", so it can be a program name with args.
6508 set dummy dlltool; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$ac_ct_DLLTOOL"; then
6515 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6535 if test -n "$ac_ct_DLLTOOL"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6537 $as_echo "$ac_ct_DLLTOOL" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6543 if test "x$ac_ct_DLLTOOL" = x; then
6546 case $cross_compiling:$ac_tool_warned in
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6552 DLLTOOL=$ac_ct_DLLTOOL
6555 DLLTOOL="$ac_cv_prog_DLLTOOL"
6558 test -z "$DLLTOOL" && DLLTOOL=dlltool
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6567 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6568 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 lt_cv_sharedlib_from_linklib_cmd='unknown'
6574 cygwin* | mingw* | pw32* | cegcc*)
6575 # two different shell functions defined in ltmain.sh
6576 # decide which to use based on capabilities of $DLLTOOL
6577 case `$DLLTOOL --help 2>&1` in
6578 *--identify-strict*)
6579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6582 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6587 # fallback: assume linklib IS sharedlib
6588 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6594 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6595 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6596 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6604 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_AR+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 if test -n "$AR"; then
6615 ac_cv_prog_AR="$AR" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 if test -n "$AR"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6637 $as_echo "$AR" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6644 test -n "$AR" && break
6647 if test -z "$AR"; then
6651 # Extract the first word of "$ac_prog", so it can be a program name with args.
6652 set dummy $ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 if test -n "$ac_ct_AR"; then
6659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_ac_ct_AR="$ac_prog"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6679 if test -n "$ac_ct_AR"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6681 $as_echo "$ac_ct_AR" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6688 test -n "$ac_ct_AR" && break
6691 if test "x$ac_ct_AR" = x; then
6694 case $cross_compiling:$ac_tool_warned in
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6718 $as_echo_n "checking for archiver @FILE support... " >&6; }
6719 if ${lt_cv_ar_at_file+:} false; then :
6720 $as_echo_n "(cached) " >&6
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735 echo conftest.$ac_objext > conftest.lst
6736 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6738 (eval $lt_ar_try) 2>&5
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }
6742 if test "$ac_status" -eq 0; then
6743 # Ensure the archiver fails upon bogus file names.
6744 rm -f conftest.$ac_objext libconftest.a
6745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6746 (eval $lt_ar_try) 2>&5
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }
6750 if test "$ac_status" -ne 0; then
6754 rm -f conftest.* libconftest.a
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6761 $as_echo "$lt_cv_ar_at_file" >&6; }
6763 if test "x$lt_cv_ar_at_file" = xno; then
6766 archiver_list_spec=$lt_cv_ar_at_file
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}strip; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if ${ac_cv_prog_STRIP+:} false; then :
6781 $as_echo_n "(cached) " >&6
6783 if test -n "$STRIP"; then
6784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 STRIP=$ac_cv_prog_STRIP
6804 if test -n "$STRIP"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6806 $as_echo "$STRIP" >&6; }
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6814 if test -z "$ac_cv_prog_STRIP"; then
6816 # Extract the first word of "strip", so it can be a program name with args.
6817 set dummy strip; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6821 $as_echo_n "(cached) " >&6
6823 if test -n "$ac_ct_STRIP"; then
6824 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_ac_ct_STRIP="strip"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6844 if test -n "$ac_ct_STRIP"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6846 $as_echo "$ac_ct_STRIP" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6852 if test "x$ac_ct_STRIP" = x; then
6855 case $cross_compiling:$ac_tool_warned in
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859 ac_tool_warned=yes ;;
6864 STRIP="$ac_cv_prog_STRIP"
6867 test -z "$STRIP" && STRIP=:
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_RANLIB+:} false; then :
6880 $as_echo_n "(cached) " >&6
6882 if test -n "$RANLIB"; then
6883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 RANLIB=$ac_cv_prog_RANLIB
6903 if test -n "$RANLIB"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6905 $as_echo "$RANLIB" >&6; }
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6913 if test -z "$ac_cv_prog_RANLIB"; then
6914 ac_ct_RANLIB=$RANLIB
6915 # Extract the first word of "ranlib", so it can be a program name with args.
6916 set dummy ranlib; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 if test -n "$ac_ct_RANLIB"; then
6923 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932 ac_cv_prog_ac_ct_RANLIB="ranlib"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6943 if test -n "$ac_ct_RANLIB"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6945 $as_echo "$ac_ct_RANLIB" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$ac_ct_RANLIB" = x; then
6954 case $cross_compiling:$ac_tool_warned in
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958 ac_tool_warned=yes ;;
6960 RANLIB=$ac_ct_RANLIB
6963 RANLIB="$ac_cv_prog_RANLIB"
6966 test -z "$RANLIB" && RANLIB=:
6973 # Determine commands to create old-style static archives.
6974 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6975 old_postinstall_cmds='chmod 644 $oldlib'
6976 old_postuninstall_cmds=
6978 if test -n "$RANLIB"; then
6981 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6987 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6992 lock_old_archive_extraction=yes ;;
6994 lock_old_archive_extraction=no ;;
7035 # If no C compiler was specified, use CC.
7038 # If no C compiler flags were specified, use CFLAGS.
7039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7041 # Allow CC to be a program name with arguments.
7045 # Check for command to grab the raw symbol name followed by C symbol from nm.
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7047 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7048 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7049 $as_echo_n "(cached) " >&6
7052 # These are sane defaults that work on at least a few old systems.
7053 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7055 # Character class describing NM global symbol codes.
7056 symcode='[BCDEGRST]'
7058 # Regexp to match symbols that can be accessed directly from C.
7059 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7061 # Define system-specific variables.
7066 cygwin* | mingw* | pw32* | cegcc*)
7067 symcode='[ABCDGISTW]'
7070 if test "$host_cpu" = ia64; then
7071 symcode='[ABCDEGRST]'
7075 symcode='[BCDEGRST]'
7078 symcode='[BCDEGQRST]'
7089 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7097 # If we're using GNU nm, then use its standard symbol codes.
7098 case `$NM -V 2>&1` in
7099 *GNU* | *'with BFD'*)
7100 symcode='[ABCDGIRSTW]' ;;
7103 # Transform an extracted symbol line into a proper C declaration.
7104 # Some systems (esp. on ia64) link data and code symbols differently,
7105 # so use this general approach.
7106 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7108 # Transform an extracted symbol line into symbol name and symbol address
7109 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7110 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'"
7112 # Handle CRLF in mingw tool chain
7116 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7120 # Try without a prefix underscore, then with it.
7121 for ac_symprfx in "" "_"; do
7123 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7124 symxfrm="\\1 $ac_symprfx\\2 \\2"
7126 # Write the raw and C identifiers.
7127 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7128 # Fake it for dumpbin and say T for any non-static function
7129 # and D for any global variable.
7130 # Also find C++ and __fastcall symbols from MSVC++,
7131 # which start with @ or ?.
7132 lt_cv_sys_global_symbol_pipe="$AWK '"\
7133 " {last_section=section; section=\$ 3};"\
7134 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7135 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7136 " \$ 0!~/External *\|/{next};"\
7137 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7138 " {if(hide[section]) next};"\
7139 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7140 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7141 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7142 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7143 " ' prfx=^$ac_symprfx"
7145 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7147 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7149 # Check to see that the pipe works correctly.
7153 cat > conftest.$ac_ext <<_LT_EOF
7158 void nm_test_func(void);
7159 void nm_test_func(void){}
7163 int main(){nm_test_var='a';nm_test_func();return(0);}
7166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167 (eval $ac_compile) 2>&5
7169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170 test $ac_status = 0; }; then
7171 # Now try to grab the symbols.
7173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7174 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177 test $ac_status = 0; } && test -s "$nlist"; then
7178 # Try sorting and uniquifying the output.
7179 if sort "$nlist" | uniq > "$nlist"T; then
7180 mv -f "$nlist"T "$nlist"
7185 # Make sure that we snagged all the symbols we need.
7186 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7187 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7188 cat <<_LT_EOF > conftest.$ac_ext
7189 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7190 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7191 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7192 relocations are performed -- see ld's documentation on pseudo-relocs. */
7193 # define LT_DLSYM_CONST
7194 #elif defined(__osf__)
7195 /* This system does not cope well with relocations in const data. */
7196 # define LT_DLSYM_CONST
7198 # define LT_DLSYM_CONST const
7206 # Now generate the symbol file.
7207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7209 cat <<_LT_EOF >> conftest.$ac_ext
7211 /* The mapping between symbol names and symbols. */
7212 LT_DLSYM_CONST struct {
7216 lt__PROGRAM__LTX_preloaded_symbols[] =
7218 { "@PROGRAM@", (void *) 0 },
7220 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7221 cat <<\_LT_EOF >> conftest.$ac_ext
7225 /* This works around a problem in FreeBSD linker */
7226 #ifdef FREEBSD_WORKAROUND
7227 static const void *lt_preloaded_setup() {
7228 return lt__PROGRAM__LTX_preloaded_symbols;
7236 # Now try linking the two files.
7237 mv conftest.$ac_objext conftstm.$ac_objext
7238 lt_globsym_save_LIBS=$LIBS
7239 lt_globsym_save_CFLAGS=$CFLAGS
7240 LIBS="conftstm.$ac_objext"
7241 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7243 (eval $ac_link) 2>&5
7245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7246 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7249 LIBS=$lt_globsym_save_LIBS
7250 CFLAGS=$lt_globsym_save_CFLAGS
7252 echo "cannot find nm_test_func in $nlist" >&5
7255 echo "cannot find nm_test_var in $nlist" >&5
7258 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7261 echo "$progname: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7264 rm -rf conftest* conftst*
7266 # Do not use the global_symbol_pipe unless it works.
7267 if test "$pipe_works" = yes; then
7270 lt_cv_sys_global_symbol_pipe=
7276 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7277 lt_cv_sys_global_symbol_to_cdecl=
7279 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7281 $as_echo "failed" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7284 $as_echo "ok" >&6; }
7287 # Response file support.
7288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7289 nm_file_list_spec='@'
7290 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7291 nm_file_list_spec='@'
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7321 $as_echo_n "checking for sysroot... " >&6; }
7323 # Check whether --with-sysroot was given.
7324 if test "${with_sysroot+set}" = set; then :
7325 withval=$with_sysroot;
7332 case ${with_sysroot} in #(
7334 if test "$GCC" = yes; then
7335 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7339 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7345 $as_echo "${with_sysroot}" >&6; }
7346 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7351 $as_echo "${lt_sysroot:-no}" >&6; }
7357 # Check whether --enable-libtool-lock was given.
7358 if test "${enable_libtool_lock+set}" = set; then :
7359 enableval=$enable_libtool_lock;
7362 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7364 # Some flags need to be propagated to the compiler or linker for good
7368 # Find out which ABI we are using.
7369 echo 'int i;' > conftest.$ac_ext
7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371 (eval $ac_compile) 2>&5
7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374 test $ac_status = 0; }; then
7375 case `/usr/bin/file conftest.$ac_objext` in
7387 # Find out which ABI we are using.
7388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390 (eval $ac_compile) 2>&5
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
7394 if test "$lt_cv_prog_gnu_ld" = yes; then
7395 case `/usr/bin/file conftest.$ac_objext` in
7397 LD="${LD-ld} -melf32bsmip"
7400 LD="${LD-ld} -melf32bmipn32"
7403 LD="${LD-ld} -melf64bmip"
7407 case `/usr/bin/file conftest.$ac_objext` in
7423 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7424 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7425 # Find out which ABI we are using.
7426 echo 'int i;' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 case `/usr/bin/file conftest.o` in
7435 x86_64-*kfreebsd*-gnu)
7436 LD="${LD-ld} -m elf_i386_fbsd"
7439 LD="${LD-ld} -m elf_i386"
7441 ppc64-*linux*|powerpc64-*linux*)
7442 LD="${LD-ld} -m elf32ppclinux"
7445 LD="${LD-ld} -m elf_s390"
7448 LD="${LD-ld} -m elf32_sparc"
7454 x86_64-*kfreebsd*-gnu)
7455 LD="${LD-ld} -m elf_x86_64_fbsd"
7458 LD="${LD-ld} -m elf_x86_64"
7460 ppc*-*linux*|powerpc*-*linux*)
7461 LD="${LD-ld} -m elf64ppc"
7463 s390*-*linux*|s390*-*tpf*)
7464 LD="${LD-ld} -m elf64_s390"
7467 LD="${LD-ld} -m elf64_sparc"
7477 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7478 SAVE_CFLAGS="$CFLAGS"
7479 CFLAGS="$CFLAGS -belf"
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7481 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7482 if ${lt_cv_cc_needs_belf+:} false; then :
7483 $as_echo_n "(cached) " >&6
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7502 if ac_fn_c_try_link "$LINENO"; then :
7503 lt_cv_cc_needs_belf=yes
7505 lt_cv_cc_needs_belf=no
7507 rm -f core conftest.err conftest.$ac_objext \
7508 conftest$ac_exeext conftest.$ac_ext
7510 ac_cpp='$CPP $CPPFLAGS'
7511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7517 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7518 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7519 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7520 CFLAGS="$SAVE_CFLAGS"
7524 # Find out which ABI we are using.
7525 echo 'int i;' > conftest.$ac_ext
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 case `/usr/bin/file conftest.o` in
7533 case $lt_cv_prog_gnu_ld in
7537 LD="${LD-ld} -m elf_x86_64"
7540 LD="${LD-ld} -m elf64_sparc"
7543 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7544 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7549 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7561 need_locks="$enable_libtool_lock"
7563 if test -n "$ac_tool_prefix"; then
7564 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7565 set dummy ${ac_tool_prefix}mt; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7569 $as_echo_n "(cached) " >&6
7571 if test -n "$MANIFEST_TOOL"; then
7572 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7592 if test -n "$MANIFEST_TOOL"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7594 $as_echo "$MANIFEST_TOOL" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7602 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7603 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7604 # Extract the first word of "mt", so it can be a program name with args.
7605 set dummy mt; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$ac_ct_MANIFEST_TOOL"; then
7612 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7632 if test -n "$ac_ct_MANIFEST_TOOL"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7634 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7640 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7643 case $cross_compiling:$ac_tool_warned in
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned=yes ;;
7649 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7652 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7655 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7657 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7658 if ${lt_cv_path_mainfest_tool+:} false; then :
7659 $as_echo_n "(cached) " >&6
7661 lt_cv_path_mainfest_tool=no
7662 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7663 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7664 cat conftest.err >&5
7665 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7666 lt_cv_path_mainfest_tool=yes
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7671 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7672 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7682 rhapsody* | darwin*)
7683 if test -n "$ac_tool_prefix"; then
7684 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7685 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7689 $as_echo_n "(cached) " >&6
7691 if test -n "$DSYMUTIL"; then
7692 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7712 if test -n "$DSYMUTIL"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7714 $as_echo "$DSYMUTIL" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7722 if test -z "$ac_cv_prog_DSYMUTIL"; then
7723 ac_ct_DSYMUTIL=$DSYMUTIL
7724 # Extract the first word of "dsymutil", so it can be a program name with args.
7725 set dummy dsymutil; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7729 $as_echo_n "(cached) " >&6
7731 if test -n "$ac_ct_DSYMUTIL"; then
7732 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7752 if test -n "$ac_ct_DSYMUTIL"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7754 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7760 if test "x$ac_ct_DSYMUTIL" = x; then
7763 case $cross_compiling:$ac_tool_warned in
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767 ac_tool_warned=yes ;;
7769 DSYMUTIL=$ac_ct_DSYMUTIL
7772 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7775 if test -n "$ac_tool_prefix"; then
7776 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7777 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_NMEDIT+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 if test -n "$NMEDIT"; then
7784 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 NMEDIT=$ac_cv_prog_NMEDIT
7804 if test -n "$NMEDIT"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7806 $as_echo "$NMEDIT" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7814 if test -z "$ac_cv_prog_NMEDIT"; then
7815 ac_ct_NMEDIT=$NMEDIT
7816 # Extract the first word of "nmedit", so it can be a program name with args.
7817 set dummy nmedit; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 if test -n "$ac_ct_NMEDIT"; then
7824 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7844 if test -n "$ac_ct_NMEDIT"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7846 $as_echo "$ac_ct_NMEDIT" >&6; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7852 if test "x$ac_ct_NMEDIT" = x; then
7855 case $cross_compiling:$ac_tool_warned in
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7861 NMEDIT=$ac_ct_NMEDIT
7864 NMEDIT="$ac_cv_prog_NMEDIT"
7867 if test -n "$ac_tool_prefix"; then
7868 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7869 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871 $as_echo_n "checking for $ac_word... " >&6; }
7872 if ${ac_cv_prog_LIPO+:} false; then :
7873 $as_echo_n "(cached) " >&6
7875 if test -n "$LIPO"; then
7876 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 LIPO=$ac_cv_prog_LIPO
7896 if test -n "$LIPO"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7898 $as_echo "$LIPO" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7906 if test -z "$ac_cv_prog_LIPO"; then
7908 # Extract the first word of "lipo", so it can be a program name with args.
7909 set dummy lipo; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7913 $as_echo_n "(cached) " >&6
7915 if test -n "$ac_ct_LIPO"; then
7916 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925 ac_cv_prog_ac_ct_LIPO="lipo"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7936 if test -n "$ac_ct_LIPO"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7938 $as_echo "$ac_ct_LIPO" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7944 if test "x$ac_ct_LIPO" = x; then
7947 case $cross_compiling:$ac_tool_warned in
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7951 ac_tool_warned=yes ;;
7956 LIPO="$ac_cv_prog_LIPO"
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}otool; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_OTOOL+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 if test -n "$OTOOL"; then
7968 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 OTOOL=$ac_cv_prog_OTOOL
7988 if test -n "$OTOOL"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7990 $as_echo "$OTOOL" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7998 if test -z "$ac_cv_prog_OTOOL"; then
8000 # Extract the first word of "otool", so it can be a program name with args.
8001 set dummy otool; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8005 $as_echo_n "(cached) " >&6
8007 if test -n "$ac_ct_OTOOL"; then
8008 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017 ac_cv_prog_ac_ct_OTOOL="otool"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8028 if test -n "$ac_ct_OTOOL"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8030 $as_echo "$ac_ct_OTOOL" >&6; }
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8036 if test "x$ac_ct_OTOOL" = x; then
8039 case $cross_compiling:$ac_tool_warned in
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8043 ac_tool_warned=yes ;;
8048 OTOOL="$ac_cv_prog_OTOOL"
8051 if test -n "$ac_tool_prefix"; then
8052 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_prog_OTOOL64+:} false; then :
8057 $as_echo_n "(cached) " >&6
8059 if test -n "$OTOOL64"; then
8060 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 OTOOL64=$ac_cv_prog_OTOOL64
8080 if test -n "$OTOOL64"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8082 $as_echo "$OTOOL64" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8090 if test -z "$ac_cv_prog_OTOOL64"; then
8091 ac_ct_OTOOL64=$OTOOL64
8092 # Extract the first word of "otool64", so it can be a program name with args.
8093 set dummy otool64; ac_word=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8097 $as_echo_n "(cached) " >&6
8099 if test -n "$ac_ct_OTOOL64"; then
8100 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109 ac_cv_prog_ac_ct_OTOOL64="otool64"
8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8120 if test -n "$ac_ct_OTOOL64"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8122 $as_echo "$ac_ct_OTOOL64" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8128 if test "x$ac_ct_OTOOL64" = x; then
8131 case $cross_compiling:$ac_tool_warned in
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135 ac_tool_warned=yes ;;
8137 OTOOL64=$ac_ct_OTOOL64
8140 OTOOL64="$ac_cv_prog_OTOOL64"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8170 $as_echo_n "checking for -single_module linker flag... " >&6; }
8171 if ${lt_cv_apple_cc_single_mod+:} false; then :
8172 $as_echo_n "(cached) " >&6
8174 lt_cv_apple_cc_single_mod=no
8175 if test -z "${LT_MULTI_MODULE}"; then
8176 # By default we will add the -single_module flag. You can override
8177 # by either setting the environment variable LT_MULTI_MODULE
8178 # non-empty at configure time, or by adding -multi_module to the
8180 rm -rf libconftest.dylib*
8181 echo "int foo(void){return 1;}" > conftest.c
8182 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8183 -dynamiclib -Wl,-single_module conftest.c" >&5
8184 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8185 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8187 # If there is a non-empty error log, and "single_module"
8188 # appears in it, assume the flag caused a linker warning
8189 if test -s conftest.err && $GREP single_module conftest.err; then
8190 cat conftest.err >&5
8191 # Otherwise, if the output was created with a 0 exit code from
8192 # the compiler, it worked.
8193 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8194 lt_cv_apple_cc_single_mod=yes
8196 cat conftest.err >&5
8198 rm -rf libconftest.dylib*
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8203 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8206 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8207 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8208 $as_echo_n "(cached) " >&6
8210 lt_cv_ld_exported_symbols_list=no
8211 save_LDFLAGS=$LDFLAGS
8212 echo "_main" > conftest.sym
8213 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8225 if ac_fn_c_try_link "$LINENO"; then :
8226 lt_cv_ld_exported_symbols_list=yes
8228 lt_cv_ld_exported_symbols_list=no
8230 rm -f core conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8232 LDFLAGS="$save_LDFLAGS"
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8236 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8239 $as_echo_n "checking for -force_load linker flag... " >&6; }
8240 if ${lt_cv_ld_force_load+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 lt_cv_ld_force_load=no
8244 cat > conftest.c << _LT_EOF
8245 int forced_loaded() { return 2;}
8247 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8248 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8249 echo "$AR cru libconftest.a conftest.o" >&5
8250 $AR cru libconftest.a conftest.o 2>&5
8251 echo "$RANLIB libconftest.a" >&5
8252 $RANLIB libconftest.a 2>&5
8253 cat > conftest.c << _LT_EOF
8254 int main() { return 0;}
8256 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8257 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8259 if test -s conftest.err && $GREP force_load conftest.err; then
8260 cat conftest.err >&5
8261 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8262 lt_cv_ld_force_load=yes
8264 cat conftest.err >&5
8266 rm -f conftest.err libconftest.a conftest conftest.c
8267 rm -rf conftest.dSYM
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8271 $as_echo "$lt_cv_ld_force_load" >&6; }
8273 rhapsody* | darwin1.[012])
8274 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8277 darwin*) # darwin 5.x on
8278 # if running on 10.5 or later, the deployment target defaults
8279 # to the OS version, if on x86, and 10.4, the deployment
8280 # target defaults to 10.4. Don't you love it?
8281 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8282 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8283 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8287 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8291 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8292 _lt_dar_single_mod='$single_module'
8294 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8295 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8297 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8299 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8300 _lt_dsymutil='~$DSYMUTIL $lib || :'
8307 for ac_header in dlfcn.h
8309 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8311 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE_DLFCN_H 1
8332 # Check whether --enable-shared was given.
8333 if test "${enable_shared+set}" = set; then :
8334 enableval=$enable_shared; p=${PACKAGE-default}
8336 yes) enable_shared=yes ;;
8337 no) enable_shared=no ;;
8340 # Look at the argument we got. We use all the common list separators.
8341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8342 for pkg in $enableval; do
8344 if test "X$pkg" = "X$p"; then
8363 # Check whether --enable-static was given.
8364 if test "${enable_static+set}" = set; then :
8365 enableval=$enable_static; p=${PACKAGE-default}
8367 yes) enable_static=yes ;;
8368 no) enable_static=no ;;
8371 # Look at the argument we got. We use all the common list separators.
8372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8373 for pkg in $enableval; do
8375 if test "X$pkg" = "X$p"; then
8395 # Check whether --with-pic was given.
8396 if test "${with_pic+set}" = set; then :
8397 withval=$with_pic; lt_p=${PACKAGE-default}
8399 yes|no) pic_mode=$withval ;;
8402 # Look at the argument we got. We use all the common list separators.
8403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8404 for lt_pkg in $withval; do
8406 if test "X$lt_pkg" = "X$lt_p"; then
8418 test -z "$pic_mode" && pic_mode=default
8426 # Check whether --enable-fast-install was given.
8427 if test "${enable_fast_install+set}" = set; then :
8428 enableval=$enable_fast_install; p=${PACKAGE-default}
8430 yes) enable_fast_install=yes ;;
8431 no) enable_fast_install=no ;;
8433 enable_fast_install=no
8434 # Look at the argument we got. We use all the common list separators.
8435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8436 for pkg in $enableval; do
8438 if test "X$pkg" = "X$p"; then
8439 enable_fast_install=yes
8446 enable_fast_install=yes
8459 # This can be used to rebuild libtool when needed
8460 LIBTOOL_DEPS="$ltmain"
8462 # Always use our own libtool.
8463 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8494 test -z "$LN_S" && LN_S="ln -s"
8509 if test -n "${ZSH_VERSION+set}" ; then
8510 setopt NO_GLOB_SUBST
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8514 $as_echo_n "checking for objdir... " >&6; }
8515 if ${lt_cv_objdir+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 rm -f .libs 2>/dev/null
8519 mkdir .libs 2>/dev/null
8520 if test -d .libs; then
8523 # MS-DOS does not allow filenames that begin with a dot.
8526 rmdir .libs 2>/dev/null
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8529 $as_echo "$lt_cv_objdir" >&6; }
8530 objdir=$lt_cv_objdir
8536 cat >>confdefs.h <<_ACEOF
8537 #define LT_OBJDIR "$lt_cv_objdir/"
8545 # AIX sometimes has problems with the GCC collect2 program. For some
8546 # reason, if we set the COLLECT_NAMES environment variable, the problems
8547 # vanish in a puff of smoke.
8548 if test "X${COLLECT_NAMES+set}" != Xset; then
8550 export COLLECT_NAMES
8557 can_build_shared=yes
8559 # All known linkers require a `.a' archive for static linking (except MSVC,
8560 # which needs '.lib').
8563 with_gnu_ld="$lt_cv_prog_gnu_ld"
8566 old_CFLAGS="$CFLAGS"
8568 # Set sane defaults for various variables
8569 test -z "$CC" && CC=cc
8570 test -z "$LTCC" && LTCC=$CC
8571 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8572 test -z "$LD" && LD=ld
8573 test -z "$ac_objext" && ac_objext=o
8575 for cc_temp in $compiler""; do
8577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8583 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8586 # Only perform the check for file, if the check method requires it
8587 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8588 case $deplibs_check_method in
8590 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8592 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8593 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8594 $as_echo_n "(cached) " >&6
8598 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8601 lt_save_MAGIC_CMD="$MAGIC_CMD"
8602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8604 for ac_dir in $ac_dummy; do
8606 test -z "$ac_dir" && ac_dir=.
8607 if test -f $ac_dir/${ac_tool_prefix}file; then
8608 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8609 if test -n "$file_magic_test_file"; then
8610 case $deplibs_check_method in
8612 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8615 $EGREP "$file_magic_regex" > /dev/null; then
8620 *** Warning: the command libtool uses to detect shared libraries,
8621 *** $file_magic_cmd, produces output that libtool cannot recognize.
8622 *** The result is that libtool may fail to recognize shared libraries
8623 *** as such. This will affect the creation of libtool libraries that
8624 *** depend on shared libraries, but programs linked with such libtool
8625 *** libraries will work regardless of this problem. Nevertheless, you
8626 *** may want to report the problem to your system manager and/or to
8627 *** bug-libtool@gnu.org
8637 MAGIC_CMD="$lt_save_MAGIC_CMD"
8642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8643 if test -n "$MAGIC_CMD"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8645 $as_echo "$MAGIC_CMD" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8655 if test -z "$lt_cv_path_MAGIC_CMD"; then
8656 if test -n "$ac_tool_prefix"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8658 $as_echo_n "checking for file... " >&6; }
8659 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8660 $as_echo_n "(cached) " >&6
8664 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8667 lt_save_MAGIC_CMD="$MAGIC_CMD"
8668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8669 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8670 for ac_dir in $ac_dummy; do
8672 test -z "$ac_dir" && ac_dir=.
8673 if test -f $ac_dir/file; then
8674 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8675 if test -n "$file_magic_test_file"; then
8676 case $deplibs_check_method in
8678 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8680 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8681 $EGREP "$file_magic_regex" > /dev/null; then
8686 *** Warning: the command libtool uses to detect shared libraries,
8687 *** $file_magic_cmd, produces output that libtool cannot recognize.
8688 *** The result is that libtool may fail to recognize shared libraries
8689 *** as such. This will affect the creation of libtool libraries that
8690 *** depend on shared libraries, but programs linked with such libtool
8691 *** libraries will work regardless of this problem. Nevertheless, you
8692 *** may want to report the problem to your system manager and/or to
8693 *** bug-libtool@gnu.org
8703 MAGIC_CMD="$lt_save_MAGIC_CMD"
8708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8709 if test -n "$MAGIC_CMD"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8711 $as_echo "$MAGIC_CMD" >&6; }
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8727 # Use C for the default configuration in the libtool script
8731 ac_cpp='$CPP $CPPFLAGS'
8732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8737 # Source file extension for C test sources.
8740 # Object file extension for compiled C test sources.
8744 # Code to be used in simple compile tests
8745 lt_simple_compile_test_code="int some_variable = 0;"
8747 # Code to be used in simple link tests
8748 lt_simple_link_test_code='int main(){return(0);}'
8756 # If no C compiler was specified, use CC.
8759 # If no C compiler flags were specified, use CFLAGS.
8760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8762 # Allow CC to be a program name with arguments.
8765 # Save the default compiler, since it gets overwritten when the other
8766 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8767 compiler_DEFAULT=$CC
8769 # save warnings/boilerplate of simple test code
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8773 _lt_compiler_boilerplate=`cat conftest.err`
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8779 _lt_linker_boilerplate=`cat conftest.err`
8784 ## There is no encapsulation within the following macros, do not change
8785 ## the running order or otherwise move them around unless you know exactly
8786 ## what you are doing...
8787 if test -n "$compiler"; then
8789 lt_prog_compiler_no_builtin_flag=
8791 if test "$GCC" = yes; then
8792 case $cc_basename in
8794 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8796 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8800 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8801 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 lt_cv_prog_compiler_rtti_exceptions=no
8805 ac_outfile=conftest.$ac_objext
8806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807 lt_compiler_flag="-fno-rtti -fno-exceptions"
8808 # Insert the option either (1) after the last *FLAGS variable, or
8809 # (2) before a word containing "conftest.", or (3) at the end.
8810 # Note that $ac_compile itself does not contain backslashes and begins
8811 # with a dollar sign (not a hyphen), so the echo should work correctly.
8812 # The option is referenced via a variable to avoid confusing sed.
8813 lt_compile=`echo "$ac_compile" | $SED \
8814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816 -e 's:$: $lt_compiler_flag:'`
8817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818 (eval "$lt_compile" 2>conftest.err)
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 if (exit $ac_status) && test -s "$ac_outfile"; then
8823 # The compiler can only warn and ignore the option if not recognized
8824 # So say no if there are warnings other than the usual output.
8825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8828 lt_cv_prog_compiler_rtti_exceptions=yes
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8835 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8838 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8850 lt_prog_compiler_wl=
8851 lt_prog_compiler_pic=
8852 lt_prog_compiler_static=
8855 if test "$GCC" = yes; then
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_static='-static'
8861 # All AIX code is PIC.
8862 if test "$host_cpu" = ia64; then
8863 # AIX 5 now supports IA64 processor
8864 lt_prog_compiler_static='-Bstatic'
8871 # see comment about AmigaOS4 .so support
8872 lt_prog_compiler_pic='-fPIC'
8875 # FIXME: we need at least 68020 code to build shared libraries, but
8876 # adding the `-m68020' flag to GCC prevents building anything better,
8878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8884 # PIC is the default for these OSes.
8887 mingw* | cygwin* | pw32* | os2* | cegcc*)
8888 # This hack is so that the source file can tell whether it is being
8889 # built for inclusion in a dll (and should export symbols for example).
8890 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8891 # (--disable-auto-import) libraries
8892 lt_prog_compiler_pic='-DDLL_EXPORT'
8895 darwin* | rhapsody*)
8896 # PIC is the default on this platform
8897 # Common symbols not allowed in MH_DYLIB files
8898 lt_prog_compiler_pic='-fno-common'
8902 # PIC is the default for Haiku.
8903 # The "-static" flag exists, but is broken.
8904 lt_prog_compiler_static=
8908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8910 # sets the default TLS model and affects inlining.
8916 lt_prog_compiler_pic='-fPIC'
8922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8923 # Instead, we relocate shared libraries at runtime.
8927 # Just because we use GCC doesn't mean we suddenly get shared libraries
8928 # on systems that don't support them.
8929 lt_prog_compiler_can_build_shared=no
8934 # QNX uses GNU C++, but need to define -shared option too, otherwise
8936 lt_prog_compiler_pic='-fPIC -shared'
8940 if test -d /usr/nec; then
8941 lt_prog_compiler_pic=-Kconform_pic
8946 lt_prog_compiler_pic='-fPIC'
8950 case $cc_basename in
8951 nvcc*) # Cuda Compiler Driver 2.2
8952 lt_prog_compiler_wl='-Xlinker '
8953 if test -n "$lt_prog_compiler_pic"; then
8954 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8959 # PORTME Check for flag to pass linker flags through the system compiler.
8962 lt_prog_compiler_wl='-Wl,'
8963 if test "$host_cpu" = ia64; then
8964 # AIX 5 now supports IA64 processor
8965 lt_prog_compiler_static='-Bstatic'
8967 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8971 mingw* | cygwin* | pw32* | os2* | cegcc*)
8972 # This hack is so that the source file can tell whether it is being
8973 # built for inclusion in a dll (and should export symbols for example).
8974 lt_prog_compiler_pic='-DDLL_EXPORT'
8977 hpux9* | hpux10* | hpux11*)
8978 lt_prog_compiler_wl='-Wl,'
8979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8986 lt_prog_compiler_pic='+Z'
8989 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8990 lt_prog_compiler_static='${wl}-a ${wl}archive'
8993 irix5* | irix6* | nonstopux*)
8994 lt_prog_compiler_wl='-Wl,'
8995 # PIC (with -KPIC) is the default.
8996 lt_prog_compiler_static='-non_shared'
8999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9000 case $cc_basename in
9001 # old Intel for x86_64 which still supported -KPIC.
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_pic='-KPIC'
9005 lt_prog_compiler_static='-static'
9007 # icc used to be incompatible with GCC.
9008 # ICC 10 doesn't accept -KPIC any more.
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='-fPIC'
9012 lt_prog_compiler_static='-static'
9014 # Lahey Fortran 8.1.
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='--shared'
9018 lt_prog_compiler_static='--static'
9021 # NAG Fortran compiler
9022 lt_prog_compiler_wl='-Wl,-Wl,,'
9023 lt_prog_compiler_pic='-PIC'
9024 lt_prog_compiler_static='-Bstatic'
9026 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9027 # Portland Group compilers (*not* the Pentium gcc compiler,
9028 # which looks to be a dead project)
9029 lt_prog_compiler_wl='-Wl,'
9030 lt_prog_compiler_pic='-fpic'
9031 lt_prog_compiler_static='-Bstatic'
9034 lt_prog_compiler_wl='-Wl,'
9035 # All Alpha code is PIC.
9036 lt_prog_compiler_static='-non_shared'
9038 xl* | bgxl* | bgf* | mpixl*)
9039 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9040 lt_prog_compiler_wl='-Wl,'
9041 lt_prog_compiler_pic='-qpic'
9042 lt_prog_compiler_static='-qstaticlink'
9045 case `$CC -V 2>&1 | sed 5q` in
9046 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9047 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9048 lt_prog_compiler_pic='-KPIC'
9049 lt_prog_compiler_static='-Bstatic'
9050 lt_prog_compiler_wl=''
9052 *Sun\ F* | *Sun*Fortran*)
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9055 lt_prog_compiler_wl='-Qoption ld '
9059 lt_prog_compiler_pic='-KPIC'
9060 lt_prog_compiler_static='-Bstatic'
9061 lt_prog_compiler_wl='-Wl,'
9063 *Intel*\ [CF]*Compiler*)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-fPIC'
9066 lt_prog_compiler_static='-static'
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_pic='-fpic'
9071 lt_prog_compiler_static='-Bstatic'
9079 lt_prog_compiler_pic='-KPIC'
9080 lt_prog_compiler_static='-Bstatic'
9084 # QNX uses GNU C++, but need to define -shared option too, otherwise
9086 lt_prog_compiler_pic='-fPIC -shared'
9089 osf3* | osf4* | osf5*)
9090 lt_prog_compiler_wl='-Wl,'
9091 # All OSF/1 code is PIC.
9092 lt_prog_compiler_static='-non_shared'
9096 lt_prog_compiler_static='-non_shared'
9100 lt_prog_compiler_pic='-KPIC'
9101 lt_prog_compiler_static='-Bstatic'
9102 case $cc_basename in
9103 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9104 lt_prog_compiler_wl='-Qoption ld ';;
9106 lt_prog_compiler_wl='-Wl,';;
9111 lt_prog_compiler_wl='-Qoption ld '
9112 lt_prog_compiler_pic='-PIC'
9113 lt_prog_compiler_static='-Bstatic'
9116 sysv4 | sysv4.2uw2* | sysv4.3*)
9117 lt_prog_compiler_wl='-Wl,'
9118 lt_prog_compiler_pic='-KPIC'
9119 lt_prog_compiler_static='-Bstatic'
9123 if test -d /usr/nec ;then
9124 lt_prog_compiler_pic='-Kconform_pic'
9125 lt_prog_compiler_static='-Bstatic'
9129 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_pic='-KPIC'
9132 lt_prog_compiler_static='-Bstatic'
9136 lt_prog_compiler_wl='-Wl,'
9137 lt_prog_compiler_can_build_shared=no
9141 lt_prog_compiler_pic='-pic'
9142 lt_prog_compiler_static='-Bstatic'
9146 lt_prog_compiler_can_build_shared=no
9152 # For platforms which do not support PIC, -DPIC is meaningless:
9154 lt_prog_compiler_pic=
9157 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9163 if ${lt_cv_prog_compiler_pic+:} false; then :
9164 $as_echo_n "(cached) " >&6
9166 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9169 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9170 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9173 # Check to make sure the PIC flag actually works.
9175 if test -n "$lt_prog_compiler_pic"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9177 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9178 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 lt_cv_prog_compiler_pic_works=no
9182 ac_outfile=conftest.$ac_objext
9183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9184 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9185 # Insert the option either (1) after the last *FLAGS variable, or
9186 # (2) before a word containing "conftest.", or (3) at the end.
9187 # Note that $ac_compile itself does not contain backslashes and begins
9188 # with a dollar sign (not a hyphen), so the echo should work correctly.
9189 # The option is referenced via a variable to avoid confusing sed.
9190 lt_compile=`echo "$ac_compile" | $SED \
9191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9193 -e 's:$: $lt_compiler_flag:'`
9194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9195 (eval "$lt_compile" 2>conftest.err)
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 if (exit $ac_status) && test -s "$ac_outfile"; then
9200 # The compiler can only warn and ignore the option if not recognized
9201 # So say no if there are warnings other than the usual output.
9202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9205 lt_cv_prog_compiler_pic_works=yes
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9212 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9214 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9215 case $lt_prog_compiler_pic in
9217 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9220 lt_prog_compiler_pic=
9221 lt_prog_compiler_can_build_shared=no
9237 # Check to make sure the static flag actually works.
9239 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9241 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9242 if ${lt_cv_prog_compiler_static_works+:} false; then :
9243 $as_echo_n "(cached) " >&6
9245 lt_cv_prog_compiler_static_works=no
9246 save_LDFLAGS="$LDFLAGS"
9247 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9248 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9250 # The linker can only warn and ignore the option if not recognized
9251 # So say no if there are warnings
9252 if test -s conftest.err; then
9253 # Append any errors to the config.log.
9254 cat conftest.err 1>&5
9255 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9257 if diff conftest.exp conftest.er2 >/dev/null; then
9258 lt_cv_prog_compiler_static_works=yes
9261 lt_cv_prog_compiler_static_works=yes
9265 LDFLAGS="$save_LDFLAGS"
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9269 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9271 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9274 lt_prog_compiler_static=
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9285 if ${lt_cv_prog_compiler_c_o+:} false; then :
9286 $as_echo_n "(cached) " >&6
9288 lt_cv_prog_compiler_c_o=no
9289 $RM -r conftest 2>/dev/null
9293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9295 lt_compiler_flag="-o out/conftest2.$ac_objext"
9296 # Insert the option either (1) after the last *FLAGS variable, or
9297 # (2) before a word containing "conftest.", or (3) at the end.
9298 # Note that $ac_compile itself does not contain backslashes and begins
9299 # with a dollar sign (not a hyphen), so the echo should work correctly.
9300 lt_compile=`echo "$ac_compile" | $SED \
9301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9303 -e 's:$: $lt_compiler_flag:'`
9304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9305 (eval "$lt_compile" 2>out/conftest.err)
9307 cat out/conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9311 # The compiler can only warn and ignore the option if not recognized
9312 # So say no if there are warnings
9313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9316 lt_cv_prog_compiler_c_o=yes
9321 # SGI C++ compiler will create directory out/ii_files/ for
9322 # template instantiation
9323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9324 $RM out/* && rmdir out
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9331 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9339 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9340 if ${lt_cv_prog_compiler_c_o+:} false; then :
9341 $as_echo_n "(cached) " >&6
9343 lt_cv_prog_compiler_c_o=no
9344 $RM -r conftest 2>/dev/null
9348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9350 lt_compiler_flag="-o out/conftest2.$ac_objext"
9351 # Insert the option either (1) after the last *FLAGS variable, or
9352 # (2) before a word containing "conftest.", or (3) at the end.
9353 # Note that $ac_compile itself does not contain backslashes and begins
9354 # with a dollar sign (not a hyphen), so the echo should work correctly.
9355 lt_compile=`echo "$ac_compile" | $SED \
9356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9358 -e 's:$: $lt_compiler_flag:'`
9359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9360 (eval "$lt_compile" 2>out/conftest.err)
9362 cat out/conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9366 # The compiler can only warn and ignore the option if not recognized
9367 # So say no if there are warnings
9368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9371 lt_cv_prog_compiler_c_o=yes
9376 # SGI C++ compiler will create directory out/ii_files/ for
9377 # template instantiation
9378 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9379 $RM out/* && rmdir out
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9386 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9391 hard_links="nottested"
9392 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9393 # do not overwrite the value of need_locks provided by the user
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9395 $as_echo_n "checking if we can lock with hard links... " >&6; }
9398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9400 ln conftest.a conftest.b 2>&5 || hard_links=no
9401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9403 $as_echo "$hard_links" >&6; }
9404 if test "$hard_links" = no; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9406 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9419 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9422 allow_undefined_flag=
9423 always_export_symbols=no
9425 archive_expsym_cmds=
9426 compiler_needs_object=no
9427 enable_shared_with_static_runtimes=no
9428 export_dynamic_flag_spec=
9429 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9430 hardcode_automatic=no
9432 hardcode_direct_absolute=no
9433 hardcode_libdir_flag_spec=
9434 hardcode_libdir_separator=
9436 hardcode_shlibpath_var=unsupported
9438 link_all_deplibs=unknown
9441 old_archive_from_new_cmds=
9442 old_archive_from_expsyms_cmds=
9443 thread_safe_flag_spec=
9444 whole_archive_flag_spec=
9445 # include_expsyms should be a list of space-separated symbols to be *always*
9446 # included in the symbol list
9448 # exclude_expsyms can be an extended regexp of symbols to exclude
9449 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9450 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9451 # as well as any symbol that contains `d'.
9452 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9453 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9454 # platforms (ab)use it in PIC code, but their linkers get confused if
9455 # the symbol is explicitly referenced. Since portable code cannot
9456 # rely on this symbol name, it's probably fine to never include it in
9457 # preloaded symbol tables.
9458 # Exclude shared library initialization/finalization symbols.
9459 extract_expsyms_cmds=
9462 cygwin* | mingw* | pw32* | cegcc*)
9463 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9464 # When not using gcc, we currently assume that we are using
9465 # Microsoft Visual C++.
9466 if test "$GCC" != yes; then
9471 # we just hope/assume this is gcc and not c89 (= MSVC++)
9481 # On some targets, GNU ld is compatible enough with the native linker
9482 # that we're better off using the native interface for both.
9483 lt_use_gnu_ld_interface=no
9484 if test "$with_gnu_ld" = yes; then
9487 # The AIX port of GNU ld has always aspired to compatibility
9488 # with the native linker. However, as the warning in the GNU ld
9489 # block says, versions before 2.19.5* couldn't really create working
9490 # shared libraries, regardless of the interface used.
9491 case `$LD -v 2>&1` in
9492 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9493 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9494 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9496 lt_use_gnu_ld_interface=yes
9501 lt_use_gnu_ld_interface=yes
9506 if test "$lt_use_gnu_ld_interface" = yes; then
9507 # If archive_cmds runs LD, not CC, wlarc should be empty
9510 # Set some defaults for GNU ld with shared library support. These
9511 # are reset later if shared libraries are not supported. Putting them
9512 # here allows them to be overridden if necessary.
9513 runpath_var=LD_RUN_PATH
9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515 export_dynamic_flag_spec='${wl}--export-dynamic'
9516 # ancient GNU ld didn't support --whole-archive et. al.
9517 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9518 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9520 whole_archive_flag_spec=
9522 supports_anon_versioning=no
9523 case `$LD -v 2>&1` in
9524 *GNU\ gold*) supports_anon_versioning=yes ;;
9525 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9528 *\ 2.11.*) ;; # other 2.11 versions
9529 *) supports_anon_versioning=yes ;;
9532 # See if GNU ld supports shared libraries.
9535 # On AIX/PPC, the GNU linker is very broken
9536 if test "$host_cpu" != ia64; then
9540 *** Warning: the GNU linker, at least up to release 2.19, is reported
9541 *** to be unable to reliably create shared libraries on AIX.
9542 *** Therefore, libtool is disabling shared libraries support. If you
9543 *** really care for shared libraries, you may want to install binutils
9544 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9545 *** You will then need to restart the configuration process.
9554 # see comment about AmigaOS4 .so support
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556 archive_expsym_cmds=''
9559 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)'
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_minus_L=yes
9567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568 allow_undefined_flag=unsupported
9569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9570 # support --undefined. This deserves some investigation. FIXME
9571 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577 cygwin* | mingw* | pw32* | cegcc*)
9578 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9579 # as there is no search path for DLLs.
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 export_dynamic_flag_spec='${wl}--export-all-symbols'
9582 allow_undefined_flag=unsupported
9583 always_export_symbols=no
9584 enable_shared_with_static_runtimes=yes
9585 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'
9586 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9588 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9590 # If the export-symbols file already is a .def file (1st line
9591 # is EXPORTS), use it as is; otherwise, prepend...
9592 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9593 cp $export_symbols $output_objdir/$soname.def;
9595 echo EXPORTS > $output_objdir/$soname.def;
9596 cat $export_symbols >> $output_objdir/$soname.def;
9598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606 link_all_deplibs=yes
9611 hardcode_shlibpath_var=no
9612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613 export_dynamic_flag_spec='${wl}-E'
9614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9615 # Instead, shared libraries are loaded at an image base (0x10000000 by
9616 # default) and relocated if they conflict, which is a slow very memory
9617 # consuming and fragmenting process. To avoid this, we pick a random,
9618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9619 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9621 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'
9624 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9626 if test "$host_os" = linux-dietlibc; then
9627 case $cc_basename in
9628 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9631 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9632 && test "$tmp_diet" = no
9634 tmp_addflag=' $pic_flag'
9635 tmp_sharedflag='-shared'
9636 case $cc_basename,$host_cpu in
9637 pgcc*) # Portland Group C compiler
9638 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'
9639 tmp_addflag=' $pic_flag'
9641 pgf77* | pgf90* | pgf95* | pgfortran*)
9642 # Portland Group f77 and f90 compilers
9643 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'
9644 tmp_addflag=' $pic_flag -Mnomain' ;;
9645 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9646 tmp_addflag=' -i_dynamic' ;;
9647 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9648 tmp_addflag=' -i_dynamic -nofor_main' ;;
9649 ifc* | ifort*) # Intel Fortran compiler
9650 tmp_addflag=' -nofor_main' ;;
9651 lf95*) # Lahey Fortran 8.1
9652 whole_archive_flag_spec=
9653 tmp_sharedflag='--shared' ;;
9654 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9655 tmp_sharedflag='-qmkshrobj'
9657 nvcc*) # Cuda Compiler Driver 2.2
9658 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'
9659 compiler_needs_object=yes
9662 case `$CC -V 2>&1 | sed 5q` in
9663 *Sun\ C*) # Sun C 5.9
9664 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'
9665 compiler_needs_object=yes
9666 tmp_sharedflag='-G' ;;
9667 *Sun\ F*) # Sun Fortran 8.3
9668 tmp_sharedflag='-G' ;;
9670 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672 if test "x$supports_anon_versioning" = xyes; then
9673 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9675 echo "local: *; };" >> $output_objdir/$libname.ver~
9676 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9679 case $cc_basename in
9680 xlf* | bgf* | bgxlf* | mpixlf*)
9681 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9682 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9684 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9685 if test "x$supports_anon_versioning" = xyes; then
9686 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9687 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9688 echo "local: *; };" >> $output_objdir/$libname.ver~
9689 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9700 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9709 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9713 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9714 *** create shared libraries on Solaris systems. Therefore, libtool
9715 *** is disabling shared libraries support. We urge you to upgrade GNU
9716 *** binutils to release 2.9.1 or newer. Another option is to modify
9717 *** your PATH or compiler configuration so that the native linker is
9718 *** used, and then restart.
9721 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9722 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9730 case `$LD -v 2>&1` in
9731 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9735 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9736 *** reliably create shared libraries on SCO systems. Therefore, libtool
9737 *** is disabling shared libraries support. We urge you to upgrade GNU
9738 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9739 *** your PATH or compiler configuration so that the native linker is
9740 *** used, and then restart.
9745 # For security reasons, it is highly recommended that you always
9746 # use absolute paths for naming shared libraries, and exclude the
9747 # DT_RUNPATH tag from executables and libraries. But doing so
9748 # requires that you compile everything twice, which is a pain.
9749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9761 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_shlibpath_var=no
9768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9770 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9777 if test "$ld_shlibs" = no; then
9779 hardcode_libdir_flag_spec=
9780 export_dynamic_flag_spec=
9781 whole_archive_flag_spec=
9784 # PORTME fill in a description of your system's linker (not GNU ld)
9787 allow_undefined_flag=unsupported
9788 always_export_symbols=yes
9789 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'
9790 # Note: this linker hardcodes the directories in LIBPATH if there
9791 # are no directories specified by -L.
9792 hardcode_minus_L=yes
9793 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9794 # Neither direct hardcoding nor static linking is supported with a
9796 hardcode_direct=unsupported
9801 if test "$host_cpu" = ia64; then
9802 # On IA64, the linker does run time linking by default, so we don't
9803 # have to do anything special.
9804 aix_use_runtimelinking=no
9805 exp_sym_flag='-Bexport'
9808 # If we're using GNU nm, then we don't want the "-C" option.
9809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9810 # Also, AIX nm treats weak defined symbols like other global
9811 # defined symbols, whereas GNU nm marks them as "W".
9812 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9813 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'
9815 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'
9817 aix_use_runtimelinking=no
9819 # Test if we are trying to use run time linking or normal
9820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9821 # need to do runtime linking.
9822 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9823 for ld_flag in $LDFLAGS; do
9824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9825 aix_use_runtimelinking=yes
9832 exp_sym_flag='-bexport'
9833 no_entry_flag='-bnoentry'
9836 # When large executables or shared objects are built, AIX ld can
9837 # have problems creating the table of contents. If linking a library
9838 # or program results in "error TOC overflow" add -mminimal-toc to
9839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9844 hardcode_direct_absolute=yes
9845 hardcode_libdir_separator=':'
9846 link_all_deplibs=yes
9847 file_list_spec='${wl}-f,'
9849 if test "$GCC" = yes; then
9850 case $host_os in aix4.[012]|aix4.[012].*)
9851 # We only want to do this on AIX 4.2 and lower, the check
9852 # below for broken collect2 doesn't work under 4.3+
9853 collect2name=`${CC} -print-prog-name=collect2`
9854 if test -f "$collect2name" &&
9855 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9857 # We have reworked collect2
9860 # We have old collect2
9861 hardcode_direct=unsupported
9862 # It fails to find uninstalled libraries when the uninstalled
9863 # path is not listed in the libpath. Setting hardcode_minus_L
9864 # to unsupported forces relinking
9865 hardcode_minus_L=yes
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_libdir_separator=
9871 shared_flag='-shared'
9872 if test "$aix_use_runtimelinking" = yes; then
9873 shared_flag="$shared_flag "'${wl}-G'
9877 if test "$host_cpu" = ia64; then
9878 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9879 # chokes on -Wl,-G. The following line is correct:
9882 if test "$aix_use_runtimelinking" = yes; then
9883 shared_flag='${wl}-G'
9885 shared_flag='${wl}-bM:SRE'
9890 export_dynamic_flag_spec='${wl}-bexpall'
9891 # It seems that -bexpall does not export symbols beginning with
9892 # underscore (_), so it is better to generate a list of symbols to export.
9893 always_export_symbols=yes
9894 if test "$aix_use_runtimelinking" = yes; then
9895 # Warning - without using the other runtime loading flags (-brtl),
9896 # -berok will link without error, but may produce a broken library.
9897 allow_undefined_flag='-berok'
9898 # Determine the default libpath from the value encoded in an
9900 if test "${lt_cv_aix_libpath+set}" = set; then
9901 aix_libpath=$lt_cv_aix_libpath
9903 if ${lt_cv_aix_libpath_+:} false; then :
9904 $as_echo_n "(cached) " >&6
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9917 if ac_fn_c_try_link "$LINENO"; then :
9919 lt_aix_libpath_sed='
9920 /Import File Strings/,/^$/ {
9922 s/^0 *\([^ ]*\) *$/\1/
9926 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927 # Check for a 64-bit object if we didn't find anything.
9928 if test -z "$lt_cv_aix_libpath_"; then
9929 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9932 rm -f core conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 if test -z "$lt_cv_aix_libpath_"; then
9935 lt_cv_aix_libpath_="/usr/lib:/lib"
9940 aix_libpath=$lt_cv_aix_libpath_
9943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9944 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"
9946 if test "$host_cpu" = ia64; then
9947 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9948 allow_undefined_flag="-z nodefs"
9949 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"
9951 # Determine the default libpath from the value encoded in an
9953 if test "${lt_cv_aix_libpath+set}" = set; then
9954 aix_libpath=$lt_cv_aix_libpath
9956 if ${lt_cv_aix_libpath_+:} false; then :
9957 $as_echo_n "(cached) " >&6
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9970 if ac_fn_c_try_link "$LINENO"; then :
9972 lt_aix_libpath_sed='
9973 /Import File Strings/,/^$/ {
9975 s/^0 *\([^ ]*\) *$/\1/
9979 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9980 # Check for a 64-bit object if we didn't find anything.
9981 if test -z "$lt_cv_aix_libpath_"; then
9982 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 if test -z "$lt_cv_aix_libpath_"; then
9988 lt_cv_aix_libpath_="/usr/lib:/lib"
9993 aix_libpath=$lt_cv_aix_libpath_
9996 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9997 # Warning - without using the other run time loading flags,
9998 # -berok will link without error, but may produce a broken library.
9999 no_undefined_flag=' ${wl}-bernotok'
10000 allow_undefined_flag=' ${wl}-berok'
10001 if test "$with_gnu_ld" = yes; then
10002 # We only use this code for GNU lds that support --whole-archive.
10003 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10005 # Exported symbols can be pulled into shared objects from archives
10006 whole_archive_flag_spec='$convenience'
10008 archive_cmds_need_lc=yes
10009 # This is similar to how AIX traditionally builds its shared libraries.
10010 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'
10018 # see comment about AmigaOS4 .so support
10019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020 archive_expsym_cmds=''
10023 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)'
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_minus_L=yes
10031 export_dynamic_flag_spec=-rdynamic
10034 cygwin* | mingw* | pw32* | cegcc*)
10035 # When not using gcc, we currently assume that we are using
10036 # Microsoft Visual C++.
10037 # hardcode_libdir_flag_spec is actually meaningless, as there is
10038 # no search path for DLLs.
10039 case $cc_basename in
10042 hardcode_libdir_flag_spec=' '
10043 allow_undefined_flag=unsupported
10044 always_export_symbols=yes
10046 # Tell ltmain to make .lib files, not .a files.
10048 # Tell ltmain to make .dll files, not .so files.
10050 # FIXME: Setting linknames here is a bad hack.
10051 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10053 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10055 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10057 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10059 # The linker will not automatically build a static lib if we build a DLL.
10060 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10061 enable_shared_with_static_runtimes=yes
10062 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10065 old_postinstall_cmds='chmod 644 $oldlib'
10066 postlink_cmds='lt_outputfile="@OUTPUT@"~
10067 lt_tool_outputfile="@TOOL_OUTPUT@"~
10068 case $lt_outputfile in
10071 lt_outputfile="$lt_outputfile.exe"
10072 lt_tool_outputfile="$lt_tool_outputfile.exe"
10075 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10076 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10077 $RM "$lt_outputfile.manifest";
10081 # Assume MSVC wrapper
10082 hardcode_libdir_flag_spec=' '
10083 allow_undefined_flag=unsupported
10084 # Tell ltmain to make .lib files, not .a files.
10086 # Tell ltmain to make .dll files, not .so files.
10088 # FIXME: Setting linknames here is a bad hack.
10089 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10090 # The linker will automatically build a .lib file if we build a DLL.
10091 old_archive_from_new_cmds='true'
10092 # FIXME: Should let the user specify the lib program.
10093 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10094 enable_shared_with_static_runtimes=yes
10099 darwin* | rhapsody*)
10102 archive_cmds_need_lc=no
10104 hardcode_automatic=yes
10105 hardcode_shlibpath_var=unsupported
10106 if test "$lt_cv_ld_force_load" = "yes"; then
10107 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\"`'
10110 whole_archive_flag_spec=''
10112 link_all_deplibs=yes
10113 allow_undefined_flag="$_lt_dar_allow_undefined"
10114 case $cc_basename in
10115 ifort*) _lt_dar_can_shared=yes ;;
10116 *) _lt_dar_can_shared=$GCC ;;
10118 if test "$_lt_dar_can_shared" = "yes"; then
10119 output_verbose_link_cmd=func_echo_all
10120 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10121 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10122 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}"
10123 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}"
10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 hardcode_shlibpath_var=no
10137 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10138 # support. Future versions do this automatically, but an explicit c++rt0.o
10139 # does not break anything, and helps significantly (at the cost of a little
10142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10143 hardcode_libdir_flag_spec='-R$libdir'
10144 hardcode_direct=yes
10145 hardcode_shlibpath_var=no
10148 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_direct=yes
10152 hardcode_minus_L=yes
10153 hardcode_shlibpath_var=no
10156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10157 freebsd* | dragonfly*)
10158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159 hardcode_libdir_flag_spec='-R$libdir'
10160 hardcode_direct=yes
10161 hardcode_shlibpath_var=no
10165 if test "$GCC" = yes; then
10166 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'
10168 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'
10170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10171 hardcode_libdir_separator=:
10172 hardcode_direct=yes
10174 # hardcode_minus_L: Not really in the search PATH,
10175 # but as the default location of the library.
10176 hardcode_minus_L=yes
10177 export_dynamic_flag_spec='${wl}-E'
10181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10182 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10186 if test "$with_gnu_ld" = no; then
10187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10188 hardcode_libdir_separator=:
10189 hardcode_direct=yes
10190 hardcode_direct_absolute=yes
10191 export_dynamic_flag_spec='${wl}-E'
10192 # hardcode_minus_L: Not really in the search PATH,
10193 # but as the default location of the library.
10194 hardcode_minus_L=yes
10199 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10202 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10205 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10208 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10221 # Older versions of the 11.00 compiler do not understand -b yet
10222 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10224 $as_echo_n "checking if $CC understands -b... " >&6; }
10225 if ${lt_cv_prog_compiler__b+:} false; then :
10226 $as_echo_n "(cached) " >&6
10228 lt_cv_prog_compiler__b=no
10229 save_LDFLAGS="$LDFLAGS"
10230 LDFLAGS="$LDFLAGS -b"
10231 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10233 # The linker can only warn and ignore the option if not recognized
10234 # So say no if there are warnings
10235 if test -s conftest.err; then
10236 # Append any errors to the config.log.
10237 cat conftest.err 1>&5
10238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10240 if diff conftest.exp conftest.er2 >/dev/null; then
10241 lt_cv_prog_compiler__b=yes
10244 lt_cv_prog_compiler__b=yes
10248 LDFLAGS="$save_LDFLAGS"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10252 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10254 if test x"$lt_cv_prog_compiler__b" = xyes; then
10255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10263 if test "$with_gnu_ld" = no; then
10264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10265 hardcode_libdir_separator=:
10270 hardcode_shlibpath_var=no
10273 hardcode_direct=yes
10274 hardcode_direct_absolute=yes
10275 export_dynamic_flag_spec='${wl}-E'
10277 # hardcode_minus_L: Not really in the search PATH,
10278 # but as the default location of the library.
10279 hardcode_minus_L=yes
10285 irix5* | irix6* | nonstopux*)
10286 if test "$GCC" = yes; then
10287 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'
10288 # Try to use the -exported_symbol ld option, if it does not
10289 # work, assume that -exports_file does not work either and
10290 # implicitly export all symbols.
10291 # This should be the same for all languages, so no per-tag cache variable.
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10293 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10294 if ${lt_cv_irix_exported_symbol+:} false; then :
10295 $as_echo_n "(cached) " >&6
10297 save_LDFLAGS="$LDFLAGS"
10298 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 int foo (void) { return 0; }
10303 if ac_fn_c_try_link "$LINENO"; then :
10304 lt_cv_irix_exported_symbol=yes
10306 lt_cv_irix_exported_symbol=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10310 LDFLAGS="$save_LDFLAGS"
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10313 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10314 if test "$lt_cv_irix_exported_symbol" = yes; then
10315 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'
10318 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'
10319 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'
10321 archive_cmds_need_lc='no'
10322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10323 hardcode_libdir_separator=:
10325 link_all_deplibs=yes
10329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10332 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10334 hardcode_libdir_flag_spec='-R$libdir'
10335 hardcode_direct=yes
10336 hardcode_shlibpath_var=no
10340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_direct=yes
10342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10343 hardcode_libdir_separator=:
10344 hardcode_shlibpath_var=no
10351 if test -f /usr/libexec/ld.so; then
10352 hardcode_direct=yes
10353 hardcode_shlibpath_var=no
10354 hardcode_direct_absolute=yes
10355 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10359 export_dynamic_flag_spec='${wl}-E'
10362 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10364 hardcode_libdir_flag_spec='-R$libdir'
10367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10378 hardcode_libdir_flag_spec='-L$libdir'
10379 hardcode_minus_L=yes
10380 allow_undefined_flag=unsupported
10381 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'
10382 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10386 if test "$GCC" = yes; then
10387 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10388 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'
10390 allow_undefined_flag=' -expect_unresolved \*'
10391 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'
10393 archive_cmds_need_lc='no'
10394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10395 hardcode_libdir_separator=:
10398 osf4* | osf5*) # as osf3* with the addition of -msym flag
10399 if test "$GCC" = yes; then
10400 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10401 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'
10402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404 allow_undefined_flag=' -expect_unresolved \*'
10405 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'
10406 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~
10407 $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'
10409 # Both c and cxx compiler support -rpath directly
10410 hardcode_libdir_flag_spec='-rpath $libdir'
10412 archive_cmds_need_lc='no'
10413 hardcode_libdir_separator=:
10417 no_undefined_flag=' -z defs'
10418 if test "$GCC" = yes; then
10420 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10422 $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'
10424 case `$CC -V 2>&1` in
10427 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10433 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10434 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10435 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10439 hardcode_libdir_flag_spec='-R$libdir'
10440 hardcode_shlibpath_var=no
10442 solaris2.[0-5] | solaris2.[0-5].*) ;;
10444 # The compiler driver will combine and reorder linker options,
10445 # but understands `-z linker_flag'. GCC discards it without `$wl',
10446 # but is careful enough not to reorder.
10447 # Supported since Solaris 2.6 (maybe 2.5.1?)
10448 if test "$GCC" = yes; then
10449 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10451 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10455 link_all_deplibs=yes
10459 if test "x$host_vendor" = xsequent; then
10460 # Use $CC to link under sequent, because it throws in some extra .o
10461 # files that make .init and .fini sections work.
10462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_libdir_flag_spec='-L$libdir'
10467 hardcode_direct=yes
10468 hardcode_minus_L=yes
10469 hardcode_shlibpath_var=no
10473 case $host_vendor in
10475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476 hardcode_direct=yes # is this really true???
10479 ## LD is ld it makes a PLAMLIB
10480 ## CC just makes a GrossModule.
10481 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10482 reload_cmds='$CC -r -o $output$reload_objs'
10486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10490 runpath_var='LD_RUN_PATH'
10491 hardcode_shlibpath_var=no
10495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496 hardcode_shlibpath_var=no
10497 export_dynamic_flag_spec='-Bexport'
10501 if test -d /usr/nec; then
10502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10503 hardcode_shlibpath_var=no
10504 runpath_var=LD_RUN_PATH
10505 hardcode_runpath_var=yes
10510 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10511 no_undefined_flag='${wl}-z,text'
10512 archive_cmds_need_lc=no
10513 hardcode_shlibpath_var=no
10514 runpath_var='LD_RUN_PATH'
10516 if test "$GCC" = yes; then
10517 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525 sysv5* | sco3.2v5* | sco5v6*)
10526 # Note: We can NOT use -z defs as we might desire, because we do not
10527 # link with -lc, and that would cause any symbols used from libc to
10528 # always be unresolved, which means just about no library would
10529 # ever link correctly. If we're not using GNU ld we use -z text
10530 # though, which does catch some bad symbols but isn't as heavy-handed
10532 no_undefined_flag='${wl}-z,text'
10533 allow_undefined_flag='${wl}-z,nodefs'
10534 archive_cmds_need_lc=no
10535 hardcode_shlibpath_var=no
10536 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10537 hardcode_libdir_separator=':'
10538 link_all_deplibs=yes
10539 export_dynamic_flag_spec='${wl}-Bexport'
10540 runpath_var='LD_RUN_PATH'
10542 if test "$GCC" = yes; then
10543 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_libdir_flag_spec='-L$libdir'
10554 hardcode_shlibpath_var=no
10562 if test x$host_vendor = xsni; then
10564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10565 export_dynamic_flag_spec='${wl}-Blargedynsym'
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10572 $as_echo "$ld_shlibs" >&6; }
10573 test "$ld_shlibs" = no && can_build_shared=no
10575 with_gnu_ld=$with_gnu_ld
10592 # Do we need to explicitly link libc?
10594 case "x$archive_cmds_need_lc" in
10596 # Assume -lc should be added
10597 archive_cmds_need_lc=yes
10599 if test "$enable_shared" = yes && test "$GCC" = yes; then
10600 case $archive_cmds in
10602 # FIXME: we may have to deal with multi-command sequences.
10605 # Test whether the compiler implicitly links with -lc since on some
10606 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10607 # to ld, don't add -lc before -lgcc.
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10609 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10610 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10611 $as_echo_n "(cached) " >&6
10614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10617 (eval $ac_compile) 2>&5
10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620 test $ac_status = 0; } 2>conftest.err; then
10623 libobjs=conftest.$ac_objext
10625 wl=$lt_prog_compiler_wl
10626 pic_flag=$lt_prog_compiler_pic
10632 lt_save_allow_undefined_flag=$allow_undefined_flag
10633 allow_undefined_flag=
10634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10635 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10638 test $ac_status = 0; }
10640 lt_cv_archive_cmds_need_lc=no
10642 lt_cv_archive_cmds_need_lc=yes
10644 allow_undefined_flag=$lt_save_allow_undefined_flag
10646 cat conftest.err 1>&5
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10652 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10653 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10812 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10814 if test "$GCC" = yes; then
10816 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10817 *) lt_awk_arg="/^libraries:/" ;;
10820 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10821 *) lt_sed_strip_eq="s,=/,/,g" ;;
10823 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10824 case $lt_search_path_spec in
10826 # if the path contains ";" then we assume it to be the separator
10827 # otherwise default to the standard path separator (i.e. ":") - it is
10828 # assumed that no part of a normal pathname contains ";" but that should
10829 # okay in the real world where ";" in dirpaths is itself problematic.
10830 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10833 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10836 # Ok, now we have the path, separated by spaces, we can step through it
10837 # and add multilib dir if necessary.
10838 lt_tmp_lt_search_path_spec=
10839 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10840 for lt_sys_path in $lt_search_path_spec; do
10841 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10842 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10844 test -d "$lt_sys_path" && \
10845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10848 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10849 BEGIN {RS=" "; FS="/|\n";} {
10852 for (lt_i = NF; lt_i > 0; lt_i--) {
10853 if ($lt_i != "" && $lt_i != ".") {
10854 if ($lt_i == "..") {
10857 if (lt_count == 0) {
10858 lt_foo="/" $lt_i lt_foo;
10865 if (lt_foo != "") { lt_freq[lt_foo]++; }
10866 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10868 # AWK program above erroneously prepends '/' to C:/dos/paths
10871 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10872 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10874 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10878 library_names_spec=
10879 libname_spec='lib$name'
10883 postuninstall_cmds=
10887 shlibpath_overrides_runpath=unknown
10889 dynamic_linker="$host_os ld.so"
10890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10891 need_lib_prefix=unknown
10892 hardcode_into_libs=no
10894 # when you set need_version to no, make sure it does not cause -set_version
10895 # flags to be left without arguments
10896 need_version=unknown
10900 version_type=linux # correct to gnu/linux during the next big refactor
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10902 shlibpath_var=LIBPATH
10904 # AIX 3 has no versioning support, so we append a major version to the name.
10905 soname_spec='${libname}${release}${shared_ext}$major'
10909 version_type=linux # correct to gnu/linux during the next big refactor
10912 hardcode_into_libs=yes
10913 if test "$host_cpu" = ia64; then
10914 # AIX 5 supports IA64
10915 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10916 shlibpath_var=LD_LIBRARY_PATH
10918 # With GCC up to 2.95.x, collect2 would create an import file
10919 # for dependence libraries. The import file would start with
10920 # the line `#! .'. This would cause the generated library to
10921 # depend on `.', always an invalid library. This was fixed in
10922 # development snapshots of GCC prior to 3.0.
10924 aix4 | aix4.[01] | aix4.[01].*)
10925 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10927 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10930 can_build_shared=no
10934 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10935 # soname into executable. Probably we can add versioning support to
10936 # collect2, so additional links can be useful in future.
10937 if test "$aix_use_runtimelinking" = yes; then
10938 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10939 # instead of lib<name>.a to let people know that these are not
10940 # typical AIX shared libraries.
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 # We preserve .a as extension for shared libraries through AIX4.2
10944 # and later when we are not doing run time linking.
10945 library_names_spec='${libname}${release}.a $libname.a'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10948 shlibpath_var=LIBPATH
10955 # Since July 2007 AmigaOS4 officially supports .so libraries.
10956 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 library_names_spec='$libname.ixlibrary $libname.a'
10961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10962 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'
10968 library_names_spec='${libname}${shared_ext}'
10969 dynamic_linker="$host_os ld.so"
10970 shlibpath_var=LIBRARY_PATH
10974 version_type=linux # correct to gnu/linux during the next big refactor
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10982 # the default ld.so.conf also contains /usr/contrib/lib and
10983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10984 # libtool to hard-code these into programs
10987 cygwin* | mingw* | pw32* | cegcc*)
10988 version_type=windows
10993 case $GCC,$cc_basename in
10996 library_names_spec='$libname.dll.a'
10997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10998 postinstall_cmds='base_file=`basename \${file}`~
10999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11000 dldir=$destdir/`dirname \$dlpath`~
11001 test -d \$dldir || mkdir -p \$dldir~
11002 $install_prog $dir/$dlname \$dldir/$dlname~
11003 chmod a+x \$dldir/$dlname~
11004 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11005 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11008 dlpath=$dir/\$dldll~
11010 shlibpath_overrides_runpath=yes
11014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11020 # MinGW DLLs use traditional 'lib' prefix
11021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11024 # pw32 DLLs use 'pw' prefix rather than 'lib'
11025 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11028 dynamic_linker='Win32 ld.exe'
11033 libname_spec='$name'
11034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11035 library_names_spec='${libname}.dll.lib'
11039 sys_lib_search_path_spec=
11042 for lt_path in $LIB
11045 # Let DOS variable expansion print the short 8.3 style file name.
11046 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11047 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11050 # Convert to MSYS style.
11051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11054 # Convert to unix form, then to dos form, then back to unix form
11055 # but this time dos style (no spaces!) so that the unix form looks
11056 # like /cygdrive/c/PROGRA~1:/cygdr...
11057 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11058 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11059 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11062 sys_lib_search_path_spec="$LIB"
11063 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11064 # It is most probably a Windows format PATH.
11065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11069 # FIXME: find the short name or the path components, as spaces are
11070 # common. (e.g. "Program Files" -> "PROGRA~1")
11074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11075 postinstall_cmds='base_file=`basename \${file}`~
11076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11077 dldir=$destdir/`dirname \$dlpath`~
11078 test -d \$dldir || mkdir -p \$dldir~
11079 $install_prog $dir/$dlname \$dldir/$dlname'
11080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11081 dlpath=$dir/\$dldll~
11083 shlibpath_overrides_runpath=yes
11084 dynamic_linker='Win32 link.exe'
11088 # Assume MSVC wrapper
11089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11090 dynamic_linker='Win32 ld.exe'
11093 # FIXME: first we should search . and the directory the executable is in
11097 darwin* | rhapsody*)
11098 dynamic_linker="$host_os dyld"
11099 version_type=darwin
11102 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11103 soname_spec='${libname}${release}${major}$shared_ext'
11104 shlibpath_overrides_runpath=yes
11105 shlibpath_var=DYLD_LIBRARY_PATH
11106 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11108 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11113 version_type=linux # correct to gnu/linux during the next big refactor
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 shlibpath_var=LD_LIBRARY_PATH
11121 freebsd* | dragonfly*)
11122 # DragonFly does not have aout. When/if they implement a new
11123 # versioning mechanism, adjust this.
11124 if test -x /usr/bin/objformat; then
11125 objformat=`/usr/bin/objformat`
11128 freebsd[23].*) objformat=aout ;;
11129 *) objformat=elf ;;
11132 version_type=freebsd-$objformat
11133 case $version_type in
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11144 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11149 freebsd3.[01]* | freebsdelf3.[01]*)
11150 shlibpath_overrides_runpath=yes
11151 hardcode_into_libs=yes
11153 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11154 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11155 shlibpath_overrides_runpath=no
11156 hardcode_into_libs=yes
11158 *) # from 4.6 on, and DragonFly
11159 shlibpath_overrides_runpath=yes
11160 hardcode_into_libs=yes
11166 version_type=linux # correct to gnu/linux during the next big refactor
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 shlibpath_overrides_runpath=no
11173 hardcode_into_libs=yes
11177 version_type=linux # correct to gnu/linux during the next big refactor
11180 dynamic_linker="$host_os runtime_loader"
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11186 hardcode_into_libs=yes
11189 hpux9* | hpux10* | hpux11*)
11190 # Give a soname corresponding to the major version so that dld.sl refuses to
11191 # link against other versions.
11198 hardcode_into_libs=yes
11199 dynamic_linker="$host_os dld.so"
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 if test "X$HPUX_IA64_MODE" = X32; then
11205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11213 hardcode_into_libs=yes
11214 dynamic_linker="$host_os dld.sl"
11215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11224 dynamic_linker="$host_os dld.sl"
11225 shlibpath_var=SHLIB_PATH
11226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228 soname_spec='${libname}${release}${shared_ext}$major'
11231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11232 postinstall_cmds='chmod 555 $lib'
11233 # or fails outright, so override atomically:
11234 install_override_mode=555
11238 version_type=linux # correct to gnu/linux during the next big refactor
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=no
11246 hardcode_into_libs=yes
11249 irix5* | irix6* | nonstopux*)
11251 nonstopux*) version_type=nonstopux ;;
11253 if test "$lt_cv_prog_gnu_ld" = yes; then
11254 version_type=linux # correct to gnu/linux during the next big refactor
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11264 irix5* | nonstopux*)
11265 libsuff= shlibsuff=
11268 case $LD in # libtool.m4 will add one of these switches to LD
11269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11270 libsuff= shlibsuff= libmagic=32-bit;;
11271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11272 libsuff=32 shlibsuff=N32 libmagic=N32;;
11273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11275 *) libsuff= shlibsuff= libmagic=never-match;;
11279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11280 shlibpath_overrides_runpath=no
11281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11283 hardcode_into_libs=yes
11286 # No shared lib support for Linux oldld, aout, or coff.
11287 linux*oldld* | linux*aout* | linux*coff*)
11291 # This must be glibc/ELF.
11292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11293 version_type=linux # correct to gnu/linux during the next big refactor
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=no
11302 # Some binutils ld are patched to set DT_RUNPATH
11303 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11304 $as_echo_n "(cached) " >&6
11306 lt_cv_shlibpath_overrides_runpath=no
11307 save_LDFLAGS=$LDFLAGS
11308 save_libdir=$libdir
11309 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11310 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11324 lt_cv_shlibpath_overrides_runpath=yes
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 LDFLAGS=$save_LDFLAGS
11330 libdir=$save_libdir
11334 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11336 # This implies no fast_install, which is unacceptable.
11337 # Some rework will be needed to allow for fast_install
11338 # before this can be enabled.
11339 hardcode_into_libs=yes
11341 # Add ABI-specific directories to the system library path.
11342 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11344 # Append ld.so.conf contents to the search path
11345 if test -f /etc/ld.so.conf; then
11346 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' ' '`
11347 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11351 # We used to test for /lib/ld.so.1 and disable shared libraries on
11352 # powerpc, because MkLinux only supported shared libraries with the
11353 # GNU dynamic linker. Since this was broken with cross compilers,
11354 # most powerpc-linux boxes support dynamic linking these days and
11355 # people can always --disable-shared, the test was removed, and we
11356 # assume the GNU/Linux dynamic linker is in use.
11357 dynamic_linker='GNU/Linux ld.so'
11364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11367 dynamic_linker='NetBSD (a.out) ld.so'
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 dynamic_linker='NetBSD ld.elf_so'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=yes
11375 hardcode_into_libs=yes
11379 version_type=linux # correct to gnu/linux during the next big refactor
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 shlibpath_overrides_runpath=yes
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 shlibpath_overrides_runpath=no
11393 hardcode_into_libs=yes
11394 dynamic_linker='ldqnx.so'
11399 sys_lib_dlsearch_path_spec="/usr/lib"
11401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11404 *) need_version=no ;;
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11411 openbsd2.[89] | openbsd2.[89].*)
11412 shlibpath_overrides_runpath=no
11415 shlibpath_overrides_runpath=yes
11419 shlibpath_overrides_runpath=yes
11424 libname_spec='$name'
11427 library_names_spec='$libname${shared_ext} $libname.a'
11428 dynamic_linker='OS/2 ld.exe'
11429 shlibpath_var=LIBPATH
11432 osf3* | osf4* | osf5*)
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11448 version_type=linux # correct to gnu/linux during the next big refactor
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 hardcode_into_libs=yes
11456 # ldd complains unless libraries are executable
11457 postinstall_cmds='chmod +x $lib'
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11466 if test "$with_gnu_ld" = yes; then
11473 version_type=linux # correct to gnu/linux during the next big refactor
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 case $host_vendor in
11479 shlibpath_overrides_runpath=no
11481 runpath_var=LD_RUN_PATH
11489 shlibpath_overrides_runpath=no
11490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11496 if test -d /usr/nec ;then
11497 version_type=linux # correct to gnu/linux during the next big refactor
11498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11499 soname_spec='$libname${shared_ext}.$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11505 version_type=freebsd-elf
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11513 if test "$with_gnu_ld" = yes; then
11514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11523 sys_lib_dlsearch_path_spec='/usr/lib'
11527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11528 version_type=linux # correct to gnu/linux during the next big refactor
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=no
11534 hardcode_into_libs=yes
11538 version_type=linux # correct to gnu/linux during the next big refactor
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 shlibpath_var=LD_LIBRARY_PATH
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11549 $as_echo "$dynamic_linker" >&6; }
11550 test "$dynamic_linker" = no && can_build_shared=no
11552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11553 if test "$GCC" = yes; then
11554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11557 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11560 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11561 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11656 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11658 if test -n "$hardcode_libdir_flag_spec" ||
11659 test -n "$runpath_var" ||
11660 test "X$hardcode_automatic" = "Xyes" ; then
11662 # We can hardcode non-existent directories.
11663 if test "$hardcode_direct" != no &&
11664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11665 # have to relink, otherwise we might link with an installed library
11666 # when we should be linking with a yet-to-be-installed one
11667 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11668 test "$hardcode_minus_L" != no; then
11669 # Linking always hardcodes the temporary library directory.
11670 hardcode_action=relink
11672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11673 hardcode_action=immediate
11676 # We cannot hardcode anything, or else we can only hardcode existing
11678 hardcode_action=unsupported
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11681 $as_echo "$hardcode_action" >&6; }
11683 if test "$hardcode_action" = relink ||
11684 test "$inherit_rpath" = yes; then
11685 # Fast installation is not supported
11686 enable_fast_install=no
11687 elif test "$shlibpath_overrides_runpath" = yes ||
11688 test "$enable_shared" = no; then
11689 # Fast installation is not necessary
11690 enable_fast_install=needless
11698 if test "x$enable_dlopen" != xyes; then
11699 enable_dlopen=unknown
11700 enable_dlopen_self=unknown
11701 enable_dlopen_self_static=unknown
11708 lt_cv_dlopen="load_add_on"
11710 lt_cv_dlopen_self=yes
11713 mingw* | pw32* | cegcc*)
11714 lt_cv_dlopen="LoadLibrary"
11719 lt_cv_dlopen="dlopen"
11724 # if libdl is installed we need to link against it
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11726 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11727 if ${ac_cv_lib_dl_dlopen+:} false; then :
11728 $as_echo_n "(cached) " >&6
11730 ac_check_lib_save_LIBS=$LIBS
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11735 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11750 if ac_fn_c_try_link "$LINENO"; then :
11751 ac_cv_lib_dl_dlopen=yes
11753 ac_cv_lib_dl_dlopen=no
11755 rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11761 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11765 lt_cv_dlopen="dyld"
11767 lt_cv_dlopen_self=yes
11774 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11775 if test "x$ac_cv_func_shl_load" = xyes; then :
11776 lt_cv_dlopen="shl_load"
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11779 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11780 if ${ac_cv_lib_dld_shl_load+:} false; then :
11781 $as_echo_n "(cached) " >&6
11783 ac_check_lib_save_LIBS=$LIBS
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11788 /* Override any GCC internal prototype to avoid an error.
11789 Use char because int might match the return type of a GCC
11790 builtin and then its argument prototype would still apply. */
11798 return shl_load ();
11803 if ac_fn_c_try_link "$LINENO"; then :
11804 ac_cv_lib_dld_shl_load=yes
11806 ac_cv_lib_dld_shl_load=no
11808 rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 LIBS=$ac_check_lib_save_LIBS
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11813 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11814 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11815 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11817 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11818 if test "x$ac_cv_func_dlopen" = xyes; then :
11819 lt_cv_dlopen="dlopen"
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11823 if ${ac_cv_lib_dl_dlopen+:} false; then :
11824 $as_echo_n "(cached) " >&6
11826 ac_check_lib_save_LIBS=$LIBS
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 ac_cv_lib_dl_dlopen=yes
11849 ac_cv_lib_dl_dlopen=no
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11857 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11861 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11862 if ${ac_cv_lib_svld_dlopen+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 ac_check_lib_save_LIBS=$LIBS
11866 LIBS="-lsvld $LIBS"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11885 if ac_fn_c_try_link "$LINENO"; then :
11886 ac_cv_lib_svld_dlopen=yes
11888 ac_cv_lib_svld_dlopen=no
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11895 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11896 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11900 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11901 if ${ac_cv_lib_dld_dld_link+:} false; then :
11902 $as_echo_n "(cached) " >&6
11904 ac_check_lib_save_LIBS=$LIBS
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11919 return dld_link ();
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 ac_cv_lib_dld_dld_link=yes
11927 ac_cv_lib_dld_dld_link=no
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11934 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11935 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11936 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11957 if test "x$lt_cv_dlopen" != xno; then
11963 case $lt_cv_dlopen in
11965 save_CPPFLAGS="$CPPFLAGS"
11966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11968 save_LDFLAGS="$LDFLAGS"
11969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11972 LIBS="$lt_cv_dlopen_libs $LIBS"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11975 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11976 if ${lt_cv_dlopen_self+:} false; then :
11977 $as_echo_n "(cached) " >&6
11979 if test "$cross_compiling" = yes; then :
11980 lt_cv_dlopen_self=cross
11982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11983 lt_status=$lt_dlunknown
11984 cat > conftest.$ac_ext <<_LT_EOF
11985 #line $LINENO "configure"
11986 #include "confdefs.h"
11995 # define LT_DLGLOBAL RTLD_GLOBAL
11998 # define LT_DLGLOBAL DL_GLOBAL
12000 # define LT_DLGLOBAL 0
12004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12005 find out it does not work in some platform. */
12006 #ifndef LT_DLLAZY_OR_NOW
12008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12011 # define LT_DLLAZY_OR_NOW DL_LAZY
12014 # define LT_DLLAZY_OR_NOW RTLD_NOW
12017 # define LT_DLLAZY_OR_NOW DL_NOW
12019 # define LT_DLLAZY_OR_NOW 0
12026 /* When -fvisbility=hidden is used, assume the code has been annotated
12027 correspondingly for the symbols needed. */
12028 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12029 int fnord () __attribute__((visibility("default")));
12032 int fnord () { return 42; }
12035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12036 int status = $lt_dlunknown;
12040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12043 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12044 else puts (dlerror ());
12046 /* dlclose (self); */
12054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12055 (eval $ac_link) 2>&5
12057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12058 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12059 (./conftest; exit; ) >&5 2>/dev/null
12061 case x$lt_status in
12062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12064 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12067 # compilation failed
12068 lt_cv_dlopen_self=no
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12076 $as_echo "$lt_cv_dlopen_self" >&6; }
12078 if test "x$lt_cv_dlopen_self" = xyes; then
12079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12081 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12082 if ${lt_cv_dlopen_self_static+:} false; then :
12083 $as_echo_n "(cached) " >&6
12085 if test "$cross_compiling" = yes; then :
12086 lt_cv_dlopen_self_static=cross
12088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12089 lt_status=$lt_dlunknown
12090 cat > conftest.$ac_ext <<_LT_EOF
12091 #line $LINENO "configure"
12092 #include "confdefs.h"
12101 # define LT_DLGLOBAL RTLD_GLOBAL
12104 # define LT_DLGLOBAL DL_GLOBAL
12106 # define LT_DLGLOBAL 0
12110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12111 find out it does not work in some platform. */
12112 #ifndef LT_DLLAZY_OR_NOW
12114 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12117 # define LT_DLLAZY_OR_NOW DL_LAZY
12120 # define LT_DLLAZY_OR_NOW RTLD_NOW
12123 # define LT_DLLAZY_OR_NOW DL_NOW
12125 # define LT_DLLAZY_OR_NOW 0
12132 /* When -fvisbility=hidden is used, assume the code has been annotated
12133 correspondingly for the symbols needed. */
12134 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12135 int fnord () __attribute__((visibility("default")));
12138 int fnord () { return 42; }
12141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12142 int status = $lt_dlunknown;
12146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12149 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12150 else puts (dlerror ());
12152 /* dlclose (self); */
12160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12161 (eval $ac_link) 2>&5
12163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12164 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12165 (./conftest; exit; ) >&5 2>/dev/null
12167 case x$lt_status in
12168 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12169 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12170 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12173 # compilation failed
12174 lt_cv_dlopen_self_static=no
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12182 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12185 CPPFLAGS="$save_CPPFLAGS"
12186 LDFLAGS="$save_LDFLAGS"
12191 case $lt_cv_dlopen_self in
12192 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12193 *) enable_dlopen_self=unknown ;;
12196 case $lt_cv_dlopen_self_static in
12197 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12198 *) enable_dlopen_self_static=unknown ;;
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12221 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12222 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12223 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12224 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12226 $as_echo "yes" >&6; }
12228 # FIXME - insert some real tests, host_os isn't really good enough
12231 if test -n "$STRIP" ; then
12232 striplib="$STRIP -x"
12233 old_striplib="$STRIP -S"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; }
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12259 # Report which library types will actually be built
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12261 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12263 $as_echo "$can_build_shared" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12266 $as_echo_n "checking whether to build shared libraries... " >&6; }
12267 test "$can_build_shared" = "no" && enable_shared=no
12269 # On AIX, shared libraries and static libraries use the same namespace, and
12270 # are all built from PIC.
12273 test "$enable_shared" = yes && enable_static=no
12274 if test -n "$RANLIB"; then
12275 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12276 postinstall_cmds='$RANLIB $lib'
12281 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12282 test "$enable_shared" = yes && enable_static=no
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12287 $as_echo "$enable_shared" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12290 $as_echo_n "checking whether to build static libraries... " >&6; }
12291 # Make sure either enable_shared or enable_static is yes.
12292 test "$enable_shared" = yes || enable_static=yes
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12294 $as_echo "$enable_static" >&6; }
12301 ac_cpp='$CPP $CPPFLAGS'
12302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322 ac_config_commands="$ac_config_commands libtool"
12327 # Only expand once:
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12333 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12334 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12335 $as_echo_n "(cached) " >&6
12337 cat >conftest.make <<\_ACEOF
12340 @echo '@@@%%%=$(MAKE)=@@@%%%'
12342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12344 *@@@%%%=?*=@@@%%%*)
12345 eval ac_cv_prog_make_${ac_make}_set=yes;;
12347 eval ac_cv_prog_make_${ac_make}_set=no;;
12349 rm -f conftest.make
12351 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353 $as_echo "yes" >&6; }
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 SET_MAKE="MAKE=${MAKE-make}"
12368 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12369 if test -n "$ac_tool_prefix"; then
12370 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12371 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12375 $as_echo_n "(cached) " >&6
12377 case $PKG_CONFIG in
12379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12401 if test -n "$PKG_CONFIG"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12403 $as_echo "$PKG_CONFIG" >&6; }
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12411 if test -z "$ac_cv_path_PKG_CONFIG"; then
12412 ac_pt_PKG_CONFIG=$PKG_CONFIG
12413 # Extract the first word of "pkg-config", so it can be a program name with args.
12414 set dummy pkg-config; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12418 $as_echo_n "(cached) " >&6
12420 case $ac_pt_PKG_CONFIG in
12422 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12432 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12444 if test -n "$ac_pt_PKG_CONFIG"; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12446 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12452 if test "x$ac_pt_PKG_CONFIG" = x; then
12455 case $cross_compiling:$ac_tool_warned in
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12459 ac_tool_warned=yes ;;
12461 PKG_CONFIG=$ac_pt_PKG_CONFIG
12464 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12468 if test -n "$PKG_CONFIG"; then
12469 _pkg_min_version=0.9.0
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12471 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12472 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
12483 $as_echo_n "checking for RM macro... " >&6; }
12484 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
12485 if test "x$_predefined_rm" = "x"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
12487 $as_echo "no predefined RM" >&6; }
12488 # Extract the first word of "rm", so it can be a program name with args.
12489 set dummy rm; ac_word=$2
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if ${ac_cv_prog_RM+:} false; then :
12493 $as_echo_n "(cached) " >&6
12495 if test -n "$RM"; then
12496 ac_cv_prog_RM="$RM" # Let the user override the test.
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12505 ac_cv_prog_RM="rm -f"
12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516 if test -n "$RM"; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12518 $as_echo "$RM" >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
12527 $as_echo "$_predefined_rm" >&6; }
12538 if test "$os_win32" = "yes"; then
12547 if test "$os_win32" = "yes"; then
12548 # Extract the first word of "lib.exe", so it can be a program name with args.
12549 set dummy lib.exe; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if ${ac_cv_prog_ms_librarian+:} false; then :
12553 $as_echo_n "(cached) " >&6
12555 if test -n "$ms_librarian"; then
12556 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_prog_ms_librarian="yes"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
12576 ms_librarian=$ac_cv_prog_ms_librarian
12577 if test -n "$ms_librarian"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
12579 $as_echo "$ms_librarian" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12587 if test x$ms_librarian = xyes; then
12588 MS_LIB_AVAILABLE_TRUE=
12589 MS_LIB_AVAILABLE_FALSE='#'
12591 MS_LIB_AVAILABLE_TRUE='#'
12592 MS_LIB_AVAILABLE_FALSE=
12597 if test "x$GCC" = "xyes"; then
12598 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
12599 -Wmissing-prototypes -Wmissing-declarations \
12600 -Wnested-externs -fno-strict-aliasing"
12602 cat >>confdefs.h <<_ACEOF
12603 #define HAVE_WARNING_CPP_DIRECTIVE 1
12611 # Put a plausible default for CC_FOR_BUILD in Makefile.
12612 if test -z "$CC_FOR_BUILD"; then
12613 if test "x$cross_compiling" = "xno"; then
12614 CC_FOR_BUILD='$(CC)'
12620 # Also set EXEEXT_FOR_BUILD.
12621 if test "x$cross_compiling" = "xno"; then
12622 EXEEXT_FOR_BUILD='$(EXEEXT)'
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12625 $as_echo_n "checking for build system executable suffix... " >&6; }
12626 if ${bfd_cv_build_exeext+:} false; then :
12627 $as_echo_n "(cached) " >&6
12630 echo 'int main () { return 0; }' > conftest.c
12631 bfd_cv_build_exeext=
12632 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12633 for file in conftest.*; do
12635 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12636 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12640 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12643 $as_echo "$bfd_cv_build_exeext" >&6; }
12644 EXEEXT_FOR_BUILD=""
12645 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12649 if test $cross_compiling = yes; then
12650 CROSS_COMPILING_TRUE=
12651 CROSS_COMPILING_FALSE='#'
12653 CROSS_COMPILING_TRUE='#'
12654 CROSS_COMPILING_FALSE=
12657 if test "$enable_shared" = "yes"; then
12658 ENABLE_SHARED_TRUE=
12659 ENABLE_SHARED_FALSE='#'
12661 ENABLE_SHARED_TRUE='#'
12662 ENABLE_SHARED_FALSE=
12668 # Check whether --with-arch was given.
12669 if test "${with_arch+set}" = set; then :
12670 withval=$with_arch; arch="$withval"
12676 if test "x$arch" != xauto; then
12678 cat >>confdefs.h <<_ACEOF
12679 #define FC_ARCHITECTURE "$arch"
12686 # Checks for header files.
12687 ac_header_dirent=no
12688 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12689 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12691 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12692 if eval \${$as_ac_Header+:} false; then :
12693 $as_echo_n "(cached) " >&6
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 #include <sys/types.h>
12709 if ac_fn_c_try_compile "$LINENO"; then :
12710 eval "$as_ac_Header=yes"
12712 eval "$as_ac_Header=no"
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 eval ac_res=\$$as_ac_Header
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12718 $as_echo "$ac_res" >&6; }
12719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12720 cat >>confdefs.h <<_ACEOF
12721 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12724 ac_header_dirent=$ac_hdr; break
12728 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12729 if test $ac_header_dirent = dirent.h; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12731 $as_echo_n "checking for library containing opendir... " >&6; }
12732 if ${ac_cv_search_opendir+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 ac_func_search_save_LIBS=$LIBS
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12754 for ac_lib in '' dir; do
12755 if test -z "$ac_lib"; then
12756 ac_res="none required"
12759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_search_opendir=$ac_res
12764 rm -f core conftest.err conftest.$ac_objext \
12766 if ${ac_cv_search_opendir+:} false; then :
12770 if ${ac_cv_search_opendir+:} false; then :
12773 ac_cv_search_opendir=no
12775 rm conftest.$ac_ext
12776 LIBS=$ac_func_search_save_LIBS
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12779 $as_echo "$ac_cv_search_opendir" >&6; }
12780 ac_res=$ac_cv_search_opendir
12781 if test "$ac_res" != no; then :
12782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12788 $as_echo_n "checking for library containing opendir... " >&6; }
12789 if ${ac_cv_search_opendir+:} false; then :
12790 $as_echo_n "(cached) " >&6
12792 ac_func_search_save_LIBS=$LIBS
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12811 for ac_lib in '' x; do
12812 if test -z "$ac_lib"; then
12813 ac_res="none required"
12816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12818 if ac_fn_c_try_link "$LINENO"; then :
12819 ac_cv_search_opendir=$ac_res
12821 rm -f core conftest.err conftest.$ac_objext \
12823 if ${ac_cv_search_opendir+:} false; then :
12827 if ${ac_cv_search_opendir+:} false; then :
12830 ac_cv_search_opendir=no
12832 rm conftest.$ac_ext
12833 LIBS=$ac_func_search_save_LIBS
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12836 $as_echo "$ac_cv_search_opendir" >&6; }
12837 ac_res=$ac_cv_search_opendir
12838 if test "$ac_res" != no; then :
12839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12846 $as_echo_n "checking for ANSI C header files... " >&6; }
12847 if ${ac_cv_header_stdc+:} false; then :
12848 $as_echo_n "(cached) " >&6
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #include <stdlib.h>
12853 #include <stdarg.h>
12854 #include <string.h>
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866 ac_cv_header_stdc=yes
12868 ac_cv_header_stdc=no
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 if test $ac_cv_header_stdc = yes; then
12873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12876 #include <string.h>
12879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12880 $EGREP "memchr" >/dev/null 2>&1; then :
12883 ac_cv_header_stdc=no
12889 if test $ac_cv_header_stdc = yes; then
12890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893 #include <stdlib.h>
12896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12897 $EGREP "free" >/dev/null 2>&1; then :
12900 ac_cv_header_stdc=no
12906 if test $ac_cv_header_stdc = yes; then
12907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12908 if test "$cross_compiling" = yes; then :
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12914 #include <stdlib.h>
12915 #if ((' ' & 0x0FF) == 0x020)
12916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12919 # define ISLOWER(c) \
12920 (('a' <= (c) && (c) <= 'i') \
12921 || ('j' <= (c) && (c) <= 'r') \
12922 || ('s' <= (c) && (c) <= 'z'))
12923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12931 for (i = 0; i < 256; i++)
12932 if (XOR (islower (i), ISLOWER (i))
12933 || toupper (i) != TOUPPER (i))
12938 if ac_fn_c_try_run "$LINENO"; then :
12941 ac_cv_header_stdc=no
12943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12944 conftest.$ac_objext conftest.beam conftest.$ac_ext
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12950 $as_echo "$ac_cv_header_stdc" >&6; }
12951 if test $ac_cv_header_stdc = yes; then
12953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12957 for ac_header in fcntl.h regex.h stdlib.h string.h unistd.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
12959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12962 cat >>confdefs.h <<_ACEOF
12963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12970 # ------ AX CREATE STDINT H -------------------------------------
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
12972 $as_echo_n "checking for stdint types... " >&6; }
12973 ac_stdint_h=`echo src/fcstdint.h`
12974 # try to shortcircuit - if the default include path of the compiler
12975 # can find a "stdint.h" header then we assume that all compilers can.
12976 if ${ac_cv_header_stdint_t+:} false; then :
12977 $as_echo_n "(cached) " >&6
12980 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
12981 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
12982 old_CFLAGS="$CFLAGS" ; CFLAGS=""
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985 #include <stdint.h>
12989 int_least32_t v = 0;
12994 if ac_fn_c_try_compile "$LINENO"; then :
12995 ac_cv_stdint_result="(assuming C99 compatible system)"
12996 ac_cv_header_stdint_t="stdint.h";
12998 ac_cv_header_stdint_t=""
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 #include <stdint.h>
13009 int_least32_t v = 0;
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13016 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 CXXFLAGS="$old_CXXFLAGS"
13021 CPPFLAGS="$old_CPPFLAGS"
13022 CFLAGS="$old_CFLAGS"
13026 v="... $ac_cv_header_stdint_h"
13027 if test "$ac_stdint_h" = "stdint.h" ; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13029 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13030 elif test "$ac_stdint_h" = "inttypes.h" ; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13032 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
13033 elif test "_$ac_cv_header_stdint_t" = "_" ; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
13035 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
13037 ac_cv_header_stdint="$ac_cv_header_stdint_t"
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
13039 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
13042 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
13045 inttype_headers=`echo | sed -e 's/,/ /g'`
13047 ac_cv_stdint_result="(no helpful system typedefs seen)"
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13050 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13051 if ${ac_cv_header_stdint_x+:} false; then :
13052 $as_echo_n "(cached) " >&6
13055 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13057 $as_echo "(..)" >&6; }
13058 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
13060 unset ac_cv_type_uintptr_t
13061 unset ac_cv_type_uint64_t
13062 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
13064 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13065 ac_cv_header_stdint_x=$i
13070 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13072 if test "x$ac_cv_type_uint64_t" = xyes; then :
13078 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13082 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
13086 $as_echo "$ac_cv_header_stdint_x" >&6; }
13089 if test "_$ac_cv_header_stdint_x" = "_" ; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13092 $as_echo_n "checking for stdint uint32_t... " >&6; }
13093 if ${ac_cv_header_stdint_o+:} false; then :
13094 $as_echo_n "(cached) " >&6
13097 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13099 $as_echo "(..)" >&6; }
13100 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
13102 unset ac_cv_type_uint32_t
13103 unset ac_cv_type_uint64_t
13104 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
13106 if test "x$ac_cv_type_uint32_t" = xyes; then :
13107 ac_cv_header_stdint_o=$i
13112 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13114 if test "x$ac_cv_type_uint64_t" = xyes; then :
13120 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13125 $as_echo_n "checking for stdint uint32_t... " >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
13129 $as_echo "$ac_cv_header_stdint_o" >&6; }
13133 if test "_$ac_cv_header_stdint_x" = "_" ; then
13134 if test "_$ac_cv_header_stdint_o" = "_" ; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13137 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13138 if ${ac_cv_header_stdint_u+:} false; then :
13139 $as_echo_n "(cached) " >&6
13142 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13144 $as_echo "(..)" >&6; }
13145 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
13146 unset ac_cv_type_u_int32_t
13147 unset ac_cv_type_u_int64_t
13148 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
13150 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13151 ac_cv_header_stdint_u=$i
13156 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
13158 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13164 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13169 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
13173 $as_echo "$ac_cv_header_stdint_u" >&6; }
13177 if test "_$ac_cv_header_stdint_x" = "_" ; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
13179 $as_echo_n "checking for stdint datatype model... " >&6; }
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13181 $as_echo "(..)" >&6; }
13183 # The cast to long int works around a bug in the HP C Compiler
13184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13186 # This bug is HP SR number 8606223364.
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13188 $as_echo_n "checking size of char... " >&6; }
13189 if ${ac_cv_sizeof_char+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13195 if test "$ac_cv_type_char" = yes; then
13196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13198 as_fn_error 77 "cannot compute sizeof (char)
13199 See \`config.log' for more details" "$LINENO" 5; }
13201 ac_cv_sizeof_char=0
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13207 $as_echo "$ac_cv_sizeof_char" >&6; }
13211 cat >>confdefs.h <<_ACEOF
13212 #define SIZEOF_CHAR $ac_cv_sizeof_char
13216 # The cast to long int works around a bug in the HP C Compiler
13217 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13218 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13219 # This bug is HP SR number 8606223364.
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13221 $as_echo_n "checking size of short... " >&6; }
13222 if ${ac_cv_sizeof_short+:} false; then :
13223 $as_echo_n "(cached) " >&6
13225 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13228 if test "$ac_cv_type_short" = yes; then
13229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13231 as_fn_error 77 "cannot compute sizeof (short)
13232 See \`config.log' for more details" "$LINENO" 5; }
13234 ac_cv_sizeof_short=0
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13240 $as_echo "$ac_cv_sizeof_short" >&6; }
13244 cat >>confdefs.h <<_ACEOF
13245 #define SIZEOF_SHORT $ac_cv_sizeof_short
13249 # The cast to long int works around a bug in the HP C Compiler
13250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13252 # This bug is HP SR number 8606223364.
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13254 $as_echo_n "checking size of int... " >&6; }
13255 if ${ac_cv_sizeof_int+:} false; then :
13256 $as_echo_n "(cached) " >&6
13258 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13261 if test "$ac_cv_type_int" = yes; then
13262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13264 as_fn_error 77 "cannot compute sizeof (int)
13265 See \`config.log' for more details" "$LINENO" 5; }
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13273 $as_echo "$ac_cv_sizeof_int" >&6; }
13277 cat >>confdefs.h <<_ACEOF
13278 #define SIZEOF_INT $ac_cv_sizeof_int
13282 # The cast to long int works around a bug in the HP C Compiler
13283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13285 # This bug is HP SR number 8606223364.
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13287 $as_echo_n "checking size of long... " >&6; }
13288 if ${ac_cv_sizeof_long+:} false; then :
13289 $as_echo_n "(cached) " >&6
13291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13294 if test "$ac_cv_type_long" = yes; then
13295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13297 as_fn_error 77 "cannot compute sizeof (long)
13298 See \`config.log' for more details" "$LINENO" 5; }
13300 ac_cv_sizeof_long=0
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13306 $as_echo "$ac_cv_sizeof_long" >&6; }
13310 cat >>confdefs.h <<_ACEOF
13311 #define SIZEOF_LONG $ac_cv_sizeof_long
13315 # The cast to long int works around a bug in the HP C Compiler
13316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13318 # This bug is HP SR number 8606223364.
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13320 $as_echo_n "checking size of void*... " >&6; }
13321 if ${ac_cv_sizeof_voidp+:} false; then :
13322 $as_echo_n "(cached) " >&6
13324 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
13327 if test "$ac_cv_type_voidp" = yes; then
13328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13330 as_fn_error 77 "cannot compute sizeof (void*)
13331 See \`config.log' for more details" "$LINENO" 5; }
13333 ac_cv_sizeof_voidp=0
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13339 $as_echo "$ac_cv_sizeof_voidp" >&6; }
13343 cat >>confdefs.h <<_ACEOF
13344 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13348 ac_cv_char_data_model=""
13349 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
13350 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
13351 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
13352 ac_cv_long_data_model=""
13353 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
13354 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
13355 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
13357 $as_echo_n "checking data model... " >&6; }
13358 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
13359 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
13360 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
13361 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
13362 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
13363 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
13364 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
13365 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
13366 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
13367 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
13368 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
13369 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
13370 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
13371 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
13372 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
13373 222/*|333/*|444/*|666/*|888/*) :
13374 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
13375 *) ac_cv_data_model="none" ; n="very unusual model" ;;
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
13378 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
13382 if test "_$ac_cv_header_stdint_x" != "_" ; then
13383 ac_cv_header_stdint="$ac_cv_header_stdint_x"
13384 elif test "_$ac_cv_header_stdint_o" != "_" ; then
13385 ac_cv_header_stdint="$ac_cv_header_stdint_o"
13386 elif test "_$ac_cv_header_stdint_u" != "_" ; then
13387 ac_cv_header_stdint="$ac_cv_header_stdint_u"
13389 ac_cv_header_stdint="stddef.h"
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
13393 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
13395 $as_echo "($ac_cv_header_stdint)" >&6; }
13396 unset ac_cv_type_int_least32_t
13397 unset ac_cv_type_int_fast32_t
13398 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
13400 if test "x$ac_cv_type_int_least32_t" = xyes; then :
13404 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
13406 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13410 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
13412 if test "x$ac_cv_type_intmax_t" = xyes; then :
13417 fi # shortcircut to system "stdint.h"
13418 # ------------------ PREPARE VARIABLES ------------------------------
13419 if test "$GCC" = "yes" ; then
13420 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
13422 ac_cv_stdint_message="using $CC"
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
13426 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
13428 # ----------------- DONE inttypes.h checks START header -------------
13429 ac_config_commands="$ac_config_commands $ac_stdint_h"
13433 # Checks for typedefs, structures, and compiler characteristics.
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13435 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13436 if ${ac_cv_c_const+:} false; then :
13437 $as_echo_n "(cached) " >&6
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13446 #ifndef __cplusplus
13447 /* Ultrix mips cc rejects this sort of thing. */
13448 typedef int charset[2];
13449 const charset cs = { 0, 0 };
13450 /* SunOS 4.1.1 cc rejects this. */
13451 char const *const *pcpcc;
13453 /* NEC SVR4.0.2 mips cc rejects this. */
13454 struct point {int x, y;};
13455 static struct point const zero = {0,0};
13456 /* AIX XL C 1.02.0.0 rejects this.
13457 It does not let you subtract one const X* pointer from another in
13458 an arm of an if-expression whose if-part is not a constant
13460 const char *g = "string";
13461 pcpcc = &g + (g ? g-g : 0);
13462 /* HPUX 7.0 cc rejects these. */
13464 ppc = (char**) pcpcc;
13465 pcpcc = (char const *const *) ppc;
13466 { /* SCO 3.2v4 cc rejects this sort of thing. */
13469 char const *s = 0 ? (char *) 0 : (char const *) 0;
13474 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13475 int x[] = {25, 17};
13476 const int *foo = &x[0];
13479 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13480 typedef const int *iptr;
13484 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13485 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13486 struct s { int j; const int *ap[3]; } bx;
13487 struct s *b = &bx; b->j = 5;
13489 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13490 const int foo = 10;
13491 if (!foo) return 0;
13493 return !cs[0] && !zero.x;
13500 if ac_fn_c_try_compile "$LINENO"; then :
13505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13508 $as_echo "$ac_cv_c_const" >&6; }
13509 if test $ac_cv_c_const = no; then
13511 $as_echo "#define const /**/" >>confdefs.h
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13516 $as_echo_n "checking for inline... " >&6; }
13517 if ${ac_cv_c_inline+:} false; then :
13518 $as_echo_n "(cached) " >&6
13521 for ac_kw in inline __inline__ __inline; do
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 #ifndef __cplusplus
13526 static $ac_kw foo_t static_foo () {return 0; }
13527 $ac_kw foo_t foo () {return 0; }
13531 if ac_fn_c_try_compile "$LINENO"; then :
13532 ac_cv_c_inline=$ac_kw
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 test "$ac_cv_c_inline" != no && break
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13540 $as_echo "$ac_cv_c_inline" >&6; }
13542 case $ac_cv_c_inline in
13545 case $ac_cv_c_inline in
13547 *) ac_val=$ac_cv_c_inline;;
13549 cat >>confdefs.h <<_ACEOF
13550 #ifndef __cplusplus
13551 #define inline $ac_val
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13559 $as_echo_n "checking for flexible array members... " >&6; }
13560 if ${ac_cv_c_flexmember+:} false; then :
13561 $as_echo_n "(cached) " >&6
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 #include <stdlib.h>
13567 #include <stddef.h>
13568 struct s { int n; double d[]; };
13572 int m = getchar ();
13573 struct s *p = malloc (offsetof (struct s, d)
13574 + m * sizeof (double));
13576 return p->d != (double *) NULL;
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582 ac_cv_c_flexmember=yes
13584 ac_cv_c_flexmember=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13589 $as_echo "$ac_cv_c_flexmember" >&6; }
13590 if test $ac_cv_c_flexmember = yes; then
13592 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13595 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13599 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13600 if test "x$ac_cv_type_pid_t" = xyes; then :
13604 cat >>confdefs.h <<_ACEOF
13611 # Checks for library functions.
13612 for ac_func in vprintf
13614 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13615 if test "x$ac_cv_func_vprintf" = xyes; then :
13616 cat >>confdefs.h <<_ACEOF
13617 #define HAVE_VPRINTF 1
13620 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13621 if test "x$ac_cv_func__doprnt" = xyes; then :
13623 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13634 for ac_header in $ac_header_list
13636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13637 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13639 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13655 for ac_func in getpagesize
13657 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13658 if test "x$ac_cv_func_getpagesize" = xyes; then :
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_GETPAGESIZE 1
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13667 $as_echo_n "checking for working mmap... " >&6; }
13668 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13669 $as_echo_n "(cached) " >&6
13671 if test "$cross_compiling" = yes; then :
13672 ac_cv_func_mmap_fixed_mapped=no
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 $ac_includes_default
13677 /* malloc might have been renamed as rpl_malloc. */
13680 /* Thanks to Mike Haertel and Jim Avera for this test.
13681 Here is a matrix of mmap possibilities:
13682 mmap private not fixed
13683 mmap private fixed at somewhere currently unmapped
13684 mmap private fixed at somewhere already mapped
13685 mmap shared not fixed
13686 mmap shared fixed at somewhere currently unmapped
13687 mmap shared fixed at somewhere already mapped
13688 For private mappings, we should verify that changes cannot be read()
13689 back from the file, nor mmap's back from the file at a different
13690 address. (There have been systems where private was not correctly
13691 implemented like the infamous i386 svr4.0, and systems where the
13692 VM page cache was not coherent with the file system buffer cache
13693 like early versions of FreeBSD and possibly contemporary NetBSD.)
13694 For shared mappings, we should conversely verify that changes get
13695 propagated back to all the places they're supposed to be.
13697 Grep wants private fixed already mapped.
13698 The main things grep needs to know about mmap are:
13699 * does it exist and is it safe to write into the mmap'd area
13700 * how to use it (BSD variants) */
13703 #include <sys/mman.h>
13705 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13709 /* This mess was copied from the GNU getpagesize.h. */
13710 #ifndef HAVE_GETPAGESIZE
13711 # ifdef _SC_PAGESIZE
13712 # define getpagesize() sysconf(_SC_PAGESIZE)
13713 # else /* no _SC_PAGESIZE */
13714 # ifdef HAVE_SYS_PARAM_H
13715 # include <sys/param.h>
13716 # ifdef EXEC_PAGESIZE
13717 # define getpagesize() EXEC_PAGESIZE
13718 # else /* no EXEC_PAGESIZE */
13720 # define getpagesize() NBPG * CLSIZE
13723 # endif /* no CLSIZE */
13724 # else /* no NBPG */
13726 # define getpagesize() NBPC
13727 # else /* no NBPC */
13729 # define getpagesize() PAGESIZE
13730 # endif /* PAGESIZE */
13731 # endif /* no NBPC */
13732 # endif /* no NBPG */
13733 # endif /* no EXEC_PAGESIZE */
13734 # else /* no HAVE_SYS_PARAM_H */
13735 # define getpagesize() 8192 /* punt totally */
13736 # endif /* no HAVE_SYS_PARAM_H */
13737 # endif /* no _SC_PAGESIZE */
13739 #endif /* no HAVE_GETPAGESIZE */
13744 char *data, *data2, *data3;
13745 const char *cdata2;
13749 pagesize = getpagesize ();
13751 /* First, make a file with some known garbage in it. */
13752 data = (char *) malloc (pagesize);
13755 for (i = 0; i < pagesize; ++i)
13756 *(data + i) = rand ();
13758 fd = creat ("conftest.mmap", 0600);
13761 if (write (fd, data, pagesize) != pagesize)
13765 /* Next, check that the tail of a page is zero-filled. File must have
13766 non-zero length, otherwise we risk SIGBUS for entire page. */
13767 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13771 if (write (fd2, cdata2, 1) != 1)
13773 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13774 if (data2 == MAP_FAILED)
13776 for (i = 0; i < pagesize; ++i)
13780 if (munmap (data2, pagesize))
13783 /* Next, try to mmap the file at a fixed address which already has
13784 something else allocated at it. If we can, also make sure that
13785 we see the same garbage. */
13786 fd = open ("conftest.mmap", O_RDWR);
13789 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13790 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13792 for (i = 0; i < pagesize; ++i)
13793 if (*(data + i) != *(data2 + i))
13796 /* Finally, make sure that changes to the mapped area do not
13797 percolate back to the file as seen by read(). (This is a bug on
13798 some variants of i386 svr4.0.) */
13799 for (i = 0; i < pagesize; ++i)
13800 *(data2 + i) = *(data2 + i) + 1;
13801 data3 = (char *) malloc (pagesize);
13804 if (read (fd, data3, pagesize) != pagesize)
13806 for (i = 0; i < pagesize; ++i)
13807 if (*(data + i) != *(data3 + i))
13813 if ac_fn_c_try_run "$LINENO"; then :
13814 ac_cv_func_mmap_fixed_mapped=yes
13816 ac_cv_func_mmap_fixed_mapped=no
13818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13819 conftest.$ac_objext conftest.beam conftest.$ac_ext
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13824 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13825 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13827 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13830 rm -f conftest.mmap conftest.txt
13832 for ac_func in geteuid getuid link memmove memset mkstemp mkostemp _mktemp_s strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r regcomp regerror regexec regfree fstatvfs fstatfs lstat
13834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13837 cat >>confdefs.h <<_ACEOF
13838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13845 fc_saved_CFLAGS="$CFLAGS"
13846 CFLAGS="$CFLAGS $WARN_CFLAGS -Werror"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
13848 $as_echo_n "checking for posix_fadvise... " >&6; }
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13854 return posix_fadvise(0, 0, 0, 0);
13858 if ac_fn_c_try_link "$LINENO"; then :
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13861 $as_echo "yes" >&6; }
13863 $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 CFLAGS="$fc_saved_CFLAGS"
13875 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
13876 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
13878 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
13886 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
13888 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
13890 cat >>confdefs.h <<_ACEOF
13891 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
13898 if test "x$ac_cv_func_fstatfs" = "xyes"; then
13899 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
13900 #ifdef HAVE_SYS_VFS_H
13901 #include <sys/vfs.h>
13903 #ifdef HAVE_SYS_STATFS_H
13904 #include <sys/statfs.h>
13906 #ifdef HAVE_SYS_PARAM_H
13907 #include <sys/param.h>
13909 #ifdef HAVE_SYS_MOUNT_H
13910 #include <sys/mount.h>
13913 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_STRUCT_STATFS_F_FLAGS 1
13921 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
13922 #ifdef HAVE_SYS_VFS_H
13923 #include <sys/vfs.h>
13925 #ifdef HAVE_SYS_STATFS_H
13926 #include <sys/statfs.h>
13928 #ifdef HAVE_SYS_PARAM_H
13929 #include <sys/param.h>
13931 #ifdef HAVE_SYS_MOUNT_H
13932 #include <sys/mount.h>
13935 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
13945 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
13947 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
13949 cat >>confdefs.h <<_ACEOF
13950 #define HAVE_STRUCT_DIRENT_D_TYPE 1
13959 if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then
13961 $as_echo "#define USE_REGEX /**/" >>confdefs.h
13968 # Check whether --enable-iconv was given.
13969 if test "${enable_iconv+set}" = set; then :
13970 enableval=$enable_iconv;
13976 # Check whether --with-libiconv was given.
13977 if test "${with_libiconv+set}" = set; then :
13978 withval=$with_libiconv; if test "x$withval" = "xyes"; then
13979 libiconv_prefix=$prefix
13981 libiconv_prefix=$withval
13984 libiconv_prefix=auto
13988 # Check whether --with-libiconv-includes was given.
13989 if test "${with_libiconv_includes+set}" = set; then :
13990 withval=$with_libiconv_includes; libiconv_includes=$withval
13992 libiconv_includes=auto
13996 # Check whether --with-libiconv-lib was given.
13997 if test "${with_libiconv_lib+set}" = set; then :
13998 withval=$with_libiconv_lib; libiconv_lib=$withval
14004 # if no libiconv,libiconv-includes,libiconv-lib are specified,
14005 # libc's iconv has a priority.
14006 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
14007 libiconv_cflags="-I${libiconv_includes}"
14008 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
14009 libiconv_cflags="-I${libiconv_prefix}/include"
14014 if test "x$libiconv_cflags" != "x"; then
14015 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
14016 libiconv_libs="-L${libiconv_lib} -liconv"
14017 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
14018 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
14020 libiconv_libs="-liconv"
14025 if test "x$enable_iconv" != "xno"; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
14027 $as_echo_n "checking for a usable iconv... " >&6; }
14028 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
14029 iconvsaved_CFLAGS="$CFLAGS"
14030 iconvsaved_LIBS="$LIBS"
14031 CFLAGS="$CFLAGS $libiconv_cflags"
14032 LIBS="$LIBS $libiconv_libs"
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14040 iconv_open ("from", "to");
14045 if ac_fn_c_try_link "$LINENO"; then :
14046 iconv_type="libiconv"
14051 rm -f core conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
14054 CFLAGS="$iconvsaved_CFLAGS"
14055 LIBS="$iconvsaved_LIBS"
14056 ICONV_CFLAGS="$libiconv_cflags"
14057 ICONV_LIBS="$libiconv_libs"
14059 if test "x$use_iconv" = "x0"; then
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14066 iconv_open ("from", "to");
14071 if ac_fn_c_try_link "$LINENO"; then :
14075 iconv_type="not found"
14078 rm -f core conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
14083 $as_echo "$iconv_type" >&6; }
14088 cat >>confdefs.h <<_ACEOF
14089 #define USE_ICONV $use_iconv
14093 # Checks for FreeType
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
14098 $as_echo_n "checking for FREETYPE... " >&6; }
14100 if test -n "$FREETYPE_CFLAGS"; then
14101 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
14102 elif test -n "$PKG_CONFIG"; then
14103 if test -n "$PKG_CONFIG" && \
14104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14105 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14108 test $ac_status = 0; }; then
14109 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
14110 test "x$?" != "x0" && pkg_failed=yes
14117 if test -n "$FREETYPE_LIBS"; then
14118 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
14119 elif test -n "$PKG_CONFIG"; then
14120 if test -n "$PKG_CONFIG" && \
14121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14122 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14125 test $ac_status = 0; }; then
14126 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
14127 test "x$?" != "x0" && pkg_failed=yes
14137 if test $pkg_failed = yes; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14142 _pkg_short_errors_supported=yes
14144 _pkg_short_errors_supported=no
14146 if test $_pkg_short_errors_supported = yes; then
14147 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
14149 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
14151 # Put the nasty error message in config.log where it belongs
14152 echo "$FREETYPE_PKG_ERRORS" >&5
14154 as_fn_error $? "Package requirements (freetype2) were not met:
14156 $FREETYPE_PKG_ERRORS
14158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14159 installed software in a non-standard prefix.
14161 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14162 and FREETYPE_LIBS to avoid the need to call pkg-config.
14163 See the pkg-config man page for more details." "$LINENO" 5
14164 elif test $pkg_failed = untried; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14169 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14170 is in your PATH or set the PKG_CONFIG environment variable to the full
14171 path to pkg-config.
14173 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14174 and FREETYPE_LIBS to avoid the need to call pkg-config.
14175 See the pkg-config man page for more details.
14177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14178 See \`config.log' for more details" "$LINENO" 5; }
14180 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
14181 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183 $as_echo "yes" >&6; }
14190 fontconfig_save_libs="$LIBS"
14191 fontconfig_save_cflags="$CFLAGS"
14192 LIBS="$LIBS $FREETYPE_LIBS"
14193 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
14194 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size
14196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14199 cat >>confdefs.h <<_ACEOF
14200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14206 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
14207 #include FT_FREETYPE_H
14209 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
14210 HAVE_FT_BITMAP_SIZE_Y_PPEM=1
14212 HAVE_FT_BITMAP_SIZE_Y_PPEM=0
14216 cat >>confdefs.h <<_ACEOF
14217 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
14220 CFLAGS="$fontconfig_save_cflags"
14221 LIBS="$fontconfig_save_libs"
14224 # Check expat configuration
14227 # Check whether --with-expat was given.
14228 if test "${with_expat+set}" = set; then :
14229 withval=$with_expat; expat_prefix=$withval
14235 # Check whether --with-expat-includes was given.
14236 if test "${with_expat_includes+set}" = set; then :
14237 withval=$with_expat_includes; expat_includes=$withval
14239 expat_includes=auto
14243 # Check whether --with-expat-lib was given.
14244 if test "${with_expat_lib+set}" = set; then :
14245 withval=$with_expat_lib; expat_lib=$withval
14251 if test "$enable_libxml2" != "yes"; then
14252 use_pkgconfig_for_expat=yes
14253 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
14257 $as_echo_n "checking for EXPAT... " >&6; }
14259 if test -n "$EXPAT_CFLAGS"; then
14260 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
14261 elif test -n "$PKG_CONFIG"; then
14262 if test -n "$PKG_CONFIG" && \
14263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14264 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14267 test $ac_status = 0; }; then
14268 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
14269 test "x$?" != "x0" && pkg_failed=yes
14276 if test -n "$EXPAT_LIBS"; then
14277 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
14278 elif test -n "$PKG_CONFIG"; then
14279 if test -n "$PKG_CONFIG" && \
14280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14281 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14284 test $ac_status = 0; }; then
14285 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
14286 test "x$?" != "x0" && pkg_failed=yes
14296 if test $pkg_failed = yes; then
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14301 _pkg_short_errors_supported=yes
14303 _pkg_short_errors_supported=no
14305 if test $_pkg_short_errors_supported = yes; then
14306 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
14308 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
14310 # Put the nasty error message in config.log where it belongs
14311 echo "$EXPAT_PKG_ERRORS" >&5
14313 use_pkgconfig_for_expat=no
14314 elif test $pkg_failed = untried; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14317 use_pkgconfig_for_expat=no
14319 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
14320 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14322 $as_echo "yes" >&6; }
14326 use_pkgconfig_for_expat=no
14328 if test "x$use_pkgconfig_for_expat" = "xno"; then
14329 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
14330 EXPAT_CFLAGS="-I${expat_includes}"
14331 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
14332 EXPAT_CFLAGS="-I${expat_prefix}/include"
14336 if test "$expat_lib" != "auto"; then
14337 EXPAT_LIBS="-L${expat_lib} -lexpat"
14338 elif test "$expat_prefix" != "auto"; then
14339 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
14341 EXPAT_LIBS="-lexpat"
14345 expatsaved_CPPFLAGS="$CPPFLAGS"
14346 expatsaved_LIBS="$LIBS"
14347 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
14348 LIBS="$LIBS $EXPAT_LIBS"
14350 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
14351 if test "x$ac_cv_header_expat_h" = xyes; then :
14356 if test "$ac_cv_header_expat_h" = "no"; then
14357 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
14358 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
14363 if test "$ac_cv_header_xmlparse_h" = "yes"; then
14367 cat >>confdefs.h <<_ACEOF
14368 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
14373 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14376 for ac_func in XML_SetDoctypeDeclHandler
14378 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
14379 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
14380 cat >>confdefs.h <<_ACEOF
14381 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
14387 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
14389 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14391 CPPFLAGS="$expatsaved_CPPFLAGS"
14392 LIBS="$expatsaved_LIBS"
14399 # Check libxml2 configuration
14401 # Check whether --enable-libxml2 was given.
14402 if test "${enable_libxml2+set}" = set; then :
14403 enableval=$enable_libxml2;
14407 if test "$enable_libxml2" = "yes"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
14411 $as_echo_n "checking for LIBXML2... " >&6; }
14413 if test -n "$LIBXML2_CFLAGS"; then
14414 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
14415 elif test -n "$PKG_CONFIG"; then
14416 if test -n "$PKG_CONFIG" && \
14417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14418 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421 test $ac_status = 0; }; then
14422 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
14423 test "x$?" != "x0" && pkg_failed=yes
14430 if test -n "$LIBXML2_LIBS"; then
14431 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
14432 elif test -n "$PKG_CONFIG"; then
14433 if test -n "$PKG_CONFIG" && \
14434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14435 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; }; then
14439 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
14440 test "x$?" != "x0" && pkg_failed=yes
14450 if test $pkg_failed = yes; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452 $as_echo "no" >&6; }
14454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14455 _pkg_short_errors_supported=yes
14457 _pkg_short_errors_supported=no
14459 if test $_pkg_short_errors_supported = yes; then
14460 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14462 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14464 # Put the nasty error message in config.log where it belongs
14465 echo "$LIBXML2_PKG_ERRORS" >&5
14467 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
14469 $LIBXML2_PKG_ERRORS
14471 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14472 installed software in a non-standard prefix.
14474 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14475 and LIBXML2_LIBS to avoid the need to call pkg-config.
14476 See the pkg-config man page for more details." "$LINENO" 5
14477 elif test $pkg_failed = untried; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14482 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14483 is in your PATH or set the PKG_CONFIG environment variable to the full
14484 path to pkg-config.
14486 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14487 and LIBXML2_LIBS to avoid the need to call pkg-config.
14488 See the pkg-config man page for more details.
14490 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14491 See \`config.log' for more details" "$LINENO" 5; }
14493 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
14494 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14496 $as_echo "yes" >&6; }
14500 cat >>confdefs.h <<_ACEOF
14501 #define ENABLE_LIBXML2 1
14508 fc_saved_CFLAGS="$CFLAGS"
14509 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
14511 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14515 #include <libxml/xmlversion.h>
14516 #if !defined(LIBXML_SAX1_ENABLED)
14517 # include "error: No SAX1 support in libxml2"
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14523 $as_echo "found" >&6; }
14526 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 CFLAGS="$fc_saved_CFLAGS"
14533 # Set default font directory
14537 # Check whether --with-default-fonts was given.
14538 if test "${with_default_fonts+set}" = set; then :
14539 withval=$with_default_fonts; default_fonts="$withval"
14545 case "$default_fonts" in
14547 if test "$os_win32" = "yes"; then
14548 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
14550 cat >>confdefs.h <<_ACEOF
14551 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
14555 FC_DEFAULT_FONTS="/usr/share/fonts"
14557 cat >>confdefs.h <<_ACEOF
14558 #define FC_DEFAULT_FONTS "/usr/share/fonts"
14564 FC_DEFAULT_FONTS="$default_fonts"
14566 cat >>confdefs.h <<_ACEOF
14567 #define FC_DEFAULT_FONTS "$default_fonts"
14576 # Add more fonts if available. By default, add only the directories
14577 # with outline fonts; those with bitmaps can be added as desired in
14578 # local.conf or ~/.fonts.conf
14581 # Check whether --with-add-fonts was given.
14582 if test "${with_add_fonts+set}" = set; then :
14583 withval=$with_add_fonts; add_fonts="$withval"
14589 case "$add_fonts" in
14592 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
14593 case x"$FC_ADD_FONTS" in
14596 if test -d "$sub"; then
14597 case x$FC_ADD_FONTS in
14599 FC_ADD_FONTS="$sub"
14602 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
14610 cat >>confdefs.h <<_ACEOF
14611 #define FC_ADD_FONTS "$add_fonts"
14619 FC_ADD_FONTS="$add_fonts"
14621 cat >>confdefs.h <<_ACEOF
14622 #define FC_ADD_FONTS "$add_fonts"
14632 case "$FC_ADD_FONTS" in
14636 FC_FONTPATH=`echo $FC_ADD_FONTS |
14637 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
14644 # Set default cache directory path
14647 # Check whether --with-cache-dir was given.
14648 if test "${with_cache_dir+set}" = set; then :
14649 withval=$with_cache_dir; fc_cachedir="$withval"
14655 case $fc_cachedir in
14657 if test "$os_win32" = "yes"; then
14658 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE"
14660 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
14667 FC_CACHEDIR=${fc_cachedir}
14670 FC_FONTDATE=`LC_ALL=C date`
14675 # Set configuration paths
14679 # Check whether --with-templatedir was given.
14680 if test "${with_templatedir+set}" = set; then :
14681 withval=$with_templatedir; templatedir="$withval"
14687 # Check whether --with-baseconfigdir was given.
14688 if test "${with_baseconfigdir+set}" = set; then :
14689 withval=$with_baseconfigdir; baseconfigdir="$withval"
14695 # Check whether --with-configdir was given.
14696 if test "${with_configdir+set}" = set; then :
14697 withval=$with_configdir; configdir="$withval"
14703 # Check whether --with-xmldir was given.
14704 if test "${with_xmldir+set}" = set; then :
14705 withval=$with_xmldir; xmldir="$withval"
14711 case "$templatedir" in
14713 templatedir='${datadir}'/fontconfig/conf.avail
14718 case "$baseconfigdir" in
14720 baseconfigdir='${sysconfdir}'/fonts
14725 case "$configdir" in
14727 configdir='${baseconfigdir}'/conf.d
14734 xmldir='${datadir}'/xml/fontconfig
14740 TEMPLATEDIR=${templatedir}
14741 BASECONFIGDIR=${baseconfigdir}
14742 CONFIGDIR=${configdir}
14756 # Thread-safety primitives
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
14760 $as_echo_n "checking for Intel atomic primitives... " >&6; }
14761 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
14762 $as_echo_n "(cached) " >&6
14765 fc_cv_have_intel_atomic_primitives=false
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14769 void memory_barrier (void) { __sync_synchronize (); }
14770 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
14771 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
14772 void mutex_unlock (int *m) { __sync_lock_release (m); }
14782 if ac_fn_c_try_link "$LINENO"; then :
14783 fc_cv_have_intel_atomic_primitives=true
14786 rm -f core conftest.err conftest.$ac_objext \
14787 conftest$ac_exeext conftest.$ac_ext
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
14791 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
14792 if $fc_cv_have_intel_atomic_primitives; then
14794 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
14799 $as_echo_n "checking for Solaris atomic operations... " >&6; }
14800 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
14801 $as_echo_n "(cached) " >&6
14804 fc_cv_have_solaris_atomic_ops=false
14805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14808 #include <atomic.h>
14809 /* This requires Solaris Studio 12.2 or newer: */
14810 #include <mbarrier.h>
14811 void memory_barrier (void) { __machine_rw_barrier (); }
14812 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
14813 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
14823 if ac_fn_c_try_link "$LINENO"; then :
14824 fc_cv_have_solaris_atomic_ops=true
14827 rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
14832 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
14833 if $fc_cv_have_solaris_atomic_ops; then
14835 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
14839 if test "$os_win32" = no && ! $have_pthread; then
14840 for ac_header in sched.h
14842 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_sched_h" = xyes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_SCHED_H 1
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14853 $as_echo_n "checking for library containing sched_yield... " >&6; }
14854 if ${ac_cv_search_sched_yield+:} false; then :
14855 $as_echo_n "(cached) " >&6
14857 ac_func_search_save_LIBS=$LIBS
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14861 /* Override any GCC internal prototype to avoid an error.
14862 Use char because int might match the return type of a GCC
14863 builtin and then its argument prototype would still apply. */
14867 char sched_yield ();
14871 return sched_yield ();
14876 for ac_lib in '' rt; do
14877 if test -z "$ac_lib"; then
14878 ac_res="none required"
14881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14883 if ac_fn_c_try_link "$LINENO"; then :
14884 ac_cv_search_sched_yield=$ac_res
14886 rm -f core conftest.err conftest.$ac_objext \
14888 if ${ac_cv_search_sched_yield+:} false; then :
14892 if ${ac_cv_search_sched_yield+:} false; then :
14895 ac_cv_search_sched_yield=no
14897 rm conftest.$ac_ext
14898 LIBS=$ac_func_search_save_LIBS
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14901 $as_echo "$ac_cv_search_sched_yield" >&6; }
14902 ac_res=$ac_cv_search_sched_yield
14903 if test "$ac_res" != no; then :
14904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14906 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14913 if test "$os_win32" = no; then
14917 ac_cpp='$CPP $CPPFLAGS'
14918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924 # We used to check for pthread.h first, but this fails if pthread.h
14925 # requires special compiler flags (e.g. on True64 or Sequent).
14926 # It gets checked for in the link test anyway.
14928 # First of all, check if the user has set any of the PTHREAD_LIBS,
14929 # etcetera environment variables, and if threads linking works using
14931 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14932 save_CFLAGS="$CFLAGS"
14933 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14935 LIBS="$PTHREAD_LIBS $LIBS"
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14937 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14941 /* Override any GCC internal prototype to avoid an error.
14942 Use char because int might match the return type of a GCC
14943 builtin and then its argument prototype would still apply. */
14947 char pthread_join ();
14951 return pthread_join ();
14956 if ac_fn_c_try_link "$LINENO"; then :
14959 rm -f core conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14962 $as_echo "$ax_pthread_ok" >&6; }
14963 if test x"$ax_pthread_ok" = xno; then
14968 CFLAGS="$save_CFLAGS"
14971 # We must check for the threads library under a number of different
14972 # names; the ordering is very important because some systems
14973 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14974 # libraries is broken (non-POSIX).
14976 # Create a list of thread flags to try. Items starting with a "-" are
14977 # C compiler flags, and other items are library names, except for "none"
14978 # which indicates that we try without any flags at all, and "pthread-config"
14979 # which is a program returning the flags for the Pth emulation library.
14981 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14983 # The ordering *is* (sometimes) important. Some notes on the
14984 # individual items follow:
14986 # pthreads: AIX (must check this before -lpthread)
14987 # none: in case threads are in libc; should be tried before -Kthread and
14988 # other compiler flags to prevent continual compiler warnings
14989 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14990 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14991 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14992 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14993 # -pthreads: Solaris/gcc
14994 # -mthreads: Mingw32/gcc, Lynx/gcc
14995 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14996 # doesn't hurt to check since this sometimes defines pthreads too;
14997 # also defines -D_REENTRANT)
14998 # ... -mt is also the pthreads flag for HP/aCC
14999 # pthread: Linux, etcetera
15000 # --thread-safe: KAI C++
15001 # pthread-config: use pthread-config program (for GNU Pth library)
15006 # On Solaris (at least, for some versions), libc contains stubbed
15007 # (non-functional) versions of the pthreads routines, so link-based
15008 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15009 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15010 # a function called by this macro, so we could check for that, but
15011 # who knows whether they'll stub that too in a future libc.) So,
15012 # we'll just look for -pthreads and -lpthread first:
15014 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15018 ax_pthread_flags="-pthread $ax_pthread_flags"
15022 if test x"$ax_pthread_ok" = xno; then
15023 for flag in $ax_pthread_flags; do
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15028 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15033 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15034 PTHREAD_CFLAGS="$flag"
15038 # Extract the first word of "pthread-config", so it can be a program name with args.
15039 set dummy pthread-config; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15043 $as_echo_n "(cached) " >&6
15045 if test -n "$ax_pthread_config"; then
15046 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15052 test -z "$as_dir" && as_dir=.
15053 for ac_exec_ext in '' $ac_executable_extensions; do
15054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055 ac_cv_prog_ax_pthread_config="yes"
15056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15063 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15066 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15067 if test -n "$ax_pthread_config"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15069 $as_echo "$ax_pthread_config" >&6; }
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15076 if test x"$ax_pthread_config" = xno; then continue; fi
15077 PTHREAD_CFLAGS="`pthread-config --cflags`"
15078 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15083 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15084 PTHREAD_LIBS="-l$flag"
15089 save_CFLAGS="$CFLAGS"
15090 LIBS="$PTHREAD_LIBS $LIBS"
15091 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15093 # Check for various functions. We must include pthread.h,
15094 # since some functions may be macros. (On the Sequent, we
15095 # need a special flag -Kthread to make this header compile.)
15096 # We check for pthread_join because it is in -lpthread on IRIX
15097 # while pthread_create is in libc. We check for pthread_attr_init
15098 # due to DEC craziness with -lpthreads. We check for
15099 # pthread_cleanup_push because it is one of the few pthread
15100 # functions on Solaris that doesn't have a non-functional libc stub.
15101 # We try pthread_create on general principles.
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 #include <pthread.h>
15105 static void routine(void *a) { a = 0; }
15106 static void *start_routine(void *a) { return a; }
15110 pthread_t th; pthread_attr_t attr;
15111 pthread_create(&th, 0, start_routine, 0);
15112 pthread_join(th, 0);
15113 pthread_attr_init(&attr);
15114 pthread_cleanup_push(routine, 0);
15115 pthread_cleanup_pop(0) /* ; */
15120 if ac_fn_c_try_link "$LINENO"; then :
15123 rm -f core conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15127 CFLAGS="$save_CFLAGS"
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15130 $as_echo "$ax_pthread_ok" >&6; }
15131 if test "x$ax_pthread_ok" = xyes; then
15140 # Various other checks:
15141 if test "x$ax_pthread_ok" = xyes; then
15143 LIBS="$PTHREAD_LIBS $LIBS"
15144 save_CFLAGS="$CFLAGS"
15145 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15147 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15149 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15151 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 #include <pthread.h>
15158 int attr = $attr; return attr /* ; */
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 attr_name=$attr; break
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15170 $as_echo "$attr_name" >&6; }
15171 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15173 cat >>confdefs.h <<_ACEOF
15174 #define PTHREAD_CREATE_JOINABLE $attr_name
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15180 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15183 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15184 osf* | hpux*) flag="-D_REENTRANT";;
15186 if test "$GCC" = "yes"; then
15187 flag="-D_REENTRANT"
15189 flag="-mt -D_REENTRANT"
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15194 $as_echo "${flag}" >&6; }
15195 if test "x$flag" != xno; then
15196 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15200 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15201 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15202 $as_echo_n "(cached) " >&6
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15208 #include <pthread.h>
15212 int i = PTHREAD_PRIO_INHERIT;
15217 if ac_fn_c_try_link "$LINENO"; then :
15218 ax_cv_PTHREAD_PRIO_INHERIT=yes
15220 ax_cv_PTHREAD_PRIO_INHERIT=no
15222 rm -f core conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15227 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15228 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15230 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15235 CFLAGS="$save_CFLAGS"
15237 # More AIX lossage: must compile with xlc_r or cc_r
15238 if test x"$GCC" != xyes; then
15239 for ac_prog in xlc_r cc_r
15241 # Extract the first word of "$ac_prog", so it can be a program name with args.
15242 set dummy $ac_prog; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15244 $as_echo_n "checking for $ac_word... " >&6; }
15245 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15246 $as_echo_n "(cached) " >&6
15248 if test -n "$PTHREAD_CC"; then
15249 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $PATH
15255 test -z "$as_dir" && as_dir=.
15256 for ac_exec_ext in '' $ac_executable_extensions; do
15257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258 ac_cv_prog_PTHREAD_CC="$ac_prog"
15259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15268 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15269 if test -n "$PTHREAD_CC"; then
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15271 $as_echo "$PTHREAD_CC" >&6; }
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15274 $as_echo "no" >&6; }
15278 test -n "$PTHREAD_CC" && break
15280 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15293 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15294 if test x"$ax_pthread_ok" = xyes; then
15302 ac_cpp='$CPP $CPPFLAGS'
15303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15309 if $have_pthread; then
15310 LIBS="$PTHREAD_LIBS $LIBS"
15311 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15314 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15317 if $have_pthread; then
15319 HAVE_PTHREAD_FALSE='#'
15321 HAVE_PTHREAD_TRUE='#'
15322 HAVE_PTHREAD_FALSE=
15329 # Let people not build/install docs if they don't have docbook
15332 # Extract the first word of "docbook2html", so it can be a program name with args.
15333 set dummy docbook2html; ac_word=$2
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15335 $as_echo_n "checking for $ac_word... " >&6; }
15336 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
15337 $as_echo_n "(cached) " >&6
15339 if test -n "$HASDOCBOOK"; then
15340 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
15342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15343 for as_dir in $PATH
15346 test -z "$as_dir" && as_dir=.
15347 for ac_exec_ext in '' $ac_executable_extensions; do
15348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15349 ac_cv_prog_HASDOCBOOK="yes"
15350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15357 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
15360 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
15361 if test -n "$HASDOCBOOK"; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
15363 $as_echo "$HASDOCBOOK" >&6; }
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15371 if test "x$HASDOCBOOK" = xyes; then
15373 USEDOCBOOK_FALSE='#'
15375 USEDOCBOOK_TRUE='#'
15382 # Check if docs exist or can be created
15384 if test x$HASDOCBOOK = xno; then
15385 if test -f $srcdir/doc/fonts-conf.5; then
15392 # Check whether --enable-docs was given.
15393 if test "${enable_docs+set}" = set; then :
15394 enableval=$enable_docs;
15396 enable_docs=$default_docs
15400 if test "x$enable_docs" = xyes; then
15402 ENABLE_DOCS_FALSE='#'
15404 ENABLE_DOCS_TRUE='#'
15409 if test "x$enable_docs" = xyes; then
15411 cat $srcdir/doc/*.fncs | awk '
15412 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
15413 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
15414 /^@@/ { done = 0; }' > $tmp
15415 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
15416 echo DOCMAN3 $DOCMAN3
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15425 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15426 if ${ac_cv_c_bigendian+:} false; then :
15427 $as_echo_n "(cached) " >&6
15429 ac_cv_c_bigendian=unknown
15430 # See if we're dealing with a universal compiler.
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 #ifndef __APPLE_CC__
15434 not a universal capable compiler
15439 if ac_fn_c_try_compile "$LINENO"; then :
15441 # Check for potential -arch flags. It is not universal unless
15442 # there are at least two -arch flags with different values.
15445 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15446 if test -n "$ac_prev"; then
15448 i?86 | x86_64 | ppc | ppc64)
15449 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15452 ac_cv_c_bigendian=universal
15458 elif test "x$ac_word" = "x-arch"; then
15463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 if test $ac_cv_c_bigendian = unknown; then
15465 # See if sys/param.h defines the BYTE_ORDER macro.
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 #include <sys/types.h>
15469 #include <sys/param.h>
15474 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15475 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15477 bogus endian macros
15484 if ac_fn_c_try_compile "$LINENO"; then :
15485 # It does; now see whether it defined to BIG_ENDIAN or not.
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 #include <sys/types.h>
15489 #include <sys/param.h>
15494 #if BYTE_ORDER != BIG_ENDIAN
15502 if ac_fn_c_try_compile "$LINENO"; then :
15503 ac_cv_c_bigendian=yes
15505 ac_cv_c_bigendian=no
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 if test $ac_cv_c_bigendian = unknown; then
15512 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 #include <limits.h>
15520 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15521 bogus endian macros
15528 if ac_fn_c_try_compile "$LINENO"; then :
15529 # It does; now see whether it defined to _BIG_ENDIAN or not.
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 #include <limits.h>
15537 #ifndef _BIG_ENDIAN
15545 if ac_fn_c_try_compile "$LINENO"; then :
15546 ac_cv_c_bigendian=yes
15548 ac_cv_c_bigendian=no
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15554 if test $ac_cv_c_bigendian = unknown; then
15555 # Compile a test program.
15556 if test "$cross_compiling" = yes; then :
15557 # Try to guess by grepping values from an object file.
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560 short int ascii_mm[] =
15561 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15562 short int ascii_ii[] =
15563 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15564 int use_ascii (int i) {
15565 return ascii_mm[i] + ascii_ii[i];
15567 short int ebcdic_ii[] =
15568 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15569 short int ebcdic_mm[] =
15570 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15571 int use_ebcdic (int i) {
15572 return ebcdic_mm[i] + ebcdic_ii[i];
15579 return use_ascii (foo) == use_ebcdic (foo);
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15586 ac_cv_c_bigendian=yes
15588 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15589 if test "$ac_cv_c_bigendian" = unknown; then
15590 ac_cv_c_bigendian=no
15592 # finding both strings is unlikely to happen, but who knows?
15593 ac_cv_c_bigendian=unknown
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 $ac_includes_default
15606 /* Are we little or big endian? From Harbison&Steele. */
15610 char c[sizeof (long int)];
15613 return u.c[sizeof (long int) - 1] == 1;
15619 if ac_fn_c_try_run "$LINENO"; then :
15620 ac_cv_c_bigendian=no
15622 ac_cv_c_bigendian=yes
15624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15625 conftest.$ac_objext conftest.beam conftest.$ac_ext
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15631 $as_echo "$ac_cv_c_bigendian" >&6; }
15632 case $ac_cv_c_bigendian in #(
15634 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15640 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15644 as_fn_error $? "unknown endianness
15645 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15648 # The cast to long int works around a bug in the HP C Compiler
15649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15651 # This bug is HP SR number 8606223364.
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15653 $as_echo_n "checking size of void *... " >&6; }
15654 if ${ac_cv_sizeof_void_p+:} false; then :
15655 $as_echo_n "(cached) " >&6
15657 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15660 if test "$ac_cv_type_void_p" = yes; then
15661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15663 as_fn_error 77 "cannot compute sizeof (void *)
15664 See \`config.log' for more details" "$LINENO" 5; }
15666 ac_cv_sizeof_void_p=0
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15672 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15676 cat >>confdefs.h <<_ACEOF
15677 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15681 # The cast to long int works around a bug in the HP C Compiler,
15682 # see AC_CHECK_SIZEOF for more information.
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
15684 $as_echo_n "checking alignment of double... " >&6; }
15685 if ${ac_cv_alignof_double+:} false; then :
15686 $as_echo_n "(cached) " >&6
15688 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
15690 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15692 typedef struct { char x; double y; } ac__type_alignof_;"; then :
15695 if test "$ac_cv_type_double" = yes; then
15696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15698 as_fn_error 77 "cannot compute alignment of double
15699 See \`config.log' for more details" "$LINENO" 5; }
15701 ac_cv_alignof_double=0
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
15707 $as_echo "$ac_cv_alignof_double" >&6; }
15711 cat >>confdefs.h <<_ACEOF
15712 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
15719 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
15721 cat >confcache <<\_ACEOF
15722 # This file is a shell script that caches the results of configure
15723 # tests run on this system so they can be shared between configure
15724 # scripts and configure runs, see configure's option --config-cache.
15725 # It is not useful on other systems. If it contains results you don't
15726 # want to keep, you may remove or edit it.
15728 # config.status only pays attention to the cache file if you give it
15729 # the --recheck option to rerun configure.
15731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15733 # following values.
15737 # The following way of writing the cache mishandles newlines in values,
15738 # but we know of no workaround that is simple, portable, and efficient.
15739 # So, we kill variables containing newlines.
15740 # Ultrix sh set writes to stderr and can't be redirected directly,
15741 # and sets the high bit in the cache file unless we assign to the vars.
15743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15744 eval ac_val=\$$ac_var
15748 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15752 _ | IFS | as_nl) ;; #(
15753 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15754 *) { eval $ac_var=; unset $ac_var;} ;;
15760 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15761 *${as_nl}ac_space=\ *)
15762 # `set' does not quote correctly, so add quotes: double-quote
15763 # substitution turns \\\\ into \\, and sed turns \\ into \.
15766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15769 # `set' quotes correctly as required by POSIX, so do not add quotes.
15770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15784 if test -w "$cache_file"; then
15785 if test "x$cache_file" != "x/dev/null"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15787 $as_echo "$as_me: updating cache $cache_file" >&6;}
15788 if test ! -f "$cache_file" || test -h "$cache_file"; then
15789 cat confcache >"$cache_file"
15791 case $cache_file in #(
15793 mv -f confcache "$cache_file"$$ &&
15794 mv -f "$cache_file"$$ "$cache_file" ;; #(
15796 mv -f confcache "$cache_file" ;;
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15808 # Let make expand exec_prefix.
15809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15811 DEFS=-DHAVE_CONFIG_H
15816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15817 # 1. Remove the extension, and $U if already installed.
15818 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15819 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15821 # will be set to the directory where LIBOBJS objects are built.
15822 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15823 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15825 LIBOBJS=$ac_libobjs
15827 LTLIBOBJS=$ac_ltlibobjs
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15831 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15832 if test -n "$am_sleep_pid"; then
15833 # Hide warnings about reused PIDs.
15834 wait $am_sleep_pid 2>/dev/null
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15837 $as_echo "done" >&6; }
15838 if test -n "$EXEEXT"; then
15840 am__EXEEXT_FALSE='#'
15842 am__EXEEXT_TRUE='#'
15846 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15847 as_fn_error $? "conditional \"AMDEP\" was never defined.
15848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15851 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15854 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15855 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15858 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
15859 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
15860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15862 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15863 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15866 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
15867 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
15868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15870 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
15871 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
15872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15874 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
15875 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
15876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15878 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
15879 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
15880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15884 : "${CONFIG_STATUS=./config.status}"
15886 ac_clean_files_save=$ac_clean_files
15887 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15889 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15891 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15893 # Generated by $as_me.
15894 # Run this file to recreate the current configuration.
15895 # Compiler output produced by configure, useful for debugging
15896 # configure, is in config.log if it exists.
15899 ac_cs_recheck=false
15902 SHELL=\${CONFIG_SHELL-$SHELL}
15905 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15906 ## -------------------- ##
15907 ## M4sh Initialization. ##
15908 ## -------------------- ##
15910 # Be more Bourne compatible
15911 DUALCASE=1; export DUALCASE # for MKS sh
15912 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15915 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15916 # is contrary to our usage. Disable this feature.
15917 alias -g '${1+"$@"}'='"$@"'
15918 setopt NO_GLOB_SUBST
15920 case `(set -o) 2>/dev/null` in #(
15932 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15933 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15936 # Prefer a ksh shell builtin over an external printf program on Solaris,
15937 # but without wasting forks for bash or zsh.
15938 if test -z "$BASH_VERSION$ZSH_VERSION" \
15939 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15940 as_echo='print -r --'
15941 as_echo_n='print -rn --'
15942 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15943 as_echo='printf %s\n'
15944 as_echo_n='printf %s'
15946 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15947 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15948 as_echo_n='/usr/ucb/echo -n'
15950 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15951 as_echo_n_body='eval
15955 expr "X$arg" : "X\\(.*\\)$as_nl";
15956 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15958 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15960 export as_echo_n_body
15961 as_echo_n='sh -c $as_echo_n_body as_echo'
15963 export as_echo_body
15964 as_echo='sh -c $as_echo_body as_echo'
15967 # The user is always right.
15968 if test "${PATH_SEPARATOR+set}" != set; then
15970 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15971 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15978 # We need space, tab and new line, in precisely that order. Quoting is
15979 # there to prevent editors from complaining about space-tab.
15980 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15981 # splitting by setting IFS to empty value.)
15984 # Find who we are. Look in the path if we contain no directory separator.
15987 *[\\/]* ) as_myself=$0 ;;
15988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15989 for as_dir in $PATH
15992 test -z "$as_dir" && as_dir=.
15993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15999 # We did not find ourselves, most probably we were run as `sh COMMAND'
16000 # in which case we are not to be found in the path.
16001 if test "x$as_myself" = x; then
16004 if test ! -f "$as_myself"; then
16005 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16009 # Unset variables that we do not need and which cause bugs (e.g. in
16010 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16011 # suppresses any "Segmentation fault" message there. '((' could
16012 # trigger a bug in pdksh 5.2.14.
16013 for as_var in BASH_ENV ENV MAIL MAILPATH
16014 do eval test x\${$as_var+set} = xset \
16015 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16028 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16031 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16032 # ----------------------------------------
16033 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16034 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16035 # script with STATUS, using 1 if that was 0.
16038 as_status=$1; test $as_status -eq 0 && as_status=1
16040 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16041 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16043 $as_echo "$as_me: error: $2" >&2
16044 as_fn_exit $as_status
16048 # as_fn_set_status STATUS
16049 # -----------------------
16050 # Set $? to STATUS, without forking.
16051 as_fn_set_status ()
16054 } # as_fn_set_status
16056 # as_fn_exit STATUS
16057 # -----------------
16058 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16062 as_fn_set_status $1
16068 # Portably unset VAR.
16071 { eval $1=; unset $1;}
16073 as_unset=as_fn_unset
16074 # as_fn_append VAR VALUE
16075 # ----------------------
16076 # Append the text in VALUE to the end of the definition contained in VAR. Take
16077 # advantage of any shell optimizations that allow amortized linear growth over
16078 # repeated appends, instead of the typical quadratic growth present in naive
16080 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16081 eval 'as_fn_append ()
16092 # as_fn_arith ARG...
16093 # ------------------
16094 # Perform arithmetic evaluation on the ARGs, and store the result in the
16095 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16096 # must be portable across $(()) and expr.
16097 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16098 eval 'as_fn_arith ()
16105 as_val=`expr "$@" || test $? -eq 1`
16110 if expr a : '\(a\)' >/dev/null 2>&1 &&
16111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16117 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16118 as_basename=basename
16123 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16129 as_me=`$as_basename -- "$0" ||
16130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16131 X"$0" : 'X\(//\)$' \| \
16132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16134 sed '/^.*\/\([^/][^/]*\)\/*$/{
16148 # Avoid depending upon Character Ranges.
16149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16152 as_cr_digits='0123456789'
16153 as_cr_alnum=$as_cr_Letters$as_cr_digits
16155 ECHO_C= ECHO_N= ECHO_T=
16156 case `echo -n x` in #(((((
16158 case `echo 'xy\c'` in
16159 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16161 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16168 rm -f conf$$ conf$$.exe conf$$.file
16169 if test -d conf$$.dir; then
16170 rm -f conf$$.dir/conf$$.file
16173 mkdir conf$$.dir 2>/dev/null
16175 if (echo >conf$$.file) 2>/dev/null; then
16176 if ln -s conf$$.file conf$$ 2>/dev/null; then
16178 # ... but there are two gotchas:
16179 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16180 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16181 # In both cases, we have to default to `cp -pR'.
16182 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16184 elif ln conf$$.file conf$$ 2>/dev/null; then
16192 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16193 rmdir conf$$.dir 2>/dev/null
16198 # Create "$as_dir" as a directory, including parents if necessary.
16203 -*) as_dir=./$as_dir;;
16205 test -d "$as_dir" || eval $as_mkdir_p || {
16209 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16210 *) as_qdir=$as_dir;;
16212 as_dirs="'$as_qdir' $as_dirs"
16213 as_dir=`$as_dirname -- "$as_dir" ||
16214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16215 X"$as_dir" : 'X\(//\)[^/]' \| \
16216 X"$as_dir" : 'X\(//\)$' \| \
16217 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16218 $as_echo X"$as_dir" |
16219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16223 /^X\(\/\/\)[^/].*/{
16236 test -d "$as_dir" && break
16238 test -z "$as_dirs" || eval "mkdir $as_dirs"
16239 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16243 if mkdir -p . 2>/dev/null; then
16244 as_mkdir_p='mkdir -p "$as_dir"'
16246 test -d ./-p && rmdir ./-p
16251 # as_fn_executable_p FILE
16252 # -----------------------
16253 # Test if FILE is an executable regular file.
16254 as_fn_executable_p ()
16256 test -f "$1" && test -x "$1"
16257 } # as_fn_executable_p
16258 as_test_x='test -x'
16259 as_executable_p=as_fn_executable_p
16261 # Sed expression to map a string onto a valid CPP name.
16262 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16264 # Sed expression to map a string onto a valid variable name.
16265 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16269 ## ----------------------------------- ##
16270 ## Main body of $CONFIG_STATUS script. ##
16271 ## ----------------------------------- ##
16273 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16276 # Save the log message, to keep $0 and so on meaningful, and to
16277 # report actual input values of CONFIG_FILES etc. instead of their
16278 # values after options handling.
16280 This file was extended by $as_me, which was
16281 generated by GNU Autoconf 2.69. Invocation command line was
16283 CONFIG_FILES = $CONFIG_FILES
16284 CONFIG_HEADERS = $CONFIG_HEADERS
16285 CONFIG_LINKS = $CONFIG_LINKS
16286 CONFIG_COMMANDS = $CONFIG_COMMANDS
16289 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16294 case $ac_config_files in *"
16295 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16298 case $ac_config_headers in *"
16299 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304 # Files that config.status was made for.
16305 config_files="$ac_config_files"
16306 config_headers="$ac_config_headers"
16307 config_commands="$ac_config_commands"
16311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16313 \`$as_me' instantiates files and other configuration actions
16314 from templates according to the current configuration. Unless the files
16315 and actions are specified as TAGs, all are instantiated by default.
16317 Usage: $0 [OPTION]... [TAG]...
16319 -h, --help print this help, then exit
16320 -V, --version print version number and configuration settings, then exit
16321 --config print configuration, then exit
16322 -q, --quiet, --silent
16323 do not print progress messages
16324 -d, --debug don't remove temporary files
16325 --recheck update $as_me by reconfiguring in the same conditions
16326 --file=FILE[:TEMPLATE]
16327 instantiate the configuration file FILE
16328 --header=FILE[:TEMPLATE]
16329 instantiate the configuration header FILE
16331 Configuration files:
16334 Configuration headers:
16337 Configuration commands:
16340 Report bugs to the package provider."
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16347 configured by $0, generated by GNU Autoconf 2.69,
16348 with options \\"\$ac_cs_config\\"
16350 Copyright (C) 2012 Free Software Foundation, Inc.
16351 This config.status script is free software; the Free Software Foundation
16352 gives unlimited permission to copy, distribute and modify it."
16359 test -n "\$AWK" || AWK=awk
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 # The default lists apply if the user does not specify any file.
16369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16370 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16386 # Handling of the options.
16387 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16389 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16390 $as_echo "$ac_cs_version"; exit ;;
16391 --config | --confi | --conf | --con | --co | --c )
16392 $as_echo "$ac_cs_config"; exit ;;
16393 --debug | --debu | --deb | --de | --d | -d )
16395 --file | --fil | --fi | --f )
16398 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16399 '') as_fn_error $? "missing file argument" ;;
16401 as_fn_append CONFIG_FILES " '$ac_optarg'"
16402 ac_need_defaults=false;;
16403 --header | --heade | --head | --hea )
16406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16408 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16409 ac_need_defaults=false;;
16411 # Conflict between --help and --header
16412 as_fn_error $? "ambiguous option: \`$1'
16413 Try \`$0 --help' for more information.";;
16414 --help | --hel | -h )
16415 $as_echo "$ac_cs_usage"; exit ;;
16416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16420 # This is an error.
16421 -*) as_fn_error $? "unrecognized option: \`$1'
16422 Try \`$0 --help' for more information." ;;
16424 *) as_fn_append ac_config_targets " $1"
16425 ac_need_defaults=false ;;
16431 ac_configure_extra_args=
16433 if $ac_cs_silent; then
16435 ac_configure_extra_args="$ac_configure_extra_args --silent"
16439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16440 if \$ac_cs_recheck; then
16441 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16443 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16444 CONFIG_SHELL='$SHELL'
16445 export CONFIG_SHELL
16450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16455 ## Running $as_me. ##
16461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16465 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16468 # The HP-UX ksh and POSIX shell print the target directory to stdout
16469 # if CDPATH is set.
16470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16472 sed_quote_subst='$sed_quote_subst'
16473 double_quote_subst='$double_quote_subst'
16474 delay_variable_subst='$delay_variable_subst'
16475 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16476 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16477 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16478 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16479 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16480 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16481 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16482 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16483 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16484 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16485 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16486 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16487 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16488 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16489 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16490 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16491 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16492 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16493 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16494 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16495 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16496 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16497 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16498 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16499 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16500 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16501 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16502 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16503 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16504 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16505 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16506 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16507 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16508 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16509 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16510 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16511 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16512 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16513 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16514 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16515 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16516 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16517 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16518 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16519 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16520 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16521 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16522 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16523 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16524 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16525 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16526 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16527 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16528 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16529 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16530 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16531 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16532 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"`'
16533 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16534 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16535 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16536 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16537 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16538 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16539 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16540 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16541 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16542 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16543 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16544 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16545 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16546 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16547 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16548 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16549 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16550 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16551 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16552 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16553 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16554 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16555 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16556 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16557 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16558 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16559 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16560 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16561 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16562 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16563 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16564 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16565 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16566 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16567 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16568 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16569 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16570 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16571 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16572 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16573 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16574 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16575 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16576 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16577 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16578 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16579 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16580 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16581 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16582 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16583 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16584 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16585 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16586 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16587 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16588 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16589 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16590 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16591 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16592 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16593 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16594 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16595 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16596 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16597 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16598 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16599 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16600 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16601 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16602 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16603 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16604 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16605 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16608 LTCFLAGS='$LTCFLAGS'
16609 compiler='$compiler_DEFAULT'
16611 # A function that is used when there is no print builtin or printf.
16612 func_fallback_echo ()
16614 eval 'cat <<_LTECHO_EOF
16619 # Quote evaled strings.
16636 deplibs_check_method \
16640 sharedlib_from_linklib_cmd \
16643 archiver_list_spec \
16649 lt_cv_sys_global_symbol_pipe \
16650 lt_cv_sys_global_symbol_to_cdecl \
16651 lt_cv_sys_global_symbol_to_c_name_address \
16652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16653 nm_file_list_spec \
16654 lt_prog_compiler_no_builtin_flag \
16655 lt_prog_compiler_pic \
16656 lt_prog_compiler_wl \
16657 lt_prog_compiler_static \
16658 lt_cv_prog_compiler_c_o \
16667 export_dynamic_flag_spec \
16668 whole_archive_flag_spec \
16669 compiler_needs_object \
16671 allow_undefined_flag \
16672 no_undefined_flag \
16673 hardcode_libdir_flag_spec \
16674 hardcode_libdir_separator \
16678 variables_saved_for_relink \
16680 library_names_spec \
16682 install_override_mode \
16686 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16687 *[\\\\\\\`\\"\\\$]*)
16688 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16691 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16696 # Double-quote double-evaled strings.
16697 for var in reload_cmds \
16698 old_postinstall_cmds \
16699 old_postuninstall_cmds \
16701 extract_expsyms_cmds \
16702 old_archive_from_new_cmds \
16703 old_archive_from_expsyms_cmds \
16705 archive_expsym_cmds \
16707 module_expsym_cmds \
16708 export_symbols_cmds \
16712 postuninstall_cmds \
16714 sys_lib_search_path_spec \
16715 sys_lib_dlsearch_path_spec; do
16716 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16717 *[\\\\\\\`\\"\\\$]*)
16718 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16721 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16726 ac_aux_dir='$ac_aux_dir'
16727 xsi_shell='$xsi_shell'
16728 lt_shell_append='$lt_shell_append'
16730 # See if we are running on zsh, and set the options which allow our
16731 # commands through without removal of \ escapes INIT.
16732 if test -n "\${ZSH_VERSION+set}" ; then
16733 setopt NO_GLOB_SUBST
16739 TIMESTAMP='$TIMESTAMP'
16745 # variables for create stdint.h replacement
16748 ac_stdint_h="$ac_stdint_h"
16749 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
16750 ac_cv_stdint_message="$ac_cv_stdint_message"
16751 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
16752 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
16753 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
16754 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
16755 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16756 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16757 ac_cv_char_data_model="$ac_cv_char_data_model"
16758 ac_cv_long_data_model="$ac_cv_long_data_model"
16759 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16760 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16761 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
16766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16768 # Handling of arguments.
16769 for ac_config_target in $ac_config_targets
16771 case $ac_config_target in
16772 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16773 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16774 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16775 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
16776 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16777 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
16778 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
16779 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
16780 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
16781 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16782 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
16783 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
16784 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
16785 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
16786 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
16787 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
16788 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
16789 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
16790 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
16791 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16792 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
16793 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16794 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
16795 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
16796 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
16798 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16803 # If the user did not use the arguments to specify the items to instantiate,
16804 # then the envvar interface is used. Set only those that are not.
16805 # We use the long form for the default assignment because of an extremely
16806 # bizarre bug on SunOS 4.1.3.
16807 if $ac_need_defaults; then
16808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16809 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16810 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16813 # Have a temporary directory for convenience. Make it in the build tree
16814 # simply because there is no reason against having it here, and in addition,
16815 # creating and moving files from /tmp can sometimes cause problems.
16816 # Hook for its removal unless debugging.
16817 # Note that there is a small window in which the directory will not be cleaned:
16818 # after its creation but before its name has been assigned to `$tmp'.
16822 trap 'exit_status=$?
16823 : "${ac_tmp:=$tmp}"
16824 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16826 trap 'as_fn_exit 1' 1 2 13 15
16828 # Create a (secure) tmp directory for tmp files.
16831 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16835 tmp=./conf$$-$RANDOM
16836 (umask 077 && mkdir "$tmp")
16837 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16840 # Set up the scripts for CONFIG_FILES section.
16841 # No need to generate them if there are no CONFIG_FILES.
16842 # This happens for instance with `./config.status config.h'.
16843 if test -n "$CONFIG_FILES"; then
16846 ac_cr=`echo X | tr X '\015'`
16847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16848 # But we know of no other shell where ac_cr would be empty at this
16849 # point, so we can use a bashism as a fallback.
16850 if test "x$ac_cr" = x; then
16851 eval ac_cr=\$\'\\r\'
16853 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16857 ac_cs_awk_cr=$ac_cr
16860 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16865 echo "cat >conf$$subs.awk <<_ACEOF" &&
16866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16868 } >conf$$subs.sh ||
16869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16872 for ac_last_try in false false false false false :; do
16873 . ./conf$$subs.sh ||
16874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16876 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16877 if test $ac_delim_n = $ac_delim_num; then
16879 elif $ac_last_try; then
16880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16885 rm -f conf$$subs.sh
16887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16888 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16892 s/^/S["/; s/!.*/"]=/
16902 s/\(.\{148\}\)..*/\1/
16904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16916 s/\(.\{148\}\)..*/\1/
16918 s/["\\]/\\&/g; s/^/"/; s/$/"/
16922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16927 ' <conf$$subs.awk | sed '
16932 ' >>$CONFIG_STATUS || ac_write_fail=1
16933 rm -f conf$$subs.awk
16934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16936 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16937 for (key in S) S_is_set[key] = 1
16943 nfields = split(line, field, "@")
16945 len = length(field[1])
16946 for (i = 2; i < nfields; i++) {
16948 keylen = length(key)
16949 if (S_is_set[key]) {
16951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16952 len += length(value) + length(field[++i])
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16965 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16968 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16969 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16974 # trailing colons and then remove the whole line if VPATH becomes empty
16975 # (actually we leave an empty line to preserve line numbers).
16976 if test "x$srcdir" = x.; then
16977 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16996 fi # test -n "$CONFIG_FILES"
16998 # Set up the scripts for CONFIG_HEADERS section.
16999 # No need to generate them if there are no CONFIG_HEADERS.
17000 # This happens for instance with `./config.status Makefile'.
17001 if test -n "$CONFIG_HEADERS"; then
17002 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17006 # Transform confdefs.h into an awk script `defines.awk', embedded as
17007 # here-document in config.status, that substitutes the proper values into
17008 # config.h.in to produce config.h.
17010 # Create a delimiter string that does not exist in confdefs.h, to ease
17011 # handling of long lines.
17013 for ac_last_try in false false :; do
17014 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17015 if test -z "$ac_tt"; then
17017 elif $ac_last_try; then
17018 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17024 # For the awk script, D is an array of macro values keyed by name,
17025 # likewise P contains macro parameters if any. Preserve backslash
17026 # newline sequences.
17028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17030 s/.\{148\}/&'"$ac_delim"'/g
17033 s/^[ ]*#[ ]*define[ ][ ]*/ /
17040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17042 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17047 D["\1"]=" \3\\\\\\n"\\/p
17049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17054 s/.\{148\}/&'"$ac_delim"'/g
17059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17064 ' <confdefs.h | sed '
17065 s/'"$ac_delim"'/"\\\
17066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069 for (key in D) D_is_set[key] = 1
17072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17074 split(line, arg, " ")
17075 if (arg[1] == "#") {
17079 defundef = substr(arg[1], 2)
17082 split(mac1, mac2, "(") #)
17084 prefix = substr(line, 1, index(line, defundef) - 1)
17085 if (D_is_set[macro]) {
17086 # Preserve the white space surrounding the "#".
17087 print prefix "define", macro P[macro] D[macro]
17090 # Replace #undef with comments. This is necessary, for example,
17091 # in the case of _POSIX_SOURCE, which is predefined and required
17092 # on some systems where configure will not decide to define it.
17093 if (defundef == "undef") {
17094 print "/*", prefix defundef, macro, "*/"
17102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17103 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17104 fi # test -n "$CONFIG_HEADERS"
17107 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17112 :[FHLC]) ac_mode=$ac_tag; continue;;
17114 case $ac_mode$ac_tag in
17116 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17117 :[FH]-) ac_tag=-:-;;
17118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17135 -) ac_f="$ac_tmp/stdin";;
17136 *) # Look for the file first in the build tree, then in the source tree
17137 # (if the path is not absolute). The absolute path cannot be DOS-style,
17138 # because $ac_f cannot contain `:'.
17142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17144 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17146 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17147 as_fn_append ac_file_inputs " '$ac_f'"
17150 # Let's still pretend it is `configure' which instantiates (i.e., don't
17151 # use $as_me), people would be surprised to read:
17152 # /* config.h. Generated by config.status. */
17153 configure_input='Generated from '`
17154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17156 if test x"$ac_file" != x-; then
17157 configure_input="$ac_file. $configure_input"
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17159 $as_echo "$as_me: creating $ac_file" >&6;}
17161 # Neutralize special characters interpreted by sed in replacement strings.
17162 case $configure_input in #(
17163 *\&* | *\|* | *\\* )
17164 ac_sed_conf_input=`$as_echo "$configure_input" |
17165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17166 *) ac_sed_conf_input=$configure_input;;
17170 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17176 ac_dir=`$as_dirname -- "$ac_file" ||
17177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17178 X"$ac_file" : 'X\(//\)[^/]' \| \
17179 X"$ac_file" : 'X\(//\)$' \| \
17180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17181 $as_echo X"$ac_file" |
17182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17186 /^X\(\/\/\)[^/].*/{
17199 as_dir="$ac_dir"; as_fn_mkdir_p
17203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17205 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17206 # A ".." for each directory in $ac_dir_suffix.
17207 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17208 case $ac_top_builddir_sub in
17209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17213 ac_abs_top_builddir=$ac_pwd
17214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17215 # for backward compatibility:
17216 ac_top_builddir=$ac_top_build_prefix
17219 .) # We are building in place.
17221 ac_top_srcdir=$ac_top_builddir_sub
17222 ac_abs_top_srcdir=$ac_pwd ;;
17223 [\\/]* | ?:[\\/]* ) # Absolute name.
17224 ac_srcdir=$srcdir$ac_dir_suffix;
17225 ac_top_srcdir=$srcdir
17226 ac_abs_top_srcdir=$srcdir ;;
17227 *) # Relative name.
17228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17229 ac_top_srcdir=$ac_top_build_prefix$srcdir
17230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17245 ac_MKDIR_P=$MKDIR_P
17247 [\\/$]* | ?:[\\/]* ) ;;
17248 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17253 # If the template does not know about datarootdir, expand it.
17254 # FIXME: This hack should be removed a few years after 2.60.
17255 ac_datarootdir_hack=; ac_datarootdir_seen=
17266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17267 *datarootdir*) ac_datarootdir_seen=yes;;
17268 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17270 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273 ac_datarootdir_hack='
17274 s&@datadir@&$datadir&g
17275 s&@docdir@&$docdir&g
17276 s&@infodir@&$infodir&g
17277 s&@localedir@&$localedir&g
17278 s&@mandir@&$mandir&g
17279 s&\\\${datarootdir}&$datarootdir&g' ;;
17283 # Neutralize VPATH when `$srcdir' = `.'.
17284 # Shell code in configure.ac might set extrasub.
17285 # FIXME: do we really want to maintain this feature?
17286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17287 ac_sed_extra="$ac_vpsub
17290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17293 s|@configure_input@|$ac_sed_conf_input|;t t
17294 s&@top_builddir@&$ac_top_builddir_sub&;t t
17295 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17296 s&@srcdir@&$ac_srcdir&;t t
17297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17298 s&@top_srcdir@&$ac_top_srcdir&;t t
17299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17300 s&@builddir@&$ac_builddir&;t t
17301 s&@abs_builddir@&$ac_abs_builddir&;t t
17302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17303 s&@INSTALL@&$ac_INSTALL&;t t
17304 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17305 $ac_datarootdir_hack
17307 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17308 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17311 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17312 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17313 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17315 which seems to be undefined. Please make sure it is defined" >&5
17316 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17317 which seems to be undefined. Please make sure it is defined" >&2;}
17319 rm -f "$ac_tmp/stdin"
17321 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17322 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17330 if test x"$ac_file" != x-; then
17332 $as_echo "/* $configure_input */" \
17333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17334 } >"$ac_tmp/config.h" \
17335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17336 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17338 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17341 mv "$ac_tmp/config.h" "$ac_file" \
17342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17345 $as_echo "/* $configure_input */" \
17346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17347 || as_fn_error $? "could not create -" "$LINENO" 5
17349 # Compute "$ac_file"'s index in $config_headers.
17352 for _am_header in $config_headers :; do
17353 case $_am_header in
17354 $_am_arg | $_am_arg:* )
17357 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17360 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17361 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362 X"$_am_arg" : 'X\(//\)[^/]' \| \
17363 X"$_am_arg" : 'X\(//\)$' \| \
17364 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17365 $as_echo X"$_am_arg" |
17366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17370 /^X\(\/\/\)[^/].*/{
17382 s/.*/./; q'`/stamp-h$_am_stamp_count
17385 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17386 $as_echo "$as_me: executing $ac_file commands" >&6;}
17391 case $ac_file$ac_mode in
17392 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17393 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17394 # are listed without --file. Let's play safe and only enable the eval
17395 # if we detect the quoting.
17396 case $CONFIG_FILES in
17397 *\'*) eval set x "$CONFIG_FILES" ;;
17398 *) set x $CONFIG_FILES ;;
17403 # Strip MF so we end up with the name of the file.
17404 mf=`echo "$mf" | sed -e 's/:.*$//'`
17405 # Check whether this is an Automake generated Makefile or not.
17406 # We used to match only the files named 'Makefile.in', but
17407 # some people rename them; so instead we look at the file content.
17408 # Grep'ing the first line is not enough: some people post-process
17409 # each Makefile.in and add a new line on top of each file to say so.
17410 # Grep'ing the whole file is not good either: AIX grep has a line
17411 # limit of 2048, but all sed's we know have understand at least 4000.
17412 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17413 dirpart=`$as_dirname -- "$mf" ||
17414 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17415 X"$mf" : 'X\(//\)[^/]' \| \
17416 X"$mf" : 'X\(//\)$' \| \
17417 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17423 /^X\(\/\/\)[^/].*/{
17439 # Extract the definition of DEPDIR, am__include, and am__quote
17440 # from the Makefile without running 'make'.
17441 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17442 test -z "$DEPDIR" && continue
17443 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17444 test -z "am__include" && continue
17445 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17446 # Find all dependency output files, they are included files with
17447 # $(DEPDIR) in their names. We invoke sed twice because it is the
17448 # simplest approach to changing $(DEPDIR) to its actual value in the
17450 for file in `sed -n "
17451 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17452 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17453 # Make sure the directory exists.
17454 test -f "$dirpart/$file" && continue
17455 fdir=`$as_dirname -- "$file" ||
17456 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17457 X"$file" : 'X\(//\)[^/]' \| \
17458 X"$file" : 'X\(//\)$' \| \
17459 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17460 $as_echo X"$file" |
17461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17465 /^X\(\/\/\)[^/].*/{
17478 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17479 # echo "creating $dirpart/$file"
17480 echo '# dummy' > "$dirpart/$file"
17487 # See if we are running on zsh, and set the options which allow our
17488 # commands through without removal of \ escapes.
17489 if test -n "${ZSH_VERSION+set}" ; then
17490 setopt NO_GLOB_SUBST
17493 cfgfile="${ofile}T"
17494 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17497 cat <<_LT_EOF >> "$cfgfile"
17500 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17501 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17502 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17503 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17505 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17506 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17508 # Written by Gordon Matzigkeit, 1996
17510 # This file is part of GNU Libtool.
17512 # GNU Libtool is free software; you can redistribute it and/or
17513 # modify it under the terms of the GNU General Public License as
17514 # published by the Free Software Foundation; either version 2 of
17515 # the License, or (at your option) any later version.
17517 # As a special exception to the GNU General Public License,
17518 # if you distribute this file as part of a program or library that
17519 # is built using GNU Libtool, you may include this file under the
17520 # same distribution terms that you use for the rest of that program.
17522 # GNU Libtool is distributed in the hope that it will be useful,
17523 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17524 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17525 # GNU General Public License for more details.
17527 # You should have received a copy of the GNU General Public License
17528 # along with GNU Libtool; see the file COPYING. If not, a copy
17529 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17530 # obtained by writing to the Free Software Foundation, Inc.,
17531 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17534 # The names of the tagged configurations supported by this script.
17537 # ### BEGIN LIBTOOL CONFIG
17539 # Assembler program.
17542 # DLL creation program.
17543 DLLTOOL=$lt_DLLTOOL
17545 # Object dumper program.
17546 OBJDUMP=$lt_OBJDUMP
17548 # Which release of libtool.m4 was used?
17549 macro_version=$macro_version
17550 macro_revision=$macro_revision
17552 # Whether or not to build shared libraries.
17553 build_libtool_libs=$enable_shared
17555 # Whether or not to build static libraries.
17556 build_old_libs=$enable_static
17558 # What type of objects to build.
17561 # Whether or not to optimize for fast installation.
17562 fast_install=$enable_fast_install
17564 # Shell to use when invoking shell scripts.
17567 # An echo program that protects backslashes.
17570 # The PATH separator for the build system.
17571 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17574 host_alias=$host_alias
17578 # The build system.
17579 build_alias=$build_alias
17583 # A sed program that does not truncate output.
17586 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17587 Xsed="\$SED -e 1s/^X//"
17589 # A grep program that handles long lines.
17595 # A literal string matcher.
17598 # A BSD- or MS-compatible name lister.
17601 # Whether we need soft or hard links.
17604 # What is the maximum length of a command?
17605 max_cmd_len=$max_cmd_len
17607 # Object file suffix (normally "o").
17610 # Executable file suffix (normally "").
17613 # whether the shell understands "unset".
17616 # turn spaces into newlines.
17619 # turn newlines into spaces.
17622 # convert \$build file names to \$host format.
17623 to_host_file_cmd=$lt_cv_to_host_file_cmd
17625 # convert \$build files to toolchain format.
17626 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17628 # Method to check whether dependent libraries are shared objects.
17629 deplibs_check_method=$lt_deplibs_check_method
17631 # Command to use when deplibs_check_method = "file_magic".
17632 file_magic_cmd=$lt_file_magic_cmd
17634 # How to find potential files when deplibs_check_method = "file_magic".
17635 file_magic_glob=$lt_file_magic_glob
17637 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17638 want_nocaseglob=$lt_want_nocaseglob
17640 # Command to associate shared and link libraries.
17641 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17646 # Flags to create an archive.
17647 AR_FLAGS=$lt_AR_FLAGS
17649 # How to feed a file listing to the archiver.
17650 archiver_list_spec=$lt_archiver_list_spec
17652 # A symbol stripping program.
17655 # Commands used to install an old-style archive.
17657 old_postinstall_cmds=$lt_old_postinstall_cmds
17658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17660 # Whether to use a lock for old archive extraction.
17661 lock_old_archive_extraction=$lock_old_archive_extraction
17666 # LTCC compiler flags.
17667 LTCFLAGS=$lt_CFLAGS
17669 # Take the output of nm and produce a listing of raw symbols and C names.
17670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17672 # Transform the output of nm in a proper C declaration.
17673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17675 # Transform the output of nm in a C name address pair.
17676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17678 # Transform the output of nm in a C name address pair when lib prefix is needed.
17679 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17681 # Specify filename containing input files for \$NM.
17682 nm_file_list_spec=$lt_nm_file_list_spec
17684 # The root where to search for dependent libraries,and in which our libraries should be installed.
17685 lt_sysroot=$lt_sysroot
17687 # The name of the directory that contains temporary libtool files.
17690 # Used to examine libraries when file_magic_cmd begins with "file".
17691 MAGIC_CMD=$MAGIC_CMD
17693 # Must we lock files when doing compilation?
17694 need_locks=$lt_need_locks
17697 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17699 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17700 DSYMUTIL=$lt_DSYMUTIL
17702 # Tool to change global to local symbols on Mac OS X.
17705 # Tool to manipulate fat objects and archives on Mac OS X.
17708 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17711 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17712 OTOOL64=$lt_OTOOL64
17714 # Old archive suffix (normally "a").
17717 # Shared library suffix (normally ".so").
17718 shrext_cmds=$lt_shrext_cmds
17720 # The commands to extract the exported symbol list from a shared archive.
17721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17723 # Variables whose values should be saved in libtool wrapper scripts and
17724 # restored at link time.
17725 variables_saved_for_relink=$lt_variables_saved_for_relink
17727 # Do we need the "lib" prefix for modules?
17728 need_lib_prefix=$need_lib_prefix
17730 # Do we need a version for libraries?
17731 need_version=$need_version
17733 # Library versioning type.
17734 version_type=$version_type
17736 # Shared library runtime path variable.
17737 runpath_var=$runpath_var
17739 # Shared library path variable.
17740 shlibpath_var=$shlibpath_var
17742 # Is shlibpath searched before the hard-coded library search path?
17743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17745 # Format of library name prefix.
17746 libname_spec=$lt_libname_spec
17748 # List of archive names. First name is the real one, the rest are links.
17749 # The last name is the one that the linker finds with -lNAME
17750 library_names_spec=$lt_library_names_spec
17752 # The coded name of the library, if different from the real name.
17753 soname_spec=$lt_soname_spec
17755 # Permission mode override for installation of shared libraries.
17756 install_override_mode=$lt_install_override_mode
17758 # Command to use after installation of a shared archive.
17759 postinstall_cmds=$lt_postinstall_cmds
17761 # Command to use after uninstallation of a shared archive.
17762 postuninstall_cmds=$lt_postuninstall_cmds
17764 # Commands used to finish a libtool library installation in a directory.
17765 finish_cmds=$lt_finish_cmds
17767 # As "finish_cmds", except a single script fragment to be evaled but
17769 finish_eval=$lt_finish_eval
17771 # Whether we should hardcode library paths into libraries.
17772 hardcode_into_libs=$hardcode_into_libs
17774 # Compile-time system search path for libraries.
17775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17777 # Run-time system search path for libraries.
17778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17780 # Whether dlopen is supported.
17781 dlopen_support=$enable_dlopen
17783 # Whether dlopen of programs is supported.
17784 dlopen_self=$enable_dlopen_self
17786 # Whether dlopen of statically linked programs is supported.
17787 dlopen_self_static=$enable_dlopen_self_static
17789 # Commands to strip libraries.
17790 old_striplib=$lt_old_striplib
17791 striplib=$lt_striplib
17794 # The linker used to build libraries.
17797 # How to create reloadable object files.
17798 reload_flag=$lt_reload_flag
17799 reload_cmds=$lt_reload_cmds
17801 # Commands used to build an old-style archive.
17802 old_archive_cmds=$lt_old_archive_cmds
17804 # A language specific compiler.
17807 # Is the compiler the GNU compiler?
17810 # Compiler flag to turn off builtin functions.
17811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17813 # Additional compiler flags for building library objects.
17814 pic_flag=$lt_lt_prog_compiler_pic
17816 # How to pass a linker flag through the compiler.
17817 wl=$lt_lt_prog_compiler_wl
17819 # Compiler flag to prevent dynamic linking.
17820 link_static_flag=$lt_lt_prog_compiler_static
17822 # Does compiler simultaneously support -c and -o options?
17823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17825 # Whether or not to add -lc for building shared libraries.
17826 build_libtool_need_lc=$archive_cmds_need_lc
17828 # Whether or not to disallow shared libs when runtime libs are static.
17829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17831 # Compiler flag to allow reflexive dlopens.
17832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17834 # Compiler flag to generate shared objects directly from archives.
17835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17837 # Whether the compiler copes with passing no objects directly.
17838 compiler_needs_object=$lt_compiler_needs_object
17840 # Create an old-style archive from a shared archive.
17841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17843 # Create a temporary old-style archive to link instead of a shared archive.
17844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17846 # Commands used to build a shared archive.
17847 archive_cmds=$lt_archive_cmds
17848 archive_expsym_cmds=$lt_archive_expsym_cmds
17850 # Commands used to build a loadable module if different from building
17851 # a shared archive.
17852 module_cmds=$lt_module_cmds
17853 module_expsym_cmds=$lt_module_expsym_cmds
17855 # Whether we are building with GNU ld or not.
17856 with_gnu_ld=$lt_with_gnu_ld
17858 # Flag that allows shared libraries with undefined symbols to be built.
17859 allow_undefined_flag=$lt_allow_undefined_flag
17861 # Flag that enforces no undefined symbols.
17862 no_undefined_flag=$lt_no_undefined_flag
17864 # Flag to hardcode \$libdir into a binary during linking.
17865 # This must work even if \$libdir does not exist
17866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17868 # Whether we need a single "-rpath" flag with a separated argument.
17869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17872 # DIR into the resulting binary.
17873 hardcode_direct=$hardcode_direct
17875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17876 # DIR into the resulting binary and the resulting library dependency is
17877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17878 # library is relocated.
17879 hardcode_direct_absolute=$hardcode_direct_absolute
17881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17882 # into the resulting binary.
17883 hardcode_minus_L=$hardcode_minus_L
17885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17886 # into the resulting binary.
17887 hardcode_shlibpath_var=$hardcode_shlibpath_var
17889 # Set to "yes" if building a shared library automatically hardcodes DIR
17890 # into the library and all subsequent libraries and executables linked
17892 hardcode_automatic=$hardcode_automatic
17894 # Set to yes if linker adds runtime paths of dependent libraries
17895 # to runtime path list.
17896 inherit_rpath=$inherit_rpath
17898 # Whether libtool must link a program against all its dependency libraries.
17899 link_all_deplibs=$link_all_deplibs
17901 # Set to "yes" if exported symbols are required.
17902 always_export_symbols=$always_export_symbols
17904 # The commands to list exported symbols.
17905 export_symbols_cmds=$lt_export_symbols_cmds
17907 # Symbols that should not be listed in the preloaded symbols.
17908 exclude_expsyms=$lt_exclude_expsyms
17910 # Symbols that must always be exported.
17911 include_expsyms=$lt_include_expsyms
17913 # Commands necessary for linking programs (against libraries) with templates.
17914 prelink_cmds=$lt_prelink_cmds
17916 # Commands necessary for finishing linking programs.
17917 postlink_cmds=$lt_postlink_cmds
17919 # Specify filename containing input files.
17920 file_list_spec=$lt_file_list_spec
17922 # How to hardcode a shared library path into an executable.
17923 hardcode_action=$hardcode_action
17925 # ### END LIBTOOL CONFIG
17931 cat <<\_LT_EOF >> "$cfgfile"
17932 # AIX sometimes has problems with the GCC collect2 program. For some
17933 # reason, if we set the COLLECT_NAMES environment variable, the problems
17934 # vanish in a puff of smoke.
17935 if test "X${COLLECT_NAMES+set}" != Xset; then
17937 export COLLECT_NAMES
17944 ltmain="$ac_aux_dir/ltmain.sh"
17947 # We use sed instead of cat because bash on DJGPP gets confused if
17948 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17949 # text mode, it properly converts lines to CR/LF. This bash problem
17950 # is reportedly fixed, but why not run on old versions too?
17951 sed '$q' "$ltmain" >> "$cfgfile" \
17952 || (rm -f "$cfgfile"; exit 1)
17954 if test x"$xsi_shell" = xyes; then
17955 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17959 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17960 \ * ) func_dirname_result="${3}" ;;\
17962 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17963 && mv -f "$cfgfile.tmp" "$cfgfile" \
17964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17965 test 0 -eq $? || _lt_function_replace_fail=:
17968 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17971 \ func_basename_result="${1##*/}"\
17972 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17973 && mv -f "$cfgfile.tmp" "$cfgfile" \
17974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17975 test 0 -eq $? || _lt_function_replace_fail=:
17978 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17979 func_dirname_and_basename ()\
17982 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17983 \ * ) func_dirname_result="${3}" ;;\
17985 \ func_basename_result="${1##*/}"\
17986 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17987 && mv -f "$cfgfile.tmp" "$cfgfile" \
17988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17989 test 0 -eq $? || _lt_function_replace_fail=:
17992 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17995 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17996 \ # positional parameters, so assign one to ordinary parameter first.\
17997 \ func_stripname_result=${3}\
17998 \ func_stripname_result=${func_stripname_result#"${1}"}\
17999 \ func_stripname_result=${func_stripname_result%"${2}"}\
18000 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18001 && mv -f "$cfgfile.tmp" "$cfgfile" \
18002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18003 test 0 -eq $? || _lt_function_replace_fail=:
18006 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18007 func_split_long_opt ()\
18009 \ func_split_long_opt_name=${1%%=*}\
18010 \ func_split_long_opt_arg=${1#*=}\
18011 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18012 && mv -f "$cfgfile.tmp" "$cfgfile" \
18013 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18014 test 0 -eq $? || _lt_function_replace_fail=:
18017 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18018 func_split_short_opt ()\
18020 \ func_split_short_opt_arg=${1#??}\
18021 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18022 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18023 && mv -f "$cfgfile.tmp" "$cfgfile" \
18024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18025 test 0 -eq $? || _lt_function_replace_fail=:
18028 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18032 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18033 \ *) func_lo2o_result=${1} ;;\
18035 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18036 && mv -f "$cfgfile.tmp" "$cfgfile" \
18037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18038 test 0 -eq $? || _lt_function_replace_fail=:
18041 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18044 func_xform_result=${1%.*}.lo\
18045 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18046 && mv -f "$cfgfile.tmp" "$cfgfile" \
18047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18048 test 0 -eq $? || _lt_function_replace_fail=:
18051 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18054 func_arith_result=$(( $* ))\
18055 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18056 && mv -f "$cfgfile.tmp" "$cfgfile" \
18057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18058 test 0 -eq $? || _lt_function_replace_fail=:
18061 sed -e '/^func_len ()$/,/^} # func_len /c\
18064 func_len_result=${#1}\
18065 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18066 && mv -f "$cfgfile.tmp" "$cfgfile" \
18067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18068 test 0 -eq $? || _lt_function_replace_fail=:
18072 if test x"$lt_shell_append" = xyes; then
18073 sed -e '/^func_append ()$/,/^} # func_append /c\
18076 eval "${1}+=\\${2}"\
18077 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18078 && mv -f "$cfgfile.tmp" "$cfgfile" \
18079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18080 test 0 -eq $? || _lt_function_replace_fail=:
18083 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18084 func_append_quoted ()\
18086 \ func_quote_for_eval "${2}"\
18087 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18088 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18089 && mv -f "$cfgfile.tmp" "$cfgfile" \
18090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18091 test 0 -eq $? || _lt_function_replace_fail=:
18094 # Save a `func_append' function call where possible by direct use of '+='
18095 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18096 && mv -f "$cfgfile.tmp" "$cfgfile" \
18097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18098 test 0 -eq $? || _lt_function_replace_fail=:
18100 # Save a `func_append' function call even when '+=' is not available
18101 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18102 && mv -f "$cfgfile.tmp" "$cfgfile" \
18103 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18104 test 0 -eq $? || _lt_function_replace_fail=:
18107 if test x"$_lt_function_replace_fail" = x":"; then
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18109 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18113 mv -f "$cfgfile" "$ofile" ||
18114 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
18120 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
18121 ac_stdint=$tmp/_stdint.h
18123 echo "#ifndef" $_ac_stdint_h >$ac_stdint
18124 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
18125 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
18126 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
18127 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
18128 if test "_$ac_cv_header_stdint_t" != "_" ; then
18129 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
18130 echo "#include <stdint.h>" >>$ac_stdint
18131 echo "#endif" >>$ac_stdint
18132 echo "#endif" >>$ac_stdint
18135 cat >>$ac_stdint <<STDINT_EOF
18137 /* ................... shortcircuit part ........................... */
18139 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
18140 #include <stdint.h>
18142 #include <stddef.h>
18144 /* .................... configured part ............................ */
18148 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
18149 if test "_$ac_cv_header_stdint_x" != "_" ; then
18150 ac_header="$ac_cv_header_stdint_x"
18151 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
18153 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
18156 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
18157 if test "_$ac_cv_header_stdint_o" != "_" ; then
18158 ac_header="$ac_cv_header_stdint_o"
18159 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
18161 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
18164 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
18165 if test "_$ac_cv_header_stdint_u" != "_" ; then
18166 ac_header="$ac_cv_header_stdint_u"
18167 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
18169 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
18172 echo "" >>$ac_stdint
18174 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
18175 echo "#include <$ac_header>" >>$ac_stdint
18176 echo "" >>$ac_stdint
18179 echo "/* which 64bit typedef has been found */" >>$ac_stdint
18180 if test "$ac_cv_type_uint64_t" = "yes" ; then
18181 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
18183 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
18185 if test "$ac_cv_type_u_int64_t" = "yes" ; then
18186 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
18188 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
18190 echo "" >>$ac_stdint
18192 echo "/* which type model has been detected */" >>$ac_stdint
18193 if test "_$ac_cv_char_data_model" != "_" ; then
18194 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
18195 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
18197 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
18198 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
18200 echo "" >>$ac_stdint
18202 echo "/* whether int_least types were detected */" >>$ac_stdint
18203 if test "$ac_cv_type_int_least32_t" = "yes"; then
18204 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
18206 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
18208 echo "/* whether int_fast types were detected */" >>$ac_stdint
18209 if test "$ac_cv_type_int_fast32_t" = "yes"; then
18210 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
18212 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
18214 echo "/* whether intmax_t type was detected */" >>$ac_stdint
18215 if test "$ac_cv_type_intmax_t" = "yes"; then
18216 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
18218 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
18220 echo "" >>$ac_stdint
18222 cat >>$ac_stdint <<STDINT_EOF
18223 /* .................... detections part ............................ */
18225 /* whether we need to define bitspecific types from compiler base types */
18226 #ifndef _STDINT_HEADER_INTPTR
18227 #ifndef _STDINT_HEADER_UINT32
18228 #ifndef _STDINT_HEADER_U_INT32
18229 #define _STDINT_NEED_INT_MODEL_T
18231 #define _STDINT_HAVE_U_INT_TYPES
18236 #ifdef _STDINT_HAVE_U_INT_TYPES
18237 #undef _STDINT_NEED_INT_MODEL_T
18240 #ifdef _STDINT_CHAR_MODEL
18241 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
18242 #ifndef _STDINT_BYTE_MODEL
18243 #define _STDINT_BYTE_MODEL 12
18248 #ifndef _STDINT_HAVE_INT_LEAST32_T
18249 #define _STDINT_NEED_INT_LEAST_T
18252 #ifndef _STDINT_HAVE_INT_FAST32_T
18253 #define _STDINT_NEED_INT_FAST_T
18256 #ifndef _STDINT_HEADER_INTPTR
18257 #define _STDINT_NEED_INTPTR_T
18258 #ifndef _STDINT_HAVE_INTMAX_T
18259 #define _STDINT_NEED_INTMAX_T
18264 /* .................... definition part ............................ */
18266 /* some system headers have good uint64_t */
18267 #ifndef _HAVE_UINT64_T
18268 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
18269 #define _HAVE_UINT64_T
18270 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
18271 #define _HAVE_UINT64_T
18272 typedef u_int64_t uint64_t;
18276 #ifndef _HAVE_UINT64_T
18277 /* .. here are some common heuristics using compiler runtime specifics */
18278 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
18279 #define _HAVE_UINT64_T
18280 #define _HAVE_LONGLONG_UINT64_T
18281 typedef long long int64_t;
18282 typedef unsigned long long uint64_t;
18284 #elif !defined __STRICT_ANSI__
18285 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18286 #define _HAVE_UINT64_T
18287 typedef __int64 int64_t;
18288 typedef unsigned __int64 uint64_t;
18290 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
18291 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
18292 #if !defined _NO_LONGLONG
18293 #define _HAVE_UINT64_T
18294 #define _HAVE_LONGLONG_UINT64_T
18295 typedef long long int64_t;
18296 typedef unsigned long long uint64_t;
18299 #elif defined __alpha || (defined __mips && defined _ABIN32)
18300 #if !defined _NO_LONGLONG
18301 typedef long int64_t;
18302 typedef unsigned long uint64_t;
18304 /* compiler/cpu type to define int64_t */
18309 #if defined _STDINT_HAVE_U_INT_TYPES
18310 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
18311 typedef u_int8_t uint8_t;
18312 typedef u_int16_t uint16_t;
18313 typedef u_int32_t uint32_t;
18315 /* glibc compatibility */
18316 #ifndef __int8_t_defined
18317 #define __int8_t_defined
18321 #ifdef _STDINT_NEED_INT_MODEL_T
18322 /* we must guess all the basic types. Apart from byte-adressable system, */
18323 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
18324 /* (btw, those nibble-addressable systems are way off, or so we assume) */
18327 #if defined _STDINT_BYTE_MODEL
18328 #if _STDINT_LONG_MODEL+0 == 242
18329 /* 2:4:2 = IP16 = a normal 16-bit system */
18330 typedef unsigned char uint8_t;
18331 typedef unsigned short uint16_t;
18332 typedef unsigned long uint32_t;
18333 #ifndef __int8_t_defined
18334 #define __int8_t_defined
18335 typedef char int8_t;
18336 typedef short int16_t;
18337 typedef long int32_t;
18339 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
18340 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
18341 /* 4:4:4 = ILP32 = a normal 32-bit system */
18342 typedef unsigned char uint8_t;
18343 typedef unsigned short uint16_t;
18344 typedef unsigned int uint32_t;
18345 #ifndef __int8_t_defined
18346 #define __int8_t_defined
18347 typedef char int8_t;
18348 typedef short int16_t;
18349 typedef int int32_t;
18351 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
18352 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
18353 /* 4:8:8 = LP64 = a normal 64-bit system */
18354 typedef unsigned char uint8_t;
18355 typedef unsigned short uint16_t;
18356 typedef unsigned int uint32_t;
18357 #ifndef __int8_t_defined
18358 #define __int8_t_defined
18359 typedef char int8_t;
18360 typedef short int16_t;
18361 typedef int int32_t;
18363 /* this system has a "long" of 64bit */
18364 #ifndef _HAVE_UINT64_T
18365 #define _HAVE_UINT64_T
18366 typedef unsigned long uint64_t;
18367 typedef long int64_t;
18369 #elif _STDINT_LONG_MODEL+0 == 448
18370 /* LLP64 a 64-bit system derived from a 32-bit system */
18371 typedef unsigned char uint8_t;
18372 typedef unsigned short uint16_t;
18373 typedef unsigned int uint32_t;
18374 #ifndef __int8_t_defined
18375 #define __int8_t_defined
18376 typedef char int8_t;
18377 typedef short int16_t;
18378 typedef int int32_t;
18380 /* assuming the system has a "long long" */
18381 #ifndef _HAVE_UINT64_T
18382 #define _HAVE_UINT64_T
18383 #define _HAVE_LONGLONG_UINT64_T
18384 typedef unsigned long long uint64_t;
18385 typedef long long int64_t;
18388 #define _STDINT_NO_INT32_T
18391 #define _STDINT_NO_INT8_T
18392 #define _STDINT_NO_INT32_T
18397 * quote from SunOS-5.8 sys/inttypes.h:
18398 * Use at your own risk. As of February 1996, the committee is squarely
18399 * behind the fixed sized types; the "least" and "fast" types are still being
18400 * discussed. The probability that the "fast" types may be removed before
18401 * the standard is finalized is high enough that they are not currently
18405 #if defined _STDINT_NEED_INT_LEAST_T
18406 typedef int8_t int_least8_t;
18407 typedef int16_t int_least16_t;
18408 typedef int32_t int_least32_t;
18409 #ifdef _HAVE_UINT64_T
18410 typedef int64_t int_least64_t;
18413 typedef uint8_t uint_least8_t;
18414 typedef uint16_t uint_least16_t;
18415 typedef uint32_t uint_least32_t;
18416 #ifdef _HAVE_UINT64_T
18417 typedef uint64_t uint_least64_t;
18422 #if defined _STDINT_NEED_INT_FAST_T
18423 typedef int8_t int_fast8_t;
18424 typedef int int_fast16_t;
18425 typedef int32_t int_fast32_t;
18426 #ifdef _HAVE_UINT64_T
18427 typedef int64_t int_fast64_t;
18430 typedef uint8_t uint_fast8_t;
18431 typedef unsigned uint_fast16_t;
18432 typedef uint32_t uint_fast32_t;
18433 #ifdef _HAVE_UINT64_T
18434 typedef uint64_t uint_fast64_t;
18439 #ifdef _STDINT_NEED_INTMAX_T
18440 #ifdef _HAVE_UINT64_T
18441 typedef int64_t intmax_t;
18442 typedef uint64_t uintmax_t;
18444 typedef long intmax_t;
18445 typedef unsigned long uintmax_t;
18449 #ifdef _STDINT_NEED_INTPTR_T
18450 #ifndef __intptr_t_defined
18451 #define __intptr_t_defined
18452 /* we encourage using "long" to store pointer values, never use "int" ! */
18453 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
18454 typedef unsigned int uintptr_t;
18455 typedef int intptr_t;
18456 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
18457 typedef unsigned long uintptr_t;
18458 typedef long intptr_t;
18459 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
18460 typedef uint64_t uintptr_t;
18461 typedef int64_t intptr_t;
18462 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
18463 typedef unsigned long uintptr_t;
18464 typedef long intptr_t;
18469 /* The ISO C99 standard specifies that in C++ implementations these
18470 should only be defined if explicitly requested. */
18471 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
18475 # define INT8_C(c) c
18476 # define INT16_C(c) c
18477 # define INT32_C(c) c
18478 # ifdef _HAVE_LONGLONG_UINT64_T
18479 # define INT64_C(c) c ## L
18481 # define INT64_C(c) c ## LL
18485 # define UINT8_C(c) c ## U
18486 # define UINT16_C(c) c ## U
18487 # define UINT32_C(c) c ## U
18488 # ifdef _HAVE_LONGLONG_UINT64_T
18489 # define UINT64_C(c) c ## UL
18491 # define UINT64_C(c) c ## ULL
18494 /* Maximal type. */
18495 # ifdef _HAVE_LONGLONG_UINT64_T
18496 # define INTMAX_C(c) c ## L
18497 # define UINTMAX_C(c) c ## UL
18499 # define INTMAX_C(c) c ## LL
18500 # define UINTMAX_C(c) c ## ULL
18503 /* literalnumbers */
18507 /* These limits are merily those of a two complement byte-oriented system */
18509 /* Minimum of signed integral types. */
18510 # define INT8_MIN (-128)
18511 # define INT16_MIN (-32767-1)
18512 # define INT32_MIN (-2147483647-1)
18513 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
18514 /* Maximum of signed integral types. */
18515 # define INT8_MAX (127)
18516 # define INT16_MAX (32767)
18517 # define INT32_MAX (2147483647)
18518 # define INT64_MAX (__INT64_C(9223372036854775807))
18520 /* Maximum of unsigned integral types. */
18521 # define UINT8_MAX (255)
18522 # define UINT16_MAX (65535)
18523 # define UINT32_MAX (4294967295U)
18524 # define UINT64_MAX (__UINT64_C(18446744073709551615))
18526 /* Minimum of signed integral types having a minimum size. */
18527 # define INT_LEAST8_MIN INT8_MIN
18528 # define INT_LEAST16_MIN INT16_MIN
18529 # define INT_LEAST32_MIN INT32_MIN
18530 # define INT_LEAST64_MIN INT64_MIN
18531 /* Maximum of signed integral types having a minimum size. */
18532 # define INT_LEAST8_MAX INT8_MAX
18533 # define INT_LEAST16_MAX INT16_MAX
18534 # define INT_LEAST32_MAX INT32_MAX
18535 # define INT_LEAST64_MAX INT64_MAX
18537 /* Maximum of unsigned integral types having a minimum size. */
18538 # define UINT_LEAST8_MAX UINT8_MAX
18539 # define UINT_LEAST16_MAX UINT16_MAX
18540 # define UINT_LEAST32_MAX UINT32_MAX
18541 # define UINT_LEAST64_MAX UINT64_MAX
18550 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
18552 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
18554 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
18555 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18556 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
18557 X"$ac_stdint_h" : 'X\(//\)$' \| \
18558 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
18559 $as_echo X"$ac_stdint_h" |
18560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18564 /^X\(\/\/\)[^/].*/{
18577 as_dir="$ac_dir"; as_fn_mkdir_p
18579 mv $ac_stdint $ac_stdint_h
18589 ac_clean_files=$ac_clean_files_save
18591 test $ac_write_fail = 0 ||
18592 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18595 # configure is writing to config.log, and then calls config.status.
18596 # config.status does its own redirection, appending to config.log.
18597 # Unfortunately, on DOS this fails, as config.log is still kept open
18598 # by configure, so config.status won't be able to write to it; its
18599 # output is simply discarded. So we exec the FD to /dev/null,
18600 # effectively closing config.log, so it can be properly (re)opened and
18601 # appended to by config.status. When coming back to configure, we
18602 # need to make the FD available again.
18603 if test "$no_create" != yes; then
18605 ac_config_status_args=
18606 test "$silent" = yes &&
18607 ac_config_status_args="$ac_config_status_args --quiet"
18609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18612 # would make configure fail if this is the last instruction.
18613 $ac_cs_success || as_fn_exit 1
18615 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18617 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}