2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.31.51.
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.
588 PACKAGE_NAME
='binutils'
589 PACKAGE_TARNAME
='binutils'
590 PACKAGE_VERSION
='2.31.51'
591 PACKAGE_STRING
='binutils 2.31.51'
595 ac_unique_file
="ar.c"
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>
632 ac_subst_vars
='am__EXEEXT_FALSE
638 OBJDUMP_PRIVATE_OFILES
660 MAINTAINER_MODE_FALSE
684 WARN_CFLAGS_FOR_BUILD
727 INSTALL_STRIP_PROGRAM
788 program_transform_name
801 enable_option_checking
802 enable_dependency_tracking
813 enable_deterministic_archives
814 enable_default_strings_all
816 enable_build_warnings
818 enable_maintainer_mode
823 ac_precious_vars
='build_alias
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 includedir
='${prefix}/include'
873 oldincludedir
='/usr/include'
874 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir
='${datarootdir}/info'
880 libdir
='${exec_prefix}/lib'
881 localedir
='${datarootdir}/locale'
882 mandir
='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\
$ac_option
896 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
907 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
909 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
912 -build |
--build |
--buil |
--bui |
--bu)
913 ac_prev
=build_alias
;;
914 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
915 build_alias
=$ac_optarg ;;
917 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
918 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
919 ac_prev
=cache_file
;;
920 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
921 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
922 cache_file
=$ac_optarg ;;
925 cache_file
=config.cache
;;
927 -datadir |
--datadir |
--datadi |
--datad)
929 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
930 datadir
=$ac_optarg ;;
932 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
933 |
--dataroo |
--dataro |
--datar)
934 ac_prev
=datarootdir
;;
935 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
936 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
937 datarootdir
=$ac_optarg ;;
939 -disable-* |
--disable-*)
940 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
943 as_fn_error $?
"invalid feature name: $ac_useropt"
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error $?
"invalid feature name: $ac_useropt"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=\
$ac_optarg ;;
981 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
982 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
983 |
--exec |
--exe |
--ex)
984 ac_prev
=exec_prefix
;;
985 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
986 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
987 |
--exec=* |
--exe=* |
--ex=*)
988 exec_prefix
=$ac_optarg ;;
990 -gas |
--gas |
--ga |
--g)
991 # Obsolete; use --with-gas.
994 -help |
--help |
--hel |
--he |
-h)
996 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
997 ac_init_help
=recursive
;;
998 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
999 ac_init_help
=short
;;
1001 -host |
--host |
--hos |
--ho)
1002 ac_prev
=host_alias
;;
1003 -host=* |
--host=* |
--hos=* |
--ho=*)
1004 host_alias
=$ac_optarg ;;
1006 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1008 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1010 htmldir
=$ac_optarg ;;
1012 -includedir |
--includedir |
--includedi |
--included |
--include \
1013 |
--includ |
--inclu |
--incl |
--inc)
1014 ac_prev
=includedir
;;
1015 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1016 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1017 includedir
=$ac_optarg ;;
1019 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1021 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1022 infodir
=$ac_optarg ;;
1024 -libdir |
--libdir |
--libdi |
--libd)
1026 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1027 libdir
=$ac_optarg ;;
1029 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1030 |
--libexe |
--libex |
--libe)
1031 ac_prev
=libexecdir
;;
1032 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1033 |
--libexe=* |
--libex=* |
--libe=*)
1034 libexecdir
=$ac_optarg ;;
1036 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1037 ac_prev
=localedir
;;
1038 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1039 localedir
=$ac_optarg ;;
1041 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1042 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1043 ac_prev
=localstatedir
;;
1044 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1045 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1046 localstatedir
=$ac_optarg ;;
1048 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1050 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1051 mandir
=$ac_optarg ;;
1053 -nfp |
--nfp |
--nf)
1054 # Obsolete; use --without-fp.
1057 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1058 |
--no-cr |
--no-c |
-n)
1061 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1062 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1065 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1066 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1067 |
--oldin |
--oldi |
--old |
--ol |
--o)
1068 ac_prev
=oldincludedir
;;
1069 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1070 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1071 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1072 oldincludedir
=$ac_optarg ;;
1074 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1076 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1077 prefix
=$ac_optarg ;;
1079 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1080 |
--program-pre |
--program-pr |
--program-p)
1081 ac_prev
=program_prefix
;;
1082 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1083 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1084 program_prefix
=$ac_optarg ;;
1086 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1087 |
--program-suf |
--program-su |
--program-s)
1088 ac_prev
=program_suffix
;;
1089 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1090 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1091 program_suffix
=$ac_optarg ;;
1093 -program-transform-name |
--program-transform-name \
1094 |
--program-transform-nam |
--program-transform-na \
1095 |
--program-transform-n |
--program-transform- \
1096 |
--program-transform |
--program-transfor \
1097 |
--program-transfo |
--program-transf \
1098 |
--program-trans |
--program-tran \
1099 |
--progr-tra |
--program-tr |
--program-t)
1100 ac_prev
=program_transform_name
;;
1101 -program-transform-name=* |
--program-transform-name=* \
1102 |
--program-transform-nam=* |
--program-transform-na=* \
1103 |
--program-transform-n=* |
--program-transform-=* \
1104 |
--program-transform=* |
--program-transfor=* \
1105 |
--program-transfo=* |
--program-transf=* \
1106 |
--program-trans=* |
--program-tran=* \
1107 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1108 program_transform_name
=$ac_optarg ;;
1110 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1112 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1113 pdfdir
=$ac_optarg ;;
1115 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1117 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1120 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1121 |
-silent |
--silent |
--silen |
--sile |
--sil)
1124 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1126 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1128 sbindir
=$ac_optarg ;;
1130 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1131 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1132 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1134 ac_prev
=sharedstatedir
;;
1135 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1136 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1137 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1139 sharedstatedir
=$ac_optarg ;;
1141 -site |
--site |
--sit)
1143 -site=* |
--site=* |
--sit=*)
1146 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1148 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1149 srcdir
=$ac_optarg ;;
1151 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1152 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1153 ac_prev
=sysconfdir
;;
1154 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1155 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1156 sysconfdir
=$ac_optarg ;;
1158 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1159 ac_prev
=target_alias
;;
1160 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1161 target_alias
=$ac_optarg ;;
1163 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1166 -version |
--version |
--versio |
--versi |
--vers |
-V)
1167 ac_init_version
=: ;;
1170 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error $?
"invalid package name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval with_
$ac_useropt=\
$ac_optarg ;;
1185 -without-* |
--without-*)
1186 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1189 as_fn_error $?
"invalid package name: $ac_useropt"
1190 ac_useropt_orig
=$ac_useropt
1191 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep
=', ';;
1199 eval with_
$ac_useropt=no
;;
1202 # Obsolete; use --with-x.
1205 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1206 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1207 ac_prev
=x_includes
;;
1208 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1209 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1210 x_includes
=$ac_optarg ;;
1212 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1213 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1214 ac_prev
=x_libraries
;;
1215 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1216 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1217 x_libraries
=$ac_optarg ;;
1219 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1224 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1228 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\
$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 if test -n "$ac_prev"; then
1245 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $?
"missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val
=\$
$ac_var
1264 # Remove trailing slashes.
1267 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\
$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$
]* | ?
:[\\/]* ) continue;;
1273 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1275 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target
=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x
; then
1287 if test "x$build_alias" = x
; then
1288 cross_compiling
=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1297 test "$silent" = yes && exec 6>/dev
/null
1300 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di
=`ls -di .` &&
1302 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $?
"working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $?
"pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted
=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir
=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1340 ac_srcdir_defaulted
=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1344 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var
in $ac_precious_vars; do
1361 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1363 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures binutils 2.31.51 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1437 --build=BUILD configure
for building on BUILD
[guessed
]
1438 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1439 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive
) echo "Configuration of binutils 2.31.51:";;
1450 --disable-option-checking ignore unrecognized
--enable/--with options
1451 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1452 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1458 --disable-silent-rules verbose build output
(undo
: "make V=0")
1459 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1460 --enable-static[=PKGS
] build static libraries
[default
=yes]
1461 --enable-fast-install[=PKGS
]
1462 optimize
for fast installation
[default
=yes]
1463 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1464 --enable-plugins Enable support
for plugins
1465 --disable-largefile omit support
for large files
1466 --enable-targets alternative target configurations
1467 --enable-deterministic-archives
1468 ar and ranlib default to
-D behavior
1469 --disable-default-strings-all
1470 strings defaults to
--data behavior
1471 --enable-werror treat compile warnings as errors
1472 --enable-build-warnings enable build-time compiler warnings
1473 --disable-nls do not use Native Language Support
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful
(and
1476 sometimes confusing
) to the casual installer
1477 --disable-rpath do not hardcode runtime library paths
1480 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1481 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1482 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1484 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1485 --with-system-zlib use installed libz
1486 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1487 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1488 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1499 YACC The `Yet Another Compiler Compiler' implementation to use.
1500 Defaults to the first program found out of
: `bison -y', `byacc
',
1502 YFLAGS The list of arguments that will be passed by default to
$YACC.
1503 This
script will default YFLAGS to the empty string to avoid a
1504 default value of
`-d' given by some make applications.
1506 Use these variables to override the choices made by `configure
' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1509 Report bugs to the package provider.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1539 .) # We are building in place.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1572 binutils configure 2.31.51
1573 generated by GNU Autoconf 2.69
1575 Copyright (C) 2012 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1602 if test -s conftest.err; then
1603 grep -v '^
*+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's
/^
/|
/' conftest.$ac_ext >&5
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_c_try_compile
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^
*+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 test -x conftest$ac_exeext
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's
/^
/|
/' conftest.$ac_ext >&5
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We
do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status
$ac_retval
1668 } # ac_fn_c_try_link
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1676 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1707 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710 # the include files in INCLUDES and setting the cache variable VAR
1712 ac_fn_c_check_header_mongrel ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if eval \${$3+:} false; then :
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1725 # Is the header compilable?
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727 $as_echo_n "checking $2 usability... " >&6; }
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_header_compiler=yes
1736 ac_header_compiler=no
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740 $as_echo "$ac_header_compiler" >&6; }
1742 # Is the header present?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744 $as_echo_n "checking $2 presence... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1749 if ac_fn_c_try_cpp "$LINENO"; then :
1750 ac_header_preproc=yes
1752 ac_header_preproc=no
1754 rm -f conftest.err conftest.i conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756 $as_echo "$ac_header_preproc" >&6; }
1758 # So? What about this header?
1759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1770 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1774 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 eval "$3=\$ac_header_compiler"
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_header_mongrel
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1804 *) ac_try_echo
=$ac_try;;
1806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1812 { { case "(($ac_try" in
1813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_try") 2>&5
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 ac_retval=$ac_status
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1836 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837 # -------------------------------------------------------
1838 # Tests whether HEADER exists and can be compiled using the include files in
1839 # INCLUDES, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1853 if ac_fn_c_try_compile "$LINENO"; then :
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 } # ac_fn_c_check_header_compile
1867 # ac_fn_c_check_func LINENO FUNC VAR
1868 # ----------------------------------
1869 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1870 ac_fn_c_check_func ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882 #define $2 innocuous_$2
1884 /* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below.
1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887 <limits.h> exists even on freestanding compilers. */
1890 # include <limits.h>
1892 # include <assert.h>
1897 /* Override any GCC internal prototype to avoid an error.
1898 Use char because int might match the return type of a GCC
1899 builtin and then its argument prototype would still apply. */
1904 /* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907 #if defined __stub_$2 || defined __stub___$2
1919 if ac_fn_c_try_link "$LINENO"; then :
1924 rm -f core conftest.err conftest.$ac_objext \
1925 conftest$ac_exeext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_func
1934 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1935 # --------------------------------------------
1936 # Tries to find the compile-time value of EXPR in a program that includes
1937 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1939 ac_fn_c_compute_int ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if test "$cross_compiling" = yes; then
1943 # Depending upon the size, compute the lo and hi bounds.
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1950 static int test_array [1 - 2 * !(($2) >= 0)];
1952 return test_array [0];
1958 if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1967 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1969 return test_array [0];
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_hi=$ac_mid; break
1978 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1979 if test $ac_lo -le $ac_mid; then
1983 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1994 static int test_array [1 - 2 * !(($2) < 0)];
1996 return test_array [0];
2002 if ac_fn_c_try_compile "$LINENO"; then :
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2011 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2013 return test_array [0];
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_lo=$ac_mid; break
2022 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2023 if test $ac_mid -le $ac_hi; then
2027 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 # Binary search between lo and hi bounds.
2038 while test "x$ac_lo" != "x$ac_hi"; do
2039 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2048 return test_array [0];
2054 if ac_fn_c_try_compile "$LINENO"; then :
2057 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2069 static long int longval () { return $2; }
2070 static unsigned long int ulongval () { return $2; }
2077 FILE *f = fopen ("conftest.val", "w");
2082 long int i = longval ();
2085 fprintf (f, "%ld", i);
2089 unsigned long int i = ulongval ();
2092 fprintf (f, "%lu", i);
2094 /* Do not output a trailing newline, as this causes \r\n confusion
2095 on some platforms. */
2096 return ferror (f) || fclose (f) != 0;
2102 if ac_fn_c_try_run "$LINENO"; then :
2103 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2108 conftest.$ac_objext conftest.beam conftest.$ac_ext
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 as_fn_set_status $ac_retval
2115 } # ac_fn_c_compute_int
2117 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2118 # -------------------------------------------
2119 # Tests whether TYPE exists after having included INCLUDES, setting cache
2120 # variable VAR accordingly.
2121 ac_fn_c_check_type ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_type
2171 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2172 # ---------------------------------------------
2173 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2175 ac_fn_c_check_decl ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2179 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if eval \${$3+:} false; then :
2183 $as_echo_n "(cached) " >&6
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 #ifndef $as_decl_name
2193 (void) $as_decl_use;
2195 (void) $as_decl_name;
2203 if ac_fn_c_try_compile "$LINENO"; then :
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 } # ac_fn_c_check_decl
2216 cat >config.log <<_ACEOF
2217 This file contains any messages produced by compilers while
2218 running configure, to aid debugging if configure makes a mistake.
2220 It was created by binutils $as_me 2.31.51, which was
2221 generated by GNU Autoconf 2.69. Invocation command line was
2233 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2234 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2235 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2236 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2237 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2239 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2240 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2242 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2243 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2244 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2245 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2246 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2247 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2248 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 test -z "$as_dir" && as_dir=.
2257 $as_echo "PATH: $as_dir"
2273 # Keep a trace of the command line.
2274 # Strip out --no-create and --no-recursion so they do not pile up.
2275 # Strip out --silent because we don't want to record it for future runs.
2276 # Also quote any args containing shell meta-characters.
2277 # Make two passes to allow for proper duplicate-argument suppression.
2281 ac_must_keep_next=false
2287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289 | -silent | --silent | --silen | --sile | --sil)
2292 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2295 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2297 as_fn_append ac_configure_args1 " '$ac_arg'"
2298 if test $ac_must_keep_next = true; then
2299 ac_must_keep_next=false # Got value, back to normal.
2302 *=* | --config-cache | -C | -disable-* | --disable-* \
2303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305 | -with-* | --with-* | -without-* | --without-* | --x)
2306 case "$ac_configure_args0 " in
2307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310 -* ) ac_must_keep_next=true ;;
2313 as_fn_append ac_configure_args " '$ac_arg'"
2318 { ac_configure_args0=; unset ac_configure_args0;}
2319 { ac_configure_args1=; unset ac_configure_args1;}
2321 # When interrupted or exit'd, cleanup temporary files, and complete
2322 # config.log. We remove comments because anyway the quotes in there
2323 # would cause problems or look ugly.
2324 # WARNING: Use '\'' to represent an apostrophe within the trap.
2325 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326 trap 'exit_status=$?
2327 # Save into config.log some information that might help in debugging.
2331 $as_echo "## ---------------- ##
2332 ## Cache variables. ##
2333 ## ---------------- ##"
2335 # The following way of writing the cache mishandles newlines in values,
2337 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2338 eval ac_val=\$$ac_var
2342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346 _ | IFS | as_nl) ;; #(
2347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348 *) { eval $ac_var=; unset $ac_var;} ;;
2353 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2354 *${as_nl}ac_space=\ *)
2356 "s/'\''/'\''\\\\'\'''\''/g;
2357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2367 $as_echo "## ----------------- ##
2368 ## Output variables. ##
2369 ## ----------------- ##"
2371 for ac_var in $ac_subst_vars
2373 eval ac_val=\$$ac_var
2375 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 $as_echo "$ac_var='\''$ac_val'\''"
2381 if test -n "$ac_subst_files"; then
2382 $as_echo "## ------------------- ##
2383 ## File substitutions. ##
2384 ## ------------------- ##"
2386 for ac_var in $ac_subst_files
2388 eval ac_val=\$$ac_var
2390 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392 $as_echo "$ac_var='\''$ac_val'\''"
2397 if test -s confdefs.h; then
2398 $as_echo "## ----------- ##
2405 test "$ac_signal" != 0 &&
2406 $as_echo "$as_me: caught signal $ac_signal"
2407 $as_echo "$as_me: exit $exit_status"
2409 rm -f core *.core core.conftest.* &&
2410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413 for ac_signal in 1 2 13 15; do
2414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2418 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2419 rm -f -r conftest* confdefs.h
2421 $as_echo "/* confdefs.h */" > confdefs.h
2423 # Predefined preprocessor variables.
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_NAME "$PACKAGE_NAME"
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_STRING "$PACKAGE_STRING"
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_URL "$PACKAGE_URL"
2450 # Let the site file select an alternate cache file if it wants to.
2451 # Prefer an explicitly selected file to automatically selected ones.
2454 if test -n "$CONFIG_SITE"; then
2455 # We do not want a PATH search for config.site.
2456 case $CONFIG_SITE in #((
2457 -*) ac_site_file1=./$CONFIG_SITE;;
2458 */*) ac_site_file1=$CONFIG_SITE;;
2459 *) ac_site_file1=./$CONFIG_SITE;;
2461 elif test "x$prefix" != xNONE; then
2462 ac_site_file1=$prefix/share/config.site
2463 ac_site_file2=$prefix/etc/config.site
2465 ac_site_file1=$ac_default_prefix/share/config.site
2466 ac_site_file2=$ac_default_prefix/etc/config.site
2468 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2470 test "x$ac_site_file" = xNONE && continue
2471 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474 sed 's/^/| /' "$ac_site_file" >&5
2476 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478 as_fn_error $? "failed to load site
script $ac_site_file
2479 See \
`config.log' for more details" "$LINENO" 5; }
2483 if test -r "$cache_file"; then
2484 # Some versions of bash will fail to source /dev/null (special files
2485 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2486 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488 $as_echo "$as_me: loading cache $cache_file" >&6;}
2490 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491 *) . "./$cache_file";;
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496 $as_echo "$as_me: creating cache $cache_file" >&6;}
2500 # Check that the precious variables saved in the cache have kept the same
2502 ac_cache_corrupted=false
2503 for ac_var in $ac_precious_vars; do
2504 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505 eval ac_new_set=\$ac_env_${ac_var}_set
2506 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507 eval ac_new_val=\$ac_env_${ac_var}_value
2508 case $ac_old_set,$ac_new_set in
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2511 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512 ac_cache_corrupted=: ;;
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2515 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2516 ac_cache_corrupted=: ;;
2519 if test "x$ac_old_val" != "x$ac_new_val"; then
2520 # differences in whitespace do not lead to failure.
2521 ac_old_val_w=`echo x
$ac_old_val`
2522 ac_new_val_w=`echo x
$ac_new_val`
2523 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2526 ac_cache_corrupted=:
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2529 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530 eval $ac_var=\$ac_old_val
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2533 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2535 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2538 # Pass precious variables to config.status.
2539 if test "$ac_new_set" = set; then
2541 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2542 *) ac_arg=$ac_var=$ac_new_val ;;
2544 case " $ac_configure_args " in
2545 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2546 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550 if $ac_cache_corrupted; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2557 ## -------------------- ##
2558 ## Main body of script. ##
2559 ## -------------------- ##
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575 if test -f "$ac_dir/install-sh"; then
2577 ac_install_sh="$ac_aux_dir/install-sh -c"
2579 elif test -f "$ac_dir/install.sh"; then
2581 ac_install_sh="$ac_aux_dir/install.sh -c"
2583 elif test -f "$ac_dir/shtool"; then
2585 ac_install_sh="$ac_aux_dir/shtool install -c"
2589 if test -z "$ac_aux_dir"; then
2590 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2593 # These three variables are undocumented and unsupported,
2594 # and are intended to be withdrawn in a future Autoconf release.
2595 # They can cause serious problems if a builder's source tree is in a directory
2596 # whose full name contains unusual characters.
2597 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2598 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2599 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2602 # Make sure we can run config.sub.
2603 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607 $as_echo_n "checking build system type... " >&6; }
2608 if ${ac_cv_build+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 ac_build_alias=$build_alias
2612 test "x$ac_build_alias" = x &&
2613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614 test "x$ac_build_alias" = x &&
2615 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621 $as_echo "$ac_cv_build" >&6; }
2622 case $ac_cv_build in
2624 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2627 ac_save_IFS=$IFS; IFS='-'
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2637 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641 $as_echo_n "checking host system type... " >&6; }
2642 if ${ac_cv_host+:} false; then :
2643 $as_echo_n "(cached) " >&6
2645 if test "x$host_alias" = x; then
2646 ac_cv_host=$ac_cv_build
2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2657 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2660 ac_save_IFS=$IFS; IFS='-'
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2670 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674 $as_echo_n "checking target system type... " >&6; }
2675 if ${ac_cv_target+:} false; then :
2676 $as_echo_n "(cached) " >&6
2678 if test "x$target_alias" = x; then
2679 ac_cv_target=$ac_cv_host
2681 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687 $as_echo "$ac_cv_target" >&6; }
2688 case $ac_cv_target in
2690 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2692 target=$ac_cv_target
2693 ac_save_IFS=$IFS; IFS='-'
2699 # Remember, the first character of IFS is used to create $*,
2700 # except with old shells:
2703 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2706 # The aliases save the names the user supplied, while $host etc.
2707 # will get canonicalized.
2708 test -n "$target_alias" &&
2709 test "$program_prefix$program_suffix$program_transform_name" = \
2711 program_prefix=${target_alias}-
2712 # Expand $ac_aux_dir to an absolute path.
2713 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_CC+:} false; then :
2726 $as_echo_n "(cached) " >&6
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2759 if test -z "$ac_cv_prog_CC"; then
2761 # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_CC="gcc"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2797 if test "x$ac_ct_CC" = x; then
2800 case $cross_compiling:$ac_tool_warned in
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2812 if test -z "$CC"; then
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}cc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_CC="${ac_tool_prefix}cc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2853 if test -z "$CC"; then
2854 # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected=yes
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test $ac_prog_rejected = yes; then
2885 # We found a bogon in the path, so make sure we never use it.
2886 set dummy $ac_cv_prog_CC
2888 if test $# != 0; then
2889 # We chose a different compiler from the bogus one.
2890 # However, it has the same basename, so the bogon will be chosen
2891 # first if we set CC to just the basename; use the full file name.
2893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2909 if test -z "$CC"; then
2910 if test -n "$ac_tool_prefix"; then
2911 for ac_prog in cl.exe
2913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 if test -n "$CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2950 test -n "$CC" && break
2953 if test -z "$CC"; then
2955 for ac_prog in cl.exe
2957 # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$ac_ct_CC"; then
2965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_ac_ct_CC="$ac_prog"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985 if test -n "$ac_ct_CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987 $as_echo "$ac_ct_CC" >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2994 test -n "$ac_ct_CC" && break
2997 if test "x$ac_ct_CC" = x; then
3000 case $cross_compiling:$ac_tool_warned in
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3013 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3016 See \
`config.log' for more details" "$LINENO" 5; }
3018 # Provide some information about the compiler.
3019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3022 for ac_option in --version -v -V -qversion; do
3023 { { ac_try="$ac_compiler $ac_option >&5"
3025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3026 *) ac_try_echo
=$ac_try;;
3028 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3032 if test -s conftest.err
; then
3034 ... rest of stderr output deleted ...
3035 10q' conftest.err
>conftest.er1
3036 cat conftest.er1
>&5
3038 rm -f conftest.er1 conftest.err
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }
3043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3054 ac_clean_files_save
=$ac_clean_files
3055 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3060 $as_echo_n "checking whether the C compiler works... " >&6; }
3061 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063 # The possible output files:
3064 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3067 for ac_file
in $ac_files
3070 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3071 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3076 if { { ac_try
="$ac_link_default"
3078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link_default") 2>&5
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3088 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3089 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3090 # so that the user can short-circuit this test for compilers unknown to
3092 for ac_file in $ac_files ''
3094 test -f "$ac_file" || continue
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3099 # We found the default executable, but exeext='' is most
3103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 # We set ac_cv_exeext here because the later test for it is not
3108 # safe: cross compilers may not add the suffix if given an `-o'
3109 # argument, so we may need to know it at that point already.
3110 # Even if this section looks crufty: it has the advantage of
3117 test "$ac_cv_exeext" = no && ac_cv_exeext=
3122 if test -z "$ac_file"; then :
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's
/^
/|
/' conftest.$ac_ext >&5
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3130 as_fn_error 77 "C compiler cannot create executables
3131 See \`config.log
' for more details" "$LINENO" 5; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3137 $as_echo_n "checking for C compiler default output file name... " >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3139 $as_echo "$ac_file" >&6; }
3140 ac_exeext=$ac_cv_exeext
3142 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3143 ac_clean_files=$ac_clean_files_save
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3145 $as_echo_n "checking for suffix of executables... " >&6; }
3146 if { { ac_try="$ac_link"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_link") 2>&5
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; then :
3157 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3158 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3159 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3161 for ac_file
in conftest.exe conftest conftest.
*; do
3162 test -f "$ac_file" ||
continue
3164 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3165 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3174 See \`config.log' for more details" "$LINENO" 5; }
3176 rm -f conftest conftest
$ac_cv_exeext
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3178 $as_echo "$ac_cv_exeext" >&6; }
3180 rm -f conftest.
$ac_ext
3181 EXEEXT
=$ac_cv_exeext
3183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3189 FILE *f = fopen ("conftest.out", "w");
3190 return ferror (f) || fclose (f) != 0;
3196 ac_clean_files
="$ac_clean_files conftest.out"
3197 # Check that the compiler produces executables we can run. If not, either
3198 # the compiler is broken, or we cross compile.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3200 $as_echo_n "checking whether we are cross compiling... " >&6; }
3201 if test "$cross_compiling" != yes; then
3202 { { ac_try
="$ac_link"
3204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link") 2>&5
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }
3213 if { ac_try='./conftest$ac_cv_exeext'
3214 { { case "(($ac_try" in
3215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3216 *) ac_try_echo
=$ac_try;;
3218 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_try") 2>&5
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }; }; then
3226 if test "$cross_compiling" = maybe
; then
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $?
"cannot run C compiled programs.
3232 If you meant to cross compile, use \`--host'.
3233 See \`config.log' for more details" "$LINENO" 5; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3238 $as_echo "$cross_compiling" >&6; }
3240 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3241 ac_clean_files
=$ac_clean_files_save
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3243 $as_echo_n "checking for suffix of object files... " >&6; }
3244 if ${ac_cv_objext+:} false
; then :
3245 $as_echo_n "(cached) " >&6
3247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3258 rm -f conftest.o conftest.obj
3259 if { { ac_try
="$ac_compile"
3261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_compile") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 for ac_file in conftest.o conftest.obj conftest.*; do
3271 test -f "$ac_file" || continue;
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3285 See \
`config.log' for more details" "$LINENO" 5; }
3287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3290 $as_echo "$ac_cv_objext" >&6; }
3291 OBJEXT=$ac_cv_objext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3294 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3295 if ${ac_cv_c_compiler_gnu+:} false; then :
3296 $as_echo_n "(cached) " >&6
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3312 if ac_fn_c_try_compile "$LINENO"; then :
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3322 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3323 if test $ac_compiler_gnu = yes; then
3328 ac_test_CFLAGS=${CFLAGS+set}
3329 ac_save_CFLAGS=$CFLAGS
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3331 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3332 if ${ac_cv_prog_cc_g+:} false; then :
3333 $as_echo_n "(cached) " >&6
3335 ac_save_c_werror_flag=$ac_c_werror_flag
3336 ac_c_werror_flag=yes
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 if ac_fn_c_try_compile "$LINENO"; then :
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3365 if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3381 if ac_fn_c_try_compile "$LINENO"; then :
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_c_werror_flag=$ac_save_c_werror_flag
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3392 $as_echo "$ac_cv_prog_cc_g" >&6; }
3393 if test "$ac_test_CFLAGS" = set; then
3394 CFLAGS=$ac_save_CFLAGS
3395 elif test $ac_cv_prog_cc_g = yes; then
3396 if test "$GCC" = yes; then
3402 if test "$GCC" = yes; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3409 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3410 if ${ac_cv_prog_cc_c89+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 ac_cv_prog_cc_c89=no
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3434 s = g (p, va_arg (v,int));
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3440 function prototypes and stuff, but not '\xHH' hex character constants.
3441 These don't provoke an error unfortunately, instead are silently treated
3442 as 'x'. The following induces an error, until -std is added to get
3443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3444 array size at least. It's necessary to write '\x00'==0 to get something
3445 that's true only with -std. */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449 inside strings and character constants. */
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470 CC="$ac_save_CC $ac_arg"
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472 ac_cv_prog_cc_c89=$ac_arg
3474 rm -f core conftest.err conftest.$ac_objext
3475 test "x$ac_cv_prog_cc_c89" != "xno" && break
3477 rm -f conftest.$ac_ext
3482 case "x$ac_cv_prog_cc_c89" in
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3485 $as_echo "none needed" >&6; } ;;
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3488 $as_echo "unsupported" >&6; } ;;
3490 CC="$CC $ac_cv_prog_cc_c89"
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3492 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3494 if test "x$ac_cv_prog_cc_c89" != xno; then :
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3510 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3511 if ${am_cv_prog_cc_c_o+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 # Make sure it works both with $CC and with simple cc.
3526 # Following AC_PROG_CC_C_O, we do the test twice because some
3527 # compilers refuse to overwrite an existing .o file with -o,
3528 # though they will create one.
3529 am_cv_prog_cc_c_o=yes
3531 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3532 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } \
3536 && test -f conftest2.$ac_objext; then
3539 am_cv_prog_cc_c_o=no
3543 rm -f core conftest*
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3547 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3548 if test "$am_cv_prog_cc_c_o" != yes; then
3549 # Losing compiler, so override with the script.
3550 # FIXME: It is wrong to rewrite CC.
3551 # But if we don't then we get into trouble of one sort or another.
3552 # A longer-term fix would be to have automake use am__CC in this case,
3553 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3554 CC="$am_aux_dir/compile $CC"
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3565 $as_echo_n "checking for library containing strerror... " >&6; }
3566 if ${ac_cv_search_strerror+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 ac_func_search_save_LIBS=$LIBS
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3573 /* Override any GCC internal prototype to avoid an error.
3574 Use char because int might match the return type of a GCC
3575 builtin and then its argument prototype would still apply. */
3588 for ac_lib in '' cposix; do
3589 if test -z "$ac_lib"; then
3590 ac_res="none required"
3593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3595 if ac_fn_c_try_link "$LINENO"; then :
3596 ac_cv_search_strerror=$ac_res
3598 rm -f core conftest.err conftest.$ac_objext \
3600 if ${ac_cv_search_strerror+:} false; then :
3604 if ${ac_cv_search_strerror+:} false; then :
3607 ac_cv_search_strerror=no
3610 LIBS=$ac_func_search_save_LIBS
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3613 $as_echo "$ac_cv_search_strerror" >&6; }
3614 ac_res=$ac_cv_search_strerror
3615 if test "$ac_res" != no; then :
3616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3621 am__api_version='1.15'
3623 # Find a good install program. We prefer a C program (faster),
3624 # so one script is as good as another. But avoid the broken or
3625 # incompatible versions:
3626 # SysV /etc/install, /usr/sbin/install
3627 # SunOS /usr/etc/install
3628 # IRIX /sbin/install
3630 # AmigaOS /C/install, which installs bootblocks on floppy discs
3631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634 # OS/2's system install, which has a completely different semantic
3635 # ./install, which can be erroneously created by make from ./install.sh.
3636 # Reject install programs that cannot install multiple files.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3639 if test -z "$INSTALL"; then
3640 if ${ac_cv_path_install+:} false; then :
3641 $as_echo_n "(cached) " >&6
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir=.
3648 # Account for people who put trailing slashes in PATH elements.
3649 case $as_dir/ in #((
3650 ./ | .// | /[cC]/* | \
3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3658 for ac_prog in ginstall scoinst install; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3661 if test $ac_prog = install &&
3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663 # AIX install. It has an incompatible calling convention.
3665 elif test $ac_prog = install &&
3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3670 rm -rf conftest.one conftest.two conftest.dir
3671 echo one > conftest.one
3672 echo two > conftest.two
3674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3675 test -s conftest.one && test -s conftest.two &&
3676 test -s conftest.dir/conftest.one &&
3677 test -s conftest.dir/conftest.two
3679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3692 rm -rf conftest.one conftest.two conftest.dir
3695 if test "${ac_cv_path_install+set}" = set; then
3696 INSTALL=$ac_cv_path_install
3698 # As a last resort, use the slow shell script. Don't cache a
3699 # value for INSTALL within a source directory, because that will
3700 # break other packages using the cache if that directory is
3701 # removed, or if the value is a relative name.
3702 INSTALL=$ac_install_sh
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3706 $as_echo "$INSTALL" >&6; }
3708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3709 # It thinks the first close brace ends the variable substitution.
3710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717 $as_echo_n "checking whether build environment is sane... " >&6; }
3718 # Reject unsafe characters in $srcdir or the absolute working directory
3719 # name. Accept space and tab only in the latter.
3723 *[\\\"\#\$\&\'\`$am_lf]*)
3724 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3727 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3728 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3731 # Do 'set' in a subshell so we don't clobber the current shell's
3732 # arguments. Must try -L first in case configure is actually a
3733 # symlink; some systems play weird games with the mod time of symlinks
3734 # (eg FreeBSD returns the mod time of the symlink's containing
3738 for am_try
in 1 2; do
3739 echo "timestamp, slept: $am_has_slept" > conftest.
file
3740 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3741 if test "$*" = "X"; then
3743 set X
`ls -t "$srcdir/configure" conftest.file`
3745 if test "$*" != "X $srcdir/configure conftest.file" \
3746 && test "$*" != "X conftest.file $srcdir/configure"; then
3748 # If neither matched, then we have a broken ls. This can happen
3749 # if, for instance, CONFIG_SHELL is bash and it inherits a
3750 # broken ls alias from the environment. This has actually
3751 # happened. Such a system could not be considered "sane".
3752 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3753 alias in your environment" "$LINENO" 5
3755 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3762 test "$2" = conftest.
file
3768 as_fn_error $?
"newly created file is older than distributed files!
3769 Check your system clock" "$LINENO" 5
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772 $as_echo "yes" >&6; }
3773 # If we didn't sleep, we still need to ensure time stamps of config.status and
3774 # generated files are strictly newer.
3776 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3783 test "$program_prefix" != NONE
&&
3784 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3785 # Use a double $ so make ignores it.
3786 test "$program_suffix" != NONE
&&
3787 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3788 # Double any \ or $.
3789 # By default was `s,x,x', remove it if useless.
3790 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3791 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3793 if test x
"${MISSING+set}" != xset
; then
3796 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3798 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3801 # Use eval to expand $SHELL
3802 if eval "$MISSING --is-lightweight"; then
3803 am_missing_run
="$MISSING "
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3807 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3810 if test x
"${install_sh+set}" != xset
; then
3813 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3815 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3819 # Installed binaries are usually stripped using 'strip' when the user
3820 # run "make install-strip". However 'strip' might not be the right
3821 # tool to use in cross-compilation environments, therefore Automake
3822 # will honor the 'STRIP' environment variable to overrule this program.
3823 if test "$cross_compiling" != no
; then
3824 if test -n "$ac_tool_prefix"; then
3825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3826 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_STRIP+:} false
; then :
3830 $as_echo_n "(cached) " >&6
3832 if test -n "$STRIP"; then
3833 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir
=.
3840 for ac_exec_ext
in '' $ac_executable_extensions; do
3841 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 STRIP
=$ac_cv_prog_STRIP
3853 if test -n "$STRIP"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3855 $as_echo "$STRIP" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3863 if test -z "$ac_cv_prog_STRIP"; then
3865 # Extract the first word of "strip", so it can be a program name with args.
3866 set dummy strip
; ac_word
=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3870 $as_echo_n "(cached) " >&6
3872 if test -n "$ac_ct_STRIP"; then
3873 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3879 test -z "$as_dir" && as_dir
=.
3880 for ac_exec_ext
in '' $ac_executable_extensions; do
3881 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_ac_ct_STRIP
="strip"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3893 if test -n "$ac_ct_STRIP"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3895 $as_echo "$ac_ct_STRIP" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3901 if test "x$ac_ct_STRIP" = x
; then
3904 case $cross_compiling:$ac_tool_warned in
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908 ac_tool_warned
=yes ;;
3913 STRIP
="$ac_cv_prog_STRIP"
3917 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3920 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3921 if test -z "$MKDIR_P"; then
3922 if ${ac_cv_path_mkdir+:} false
; then :
3923 $as_echo_n "(cached) " >&6
3925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3926 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3929 test -z "$as_dir" && as_dir
=.
3930 for ac_prog
in mkdir gmkdir
; do
3931 for ac_exec_ext
in '' $ac_executable_extensions; do
3932 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3933 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3934 'mkdir (GNU coreutils) '* | \
3935 'mkdir (coreutils) '* | \
3936 'mkdir (fileutils) '4.1*)
3937 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3947 test -d .
/--version && rmdir .
/--version
3948 if test "${ac_cv_path_mkdir+set}" = set; then
3949 MKDIR_P
="$ac_cv_path_mkdir -p"
3951 # As a last resort, use the slow shell script. Don't cache a
3952 # value for MKDIR_P within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the value is a relative name.
3955 MKDIR_P
="$ac_install_sh -d"
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3959 $as_echo "$MKDIR_P" >&6; }
3961 for ac_prog
in gawk mawk nawk
awk
3963 # Extract the first word of "$ac_prog", so it can be a program name with args.
3964 set dummy
$ac_prog; ac_word
=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_AWK+:} false
; then :
3968 $as_echo_n "(cached) " >&6
3970 if test -n "$AWK"; then
3971 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir
=.
3978 for ac_exec_ext
in '' $ac_executable_extensions; do
3979 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_AWK
="$ac_prog"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$AWK"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3993 $as_echo "$AWK" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4000 test -n "$AWK" && break
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4004 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4006 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4007 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4008 $as_echo_n "(cached) " >&6
4010 cat >conftest.
make <<\_ACEOF
4013 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4015 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4016 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4018 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4020 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4024 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026 $as_echo "yes" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 SET_MAKE
="MAKE=${MAKE-make}"
4034 rm -rf .tst
2>/dev
/null
4035 mkdir .tst
2>/dev
/null
4036 if test -d .tst
; then
4041 rmdir .tst
2>/dev
/null
4043 DEPDIR
="${am__leading_dot}deps"
4045 ac_config_commands
="$ac_config_commands depfiles"
4048 am_make
=${MAKE-make}
4049 cat > confinc
<< 'END'
4051 @
echo this is the am__doit target
4054 # If we don't find an include directive, just comment out the code.
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4060 # First try GNU make style include.
4061 echo "include confinc" > confmf
4062 # Ignore all kinds of additional output from 'make'.
4063 case `$am_make -s -f confmf 2> /dev/null` in #(
4064 *the\ am__doit\ target
*)
4070 # Now try BSD make style include.
4071 if test "$am__include" = "#"; then
4072 echo '.include "confinc"' > confmf
4073 case `$am_make -s -f confmf 2> /dev/null` in #(
4074 *the\ am__doit\ target
*)
4075 am__include
=.include
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4084 $as_echo "$_am_result" >&6; }
4085 rm -f confinc confmf
4087 # Check whether --enable-dependency-tracking was given.
4088 if test "${enable_dependency_tracking+set}" = set; then :
4089 enableval
=$enable_dependency_tracking;
4092 if test "x$enable_dependency_tracking" != xno
; then
4093 am_depcomp
="$ac_aux_dir/depcomp"
4097 if test "x$enable_dependency_tracking" != xno; then
4106 # Check whether --enable-silent-rules was given.
4107 if test "${enable_silent_rules+set}" = set; then :
4108 enableval
=$enable_silent_rules;
4111 case $enable_silent_rules in # (((
4112 yes) AM_DEFAULT_VERBOSITY
=0;;
4113 no
) AM_DEFAULT_VERBOSITY
=1;;
4114 *) AM_DEFAULT_VERBOSITY
=1;;
4116 am_make
=${MAKE-make}
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4118 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4119 if ${am_cv_make_support_nested_variables+:} false
; then :
4120 $as_echo_n "(cached) " >&6
4122 if $as_echo 'TRUE=$(BAR$(V))
4128 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4129 am_cv_make_support_nested_variables
=yes
4131 am_cv_make_support_nested_variables
=no
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4135 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4136 if test $am_cv_make_support_nested_variables = yes; then
4138 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4140 AM_V
=$AM_DEFAULT_VERBOSITY
4141 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4145 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4147 # is not polluted with repeated "-I."
4148 am__isrc
=' -I$(srcdir)'
4149 # test to see if srcdir already configured
4150 if test -f $srcdir/config.status
; then
4151 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4155 # test whether we have cygpath
4156 if test -z "$CYGPATH_W"; then
4157 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4158 CYGPATH_W
='cygpath -w'
4165 # Define the identity of the package.
4170 cat >>confdefs.h
<<_ACEOF
4171 #define PACKAGE "$PACKAGE"
4175 cat >>confdefs.h
<<_ACEOF
4176 #define VERSION "$VERSION"
4179 # Some tools Automake needs.
4181 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4184 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4187 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4190 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4193 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4195 # For better backward compatibility. To be removed once Automake 1.9.x
4196 # dies out for good. For more background, see:
4197 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4198 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4199 mkdir_p
='$(MKDIR_P)'
4201 # We need awk for the "check" target (and possibly the TAP driver). The
4202 # system "awk" is bad on some platforms.
4203 # Always define AMTAR for backward compatibility. Yes, it's still used
4204 # in the wild :-( We should find a proper way to deprecate it ...
4208 # We'll loop over all known methods to create a tar archive until one works.
4209 _am_tools
='gnutar pax cpio none'
4211 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4217 depcc
="$CC" am_compiler_list
=
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220 $as_echo_n "checking dependency style of $depcc... " >&6; }
4221 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4222 $as_echo_n "(cached) " >&6
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named 'D' -- because '-MD' means "put the output
4232 # Copy depcomp to subdir because otherwise we won't find it if we're
4233 # using a relative directory.
4234 cp "$am_depcomp" conftest.dir
4236 # We will build objects and dependencies in a subdirectory because
4237 # it helps to detect inapplicable dependency modes. For instance
4238 # both Tru64's cc and ICC support -MD to output dependencies as a
4239 # side effect of compilation, but ICC will put the dependencies in
4240 # the current directory while Tru64 will put them in the object
4244 am_cv_CC_dependencies_compiler_type
=none
4245 if test "$am_compiler_list" = ""; then
4246 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4249 case " $depcc " in #(
4250 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4253 for depmode
in $am_compiler_list; do
4254 # Setup a source with many dependencies, because some compilers
4255 # like to wrap large dependency lists on column 80 (with \), and
4256 # we should not choose a depcomp mode which is confused by this.
4258 # We need to recreate these files for each test, as the compiler may
4259 # overwrite some of them when testing with obscure command lines.
4260 # This happens at least with the AIX C compiler.
4262 for i
in 1 2 3 4 5 6; do
4263 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4265 # Solaris 10 /bin/sh.
4266 echo '/* dummy */' > sub
/conftst
$i.h
4268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4270 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4271 # mode. It turns out that the SunPro C++ compiler does not properly
4272 # handle '-M -o', and we need to detect this. Also, some Intel
4273 # versions had trouble with output in subdirs.
4274 am__obj
=sub
/conftest.
${OBJEXT-o}
4275 am__minus_obj
="-o $am__obj"
4278 # This depmode causes a compiler race in universal mode.
4279 test "$am__universal" = false ||
continue
4282 # After this tag, mechanisms are not by side-effect, so they'll
4283 # only be used when explicitly requested.
4284 if test "x$enable_dependency_tracking" = xyes
; then
4290 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4291 # This compiler won't grok '-c -o', but also, the minuso test has
4292 # not run yet. These depmodes are late enough in the game, and
4293 # so weak that their functioning should not be impacted.
4294 am__obj
=conftest.
${OBJEXT-o}
4299 if depmode
=$depmode \
4300 source=sub
/conftest.c object
=$am__obj \
4301 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4302 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4303 >/dev
/null
2>conftest.err
&&
4304 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4305 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4306 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4307 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4308 # icc doesn't choke on unknown options, it will just issue warnings
4309 # or remarks (even with -Werror). So we grep stderr for any message
4310 # that says an option was ignored or not supported.
4311 # When given -MP, icc 7.0 and 7.1 complain thusly:
4312 # icc: Command line warning: ignoring option '-M'; no argument required
4313 # The diagnosis changed in icc 8.0:
4314 # icc: Command line remark: option '-MP' not supported
4315 if (grep 'ignoring option' conftest.err ||
4316 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4317 am_cv_CC_dependencies_compiler_type
=$depmode
4326 am_cv_CC_dependencies_compiler_type
=none
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4332 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4335 test "x$enable_dependency_tracking" != xno \
4336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4338 am__fastdepCC_FALSE
='#'
4340 am__fastdepCC_TRUE
='#'
4341 am__fastdepCC_FALSE
=
4346 # POSIX will say in a future version that running "rm -f" with no argument
4347 # is OK; and we want to be able to make that assumption in our Makefile
4348 # recipes. So use an aggressive probe to check that the usage we want is
4349 # actually supported "in the wild" to an acceptable degree.
4350 # See automake bug#10828.
4351 # To make any issue more visible, cause the running configure to be aborted
4352 # by default if the 'rm' program in use doesn't match our expectations; the
4353 # user can still override this though.
4354 if rm -f && rm -fr && rm -rf; then : OK
; else
4358 Your 'rm' program seems unable to run without file operands specified
4359 on the command line, even when the '-f' option is present. This is contrary
4360 to the behaviour of most rm programs out there, and not conforming with
4361 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4363 Please tell bug-automake@gnu.org about your system, including the value
4364 of your $PATH and any error possibly output before this message. This
4365 can help us improve future automake versions.
4368 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4369 echo 'Configuration will proceed anyway, since you have set the' >&2
4370 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4374 Aborting the configuration process, to ensure you take notice of the issue.
4376 You can download and install GNU coreutils to get an 'rm' implementation
4377 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4379 If you want to complete the configuration process using your problematic
4380 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4381 to "yes", and re-run configure.
4384 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4390 ac_cpp
='$CPP $CPPFLAGS'
4391 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4394 if test -n "$ac_tool_prefix"; then
4395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4396 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_prog_CC+:} false
; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC
="$CC" # Let the user override the test.
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_exec_ext
in '' $ac_executable_extensions; do
4411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test -n "$CC"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4425 $as_echo "$CC" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4433 if test -z "$ac_cv_prog_CC"; then
4435 # Extract the first word of "gcc", so it can be a program name with args.
4436 set dummy gcc
; ac_word
=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4440 $as_echo_n "(cached) " >&6
4442 if test -n "$ac_ct_CC"; then
4443 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir
=.
4450 for ac_exec_ext
in '' $ac_executable_extensions; do
4451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_CC
="gcc"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4463 if test -n "$ac_ct_CC"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4465 $as_echo "$ac_ct_CC" >&6; }
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4471 if test "x$ac_ct_CC" = x
; then
4474 case $cross_compiling:$ac_tool_warned in
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned
=yes ;;
4486 if test -z "$CC"; then
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4489 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_CC+:} false
; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC
="$CC" # Let the user override the test.
4498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir
=.
4503 for ac_exec_ext
in '' $ac_executable_extensions; do
4504 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 if test -n "$CC"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4518 $as_echo "$CC" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4527 if test -z "$CC"; then
4528 # Extract the first word of "cc", so it can be a program name with args.
4529 set dummy cc
; ac_word
=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_CC+:} false
; then :
4533 $as_echo_n "(cached) " >&6
4535 if test -n "$CC"; then
4536 ac_cv_prog_CC
="$CC" # Let the user override the test.
4539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir
=.
4544 for ac_exec_ext
in '' $ac_executable_extensions; do
4545 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4547 ac_prog_rejected
=yes
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 if test $ac_prog_rejected = yes; then
4559 # We found a bogon in the path, so make sure we never use it.
4560 set dummy
$ac_cv_prog_CC
4562 if test $# != 0; then
4563 # We chose a different compiler from the bogus one.
4564 # However, it has the same basename, so the bogon will be chosen
4565 # first if we set CC to just the basename; use the full file name.
4567 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4573 if test -n "$CC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4575 $as_echo "$CC" >&6; }
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4583 if test -z "$CC"; then
4584 if test -n "$ac_tool_prefix"; then
4585 for ac_prog
in cl.exe
4587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if ${ac_cv_prog_CC+:} false
; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -n "$CC"; then
4595 ac_cv_prog_CC
="$CC" # Let the user override the test.
4597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4601 test -z "$as_dir" && as_dir
=.
4602 for ac_exec_ext
in '' $ac_executable_extensions; do
4603 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 if test -n "$CC"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4617 $as_echo "$CC" >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4624 test -n "$CC" && break
4627 if test -z "$CC"; then
4629 for ac_prog
in cl.exe
4631 # Extract the first word of "$ac_prog", so it can be a program name with args.
4632 set dummy
$ac_prog; ac_word
=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -n "$ac_ct_CC"; then
4639 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir
=.
4646 for ac_exec_ext
in '' $ac_executable_extensions; do
4647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_CC
="$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4659 if test -n "$ac_ct_CC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4661 $as_echo "$ac_ct_CC" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4668 test -n "$ac_ct_CC" && break
4671 if test "x$ac_ct_CC" = x
; then
4674 case $cross_compiling:$ac_tool_warned in
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned
=yes ;;
4687 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689 as_fn_error $?
"no acceptable C compiler found in \$PATH
4690 See \`config.log' for more details" "$LINENO" 5; }
4692 # Provide some information about the compiler.
4693 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4696 for ac_option
in --version -v -V -qversion; do
4697 { { ac_try
="$ac_compiler $ac_option >&5"
4699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703 $as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4706 if test -s conftest.err; then
4708 ... rest of stderr output deleted ...
4709 10q' conftest.err >conftest.er1
4710 cat conftest.er1 >&5
4712 rm -f conftest.er1 conftest.err
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4719 if ${ac_cv_c_compiler_gnu+:} false; then :
4720 $as_echo_n "(cached) " >&6
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4736 if ac_fn_c_try_compile "$LINENO"; then :
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4747 if test $ac_compiler_gnu = yes; then
4752 ac_test_CFLAGS=${CFLAGS+set}
4753 ac_save_CFLAGS=$CFLAGS
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4756 if ${ac_cv_prog_cc_g+:} false; then :
4757 $as_echo_n "(cached) " >&6
4759 ac_save_c_werror_flag=$ac_c_werror_flag
4760 ac_c_werror_flag=yes
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4774 if ac_fn_c_try_compile "$LINENO"; then :
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4789 if ac_fn_c_try_compile "$LINENO"; then :
4792 ac_c_werror_flag=$ac_save_c_werror_flag
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4805 if ac_fn_c_try_compile "$LINENO"; then :
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_c_werror_flag=$ac_save_c_werror_flag
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4816 $as_echo "$ac_cv_prog_cc_g" >&6; }
4817 if test "$ac_test_CFLAGS" = set; then
4818 CFLAGS=$ac_save_CFLAGS
4819 elif test $ac_cv_prog_cc_g = yes; then
4820 if test "$GCC" = yes; then
4826 if test "$GCC" = yes; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4834 if ${ac_cv_prog_cc_c89+:} false; then :
4835 $as_echo_n "(cached) " >&6
4837 ac_cv_prog_cc_c89=no
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4845 struct buf { int x; };
4846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847 static char *e (p, i)
4853 static char *f (char * (*g) (char **, int), char **p, ...)
4858 s = g (p, va_arg (v,int));
4863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4864 function prototypes and stuff, but not '\xHH' hex character constants.
4865 These don't provoke an error unfortunately, instead are silently treated
4866 as 'x'. The following induces an error, until -std is added to get
4867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4868 array size at least. It's necessary to write '\x00'==0 to get something
4869 that's true only with -std. */
4870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873 inside strings and character constants. */
4875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4877 int test (int i, double x);
4878 struct s1 {int (*f) (int a);};
4879 struct s2 {int (*f) (double a);};
4880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4894 CC="$ac_save_CC $ac_arg"
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_prog_cc_c89=$ac_arg
4898 rm -f core conftest.err conftest.$ac_objext
4899 test "x$ac_cv_prog_cc_c89" != "xno" && break
4901 rm -f conftest.$ac_ext
4906 case "x$ac_cv_prog_cc_c89" in
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909 $as_echo "none needed" >&6; } ;;
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912 $as_echo "unsupported" >&6; } ;;
4914 CC="$CC $ac_cv_prog_cc_c89"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4918 if test "x$ac_cv_prog_cc_c89" != xno; then :
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4934 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4935 if ${am_cv_prog_cc_c_o+:} false; then :
4936 $as_echo_n "(cached) " >&6
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4949 # Make sure it works both with $CC and with simple cc.
4950 # Following AC_PROG_CC_C_O, we do the test twice because some
4951 # compilers refuse to overwrite an existing .o file with -o,
4952 # though they will create one.
4953 am_cv_prog_cc_c_o=yes
4955 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4956 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } \
4960 && test -f conftest2.$ac_objext; then
4963 am_cv_prog_cc_c_o=no
4967 rm -f core conftest*
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4971 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4972 if test "$am_cv_prog_cc_c_o" != yes; then
4973 # Losing compiler, so override with the script.
4974 # FIXME: It is wrong to rewrite CC.
4975 # But if we don't then we get into trouble of one sort or another.
4976 # A longer-term fix would be to have automake use am__CC in this case,
4977 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4978 CC="$am_aux_dir/compile $CC"
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4993 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4994 # On Suns, sometimes $CPP names a directory.
4995 if test -n "$CPP" && test -d "$CPP"; then
4998 if test -z "$CPP"; then
4999 if ${ac_cv_prog_CPP+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 # Double quotes because CPP needs to be expanded
5003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5006 for ac_c_preproc_warn_flag in '' yes
5008 # Use a header file that comes with gcc, so configuring glibc
5009 # with a fresh cross-compiler works.
5010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 # <limits.h> exists even on freestanding compilers.
5012 # On the NeXT, cc -E runs the code through the compiler's parser,
5013 # not just through cpp. "Syntax error" is here to catch this case.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5017 # include <limits.h>
5019 # include <assert.h>
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5026 # Broken: fails on valid input.
5029 rm -f conftest.err conftest.i conftest.$ac_ext
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #include <ac_nonexistent.h>
5037 if ac_fn_c_try_cpp "$LINENO"; then :
5038 # Broken: success on invalid input.
5041 # Passes both tests.
5045 rm -f conftest.err conftest.i conftest.$ac_ext
5048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049 rm -f conftest.i conftest.err conftest.
$ac_ext
5050 if $ac_preproc_ok; then :
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5063 $as_echo "$CPP" >&6; }
5065 for ac_c_preproc_warn_flag
in '' yes
5067 # Use a header file that comes with gcc, so configuring glibc
5068 # with a fresh cross-compiler works.
5069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 # <limits.h> exists even on freestanding compilers.
5071 # On the NeXT, cc -E runs the code through the compiler's parser,
5072 # not just through cpp. "Syntax error" is here to catch this case.
5073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5076 # include <limits.h>
5078 # include <assert.h>
5082 if ac_fn_c_try_cpp
"$LINENO"; then :
5085 # Broken: fails on valid input.
5088 rm -f conftest.err conftest.i conftest.
$ac_ext
5090 # OK, works on sane cases. Now check whether nonexistent headers
5091 # can be detected and how.
5092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <ac_nonexistent.h>
5096 if ac_fn_c_try_cpp
"$LINENO"; then :
5097 # Broken: success on invalid input.
5100 # Passes both tests.
5104 rm -f conftest.err conftest.i conftest.
$ac_ext
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.i conftest.err conftest.
$ac_ext
5109 if $ac_preproc_ok; then :
5112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5114 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5115 See \`config.log' for more details" "$LINENO" 5; }
5119 ac_cpp
='$CPP $CPPFLAGS'
5120 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5126 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5127 if ${ac_cv_path_GREP+:} false
; then :
5128 $as_echo_n "(cached) " >&6
5130 if test -z "$GREP"; then
5131 ac_path_GREP_found
=false
5132 # Loop through the user's path and test for each of PROGNAME-LIST
5133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5134 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5137 test -z "$as_dir" && as_dir
=.
5138 for ac_prog
in grep ggrep
; do
5139 for ac_exec_ext
in '' $ac_executable_extensions; do
5140 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5141 as_fn_executable_p
"$ac_path_GREP" ||
continue
5142 # Check for GNU ac_path_GREP and select it if it is found.
5143 # Check for GNU $ac_path_GREP
5144 case `"$ac_path_GREP" --version 2>&1` in
5146 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5149 $as_echo_n 0123456789 >"conftest.in"
5152 cat "conftest.in" "conftest.in" >"conftest.tmp"
5153 mv "conftest.tmp" "conftest.in"
5154 cp "conftest.in" "conftest.nl"
5155 $as_echo 'GREP' >> "conftest.nl"
5156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5157 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5158 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5160 # Best one so far, save it but keep looking for a better one
5161 ac_cv_path_GREP
="$ac_path_GREP"
5162 ac_path_GREP_max
=$ac_count
5164 # 10*(2^10) chars as input seems more than enough
5165 test $ac_count -gt 10 && break
5167 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5170 $ac_path_GREP_found && break 3
5175 if test -z "$ac_cv_path_GREP"; then
5176 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5179 ac_cv_path_GREP
=$GREP
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5184 $as_echo "$ac_cv_path_GREP" >&6; }
5185 GREP
="$ac_cv_path_GREP"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5189 $as_echo_n "checking for egrep... " >&6; }
5190 if ${ac_cv_path_EGREP+:} false
; then :
5191 $as_echo_n "(cached) " >&6
5193 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5194 then ac_cv_path_EGREP
="$GREP -E"
5196 if test -z "$EGREP"; then
5197 ac_path_EGREP_found
=false
5198 # Loop through the user's path and test for each of PROGNAME-LIST
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5200 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_prog
in egrep; do
5205 for ac_exec_ext
in '' $ac_executable_extensions; do
5206 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5207 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5208 # Check for GNU ac_path_EGREP and select it if it is found.
5209 # Check for GNU $ac_path_EGREP
5210 case `"$ac_path_EGREP" --version 2>&1` in
5212 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5215 $as_echo_n 0123456789 >"conftest.in"
5218 cat "conftest.in" "conftest.in" >"conftest.tmp"
5219 mv "conftest.tmp" "conftest.in"
5220 cp "conftest.in" "conftest.nl"
5221 $as_echo 'EGREP' >> "conftest.nl"
5222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5223 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5224 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5226 # Best one so far, save it but keep looking for a better one
5227 ac_cv_path_EGREP
="$ac_path_EGREP"
5228 ac_path_EGREP_max
=$ac_count
5230 # 10*(2^10) chars as input seems more than enough
5231 test $ac_count -gt 10 && break
5233 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5236 $ac_path_EGREP_found && break 3
5241 if test -z "$ac_cv_path_EGREP"; then
5242 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5245 ac_cv_path_EGREP
=$EGREP
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5251 $as_echo "$ac_cv_path_EGREP" >&6; }
5252 EGREP
="$ac_cv_path_EGREP"
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5256 $as_echo_n "checking for ANSI C header files... " >&6; }
5257 if ${ac_cv_header_stdc+:} false
; then :
5258 $as_echo_n "(cached) " >&6
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5275 if ac_fn_c_try_compile
"$LINENO"; then :
5276 ac_cv_header_stdc
=yes
5278 ac_cv_header_stdc
=no
5280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5282 if test $ac_cv_header_stdc = yes; then
5283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "memchr" >/dev
/null
2>&1; then :
5293 ac_cv_header_stdc
=no
5299 if test $ac_cv_header_stdc = yes; then
5300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev
/null
2>&1; then :
5310 ac_cv_header_stdc
=no
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then :
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5325 #if ((' ' & 0x0FF) == 0x020)
5326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5329 # define ISLOWER(c) \
5330 (('a' <= (c) && (c) <= 'i') \
5331 || ('j' <= (c) && (c) <= 'r') \
5332 || ('s' <= (c) && (c) <= 'z'))
5333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5341 for (i = 0; i < 256; i++)
5342 if (XOR (islower (i), ISLOWER (i))
5343 || toupper (i) != TOUPPER (i))
5348 if ac_fn_c_try_run
"$LINENO"; then :
5351 ac_cv_header_stdc
=no
5353 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5354 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5360 $as_echo "$ac_cv_header_stdc" >&6; }
5361 if test $ac_cv_header_stdc = yes; then
5363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5368 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5369 inttypes.h stdint.h unistd.h
5371 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5374 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5375 cat >>confdefs.h
<<_ACEOF
5376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5386 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5393 if test "$MINIX" = yes; then
5395 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5398 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5401 $as_echo "#define _MINIX 1" >>confdefs.h
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5407 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5408 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5409 $as_echo_n "(cached) " >&6
5411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5414 # define __EXTENSIONS__ 1
5415 $ac_includes_default
5424 if ac_fn_c_try_compile
"$LINENO"; then :
5425 ac_cv_safe_to_define___extensions__
=yes
5427 ac_cv_safe_to_define___extensions__
=no
5429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5432 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5433 test $ac_cv_safe_to_define___extensions__ = yes &&
5434 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5436 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5438 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5440 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5442 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5451 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5456 macro_version
='2.2.7a'
5457 macro_revision
='1.3134'
5471 ltmain
="$ac_aux_dir/ltmain.sh"
5473 # Backslashify metacharacters that are still active within
5474 # double-quoted strings.
5475 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5477 # Same as above, but do not quote variable references.
5478 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5480 # Sed substitution to delay expansion of an escaped shell variable in a
5481 # double_quote_subst'ed string.
5482 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5484 # Sed substitution to delay expansion of an escaped single quote.
5485 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5487 # Sed substitution to avoid accidental globbing in evaled expressions
5488 no_glob_subst
='s/\*/\\\*/g'
5490 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5495 $as_echo_n "checking how to print strings... " >&6; }
5496 # Test print first, because it will be a builtin if present.
5497 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5498 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5500 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5503 # Use this function as a fallback that always works.
5504 func_fallback_echo ()
5506 eval 'cat <<_LTECHO_EOF
5510 ECHO='func_fallback_echo
'
5513 # func_echo_all arg...
5514 # Invoke $ECHO with all args, space-separated.
5521 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5522 $as_echo "printf" >&6; } ;;
5523 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5524 $as_echo "print -r" >&6; } ;;
5525 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5526 $as_echo "cat" >&6; } ;;
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5543 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5544 if ${ac_cv_path_SED+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5548 for ac_i in 1 2 3 4 5 6 7; do
5549 ac_script="$ac_script$as_nl$ac_script"
5551 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5552 { ac_script=; unset ac_script;}
5553 if test -z "$SED"; then
5554 ac_path_SED_found=false
5555 # Loop through the user's path and
test for each of PROGNAME-LIST
5556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir
=.
5561 for ac_prog
in sed gsed
; do
5562 for ac_exec_ext
in '' $ac_executable_extensions; do
5563 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5564 as_fn_executable_p
"$ac_path_SED" ||
continue
5565 # Check for GNU ac_path_SED and select it if it is found.
5566 # Check for GNU $ac_path_SED
5567 case `"$ac_path_SED" --version 2>&1` in
5569 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5572 $as_echo_n 0123456789 >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 $as_echo '' >> "conftest.nl"
5579 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5580 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5581 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5582 if test $ac_count -gt ${ac_path_SED_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_SED
="$ac_path_SED"
5585 ac_path_SED_max
=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5593 $ac_path_SED_found && break 3
5598 if test -z "$ac_cv_path_SED"; then
5599 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5607 $as_echo "$ac_cv_path_SED" >&6; }
5608 SED
="$ac_cv_path_SED"
5611 test -z "$SED" && SED
=sed
5612 Xsed
="$SED -e 1s/^X//"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5625 $as_echo_n "checking for fgrep... " >&6; }
5626 if ${ac_cv_path_FGREP+:} false
; then :
5627 $as_echo_n "(cached) " >&6
5629 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5630 then ac_cv_path_FGREP
="$GREP -F"
5632 if test -z "$FGREP"; then
5633 ac_path_FGREP_found
=false
5634 # Loop through the user's path and test for each of PROGNAME-LIST
5635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5636 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5639 test -z "$as_dir" && as_dir
=.
5640 for ac_prog
in fgrep
; do
5641 for ac_exec_ext
in '' $ac_executable_extensions; do
5642 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5643 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5644 # Check for GNU ac_path_FGREP and select it if it is found.
5645 # Check for GNU $ac_path_FGREP
5646 case `"$ac_path_FGREP" --version 2>&1` in
5648 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5651 $as_echo_n 0123456789 >"conftest.in"
5654 cat "conftest.in" "conftest.in" >"conftest.tmp"
5655 mv "conftest.tmp" "conftest.in"
5656 cp "conftest.in" "conftest.nl"
5657 $as_echo 'FGREP' >> "conftest.nl"
5658 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5659 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5660 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5661 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5662 # Best one so far, save it but keep looking for a better one
5663 ac_cv_path_FGREP
="$ac_path_FGREP"
5664 ac_path_FGREP_max
=$ac_count
5666 # 10*(2^10) chars as input seems more than enough
5667 test $ac_count -gt 10 && break
5669 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5672 $ac_path_FGREP_found && break 3
5677 if test -z "$ac_cv_path_FGREP"; then
5678 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5681 ac_cv_path_FGREP
=$FGREP
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5687 $as_echo "$ac_cv_path_FGREP" >&6; }
5688 FGREP
="$ac_cv_path_FGREP"
5691 test -z "$GREP" && GREP
=grep
5711 # Check whether --with-gnu-ld was given.
5712 if test "${with_gnu_ld+set}" = set; then :
5713 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5719 if test "$GCC" = yes; then
5720 # Check if gcc -print-prog-name=ld gives a path.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5722 $as_echo_n "checking for ld used by $CC... " >&6; }
5725 # gcc leaves a trailing carriage return which upsets mingw
5726 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5728 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5731 # Accept absolute paths.
5733 re_direlt
='/[^/][^/]*/\.\./'
5734 # Canonicalize the pathname of ld
5735 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5736 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5737 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5739 test -z "$LD" && LD
="$ac_prog"
5742 # If it fails, then pretend we aren't using GCC.
5746 # If it is relative, then search for the first ld in PATH.
5750 elif test "$with_gnu_ld" = yes; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5752 $as_echo_n "checking for GNU ld... " >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5755 $as_echo_n "checking for non-GNU ld... " >&6; }
5757 if ${lt_cv_path_LD+:} false
; then :
5758 $as_echo_n "(cached) " >&6
5760 if test -z "$LD"; then
5761 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5762 for ac_dir
in $PATH; do
5764 test -z "$ac_dir" && ac_dir
=.
5765 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5766 lt_cv_path_LD
="$ac_dir/$ac_prog"
5767 # Check to see if the program is GNU ld. I'd rather use --version,
5768 # but apparently some variants of GNU ld only accept -v.
5769 # Break only if it was the GNU/non-GNU ld that we prefer.
5770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5771 *GNU
* |
*'with BFD'*)
5772 test "$with_gnu_ld" != no
&& break
5775 test "$with_gnu_ld" != yes && break
5782 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5787 if test -n "$LD"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5789 $as_echo "$LD" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5794 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5797 if ${lt_cv_prog_gnu_ld+:} false
; then :
5798 $as_echo_n "(cached) " >&6
5800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5801 case `$LD -v 2>&1 </dev/null` in
5802 *GNU
* |
*'with BFD'*)
5803 lt_cv_prog_gnu_ld
=yes
5806 lt_cv_prog_gnu_ld
=no
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5811 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5812 with_gnu_ld
=$lt_cv_prog_gnu_ld
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5823 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5824 if ${lt_cv_path_NM+:} false
; then :
5825 $as_echo_n "(cached) " >&6
5827 if test -n "$NM"; then
5828 # Let the user override the test.
5831 lt_nm_to_check
="${ac_tool_prefix}nm"
5832 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5833 lt_nm_to_check
="$lt_nm_to_check nm"
5835 for lt_tmp_nm
in $lt_nm_to_check; do
5836 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5837 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5839 test -z "$ac_dir" && ac_dir
=.
5840 tmp_nm
="$ac_dir/$lt_tmp_nm"
5841 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5842 # Check to see if the nm accepts a BSD-compat flag.
5843 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5844 # nm: unknown option "B" ignored
5845 # Tru64's nm complains that /dev/null is an invalid object file
5846 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5847 */dev
/null
* |
*'Invalid file or object type'*)
5848 lt_cv_path_NM
="$tmp_nm -B"
5852 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5854 lt_cv_path_NM
="$tmp_nm -p"
5858 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5859 continue # so that we can try to find one that supports BSD flags
5868 : ${lt_cv_path_NM=no}
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5872 $as_echo "$lt_cv_path_NM" >&6; }
5873 if test "$lt_cv_path_NM" != "no"; then
5876 # Didn't find any BSD compatible name lister, look for dumpbin.
5877 if test -n "$DUMPBIN"; then :
5878 # Let the user override the test.
5880 if test -n "$ac_tool_prefix"; then
5881 for ac_prog
in dumpbin
"link -dump"
5883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5884 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -n "$DUMPBIN"; then
5891 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir
=.
5898 for ac_exec_ext
in '' $ac_executable_extensions; do
5899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 DUMPBIN
=$ac_cv_prog_DUMPBIN
5911 if test -n "$DUMPBIN"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5913 $as_echo "$DUMPBIN" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5920 test -n "$DUMPBIN" && break
5923 if test -z "$DUMPBIN"; then
5924 ac_ct_DUMPBIN
=$DUMPBIN
5925 for ac_prog
in dumpbin
"link -dump"
5927 # Extract the first word of "$ac_prog", so it can be a program name with args.
5928 set dummy
$ac_prog; ac_word
=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5932 $as_echo_n "(cached) " >&6
5934 if test -n "$ac_ct_DUMPBIN"; then
5935 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir
=.
5942 for ac_exec_ext
in '' $ac_executable_extensions; do
5943 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5955 if test -n "$ac_ct_DUMPBIN"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5957 $as_echo "$ac_ct_DUMPBIN" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5964 test -n "$ac_ct_DUMPBIN" && break
5967 if test "x$ac_ct_DUMPBIN" = x
; then
5970 case $cross_compiling:$ac_tool_warned in
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned
=yes ;;
5976 DUMPBIN
=$ac_ct_DUMPBIN
5980 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5982 DUMPBIN
="$DUMPBIN -symbols"
5990 if test "$DUMPBIN" != ":"; then
5994 test -z "$NM" && NM
=nm
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6002 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6003 if ${lt_cv_nm_interface+:} false
; then :
6004 $as_echo_n "(cached) " >&6
6006 lt_cv_nm_interface
="BSD nm"
6007 echo "int some_variable = 0;" > conftest.
$ac_ext
6008 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6009 (eval "$ac_compile" 2>conftest.err
)
6010 cat conftest.err
>&5
6011 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6012 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6013 cat conftest.err
>&5
6014 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6015 cat conftest.out
>&5
6016 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6017 lt_cv_nm_interface
="MS dumpbin"
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6022 $as_echo "$lt_cv_nm_interface" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6025 $as_echo_n "checking whether ln -s works... " >&6; }
6027 if test "$LN_S" = "ln -s"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6029 $as_echo "yes" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6032 $as_echo "no, using $LN_S" >&6; }
6035 # find the maximum length of command line arguments
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6037 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6038 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6046 # On DJGPP, this test can blow up pretty badly due to problems in libc
6047 # (any single argument exceeding 2000 bytes causes a buffer overrun
6048 # during glob expansion). Even if it were fixed, the result of this
6049 # check would be larger than it should be.
6050 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6054 # Under GNU Hurd, this test is not required because there is
6055 # no limit to the length of command line arguments.
6056 # Libtool will interpret -1 as no limit whatsoever
6057 lt_cv_sys_max_cmd_len
=-1;
6060 cygwin
* | mingw
* | cegcc
*)
6061 # On Win9x/ME, this test blows up -- it succeeds, but takes
6062 # about 5 minutes as the teststring grows exponentially.
6063 # Worse, since 9x/ME are not pre-emptively multitasking,
6064 # you end up with a "frozen" computer, even though with patience
6065 # the test eventually succeeds (with a max line length of 256k).
6066 # Instead, let's just punt: use the minimum linelength reported by
6067 # all of the supported platforms: 8192 (on NT/2K/XP).
6068 lt_cv_sys_max_cmd_len
=8192;
6072 # On MiNT this can take a long time and run out of memory.
6073 lt_cv_sys_max_cmd_len
=8192;
6077 # On AmigaOS with pdksh, this test takes hours, literally.
6078 # So we just punt and use a minimum line length of 8192.
6079 lt_cv_sys_max_cmd_len
=8192;
6082 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6083 # This has been around since 386BSD, at least. Likely further.
6084 if test -x /sbin
/sysctl
; then
6085 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6086 elif test -x /usr
/sbin
/sysctl
; then
6087 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6089 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6091 # And add a safety zone
6092 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6093 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6097 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6098 lt_cv_sys_max_cmd_len
=196608
6102 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6103 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6104 # nice to cause kernel panics so lets avoid the loop below.
6105 # First set a reasonable default.
6106 lt_cv_sys_max_cmd_len
=16384
6108 if test -x /sbin
/sysconfig
; then
6109 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6110 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6115 lt_cv_sys_max_cmd_len
=102400
6117 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6118 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6119 if test -n "$kargmax"; then
6120 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6122 lt_cv_sys_max_cmd_len
=32768
6126 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6127 if test -n "$lt_cv_sys_max_cmd_len"; then
6128 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6131 # Make teststring a little bigger before we do anything with it.
6132 # a 1K string should be a reasonable start.
6133 for i
in 1 2 3 4 5 6 7 8 ; do
6134 teststring
=$teststring$teststring
6136 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6137 # If test is not a shell built-in, we'll probably end up computing a
6138 # maximum length that is only half of the actual maximum length, but
6140 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6141 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6142 test $i != 17 # 1/2 MB should be enough
6145 teststring
=$teststring$teststring
6147 # Only check the string length outside the loop.
6148 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6150 # Add a significant safety factor because C++ compilers can tack on
6151 # massive amounts of additional arguments before passing them to the
6152 # linker. It appears as though 1/2 is a usable value.
6153 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6160 if test -n $lt_cv_sys_max_cmd_len ; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6162 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6165 $as_echo "none" >&6; }
6167 max_cmd_len
=$lt_cv_sys_max_cmd_len
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6179 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6180 # Try some XSI features
6183 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6185 && eval 'test $(( 1 + 1 )) -eq 2 \
6186 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6189 $as_echo "$xsi_shell" >&6; }
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6193 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6195 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6197 && lt_shell_append=yes
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6199 $as_echo "$lt_shell_append" >&6; }
6202 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6212 # test EBCDIC or ASCII
6213 case `echo X|tr X '\101'` in
6214 A) # ASCII based system
6215 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6216 lt_SP2NL='tr \040 \012'
6217 lt_NL2SP='tr \015\012 \040\040'
6219 *) # EBCDIC based system
6220 lt_SP2NL='tr \100 \n'
6221 lt_NL2SP='tr \r\n \100\100'
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6234 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6235 if ${lt_cv_ld_reload_flag+:} false; then :
6236 $as_echo_n "(cached
) " >&6
6238 lt_cv_ld_reload_flag='-r'
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6241 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6242 reload_flag=$lt_cv_ld_reload_flag
6243 case $reload_flag in
6245 *) reload_flag=" $reload_flag" ;;
6247 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6250 if test "$GCC" = yes; then
6251 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6253 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6270 $as_echo_n "checking
for $ac_word...
" >&6; }
6271 if ${ac_cv_prog_OBJDUMP+:} false; then :
6272 $as_echo_n "(cached
) " >&6
6274 if test -n "$OBJDUMP"; then
6275 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6294 OBJDUMP=$ac_cv_prog_OBJDUMP
6295 if test -n "$OBJDUMP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6297 $as_echo "$OBJDUMP" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6300 $as_echo "no
" >&6; }
6305 if test -z "$ac_cv_prog_OBJDUMP"; then
6306 ac_ct_OBJDUMP=$OBJDUMP
6307 # Extract the first word of "objdump
", so it can be a program name with args.
6308 set dummy objdump; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6310 $as_echo_n "checking
for $ac_word...
" >&6; }
6311 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6312 $as_echo_n "(cached
) " >&6
6314 if test -n "$ac_ct_OBJDUMP"; then
6315 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6334 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6335 if test -n "$ac_ct_OBJDUMP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6337 $as_echo "$ac_ct_OBJDUMP" >&6; }
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6340 $as_echo "no
" >&6; }
6343 if test "x
$ac_ct_OBJDUMP" = x; then
6346 case $cross_compiling:$ac_tool_warned in
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6349 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6350 ac_tool_warned=yes ;;
6352 OBJDUMP=$ac_ct_OBJDUMP
6355 OBJDUMP="$ac_cv_prog_OBJDUMP"
6358 test -z "$OBJDUMP" && OBJDUMP=objdump
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6369 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6370 if ${lt_cv_deplibs_check_method+:} false; then :
6371 $as_echo_n "(cached
) " >&6
6373 lt_cv_file_magic_cmd='$MAGIC_CMD'
6374 lt_cv_file_magic_test_file=
6375 lt_cv_deplibs_check_method='unknown'
6376 # Need to set the preceding variable on all platforms that support
6377 # interlibrary dependencies.
6378 # 'none' -- dependencies not supported.
6379 # `unknown' -- same as none, but documents that we really don't know.
6380 # 'pass_all' -- all dependencies passed with no checks.
6381 # 'test_compile' -- check by making test program.
6382 # 'file_magic [[regex]]' -- check by looking for files in library path
6383 # which responds to the $file_magic_cmd with a given extended regex.
6384 # If you have `file' or equivalent on your system and you're not sure
6385 # whether `pass_all' will *always* work, you probably want this one.
6389 lt_cv_deplibs_check_method=pass_all
6393 lt_cv_deplibs_check_method=pass_all
6397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6398 lt_cv_file_magic_cmd='/usr/bin/file -L'
6399 lt_cv_file_magic_test_file=/shlib/libc.so
6403 # func_win32_libid is a shell function defined in ltmain.sh
6404 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6405 lt_cv_file_magic_cmd='func_win32_libid'
6409 # Base MSYS/MinGW do not provide the 'file' command needed by
6410 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6411 # unless we find 'file', for example because we are cross-compiling.
6412 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6413 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415 lt_cv_file_magic_cmd='func_win32_libid'
6417 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6418 lt_cv_file_magic_cmd='$OBJDUMP -f'
6423 # use the weaker test based on 'objdump'. See mingw*.
6424 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6425 lt_cv_file_magic_cmd='$OBJDUMP -f'
6428 darwin* | rhapsody*)
6429 lt_cv_deplibs_check_method=pass_all
6432 freebsd* | dragonfly*)
6433 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6436 # Not sure whether the presence of OpenBSD here was a mistake.
6437 # Let's accept both of them until this is cleared up.
6438 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6439 lt_cv_file_magic_cmd=/usr/bin/file
6440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6444 lt_cv_deplibs_check_method=pass_all
6449 lt_cv_deplibs_check_method=pass_all
6453 lt_cv_deplibs_check_method=pass_all
6456 hpux10.20* | hpux11*)
6457 lt_cv_file_magic_cmd=/usr/bin/file
6460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6461 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6464 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]'
6465 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6469 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6475 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6479 irix5* | irix6* | nonstopux*)
6481 *-32|*"-32 ") libmagic=32-bit;;
6482 *-n32|*"-n32 ") libmagic=N32;;
6483 *-64|*"-64 ") libmagic=64-bit;;
6484 *) libmagic=never-match;;
6486 lt_cv_deplibs_check_method=pass_all
6489 # This must be Linux ELF.
6490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6491 lt_cv_deplibs_check_method=pass_all
6495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6504 lt_cv_file_magic_cmd=/usr/bin/file
6505 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6509 lt_cv_deplibs_check_method=pass_all
6513 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6520 osf3* | osf4* | osf5*)
6521 lt_cv_deplibs_check_method=pass_all
6525 lt_cv_deplibs_check_method=pass_all
6529 lt_cv_deplibs_check_method=pass_all
6532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6533 lt_cv_deplibs_check_method=pass_all
6537 case $host_vendor in
6539 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]'
6540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6543 lt_cv_deplibs_check_method=pass_all
6546 lt_cv_file_magic_cmd='/bin/file'
6547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6550 lt_cv_file_magic_cmd='/bin/file'
6551 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6552 lt_cv_file_magic_test_file=/lib/libc.so
6555 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method=pass_all
6564 lt_cv_deplibs_check_method=pass_all
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6570 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6571 file_magic_cmd=$lt_cv_file_magic_cmd
6572 deplibs_check_method=$lt_cv_deplibs_check_method
6573 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6586 if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}ar; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6590 $as_echo_n "checking
for $ac_word...
" >&6; }
6591 if ${ac_cv_prog_AR+:} false; then :
6592 $as_echo_n "(cached
) " >&6
6594 if test -n "$AR"; then
6595 ac_cv_prog_AR="$AR" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_AR="${ac_tool_prefix}ar"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6615 if test -n "$AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6617 $as_echo "$AR" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6620 $as_echo "no
" >&6; }
6625 if test -z "$ac_cv_prog_AR"; then
6627 # Extract the first word of "ar", so it can be a program name with args.
6628 set dummy ar; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6630 $as_echo_n "checking
for $ac_word...
" >&6; }
6631 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6632 $as_echo_n "(cached
) " >&6
6634 if test -n "$ac_ct_AR"; then
6635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_ac_ct_AR="ar"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6654 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655 if test -n "$ac_ct_AR"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6657 $as_echo "$ac_ct_AR" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6660 $as_echo "no
" >&6; }
6663 if test "x
$ac_ct_AR" = x; then
6666 case $cross_compiling:$ac_tool_warned in
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6669 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6670 ac_tool_warned=yes ;;
6678 test -z "$AR" && AR=ar
6679 test -z "$AR_FLAGS" && AR_FLAGS=cru
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}strip; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6695 $as_echo_n "checking
for $ac_word...
" >&6; }
6696 if ${ac_cv_prog_STRIP+:} false; then :
6697 $as_echo_n "(cached
) " >&6
6699 if test -n "$STRIP"; then
6700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6719 STRIP=$ac_cv_prog_STRIP
6720 if test -n "$STRIP"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6722 $as_echo "$STRIP" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6725 $as_echo "no
" >&6; }
6730 if test -z "$ac_cv_prog_STRIP"; then
6732 # Extract the first word of "strip
", so it can be a program name with args.
6733 set dummy strip; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6735 $as_echo_n "checking
for $ac_word...
" >&6; }
6736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6737 $as_echo_n "(cached
) " >&6
6739 if test -n "$ac_ct_STRIP"; then
6740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_STRIP="strip
"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760 if test -n "$ac_ct_STRIP"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6762 $as_echo "$ac_ct_STRIP" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6765 $as_echo "no
" >&6; }
6768 if test "x
$ac_ct_STRIP" = x; then
6771 case $cross_compiling:$ac_tool_warned in
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6774 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6775 ac_tool_warned=yes ;;
6780 STRIP="$ac_cv_prog_STRIP"
6783 test -z "$STRIP" && STRIP=:
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6794 $as_echo_n "checking
for $ac_word...
" >&6; }
6795 if ${ac_cv_prog_RANLIB+:} false; then :
6796 $as_echo_n "(cached
) " >&6
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6818 RANLIB=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6821 $as_echo "$RANLIB" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6824 $as_echo "no
" >&6; }
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib
", so it can be a program name with args.
6832 set dummy ranlib; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6834 $as_echo_n "checking
for $ac_word...
" >&6; }
6835 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6836 $as_echo_n "(cached
) " >&6
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859 if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6861 $as_echo "$ac_ct_RANLIB" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6864 $as_echo "no
" >&6; }
6867 if test "x
$ac_ct_RANLIB" = x; then
6870 case $cross_compiling:$ac_tool_warned in
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6873 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6874 ac_tool_warned=yes ;;
6876 RANLIB=$ac_ct_RANLIB
6879 RANLIB="$ac_cv_prog_RANLIB"
6882 test -z "$RANLIB" && RANLIB=:
6889 # Determine commands to create old-style static archives.
6890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891 old_postinstall_cmds='chmod 644 $oldlib'
6892 old_postuninstall_cmds=
6894 if test -n "$RANLIB"; then
6897 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6900 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6903 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6908 lock_old_archive_extraction=yes ;;
6910 lock_old_archive_extraction=no ;;
6951 # If no C compiler was specified, use CC.
6954 # If no C compiler flags were specified, use CFLAGS.
6955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6957 # Allow CC to be a program name with arguments.
6961 # Check for command to grab the raw symbol name followed by C symbol from nm.
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6963 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6964 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6965 $as_echo_n "(cached
) " >&6
6968 # These are sane defaults that work on at least a few old systems.
6969 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6971 # Character class describing NM global symbol codes.
6972 symcode='[BCDEGRST]'
6974 # Regexp to match symbols that can be accessed directly from C.
6975 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6977 # Define system-specific variables.
6982 cygwin* | mingw* | pw32* | cegcc*)
6983 symcode='[ABCDGISTW]'
6986 if test "$host_cpu" = ia64; then
6987 symcode='[ABCDEGRST]'
6991 symcode='[BCDEGRST]'
6994 symcode='[BCDEGQRST]'
7005 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7013 # If we're using GNU nm, then use its standard symbol codes.
7014 case `$NM -V 2>&1` in
7015 *GNU* | *'with BFD'*)
7016 symcode='[ABCDGIRSTW]' ;;
7019 # Transform an extracted symbol line into a proper C declaration.
7020 # Some systems (esp. on ia64) link data and code symbols differently,
7021 # so use this general approach.
7022 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7024 # Transform an extracted symbol line into symbol name and symbol address
7025 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7026 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'"
7028 # Handle CRLF in mingw tool chain
7032 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7036 # Try without a prefix underscore, then with it.
7037 for ac_symprfx in "" "_
"; do
7039 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7040 symxfrm="\\1 $ac_symprfx\\2 \\2"
7042 # Write the raw and C identifiers.
7043 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7044 # Fake it for dumpbin and say T for any non-static function
7045 # and D for any global variable.
7046 # Also find C++ and __fastcall symbols from MSVC++,
7047 # which start with @ or ?.
7048 lt_cv_sys_global_symbol_pipe="$AWK '"\
7049 " {last_section=section; section=\$ 3};"\
7050 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051 " \$ 0!~/External *\|/{next};"\
7052 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053 " {if(hide[section]) next};"\
7054 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7055 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7056 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7057 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7058 " ' prfx
=^
$ac_symprfx"
7060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7063 # Check to see that the pipe works correctly.
7067 cat > conftest.$ac_ext <<_LT_EOF
7072 void nm_test_func(void);
7073 void nm_test_func(void){}
7077 int main(){nm_test_var='a';nm_test_func();return(0);}
7080 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081 (eval $ac_compile) 2>&5
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7084 test $ac_status = 0; }; then
7085 # Now try to grab the symbols.
7087 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7088 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7091 test $ac_status = 0; } && test -s "$nlist"; then
7092 # Try sorting and uniquifying the output.
7093 if sort "$nlist" | uniq > "$nlist"T; then
7094 mv -f "$nlist"T "$nlist"
7099 # Make sure that we snagged all the symbols we need.
7100 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7101 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7102 cat <<_LT_EOF > conftest.$ac_ext
7108 # Now generate the symbol file.
7109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7111 cat <<_LT_EOF >> conftest.$ac_ext
7113 /* The mapping between symbol names and symbols. */
7118 lt__PROGRAM__LTX_preloaded_symbols[] =
7120 { "@PROGRAM@
", (void *) 0 },
7122 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7123 cat <<\_LT_EOF >> conftest.$ac_ext
7127 /* This works around a problem in FreeBSD linker */
7128 #ifdef FREEBSD_WORKAROUND
7129 static const void *lt_preloaded_setup() {
7130 return lt__PROGRAM__LTX_preloaded_symbols;
7138 # Now try linking the two files.
7139 mv conftest.$ac_objext conftstm.$ac_objext
7140 lt_save_LIBS="$LIBS"
7141 lt_save_CFLAGS="$CFLAGS"
7142 LIBS="conftstm.
$ac_objext"
7143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7144 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7145 (eval $ac_link) 2>&5
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7148 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7151 LIBS="$lt_save_LIBS"
7152 CFLAGS="$lt_save_CFLAGS"
7154 echo "cannot
find nm_test_func
in $nlist" >&5
7157 echo "cannot
find nm_test_var
in $nlist" >&5
7160 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7163 echo "$progname: failed program was
:" >&5
7164 cat conftest.$ac_ext >&5
7166 rm -rf conftest* conftst*
7168 # Do not use the global_symbol_pipe unless it works.
7169 if test "$pipe_works" = yes; then
7172 lt_cv_sys_global_symbol_pipe=
7178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7179 lt_cv_sys_global_symbol_to_cdecl=
7181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7183 $as_echo "failed
" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7186 $as_echo "ok
" >&6; }
7210 # Check whether --enable-libtool-lock was given.
7211 if test "${enable_libtool_lock+set}" = set; then :
7212 enableval=$enable_libtool_lock;
7215 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7217 # Some flags need to be propagated to the compiler or linker for good
7221 # Find out which ABI we are using.
7222 echo 'int i;' > conftest.$ac_ext
7223 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 case `/usr/bin/file conftest.$ac_objext` in
7240 # Find out which ABI we are using.
7241 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7242 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7243 (eval $ac_compile) 2>&5
7245 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7246 test $ac_status = 0; }; then
7247 if test "$lt_cv_prog_gnu_ld" = yes; then
7248 case `/usr/bin/file conftest.$ac_objext` in
7250 LD="${LD-ld} -melf32bsmip"
7253 LD="${LD-ld} -melf32bmipn32"
7256 LD="${LD-ld} -melf64bmip"
7260 case `/usr/bin/file conftest.$ac_objext` in
7276 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7277 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7278 # Find out which ABI we are using.
7279 echo 'int i;' > conftest.$ac_ext
7280 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281 (eval $ac_compile) 2>&5
7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7284 test $ac_status = 0; }; then
7285 case `/usr/bin/file conftest.o` in
7288 x86_64-*kfreebsd*-gnu)
7289 LD="${LD-ld} -m elf_i386_fbsd
"
7292 case `/usr/bin/file conftest.o` in
7294 LD="${LD-ld} -m elf32_x86_64
"
7297 LD="${LD-ld} -m elf_i386
"
7301 powerpc64le-*linux*)
7302 LD="${LD-ld} -m elf32lppclinux
"
7305 LD="${LD-ld} -m elf32ppclinux
"
7308 LD="${LD-ld} -m elf_s390
"
7311 LD="${LD-ld} -m elf32_sparc
"
7317 x86_64-*kfreebsd*-gnu)
7318 LD="${LD-ld} -m elf_x86_64_fbsd
"
7321 LD="${LD-ld} -m elf_x86_64
"
7324 LD="${LD-ld} -m elf64lppc
"
7327 LD="${LD-ld} -m elf64ppc
"
7329 s390*-*linux*|s390*-*tpf*)
7330 LD="${LD-ld} -m elf64_s390
"
7333 LD="${LD-ld} -m elf64_sparc
"
7343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7344 SAVE_CFLAGS="$CFLAGS"
7345 CFLAGS="$CFLAGS -belf"
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7347 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7348 if ${lt_cv_cc_needs_belf+:} false; then :
7349 $as_echo_n "(cached
) " >&6
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7368 if ac_fn_c_try_link "$LINENO"; then :
7369 lt_cv_cc_needs_belf=yes
7371 lt_cv_cc_needs_belf=no
7373 rm -f core conftest.err conftest.$ac_objext \
7374 conftest$ac_exeext conftest.$ac_ext
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7383 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7386 CFLAGS="$SAVE_CFLAGS"
7390 # Find out which ABI we are using.
7391 echo 'int i;' > conftest.$ac_ext
7392 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 case `/usr/bin/file conftest.o` in
7399 case $lt_cv_prog_gnu_ld in
7400 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7402 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7414 need_locks="$enable_libtool_lock"
7418 rhapsody* | darwin*)
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7423 $as_echo_n "checking
for $ac_word...
" >&6; }
7424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7425 $as_echo_n "(cached
) " >&6
7427 if test -n "$DSYMUTIL"; then
7428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7448 if test -n "$DSYMUTIL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7450 $as_echo "$DSYMUTIL" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7453 $as_echo "no
" >&6; }
7458 if test -z "$ac_cv_prog_DSYMUTIL"; then
7459 ac_ct_DSYMUTIL=$DSYMUTIL
7460 # Extract the first word of "dsymutil
", so it can be a program name with args.
7461 set dummy dsymutil; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7463 $as_echo_n "checking
for $ac_word...
" >&6; }
7464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7465 $as_echo_n "(cached
) " >&6
7467 if test -n "$ac_ct_DSYMUTIL"; then
7468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7488 if test -n "$ac_ct_DSYMUTIL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7493 $as_echo "no
" >&6; }
7496 if test "x
$ac_ct_DSYMUTIL" = x; then
7499 case $cross_compiling:$ac_tool_warned in
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7502 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7503 ac_tool_warned=yes ;;
7505 DSYMUTIL=$ac_ct_DSYMUTIL
7508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7515 $as_echo_n "checking
for $ac_word...
" >&6; }
7516 if ${ac_cv_prog_NMEDIT+:} false; then :
7517 $as_echo_n "(cached
) " >&6
7519 if test -n "$NMEDIT"; then
7520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7542 $as_echo "$NMEDIT" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7545 $as_echo "no
" >&6; }
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551 ac_ct_NMEDIT=$NMEDIT
7552 # Extract the first word of "nmedit
", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7555 $as_echo_n "checking
for $ac_word...
" >&6; }
7556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7557 $as_echo_n "(cached
) " >&6
7559 if test -n "$ac_ct_NMEDIT"; then
7560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7582 $as_echo "$ac_ct_NMEDIT" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7585 $as_echo "no
" >&6; }
7588 if test "x
$ac_ct_NMEDIT" = x; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7594 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7595 ac_tool_warned=yes ;;
7597 NMEDIT=$ac_ct_NMEDIT
7600 NMEDIT="$ac_cv_prog_NMEDIT"
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
7609 $as_echo_n "(cached
) " >&6
7611 if test -n "$LIPO"; then
7612 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo
"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7634 $as_echo "$LIPO" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7637 $as_echo "no
" >&6; }
7642 if test -z "$ac_cv_prog_LIPO"; then
7644 # Extract the first word of "lipo
", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7647 $as_echo_n "checking
for $ac_word...
" >&6; }
7648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7649 $as_echo_n "(cached
) " >&6
7651 if test -n "$ac_ct_LIPO"; then
7652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_ac_ct_LIPO="lipo
"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7674 $as_echo "$ac_ct_LIPO" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7677 $as_echo "no
" >&6; }
7680 if test "x
$ac_ct_LIPO" = x; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7686 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7687 ac_tool_warned=yes ;;
7692 LIPO="$ac_cv_prog_LIPO"
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}otool; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7699 $as_echo_n "checking
for $ac_word...
" >&6; }
7700 if ${ac_cv_prog_OTOOL+:} false; then :
7701 $as_echo_n "(cached
) " >&6
7703 if test -n "$OTOOL"; then
7704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7723 OTOOL=$ac_cv_prog_OTOOL
7724 if test -n "$OTOOL"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7726 $as_echo "$OTOOL" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7729 $as_echo "no
" >&6; }
7734 if test -z "$ac_cv_prog_OTOOL"; then
7736 # Extract the first word of "otool
", so it can be a program name with args.
7737 set dummy otool; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7739 $as_echo_n "checking
for $ac_word...
" >&6; }
7740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7741 $as_echo_n "(cached
) " >&6
7743 if test -n "$ac_ct_OTOOL"; then
7744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_ac_ct_OTOOL="otool
"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7764 if test -n "$ac_ct_OTOOL"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7766 $as_echo "$ac_ct_OTOOL" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7769 $as_echo "no
" >&6; }
7772 if test "x
$ac_ct_OTOOL" = x; then
7775 case $cross_compiling:$ac_tool_warned in
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7778 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7779 ac_tool_warned=yes ;;
7784 OTOOL="$ac_cv_prog_OTOOL"
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7791 $as_echo_n "checking
for $ac_word...
" >&6; }
7792 if ${ac_cv_prog_OTOOL64+:} false; then :
7793 $as_echo_n "(cached
) " >&6
7795 if test -n "$OTOOL64"; then
7796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7818 $as_echo "$OTOOL64" >&6; }
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7821 $as_echo "no
" >&6; }
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827 ac_ct_OTOOL64=$OTOOL64
7828 # Extract the first word of "otool64
", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7831 $as_echo_n "checking
for $ac_word...
" >&6; }
7832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7833 $as_echo_n "(cached
) " >&6
7835 if test -n "$ac_ct_OTOOL64"; then
7836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7858 $as_echo "$ac_ct_OTOOL64" >&6; }
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7861 $as_echo "no
" >&6; }
7864 if test "x
$ac_ct_OTOOL64" = x; then
7867 case $cross_compiling:$ac_tool_warned in
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7870 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7871 ac_tool_warned=yes ;;
7873 OTOOL64=$ac_ct_OTOOL64
7876 OTOOL64="$ac_cv_prog_OTOOL64"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7906 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7907 if ${lt_cv_apple_cc_single_mod+:} false; then :
7908 $as_echo_n "(cached
) " >&6
7910 lt_cv_apple_cc_single_mod=no
7911 if test -z "${LT_MULTI_MODULE}"; then
7912 # By default we will add the -single_module flag. You can override
7913 # by either setting the environment variable LT_MULTI_MODULE
7914 # non-empty at configure time, or by adding -multi_module to the
7916 rm -rf libconftest.dylib*
7917 echo "int foo
(void
){return 1;}" > conftest.c
7918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7919 -dynamiclib -Wl,-single_module conftest.c
" >&5
7920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7924 lt_cv_apple_cc_single_mod=yes
7926 cat conftest.err >&5
7928 rm -rf libconftest.dylib*
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7933 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7935 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7936 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7937 $as_echo_n "(cached
) " >&6
7939 lt_cv_ld_exported_symbols_list=no
7940 save_LDFLAGS=$LDFLAGS
7941 echo "_main
" > conftest.sym
7942 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 lt_cv_ld_exported_symbols_list=yes
7957 lt_cv_ld_exported_symbols_list=no
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LDFLAGS="$save_LDFLAGS"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7965 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7967 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7968 if ${lt_cv_ld_force_load+:} false; then :
7969 $as_echo_n "(cached
) " >&6
7971 lt_cv_ld_force_load=no
7972 cat > conftest.c << _LT_EOF
7973 int forced_loaded() { return 2;}
7975 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7976 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7977 echo "$AR cru libconftest.a conftest.o
" >&5
7978 $AR cru libconftest.a conftest.o 2>&5
7979 cat > conftest.c << _LT_EOF
7980 int main() { return 0;}
7982 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7983 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7985 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7986 lt_cv_ld_force_load=yes
7988 cat conftest.err >&5
7990 rm -f conftest.err libconftest.a conftest conftest.c
7991 rm -rf conftest.dSYM
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7995 $as_echo "$lt_cv_ld_force_load" >&6; }
7997 rhapsody* | darwin1.[012])
7998 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8001 darwin*) # darwin 5.x on
8002 # if running on 10.5 or later, the deployment target defaults
8003 # to the OS version, if on x86, and 10.4, the deployment
8004 # target defaults to 10.4. Don't you love it?
8005 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8006 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8007 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8009 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8016 _lt_dar_single_mod='$single_module'
8018 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8019 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8021 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8023 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8024 _lt_dsymutil='~$DSYMUTIL $lib || :'
8031 for ac_header in dlfcn.h
8033 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8035 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8036 cat >>confdefs.h <<_ACEOF
8037 #define HAVE_DLFCN_H 1
8058 # Check whether --enable-shared was given.
8059 if test "${enable_shared+set}" = set; then :
8060 enableval=$enable_shared; p=${PACKAGE-default}
8062 yes) enable_shared=yes ;;
8063 no) enable_shared=no ;;
8066 # Look at the argument we got. We use all the common list separators.
8067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8068 for pkg in $enableval; do
8070 if test "X
$pkg" = "X
$p"; then
8089 # Check whether --enable-static was given.
8090 if test "${enable_static+set}" = set; then :
8091 enableval=$enable_static; p=${PACKAGE-default}
8093 yes) enable_static=yes ;;
8094 no) enable_static=no ;;
8097 # Look at the argument we got. We use all the common list separators.
8098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8099 for pkg in $enableval; do
8101 if test "X
$pkg" = "X
$p"; then
8121 # Check whether --with-pic was given.
8122 if test "${with_pic+set}" = set; then :
8123 withval=$with_pic; pic_mode="$withval"
8129 test -z "$pic_mode" && pic_mode=default
8137 # Check whether --enable-fast-install was given.
8138 if test "${enable_fast_install+set}" = set; then :
8139 enableval=$enable_fast_install; p=${PACKAGE-default}
8141 yes) enable_fast_install=yes ;;
8142 no) enable_fast_install=no ;;
8144 enable_fast_install=no
8145 # Look at the argument we got. We use all the common list separators.
8146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147 for pkg in $enableval; do
8149 if test "X
$pkg" = "X
$p"; then
8150 enable_fast_install=yes
8157 enable_fast_install=yes
8170 # This can be used to rebuild libtool when needed
8171 LIBTOOL_DEPS="$ltmain"
8173 # Always use our own libtool.
8174 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8201 test -z "$LN_S" && LN_S="ln -s"
8216 if test -n "${ZSH_VERSION+set}" ; then
8217 setopt NO_GLOB_SUBST
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8221 $as_echo_n "checking
for objdir...
" >&6; }
8222 if ${lt_cv_objdir+:} false; then :
8223 $as_echo_n "(cached
) " >&6
8225 rm -f .libs 2>/dev/null
8226 mkdir .libs 2>/dev/null
8227 if test -d .libs; then
8230 # MS-DOS does not allow filenames that begin with a dot.
8233 rmdir .libs 2>/dev/null
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8236 $as_echo "$lt_cv_objdir" >&6; }
8237 objdir=$lt_cv_objdir
8243 cat >>confdefs.h <<_ACEOF
8244 #define LT_OBJDIR "$lt_cv_objdir/"
8252 # AIX sometimes has problems with the GCC collect2 program. For some
8253 # reason, if we set the COLLECT_NAMES environment variable, the problems
8254 # vanish in a puff of smoke.
8255 if test "X
${COLLECT_NAMES+set}" != Xset; then
8257 export COLLECT_NAMES
8264 can_build_shared=yes
8266 # All known linkers require a `.a' archive for static linking (except MSVC,
8267 # which needs '.lib').
8270 with_gnu_ld="$lt_cv_prog_gnu_ld"
8273 old_CFLAGS="$CFLAGS"
8275 # Set sane defaults for various variables
8276 test -z "$CC" && CC=cc
8277 test -z "$LTCC" && LTCC=$CC
8278 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8279 test -z "$LD" && LD=ld
8280 test -z "$ac_objext" && ac_objext=o
8282 for cc_temp in $compiler""; do
8284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8290 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8293 # Only perform the check for file, if the check method requires it
8294 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8295 case $deplibs_check_method in
8297 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8299 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8300 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8301 $as_echo_n "(cached
) " >&6
8305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8308 lt_save_MAGIC_CMD="$MAGIC_CMD"
8309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8310 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8311 for ac_dir in $ac_dummy; do
8313 test -z "$ac_dir" && ac_dir=.
8314 if test -f $ac_dir/${ac_tool_prefix}file; then
8315 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8316 if test -n "$file_magic_test_file"; then
8317 case $deplibs_check_method in
8319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8322 $EGREP "$file_magic_regex" > /dev/null; then
8327 *** Warning: the command libtool uses to detect shared libraries,
8328 *** $file_magic_cmd, produces output that libtool cannot recognize.
8329 *** The result is that libtool may fail to recognize shared libraries
8330 *** as such. This will affect the creation of libtool libraries that
8331 *** depend on shared libraries, but programs linked with such libtool
8332 *** libraries will work regardless of this problem. Nevertheless, you
8333 *** may want to report the problem to your system manager and/or to
8334 *** bug-libtool@gnu.org
8344 MAGIC_CMD="$lt_save_MAGIC_CMD"
8349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8350 if test -n "$MAGIC_CMD"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8352 $as_echo "$MAGIC_CMD" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8355 $as_echo "no
" >&6; }
8362 if test -z "$lt_cv_path_MAGIC_CMD"; then
8363 if test -n "$ac_tool_prefix"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8365 $as_echo_n "checking
for file...
" >&6; }
8366 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8367 $as_echo_n "(cached
) " >&6
8371 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8374 lt_save_MAGIC_CMD="$MAGIC_CMD"
8375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8376 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8377 for ac_dir in $ac_dummy; do
8379 test -z "$ac_dir" && ac_dir=.
8380 if test -f $ac_dir/file; then
8381 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8382 if test -n "$file_magic_test_file"; then
8383 case $deplibs_check_method in
8385 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8388 $EGREP "$file_magic_regex" > /dev/null; then
8393 *** Warning: the command libtool uses to detect shared libraries,
8394 *** $file_magic_cmd, produces output that libtool cannot recognize.
8395 *** The result is that libtool may fail to recognize shared libraries
8396 *** as such. This will affect the creation of libtool libraries that
8397 *** depend on shared libraries, but programs linked with such libtool
8398 *** libraries will work regardless of this problem. Nevertheless, you
8399 *** may want to report the problem to your system manager and/or to
8400 *** bug-libtool@gnu.org
8410 MAGIC_CMD="$lt_save_MAGIC_CMD"
8415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8416 if test -n "$MAGIC_CMD"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8418 $as_echo "$MAGIC_CMD" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8421 $as_echo "no
" >&6; }
8434 # Use C for the default configuration in the libtool script
8438 ac_cpp='$CPP $CPPFLAGS'
8439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8444 # Source file extension for C test sources.
8447 # Object file extension for compiled C test sources.
8451 # Code to be used in simple compile tests
8452 lt_simple_compile_test_code="int some_variable
= 0;"
8454 # Code to be used in simple link tests
8455 lt_simple_link_test_code='int main(){return(0);}'
8463 # If no C compiler was specified, use CC.
8466 # If no C compiler flags were specified, use CFLAGS.
8467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8469 # Allow CC to be a program name with arguments.
8472 # Save the default compiler, since it gets overwritten when the other
8473 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8474 compiler_DEFAULT=$CC
8476 # save warnings/boilerplate of simple test code
8477 ac_outfile=conftest.$ac_objext
8478 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8479 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8480 _lt_compiler_boilerplate=`cat conftest.err`
8483 ac_outfile=conftest.$ac_objext
8484 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8485 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8486 _lt_linker_boilerplate=`cat conftest.err`
8491 ## There is no encapsulation within the following macros, do not change
8492 ## the running order or otherwise move them around unless you know exactly
8493 ## what you are doing...
8494 if test -n "$compiler"; then
8496 lt_prog_compiler_no_builtin_flag=
8498 if test "$GCC" = yes; then
8499 case $cc_basename in
8501 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8503 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8507 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8508 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8509 $as_echo_n "(cached
) " >&6
8511 lt_cv_prog_compiler_rtti_exceptions=no
8512 ac_outfile=conftest.$ac_objext
8513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8514 lt_compiler_flag="-fno-rtti -fno-exceptions"
8515 # Insert the option either (1) after the last *FLAGS variable, or
8516 # (2) before a word containing "conftest.
", or (3) at the end.
8517 # Note that $ac_compile itself does not contain backslashes and begins
8518 # with a dollar sign (not a hyphen), so the echo should work correctly.
8519 # The option is referenced via a variable to avoid confusing sed.
8520 lt_compile=`echo "$ac_compile" | $SED \
8521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8523 -e 's:$: $lt_compiler_flag:'`
8524 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8525 (eval "$lt_compile" 2>conftest.err)
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8529 if (exit $ac_status) && test -s "$ac_outfile"; then
8530 # The compiler can only warn and ignore the option if not recognized
8531 # So say no if there are warnings other than the usual output.
8532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8535 lt_cv_prog_compiler_rtti_exceptions=yes
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8542 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8545 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8557 lt_prog_compiler_wl=
8558 lt_prog_compiler_pic=
8559 lt_prog_compiler_static=
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8562 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8564 if test "$GCC" = yes; then
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_static='-static'
8570 # All AIX code is PIC.
8571 if test "$host_cpu" = ia64; then
8572 # AIX 5 now supports IA64 processor
8573 lt_prog_compiler_static='-Bstatic'
8575 lt_prog_compiler_pic='-fPIC'
8581 # see comment about AmigaOS4 .so support
8582 lt_prog_compiler_pic='-fPIC'
8585 # FIXME: we need at least 68020 code to build shared libraries, but
8586 # adding the `-m68020' flag to GCC prevents building anything better,
8588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8593 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594 # PIC is the default for these OSes.
8597 mingw* | cygwin* | pw32* | os2* | cegcc*)
8598 # This hack is so that the source file can tell whether it is being
8599 # built for inclusion in a dll (and should export symbols for example).
8600 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8601 # (--disable-auto-import) libraries
8602 lt_prog_compiler_pic='-DDLL_EXPORT'
8605 darwin* | rhapsody*)
8606 # PIC is the default on this platform
8607 # Common symbols not allowed in MH_DYLIB files
8608 lt_prog_compiler_pic='-fno-common'
8612 # PIC is the default for Haiku.
8613 # The "-static" flag exists, but is broken.
8614 lt_prog_compiler_static=
8618 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8619 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8620 # sets the default TLS model and affects inlining.
8626 lt_prog_compiler_pic='-fPIC'
8632 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8633 # Instead, we relocate shared libraries at runtime.
8637 # Just because we use GCC doesn't mean we suddenly get shared libraries
8638 # on systems that don't support them.
8639 lt_prog_compiler_can_build_shared=no
8644 # QNX uses GNU C++, but need to define -shared option too, otherwise
8646 lt_prog_compiler_pic='-fPIC -shared'
8650 if test -d /usr/nec; then
8651 lt_prog_compiler_pic=-Kconform_pic
8656 lt_prog_compiler_pic='-fPIC'
8660 case $cc_basename in
8661 nvcc*) # Cuda Compiler Driver 2.2
8662 lt_prog_compiler_wl='-Xlinker '
8663 lt_prog_compiler_pic='-Xcompiler -fPIC'
8667 # PORTME Check for flag to pass linker flags through the system compiler.
8670 lt_prog_compiler_wl='-Wl,'
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 now supports IA64 processor
8673 lt_prog_compiler_static='-Bstatic'
8675 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8679 mingw* | cygwin* | pw32* | os2* | cegcc*)
8680 # This hack is so that the source file can tell whether it is being
8681 # built for inclusion in a dll (and should export symbols for example).
8682 lt_prog_compiler_pic='-DDLL_EXPORT'
8685 hpux9* | hpux10* | hpux11*)
8686 lt_prog_compiler_wl='-Wl,'
8687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8694 lt_prog_compiler_pic='+Z'
8697 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8698 lt_prog_compiler_static='${wl}-a ${wl}archive'
8701 irix5* | irix6* | nonstopux*)
8702 lt_prog_compiler_wl='-Wl,'
8703 # PIC (with -KPIC) is the default.
8704 lt_prog_compiler_static='-non_shared'
8707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8708 case $cc_basename in
8709 # old Intel for x86_64 which still supported -KPIC.
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-KPIC'
8713 lt_prog_compiler_static='-static'
8715 # icc used to be incompatible with GCC.
8716 # ICC 10 doesn't accept -KPIC any more.
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_pic='-fPIC'
8720 lt_prog_compiler_static='-static'
8722 # Lahey Fortran 8.1.
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='--shared'
8726 lt_prog_compiler_static='--static'
8728 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8729 # Portland Group compilers (*not* the Pentium gcc compiler,
8730 # which looks to be a dead project)
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-fpic'
8733 lt_prog_compiler_static='-Bstatic'
8736 lt_prog_compiler_wl='-Wl,'
8737 # All Alpha code is PIC.
8738 lt_prog_compiler_static='-non_shared'
8740 xl* | bgxl* | bgf* | mpixl*)
8741 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8742 lt_prog_compiler_wl='-Wl,'
8743 lt_prog_compiler_pic='-qpic'
8744 lt_prog_compiler_static='-qstaticlink'
8747 case `$CC -V 2>&1 | sed 5q` in
8748 *Sun\ F* | *Sun*Fortran*)
8749 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8750 lt_prog_compiler_pic='-KPIC'
8751 lt_prog_compiler_static='-Bstatic'
8752 lt_prog_compiler_wl=''
8756 lt_prog_compiler_pic='-KPIC'
8757 lt_prog_compiler_static='-Bstatic'
8758 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_pic='-KPIC'
8767 lt_prog_compiler_static='-Bstatic'
8771 # QNX uses GNU C++, but need to define -shared option too, otherwise
8773 lt_prog_compiler_pic='-fPIC -shared'
8776 osf3* | osf4* | osf5*)
8777 lt_prog_compiler_wl='-Wl,'
8778 # All OSF/1 code is PIC.
8779 lt_prog_compiler_static='-non_shared'
8783 lt_prog_compiler_static='-non_shared'
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8789 case $cc_basename in
8791 lt_prog_compiler_wl='-Qoption ld ';;
8793 lt_prog_compiler_wl='-Wl,';;
8798 lt_prog_compiler_wl='-Qoption ld '
8799 lt_prog_compiler_pic='-PIC'
8800 lt_prog_compiler_static='-Bstatic'
8803 sysv4 | sysv4.2uw2* | sysv4.3*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-Bstatic'
8810 if test -d /usr/nec ;then
8811 lt_prog_compiler_pic='-Kconform_pic'
8812 lt_prog_compiler_static='-Bstatic'
8816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-KPIC'
8819 lt_prog_compiler_static='-Bstatic'
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_can_build_shared=no
8828 lt_prog_compiler_pic='-pic'
8829 lt_prog_compiler_static='-Bstatic'
8833 lt_prog_compiler_can_build_shared=no
8839 # For platforms which do not support PIC, -DPIC is meaningless:
8841 lt_prog_compiler_pic=
8844 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8848 $as_echo "$lt_prog_compiler_pic" >&6; }
8856 # Check to make sure the PIC flag actually works.
8858 if test -n "$lt_prog_compiler_pic"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8860 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8861 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8862 $as_echo_n "(cached
) " >&6
8864 lt_cv_prog_compiler_pic_works=no
8865 ac_outfile=conftest.$ac_objext
8866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8868 # Insert the option either (1) after the last *FLAGS variable, or
8869 # (2) before a word containing "conftest.
", or (3) at the end.
8870 # Note that $ac_compile itself does not contain backslashes and begins
8871 # with a dollar sign (not a hyphen), so the echo should work correctly.
8872 # The option is referenced via a variable to avoid confusing sed.
8873 lt_compile=`echo "$ac_compile" | $SED \
8874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8876 -e 's:$: $lt_compiler_flag:'`
8877 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8878 (eval "$lt_compile" 2>conftest.err)
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8882 if (exit $ac_status) && test -s "$ac_outfile"; then
8883 # The compiler can only warn and ignore the option if not recognized
8884 # So say no if there are warnings other than the usual output.
8885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_pic_works=yes
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8895 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8897 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8898 case $lt_prog_compiler_pic in
8900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8903 lt_prog_compiler_pic=
8904 lt_prog_compiler_can_build_shared=no
8915 # Check to make sure the static flag actually works.
8917 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8919 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8920 if ${lt_cv_prog_compiler_static_works+:} false; then :
8921 $as_echo_n "(cached
) " >&6
8923 lt_cv_prog_compiler_static_works=no
8924 save_LDFLAGS="$LDFLAGS"
8925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8928 # The linker can only warn and ignore the option if not recognized
8929 # So say no if there are warnings
8930 if test -s conftest.err; then
8931 # Append any errors to the config.log.
8932 cat conftest.err 1>&5
8933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935 if diff conftest.exp conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_static_works=yes
8939 lt_cv_prog_compiler_static_works=yes
8943 LDFLAGS="$save_LDFLAGS"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8947 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8949 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8952 lt_prog_compiler_static=
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8962 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8963 if ${lt_cv_prog_compiler_c_o+:} false; then :
8964 $as_echo_n "(cached
) " >&6
8966 lt_cv_prog_compiler_c_o=no
8967 $RM -r conftest 2>/dev/null
8971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8973 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8974 # Insert the option either (1) after the last *FLAGS variable, or
8975 # (2) before a word containing "conftest.
", or (3) at the end.
8976 # Note that $ac_compile itself does not contain backslashes and begins
8977 # with a dollar sign (not a hyphen), so the echo should work correctly.
8978 lt_compile=`echo "$ac_compile" | $SED \
8979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8981 -e 's:$: $lt_compiler_flag:'`
8982 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8983 (eval "$lt_compile" 2>out/conftest.err)
8985 cat out/conftest.err >&5
8986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8989 # The compiler can only warn and ignore the option if not recognized
8990 # So say no if there are warnings
8991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8994 lt_cv_prog_compiler_c_o=yes
8999 # SGI C++ compiler will create directory out/ii_files/ for
9000 # template instantiation
9001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9002 $RM out/* && rmdir out
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9009 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9017 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9018 if ${lt_cv_prog_compiler_c_o+:} false; then :
9019 $as_echo_n "(cached
) " >&6
9021 lt_cv_prog_compiler_c_o=no
9022 $RM -r conftest 2>/dev/null
9026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9028 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9029 # Insert the option either (1) after the last *FLAGS variable, or
9030 # (2) before a word containing "conftest.
", or (3) at the end.
9031 # Note that $ac_compile itself does not contain backslashes and begins
9032 # with a dollar sign (not a hyphen), so the echo should work correctly.
9033 lt_compile=`echo "$ac_compile" | $SED \
9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9036 -e 's:$: $lt_compiler_flag:'`
9037 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9038 (eval "$lt_compile" 2>out/conftest.err)
9040 cat out/conftest.err >&5
9041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9044 # The compiler can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9049 lt_cv_prog_compiler_c_o=yes
9054 # SGI C++ compiler will create directory out/ii_files/ for
9055 # template instantiation
9056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9057 $RM out/* && rmdir out
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9064 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9069 hard_links="nottested
"
9070 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9071 # do not overwrite the value of need_locks provided by the user
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9073 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9078 ln conftest.a conftest.b 2>&5 || hard_links=no
9079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9081 $as_echo "$hard_links" >&6; }
9082 if test "$hard_links" = no; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9084 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9097 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9100 allow_undefined_flag=
9101 always_export_symbols=no
9103 archive_expsym_cmds=
9104 compiler_needs_object=no
9105 enable_shared_with_static_runtimes=no
9106 export_dynamic_flag_spec=
9107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9108 hardcode_automatic=no
9110 hardcode_direct_absolute=no
9111 hardcode_libdir_flag_spec=
9112 hardcode_libdir_flag_spec_ld=
9113 hardcode_libdir_separator=
9115 hardcode_shlibpath_var=unsupported
9117 link_all_deplibs=unknown
9120 old_archive_from_new_cmds=
9121 old_archive_from_expsyms_cmds=
9122 thread_safe_flag_spec=
9123 whole_archive_flag_spec=
9124 # include_expsyms should be a list of space-separated symbols to be *always*
9125 # included in the symbol list
9127 # exclude_expsyms can be an extended regexp of symbols to exclude
9128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9130 # as well as any symbol that contains `d'.
9131 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9133 # platforms (ab)use it in PIC code, but their linkers get confused if
9134 # the symbol is explicitly referenced. Since portable code cannot
9135 # rely on this symbol name, it's probably fine to never include it in
9136 # preloaded symbol tables.
9137 # Exclude shared library initialization/finalization symbols.
9138 extract_expsyms_cmds=
9141 cygwin* | mingw* | pw32* | cegcc*)
9142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9143 # When not using gcc, we currently assume that we are using
9144 # Microsoft Visual C++.
9145 if test "$GCC" != yes; then
9150 # we just hope/assume this is gcc and not c89 (= MSVC++)
9160 # On some targets, GNU ld is compatible enough with the native linker
9161 # that we're better off using the native interface for both.
9162 lt_use_gnu_ld_interface=no
9163 if test "$with_gnu_ld" = yes; then
9166 # The AIX port of GNU ld has always aspired to compatibility
9167 # with the native linker. However, as the warning in the GNU ld
9168 # block says, versions before 2.19.5* couldn't really create working
9169 # shared libraries, regardless of the interface used.
9170 case `$LD -v 2>&1` in
9171 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9172 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9173 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9175 lt_use_gnu_ld_interface=yes
9180 lt_use_gnu_ld_interface=yes
9185 if test "$lt_use_gnu_ld_interface" = yes; then
9186 # If archive_cmds runs LD, not CC, wlarc should be empty
9189 # Set some defaults for GNU ld with shared library support. These
9190 # are reset later if shared libraries are not supported. Putting them
9191 # here allows them to be overridden if necessary.
9192 runpath_var=LD_RUN_PATH
9193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194 export_dynamic_flag_spec='${wl}--export-dynamic'
9195 # ancient GNU ld didn't support --whole-archive et. al.
9196 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9197 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9199 whole_archive_flag_spec=
9201 supports_anon_versioning=no
9202 case `$LD -v 2>&1` in
9203 *GNU\ gold*) supports_anon_versioning=yes ;;
9204 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9207 *\ 2.11.*) ;; # other 2.11 versions
9208 *) supports_anon_versioning=yes ;;
9211 # See if GNU ld supports shared libraries.
9214 # On AIX/PPC, the GNU linker is very broken
9215 if test "$host_cpu" != ia64; then
9219 *** Warning: the GNU linker, at least up to release 2.19, is reported
9220 *** to be unable to reliably create shared libraries on AIX.
9221 *** Therefore, libtool is disabling shared libraries support. If you
9222 *** really care for shared libraries, you may want to install binutils
9223 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9224 *** You will then need to restart the configuration process.
9233 # see comment about AmigaOS4 .so support
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds=''
9238 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)'
9239 hardcode_libdir_flag_spec
='-L$libdir'
9240 hardcode_minus_L
=yes
9246 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9247 allow_undefined_flag
=unsupported
9248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9249 # support --undefined. This deserves some investigation. FIXME
9250 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 cygwin
* | mingw
* | pw32
* | cegcc
*)
9257 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9258 # as there is no search path for DLLs.
9259 hardcode_libdir_flag_spec
='-L$libdir'
9260 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9261 allow_undefined_flag
=unsupported
9262 always_export_symbols
=no
9263 enable_shared_with_static_runtimes
=yes
9264 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9266 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9267 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9268 # If the export-symbols file already is a .def file (1st line
9269 # is EXPORTS), use it as is; otherwise, prepend...
9270 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9271 cp $export_symbols $output_objdir/$soname.def;
9273 echo EXPORTS > $output_objdir/$soname.def;
9274 cat $export_symbols >> $output_objdir/$soname.def;
9276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9283 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 link_all_deplibs
=yes
9289 hardcode_shlibpath_var
=no
9290 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9291 export_dynamic_flag_spec
='${wl}-E'
9292 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9293 # Instead, shared libraries are loaded at an image base (0x10000000 by
9294 # default) and relocated if they conflict, which is a slow very memory
9295 # consuming and fragmenting process. To avoid this, we pick a random,
9296 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9297 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9298 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9299 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'
9302 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9304 if test "$host_os" = linux-dietlibc
; then
9305 case $cc_basename in
9306 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9309 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9310 && test "$tmp_diet" = no
9312 tmp_addflag
=' $pic_flag'
9313 tmp_sharedflag
='-shared'
9314 case $cc_basename,$host_cpu in
9315 pgcc
*) # Portland Group C compiler
9316 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'
9317 tmp_addflag
=' $pic_flag'
9319 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9320 # Portland Group f77 and f90 compilers
9321 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'
9322 tmp_addflag
=' $pic_flag -Mnomain' ;;
9323 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9324 tmp_addflag
=' -i_dynamic' ;;
9325 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9326 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9327 ifc
* | ifort
*) # Intel Fortran compiler
9328 tmp_addflag
=' -nofor_main' ;;
9329 lf95
*) # Lahey Fortran 8.1
9330 whole_archive_flag_spec
=
9331 tmp_sharedflag
='--shared' ;;
9332 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9333 tmp_sharedflag
='-qmkshrobj'
9335 nvcc
*) # Cuda Compiler Driver 2.2
9336 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'
9337 compiler_needs_object
=yes
9340 case `$CC -V 2>&1 | sed 5q` in
9341 *Sun\ C
*) # Sun C 5.9
9342 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'
9343 compiler_needs_object
=yes
9344 tmp_sharedflag
='-G' ;;
9345 *Sun\ F
*) # Sun Fortran 8.3
9346 tmp_sharedflag
='-G' ;;
9348 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 if test "x$supports_anon_versioning" = xyes
; then
9351 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9353 echo "local: *; };" >> $output_objdir/$libname.ver~
9354 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9357 case $cc_basename in
9358 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9359 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9360 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9361 hardcode_libdir_flag_spec
=
9362 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9363 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9364 if test "x$supports_anon_versioning" = xyes
; then
9365 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9367 echo "local: *; };" >> $output_objdir/$libname.ver~
9368 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9378 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9379 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9382 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9388 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9392 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9393 *** create shared libraries on Solaris systems. Therefore, libtool
9394 *** is disabling shared libraries support. We urge you to upgrade GNU
9395 *** binutils to release 2.9.1 or newer. Another option is to modify
9396 *** your PATH or compiler configuration so that the native linker is
9397 *** used, and then restart.
9400 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9401 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9408 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9409 case `$LD -v 2>&1` in
9410 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9414 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9415 *** reliably create shared libraries on SCO systems. Therefore, libtool
9416 *** is disabling shared libraries support. We urge you to upgrade GNU
9417 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9418 *** your PATH or compiler configuration so that the native linker is
9419 *** used, and then restart.
9424 # For security reasons, it is highly recommended that you always
9425 # use absolute paths for naming shared libraries, and exclude the
9426 # DT_RUNPATH tag from executables and libraries. But doing so
9427 # requires that you compile everything twice, which is a pain.
9428 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9429 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9430 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_shlibpath_var
=no
9447 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9448 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9456 if test "$ld_shlibs" = no
; then
9458 hardcode_libdir_flag_spec
=
9459 export_dynamic_flag_spec
=
9460 whole_archive_flag_spec
=
9463 # PORTME fill in a description of your system's linker (not GNU ld)
9466 allow_undefined_flag
=unsupported
9467 always_export_symbols
=yes
9468 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'
9469 # Note: this linker hardcodes the directories in LIBPATH if there
9470 # are no directories specified by -L.
9471 hardcode_minus_L
=yes
9472 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9473 # Neither direct hardcoding nor static linking is supported with a
9475 hardcode_direct
=unsupported
9480 if test "$host_cpu" = ia64
; then
9481 # On IA64, the linker does run time linking by default, so we don't
9482 # have to do anything special.
9483 aix_use_runtimelinking
=no
9484 exp_sym_flag
='-Bexport'
9487 # If we're using GNU nm, then we don't want the "-C" option.
9488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9489 # Also, AIX nm treats weak defined symbols like other global
9490 # defined symbols, whereas GNU nm marks them as "W".
9491 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9492 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'
9494 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9496 aix_use_runtimelinking
=no
9498 # Test if we are trying to use run time linking or normal
9499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9500 # need to do runtime linking.
9501 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9502 for ld_flag
in $LDFLAGS; do
9503 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9504 aix_use_runtimelinking
=yes
9511 exp_sym_flag
='-bexport'
9512 no_entry_flag
='-bnoentry'
9515 # When large executables or shared objects are built, AIX ld can
9516 # have problems creating the table of contents. If linking a library
9517 # or program results in "error TOC overflow" add -mminimal-toc to
9518 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9519 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9523 hardcode_direct_absolute
=yes
9524 hardcode_libdir_separator
=':'
9525 link_all_deplibs
=yes
9526 file_list_spec
='${wl}-f,'
9528 if test "$GCC" = yes; then
9529 case $host_os in aix4.
[012]|aix4.
[012].
*)
9530 # We only want to do this on AIX 4.2 and lower, the check
9531 # below for broken collect2 doesn't work under 4.3+
9532 collect2name
=`${CC} -print-prog-name=collect2`
9533 if test -f "$collect2name" &&
9534 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9536 # We have reworked collect2
9539 # We have old collect2
9540 hardcode_direct
=unsupported
9541 # It fails to find uninstalled libraries when the uninstalled
9542 # path is not listed in the libpath. Setting hardcode_minus_L
9543 # to unsupported forces relinking
9544 hardcode_minus_L
=yes
9545 hardcode_libdir_flag_spec
='-L$libdir'
9546 hardcode_libdir_separator
=
9550 shared_flag
='-shared'
9551 if test "$aix_use_runtimelinking" = yes; then
9552 shared_flag
="$shared_flag "'${wl}-G'
9556 if test "$host_cpu" = ia64
; then
9557 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9558 # chokes on -Wl,-G. The following line is correct:
9561 if test "$aix_use_runtimelinking" = yes; then
9562 shared_flag
='${wl}-G'
9564 shared_flag
='${wl}-bM:SRE'
9569 export_dynamic_flag_spec
='${wl}-bexpall'
9570 # It seems that -bexpall does not export symbols beginning with
9571 # underscore (_), so it is better to generate a list of symbols to export.
9572 always_export_symbols
=yes
9573 if test "$aix_use_runtimelinking" = yes; then
9574 # Warning - without using the other runtime loading flags (-brtl),
9575 # -berok will link without error, but may produce a broken library.
9576 allow_undefined_flag
='-berok'
9577 # Determine the default libpath from the value encoded in an
9579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9590 if ac_fn_c_try_link
"$LINENO"; then :
9592 lt_aix_libpath_sed
='
9593 /Import File Strings/,/^$/ {
9599 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9600 # Check for a 64-bit object if we didn't find anything.
9601 if test -z "$aix_libpath"; then
9602 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9605 rm -f core conftest.err conftest.
$ac_objext \
9606 conftest
$ac_exeext conftest.
$ac_ext
9607 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9609 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9610 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"
9612 if test "$host_cpu" = ia64
; then
9613 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9614 allow_undefined_flag
="-z nodefs"
9615 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"
9617 # Determine the default libpath from the value encoded in an
9619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9630 if ac_fn_c_try_link
"$LINENO"; then :
9632 lt_aix_libpath_sed
='
9633 /Import File Strings/,/^$/ {
9639 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640 # Check for a 64-bit object if we didn't find anything.
9641 if test -z "$aix_libpath"; then
9642 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9645 rm -f core conftest.err conftest.
$ac_objext \
9646 conftest
$ac_exeext conftest.
$ac_ext
9647 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9649 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9650 # Warning - without using the other run time loading flags,
9651 # -berok will link without error, but may produce a broken library.
9652 no_undefined_flag
=' ${wl}-bernotok'
9653 allow_undefined_flag
=' ${wl}-berok'
9654 if test "$with_gnu_ld" = yes; then
9655 # We only use this code for GNU lds that support --whole-archive.
9656 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9658 # Exported symbols can be pulled into shared objects from archives
9659 whole_archive_flag_spec
='$convenience'
9661 archive_cmds_need_lc
=yes
9662 # This is similar to how AIX traditionally builds its shared libraries.
9663 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'
9671 # see comment about AmigaOS4 .so support
9672 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673 archive_expsym_cmds
=''
9676 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)'
9677 hardcode_libdir_flag_spec
='-L$libdir'
9678 hardcode_minus_L
=yes
9684 export_dynamic_flag_spec
=-rdynamic
9687 cygwin
* | mingw
* | pw32
* | cegcc
*)
9688 # When not using gcc, we currently assume that we are using
9689 # Microsoft Visual C++.
9690 # hardcode_libdir_flag_spec is actually meaningless, as there is
9691 # no search path for DLLs.
9692 hardcode_libdir_flag_spec
=' '
9693 allow_undefined_flag
=unsupported
9694 # Tell ltmain to make .lib files, not .a files.
9696 # Tell ltmain to make .dll files, not .so files.
9698 # FIXME: Setting linknames here is a bad hack.
9699 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9700 # The linker will automatically build a .lib file if we build a DLL.
9701 old_archive_from_new_cmds
='true'
9702 # FIXME: Should let the user specify the lib program.
9703 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9704 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9705 enable_shared_with_static_runtimes
=yes
9708 darwin
* | rhapsody
*)
9711 archive_cmds_need_lc
=no
9713 hardcode_automatic
=yes
9714 hardcode_shlibpath_var
=unsupported
9715 if test "$lt_cv_ld_force_load" = "yes"; then
9716 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\"`'
9718 whole_archive_flag_spec
=''
9720 link_all_deplibs
=yes
9721 allow_undefined_flag
="$_lt_dar_allow_undefined"
9722 case $cc_basename in
9723 ifort
*) _lt_dar_can_shared
=yes ;;
9724 *) _lt_dar_can_shared
=$GCC ;;
9726 if test "$_lt_dar_can_shared" = "yes"; then
9727 output_verbose_link_cmd
=func_echo_all
9728 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9729 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9730 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}"
9731 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}"
9740 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_libdir_flag_spec
='-L$libdir'
9742 hardcode_shlibpath_var
=no
9745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9746 # support. Future versions do this automatically, but an explicit c++rt0.o
9747 # does not break anything, and helps significantly (at the cost of a little
9750 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9751 hardcode_libdir_flag_spec
='-R$libdir'
9753 hardcode_shlibpath_var
=no
9756 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9758 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_minus_L
=yes
9761 hardcode_shlibpath_var
=no
9764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9765 freebsd
* | dragonfly
*)
9766 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9767 hardcode_libdir_flag_spec
='-R$libdir'
9769 hardcode_shlibpath_var
=no
9773 if test "$GCC" = yes; then
9774 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9776 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'
9778 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9779 hardcode_libdir_separator
=:
9782 # hardcode_minus_L: Not really in the search PATH,
9783 # but as the default location of the library.
9784 hardcode_minus_L
=yes
9785 export_dynamic_flag_spec
='${wl}-E'
9789 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9790 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9792 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9794 if test "$with_gnu_ld" = no
; then
9795 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9796 hardcode_libdir_flag_spec_ld
='+b $libdir'
9797 hardcode_libdir_separator
=:
9799 hardcode_direct_absolute
=yes
9800 export_dynamic_flag_spec
='${wl}-E'
9801 # hardcode_minus_L: Not really in the search PATH,
9802 # but as the default location of the library.
9803 hardcode_minus_L
=yes
9808 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9811 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9826 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9830 # Older versions of the 11.00 compiler do not understand -b yet
9831 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9833 $as_echo_n "checking if $CC understands -b... " >&6; }
9834 if ${lt_cv_prog_compiler__b+:} false
; then :
9835 $as_echo_n "(cached) " >&6
9837 lt_cv_prog_compiler__b
=no
9838 save_LDFLAGS
="$LDFLAGS"
9839 LDFLAGS
="$LDFLAGS -b"
9840 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9841 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9842 # The linker can only warn and ignore the option if not recognized
9843 # So say no if there are warnings
9844 if test -s conftest.err
; then
9845 # Append any errors to the config.log.
9846 cat conftest.err
1>&5
9847 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9848 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9849 if diff conftest.exp conftest.er2
>/dev
/null
; then
9850 lt_cv_prog_compiler__b
=yes
9853 lt_cv_prog_compiler__b
=yes
9857 LDFLAGS
="$save_LDFLAGS"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9861 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9863 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9864 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9872 if test "$with_gnu_ld" = no
; then
9873 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9874 hardcode_libdir_separator
=:
9879 hardcode_shlibpath_var
=no
9883 hardcode_direct_absolute
=yes
9884 export_dynamic_flag_spec
='${wl}-E'
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L
=yes
9894 irix5
* | irix6
* | nonstopux
*)
9895 if test "$GCC" = yes; then
9896 archive_cmds
='$CC -shared $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'
9897 # Try to use the -exported_symbol ld option, if it does not
9898 # work, assume that -exports_file does not work either and
9899 # implicitly export all symbols.
9900 save_LDFLAGS
="$LDFLAGS"
9901 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9906 if ac_fn_c_try_link
"$LINENO"; then :
9907 archive_expsym_cmds
='$CC -shared $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'
9910 rm -f core conftest.err conftest.
$ac_objext \
9911 conftest
$ac_exeext conftest.
$ac_ext
9912 LDFLAGS
="$save_LDFLAGS"
9914 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'
9915 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'
9917 archive_cmds_need_lc
='no'
9918 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9919 hardcode_libdir_separator
=:
9921 link_all_deplibs
=yes
9925 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9926 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9928 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9930 hardcode_libdir_flag_spec
='-R$libdir'
9932 hardcode_shlibpath_var
=no
9936 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator
=:
9940 hardcode_shlibpath_var
=no
9947 if test -f /usr
/libexec
/ld.so
; then
9949 hardcode_shlibpath_var
=no
9950 hardcode_direct_absolute
=yes
9951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9952 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9954 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9955 export_dynamic_flag_spec
='${wl}-E'
9958 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9959 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_libdir_flag_spec
='-R$libdir'
9963 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9974 hardcode_libdir_flag_spec
='-L$libdir'
9975 hardcode_minus_L
=yes
9976 allow_undefined_flag
=unsupported
9977 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'
9978 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9982 if test "$GCC" = yes; then
9983 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9984 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'
9986 allow_undefined_flag
=' -expect_unresolved \*'
9987 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'
9989 archive_cmds_need_lc
='no'
9990 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9991 hardcode_libdir_separator
=:
9994 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9995 if test "$GCC" = yes; then
9996 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9997 archive_cmds
='$CC -shared${allow_undefined_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'
9998 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10000 allow_undefined_flag
=' -expect_unresolved \*'
10001 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'
10002 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~
10003 $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'
10005 # Both c and cxx compiler support -rpath directly
10006 hardcode_libdir_flag_spec
='-rpath $libdir'
10008 archive_cmds_need_lc
='no'
10009 hardcode_libdir_separator
=:
10013 no_undefined_flag
=' -z defs'
10014 if test "$GCC" = yes; then
10016 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10018 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10020 case `$CC -V 2>&1` in
10023 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10029 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10031 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10035 hardcode_libdir_flag_spec
='-R$libdir'
10036 hardcode_shlibpath_var
=no
10038 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10040 # The compiler driver will combine and reorder linker options,
10041 # but understands `-z linker_flag'. GCC discards it without `$wl',
10042 # but is careful enough not to reorder.
10043 # Supported since Solaris 2.6 (maybe 2.5.1?)
10044 if test "$GCC" = yes; then
10045 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10047 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10051 link_all_deplibs
=yes
10055 if test "x$host_vendor" = xsequent
; then
10056 # Use $CC to link under sequent, because it throws in some extra .o
10057 # files that make .init and .fini sections work.
10058 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_libdir_flag_spec
='-L$libdir'
10063 hardcode_direct
=yes
10064 hardcode_minus_L
=yes
10065 hardcode_shlibpath_var
=no
10069 case $host_vendor in
10071 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_direct
=yes # is this really true???
10075 ## LD is ld it makes a PLAMLIB
10076 ## CC just makes a GrossModule.
10077 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10078 reload_cmds
='$CC -r -o $output$reload_objs'
10082 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10086 runpath_var
='LD_RUN_PATH'
10087 hardcode_shlibpath_var
=no
10091 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_shlibpath_var
=no
10093 export_dynamic_flag_spec
='-Bexport'
10097 if test -d /usr
/nec
; then
10098 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_shlibpath_var
=no
10100 runpath_var
=LD_RUN_PATH
10101 hardcode_runpath_var
=yes
10106 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10107 no_undefined_flag
='${wl}-z,text'
10108 archive_cmds_need_lc
=no
10109 hardcode_shlibpath_var
=no
10110 runpath_var
='LD_RUN_PATH'
10112 if test "$GCC" = yes; then
10113 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 sysv5
* | sco3.2v5
* | sco5v6
*)
10122 # Note: We can NOT use -z defs as we might desire, because we do not
10123 # link with -lc, and that would cause any symbols used from libc to
10124 # always be unresolved, which means just about no library would
10125 # ever link correctly. If we're not using GNU ld we use -z text
10126 # though, which does catch some bad symbols but isn't as heavy-handed
10128 no_undefined_flag
='${wl}-z,text'
10129 allow_undefined_flag
='${wl}-z,nodefs'
10130 archive_cmds_need_lc
=no
10131 hardcode_shlibpath_var
=no
10132 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10133 hardcode_libdir_separator
=':'
10134 link_all_deplibs
=yes
10135 export_dynamic_flag_spec
='${wl}-Bexport'
10136 runpath_var
='LD_RUN_PATH'
10138 if test "$GCC" = yes; then
10139 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_libdir_flag_spec
='-L$libdir'
10150 hardcode_shlibpath_var
=no
10158 if test x
$host_vendor = xsni
; then
10160 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10161 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10168 $as_echo "$ld_shlibs" >&6; }
10169 test "$ld_shlibs" = no
&& can_build_shared
=no
10171 with_gnu_ld
=$with_gnu_ld
10188 # Do we need to explicitly link libc?
10190 case "x$archive_cmds_need_lc" in
10192 # Assume -lc should be added
10193 archive_cmds_need_lc
=yes
10195 if test "$enable_shared" = yes && test "$GCC" = yes; then
10196 case $archive_cmds in
10198 # FIXME: we may have to deal with multi-command sequences.
10201 # Test whether the compiler implicitly links with -lc since on some
10202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10203 # to ld, don't add -lc before -lgcc.
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10205 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10206 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10207 $as_echo_n "(cached) " >&6
10210 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10213 (eval $ac_compile) 2>&5
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; } 2>conftest.err
; then
10219 libobjs
=conftest.
$ac_objext
10221 wl
=$lt_prog_compiler_wl
10222 pic_flag
=$lt_prog_compiler_pic
10228 lt_save_allow_undefined_flag
=$allow_undefined_flag
10229 allow_undefined_flag
=
10230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10231 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234 test $ac_status = 0; }
10236 lt_cv_archive_cmds_need_lc
=no
10238 lt_cv_archive_cmds_need_lc
=yes
10240 allow_undefined_flag
=$lt_save_allow_undefined_flag
10242 cat conftest.err
1>&5
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10248 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10249 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10413 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10415 if test "$GCC" = yes; then
10417 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10418 *) lt_awk_arg
="/^libraries:/" ;;
10421 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10422 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10424 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10425 case $lt_search_path_spec in
10427 # if the path contains ";" then we assume it to be the separator
10428 # otherwise default to the standard path separator (i.e. ":") - it is
10429 # assumed that no part of a normal pathname contains ";" but that should
10430 # okay in the real world where ";" in dirpaths is itself problematic.
10431 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10434 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10437 # Ok, now we have the path, separated by spaces, we can step through it
10438 # and add multilib dir if necessary.
10439 lt_tmp_lt_search_path_spec
=
10440 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10441 for lt_sys_path
in $lt_search_path_spec; do
10442 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10443 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10445 test -d "$lt_sys_path" && \
10446 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10449 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10450 BEGIN {RS=" "; FS="/|\n";} {
10453 for (lt_i = NF; lt_i > 0; lt_i--) {
10454 if ($lt_i != "" && $lt_i != ".") {
10455 if ($lt_i == "..") {
10458 if (lt_count == 0) {
10459 lt_foo="/" $lt_i lt_foo;
10466 if (lt_foo != "") { lt_freq[lt_foo]++; }
10467 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10469 # AWK program above erroneously prepends '/' to C:/dos/paths
10472 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10473 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10475 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10477 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10479 library_names_spec
=
10480 libname_spec
='lib$name'
10484 postuninstall_cmds
=
10488 shlibpath_overrides_runpath
=unknown
10490 dynamic_linker
="$host_os ld.so"
10491 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10492 need_lib_prefix
=unknown
10493 hardcode_into_libs
=no
10495 # when you set need_version to no, make sure it does not cause -set_version
10496 # flags to be left without arguments
10497 need_version
=unknown
10502 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10503 shlibpath_var
=LIBPATH
10505 # AIX 3 has no versioning support, so we append a major version to the name.
10506 soname_spec
='${libname}${release}${shared_ext}$major'
10513 hardcode_into_libs
=yes
10514 if test "$host_cpu" = ia64
; then
10515 # AIX 5 supports IA64
10516 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10517 shlibpath_var
=LD_LIBRARY_PATH
10519 # With GCC up to 2.95.x, collect2 would create an import file
10520 # for dependence libraries. The import file would start with
10521 # the line `#! .'. This would cause the generated library to
10522 # depend on `.', always an invalid library. This was fixed in
10523 # development snapshots of GCC prior to 3.0.
10525 aix4 | aix4.
[01] | aix4.
[01].
*)
10526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10528 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10531 can_build_shared
=no
10535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10536 # soname into executable. Probably we can add versioning support to
10537 # collect2, so additional links can be useful in future.
10538 if test "$aix_use_runtimelinking" = yes; then
10539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10540 # instead of lib<name>.a to let people know that these are not
10541 # typical AIX shared libraries.
10542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 # We preserve .a as extension for shared libraries through AIX4.2
10545 # and later when we are not doing run time linking.
10546 library_names_spec
='${libname}${release}.a $libname.a'
10547 soname_spec
='${libname}${release}${shared_ext}$major'
10549 shlibpath_var
=LIBPATH
10556 # Since July 2007 AmigaOS4 officially supports .so libraries.
10557 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 library_names_spec
='$libname.ixlibrary $libname.a'
10562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10563 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'
10569 library_names_spec
='${libname}${shared_ext}'
10570 dynamic_linker
="$host_os ld.so"
10571 shlibpath_var
=LIBRARY_PATH
10577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec
='${libname}${release}${shared_ext}$major'
10579 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10580 shlibpath_var
=LD_LIBRARY_PATH
10581 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10582 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10583 # the default ld.so.conf also contains /usr/contrib/lib and
10584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10585 # libtool to hard-code these into programs
10588 cygwin
* | mingw
* | pw32
* | cegcc
*)
10589 version_type
=windows
10594 case $GCC,$host_os in
10595 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10596 library_names_spec
='$libname.dll.a'
10597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10598 postinstall_cmds
='base_file=`basename \${file}`~
10599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10600 dldir=$destdir/`dirname \$dlpath`~
10601 test -d \$dldir || mkdir -p \$dldir~
10602 $install_prog $dir/$dlname \$dldir/$dlname~
10603 chmod a+x \$dldir/$dlname~
10604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10607 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10608 dlpath=$dir/\$dldll~
10610 shlibpath_overrides_runpath
=yes
10614 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10615 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10617 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10620 # MinGW DLLs use traditional 'lib' prefix
10621 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10624 # pw32 DLLs use 'pw' prefix rather than 'lib'
10625 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10631 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10634 dynamic_linker
='Win32 ld.exe'
10635 # FIXME: first we should search . and the directory the executable is in
10639 darwin
* | rhapsody
*)
10640 dynamic_linker
="$host_os dyld"
10641 version_type
=darwin
10644 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10645 soname_spec
='${libname}${release}${major}$shared_ext'
10646 shlibpath_overrides_runpath
=yes
10647 shlibpath_var
=DYLD_LIBRARY_PATH
10648 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10650 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10651 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10659 soname_spec
='${libname}${release}${shared_ext}$major'
10660 shlibpath_var
=LD_LIBRARY_PATH
10663 freebsd
* | dragonfly
*)
10664 # DragonFly does not have aout. When/if they implement a new
10665 # versioning mechanism, adjust this.
10666 if test -x /usr
/bin
/objformat
; then
10667 objformat
=`/usr/bin/objformat`
10670 freebsd
[23].
*) objformat
=aout
;;
10671 *) objformat
=elf
;;
10674 version_type
=freebsd-
$objformat
10675 case $version_type in
10677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10682 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10686 shlibpath_var
=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath
=yes
10691 freebsd3.
[01]* | freebsdelf3.
[01]*)
10692 shlibpath_overrides_runpath
=yes
10693 hardcode_into_libs
=yes
10695 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10696 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10697 shlibpath_overrides_runpath
=no
10698 hardcode_into_libs
=yes
10700 *) # from 4.6 on, and DragonFly
10701 shlibpath_overrides_runpath
=yes
10702 hardcode_into_libs
=yes
10711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712 soname_spec
='${libname}${release}${shared_ext}$major'
10713 shlibpath_var
=LD_LIBRARY_PATH
10714 hardcode_into_libs
=yes
10721 dynamic_linker
="$host_os runtime_loader"
10722 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10723 soname_spec
='${libname}${release}${shared_ext}$major'
10724 shlibpath_var
=LIBRARY_PATH
10725 shlibpath_overrides_runpath
=yes
10726 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10727 hardcode_into_libs
=yes
10730 hpux9
* | hpux10
* | hpux11
*)
10731 # Give a soname corresponding to the major version so that dld.sl refuses to
10732 # link against other versions.
10739 hardcode_into_libs
=yes
10740 dynamic_linker
="$host_os dld.so"
10741 shlibpath_var
=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10743 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec
='${libname}${release}${shared_ext}$major'
10745 if test "X$HPUX_IA64_MODE" = X32
; then
10746 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10748 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10750 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10754 hardcode_into_libs
=yes
10755 dynamic_linker
="$host_os dld.sl"
10756 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10757 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 soname_spec
='${libname}${release}${shared_ext}$major'
10760 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10761 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10765 dynamic_linker
="$host_os dld.sl"
10766 shlibpath_var
=SHLIB_PATH
10767 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec
='${libname}${release}${shared_ext}$major'
10772 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10773 postinstall_cmds
='chmod 555 $lib'
10774 # or fails outright, so override atomically:
10775 install_override_mode
=555
10782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10783 soname_spec
='${libname}${release}${shared_ext}$major'
10784 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10785 shlibpath_var
=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath
=no
10787 hardcode_into_libs
=yes
10790 irix5
* | irix6
* | nonstopux
*)
10792 nonstopux
*) version_type
=nonstopux
;;
10794 if test "$lt_cv_prog_gnu_ld" = yes; then
10802 soname_spec
='${libname}${release}${shared_ext}$major'
10803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10805 irix5
* | nonstopux
*)
10806 libsuff
= shlibsuff
=
10809 case $LD in # libtool.m4 will add one of these switches to LD
10810 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10811 libsuff
= shlibsuff
= libmagic
=32-bit;;
10812 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10813 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10814 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10815 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10816 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10820 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10821 shlibpath_overrides_runpath
=no
10822 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10823 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10824 hardcode_into_libs
=yes
10827 # No shared lib support for Linux oldld, aout, or coff.
10828 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10832 # This must be Linux ELF.
10833 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec
='${libname}${release}${shared_ext}$major'
10839 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10840 shlibpath_var
=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath
=no
10843 # Some binutils ld are patched to set DT_RUNPATH
10844 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10845 $as_echo_n "(cached) " >&6
10847 lt_cv_shlibpath_overrides_runpath
=no
10848 save_LDFLAGS
=$LDFLAGS
10849 save_libdir
=$libdir
10850 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10851 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10863 if ac_fn_c_try_link
"$LINENO"; then :
10864 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10865 lt_cv_shlibpath_overrides_runpath
=yes
10868 rm -f core conftest.err conftest.
$ac_objext \
10869 conftest
$ac_exeext conftest.
$ac_ext
10870 LDFLAGS
=$save_LDFLAGS
10871 libdir
=$save_libdir
10875 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10877 # This implies no fast_install, which is unacceptable.
10878 # Some rework will be needed to allow for fast_install
10879 # before this can be enabled.
10880 hardcode_into_libs
=yes
10882 # Append ld.so.conf contents to the search path
10883 if test -f /etc
/ld.so.conf
; then
10884 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' ' '`
10885 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10888 # We used to test for /lib/ld.so.1 and disable shared libraries on
10889 # powerpc, because MkLinux only supported shared libraries with the
10890 # GNU dynamic linker. Since this was broken with cross compilers,
10891 # most powerpc-linux boxes support dynamic linking these days and
10892 # people can always --disable-shared, the test was removed, and we
10893 # assume the GNU/Linux dynamic linker is in use.
10894 dynamic_linker
='GNU/Linux ld.so'
10901 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10904 dynamic_linker
='NetBSD (a.out) ld.so'
10906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10907 soname_spec
='${libname}${release}${shared_ext}$major'
10908 dynamic_linker
='NetBSD ld.elf_so'
10910 shlibpath_var
=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath
=yes
10912 hardcode_into_libs
=yes
10917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 shlibpath_var
=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath
=yes
10926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec
='${libname}${release}${shared_ext}$major'
10928 shlibpath_var
=LD_LIBRARY_PATH
10929 shlibpath_overrides_runpath
=no
10930 hardcode_into_libs
=yes
10931 dynamic_linker
='ldqnx.so'
10936 sys_lib_dlsearch_path_spec
="/usr/lib"
10938 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10940 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10941 *) need_version
=no
;;
10943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10944 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10945 shlibpath_var
=LD_LIBRARY_PATH
10946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10948 openbsd2.
[89] | openbsd2.
[89].
*)
10949 shlibpath_overrides_runpath
=no
10952 shlibpath_overrides_runpath
=yes
10956 shlibpath_overrides_runpath
=yes
10961 libname_spec
='$name'
10964 library_names_spec
='$libname${shared_ext} $libname.a'
10965 dynamic_linker
='OS/2 ld.exe'
10966 shlibpath_var
=LIBPATH
10969 osf3
* | osf4
* | osf5
*)
10973 soname_spec
='${libname}${release}${shared_ext}$major'
10974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 shlibpath_var
=LD_LIBRARY_PATH
10976 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10977 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec
='${libname}${release}${shared_ext}$major'
10990 shlibpath_var
=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath
=yes
10992 hardcode_into_libs
=yes
10993 # ldd complains unless libraries are executable
10994 postinstall_cmds
='chmod +x $lib'
10999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11000 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11001 shlibpath_var
=LD_LIBRARY_PATH
11002 shlibpath_overrides_runpath
=yes
11003 if test "$with_gnu_ld" = yes; then
11011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012 soname_spec
='${libname}${release}${shared_ext}$major'
11013 shlibpath_var
=LD_LIBRARY_PATH
11014 case $host_vendor in
11016 shlibpath_overrides_runpath
=no
11018 runpath_var
=LD_RUN_PATH
11026 shlibpath_overrides_runpath
=no
11027 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11033 if test -d /usr
/nec
;then
11035 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11036 soname_spec
='$libname${shared_ext}.$major'
11037 shlibpath_var
=LD_LIBRARY_PATH
11041 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11042 version_type
=freebsd-elf
11045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11046 soname_spec
='${libname}${release}${shared_ext}$major'
11047 shlibpath_var
=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath
=yes
11049 hardcode_into_libs
=yes
11050 if test "$with_gnu_ld" = yes; then
11051 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11053 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11056 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11060 sys_lib_dlsearch_path_spec
='/usr/lib'
11064 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 shlibpath_var
=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath
=no
11071 hardcode_into_libs
=yes
11076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec
='${libname}${release}${shared_ext}$major'
11078 shlibpath_var
=LD_LIBRARY_PATH
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11086 $as_echo "$dynamic_linker" >&6; }
11087 test "$dynamic_linker" = no
&& can_build_shared
=no
11089 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11090 if test "$GCC" = yes; then
11091 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11094 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11095 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11097 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11098 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11193 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11195 if test -n "$hardcode_libdir_flag_spec" ||
11196 test -n "$runpath_var" ||
11197 test "X$hardcode_automatic" = "Xyes" ; then
11199 # We can hardcode non-existent directories.
11200 if test "$hardcode_direct" != no
&&
11201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11202 # have to relink, otherwise we might link with an installed library
11203 # when we should be linking with a yet-to-be-installed one
11204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11205 test "$hardcode_minus_L" != no
; then
11206 # Linking always hardcodes the temporary library directory.
11207 hardcode_action
=relink
11209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11210 hardcode_action
=immediate
11213 # We cannot hardcode anything, or else we can only hardcode existing
11215 hardcode_action
=unsupported
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11218 $as_echo "$hardcode_action" >&6; }
11220 if test "$hardcode_action" = relink ||
11221 test "$inherit_rpath" = yes; then
11222 # Fast installation is not supported
11223 enable_fast_install
=no
11224 elif test "$shlibpath_overrides_runpath" = yes ||
11225 test "$enable_shared" = no
; then
11226 # Fast installation is not necessary
11227 enable_fast_install
=needless
11235 if test "x$enable_dlopen" != xyes
; then
11236 enable_dlopen
=unknown
11237 enable_dlopen_self
=unknown
11238 enable_dlopen_self_static
=unknown
11245 lt_cv_dlopen
="load_add_on"
11247 lt_cv_dlopen_self
=yes
11250 mingw
* | pw32
* | cegcc
*)
11251 lt_cv_dlopen
="LoadLibrary"
11256 lt_cv_dlopen
="dlopen"
11261 # if libdl is installed we need to link against it
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11263 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11264 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11265 $as_echo_n "(cached) " >&6
11267 ac_check_lib_save_LIBS
=$LIBS
11269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11272 /* Override any GCC internal prototype to avoid an error.
11273 Use char because int might match the return type of a GCC
11274 builtin and then its argument prototype would still apply. */
11287 if ac_fn_c_try_link
"$LINENO"; then :
11288 ac_cv_lib_dl_dlopen
=yes
11290 ac_cv_lib_dl_dlopen
=no
11292 rm -f core conftest.err conftest.
$ac_objext \
11293 conftest
$ac_exeext conftest.
$ac_ext
11294 LIBS
=$ac_check_lib_save_LIBS
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11297 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11298 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11299 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11302 lt_cv_dlopen
="dyld"
11304 lt_cv_dlopen_self
=yes
11311 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11312 if test "x$ac_cv_func_shl_load" = xyes
; then :
11313 lt_cv_dlopen
="shl_load"
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11316 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11317 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11318 $as_echo_n "(cached) " >&6
11320 ac_check_lib_save_LIBS
=$LIBS
11322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11335 return shl_load ();
11340 if ac_fn_c_try_link
"$LINENO"; then :
11341 ac_cv_lib_dld_shl_load
=yes
11343 ac_cv_lib_dld_shl_load
=no
11345 rm -f core conftest.err conftest.
$ac_objext \
11346 conftest
$ac_exeext conftest.
$ac_ext
11347 LIBS
=$ac_check_lib_save_LIBS
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11350 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11351 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11352 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11354 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11355 if test "x$ac_cv_func_dlopen" = xyes
; then :
11356 lt_cv_dlopen
="dlopen"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11360 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11361 $as_echo_n "(cached) " >&6
11363 ac_check_lib_save_LIBS
=$LIBS
11365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11383 if ac_fn_c_try_link
"$LINENO"; then :
11384 ac_cv_lib_dl_dlopen
=yes
11386 ac_cv_lib_dl_dlopen
=no
11388 rm -f core conftest.err conftest.
$ac_objext \
11389 conftest
$ac_exeext conftest.
$ac_ext
11390 LIBS
=$ac_check_lib_save_LIBS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11394 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11395 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11398 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11399 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11400 $as_echo_n "(cached) " >&6
11402 ac_check_lib_save_LIBS
=$LIBS
11403 LIBS
="-lsvld $LIBS"
11404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11422 if ac_fn_c_try_link
"$LINENO"; then :
11423 ac_cv_lib_svld_dlopen
=yes
11425 ac_cv_lib_svld_dlopen
=no
11427 rm -f core conftest.err conftest.
$ac_objext \
11428 conftest
$ac_exeext conftest.
$ac_ext
11429 LIBS
=$ac_check_lib_save_LIBS
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11432 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11433 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11434 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11437 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11438 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11439 $as_echo_n "(cached) " >&6
11441 ac_check_lib_save_LIBS
=$LIBS
11443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11456 return dld_link ();
11461 if ac_fn_c_try_link
"$LINENO"; then :
11462 ac_cv_lib_dld_dld_link
=yes
11464 ac_cv_lib_dld_dld_link
=no
11466 rm -f core conftest.err conftest.
$ac_objext \
11467 conftest
$ac_exeext conftest.
$ac_ext
11468 LIBS
=$ac_check_lib_save_LIBS
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11471 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11472 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11473 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11494 if test "x$lt_cv_dlopen" != xno
; then
11500 case $lt_cv_dlopen in
11502 save_CPPFLAGS
="$CPPFLAGS"
11503 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11505 save_LDFLAGS
="$LDFLAGS"
11506 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11509 LIBS
="$lt_cv_dlopen_libs $LIBS"
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11512 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11513 if ${lt_cv_dlopen_self+:} false
; then :
11514 $as_echo_n "(cached) " >&6
11516 if test "$cross_compiling" = yes; then :
11517 lt_cv_dlopen_self
=cross
11519 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11520 lt_status
=$lt_dlunknown
11521 cat > conftest.
$ac_ext <<_LT_EOF
11522 #line 11522 "configure"
11523 #include "confdefs.h"
11532 # define LT_DLGLOBAL RTLD_GLOBAL
11535 # define LT_DLGLOBAL DL_GLOBAL
11537 # define LT_DLGLOBAL 0
11541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11542 find out it does not work in some platform. */
11543 #ifndef LT_DLLAZY_OR_NOW
11545 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11548 # define LT_DLLAZY_OR_NOW DL_LAZY
11551 # define LT_DLLAZY_OR_NOW RTLD_NOW
11554 # define LT_DLLAZY_OR_NOW DL_NOW
11556 # define LT_DLLAZY_OR_NOW 0
11563 /* When -fvisbility=hidden is used, assume the code has been annotated
11564 correspondingly for the symbols needed. */
11565 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11566 void fnord () __attribute__((visibility("default")));
11569 void fnord () { int i=42; }
11572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11573 int status = $lt_dlunknown;
11577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11580 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11581 else puts (dlerror ());
11583 /* dlclose (self); */
11591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11592 (eval $ac_link) 2>&5
11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11596 (.
/conftest
; exit; ) >&5 2>/dev
/null
11598 case x
$lt_status in
11599 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11600 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11601 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11604 # compilation failed
11605 lt_cv_dlopen_self
=no
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11613 $as_echo "$lt_cv_dlopen_self" >&6; }
11615 if test "x$lt_cv_dlopen_self" = xyes
; then
11616 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11618 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11619 if ${lt_cv_dlopen_self_static+:} false
; then :
11620 $as_echo_n "(cached) " >&6
11622 if test "$cross_compiling" = yes; then :
11623 lt_cv_dlopen_self_static
=cross
11625 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11626 lt_status
=$lt_dlunknown
11627 cat > conftest.
$ac_ext <<_LT_EOF
11628 #line 11628 "configure"
11629 #include "confdefs.h"
11638 # define LT_DLGLOBAL RTLD_GLOBAL
11641 # define LT_DLGLOBAL DL_GLOBAL
11643 # define LT_DLGLOBAL 0
11647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11648 find out it does not work in some platform. */
11649 #ifndef LT_DLLAZY_OR_NOW
11651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11654 # define LT_DLLAZY_OR_NOW DL_LAZY
11657 # define LT_DLLAZY_OR_NOW RTLD_NOW
11660 # define LT_DLLAZY_OR_NOW DL_NOW
11662 # define LT_DLLAZY_OR_NOW 0
11669 /* When -fvisbility=hidden is used, assume the code has been annotated
11670 correspondingly for the symbols needed. */
11671 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11672 void fnord () __attribute__((visibility("default")));
11675 void fnord () { int i=42; }
11678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11679 int status = $lt_dlunknown;
11683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11687 else puts (dlerror ());
11689 /* dlclose (self); */
11697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11698 (eval $ac_link) 2>&5
11700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11702 (.
/conftest
; exit; ) >&5 2>/dev
/null
11704 case x
$lt_status in
11705 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11706 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11707 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11710 # compilation failed
11711 lt_cv_dlopen_self_static
=no
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11719 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11722 CPPFLAGS
="$save_CPPFLAGS"
11723 LDFLAGS
="$save_LDFLAGS"
11728 case $lt_cv_dlopen_self in
11729 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11730 *) enable_dlopen_self
=unknown
;;
11733 case $lt_cv_dlopen_self_static in
11734 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11735 *) enable_dlopen_self_static
=unknown
;;
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11758 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11759 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11760 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11761 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763 $as_echo "yes" >&6; }
11765 # FIXME - insert some real tests, host_os isn't really good enough
11768 if test -n "$STRIP" ; then
11769 striplib
="$STRIP -x"
11770 old_striplib
="$STRIP -S"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11796 # Report which library types will actually be built
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11798 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11800 $as_echo "$can_build_shared" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11803 $as_echo_n "checking whether to build shared libraries... " >&6; }
11804 test "$can_build_shared" = "no" && enable_shared
=no
11806 # On AIX, shared libraries and static libraries use the same namespace, and
11807 # are all built from PIC.
11810 test "$enable_shared" = yes && enable_static
=no
11811 if test -n "$RANLIB"; then
11812 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11813 postinstall_cmds
='$RANLIB $lib'
11818 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11819 test "$enable_shared" = yes && enable_static
=no
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11824 $as_echo "$enable_shared" >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11827 $as_echo_n "checking whether to build static libraries... " >&6; }
11828 # Make sure either enable_shared or enable_static is yes.
11829 test "$enable_shared" = yes || enable_static
=yes
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11831 $as_echo "$enable_static" >&6; }
11838 ac_cpp
='$CPP $CPPFLAGS'
11839 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11840 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11841 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11857 ac_config_commands
="$ac_config_commands libtool"
11862 # Only expand once:
11866 # The tests for host and target for $enable_largefile require
11871 # As the $enable_largefile decision depends on --enable-plugins we must set it
11872 # even in directories otherwise not depending on the $plugins option.
11876 for ac_header
in dlfcn.h
11878 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11880 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
11881 cat >>confdefs.h
<<_ACEOF
11882 #define HAVE_DLFCN_H 1
11889 for ac_header
in windows.h
11891 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11893 if test "x$ac_cv_header_windows_h" = xyes
; then :
11894 cat >>confdefs.h
<<_ACEOF
11895 #define HAVE_WINDOWS_H 1
11903 # Check whether --enable-plugins was given.
11904 if test "${enable_plugins+set}" = set; then :
11905 enableval
=$enable_plugins; case "${enableval}" in
11908 if test "$maybe_plugins" != "yes" ; then
11909 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11913 plugins
=$maybe_plugins
11917 if test "$plugins" = "yes"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11919 $as_echo_n "checking for library containing dlsym... " >&6; }
11920 if ${ac_cv_search_dlsym+:} false
; then :
11921 $as_echo_n "(cached) " >&6
11923 ac_func_search_save_LIBS
=$LIBS
11924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11942 for ac_lib
in '' dl
; do
11943 if test -z "$ac_lib"; then
11944 ac_res
="none required"
11947 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11949 if ac_fn_c_try_link
"$LINENO"; then :
11950 ac_cv_search_dlsym
=$ac_res
11952 rm -f core conftest.err conftest.
$ac_objext \
11954 if ${ac_cv_search_dlsym+:} false
; then :
11958 if ${ac_cv_search_dlsym+:} false
; then :
11961 ac_cv_search_dlsym
=no
11963 rm conftest.
$ac_ext
11964 LIBS
=$ac_func_search_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11967 $as_echo "$ac_cv_search_dlsym" >&6; }
11968 ac_res
=$ac_cv_search_dlsym
11969 if test "$ac_res" != no
; then :
11970 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11978 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
11979 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11980 # are mutually exclusive; and without procfs support, the bfd/ elf module
11981 # cannot provide certain routines such as elfcore_write_prpsinfo
11982 # or elfcore_write_prstatus. So unless the user explicitly requested
11983 # large-file support through the --enable-largefile switch, disable
11984 # large-file support in favor of procfs support.
11985 test "${target}" = "${host}" -a "x$plugins" = xno \
11986 && : ${enable_largefile="no"}
11990 # Check whether --enable-largefile was given.
11991 if test "${enable_largefile+set}" = set; then :
11992 enableval
=$enable_largefile;
11995 if test "$enable_largefile" != no
; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11998 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11999 if ${ac_cv_sys_largefile_CC+:} false
; then :
12000 $as_echo_n "(cached) " >&6
12002 ac_cv_sys_largefile_CC
=no
12003 if test "$GCC" != yes; then
12006 # IRIX 6.2 and later do not support large files by default,
12007 # so use the C compiler's -n32 option if that helps.
12008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #include <sys/types.h>
12011 /* Check that off_t can represent 2**63 - 1 correctly.
12012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12013 since some C++ compilers masquerading as C compilers
12014 incorrectly reject 9223372036854775807. */
12015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12017 && LARGE_OFF_T % 2147483647 == 1)
12027 if ac_fn_c_try_compile
"$LINENO"; then :
12030 rm -f core conftest.err conftest.
$ac_objext
12032 if ac_fn_c_try_compile
"$LINENO"; then :
12033 ac_cv_sys_largefile_CC
=' -n32'; break
12035 rm -f core conftest.err conftest.
$ac_objext
12039 rm -f conftest.
$ac_ext
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12043 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12044 if test "$ac_cv_sys_largefile_CC" != no
; then
12045 CC
=$CC$ac_cv_sys_largefile_CC
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12049 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12050 if ${ac_cv_sys_file_offset_bits+:} false
; then :
12051 $as_echo_n "(cached) " >&6
12054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12056 #include <sys/types.h>
12057 /* Check that off_t can represent 2**63 - 1 correctly.
12058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12059 since some C++ compilers masquerading as C compilers
12060 incorrectly reject 9223372036854775807. */
12061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12063 && LARGE_OFF_T % 2147483647 == 1)
12073 if ac_fn_c_try_compile
"$LINENO"; then :
12074 ac_cv_sys_file_offset_bits
=no
; break
12076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 #define _FILE_OFFSET_BITS 64
12080 #include <sys/types.h>
12081 /* Check that off_t can represent 2**63 - 1 correctly.
12082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12083 since some C++ compilers masquerading as C compilers
12084 incorrectly reject 9223372036854775807. */
12085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12087 && LARGE_OFF_T % 2147483647 == 1)
12097 if ac_fn_c_try_compile
"$LINENO"; then :
12098 ac_cv_sys_file_offset_bits
=64; break
12100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12101 ac_cv_sys_file_offset_bits
=unknown
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12106 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12107 case $ac_cv_sys_file_offset_bits in #(
12110 cat >>confdefs.h
<<_ACEOF
12111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12116 if test $ac_cv_sys_file_offset_bits = unknown
; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12118 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12119 if ${ac_cv_sys_large_files+:} false
; then :
12120 $as_echo_n "(cached) " >&6
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <sys/types.h>
12126 /* Check that off_t can represent 2**63 - 1 correctly.
12127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12128 since some C++ compilers masquerading as C compilers
12129 incorrectly reject 9223372036854775807. */
12130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12132 && LARGE_OFF_T % 2147483647 == 1)
12142 if ac_fn_c_try_compile
"$LINENO"; then :
12143 ac_cv_sys_large_files
=no
; break
12145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #define _LARGE_FILES 1
12149 #include <sys/types.h>
12150 /* Check that off_t can represent 2**63 - 1 correctly.
12151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12152 since some C++ compilers masquerading as C compilers
12153 incorrectly reject 9223372036854775807. */
12154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12156 && LARGE_OFF_T % 2147483647 == 1)
12166 if ac_fn_c_try_compile
"$LINENO"; then :
12167 ac_cv_sys_large_files
=1; break
12169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12170 ac_cv_sys_large_files
=unknown
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12175 $as_echo "$ac_cv_sys_large_files" >&6; }
12176 case $ac_cv_sys_large_files in #(
12179 cat >>confdefs.h
<<_ACEOF
12180 #define _LARGE_FILES $ac_cv_sys_large_files
12192 # Check whether --enable-targets was given.
12193 if test "${enable_targets+set}" = set; then :
12194 enableval
=$enable_targets; case "${enableval}" in
12195 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
12197 no
) enable_targets
= ;;
12198 *) enable_targets
=$enableval ;;
12202 # Check whether --enable-deterministic-archives was given.
12203 if test "${enable_deterministic_archives+set}" = set; then :
12204 enableval
=$enable_deterministic_archives;
12205 if test "${enableval}" = no
; then
12206 default_ar_deterministic
=0
12208 default_ar_deterministic
=1
12211 default_ar_deterministic
=0
12216 cat >>confdefs.h
<<_ACEOF
12217 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
12221 # Check whether --enable-default-strings-all was given.
12222 if test "${enable_default_strings_all+set}" = set; then :
12223 enableval
=$enable_default_strings_all;
12224 if test "${enableval}" = no
; then
12225 default_strings_all
=0
12227 default_strings_all
=1
12230 default_strings_all
=1
12235 cat >>confdefs.h
<<_ACEOF
12236 #define DEFAULT_STRINGS_ALL $default_strings_all
12241 # Set the 'development' global.
12242 .
$srcdir/..
/bfd
/development.sh
12244 # Set acp_cpp_for_build variable
12245 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12247 # Default set of GCC warnings to enable.
12248 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12249 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12251 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12257 $EGREP "^[0-3]$" >/dev
/null
2>&1; then :
12260 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
12265 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12271 $EGREP "^[0-4]$" >/dev
/null
2>&1; then :
12274 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12279 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12280 WARN_WRITE_STRINGS
=""
12281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "^[0-3]$" >/dev
/null
2>&1; then :
12289 WARN_WRITE_STRINGS
="-Wwrite-strings"
12294 # Verify CC_FOR_BUILD to be compatible with warning flags
12296 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12301 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12302 $EGREP "^[0-3]$" >/dev
/null
2>&1; then :
12305 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12310 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12315 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12316 $EGREP "^[0-4]$" >/dev
/null
2>&1; then :
12319 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12324 # Check whether --enable-werror was given.
12325 if test "${enable_werror+set}" = set; then :
12326 enableval
=$enable_werror; case "${enableval}" in
12327 yes | y
) ERROR_ON_WARNING
="yes" ;;
12328 no | n
) ERROR_ON_WARNING
="no" ;;
12329 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12334 # Disable -Wformat by default when using gcc on mingw
12337 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12338 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
12339 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12345 # Enable -Werror by default when using gcc. Turn it off for releases.
12346 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
12347 ERROR_ON_WARNING
=yes
12351 if test "${ERROR_ON_WARNING}" = yes ; then
12352 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
12353 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12354 NO_WERROR
="-Wno-error"
12357 if test "${GCC}" = yes ; then
12358 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
12359 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
12362 # Check whether --enable-build-warnings was given.
12363 if test "${enable_build_warnings+set}" = set; then :
12364 enableval
=$enable_build_warnings; case "${enableval}" in
12365 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
12366 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12367 no
) if test "${GCC}" = yes ; then
12369 WARN_CFLAGS_FOR_BUILD
="-w"
12371 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12372 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
12373 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12374 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12375 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
12376 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12377 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
12378 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12383 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
12384 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12393 ac_config_headers
="$ac_config_headers config.h:config.in"
12398 if test -z "$target" ; then
12399 as_fn_error $?
"Unrecognized target system type; please check config.sub." "$LINENO" 5
12401 if test -z "$host" ; then
12402 as_fn_error $?
"Unrecognized host system type; please check config.sub." "$LINENO" 5
12405 for ac_prog
in 'bison -y' byacc
12407 # Extract the first word of "$ac_prog", so it can be a program name with args.
12408 set dummy
$ac_prog; ac_word
=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if ${ac_cv_prog_YACC+:} false
; then :
12412 $as_echo_n "(cached) " >&6
12414 if test -n "$YACC"; then
12415 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
12417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12418 for as_dir
in $PATH
12421 test -z "$as_dir" && as_dir
=.
12422 for ac_exec_ext
in '' $ac_executable_extensions; do
12423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_YACC
="$ac_prog"
12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 YACC
=$ac_cv_prog_YACC
12435 if test -n "$YACC"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12437 $as_echo "$YACC" >&6; }
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12444 test -n "$YACC" && break
12446 test -n "$YACC" || YACC
="yacc"
12448 for ac_prog
in flex
lex
12450 # Extract the first word of "$ac_prog", so it can be a program name with args.
12451 set dummy
$ac_prog; ac_word
=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_prog_LEX+:} false
; then :
12455 $as_echo_n "(cached) " >&6
12457 if test -n "$LEX"; then
12458 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
12460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12461 for as_dir
in $PATH
12464 test -z "$as_dir" && as_dir
=.
12465 for ac_exec_ext
in '' $ac_executable_extensions; do
12466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_LEX
="$ac_prog"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 LEX
=$ac_cv_prog_LEX
12478 if test -n "$LEX"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12480 $as_echo "$LEX" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12487 test -n "$LEX" && break
12489 test -n "$LEX" || LEX
=":"
12493 *) cat >conftest.l
<<_ACEOF
12499 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12500 yyless ((input () != 0)); }
12501 f { unput (yytext[0]); }
12502 . { BEGIN INITIAL; }
12504 #ifdef YYTEXT_POINTER
12505 extern char *yytext;
12510 return ! yylex () + ! yywrap ();
12513 { { ac_try
="$LEX conftest.l"
12514 case "(($ac_try" in
12515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12519 $as_echo "$ac_try_echo"; } >&5
12520 (eval "$LEX conftest.l") 2>&5
12522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523 test $ac_status = 0; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12525 $as_echo_n "checking lex output file root... " >&6; }
12526 if ${ac_cv_prog_lex_root+:} false; then :
12527 $as_echo_n "(cached) " >&6
12530 if test -f lex.yy.c; then
12531 ac_cv_prog_lex_root=lex.yy
12532 elif test -f lexyy.c; then
12533 ac_cv_prog_lex_root=lexyy
12535 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12539 $as_echo "$ac_cv_prog_lex_root" >&6; }
12540 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12542 if test -z "${LEXLIB+set}"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12544 $as_echo_n "checking lex library... " >&6; }
12545 if ${ac_cv_lib_lex+:} false; then :
12546 $as_echo_n "(cached) " >&6
12550 ac_cv_lib_lex='none needed'
12551 for ac_lib in '' -lfl -ll; do
12552 LIBS="$ac_lib $ac_save_LIBS"
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 `cat $LEX_OUTPUT_ROOT.c
`
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_lib_lex=$ac_lib
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 test "$ac_cv_lib_lex" != 'none needed' && break
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12568 $as_echo "$ac_cv_lib_lex" >&6; }
12569 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12574 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12575 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12576 $as_echo_n "(cached) " >&6
12578 # POSIX says lex can declare yytext either as a pointer or an array; the
12579 # default is implementation-dependent. Figure out which it is, since
12580 # not all implementations provide the %pointer and %array declarations.
12581 ac_cv_prog_lex_yytext_pointer=no
12583 LIBS="$LEXLIB $ac_save_LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12587 #define YYTEXT_POINTER 1
12588 `cat $LEX_OUTPUT_ROOT.c
`
12590 if ac_fn_c_try_link "$LINENO"; then :
12591 ac_cv_prog_lex_yytext_pointer=yes
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12599 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12600 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12602 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12605 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12608 if test "$LEX" = :; then
12609 LEX=${am_missing_run}flex
12612 ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12613 # If we haven't got the data from the intl directory,
12614 # assume NLS is disabled.
12623 if test -f ../intl/config.intl; then
12624 . ../intl/config.intl
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12627 $as_echo_n "checking whether NLS is requested... " >&6; }
12628 if test x"$USE_NLS" != xyes; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12635 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12639 $as_echo_n "checking for catalogs to be installed... " >&6; }
12640 # Look for .po and .gmo files in the source directory.
12643 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12644 # If there aren't any .gmo files the shell will give us the
12645 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12647 case "$cat" in *\**)
12650 # The quadruple backslash is collapsed to a double backslash
12651 # by the backticks, then collapsed again by the double quotes,
12652 # leaving us with one backslash in the sed expression (right
12653 # before the dot that mustn't act as a wildcard).
12654 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12655 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
12656 # The user is allowed to set LINGUAS to a list of languages to
12657 # install catalogs for. If it's empty that means "all of them."
12658 if test "x$LINGUAS" = x; then
12659 CATALOGS="$CATALOGS $cat"
12660 XLINGUAS="$XLINGUAS $lang"
12662 case "$LINGUAS" in *$lang*)
12663 CATALOGS="$CATALOGS $cat"
12664 XLINGUAS="$XLINGUAS $lang"
12669 LINGUAS="$XLINGUAS"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12671 $as_echo "$LINGUAS" >&6; }
12685 if test -n "$ac_aux_dir"; then
12686 case "$ac_aux_dir" in
12687 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12688 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12691 if test -z "$MKINSTALLDIRS"; then
12692 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12698 $as_echo_n "checking whether NLS is requested... " >&6; }
12699 # Check whether --enable-nls was given.
12700 if test "${enable_nls+set}" = set; then :
12701 enableval=$enable_nls; USE_NLS=$enableval
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12707 $as_echo "$USE_NLS" >&6; }
12714 # Prepare PATH_SEPARATOR.
12715 # The user is always right.
12716 if test "${PATH_SEPARATOR+set}" != set; then
12717 echo "#! /bin/sh" >conf$$.sh
12718 echo "exit 0" >>conf$$.sh
12720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12728 # Find out how to test for executable files. Don't use a zero-byte file,
12729 # as systems may use methods other than mode bits to determine executability.
12730 cat >conf$$.file <<_ASEOF
12734 chmod +x conf$$.file
12735 if test -x conf$$.file >/dev/null 2>&1; then
12736 ac_executable_p="test -x"
12738 ac_executable_p="test -f"
12742 # Extract the first word of "msgfmt", so it can be a program name with args.
12743 set dummy msgfmt; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_path_MSGFMT+:} false; then :
12747 $as_echo_n "(cached) " >&6
12751 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12754 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12755 for ac_dir in $PATH; do
12757 test -z "$ac_dir" && ac_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12760 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12761 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12762 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12769 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12773 MSGFMT="$ac_cv_path_MSGFMT"
12774 if test "$MSGFMT" != ":"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12776 $as_echo "$MSGFMT" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12782 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12783 set dummy gmsgfmt; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_path_GMSGFMT+:} false; then :
12787 $as_echo_n "(cached) " >&6
12791 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12813 GMSGFMT=$ac_cv_path_GMSGFMT
12814 if test -n "$GMSGFMT"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12816 $as_echo "$GMSGFMT" >&6; }
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12825 # Prepare PATH_SEPARATOR.
12826 # The user is always right.
12827 if test "${PATH_SEPARATOR+set}" != set; then
12828 echo "#! /bin/sh" >conf$$.sh
12829 echo "exit 0" >>conf$$.sh
12831 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12839 # Find out how to test for executable files. Don't use a zero-byte file,
12840 # as systems may use methods other than mode bits to determine executability.
12841 cat >conf$$.file <<_ASEOF
12845 chmod +x conf$$.file
12846 if test -x conf$$.file >/dev/null 2>&1; then
12847 ac_executable_p="test -x"
12849 ac_executable_p="test -f"
12853 # Extract the first word of "xgettext", so it can be a program name with args.
12854 set dummy xgettext; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if ${ac_cv_path_XGETTEXT+:} false; then :
12858 $as_echo_n "(cached) " >&6
12860 case "$XGETTEXT" in
12862 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12865 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12866 for ac_dir in $PATH; do
12868 test -z "$ac_dir" && ac_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12871 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12872 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12873 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12880 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12884 XGETTEXT="$ac_cv_path_XGETTEXT"
12885 if test "$XGETTEXT" != ":"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12887 $as_echo "$XGETTEXT" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12896 # Prepare PATH_SEPARATOR.
12897 # The user is always right.
12898 if test "${PATH_SEPARATOR+set}" != set; then
12899 echo "#! /bin/sh" >conf$$.sh
12900 echo "exit 0" >>conf$$.sh
12902 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12910 # Find out how to test for executable files. Don't use a zero-byte file,
12911 # as systems may use methods other than mode bits to determine executability.
12912 cat >conf$$.file <<_ASEOF
12916 chmod +x conf$$.file
12917 if test -x conf$$.file >/dev/null 2>&1; then
12918 ac_executable_p="test -x"
12920 ac_executable_p="test -f"
12924 # Extract the first word of "msgmerge", so it can be a program name with args.
12925 set dummy msgmerge; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_MSGMERGE+:} false; then :
12929 $as_echo_n "(cached) " >&6
12931 case "$MSGMERGE" in
12933 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12936 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12937 for ac_dir in $PATH; do
12939 test -z "$ac_dir" && ac_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12942 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12943 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12950 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12954 MSGMERGE="$ac_cv_path_MSGMERGE"
12955 if test "$MSGMERGE" != ":"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12957 $as_echo "$MSGMERGE" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12964 if test "$GMSGFMT" != ":"; then
12965 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12966 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12969 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12971 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12976 if test "$XGETTEXT" != ":"; then
12977 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12978 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12982 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12988 ac_config_commands="$ac_config_commands default-1"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12994 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12995 # Check whether --enable-maintainer-mode was given.
12996 if test "${enable_maintainer_mode+set}" = set; then :
12997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12999 USE_MAINTAINER_MODE=no
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13003 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13004 if test $USE_MAINTAINER_MODE = yes; then
13005 MAINTAINER_MODE_TRUE=
13006 MAINTAINER_MODE_FALSE='#'
13008 MAINTAINER_MODE_TRUE='#'
13009 MAINTAINER_MODE_FALSE=
13012 MAINT=$MAINTAINER_MODE_TRUE
13016 GENINSRC_NEVER_TRUE=
13017 GENINSRC_NEVER_FALSE='#'
13019 GENINSRC_NEVER_TRUE='#'
13020 GENINSRC_NEVER_FALSE=
13024 if test -n "$EXEEXT"; then
13026 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
13030 cat >>confdefs.h <<_ACEOF
13031 #define EXECUTABLE_SUFFIX "${EXEEXT}"
13035 # host-specific stuff:
13039 . ${srcdir}/../bfd/configure.host
13044 if test -n "$ac_tool_prefix"; then
13045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if ${ac_cv_prog_RANLIB+:} false; then :
13050 $as_echo_n "(cached) " >&6
13052 if test -n "$RANLIB"; then
13053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 RANLIB=$ac_cv_prog_RANLIB
13073 if test -n "$RANLIB"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13075 $as_echo "$RANLIB" >&6; }
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13083 if test -z "$ac_cv_prog_RANLIB"; then
13084 ac_ct_RANLIB=$RANLIB
13085 # Extract the first word of "ranlib", so it can be a program name with args.
13086 set dummy ranlib; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13090 $as_echo_n "(cached) " >&6
13092 if test -n "$ac_ct_RANLIB"; then
13093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102 ac_cv_prog_ac_ct_RANLIB="ranlib"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13113 if test -n "$ac_ct_RANLIB"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13115 $as_echo "$ac_ct_RANLIB" >&6; }
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13121 if test "x$ac_ct_RANLIB" = x; then
13124 case $cross_compiling:$ac_tool_warned in
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13128 ac_tool_warned=yes ;;
13130 RANLIB=$ac_ct_RANLIB
13133 RANLIB="$ac_cv_prog_RANLIB"
13138 # Put a plausible default for CC_FOR_BUILD in Makefile.
13139 if test -z "$CC_FOR_BUILD"; then
13140 if test "x$cross_compiling" = "xno"; then
13141 CC_FOR_BUILD='$(CC)'
13147 # Also set EXEEXT_FOR_BUILD.
13148 if test "x$cross_compiling" = "xno"; then
13149 EXEEXT_FOR_BUILD='$(EXEEXT)'
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13152 $as_echo_n "checking for build system executable suffix... " >&6; }
13153 if ${bfd_cv_build_exeext+:} false; then :
13154 $as_echo_n "(cached) " >&6
13157 echo 'int main () { return 0; }' > conftest.c
13158 bfd_cv_build_exeext=
13159 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13160 for file in conftest.*; do
13162 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13163 *) bfd_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
13167 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13170 $as_echo "$bfd_cv_build_exeext" >&6; }
13171 EXEEXT_FOR_BUILD=""
13172 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13176 DEMANGLER_NAME=c++filt
13178 *-*-go32* | *-*-msdos*)
13179 DEMANGLER_NAME=cxxfilt
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 long" >&5
13188 $as_echo_n "checking size of long... " >&6; }
13189 if ${ac_cv_sizeof_long+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13195 if test "$ac_cv_type_long" = 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 (long)
13199 See \`config.log
' for more details" "$LINENO" 5; }
13201 ac_cv_sizeof_long=0
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13207 $as_echo "$ac_cv_sizeof_long" >&6; }
13211 cat >>confdefs.h <<_ACEOF
13212 #define SIZEOF_LONG $ac_cv_sizeof_long
13216 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13217 if test "x$ac_cv_type_long_long" = xyes; then :
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_LONG_LONG 1
13223 # The cast to long int works around a bug in the HP C Compiler
13224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13226 # This bug is HP SR number 8606223364.
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13228 $as_echo_n "checking size of long long... " >&6; }
13229 if ${ac_cv_sizeof_long_long+:} false
; then :
13230 $as_echo_n "(cached) " >&6
13232 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13235 if test "$ac_cv_type_long_long" = yes; then
13236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13238 as_fn_error
77 "cannot compute sizeof (long long)
13239 See \`config.log' for more details" "$LINENO" 5; }
13241 ac_cv_sizeof_long_long
=0
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13247 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13251 cat >>confdefs.h
<<_ACEOF
13252 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13259 for ac_header
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h limits.h locale.h sys
/param.h wchar.h
13261 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13263 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13264 cat >>confdefs.h
<<_ACEOF
13265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13273 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13274 if ${ac_cv_header_sys_wait_h+:} false
; then :
13275 $as_echo_n "(cached) " >&6
13277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <sys/types.h>
13280 #include <sys/wait.h>
13281 #ifndef WEXITSTATUS
13282 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13285 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13293 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13298 if ac_fn_c_try_compile
"$LINENO"; then :
13299 ac_cv_header_sys_wait_h
=yes
13301 ac_cv_header_sys_wait_h
=no
13303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13306 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13307 if test $ac_cv_header_sys_wait_h = yes; then
13309 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13314 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13315 if ${gcc_cv_header_string+:} false
; then :
13316 $as_echo_n "(cached) " >&6
13318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <string.h>
13321 #include <strings.h>
13330 if ac_fn_c_try_compile
"$LINENO"; then :
13331 gcc_cv_header_string
=yes
13333 gcc_cv_header_string
=no
13335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13338 $as_echo "$gcc_cv_header_string" >&6; }
13339 if test $gcc_cv_header_string = yes; then
13341 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13345 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13346 if test "x$ac_cv_type_size_t" = xyes
; then :
13350 cat >>confdefs.h
<<_ACEOF
13351 #define size_t unsigned int
13356 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13357 # for constant arguments. Useless!
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13359 $as_echo_n "checking for working alloca.h... " >&6; }
13360 if ${ac_cv_working_alloca_h+:} false
; then :
13361 $as_echo_n "(cached) " >&6
13363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 #include <alloca.h>
13369 char *p = (char *) alloca (2 * sizeof (int));
13375 if ac_fn_c_try_link
"$LINENO"; then :
13376 ac_cv_working_alloca_h
=yes
13378 ac_cv_working_alloca_h
=no
13380 rm -f core conftest.err conftest.
$ac_objext \
13381 conftest
$ac_exeext conftest.
$ac_ext
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13384 $as_echo "$ac_cv_working_alloca_h" >&6; }
13385 if test $ac_cv_working_alloca_h = yes; then
13387 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13392 $as_echo_n "checking for alloca... " >&6; }
13393 if ${ac_cv_func_alloca_works+:} false
; then :
13394 $as_echo_n "(cached) " >&6
13396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 # define alloca __builtin_alloca
13402 # include <malloc.h>
13403 # define alloca _alloca
13405 # ifdef HAVE_ALLOCA_H
13406 # include <alloca.h>
13411 # ifndef alloca /* predefined by HP cc +Olibcalls */
13412 void *alloca (size_t);
13422 char *p = (char *) alloca (1);
13428 if ac_fn_c_try_link
"$LINENO"; then :
13429 ac_cv_func_alloca_works
=yes
13431 ac_cv_func_alloca_works
=no
13433 rm -f core conftest.err conftest.
$ac_objext \
13434 conftest
$ac_exeext conftest.
$ac_ext
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13437 $as_echo "$ac_cv_func_alloca_works" >&6; }
13439 if test $ac_cv_func_alloca_works = yes; then
13441 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13444 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13445 # that cause trouble. Some versions do not even contain alloca or
13446 # contain a buggy version. If you still want to use their alloca,
13447 # use ar to extract alloca.o from them instead of compiling alloca.c.
13449 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13451 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13455 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13456 if ${ac_cv_os_cray+:} false
; then :
13457 $as_echo_n "(cached) " >&6
13459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #if defined CRAY && ! defined CRAY2
13468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13469 $EGREP "webecray" >/dev
/null
2>&1; then :
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13478 $as_echo "$ac_cv_os_cray" >&6; }
13479 if test $ac_cv_os_cray = yes; then
13480 for ac_func
in _getb67 GETB67 getb67
; do
13481 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13482 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13483 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13485 cat >>confdefs.h
<<_ACEOF
13486 #define CRAY_STACKSEG_END $ac_func
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13496 $as_echo_n "checking stack direction for C alloca... " >&6; }
13497 if ${ac_cv_c_stack_direction+:} false
; then :
13498 $as_echo_n "(cached) " >&6
13500 if test "$cross_compiling" = yes; then :
13501 ac_cv_c_stack_direction
=0
13503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 $ac_includes_default
13507 find_stack_direction (int *addr, int depth)
13509 int dir, dummy = 0;
13512 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13513 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13514 return dir + dummy;
13518 main (int argc, char **argv)
13520 return find_stack_direction (0, argc + !argv + 20) < 0;
13523 if ac_fn_c_try_run
"$LINENO"; then :
13524 ac_cv_c_stack_direction
=1
13526 ac_cv_c_stack_direction
=-1
13528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13534 $as_echo "$ac_cv_c_stack_direction" >&6; }
13535 cat >>confdefs.h
<<_ACEOF
13536 #define STACK_DIRECTION $ac_cv_c_stack_direction
13542 for ac_func
in sbrk utimes setmode getc_unlocked strcoll setlocale
13544 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13545 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13546 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13547 cat >>confdefs.h
<<_ACEOF
13548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13554 ac_fn_c_check_func
"$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13555 if test "x$ac_cv_func_mkstemp" = xyes
; then :
13557 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13561 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13562 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
13564 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13569 $as_echo_n "checking for mbstate_t... " >&6; }
13570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13576 mbstate_t teststate;
13581 if ac_fn_c_try_compile
"$LINENO"; then :
13586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13588 $as_echo "$have_mbstate_t" >&6; }
13589 if test x
"$have_mbstate_t" = xyes
; then
13591 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13595 # Some systems have frexp only in -lm, not in -lc.
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13597 $as_echo_n "checking for library containing frexp... " >&6; }
13598 if ${ac_cv_search_frexp+:} false
; then :
13599 $as_echo_n "(cached) " >&6
13601 ac_func_search_save_LIBS
=$LIBS
13602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13605 /* Override any GCC internal prototype to avoid an error.
13606 Use char because int might match the return type of a GCC
13607 builtin and then its argument prototype would still apply. */
13620 for ac_lib
in '' m
; do
13621 if test -z "$ac_lib"; then
13622 ac_res
="none required"
13625 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13627 if ac_fn_c_try_link
"$LINENO"; then :
13628 ac_cv_search_frexp
=$ac_res
13630 rm -f core conftest.err conftest.
$ac_objext \
13632 if ${ac_cv_search_frexp+:} false
; then :
13636 if ${ac_cv_search_frexp+:} false
; then :
13639 ac_cv_search_frexp
=no
13641 rm conftest.
$ac_ext
13642 LIBS
=$ac_func_search_save_LIBS
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13645 $as_echo "$ac_cv_search_frexp" >&6; }
13646 ac_res
=$ac_cv_search_frexp
13647 if test "$ac_res" != no
; then :
13648 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13655 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13656 if ${am_cv_val_LC_MESSAGES+:} false
; then :
13657 $as_echo_n "(cached) " >&6
13659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661 #include <locale.h>
13670 if ac_fn_c_try_link
"$LINENO"; then :
13671 am_cv_val_LC_MESSAGES
=yes
13673 am_cv_val_LC_MESSAGES
=no
13675 rm -f core conftest.err conftest.
$ac_objext \
13676 conftest
$ac_exeext conftest.
$ac_ext
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13679 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13680 if test $am_cv_val_LC_MESSAGES = yes; then
13682 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13688 $as_echo_n "checking for time_t in time.h... " >&6; }
13689 if ${bu_cv_decl_time_t_time_h+:} false
; then :
13690 $as_echo_n "(cached) " >&6
13692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13703 if ac_fn_c_try_compile
"$LINENO"; then :
13704 bu_cv_decl_time_t_time_h
=yes
13706 bu_cv_decl_time_t_time_h
=no
13708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13712 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13713 if test $bu_cv_decl_time_t_time_h = yes; then
13715 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13720 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
13721 if ${bu_cv_decl_time_t_types_h+:} false
; then :
13722 $as_echo_n "(cached) " >&6
13724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 #include <sys/types.h>
13735 if ac_fn_c_try_compile
"$LINENO"; then :
13736 bu_cv_decl_time_t_types_h
=yes
13738 bu_cv_decl_time_t_types_h
=no
13740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13744 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13745 if test $bu_cv_decl_time_t_types_h = yes; then
13747 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13752 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13753 if ${bu_cv_decl_getopt_unistd_h+:} false
; then :
13754 $as_echo_n "(cached) " >&6
13756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758 #include <unistd.h>
13762 extern int getopt (int, char *const*, const char *);
13767 if ac_fn_c_try_compile
"$LINENO"; then :
13768 bu_cv_decl_getopt_unistd_h
=yes
13770 bu_cv_decl_getopt_unistd_h
=no
13772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13776 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13777 if test $bu_cv_decl_getopt_unistd_h = yes; then
13779 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13783 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13786 $as_echo_n "checking for utime.h... " >&6; }
13787 if ${bu_cv_header_utime_h+:} false
; then :
13788 $as_echo_n "(cached) " >&6
13790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 #include <sys/types.h>
13805 if ac_fn_c_try_compile
"$LINENO"; then :
13806 bu_cv_header_utime_h
=yes
13808 bu_cv_header_utime_h
=no
13810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13814 $as_echo "$bu_cv_header_utime_h" >&6; }
13815 if test $bu_cv_header_utime_h = yes; then
13817 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13821 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13822 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
13828 cat >>confdefs.h
<<_ACEOF
13829 #define HAVE_DECL_ASPRINTF $ac_have_decl
13831 ac_fn_c_check_decl
"$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13832 if test "x$ac_cv_have_decl_environ" = xyes
; then :
13838 cat >>confdefs.h
<<_ACEOF
13839 #define HAVE_DECL_ENVIRON $ac_have_decl
13841 ac_fn_c_check_decl
"$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
13842 if test "x$ac_cv_have_decl_fprintf" = xyes
; then :
13848 cat >>confdefs.h
<<_ACEOF
13849 #define HAVE_DECL_FPRINTF $ac_have_decl
13851 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13852 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
13858 cat >>confdefs.h
<<_ACEOF
13859 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13861 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13862 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
13868 cat >>confdefs.h
<<_ACEOF
13869 #define HAVE_DECL_GETENV $ac_have_decl
13871 ac_fn_c_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13872 if test "x$ac_cv_have_decl_sbrk" = xyes
; then :
13878 cat >>confdefs.h
<<_ACEOF
13879 #define HAVE_DECL_SBRK $ac_have_decl
13881 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13882 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
13888 cat >>confdefs.h
<<_ACEOF
13889 #define HAVE_DECL_SNPRINTF $ac_have_decl
13891 ac_fn_c_check_decl
"$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13892 if test "x$ac_cv_have_decl_stpcpy" = xyes
; then :
13898 cat >>confdefs.h
<<_ACEOF
13899 #define HAVE_DECL_STPCPY $ac_have_decl
13901 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13902 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
13908 cat >>confdefs.h
<<_ACEOF
13909 #define HAVE_DECL_STRNLEN $ac_have_decl
13911 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13912 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13918 cat >>confdefs.h
<<_ACEOF
13919 #define HAVE_DECL_STRSTR $ac_have_decl
13921 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13922 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
13928 cat >>confdefs.h
<<_ACEOF
13929 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13933 # Link in zlib if we can. This allows us to read compressed debug
13934 # sections. This is used only by readelf.c (objdump uses bfd for
13935 # reading compressed sections).
13937 # Use the system's zlib library.
13938 zlibdir
="-L\$(top_builddir)/../zlib"
13939 zlibinc
="-I\$(top_srcdir)/../zlib"
13941 # Check whether --with-system-zlib was given.
13942 if test "${with_system_zlib+set}" = set; then :
13943 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
13956 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
13958 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13962 # target-specific stuff:
13964 # Canonicalize the secondary target names.
13965 if test -n "$enable_targets"; then
13966 for targ
in `echo $enable_targets | sed 's/,/ /g'`
13968 result
=`$ac_config_sub $targ 2>/dev/null`
13969 if test -n "$result"; then
13970 canon_targets
="$canon_targets $result"
13972 # Allow targets that config.sub doesn't recognize, like "all".
13973 canon_targets
="$canon_targets $targ"
13978 ac_fn_c_check_header_mongrel
"$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13979 if test "x$ac_cv_header_iconv_h" = xyes
; then :
13985 if test "X$prefix" = "XNONE"; then
13986 acl_final_prefix
="$ac_default_prefix"
13988 acl_final_prefix
="$prefix"
13990 if test "X$exec_prefix" = "XNONE"; then
13991 acl_final_exec_prefix
='${prefix}'
13993 acl_final_exec_prefix
="$exec_prefix"
13995 acl_save_prefix
="$prefix"
13996 prefix
="$acl_final_prefix"
13997 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
13998 prefix
="$acl_save_prefix"
14001 # Check whether --with-gnu-ld was given.
14002 if test "${with_gnu_ld+set}" = set; then :
14003 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14008 # Prepare PATH_SEPARATOR.
14009 # The user is always right.
14010 if test "${PATH_SEPARATOR+set}" != set; then
14011 echo "#! /bin/sh" >conf$$.sh
14012 echo "exit 0" >>conf$$.sh
14014 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14022 if test "$GCC" = yes; then
14023 # Check if gcc -print-prog-name=ld gives a path.
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14025 $as_echo_n "checking for ld used by GCC... " >&6; }
14028 # gcc leaves a trailing carriage return which upsets mingw
14029 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14031 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14034 # Accept absolute paths.
14035 [\\/]* |
[A-Za-z
]:[\\/]*)
14036 re_direlt
='/[^/][^/]*/\.\./'
14037 # Canonicalize the path of ld
14038 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
14039 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
14040 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
14042 test -z "$LD" && LD
="$ac_prog"
14045 # If it fails, then pretend we aren't using GCC.
14049 # If it is relative, then search for the first ld in PATH.
14050 with_gnu_ld
=unknown
14053 elif test "$with_gnu_ld" = yes; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14055 $as_echo_n "checking for GNU ld... " >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14058 $as_echo_n "checking for non-GNU ld... " >&6; }
14060 if ${acl_cv_path_LD+:} false
; then :
14061 $as_echo_n "(cached) " >&6
14063 if test -z "$LD"; then
14064 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14065 for ac_dir
in $PATH; do
14066 test -z "$ac_dir" && ac_dir
=.
14067 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14068 acl_cv_path_LD
="$ac_dir/$ac_prog"
14069 # Check to see if the program is GNU ld. I'd rather use --version,
14070 # but apparently some GNU ld's only accept -v.
14071 # Break only if it was the GNU/non-GNU ld that we prefer.
14072 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
14073 test "$with_gnu_ld" != no
&& break
14075 test "$with_gnu_ld" != yes && break
14081 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
14085 LD
="$acl_cv_path_LD"
14086 if test -n "$LD"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14088 $as_echo "$LD" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14093 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14096 if ${acl_cv_prog_gnu_ld+:} false
; then :
14097 $as_echo_n "(cached) " >&6
14099 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14100 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
14101 acl_cv_prog_gnu_ld
=yes
14103 acl_cv_prog_gnu_ld
=no
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14107 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14108 with_gnu_ld
=$acl_cv_prog_gnu_ld
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14113 $as_echo_n "checking for shared library run path origin... " >&6; }
14114 if ${acl_cv_rpath+:} false
; then :
14115 $as_echo_n "(cached) " >&6
14118 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
14119 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14121 rm -f .
/conftest.sh
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14126 $as_echo "$acl_cv_rpath" >&6; }
14128 libext
="$acl_cv_libext"
14129 shlibext
="$acl_cv_shlibext"
14130 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
14131 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
14132 hardcode_direct
="$acl_cv_hardcode_direct"
14133 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
14134 # Check whether --enable-rpath was given.
14135 if test "${enable_rpath+set}" = set; then :
14136 enableval
=$enable_rpath; :
14150 acl_save_prefix
="$prefix"
14151 prefix
="$acl_final_prefix"
14152 acl_save_exec_prefix
="$exec_prefix"
14153 exec_prefix
="$acl_final_exec_prefix"
14155 eval additional_includedir
=\"$includedir\"
14156 eval additional_libdir
=\"$libdir\"
14158 exec_prefix
="$acl_save_exec_prefix"
14159 prefix
="$acl_save_prefix"
14162 # Check whether --with-libiconv-prefix was given.
14163 if test "${with_libiconv_prefix+set}" = set; then :
14164 withval
=$with_libiconv_prefix;
14165 if test "X$withval" = "Xno"; then
14168 if test "X$withval" = "X"; then
14170 acl_save_prefix
="$prefix"
14171 prefix
="$acl_final_prefix"
14172 acl_save_exec_prefix
="$exec_prefix"
14173 exec_prefix
="$acl_final_exec_prefix"
14175 eval additional_includedir
=\"$includedir\"
14176 eval additional_libdir
=\"$libdir\"
14178 exec_prefix
="$acl_save_exec_prefix"
14179 prefix
="$acl_save_prefix"
14182 additional_includedir
="$withval/include"
14183 additional_libdir
="$withval/lib"
14194 names_already_handled
=
14195 names_next_round
='iconv '
14196 while test -n "$names_next_round"; do
14197 names_this_round
="$names_next_round"
14199 for name
in $names_this_round; do
14201 for n
in $names_already_handled; do
14202 if test "$n" = "$name"; then
14203 already_handled
=yes
14207 if test -z "$already_handled"; then
14208 names_already_handled
="$names_already_handled $name"
14209 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14210 eval value
=\"\
$HAVE_LIB$uppername\"
14211 if test -n "$value"; then
14212 if test "$value" = yes; then
14213 eval value
=\"\
$LIB$uppername\"
14214 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
14215 eval value
=\"\
$LTLIB$uppername\"
14216 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
14225 if test $use_additional = yes; then
14226 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14227 found_dir
="$additional_libdir"
14228 found_so
="$additional_libdir/lib$name.$shlibext"
14229 if test -f "$additional_libdir/lib$name.la"; then
14230 found_la
="$additional_libdir/lib$name.la"
14233 if test -f "$additional_libdir/lib$name.$libext"; then
14234 found_dir
="$additional_libdir"
14235 found_a
="$additional_libdir/lib$name.$libext"
14236 if test -f "$additional_libdir/lib$name.la"; then
14237 found_la
="$additional_libdir/lib$name.la"
14242 if test "X$found_dir" = "X"; then
14243 for x
in $LDFLAGS $LTLIBICONV; do
14245 acl_save_prefix
="$prefix"
14246 prefix
="$acl_final_prefix"
14247 acl_save_exec_prefix
="$exec_prefix"
14248 exec_prefix
="$acl_final_exec_prefix"
14250 exec_prefix
="$acl_save_exec_prefix"
14251 prefix
="$acl_save_prefix"
14255 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14256 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14258 found_so
="$dir/lib$name.$shlibext"
14259 if test -f "$dir/lib$name.la"; then
14260 found_la
="$dir/lib$name.la"
14263 if test -f "$dir/lib$name.$libext"; then
14265 found_a
="$dir/lib$name.$libext"
14266 if test -f "$dir/lib$name.la"; then
14267 found_la
="$dir/lib$name.la"
14273 if test "X$found_dir" != "X"; then
14278 if test "X$found_dir" != "X"; then
14279 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14280 if test "X$found_so" != "X"; then
14281 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14282 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14285 for x
in $ltrpathdirs; do
14286 if test "X$x" = "X$found_dir"; then
14291 if test -z "$haveit"; then
14292 ltrpathdirs
="$ltrpathdirs $found_dir"
14294 if test "$hardcode_direct" = yes; then
14295 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14297 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14298 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14300 for x
in $rpathdirs; do
14301 if test "X$x" = "X$found_dir"; then
14306 if test -z "$haveit"; then
14307 rpathdirs
="$rpathdirs $found_dir"
14311 for x
in $LDFLAGS $LIBICONV; do
14313 acl_save_prefix
="$prefix"
14314 prefix
="$acl_final_prefix"
14315 acl_save_exec_prefix
="$exec_prefix"
14316 exec_prefix
="$acl_final_exec_prefix"
14318 exec_prefix
="$acl_save_exec_prefix"
14319 prefix
="$acl_save_prefix"
14321 if test "X$x" = "X-L$found_dir"; then
14326 if test -z "$haveit"; then
14327 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14329 if test "$hardcode_minus_L" != no
; then
14330 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14332 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14338 if test "X$found_a" != "X"; then
14339 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
14341 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14344 additional_includedir
=
14345 case "$found_dir" in
14347 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14348 additional_includedir
="$basedir/include"
14351 if test "X$additional_includedir" != "X"; then
14352 if test "X$additional_includedir" != "X/usr/include"; then
14354 if test "X$additional_includedir" = "X/usr/local/include"; then
14355 if test -n "$GCC"; then
14357 linux
*) haveit
=yes;;
14361 if test -z "$haveit"; then
14362 for x
in $CPPFLAGS $INCICONV; do
14364 acl_save_prefix
="$prefix"
14365 prefix
="$acl_final_prefix"
14366 acl_save_exec_prefix
="$exec_prefix"
14367 exec_prefix
="$acl_final_exec_prefix"
14369 exec_prefix
="$acl_save_exec_prefix"
14370 prefix
="$acl_save_prefix"
14372 if test "X$x" = "X-I$additional_includedir"; then
14377 if test -z "$haveit"; then
14378 if test -d "$additional_includedir"; then
14379 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14385 if test -n "$found_la"; then
14386 save_libdir
="$libdir"
14387 case "$found_la" in
14388 */* |
*\\*) .
"$found_la" ;;
14389 *) .
"./$found_la" ;;
14391 libdir
="$save_libdir"
14392 for dep
in $dependency_libs; do
14395 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14396 if test "X$additional_libdir" != "X/usr/lib"; then
14398 if test "X$additional_libdir" = "X/usr/local/lib"; then
14399 if test -n "$GCC"; then
14401 linux
*) haveit
=yes;;
14405 if test -z "$haveit"; then
14407 for x
in $LDFLAGS $LIBICONV; do
14409 acl_save_prefix
="$prefix"
14410 prefix
="$acl_final_prefix"
14411 acl_save_exec_prefix
="$exec_prefix"
14412 exec_prefix
="$acl_final_exec_prefix"
14414 exec_prefix
="$acl_save_exec_prefix"
14415 prefix
="$acl_save_prefix"
14417 if test "X$x" = "X-L$additional_libdir"; then
14422 if test -z "$haveit"; then
14423 if test -d "$additional_libdir"; then
14424 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14428 for x
in $LDFLAGS $LTLIBICONV; do
14430 acl_save_prefix
="$prefix"
14431 prefix
="$acl_final_prefix"
14432 acl_save_exec_prefix
="$exec_prefix"
14433 exec_prefix
="$acl_final_exec_prefix"
14435 exec_prefix
="$acl_save_exec_prefix"
14436 prefix
="$acl_save_prefix"
14438 if test "X$x" = "X-L$additional_libdir"; then
14443 if test -z "$haveit"; then
14444 if test -d "$additional_libdir"; then
14445 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14452 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14453 if test "$enable_rpath" != no
; then
14455 for x
in $rpathdirs; do
14456 if test "X$x" = "X$dir"; then
14461 if test -z "$haveit"; then
14462 rpathdirs
="$rpathdirs $dir"
14465 for x
in $ltrpathdirs; do
14466 if test "X$x" = "X$dir"; then
14471 if test -z "$haveit"; then
14472 ltrpathdirs
="$ltrpathdirs $dir"
14477 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14480 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14483 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
14484 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14490 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14491 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14497 if test "X$rpathdirs" != "X"; then
14498 if test -n "$hardcode_libdir_separator"; then
14500 for found_dir
in $rpathdirs; do
14501 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14503 acl_save_libdir
="$libdir"
14505 eval flag
=\"$hardcode_libdir_flag_spec\"
14506 libdir
="$acl_save_libdir"
14507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14509 for found_dir
in $rpathdirs; do
14510 acl_save_libdir
="$libdir"
14511 libdir
="$found_dir"
14512 eval flag
=\"$hardcode_libdir_flag_spec\"
14513 libdir
="$acl_save_libdir"
14514 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14518 if test "X$ltrpathdirs" != "X"; then
14519 for found_dir
in $ltrpathdirs; do
14520 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14531 $as_echo_n "checking for iconv... " >&6; }
14532 if ${am_cv_func_iconv+:} false
; then :
14533 $as_echo_n "(cached) " >&6
14536 am_cv_func_iconv
="no, consider installing GNU libiconv"
14538 am_save_CPPFLAGS
="$CPPFLAGS"
14539 CPPFLAGS
="$CPPFLAGS $INCICONV"
14540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <stdlib.h>
14547 iconv_t cd = iconv_open("","");
14548 iconv(cd,NULL,NULL,NULL,NULL);
14554 if ac_fn_c_try_link
"$LINENO"; then :
14555 am_cv_func_iconv
=yes
14557 rm -f core conftest.err conftest.
$ac_objext \
14558 conftest
$ac_exeext conftest.
$ac_ext
14559 CPPFLAGS
="$am_save_CPPFLAGS"
14561 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
14562 for _libs
in .libs _libs
; do
14563 am_save_CPPFLAGS
="$CPPFLAGS"
14564 am_save_LIBS
="$LIBS"
14565 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
14566 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 #include <stdlib.h>
14574 iconv_t cd = iconv_open("","");
14575 iconv(cd,NULL,NULL,NULL,NULL);
14581 if ac_fn_c_try_link
"$LINENO"; then :
14582 INCICONV
="-I../libiconv/include"
14583 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
14584 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
14585 am_cv_lib_iconv
=yes
14586 am_cv_func_iconv
=yes
14588 rm -f core conftest.err conftest.
$ac_objext \
14589 conftest
$ac_exeext conftest.
$ac_ext
14590 CPPFLAGS
="$am_save_CPPFLAGS"
14591 LIBS
="$am_save_LIBS"
14592 if test "$am_cv_func_iconv" = "yes"; then
14598 if test "$am_cv_func_iconv" != yes; then
14599 am_save_CPPFLAGS
="$CPPFLAGS"
14600 am_save_LIBS
="$LIBS"
14601 CPPFLAGS
="$LIBS $INCICONV"
14602 LIBS
="$LIBS $LIBICONV"
14603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605 #include <stdlib.h>
14610 iconv_t cd = iconv_open("","");
14611 iconv(cd,NULL,NULL,NULL,NULL);
14617 if ac_fn_c_try_link
"$LINENO"; then :
14618 am_cv_lib_iconv
=yes
14619 am_cv_func_iconv
=yes
14621 rm -f core conftest.err conftest.
$ac_objext \
14622 conftest
$ac_exeext conftest.
$ac_ext
14623 CPPFLAGS
="$am_save_CPPFLAGS"
14624 LIBS
="$am_save_LIBS"
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14629 $as_echo "$am_cv_func_iconv" >&6; }
14630 if test "$am_cv_func_iconv" = yes; then
14632 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14635 if test "$am_cv_lib_iconv" = yes; then
14637 for element
in $INCICONV; do
14639 for x
in $CPPFLAGS; do
14641 acl_save_prefix
="$prefix"
14642 prefix
="$acl_final_prefix"
14643 acl_save_exec_prefix
="$exec_prefix"
14644 exec_prefix
="$acl_final_exec_prefix"
14646 exec_prefix
="$acl_save_exec_prefix"
14647 prefix
="$acl_save_prefix"
14649 if test "X$x" = "X$element"; then
14654 if test -z "$haveit"; then
14655 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14660 $as_echo_n "checking how to link with libiconv... " >&6; }
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14662 $as_echo "$LIBICONV" >&6; }
14670 if test "$am_cv_func_iconv" = yes; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14672 $as_echo_n "checking for iconv declaration... " >&6; }
14673 if ${am_cv_proto_iconv+:} false
; then :
14674 $as_echo_n "(cached) " >&6
14677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14680 #include <stdlib.h>
14686 #if defined(__STDC__) || defined(__cplusplus)
14687 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14700 if ac_fn_c_try_compile
"$LINENO"; then :
14701 am_cv_proto_iconv_arg1
=""
14703 am_cv_proto_iconv_arg1
="const"
14705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14706 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14709 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14711 }$am_cv_proto_iconv" >&5
14713 }$am_cv_proto_iconv" >&6; }
14715 cat >>confdefs.h
<<_ACEOF
14716 #define ICONV_CONST $am_cv_proto_iconv_arg1
14731 BUILD_INSTALL_MISC
=
14733 OBJDUMP_PRIVATE_VECTORS
=
14734 OBJDUMP_PRIVATE_OFILES
=
14737 for targ
in $target $canon_targets
14739 if test "x$targ" = "xall"; then
14741 BUILD_SRCONV
='$(SRCONV_PROG)'
14742 BUILD_MISC
="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14743 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14744 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14745 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14746 if test -z "$DLLTOOL_DEFAULT"; then
14747 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_I386"
14749 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
14750 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
14751 od_vectors
="$od_vectors objdump_private_desc_xcoff"
14754 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
14758 arm-wince-pe
* | arm-
*-wince | arm
*-*-cegcc* | arm
*-*-mingw32ce*)
14759 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14760 if test -z "$DLLTOOL_DEFAULT"; then
14761 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_ARM_WINCE"
14763 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14764 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14765 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14768 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14769 if test -z "$DLLTOOL_DEFAULT"; then
14770 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_ARM"
14772 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14773 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14774 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14776 x86_64-
*-mingw* | x86_64-
*-cygwin*)
14777 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14778 if test -z "$DLLTOOL_DEFAULT"; then
14779 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MX86_64"
14781 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14782 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14783 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14784 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
14786 i
[3-7]86-*-pe* | i
[3-7]86-*-cygwin* | i
[3-7]86-*-mingw32** | i
[3-7]86-*-netbsdpe*)
14787 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14788 if test -z "$DLLTOOL_DEFAULT"; then
14789 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_I386"
14791 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
14792 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14793 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14794 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
14796 i
[3-7]86-*-interix)
14797 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
14798 if test -z "$DLLTOOL_DEFAULT"; then
14799 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_I386"
14801 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
14803 powerpc
*-aix5.
[01])
14805 powerpc
*-aix[5-9].
*)
14806 OBJDUMP_DEFS
="-DAIX_WEAK_SUPPORT"
14808 powerpc
*-*-pe* | powerpc
*-*-cygwin*)
14809 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14810 if test -z "$DLLTOOL_DEFAULT"; then
14811 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_PPC"
14813 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14814 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14815 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14817 powerpc
*-*-linux* | powerpc
*-*-elf* | powerpc
*-*-eabi*)
14818 case "$BUILD_INSTALL_MISC" in
14820 *) BUILD_INSTALL_MISC
="${BUILD_INSTALL_MISC} embedspu"
14824 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14825 if test -z "$DLLTOOL_DEFAULT"; then
14826 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_SH"
14828 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_SH"
14829 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14830 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14833 BUILD_MISC
="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14836 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14837 if test -z "$DLLTOOL_DEFAULT"; then
14838 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MIPS"
14840 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14841 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14842 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14845 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14846 if test -z "$DLLTOOL_DEFAULT"; then
14847 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MCORE"
14849 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14850 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14851 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14854 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
14855 if test -z "$DLLTOOL_DEFAULT"; then
14856 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MCORE_ELF"
14858 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14861 OBJDUMP_DEFS
="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14865 # Add objdump private vectors.
14868 od_vectors
="$od_vectors objdump_private_desc_elf32_avr"
14870 powerpc
*-*-aix* | rs6000-
*-aix*)
14871 od_vectors
="$od_vectors objdump_private_desc_xcoff"
14874 od_vectors
="$od_vectors objdump_private_desc_mach_o"
14880 # Uniq objdump private vector, build objdump target ofiles.
14883 for i
in $od_vectors ; do
14888 OBJDUMP_PRIVATE_VECTORS
="$OBJDUMP_PRIVATE_VECTORS &$i,"
14890 objdump_private_desc_elf32_avr
)
14891 od_files
="$od_files od-elf32_avr" ;;
14892 objdump_private_desc_xcoff
)
14893 od_files
="$od_files od-xcoff" ;;
14894 objdump_private_desc_mach_o
)
14895 od_files
="$od_files od-macho" ;;
14896 *) as_fn_error $?
"*** unknown private vector $i" "$LINENO" 5 ;;
14902 # Uniq objdump target ofiles
14904 for i
in $od_files ; do
14909 OBJDUMP_PRIVATE_OFILES
="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14914 DLLTOOL_DEFS
="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14916 if test "${with_windres+set}" = set; then
14917 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
14920 if test "${with_windmc+set}" = set; then
14921 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
14924 OBJDUMP_DEFS
="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14938 cat >>confdefs.h
<<_ACEOF
14939 #define TARGET "${target}"
14944 .
$srcdir/..
/bfd
/config.bfd
14945 if test "x$targ_underscore" = "xyes"; then
14951 cat >>confdefs.h
<<_ACEOF
14952 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14958 .
${srcdir}/configure.tgt
14959 EMULATION
=$targ_emul
14960 EMULATION_VECTOR
=$targ_emul_vector
14965 # Required for html and install-html
14971 ac_config_files
="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14973 cat >confcache
<<\_ACEOF
14974 # This file is a shell script that caches the results of configure
14975 # tests run on this system so they can be shared between configure
14976 # scripts and configure runs, see configure's option --config-cache.
14977 # It is not useful on other systems. If it contains results you don't
14978 # want to keep, you may remove or edit it.
14980 # config.status only pays attention to the cache file if you give it
14981 # the --recheck option to rerun configure.
14983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14985 # following values.
14989 # The following way of writing the cache mishandles newlines in values,
14990 # but we know of no workaround that is simple, portable, and efficient.
14991 # So, we kill variables containing newlines.
14992 # Ultrix sh set writes to stderr and can't be redirected directly,
14993 # and sets the high bit in the cache file unless we assign to the vars.
14995 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14996 eval ac_val
=\$
$ac_var
15000 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15004 _ | IFS | as_nl
) ;; #(
15005 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15006 *) { eval $ac_var=; unset $ac_var;} ;;
15012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15013 *${as_nl}ac_space
=\
*)
15014 # `set' does not quote correctly, so add quotes: double-quote
15015 # substitution turns \\\\ into \\, and sed turns \\ into \.
15018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15021 # `set' quotes correctly as required by POSIX, so do not add quotes.
15022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15035 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15036 if test -w "$cache_file"; then
15037 if test "x$cache_file" != "x/dev/null"; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15039 $as_echo "$as_me: updating cache $cache_file" >&6;}
15040 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15041 cat confcache
>"$cache_file"
15043 case $cache_file in #(
15045 mv -f confcache
"$cache_file"$$
&&
15046 mv -f "$cache_file"$$
"$cache_file" ;; #(
15048 mv -f confcache
"$cache_file" ;;
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15054 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15059 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15060 # Let make expand exec_prefix.
15061 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15063 DEFS
=-DHAVE_CONFIG_H
15068 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15069 # 1. Remove the extension, and $U if already installed.
15070 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15071 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15073 # will be set to the directory where LIBOBJS objects are built.
15074 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15075 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15077 LIBOBJS
=$ac_libobjs
15079 LTLIBOBJS
=$ac_ltlibobjs
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15083 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15084 if test -n "$am_sleep_pid"; then
15085 # Hide warnings about reused PIDs.
15086 wait $am_sleep_pid 2>/dev
/null
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15089 $as_echo "done" >&6; }
15090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15091 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15095 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 if test -n "$EXEEXT"; then
15100 am__EXEEXT_FALSE
='#'
15102 am__EXEEXT_TRUE
='#'
15106 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15107 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15111 as_fn_error $?
"conditional \"GENINSRC_NEVER\" was never defined.
15112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 : "${CONFIG_STATUS=./config.status}"
15117 ac_clean_files_save
=$ac_clean_files
15118 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15124 # Generated by $as_me.
15125 # Run this file to recreate the current configuration.
15126 # Compiler output produced by configure, useful for debugging
15127 # configure, is in config.log if it exists.
15130 ac_cs_recheck=false
15133 SHELL=\${CONFIG_SHELL-$SHELL}
15136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15137 ## -------------------- ##
15138 ## M4sh Initialization. ##
15139 ## -------------------- ##
15141 # Be more Bourne compatible
15142 DUALCASE
=1; export DUALCASE
# for MKS sh
15143 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15147 # is contrary to our usage. Disable this feature.
15148 alias -g '${1+"$@"}'='"$@"'
15149 setopt NO_GLOB_SUBST
15151 case `(set -o) 2>/dev/null` in #(
15163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15164 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15167 # Prefer a ksh shell builtin over an external printf program on Solaris,
15168 # but without wasting forks for bash or zsh.
15169 if test -z "$BASH_VERSION$ZSH_VERSION" \
15170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15171 as_echo='print
-r --'
15172 as_echo_n='print
-rn --'
15173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15174 as_echo='printf %s
\n'
15175 as_echo_n='printf %s
'
15177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15178 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15179 as_echo_n='/usr
/ucb
/echo -n'
15181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15182 as_echo_n_body='eval
15186 expr "X$arg" : "X\\(.*\\)$as_nl";
15187 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15189 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15191 export as_echo_n_body
15192 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15194 export as_echo_body
15195 as_echo='sh
-c $as_echo_body as_echo
'
15198 # The user is always right.
15199 if test "${PATH_SEPARATOR+set}" != set; then
15201 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15202 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15209 # We need space, tab and new line, in precisely that order. Quoting is
15210 # there to prevent editors from complaining about space-tab.
15211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15212 # splitting by setting IFS to empty value.)
15215 # Find who we are. Look in the path if we contain no directory separator.
15218 *[\\/]* ) as_myself=$0 ;;
15219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220 for as_dir in $PATH
15223 test -z "$as_dir" && as_dir=.
15224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15230 # We did not find ourselves, most probably we were run as `sh COMMAND'
15231 # in which case we are not to be found in the path.
15232 if test "x$as_myself" = x
; then
15235 if test ! -f "$as_myself"; then
15236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15240 # Unset variables that we do not need and which cause bugs (e.g. in
15241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15242 # suppresses any "Segmentation fault" message there. '((' could
15243 # trigger a bug in pdksh 5.2.14.
15244 for as_var
in BASH_ENV ENV MAIL MAILPATH
15245 do eval test x\
${$as_var+set} = xset \
15246 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15259 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15262 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15263 # ----------------------------------------
15264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15266 # script with STATUS, using 1 if that was 0.
15269 as_status
=$1; test $as_status -eq 0 && as_status
=1
15271 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15274 $as_echo "$as_me: error: $2" >&2
15275 as_fn_exit
$as_status
15279 # as_fn_set_status STATUS
15280 # -----------------------
15281 # Set $? to STATUS, without forking.
15282 as_fn_set_status
()
15285 } # as_fn_set_status
15287 # as_fn_exit STATUS
15288 # -----------------
15289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15293 as_fn_set_status
$1
15299 # Portably unset VAR.
15302 { eval $1=; unset $1;}
15304 as_unset
=as_fn_unset
15305 # as_fn_append VAR VALUE
15306 # ----------------------
15307 # Append the text in VALUE to the end of the definition contained in VAR. Take
15308 # advantage of any shell optimizations that allow amortized linear growth over
15309 # repeated appends, instead of the typical quadratic growth present in naive
15311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15312 eval 'as_fn_append ()
15323 # as_fn_arith ARG...
15324 # ------------------
15325 # Perform arithmetic evaluation on the ARGs, and store the result in the
15326 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15327 # must be portable across $(()) and expr.
15328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15329 eval 'as_fn_arith ()
15336 as_val
=`expr "$@" || test $? -eq 1`
15341 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15342 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15348 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15349 as_basename
=basename
15354 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15360 as_me
=`$as_basename -- "$0" ||
15361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15362 X"$0" : 'X\(//\)$' \| \
15363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15365 sed '/^.*\/\([^/][^/]*\)\/*$/{
15379 # Avoid depending upon Character Ranges.
15380 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15381 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15382 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15383 as_cr_digits
='0123456789'
15384 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15386 ECHO_C
= ECHO_N
= ECHO_T
=
15387 case `echo -n x` in #(((((
15389 case `echo 'xy\c'` in
15390 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15392 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15399 rm -f conf$$ conf$$.exe conf$$.
file
15400 if test -d conf$$.dir
; then
15401 rm -f conf$$.dir
/conf$$.
file
15404 mkdir conf$$.dir
2>/dev
/null
15406 if (echo >conf$$.
file) 2>/dev
/null
; then
15407 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15409 # ... but there are two gotchas:
15410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15412 # In both cases, we have to default to `cp -pR'.
15413 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15415 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15423 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15424 rmdir conf$$.dir
2>/dev
/null
15429 # Create "$as_dir" as a directory, including parents if necessary.
15434 -*) as_dir
=.
/$as_dir;;
15436 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15440 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15441 *) as_qdir
=$as_dir;;
15443 as_dirs
="'$as_qdir' $as_dirs"
15444 as_dir
=`$as_dirname -- "$as_dir" ||
15445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15446 X"$as_dir" : 'X\(//\)[^/]' \| \
15447 X"$as_dir" : 'X\(//\)$' \| \
15448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15449 $as_echo X"$as_dir" |
15450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15454 /^X\(\/\/\)[^/].*/{
15467 test -d "$as_dir" && break
15469 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15470 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15474 if mkdir
-p .
2>/dev
/null
; then
15475 as_mkdir_p
='mkdir -p "$as_dir"'
15477 test -d .
/-p && rmdir .
/-p
15482 # as_fn_executable_p FILE
15483 # -----------------------
15484 # Test if FILE is an executable regular file.
15485 as_fn_executable_p
()
15487 test -f "$1" && test -x "$1"
15488 } # as_fn_executable_p
15489 as_test_x
='test -x'
15490 as_executable_p
=as_fn_executable_p
15492 # Sed expression to map a string onto a valid CPP name.
15493 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15495 # Sed expression to map a string onto a valid variable name.
15496 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15500 ## ----------------------------------- ##
15501 ## Main body of $CONFIG_STATUS script. ##
15502 ## ----------------------------------- ##
15504 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15507 # Save the log message, to keep $0 and so on meaningful, and to
15508 # report actual input values of CONFIG_FILES etc. instead of their
15509 # values after options handling.
15511 This file was extended by binutils $as_me 2.31.51, which was
15512 generated by GNU Autoconf 2.69. Invocation command line was
15514 CONFIG_FILES = $CONFIG_FILES
15515 CONFIG_HEADERS = $CONFIG_HEADERS
15516 CONFIG_LINKS = $CONFIG_LINKS
15517 CONFIG_COMMANDS = $CONFIG_COMMANDS
15520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15525 case $ac_config_files in *"
15526 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15529 case $ac_config_headers in *"
15530 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 # Files that config.status was made for.
15536 config_files="$ac_config_files"
15537 config_headers="$ac_config_headers"
15538 config_commands="$ac_config_commands"
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15544 \`$as_me' instantiates files and other configuration actions
15545 from templates according to the current configuration. Unless the files
15546 and actions are specified as TAGs, all are instantiated by default.
15548 Usage: $0 [OPTION]... [TAG]...
15550 -h, --help print this help, then exit
15551 -V, --version print version number and configuration settings, then exit
15552 --config print configuration, then exit
15553 -q, --quiet, --silent
15554 do not print progress messages
15555 -d, --debug don't remove temporary files
15556 --recheck update $as_me by reconfiguring in the same conditions
15557 --file=FILE[:TEMPLATE]
15558 instantiate the configuration file FILE
15559 --header=FILE[:TEMPLATE]
15560 instantiate the configuration header FILE
15562 Configuration files:
15565 Configuration headers:
15568 Configuration commands:
15571 Report bugs to the package provider."
15574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15577 binutils config.status 2.31.51
15578 configured by $0, generated by GNU Autoconf 2.69,
15579 with options \\"\$ac_cs_config\\"
15581 Copyright (C) 2012 Free Software Foundation, Inc.
15582 This config.status script is free software; the Free Software Foundation
15583 gives unlimited permission to copy, distribute and modify it."
15590 test -n "\$AWK" || AWK=awk
15593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15594 # The default lists apply if the user does not specify any file.
15600 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15601 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15605 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15617 # Handling of the options.
15618 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15620 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15621 $as_echo "$ac_cs_version"; exit ;;
15622 --config |
--confi |
--conf |
--con |
--co |
--c )
15623 $as_echo "$ac_cs_config"; exit ;;
15624 --debug |
--debu |
--deb |
--de |
--d |
-d )
15626 --file |
--fil |
--fi |
--f )
15629 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15630 '') as_fn_error $?
"missing file argument" ;;
15632 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15633 ac_need_defaults
=false
;;
15634 --header |
--heade |
--head |
--hea )
15637 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15639 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15640 ac_need_defaults
=false
;;
15642 # Conflict between --help and --header
15643 as_fn_error $?
"ambiguous option: \`$1'
15644 Try \`$0 --help' for more information.";;
15645 --help |
--hel |
-h )
15646 $as_echo "$ac_cs_usage"; exit ;;
15647 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15648 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15651 # This is an error.
15652 -*) as_fn_error $?
"unrecognized option: \`$1'
15653 Try \`$0 --help' for more information." ;;
15655 *) as_fn_append ac_config_targets
" $1"
15656 ac_need_defaults
=false
;;
15662 ac_configure_extra_args
=
15664 if $ac_cs_silent; then
15666 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671 if \$ac_cs_recheck; then
15672 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15675 CONFIG_SHELL='$SHELL'
15676 export CONFIG_SHELL
15681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15686 ## Running $as_me. ##
15692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15699 # The HP-UX ksh and POSIX shell print the target directory to stdout
15700 # if CDPATH is set.
15701 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15703 sed_quote_subst='$sed_quote_subst'
15704 double_quote_subst='$double_quote_subst'
15705 delay_variable_subst='$delay_variable_subst'
15706 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15707 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15708 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15709 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15710 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15711 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15712 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15713 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15714 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15715 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15716 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15717 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15718 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15719 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15720 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15721 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15722 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15723 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15724 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15725 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15726 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15727 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15728 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15729 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15730 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15731 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15732 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15733 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15734 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15735 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15736 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15737 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15738 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15739 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15740 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15741 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15742 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15743 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15744 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15745 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15746 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15747 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15748 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15749 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15750 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15751 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15752 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15753 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15754 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"`'
15755 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15756 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15757 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15758 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15759 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15760 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15761 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15762 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15763 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15764 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15765 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15766 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15767 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15768 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15769 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15770 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15771 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15772 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15773 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15774 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15775 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15776 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15777 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15778 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15779 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15780 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15781 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15782 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15783 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15784 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15785 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15786 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15787 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15788 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15789 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15790 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15791 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15792 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15793 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15794 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15795 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15796 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15797 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15798 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15799 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15800 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15801 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15802 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15803 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15804 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15805 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15806 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15807 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15808 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15809 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15810 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15811 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15812 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15813 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15814 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15815 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15816 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15817 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15818 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15819 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15820 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15821 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15822 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15823 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15824 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15825 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15828 LTCFLAGS='$LTCFLAGS'
15829 compiler='$compiler_DEFAULT'
15831 # A function that is used when there is no print builtin or printf.
15832 func_fallback_echo ()
15834 eval 'cat <<_LTECHO_EOF
15839 # Quote evaled strings.
15853 deplibs_check_method \
15862 lt_cv_sys_global_symbol_pipe \
15863 lt_cv_sys_global_symbol_to_cdecl \
15864 lt_cv_sys_global_symbol_to_c_name_address \
15865 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15866 lt_prog_compiler_no_builtin_flag \
15867 lt_prog_compiler_wl \
15868 lt_prog_compiler_pic \
15869 lt_prog_compiler_static \
15870 lt_cv_prog_compiler_c_o \
15878 export_dynamic_flag_spec \
15879 whole_archive_flag_spec \
15880 compiler_needs_object \
15882 allow_undefined_flag \
15883 no_undefined_flag \
15884 hardcode_libdir_flag_spec \
15885 hardcode_libdir_flag_spec_ld \
15886 hardcode_libdir_separator \
15891 variables_saved_for_relink \
15893 library_names_spec \
15895 install_override_mode \
15899 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15900 *[\\\\\\\`\\"\\\$]*)
15901 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15904 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15909 # Double-quote double-evaled strings.
15910 for var in reload_cmds \
15911 old_postinstall_cmds \
15912 old_postuninstall_cmds \
15914 extract_expsyms_cmds \
15915 old_archive_from_new_cmds \
15916 old_archive_from_expsyms_cmds \
15918 archive_expsym_cmds \
15920 module_expsym_cmds \
15921 export_symbols_cmds \
15924 postuninstall_cmds \
15926 sys_lib_search_path_spec \
15927 sys_lib_dlsearch_path_spec; do
15928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15929 *[\\\\\\\`\\"\\\$]*)
15930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15938 ac_aux_dir='$ac_aux_dir'
15939 xsi_shell='$xsi_shell'
15940 lt_shell_append='$lt_shell_append'
15942 # See if we are running on zsh, and set the options which allow our
15943 # commands through without removal of \ escapes INIT.
15944 if test -n "\${ZSH_VERSION+set}" ; then
15945 setopt NO_GLOB_SUBST
15951 TIMESTAMP='$TIMESTAMP'
15957 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15958 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15960 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15961 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15962 LINGUAS="${LINGUAS-%UNSET%}"
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15969 # Handling of arguments.
15970 for ac_config_target
in $ac_config_targets
15972 case $ac_config_target in
15973 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15974 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15975 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
15976 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
15977 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15978 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
15979 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15981 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15986 # If the user did not use the arguments to specify the items to instantiate,
15987 # then the envvar interface is used. Set only those that are not.
15988 # We use the long form for the default assignment because of an extremely
15989 # bizarre bug on SunOS 4.1.3.
15990 if $ac_need_defaults; then
15991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15996 # Have a temporary directory for convenience. Make it in the build tree
15997 # simply because there is no reason against having it here, and in addition,
15998 # creating and moving files from /tmp can sometimes cause problems.
15999 # Hook for its removal unless debugging.
16000 # Note that there is a small window in which the directory will not be cleaned:
16001 # after its creation but before its name has been assigned to `$tmp'.
16005 trap 'exit_status=$?
16006 : "${ac_tmp:=$tmp}"
16007 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16009 trap 'as_fn_exit 1' 1 2 13 15
16011 # Create a (secure) tmp directory for tmp files.
16014 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16018 tmp
=.
/conf$$
-$RANDOM
16019 (umask 077 && mkdir
"$tmp")
16020 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16023 # Set up the scripts for CONFIG_FILES section.
16024 # No need to generate them if there are no CONFIG_FILES.
16025 # This happens for instance with `./config.status config.h'.
16026 if test -n "$CONFIG_FILES"; then
16029 ac_cr
=`echo X | tr X '\015'`
16030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16031 # But we know of no other shell where ac_cr would be empty at this
16032 # point, so we can use a bashism as a fallback.
16033 if test "x$ac_cr" = x
; then
16034 eval ac_cr
=\$
\'\\r
\'
16036 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16040 ac_cs_awk_cr
=$ac_cr
16043 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16048 echo "cat >conf$$subs.awk <<_ACEOF" &&
16049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16051 } >conf$$subs.sh ||
16052 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16055 for ac_last_try in false false false false false :; do
16056 . ./conf$$subs.sh ||
16057 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16059 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16060 if test $ac_delim_n = $ac_delim_num; then
16062 elif $ac_last_try; then
16063 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16065 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16068 rm -f conf$$subs.sh
16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16075 s/^/S["/; s
/!.
*/"]=/
16085 s/\(.\{148\}\)..*/\1/
16087 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16092 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16099 s/\(.\{148\}\)..*/\1/
16101 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16105 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16110 ' <conf$$subs.awk | sed '
16115 ' >>$CONFIG_STATUS || ac_write_fail=1
16116 rm -f conf$$subs.awk
16117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16119 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16120 for (key in S) S_is_set[key] = 1
16126 nfields = split(line, field, "@
")
16128 len = length(field[1])
16129 for (i = 2; i < nfields; i++) {
16131 keylen = length(key)
16132 if (S_is_set[key]) {
16134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16135 len += length(value) + length(field[++i])
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16148 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16151 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16152 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16157 # trailing colons and then remove the whole line if VPATH becomes empty
16158 # (actually we leave an empty line to preserve line numbers).
16159 if test "x
$srcdir" = x.; then
16160 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179 fi # test -n "$CONFIG_FILES"
16181 # Set up the scripts for CONFIG_HEADERS section.
16182 # No need to generate them if there are no CONFIG_HEADERS.
16183 # This happens for instance with `./config.status Makefile'.
16184 if test -n "$CONFIG_HEADERS"; then
16185 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16189 # Transform confdefs.h into an awk script `defines.awk', embedded as
16190 # here-document in config.status, that substitutes the proper values into
16191 # config.h.in to produce config.h.
16193 # Create a delimiter string that does not exist in confdefs.h, to ease
16194 # handling of long lines.
16196 for ac_last_try in false false :; do
16197 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16198 if test -z "$ac_tt"; then
16200 elif $ac_last_try; then
16201 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16203 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16207 # For the awk script, D is an array of macro values keyed by name,
16208 # likewise P contains macro parameters if any. Preserve backslash
16209 # newline sequences.
16211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16213 s/.\{148\}/&'"$ac_delim"'/g
16216 s/^[ ]*#[ ]*define[ ][ ]*/ /
16223 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16225 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16230 D["\
1"]=" \
3\\\\\\n
"\\/p
16232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16237 s/.\{148\}/&'"$ac_delim"'/g
16242 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16245 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16247 ' <confdefs.h | sed '
16248 s/'"$ac_delim"'/"\\\
16249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16252 for (key in D) D_is_set[key] = 1
16255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16257 split(line, arg, " ")
16258 if (arg[1] == "#") {
16262 defundef
= substr
(arg
[1], 2)
16265 split(mac1
, mac2
, "(") #)
16267 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16268 if (D_is_set
[macro
]) {
16269 # Preserve the white space surrounding the "#".
16270 print prefix
"define", macro P
[macro
] D
[macro
]
16273 # Replace #undef with comments. This is necessary, for example,
16274 # in the case of _POSIX_SOURCE, which is predefined and required
16275 # on some systems where configure will not decide to define it.
16276 if (defundef
== "undef") {
16277 print
"/*", prefix defundef
, macro
, "*/"
16285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16286 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16287 fi # test -n "$CONFIG_HEADERS"
16290 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16295 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16297 case $ac_mode$ac_tag in
16299 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16300 :[FH
]-) ac_tag
=-:-;;
16301 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16318 -) ac_f
="$ac_tmp/stdin";;
16319 *) # Look for the file first in the build tree, then in the source tree
16320 # (if the path is not absolute). The absolute path cannot be DOS-style,
16321 # because $ac_f cannot contain `:'.
16325 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16327 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16329 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16330 as_fn_append ac_file_inputs
" '$ac_f'"
16333 # Let's still pretend it is `configure' which instantiates (i.e., don't
16334 # use $as_me), people would be surprised to read:
16335 # /* config.h. Generated by config.status. */
16336 configure_input
='Generated from '`
16337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16339 if test x
"$ac_file" != x-
; then
16340 configure_input
="$ac_file. $configure_input"
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16342 $as_echo "$as_me: creating $ac_file" >&6;}
16344 # Neutralize special characters interpreted by sed in replacement strings.
16345 case $configure_input in #(
16346 *\
&* |
*\|
* |
*\\* )
16347 ac_sed_conf_input
=`$as_echo "$configure_input" |
16348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16349 *) ac_sed_conf_input
=$configure_input;;
16353 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16354 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16359 ac_dir
=`$as_dirname -- "$ac_file" ||
16360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361 X"$ac_file" : 'X\(//\)[^/]' \| \
16362 X"$ac_file" : 'X\(//\)$' \| \
16363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16364 $as_echo X"$ac_file" |
16365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16369 /^X\(\/\/\)[^/].*/{
16382 as_dir
="$ac_dir"; as_fn_mkdir_p
16386 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16388 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16389 # A ".." for each directory in $ac_dir_suffix.
16390 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16391 case $ac_top_builddir_sub in
16392 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16393 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16396 ac_abs_top_builddir
=$ac_pwd
16397 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16398 # for backward compatibility:
16399 ac_top_builddir
=$ac_top_build_prefix
16402 .
) # We are building in place.
16404 ac_top_srcdir
=$ac_top_builddir_sub
16405 ac_abs_top_srcdir
=$ac_pwd ;;
16406 [\\/]* | ?
:[\\/]* ) # Absolute name.
16407 ac_srcdir
=$srcdir$ac_dir_suffix;
16408 ac_top_srcdir
=$srcdir
16409 ac_abs_top_srcdir
=$srcdir ;;
16410 *) # Relative name.
16411 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16412 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16413 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16415 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16425 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16426 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16428 ac_MKDIR_P
=$MKDIR_P
16430 [\\/$
]* | ?
:[\\/]* ) ;;
16431 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16436 # If the template does not know about datarootdir, expand it.
16437 # FIXME: This hack should be removed a few years after 2.60.
16438 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16450 *datarootdir
*) ac_datarootdir_seen
=yes;;
16451 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16456 ac_datarootdir_hack='
16457 s&@datadir@&$datadir&g
16458 s&@docdir@&$docdir&g
16459 s&@infodir@&$infodir&g
16460 s&@localedir@&$localedir&g
16461 s&@mandir@&$mandir&g
16462 s&\\\${datarootdir}&$datarootdir&g' ;;
16466 # Neutralize VPATH when `$srcdir' = `.'.
16467 # Shell code in configure.ac might set extrasub.
16468 # FIXME: do we really want to maintain this feature?
16469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16470 ac_sed_extra="$ac_vpsub
16473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16475 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16476 s|@configure_input@|
$ac_sed_conf_input|
;t t
16477 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16478 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16479 s
&@srcdir@
&$ac_srcdir&;t t
16480 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16481 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16482 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16483 s
&@builddir@
&$ac_builddir&;t t
16484 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16485 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16486 s
&@INSTALL@
&$ac_INSTALL&;t t
16487 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16488 $ac_datarootdir_hack
16490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16491 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16494 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16496 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16498 which seems to be undefined. Please make sure it is defined" >&5
16499 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16500 which seems to be undefined. Please make sure it is defined" >&2;}
16502 rm -f "$ac_tmp/stdin"
16504 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16505 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16513 if test x"$ac_file" != x-; then
16515 $as_echo "/* $configure_input */" \
16516 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16517 } >"$ac_tmp/config.h" \
16518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16519 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16521 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16524 mv "$ac_tmp/config.h" "$ac_file" \
16525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16528 $as_echo "/* $configure_input */" \
16529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16530 || as_fn_error $? "could not create -" "$LINENO" 5
16532 # Compute "$ac_file"'s index
in $config_headers.
16535 for _am_header
in $config_headers :; do
16536 case $_am_header in
16537 $_am_arg |
$_am_arg:* )
16540 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16543 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16544 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16545 X"$_am_arg" : 'X\(//\)[^/]' \| \
16546 X"$_am_arg" : 'X\(//\)$' \| \
16547 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16548 $as_echo X"$_am_arg" |
16549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16553 /^X\(\/\/\)[^/].*/{
16565 s/.*/./; q'`/stamp-h
$_am_stamp_count
16568 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16569 $as_echo "$as_me: executing $ac_file commands" >&6;}
16574 case $ac_file$ac_mode in
16575 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16576 # Older Autoconf quotes --file arguments for eval, but not when files
16577 # are listed without --file. Let's play safe and only enable the eval
16578 # if we detect the quoting.
16579 case $CONFIG_FILES in
16580 *\'*) eval set x
"$CONFIG_FILES" ;;
16581 *) set x
$CONFIG_FILES ;;
16586 # Strip MF so we end up with the name of the file.
16587 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16588 # Check whether this is an Automake generated Makefile or not.
16589 # We used to match only the files named 'Makefile.in', but
16590 # some people rename them; so instead we look at the file content.
16591 # Grep'ing the first line is not enough: some people post-process
16592 # each Makefile.in and add a new line on top of each file to say so.
16593 # Grep'ing the whole file is not good either: AIX grep has a line
16594 # limit of 2048, but all sed's we know have understand at least 4000.
16595 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16596 dirpart
=`$as_dirname -- "$mf" ||
16597 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16598 X"$mf" : 'X\(//\)[^/]' \| \
16599 X"$mf" : 'X\(//\)$' \| \
16600 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16606 /^X\(\/\/\)[^/].*/{
16622 # Extract the definition of DEPDIR, am__include, and am__quote
16623 # from the Makefile without running 'make'.
16624 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16625 test -z "$DEPDIR" && continue
16626 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16627 test -z "$am__include" && continue
16628 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16629 # Find all dependency output files, they are included files with
16630 # $(DEPDIR) in their names. We invoke sed twice because it is the
16631 # simplest approach to changing $(DEPDIR) to its actual value in the
16633 for file in `sed -n "
16634 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16635 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16636 # Make sure the directory exists.
16637 test -f "$dirpart/$file" && continue
16638 fdir
=`$as_dirname -- "$file" ||
16639 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640 X"$file" : 'X\(//\)[^/]' \| \
16641 X"$file" : 'X\(//\)$' \| \
16642 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16643 $as_echo X"$file" |
16644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16648 /^X\(\/\/\)[^/].*/{
16661 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16662 # echo "creating $dirpart/$file"
16663 echo '# dummy' > "$dirpart/$file"
16670 # See if we are running on zsh, and set the options which allow our
16671 # commands through without removal of \ escapes.
16672 if test -n "${ZSH_VERSION+set}" ; then
16673 setopt NO_GLOB_SUBST
16676 cfgfile
="${ofile}T"
16677 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16680 cat <<_LT_EOF >> "$cfgfile"
16683 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16684 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16686 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16688 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16689 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16690 # Written by Gordon Matzigkeit, 1996
16692 # This file is part of GNU Libtool.
16694 # GNU Libtool is free software; you can redistribute it and/or
16695 # modify it under the terms of the GNU General Public License as
16696 # published by the Free Software Foundation; either version 2 of
16697 # the License, or (at your option) any later version.
16699 # As a special exception to the GNU General Public License,
16700 # if you distribute this file as part of a program or library that
16701 # is built using GNU Libtool, you may include this file under the
16702 # same distribution terms that you use for the rest of that program.
16704 # GNU Libtool is distributed in the hope that it will be useful,
16705 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16706 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16707 # GNU General Public License for more details.
16709 # You should have received a copy of the GNU General Public License
16710 # along with GNU Libtool; see the file COPYING. If not, a copy
16711 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16712 # obtained by writing to the Free Software Foundation, Inc.,
16713 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16716 # The names of the tagged configurations supported by this script.
16719 # ### BEGIN LIBTOOL CONFIG
16721 # Which release of libtool.m4 was used?
16722 macro_version=$macro_version
16723 macro_revision=$macro_revision
16725 # Whether or not to build shared libraries.
16726 build_libtool_libs=$enable_shared
16728 # Whether or not to build static libraries.
16729 build_old_libs=$enable_static
16731 # What type of objects to build.
16734 # Whether or not to optimize for fast installation.
16735 fast_install=$enable_fast_install
16737 # Shell to use when invoking shell scripts.
16740 # An echo program that protects backslashes.
16744 host_alias=$host_alias
16748 # The build system.
16749 build_alias=$build_alias
16753 # A sed program that does not truncate output.
16756 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16757 Xsed="\$SED -e 1s/^X//"
16759 # A grep program that handles long lines.
16765 # A literal string matcher.
16768 # A BSD- or MS-compatible name lister.
16771 # Whether we need soft or hard links.
16774 # What is the maximum length of a command?
16775 max_cmd_len=$max_cmd_len
16777 # Object file suffix (normally "o").
16780 # Executable file suffix (normally "").
16783 # whether the shell understands "unset".
16786 # turn spaces into newlines.
16789 # turn newlines into spaces.
16792 # An object symbol dumper.
16793 OBJDUMP=$lt_OBJDUMP
16795 # Method to check whether dependent libraries are shared objects.
16796 deplibs_check_method=$lt_deplibs_check_method
16798 # Command to use when deplibs_check_method == "file_magic".
16799 file_magic_cmd=$lt_file_magic_cmd
16803 AR_FLAGS=$lt_AR_FLAGS
16805 # A symbol stripping program.
16808 # Commands used to install an old-style archive.
16810 old_postinstall_cmds=$lt_old_postinstall_cmds
16811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16813 # Whether to use a lock for old archive extraction.
16814 lock_old_archive_extraction=$lock_old_archive_extraction
16819 # LTCC compiler flags.
16820 LTCFLAGS=$lt_CFLAGS
16822 # Take the output of nm and produce a listing of raw symbols and C names.
16823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16825 # Transform the output of nm in a proper C declaration.
16826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16828 # Transform the output of nm in a C name address pair.
16829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16831 # Transform the output of nm in a C name address pair when lib prefix is needed.
16832 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16834 # The name of the directory that contains temporary libtool files.
16837 # Used to examine libraries when file_magic_cmd begins with "file".
16838 MAGIC_CMD=$MAGIC_CMD
16840 # Must we lock files when doing compilation?
16841 need_locks=$lt_need_locks
16843 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16844 DSYMUTIL=$lt_DSYMUTIL
16846 # Tool to change global to local symbols on Mac OS X.
16849 # Tool to manipulate fat objects and archives on Mac OS X.
16852 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16855 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16856 OTOOL64=$lt_OTOOL64
16858 # Old archive suffix (normally "a").
16861 # Shared library suffix (normally ".so").
16862 shrext_cmds=$lt_shrext_cmds
16864 # The commands to extract the exported symbol list from a shared archive.
16865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16867 # Variables whose values should be saved in libtool wrapper scripts and
16868 # restored at link time.
16869 variables_saved_for_relink=$lt_variables_saved_for_relink
16871 # Do we need the "lib" prefix for modules?
16872 need_lib_prefix=$need_lib_prefix
16874 # Do we need a version for libraries?
16875 need_version=$need_version
16877 # Library versioning type.
16878 version_type=$version_type
16880 # Shared library runtime path variable.
16881 runpath_var=$runpath_var
16883 # Shared library path variable.
16884 shlibpath_var=$shlibpath_var
16886 # Is shlibpath searched before the hard-coded library search path?
16887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16889 # Format of library name prefix.
16890 libname_spec=$lt_libname_spec
16892 # List of archive names. First name is the real one, the rest are links.
16893 # The last name is the one that the linker finds with -lNAME
16894 library_names_spec=$lt_library_names_spec
16896 # The coded name of the library, if different from the real name.
16897 soname_spec=$lt_soname_spec
16899 # Permission mode override for installation of shared libraries.
16900 install_override_mode=$lt_install_override_mode
16902 # Command to use after installation of a shared archive.
16903 postinstall_cmds=$lt_postinstall_cmds
16905 # Command to use after uninstallation of a shared archive.
16906 postuninstall_cmds=$lt_postuninstall_cmds
16908 # Commands used to finish a libtool library installation in a directory.
16909 finish_cmds=$lt_finish_cmds
16911 # As "finish_cmds", except a single script fragment to be evaled but
16913 finish_eval=$lt_finish_eval
16915 # Whether we should hardcode library paths into libraries.
16916 hardcode_into_libs=$hardcode_into_libs
16918 # Compile-time system search path for libraries.
16919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16921 # Run-time system search path for libraries.
16922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16924 # Whether dlopen is supported.
16925 dlopen_support=$enable_dlopen
16927 # Whether dlopen of programs is supported.
16928 dlopen_self=$enable_dlopen_self
16930 # Whether dlopen of statically linked programs is supported.
16931 dlopen_self_static=$enable_dlopen_self_static
16933 # Commands to strip libraries.
16934 old_striplib=$lt_old_striplib
16935 striplib=$lt_striplib
16938 # The linker used to build libraries.
16941 # How to create reloadable object files.
16942 reload_flag=$lt_reload_flag
16943 reload_cmds=$lt_reload_cmds
16945 # Commands used to build an old-style archive.
16946 old_archive_cmds=$lt_old_archive_cmds
16948 # A language specific compiler.
16951 # Is the compiler the GNU compiler?
16954 # Compiler flag to turn off builtin functions.
16955 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16957 # How to pass a linker flag through the compiler.
16958 wl=$lt_lt_prog_compiler_wl
16960 # Additional compiler flags for building library objects.
16961 pic_flag=$lt_lt_prog_compiler_pic
16963 # Compiler flag to prevent dynamic linking.
16964 link_static_flag=$lt_lt_prog_compiler_static
16966 # Does compiler simultaneously support -c and -o options?
16967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16969 # Whether or not to add -lc for building shared libraries.
16970 build_libtool_need_lc=$archive_cmds_need_lc
16972 # Whether or not to disallow shared libs when runtime libs are static.
16973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16975 # Compiler flag to allow reflexive dlopens.
16976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16978 # Compiler flag to generate shared objects directly from archives.
16979 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16981 # Whether the compiler copes with passing no objects directly.
16982 compiler_needs_object=$lt_compiler_needs_object
16984 # Create an old-style archive from a shared archive.
16985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16987 # Create a temporary old-style archive to link instead of a shared archive.
16988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16990 # Commands used to build a shared archive.
16991 archive_cmds=$lt_archive_cmds
16992 archive_expsym_cmds=$lt_archive_expsym_cmds
16994 # Commands used to build a loadable module if different from building
16995 # a shared archive.
16996 module_cmds=$lt_module_cmds
16997 module_expsym_cmds=$lt_module_expsym_cmds
16999 # Whether we are building with GNU ld or not.
17000 with_gnu_ld=$lt_with_gnu_ld
17002 # Flag that allows shared libraries with undefined symbols to be built.
17003 allow_undefined_flag=$lt_allow_undefined_flag
17005 # Flag that enforces no undefined symbols.
17006 no_undefined_flag=$lt_no_undefined_flag
17008 # Flag to hardcode \$libdir into a binary during linking.
17009 # This must work even if \$libdir does not exist
17010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17012 # If ld is used when linking, flag to hardcode \$libdir into a binary
17013 # during linking. This must work even if \$libdir does not exist.
17014 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17016 # Whether we need a single "-rpath" flag with a separated argument.
17017 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17020 # DIR into the resulting binary.
17021 hardcode_direct=$hardcode_direct
17023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17024 # DIR into the resulting binary and the resulting library dependency is
17025 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17026 # library is relocated.
17027 hardcode_direct_absolute=$hardcode_direct_absolute
17029 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17030 # into the resulting binary.
17031 hardcode_minus_L=$hardcode_minus_L
17033 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17034 # into the resulting binary.
17035 hardcode_shlibpath_var=$hardcode_shlibpath_var
17037 # Set to "yes" if building a shared library automatically hardcodes DIR
17038 # into the library and all subsequent libraries and executables linked
17040 hardcode_automatic=$hardcode_automatic
17042 # Set to yes if linker adds runtime paths of dependent libraries
17043 # to runtime path list.
17044 inherit_rpath=$inherit_rpath
17046 # Whether libtool must link a program against all its dependency libraries.
17047 link_all_deplibs=$link_all_deplibs
17049 # Fix the shell variable \$srcfile for the compiler.
17050 fix_srcfile_path=$lt_fix_srcfile_path
17052 # Set to "yes" if exported symbols are required.
17053 always_export_symbols=$always_export_symbols
17055 # The commands to list exported symbols.
17056 export_symbols_cmds=$lt_export_symbols_cmds
17058 # Symbols that should not be listed in the preloaded symbols.
17059 exclude_expsyms=$lt_exclude_expsyms
17061 # Symbols that must always be exported.
17062 include_expsyms=$lt_include_expsyms
17064 # Commands necessary for linking programs (against libraries) with templates.
17065 prelink_cmds=$lt_prelink_cmds
17067 # Specify filename containing input files.
17068 file_list_spec=$lt_file_list_spec
17070 # How to hardcode a shared library path into an executable.
17071 hardcode_action=$hardcode_action
17073 # ### END LIBTOOL CONFIG
17079 cat <<\_LT_EOF
>> "$cfgfile"
17080 # AIX sometimes has problems with the GCC collect2 program. For some
17081 # reason, if we set the COLLECT_NAMES environment variable, the problems
17082 # vanish in a puff of smoke.
17083 if test "X${COLLECT_NAMES+set}" != Xset
; then
17085 export COLLECT_NAMES
17092 ltmain
="$ac_aux_dir/ltmain.sh"
17095 # We use sed instead of cat because bash on DJGPP gets confused if
17096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17097 # text mode, it properly converts lines to CR/LF. This bash problem
17098 # is reportedly fixed, but why not run on old versions too?
17099 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17100 ||
(rm -f "$cfgfile"; exit 1)
17104 cat << \_LT_EOF
>> "$cfgfile"
17106 # func_dirname file append nondir_replacement
17107 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17108 # otherwise set result to NONDIR_REPLACEMENT.
17112 */*) func_dirname_result
="${1%/*}${2}" ;;
17113 * ) func_dirname_result
="${3}" ;;
17117 # func_basename file
17120 func_basename_result
="${1##*/}"
17123 # func_dirname_and_basename file append nondir_replacement
17124 # perform func_basename and func_dirname in a single function
17126 # dirname: Compute the dirname of FILE. If nonempty,
17127 # add APPEND to the result, otherwise set result
17128 # to NONDIR_REPLACEMENT.
17129 # value returned in "$func_dirname_result"
17130 # basename: Compute filename of FILE.
17131 # value retuned in "$func_basename_result"
17132 # Implementation must be kept synchronized with func_dirname
17133 # and func_basename. For efficiency, we do not delegate to
17134 # those functions but instead duplicate the functionality here.
17135 func_dirname_and_basename
()
17138 */*) func_dirname_result
="${1%/*}${2}" ;;
17139 * ) func_dirname_result
="${3}" ;;
17141 func_basename_result
="${1##*/}"
17144 # func_stripname prefix suffix name
17145 # strip PREFIX and SUFFIX off of NAME.
17146 # PREFIX and SUFFIX must not contain globbing or regex special
17147 # characters, hashes, percent signs, but SUFFIX may contain a leading
17148 # dot (in which case that matches only a dot).
17151 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17152 # positional parameters, so assign one to ordinary parameter first.
17153 func_stripname_result
=${3}
17154 func_stripname_result
=${func_stripname_result#"${1}"}
17155 func_stripname_result
=${func_stripname_result%"${2}"}
17161 func_opt_split_opt
=${1%%=*}
17162 func_opt_split_arg
=${1#*=}
17169 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17170 *) func_lo2o_result
=${1} ;;
17174 # func_xform libobj-or-source
17177 func_xform_result
=${1%.*}.lo
17180 # func_arith arithmetic-term...
17183 func_arith_result
=$
(( $
* ))
17187 # STRING may not start with a hyphen.
17190 func_len_result
=${#1}
17195 *) # Bourne compatible functions.
17196 cat << \_LT_EOF
>> "$cfgfile"
17198 # func_dirname file append nondir_replacement
17199 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17200 # otherwise set result to NONDIR_REPLACEMENT.
17203 # Extract subdirectory from the argument.
17204 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17205 if test "X$func_dirname_result" = "X${1}"; then
17206 func_dirname_result
="${3}"
17208 func_dirname_result
="$func_dirname_result${2}"
17212 # func_basename file
17215 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17219 # func_stripname prefix suffix name
17220 # strip PREFIX and SUFFIX off of NAME.
17221 # PREFIX and SUFFIX must not contain globbing or regex special
17222 # characters, hashes, percent signs, but SUFFIX may contain a leading
17223 # dot (in which case that matches only a dot).
17224 # func_strip_suffix prefix name
17228 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17229 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17234 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17235 my_sed_long_arg
='1s/^-[^=]*=//'
17240 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17241 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17247 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17250 # func_xform libobj-or-source
17253 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17256 # func_arith arithmetic-term...
17259 func_arith_result
=`expr "$@"`
17263 # STRING may not start with a hyphen.
17266 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17272 case $lt_shell_append in
17274 cat << \_LT_EOF
>> "$cfgfile"
17276 # func_append var value
17277 # Append VALUE to the end of shell variable VAR.
17285 cat << \_LT_EOF
>> "$cfgfile"
17287 # func_append var value
17288 # Append VALUE to the end of shell variable VAR.
17299 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17300 ||
(rm -f "$cfgfile"; exit 1)
17302 mv -f "$cfgfile" "$ofile" ||
17303 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17308 for ac_file
in $CONFIG_FILES; do
17309 # Support "outfile[:infile[:infile...]]"
17311 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
17313 # PO directories have a Makefile.in generated from Makefile.in.in.
17314 case "$ac_file" in */Makefile.
in)
17315 # Adjust a relative srcdir.
17316 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17317 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
17318 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17319 # In autoconf-2.13 it is called $ac_given_srcdir.
17320 # In autoconf-2.50 it is called $srcdir.
17321 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
17322 case "$ac_given_srcdir" in
17323 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
17324 /*) top_srcdir
="$ac_given_srcdir" ;;
17325 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
17327 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17328 rm -f "$ac_dir/POTFILES"
17329 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
17330 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17331 POMAKEFILEDEPS
="POTFILES.in"
17332 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17333 # on $ac_dir but don't depend on user-specified configuration
17335 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17336 # The LINGUAS file contains the set of available languages.
17337 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17338 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
17340 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17341 # Hide the ALL_LINGUAS assigment from automake.
17342 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17343 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
17345 # The set of available languages was given in configure.ac.
17346 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17348 case "$ac_given_srcdir" in
17350 *) srcdirpre
='$(srcdir)/' ;;
17356 for lang
in $ALL_LINGUAS; do
17357 POFILES
="$POFILES $srcdirpre$lang.po"
17358 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17359 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17360 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17362 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17363 # environment variable.
17365 if test -n "$ALL_LINGUAS"; then
17366 for presentlang
in $ALL_LINGUAS; do
17368 if test "%UNSET%" != "$LINGUAS"; then
17369 desiredlanguages
="$LINGUAS"
17371 desiredlanguages
="$ALL_LINGUAS"
17373 for desiredlang
in $desiredlanguages; do
17374 # Use the presentlang catalog if desiredlang is
17375 # a. equal to presentlang, or
17376 # b. a variant of presentlang (because in this case,
17377 # presentlang can be used as a fallback for messages
17378 # which are not translated in the desiredlang catalog).
17379 case "$desiredlang" in
17380 "$presentlang"*) useit
=yes;;
17383 if test $useit = yes; then
17384 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17389 if test -n "$INST_LINGUAS"; then
17390 for lang
in $INST_LINGUAS; do
17391 CATALOGS
="$CATALOGS $lang.gmo"
17394 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17395 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17396 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17397 if test -f "$f"; then
17399 *.orig |
*.bak |
*~
) ;;
17400 *) cat "$f" >> "$ac_dir/Makefile" ;;
17415 ac_clean_files
=$ac_clean_files_save
17417 test $ac_write_fail = 0 ||
17418 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17421 # configure is writing to config.log, and then calls config.status.
17422 # config.status does its own redirection, appending to config.log.
17423 # Unfortunately, on DOS this fails, as config.log is still kept open
17424 # by configure, so config.status won't be able to write to it; its
17425 # output is simply discarded. So we exec the FD to /dev/null,
17426 # effectively closing config.log, so it can be properly (re)opened and
17427 # appended to by config.status. When coming back to configure, we
17428 # need to make the FD available again.
17429 if test "$no_create" != yes; then
17431 ac_config_status_args
=
17432 test "$silent" = yes &&
17433 ac_config_status_args
="$ac_config_status_args --quiet"
17435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17438 # would make configure fail if this is the last instruction.
17439 $ac_cs_success || as_fn_exit
1
17441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}