2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.32.90.
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.32.90'
591 PACKAGE_STRING='binutils 2.32.90'
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>
633 ac_subst_vars='am__EXEEXT_FALSE
639 OBJDUMP_PRIVATE_OFILES
661 MAINTAINER_MODE_FALSE
685 WARN_CFLAGS_FOR_BUILD
728 INSTALL_STRIP_PROGRAM
790 program_transform_name
803 enable_option_checking
804 enable_dependency_tracking
815 enable_deterministic_archives
816 enable_default_strings_all
818 enable_build_warnings
820 enable_maintainer_mode
825 ac_precious_vars='build_alias
838 # Initialize some variables set by options.
840 ac_init_version=false
841 ac_unrecognized_opts=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name=s,x,x,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 runstatedir='${localstatedir}/run'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
997 -help | --help | --hel | --he | -h)
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1155 -site=* | --site=* | --sit=*)
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1195 eval with_$ac_useropt=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1211 eval with_$ac_useropt=no ;;
1214 # Obsolete; use --with-x.
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1231 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information"
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $? "missing argument to $ac_option"
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir runstatedir
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1282 # Be sure to have absolute directory names.
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures binutils 2.32.90 to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of binutils 2.32.90:";;
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-dependency-tracking
1467 do not reject slow dependency extractors
1468 --disable-dependency-tracking
1469 speeds up one-time build
1470 --enable-silent-rules less verbose build output (undo: "make V=1")
1471 --disable-silent-rules verbose build output (undo: "make V=0")
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --enable-plugins Enable support for plugins
1478 --disable-largefile omit support for large files
1479 --enable-targets alternative target configurations
1480 --enable-deterministic-archives
1481 ar and ranlib default to -D behavior
1482 --disable-default-strings-all
1483 strings defaults to --data behavior
1484 --enable-werror treat compile warnings as errors
1485 --enable-build-warnings enable build-time compiler warnings
1486 --disable-nls do not use Native Language Support
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
1490 --disable-rpath do not hardcode runtime library paths
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-system-zlib use installed libz
1499 --with-gnu-ld assume the C compiler uses GNU ld default=no
1500 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1501 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1512 YACC The `Yet Another Compiler Compiler' implementation to use.
1513 Defaults to the first program found out of: `bison -y', `byacc',
1515 YFLAGS The list of arguments that will be passed by default to $YACC.
1516 This script will default YFLAGS to the empty string to avoid a
1517 default value of `-d' given by some make applications.
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1522 Report bugs to the package provider.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" ||
1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1552 .) # We are building in place.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1585 binutils configure 2.32.90
1586 generated by GNU Autoconf 2.69
1588 Copyright (C) 2012 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_compile
1637 # ac_fn_c_try_link LINENO
1638 # -----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 test -x conftest$ac_exeext
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } # ac_fn_c_try_link
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } > conftest.i && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723 # the include files in INCLUDES and setting the cache variable VAR
1725 ac_fn_c_check_header_mongrel ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if eval \${$3+:} false; then :
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1738 # Is the header compilable?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740 $as_echo_n "checking $2 usability... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_header_compiler=yes
1749 ac_header_compiler=no
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753 $as_echo "$ac_header_compiler" >&6; }
1755 # Is the header present?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757 $as_echo_n "checking $2 presence... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1762 if ac_fn_c_try_cpp "$LINENO"; then :
1763 ac_header_preproc=yes
1765 ac_header_preproc=no
1767 rm -f conftest.err conftest.i conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769 $as_echo "$ac_header_preproc" >&6; }
1771 # So? What about this header?
1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 eval "$3=\$ac_header_compiler"
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 } # ac_fn_c_check_header_mongrel
1807 # ac_fn_c_try_run LINENO
1808 # ----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1810 # that executables *can* be run.
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_link"
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>&5
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1825 { { case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_try") 2>&5
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; }; }; then :
1837 $as_echo "$as_me: program exited with status $ac_status" >&5
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 ac_retval=$ac_status
1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status $ac_retval
1849 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists and can be compiled using the include files in
1852 # INCLUDES, setting the cache variable VAR accordingly.
1853 ac_fn_c_check_header_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_header_compile
1880 # ac_fn_c_check_func LINENO FUNC VAR
1881 # ----------------------------------
1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1883 ac_fn_c_check_func ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895 #define $2 innocuous_$2
1897 /* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below.
1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900 <limits.h> exists even on freestanding compilers. */
1903 # include <limits.h>
1905 # include <assert.h>
1910 /* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1917 /* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920 #if defined __stub_$2 || defined __stub___$2
1932 if ac_fn_c_try_link "$LINENO"; then :
1937 rm -f core conftest.err conftest.$ac_objext \
1938 conftest$ac_exeext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_func
1947 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948 # --------------------------------------------
1949 # Tries to find the compile-time value of EXPR in a program that includes
1950 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1952 ac_fn_c_compute_int ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if test "$cross_compiling" = yes; then
1956 # Depending upon the size, compute the lo and hi bounds.
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1963 static int test_array [1 - 2 * !(($2) >= 0)];
1965 return test_array [0];
1971 if ac_fn_c_try_compile "$LINENO"; then :
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1982 return test_array [0];
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_hi=$ac_mid; break
1991 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1992 if test $ac_lo -le $ac_mid; then
1996 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) < 0)];
2009 return test_array [0];
2015 if ac_fn_c_try_compile "$LINENO"; then :
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2026 return test_array [0];
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_lo=$ac_mid; break
2035 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2036 if test $ac_mid -le $ac_hi; then
2040 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 # Binary search between lo and hi bounds.
2051 while test "x$ac_lo" != "x$ac_hi"; do
2052 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2070 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2082 static long int longval () { return $2; }
2083 static unsigned long int ulongval () { return $2; }
2090 FILE *f = fopen ("conftest.val", "w");
2095 long int i = longval ();
2098 fprintf (f, "%ld", i);
2102 unsigned long int i = ulongval ();
2105 fprintf (f, "%lu", i);
2107 /* Do not output a trailing newline, as this causes \r\n confusion
2108 on some platforms. */
2109 return ferror (f) || fclose (f) != 0;
2115 if ac_fn_c_try_run "$LINENO"; then :
2116 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121 conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2128 } # ac_fn_c_compute_int
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2168 if ac_fn_c_try_compile "$LINENO"; then :
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_type
2184 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2185 # ---------------------------------------------
2186 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2188 ac_fn_c_check_decl ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 as_decl_name=`echo $2|sed 's/ *(.*//'`
2192 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2194 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2195 if eval \${$3+:} false; then :
2196 $as_echo_n "(cached) " >&6
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 #ifndef $as_decl_name
2206 (void) $as_decl_use;
2208 (void) $as_decl_name;
2216 if ac_fn_c_try_compile "$LINENO"; then :
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_decl
2229 cat >config.log <<_ACEOF
2230 This file contains any messages produced by compilers while
2231 running configure, to aid debugging if configure makes a mistake.
2233 It was created by binutils $as_me 2.32.90, which was
2234 generated by GNU Autoconf 2.69. Invocation command line was
2246 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2252 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2255 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2256 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2257 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2259 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2260 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2261 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 $as_echo "PATH: $as_dir"
2286 # Keep a trace of the command line.
2287 # Strip out --no-create and --no-recursion so they do not pile up.
2288 # Strip out --silent because we don't want to record it for future runs.
2289 # Also quote any args containing shell meta-characters.
2290 # Make two passes to allow for proper duplicate-argument suppression.
2294 ac_must_keep_next=false
2300 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302 | -silent | --silent | --silen | --sile | --sil)
2305 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2310 as_fn_append ac_configure_args1 " '$ac_arg'"
2311 if test $ac_must_keep_next = true; then
2312 ac_must_keep_next=false # Got value, back to normal.
2315 *=* | --config-cache | -C | -disable-* | --disable-* \
2316 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318 | -with-* | --with-* | -without-* | --without-* | --x)
2319 case "$ac_configure_args0 " in
2320 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2323 -* ) ac_must_keep_next=true ;;
2326 as_fn_append ac_configure_args " '$ac_arg'"
2331 { ac_configure_args0=; unset ac_configure_args0;}
2332 { ac_configure_args1=; unset ac_configure_args1;}
2334 # When interrupted or exit'd, cleanup temporary files, and complete
2335 # config.log. We remove comments because anyway the quotes in there
2336 # would cause problems or look ugly.
2337 # WARNING: Use '\'' to represent an apostrophe within the trap.
2338 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339 trap 'exit_status=$?
2340 # Save into config.log some information that might help in debugging.
2344 $as_echo "## ---------------- ##
2345 ## Cache variables. ##
2346 ## ---------------- ##"
2348 # The following way of writing the cache mishandles newlines in values,
2350 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2351 eval ac_val=\$$ac_var
2355 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2356 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2359 _ | IFS | as_nl) ;; #(
2360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2361 *) { eval $ac_var=; unset $ac_var;} ;;
2366 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2367 *${as_nl}ac_space=\ *)
2369 "s/'\''/'\''\\\\'\'''\''/g;
2370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2380 $as_echo "## ----------------- ##
2381 ## Output variables. ##
2382 ## ----------------- ##"
2384 for ac_var in $ac_subst_vars
2386 eval ac_val=\$$ac_var
2388 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390 $as_echo "$ac_var='\''$ac_val'\''"
2394 if test -n "$ac_subst_files"; then
2395 $as_echo "## ------------------- ##
2396 ## File substitutions. ##
2397 ## ------------------- ##"
2399 for ac_var in $ac_subst_files
2401 eval ac_val=\$$ac_var
2403 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2405 $as_echo "$ac_var='\''$ac_val'\''"
2410 if test -s confdefs.h; then
2411 $as_echo "## ----------- ##
2418 test "$ac_signal" != 0 &&
2419 $as_echo "$as_me: caught signal $ac_signal"
2420 $as_echo "$as_me: exit $exit_status"
2422 rm -f core *.core core.conftest.* &&
2423 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2426 for ac_signal in 1 2 13 15; do
2427 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2431 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2432 rm -f -r conftest* confdefs.h
2434 $as_echo "/* confdefs.h */" > confdefs.h
2436 # Predefined preprocessor variables.
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_NAME "$PACKAGE_NAME"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_STRING "$PACKAGE_STRING"
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_URL "$PACKAGE_URL"
2463 # Let the site file select an alternate cache file if it wants to.
2464 # Prefer an explicitly selected file to automatically selected ones.
2467 if test -n "$CONFIG_SITE"; then
2468 # We do not want a PATH search for config.site.
2469 case $CONFIG_SITE in #((
2470 -*) ac_site_file1=./$CONFIG_SITE;;
2471 */*) ac_site_file1=$CONFIG_SITE;;
2472 *) ac_site_file1=./$CONFIG_SITE;;
2474 elif test "x$prefix" != xNONE; then
2475 ac_site_file1=$prefix/share/config.site
2476 ac_site_file2=$prefix/etc/config.site
2478 ac_site_file1=$ac_default_prefix/share/config.site
2479 ac_site_file2=$ac_default_prefix/etc/config.site
2481 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2483 test "x$ac_site_file" = xNONE && continue
2484 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487 sed 's/^/| /' "$ac_site_file" >&5
2489 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 as_fn_error $? "failed to load site script $ac_site_file
2492 See \`config.log' for more details" "$LINENO" 5; }
2496 if test -r "$cache_file"; then
2497 # Some versions of bash will fail to source /dev/null (special files
2498 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2499 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2501 $as_echo "$as_me: loading cache $cache_file" >&6;}
2503 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2504 *) . "./$cache_file";;
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2509 $as_echo "$as_me: creating cache $cache_file" >&6;}
2513 as_fn_append ac_header_list " stdlib.h"
2514 as_fn_append ac_header_list " unistd.h"
2515 as_fn_append ac_header_list " sys/param.h"
2516 # Check that the precious variables saved in the cache have kept the same
2518 ac_cache_corrupted=false
2519 for ac_var in $ac_precious_vars; do
2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521 eval ac_new_set=\$ac_env_${ac_var}_set
2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523 eval ac_new_val=\$ac_env_${ac_var}_value
2524 case $ac_old_set,$ac_new_set in
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2528 ac_cache_corrupted=: ;;
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2535 if test "x$ac_old_val" != "x$ac_new_val"; then
2536 # differences in whitespace do not lead to failure.
2537 ac_old_val_w=`echo x $ac_old_val`
2538 ac_new_val_w=`echo x $ac_new_val`
2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542 ac_cache_corrupted=:
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546 eval $ac_var=\$ac_old_val
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2549 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2551 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2554 # Pass precious variables to config.status.
2555 if test "$ac_new_set" = set; then
2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 *) ac_arg=$ac_var=$ac_new_val ;;
2560 case " $ac_configure_args " in
2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2566 if $ac_cache_corrupted; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2573 ## -------------------- ##
2574 ## Main body of script. ##
2575 ## -------------------- ##
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2591 if test -f "$ac_dir/install-sh"; then
2593 ac_install_sh="$ac_aux_dir/install-sh -c"
2595 elif test -f "$ac_dir/install.sh"; then
2597 ac_install_sh="$ac_aux_dir/install.sh -c"
2599 elif test -f "$ac_dir/shtool"; then
2601 ac_install_sh="$ac_aux_dir/shtool install -c"
2605 if test -z "$ac_aux_dir"; then
2606 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2609 # These three variables are undocumented and unsupported,
2610 # and are intended to be withdrawn in a future Autoconf release.
2611 # They can cause serious problems if a builder's source tree is in a directory
2612 # whose full name contains unusual characters.
2613 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2614 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2615 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2618 # Make sure we can run config.sub.
2619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2623 $as_echo_n "checking build system type... " >&6; }
2624 if ${ac_cv_build+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 ac_build_alias=$build_alias
2628 test "x$ac_build_alias" = x &&
2629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2630 test "x$ac_build_alias" = x &&
2631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2637 $as_echo "$ac_cv_build" >&6; }
2638 case $ac_cv_build in
2640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2643 ac_save_IFS=$IFS; IFS='-'
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2657 $as_echo_n "checking host system type... " >&6; }
2658 if ${ac_cv_host+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 if test "x$host_alias" = x; then
2662 ac_cv_host=$ac_cv_build
2664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2670 $as_echo "$ac_cv_host" >&6; }
2673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2676 ac_save_IFS=$IFS; IFS='-'
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2690 $as_echo_n "checking target system type... " >&6; }
2691 if ${ac_cv_target+:} false; then :
2692 $as_echo_n "(cached) " >&6
2694 if test "x$target_alias" = x; then
2695 ac_cv_target=$ac_cv_host
2697 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2703 $as_echo "$ac_cv_target" >&6; }
2704 case $ac_cv_target in
2706 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2708 target=$ac_cv_target
2709 ac_save_IFS=$IFS; IFS='-'
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2719 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2722 # The aliases save the names the user supplied, while $host etc.
2723 # will get canonicalized.
2724 test -n "$target_alias" &&
2725 test "$program_prefix$program_suffix$program_transform_name" = \
2727 program_prefix=${target_alias}-
2728 # Expand $ac_aux_dir to an absolute path.
2729 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2775 if test -z "$ac_cv_prog_CC"; then
2777 # Extract the first word of "gcc", so it can be a program name with args.
2778 set dummy gcc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_ac_ct_CC="gcc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807 $as_echo "$ac_ct_CC" >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2813 if test "x$ac_ct_CC" = x; then
2816 case $cross_compiling:$ac_tool_warned in
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820 ac_tool_warned=yes ;;
2828 if test -z "$CC"; then
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}cc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="${ac_tool_prefix}cc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2869 if test -z "$CC"; then
2870 # Extract the first word of "cc", so it can be a program name with args.
2871 set dummy cc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889 ac_prog_rejected=yes
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy $ac_cv_prog_CC
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2925 if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 for ac_prog in cl.exe
2929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2966 test -n "$CC" && break
2969 if test -z "$CC"; then
2971 for ac_prog in cl.exe
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_CC="$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3010 test -n "$ac_ct_CC" && break
3013 if test "x$ac_ct_CC" = x; then
3016 case $cross_compiling:$ac_tool_warned in
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3029 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details" "$LINENO" 5; }
3034 # Provide some information about the compiler.
3035 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3038 for ac_option in --version -v -V -qversion; do
3039 { { ac_try="$ac_compiler $ac_option >&5"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048 if test -s conftest.err; then
3050 ... rest of stderr output deleted ...
3051 10q' conftest.err >conftest.er1
3052 cat conftest.er1 >&5
3054 rm -f conftest.er1 conftest.err
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3070 ac_clean_files_save=$ac_clean_files
3071 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072 # Try to create an executable without -o first, disregard a.out.
3073 # It will help us diagnose broken compilers, and finding out an intuition
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076 $as_echo_n "checking whether the C compiler works... " >&6; }
3077 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3079 # The possible output files:
3080 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3083 for ac_file in $ac_files
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3092 if { { ac_try="$ac_link_default"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_link_default") 2>&5
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }; then :
3103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3106 # so that the user can short-circuit this test for compilers unknown to
3108 for ac_file in $ac_files ''
3110 test -f "$ac_file" || continue
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3115 # We found the default executable, but exeext='' is most
3119 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 # We set ac_cv_exeext here because the later test for it is not
3124 # safe: cross compilers may not add the suffix if given an `-o'
3125 # argument, so we may need to know it at that point already.
3126 # Even if this section looks crufty: it has the advantage of
3133 test "$ac_cv_exeext" = no && ac_cv_exeext=
3138 if test -z "$ac_file"; then :
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error 77 "C compiler cannot create executables
3147 See \`config.log' for more details" "$LINENO" 5; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153 $as_echo_n "checking for C compiler default output file name... " >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 $as_echo "$ac_file" >&6; }
3156 ac_exeext=$ac_cv_exeext
3158 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159 ac_clean_files=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161 $as_echo_n "checking for suffix of executables... " >&6; }
3162 if { { ac_try="$ac_link"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_link") 2>&5
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }; then :
3173 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3175 # work properly (i.e., refer to `conftest.exe'), while it won't with
3177 for ac_file in conftest.exe conftest conftest.*; do
3178 test -f "$ac_file" || continue
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details" "$LINENO" 5; }
3192 rm -f conftest conftest$ac_cv_exeext
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194 $as_echo "$ac_cv_exeext" >&6; }
3196 rm -f conftest.$ac_ext
3197 EXEEXT=$ac_cv_exeext
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3205 FILE *f = fopen ("conftest.out", "w");
3206 return ferror (f) || fclose (f) != 0;
3212 ac_clean_files="$ac_clean_files conftest.out"
3213 # Check that the compiler produces executables we can run. If not, either
3214 # the compiler is broken, or we cross compile.
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216 $as_echo_n "checking whether we are cross compiling... " >&6; }
3217 if test "$cross_compiling" != yes; then
3218 { { ac_try="$ac_link"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3229 if { ac_try='./conftest$ac_cv_exeext'
3230 { { case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_try") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; }; then
3242 if test "$cross_compiling" = maybe; then
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 as_fn_error $? "cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details" "$LINENO" 5; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254 $as_echo "$cross_compiling" >&6; }
3256 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257 ac_clean_files=$ac_clean_files_save
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259 $as_echo_n "checking for suffix of object files... " >&6; }
3260 if ${ac_cv_objext+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 rm -f conftest.o conftest.obj
3275 if { { ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_compile") 2>&5
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; then :
3286 for ac_file in conftest.o conftest.obj conftest.*; do
3287 test -f "$ac_file" || continue;
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details" "$LINENO" 5; }
3303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306 $as_echo "$ac_cv_objext" >&6; }
3307 OBJEXT=$ac_cv_objext
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311 if ${ac_cv_c_compiler_gnu+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3328 if ac_fn_c_try_compile "$LINENO"; then :
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339 if test $ac_compiler_gnu = yes; then
3344 ac_test_CFLAGS=${CFLAGS+set}
3345 ac_save_CFLAGS=$CFLAGS
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3348 if ${ac_cv_prog_cc_g+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 ac_save_c_werror_flag=$ac_c_werror_flag
3352 ac_c_werror_flag=yes
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 if ac_fn_c_try_compile "$LINENO"; then :
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3381 if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3397 if ac_fn_c_try_compile "$LINENO"; then :
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_c_werror_flag=$ac_save_c_werror_flag
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408 $as_echo "$ac_cv_prog_cc_g" >&6; }
3409 if test "$ac_test_CFLAGS" = set; then
3410 CFLAGS=$ac_save_CFLAGS
3411 elif test $ac_cv_prog_cc_g = yes; then
3412 if test "$GCC" = yes; then
3418 if test "$GCC" = yes; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426 if ${ac_cv_prog_cc_c89+:} false; then :
3427 $as_echo_n "(cached) " >&6
3429 ac_cv_prog_cc_c89=no
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3437 struct buf { int x; };
3438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3439 static char *e (p, i)
3445 static char *f (char * (*g) (char **, int), char **p, ...)
3450 s = g (p, va_arg (v,int));
3455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3456 function prototypes and stuff, but not '\xHH' hex character constants.
3457 These don't provoke an error unfortunately, instead are silently treated
3458 as 'x'. The following induces an error, until -std is added to get
3459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3460 array size at least. It's necessary to write '\x00'==0 to get something
3461 that's true only with -std. */
3462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3465 inside strings and character constants. */
3467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3469 int test (int i, double x);
3470 struct s1 {int (*f) (int a);};
3471 struct s2 {int (*f) (double a);};
3472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3486 CC="$ac_save_CC $ac_arg"
3487 if ac_fn_c_try_compile "$LINENO"; then :
3488 ac_cv_prog_cc_c89=$ac_arg
3490 rm -f core conftest.err conftest.$ac_objext
3491 test "x$ac_cv_prog_cc_c89" != "xno" && break
3493 rm -f conftest.$ac_ext
3498 case "x$ac_cv_prog_cc_c89" in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3501 $as_echo "none needed" >&6; } ;;
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3504 $as_echo "unsupported" >&6; } ;;
3506 CC="$CC $ac_cv_prog_cc_c89"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3510 if test "x$ac_cv_prog_cc_c89" != xno; then :
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3526 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3527 if ${am_cv_prog_cc_c_o+:} false; then :
3528 $as_echo_n "(cached) " >&6
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 # Make sure it works both with $CC and with simple cc.
3542 # Following AC_PROG_CC_C_O, we do the test twice because some
3543 # compilers refuse to overwrite an existing .o file with -o,
3544 # though they will create one.
3545 am_cv_prog_cc_c_o=yes
3547 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3548 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } \
3552 && test -f conftest2.$ac_objext; then
3555 am_cv_prog_cc_c_o=no
3559 rm -f core conftest*
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3563 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3564 if test "$am_cv_prog_cc_c_o" != yes; then
3565 # Losing compiler, so override with the script.
3566 # FIXME: It is wrong to rewrite CC.
3567 # But if we don't then we get into trouble of one sort or another.
3568 # A longer-term fix would be to have automake use am__CC in this case,
3569 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3570 CC="$am_aux_dir/compile $CC"
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3581 $as_echo_n "checking for library containing strerror... " >&6; }
3582 if ${ac_cv_search_strerror+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 ac_func_search_save_LIBS=$LIBS
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3589 /* Override any GCC internal prototype to avoid an error.
3590 Use char because int might match the return type of a GCC
3591 builtin and then its argument prototype would still apply. */
3604 for ac_lib in '' cposix; do
3605 if test -z "$ac_lib"; then
3606 ac_res="none required"
3609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3611 if ac_fn_c_try_link "$LINENO"; then :
3612 ac_cv_search_strerror=$ac_res
3614 rm -f core conftest.err conftest.$ac_objext \
3616 if ${ac_cv_search_strerror+:} false; then :
3620 if ${ac_cv_search_strerror+:} false; then :
3623 ac_cv_search_strerror=no
3626 LIBS=$ac_func_search_save_LIBS
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3629 $as_echo "$ac_cv_search_strerror" >&6; }
3630 ac_res=$ac_cv_search_strerror
3631 if test "$ac_res" != no; then :
3632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3637 am__api_version='1.15'
3639 # Find a good install program. We prefer a C program (faster),
3640 # so one script is as good as another. But avoid the broken or
3641 # incompatible versions:
3642 # SysV /etc/install, /usr/sbin/install
3643 # SunOS /usr/etc/install
3644 # IRIX /sbin/install
3646 # AmigaOS /C/install, which installs bootblocks on floppy discs
3647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3650 # OS/2's system install, which has a completely different semantic
3651 # ./install, which can be erroneously created by make from ./install.sh.
3652 # Reject install programs that cannot install multiple files.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3654 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3655 if test -z "$INSTALL"; then
3656 if ${ac_cv_path_install+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 # Account for people who put trailing slashes in PATH elements.
3665 case $as_dir/ in #((
3666 ./ | .// | /[cC]/* | \
3667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3671 # OSF1 and SCO ODT 3.0 have their own names for install.
3672 # Don't use installbsd from OSF since it installs stuff as root
3674 for ac_prog in ginstall scoinst install; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3677 if test $ac_prog = install &&
3678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # AIX install. It has an incompatible calling convention.
3681 elif test $ac_prog = install &&
3682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683 # program-specific install script used by HP pwplus--don't use.
3686 rm -rf conftest.one conftest.two conftest.dir
3687 echo one > conftest.one
3688 echo two > conftest.two
3690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3691 test -s conftest.one && test -s conftest.two &&
3692 test -s conftest.dir/conftest.one &&
3693 test -s conftest.dir/conftest.two
3695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708 rm -rf conftest.one conftest.two conftest.dir
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 INSTALL=$ac_install_sh
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3722 $as_echo "$INSTALL" >&6; }
3724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725 # It thinks the first close brace ends the variable substitution.
3726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3733 $as_echo_n "checking whether build environment is sane... " >&6; }
3734 # Reject unsafe characters in $srcdir or the absolute working directory
3735 # name. Accept space and tab only in the latter.
3739 *[\\\"\#\$\&\'\`$am_lf]*)
3740 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3743 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3744 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3747 # Do 'set' in a subshell so we don't clobber the current shell's
3748 # arguments. Must try -L first in case configure is actually a
3749 # symlink; some systems play weird games with the mod time of symlinks
3750 # (eg FreeBSD returns the mod time of the symlink's containing
3754 for am_try in 1 2; do
3755 echo "timestamp, slept: $am_has_slept" > conftest.file
3756 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3757 if test "$*" = "X"; then
3759 set X `ls -t "$srcdir/configure" conftest.file`
3761 if test "$*" != "X $srcdir/configure conftest.file" \
3762 && test "$*" != "X conftest.file $srcdir/configure"; then
3764 # If neither matched, then we have a broken ls. This can happen
3765 # if, for instance, CONFIG_SHELL is bash and it inherits a
3766 # broken ls alias from the environment. This has actually
3767 # happened. Such a system could not be considered "sane".
3768 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3769 alias in your environment" "$LINENO" 5
3771 if test "$2" = conftest.file || test $am_try -eq 2; then
3778 test "$2" = conftest.file
3784 as_fn_error $? "newly created file is older than distributed files!
3785 Check your system clock" "$LINENO" 5
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 $as_echo "yes" >&6; }
3789 # If we didn't sleep, we still need to ensure time stamps of config.status and
3790 # generated files are strictly newer.
3792 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3799 test "$program_prefix" != NONE &&
3800 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3801 # Use a double $ so make ignores it.
3802 test "$program_suffix" != NONE &&
3803 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3804 # Double any \ or $.
3805 # By default was `s,x,x', remove it if useless.
3806 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3807 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3809 if test x"${MISSING+set}" != xset; then
3812 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3814 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3817 # Use eval to expand $SHELL
3818 if eval "$MISSING --is-lightweight"; then
3819 am_missing_run="$MISSING "
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3823 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3826 if test x"${install_sh+set}" != xset; then
3829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3831 install_sh="\${SHELL} $am_aux_dir/install-sh"
3835 # Installed binaries are usually stripped using 'strip' when the user
3836 # run "make install-strip". However 'strip' might not be the right
3837 # tool to use in cross-compilation environments, therefore Automake
3838 # will honor the 'STRIP' environment variable to overrule this program.
3839 if test "$cross_compiling" != no; then
3840 if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3842 set dummy ${ac_tool_prefix}strip; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_prog_STRIP+:} false; then :
3846 $as_echo_n "(cached) " >&6
3848 if test -n "$STRIP"; then
3849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 STRIP=$ac_cv_prog_STRIP
3869 if test -n "$STRIP"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3871 $as_echo "$STRIP" >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3879 if test -z "$ac_cv_prog_STRIP"; then
3881 # Extract the first word of "strip", so it can be a program name with args.
3882 set dummy strip; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 if test -n "$ac_ct_STRIP"; then
3889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_STRIP="strip"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3909 if test -n "$ac_ct_STRIP"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3911 $as_echo "$ac_ct_STRIP" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3917 if test "x$ac_ct_STRIP" = x; then
3920 case $cross_compiling:$ac_tool_warned in
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3924 ac_tool_warned=yes ;;
3929 STRIP="$ac_cv_prog_STRIP"
3933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3937 if test -z "$MKDIR_P"; then
3938 if ${ac_cv_path_mkdir+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3945 test -z "$as_dir" && as_dir=.
3946 for ac_prog in mkdir gmkdir; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3949 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3950 'mkdir (GNU coreutils) '* | \
3951 'mkdir (coreutils) '* | \
3952 'mkdir (fileutils) '4.1*)
3953 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3963 test -d ./--version && rmdir ./--version
3964 if test "${ac_cv_path_mkdir+set}" = set; then
3965 MKDIR_P="$ac_cv_path_mkdir -p"
3967 # As a last resort, use the slow shell script. Don't cache a
3968 # value for MKDIR_P within a source directory, because that will
3969 # break other packages using the cache if that directory is
3970 # removed, or if the value is a relative name.
3971 MKDIR_P="$ac_install_sh -d"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3975 $as_echo "$MKDIR_P" >&6; }
3977 for ac_prog in gawk mawk nawk awk
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_AWK+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$AWK"; then
3987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_AWK="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$AWK"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4009 $as_echo "$AWK" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$AWK" && break
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4020 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4022 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4023 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 cat >conftest.make <<\_ACEOF
4029 @echo '@@@%%%=$(MAKE)=@@@%%%'
4031 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4032 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4034 eval ac_cv_prog_make_${ac_make}_set=yes;;
4036 eval ac_cv_prog_make_${ac_make}_set=no;;
4040 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042 $as_echo "yes" >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4047 SET_MAKE="MAKE=${MAKE-make}"
4050 rm -rf .tst 2>/dev/null
4051 mkdir .tst 2>/dev/null
4052 if test -d .tst; then
4057 rmdir .tst 2>/dev/null
4059 DEPDIR="${am__leading_dot}deps"
4061 ac_config_commands="$ac_config_commands depfiles"
4064 am_make=${MAKE-make}
4065 cat > confinc << 'END'
4067 @echo this is the am__doit target
4070 # If we don't find an include directive, just comment out the code.
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4072 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4076 # First try GNU make style include.
4077 echo "include confinc" > confmf
4078 # Ignore all kinds of additional output from 'make'.
4079 case `$am_make -s -f confmf 2> /dev/null` in #(
4080 *the\ am__doit\ target*)
4086 # Now try BSD make style include.
4087 if test "$am__include" = "#"; then
4088 echo '.include "confinc"' > confmf
4089 case `$am_make -s -f confmf 2> /dev/null` in #(
4090 *the\ am__doit\ target*)
4091 am__include=.include
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4100 $as_echo "$_am_result" >&6; }
4101 rm -f confinc confmf
4103 # Check whether --enable-dependency-tracking was given.
4104 if test "${enable_dependency_tracking+set}" = set; then :
4105 enableval=$enable_dependency_tracking;
4108 if test "x$enable_dependency_tracking" != xno; then
4109 am_depcomp="$ac_aux_dir/depcomp"
4113 if test "x$enable_dependency_tracking" != xno; then
4122 # Check whether --enable-silent-rules was given.
4123 if test "${enable_silent_rules+set}" = set; then :
4124 enableval=$enable_silent_rules;
4127 case $enable_silent_rules in # (((
4128 yes) AM_DEFAULT_VERBOSITY=0;;
4129 no) AM_DEFAULT_VERBOSITY=1;;
4130 *) AM_DEFAULT_VERBOSITY=1;;
4132 am_make=${MAKE-make}
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4134 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4135 if ${am_cv_make_support_nested_variables+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 if $as_echo 'TRUE=$(BAR$(V))
4144 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4145 am_cv_make_support_nested_variables=yes
4147 am_cv_make_support_nested_variables=no
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4151 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4152 if test $am_cv_make_support_nested_variables = yes; then
4154 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4156 AM_V=$AM_DEFAULT_VERBOSITY
4157 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4161 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4162 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4163 # is not polluted with repeated "-I."
4164 am__isrc=' -I$(srcdir)'
4165 # test to see if srcdir already configured
4166 if test -f $srcdir/config.status; then
4167 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4171 # test whether we have cygpath
4172 if test -z "$CYGPATH_W"; then
4173 if (cygpath --version) >/dev/null 2>/dev/null; then
4174 CYGPATH_W='cygpath -w'
4181 # Define the identity of the package.
4186 cat >>confdefs.h <<_ACEOF
4187 #define PACKAGE "$PACKAGE"
4191 cat >>confdefs.h <<_ACEOF
4192 #define VERSION "$VERSION"
4195 # Some tools Automake needs.
4197 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4200 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4203 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4206 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4209 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4211 # For better backward compatibility. To be removed once Automake 1.9.x
4212 # dies out for good. For more background, see:
4213 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4214 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4215 mkdir_p='$(MKDIR_P)'
4217 # We need awk for the "check" target (and possibly the TAP driver). The
4218 # system "awk" is bad on some platforms.
4219 # Always define AMTAR for backward compatibility. Yes, it's still used
4220 # in the wild :-( We should find a proper way to deprecate it ...
4224 # We'll loop over all known methods to create a tar archive until one works.
4225 _am_tools='gnutar pax cpio none'
4227 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4233 depcc="$CC" am_compiler_list=
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241 # We make a subdir and do the tests there. Otherwise we can end up
4242 # making bogus files that we don't know about and never remove. For
4243 # instance it was reported that on HP-UX the gcc test will end up
4244 # making a dummy file named 'D' -- because '-MD' means "put the output
4248 # Copy depcomp to subdir because otherwise we won't find it if we're
4249 # using a relative directory.
4250 cp "$am_depcomp" conftest.dir
4252 # We will build objects and dependencies in a subdirectory because
4253 # it helps to detect inapplicable dependency modes. For instance
4254 # both Tru64's cc and ICC support -MD to output dependencies as a
4255 # side effect of compilation, but ICC will put the dependencies in
4256 # the current directory while Tru64 will put them in the object
4260 am_cv_CC_dependencies_compiler_type=none
4261 if test "$am_compiler_list" = ""; then
4262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4265 case " $depcc " in #(
4266 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4269 for depmode in $am_compiler_list; do
4270 # Setup a source with many dependencies, because some compilers
4271 # like to wrap large dependency lists on column 80 (with \), and
4272 # we should not choose a depcomp mode which is confused by this.
4274 # We need to recreate these files for each test, as the compiler may
4275 # overwrite some of them when testing with obscure command lines.
4276 # This happens at least with the AIX C compiler.
4278 for i in 1 2 3 4 5 6; do
4279 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4281 # Solaris 10 /bin/sh.
4282 echo '/* dummy */' > sub/conftst$i.h
4284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4286 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4287 # mode. It turns out that the SunPro C++ compiler does not properly
4288 # handle '-M -o', and we need to detect this. Also, some Intel
4289 # versions had trouble with output in subdirs.
4290 am__obj=sub/conftest.${OBJEXT-o}
4291 am__minus_obj="-o $am__obj"
4294 # This depmode causes a compiler race in universal mode.
4295 test "$am__universal" = false || continue
4298 # After this tag, mechanisms are not by side-effect, so they'll
4299 # only be used when explicitly requested.
4300 if test "x$enable_dependency_tracking" = xyes; then
4306 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4307 # This compiler won't grok '-c -o', but also, the minuso test has
4308 # not run yet. These depmodes are late enough in the game, and
4309 # so weak that their functioning should not be impacted.
4310 am__obj=conftest.${OBJEXT-o}
4315 if depmode=$depmode \
4316 source=sub/conftest.c object=$am__obj \
4317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319 >/dev/null 2>conftest.err &&
4320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324 # icc doesn't choke on unknown options, it will just issue warnings
4325 # or remarks (even with -Werror). So we grep stderr for any message
4326 # that says an option was ignored or not supported.
4327 # When given -MP, icc 7.0 and 7.1 complain thusly:
4328 # icc: Command line warning: ignoring option '-M'; no argument required
4329 # The diagnosis changed in icc 8.0:
4330 # icc: Command line remark: option '-MP' not supported
4331 if (grep 'ignoring option' conftest.err ||
4332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333 am_cv_CC_dependencies_compiler_type=$depmode
4342 am_cv_CC_dependencies_compiler_type=none
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4351 test "x$enable_dependency_tracking" != xno \
4352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4354 am__fastdepCC_FALSE='#'
4356 am__fastdepCC_TRUE='#'
4357 am__fastdepCC_FALSE=
4362 # POSIX will say in a future version that running "rm -f" with no argument
4363 # is OK; and we want to be able to make that assumption in our Makefile
4364 # recipes. So use an aggressive probe to check that the usage we want is
4365 # actually supported "in the wild" to an acceptable degree.
4366 # See automake bug#10828.
4367 # To make any issue more visible, cause the running configure to be aborted
4368 # by default if the 'rm' program in use doesn't match our expectations; the
4369 # user can still override this though.
4370 if rm -f && rm -fr && rm -rf; then : OK; else
4374 Your 'rm' program seems unable to run without file operands specified
4375 on the command line, even when the '-f' option is present. This is contrary
4376 to the behaviour of most rm programs out there, and not conforming with
4377 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4379 Please tell bug-automake@gnu.org about your system, including the value
4380 of your $PATH and any error possibly output before this message. This
4381 can help us improve future automake versions.
4384 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4385 echo 'Configuration will proceed anyway, since you have set the' >&2
4386 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4390 Aborting the configuration process, to ensure you take notice of the issue.
4392 You can download and install GNU coreutils to get an 'rm' implementation
4393 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4395 If you want to complete the configuration process using your problematic
4396 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4397 to "yes", and re-run configure.
4400 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4406 ac_cpp='$CPP $CPPFLAGS'
4407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_CC+:} false; then :
4416 $as_echo_n "(cached) " >&6
4418 if test -n "$CC"; then
4419 ac_cv_prog_CC="$CC" # Let the user override the test.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 if test -n "$CC"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4441 $as_echo "$CC" >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4449 if test -z "$ac_cv_prog_CC"; then
4451 # Extract the first word of "gcc", so it can be a program name with args.
4452 set dummy gcc; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 if test -n "$ac_ct_CC"; then
4459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_ac_ct_CC="gcc"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4479 if test -n "$ac_ct_CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4481 $as_echo "$ac_ct_CC" >&6; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4487 if test "x$ac_ct_CC" = x; then
4490 case $cross_compiling:$ac_tool_warned in
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4502 if test -z "$CC"; then
4503 if test -n "$ac_tool_prefix"; then
4504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4505 set dummy ${ac_tool_prefix}cc; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_CC+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 if test -n "$CC"; then
4512 ac_cv_prog_CC="$CC" # Let the user override the test.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_CC="${ac_tool_prefix}cc"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 if test -n "$CC"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4534 $as_echo "$CC" >&6; }
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4543 if test -z "$CC"; then
4544 # Extract the first word of "cc", so it can be a program name with args.
4545 set dummy cc; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4563 ac_prog_rejected=yes
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 if test $ac_prog_rejected = yes; then
4575 # We found a bogon in the path, so make sure we never use it.
4576 set dummy $ac_cv_prog_CC
4578 if test $# != 0; then
4579 # We chose a different compiler from the bogus one.
4580 # However, it has the same basename, so the bogon will be chosen
4581 # first if we set CC to just the basename; use the full file name.
4583 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4589 if test -n "$CC"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591 $as_echo "$CC" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4599 if test -z "$CC"; then
4600 if test -n "$ac_tool_prefix"; then
4601 for ac_prog in cl.exe
4603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_prog_CC+:} false; then :
4608 $as_echo_n "(cached) " >&6
4610 if test -n "$CC"; then
4611 ac_cv_prog_CC="$CC" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test -n "$CC"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4633 $as_echo "$CC" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4640 test -n "$CC" && break
4643 if test -z "$CC"; then
4645 for ac_prog in cl.exe
4647 # Extract the first word of "$ac_prog", so it can be a program name with args.
4648 set dummy $ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$ac_ct_CC"; then
4655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_CC="$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4675 if test -n "$ac_ct_CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4677 $as_echo "$ac_ct_CC" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4684 test -n "$ac_ct_CC" && break
4687 if test "x$ac_ct_CC" = x; then
4690 case $cross_compiling:$ac_tool_warned in
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4703 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "no acceptable C compiler found in \$PATH
4706 See \`config.log' for more details" "$LINENO" 5; }
4708 # Provide some information about the compiler.
4709 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4712 for ac_option in --version -v -V -qversion; do
4713 { { ac_try="$ac_compiler $ac_option >&5"
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4719 $as_echo "$ac_try_echo"; } >&5
4720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4722 if test -s conftest.err; then
4724 ... rest of stderr output deleted ...
4725 10q' conftest.err >conftest.er1
4726 cat conftest.er1 >&5
4728 rm -f conftest.er1 conftest.err
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4735 if ${ac_cv_c_compiler_gnu+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4752 if ac_fn_c_try_compile "$LINENO"; then :
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4763 if test $ac_compiler_gnu = yes; then
4768 ac_test_CFLAGS=${CFLAGS+set}
4769 ac_save_CFLAGS=$CFLAGS
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4772 if ${ac_cv_prog_cc_g+:} false; then :
4773 $as_echo_n "(cached) " >&6
4775 ac_save_c_werror_flag=$ac_c_werror_flag
4776 ac_c_werror_flag=yes
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4790 if ac_fn_c_try_compile "$LINENO"; then :
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4805 if ac_fn_c_try_compile "$LINENO"; then :
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4821 if ac_fn_c_try_compile "$LINENO"; then :
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 ac_c_werror_flag=$ac_save_c_werror_flag
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4832 $as_echo "$ac_cv_prog_cc_g" >&6; }
4833 if test "$ac_test_CFLAGS" = set; then
4834 CFLAGS=$ac_save_CFLAGS
4835 elif test $ac_cv_prog_cc_g = yes; then
4836 if test "$GCC" = yes; then
4842 if test "$GCC" = yes; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4850 if ${ac_cv_prog_cc_c89+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 ac_cv_prog_cc_c89=no
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4861 struct buf { int x; };
4862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4863 static char *e (p, i)
4869 static char *f (char * (*g) (char **, int), char **p, ...)
4874 s = g (p, va_arg (v,int));
4879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4880 function prototypes and stuff, but not '\xHH' hex character constants.
4881 These don't provoke an error unfortunately, instead are silently treated
4882 as 'x'. The following induces an error, until -std is added to get
4883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4884 array size at least. It's necessary to write '\x00'==0 to get something
4885 that's true only with -std. */
4886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4889 inside strings and character constants. */
4891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4893 int test (int i, double x);
4894 struct s1 {int (*f) (int a);};
4895 struct s2 {int (*f) (double a);};
4896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4910 CC="$ac_save_CC $ac_arg"
4911 if ac_fn_c_try_compile "$LINENO"; then :
4912 ac_cv_prog_cc_c89=$ac_arg
4914 rm -f core conftest.err conftest.$ac_objext
4915 test "x$ac_cv_prog_cc_c89" != "xno" && break
4917 rm -f conftest.$ac_ext
4922 case "x$ac_cv_prog_cc_c89" in
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4925 $as_echo "none needed" >&6; } ;;
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4928 $as_echo "unsupported" >&6; } ;;
4930 CC="$CC $ac_cv_prog_cc_c89"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4934 if test "x$ac_cv_prog_cc_c89" != xno; then :
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4950 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4951 if ${am_cv_prog_cc_c_o+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4965 # Make sure it works both with $CC and with simple cc.
4966 # Following AC_PROG_CC_C_O, we do the test twice because some
4967 # compilers refuse to overwrite an existing .o file with -o,
4968 # though they will create one.
4969 am_cv_prog_cc_c_o=yes
4971 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4972 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } \
4976 && test -f conftest2.$ac_objext; then
4979 am_cv_prog_cc_c_o=no
4983 rm -f core conftest*
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4987 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4988 if test "$am_cv_prog_cc_c_o" != yes; then
4989 # Losing compiler, so override with the script.
4990 # FIXME: It is wrong to rewrite CC.
4991 # But if we don't then we get into trouble of one sort or another.
4992 # A longer-term fix would be to have automake use am__CC in this case,
4993 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4994 CC="$am_aux_dir/compile $CC"
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5010 # On Suns, sometimes $CPP names a directory.
5011 if test -n "$CPP" && test -d "$CPP"; then
5014 if test -z "$CPP"; then
5015 if ${ac_cv_prog_CPP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5018 # Double quotes because CPP needs to be expanded
5019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5022 for ac_c_preproc_warn_flag in '' yes
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5033 # include <limits.h>
5035 # include <assert.h>
5039 if ac_fn_c_try_cpp "$LINENO"; then :
5042 # Broken: fails on valid input.
5045 rm -f conftest.err conftest.i conftest.$ac_ext
5047 # OK, works on sane cases. Now check whether nonexistent headers
5048 # can be detected and how.
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051 #include <ac_nonexistent.h>
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5054 # Broken: success on invalid input.
5057 # Passes both tests.
5061 rm -f conftest.err conftest.i conftest.$ac_ext
5064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5065 rm -f conftest.i conftest.err conftest.$ac_ext
5066 if $ac_preproc_ok; then :
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5079 $as_echo "$CPP" >&6; }
5081 for ac_c_preproc_warn_flag in '' yes
5083 # Use a header file that comes with gcc, so configuring glibc
5084 # with a fresh cross-compiler works.
5085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086 # <limits.h> exists even on freestanding compilers.
5087 # On the NeXT, cc -E runs the code through the compiler's parser,
5088 # not just through cpp. "Syntax error" is here to catch this case.
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5092 # include <limits.h>
5094 # include <assert.h>
5098 if ac_fn_c_try_cpp "$LINENO"; then :
5101 # Broken: fails on valid input.
5104 rm -f conftest.err conftest.i conftest.$ac_ext
5106 # OK, works on sane cases. Now check whether nonexistent headers
5107 # can be detected and how.
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 #include <ac_nonexistent.h>
5112 if ac_fn_c_try_cpp "$LINENO"; then :
5113 # Broken: success on invalid input.
5116 # Passes both tests.
5120 rm -f conftest.err conftest.i conftest.$ac_ext
5123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124 rm -f conftest.i conftest.err conftest.$ac_ext
5125 if $ac_preproc_ok; then :
5128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5131 See \`config.log' for more details" "$LINENO" 5; }
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5142 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5143 if ${ac_cv_path_GREP+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -z "$GREP"; then
5147 ac_path_GREP_found=false
5148 # Loop through the user's path and test for each of PROGNAME-LIST
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5153 test -z "$as_dir" && as_dir=.
5154 for ac_prog in grep ggrep; do
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5157 as_fn_executable_p "$ac_path_GREP" || continue
5158 # Check for GNU ac_path_GREP and select it if it is found.
5159 # Check for GNU $ac_path_GREP
5160 case `"$ac_path_GREP" --version 2>&1` in
5162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5165 $as_echo_n 0123456789 >"conftest.in"
5168 cat "conftest.in" "conftest.in" >"conftest.tmp"
5169 mv "conftest.tmp" "conftest.in"
5170 cp "conftest.in" "conftest.nl"
5171 $as_echo 'GREP' >> "conftest.nl"
5172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174 as_fn_arith $ac_count + 1 && ac_count=$as_val
5175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5176 # Best one so far, save it but keep looking for a better one
5177 ac_cv_path_GREP="$ac_path_GREP"
5178 ac_path_GREP_max=$ac_count
5180 # 10*(2^10) chars as input seems more than enough
5181 test $ac_count -gt 10 && break
5183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186 $ac_path_GREP_found && break 3
5191 if test -z "$ac_cv_path_GREP"; then
5192 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5195 ac_cv_path_GREP=$GREP
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5200 $as_echo "$ac_cv_path_GREP" >&6; }
5201 GREP="$ac_cv_path_GREP"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5205 $as_echo_n "checking for egrep... " >&6; }
5206 if ${ac_cv_path_EGREP+:} false; then :
5207 $as_echo_n "(cached) " >&6
5209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5210 then ac_cv_path_EGREP="$GREP -E"
5212 if test -z "$EGREP"; then
5213 ac_path_EGREP_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5219 test -z "$as_dir" && as_dir=.
5220 for ac_prog in egrep; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5223 as_fn_executable_p "$ac_path_EGREP" || continue
5224 # Check for GNU ac_path_EGREP and select it if it is found.
5225 # Check for GNU $ac_path_EGREP
5226 case `"$ac_path_EGREP" --version 2>&1` in
5228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5231 $as_echo_n 0123456789 >"conftest.in"
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 $as_echo 'EGREP' >> "conftest.nl"
5238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 as_fn_arith $ac_count + 1 && ac_count=$as_val
5241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_EGREP="$ac_path_EGREP"
5244 ac_path_EGREP_max=$ac_count
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 $ac_path_EGREP_found && break 3
5257 if test -z "$ac_cv_path_EGREP"; then
5258 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5261 ac_cv_path_EGREP=$EGREP
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5267 $as_echo "$ac_cv_path_EGREP" >&6; }
5268 EGREP="$ac_cv_path_EGREP"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5272 $as_echo_n "checking for ANSI C header files... " >&6; }
5273 if ${ac_cv_header_stdc+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5291 if ac_fn_c_try_compile "$LINENO"; then :
5292 ac_cv_header_stdc=yes
5294 ac_cv_header_stdc=no
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 $EGREP "memchr" >/dev/null 2>&1; then :
5309 ac_cv_header_stdc=no
5315 if test $ac_cv_header_stdc = yes; then
5316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then :
5326 ac_cv_header_stdc=no
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then :
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5341 #if ((' ' & 0x0FF) == 0x020)
5342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 # define ISLOWER(c) \
5346 (('a' <= (c) && (c) <= 'i') \
5347 || ('j' <= (c) && (c) <= 'r') \
5348 || ('s' <= (c) && (c) <= 'z'))
5349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 for (i = 0; i < 256; i++)
5358 if (XOR (islower (i), ISLOWER (i))
5359 || toupper (i) != TOUPPER (i))
5364 if ac_fn_c_try_run "$LINENO"; then :
5367 ac_cv_header_stdc=no
5369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5370 conftest.$ac_objext conftest.beam conftest.$ac_ext
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5376 $as_echo "$ac_cv_header_stdc" >&6; }
5377 if test $ac_cv_header_stdc = yes; then
5379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5385 inttypes.h stdint.h unistd.h
5387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5391 cat >>confdefs.h <<_ACEOF
5392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5401 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5402 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5409 if test "$MINIX" = yes; then
5411 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5417 $as_echo "#define _MINIX 1" >>confdefs.h
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5423 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5424 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5425 $as_echo_n "(cached) " >&6
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5430 # define __EXTENSIONS__ 1
5431 $ac_includes_default
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 ac_cv_safe_to_define___extensions__=yes
5443 ac_cv_safe_to_define___extensions__=no
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5448 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5449 test $ac_cv_safe_to_define___extensions__ = yes &&
5450 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5452 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5454 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5456 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5458 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5467 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5472 macro_version='2.2.7a'
5473 macro_revision='1.3134'
5487 ltmain="$ac_aux_dir/ltmain.sh"
5489 # Backslashify metacharacters that are still active within
5490 # double-quoted strings.
5491 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5493 # Same as above, but do not quote variable references.
5494 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5496 # Sed substitution to delay expansion of an escaped shell variable in a
5497 # double_quote_subst'ed string.
5498 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5500 # Sed substitution to delay expansion of an escaped single quote.
5501 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5503 # Sed substitution to avoid accidental globbing in evaled expressions
5504 no_glob_subst='s/\*/\\\*/g'
5506 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5507 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5508 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5511 $as_echo_n "checking how to print strings... " >&6; }
5512 # Test print first, because it will be a builtin if present.
5513 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5514 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5516 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5519 # Use this function as a fallback that always works.
5520 func_fallback_echo ()
5522 eval 'cat <<_LTECHO_EOF
5526 ECHO='func_fallback_echo'
5529 # func_echo_all arg...
5530 # Invoke $ECHO with all args, space-separated.
5537 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5538 $as_echo "printf" >&6; } ;;
5539 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5540 $as_echo "print -r" >&6; } ;;
5541 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5542 $as_echo "cat" >&6; } ;;
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5559 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5560 if ${ac_cv_path_SED+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5564 for ac_i in 1 2 3 4 5 6 7; do
5565 ac_script="$ac_script$as_nl$ac_script"
5567 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5568 { ac_script=; unset ac_script;}
5569 if test -z "$SED"; then
5570 ac_path_SED_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in sed gsed; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5580 as_fn_executable_p "$ac_path_SED" || continue
5581 # Check for GNU ac_path_SED and select it if it is found.
5582 # Check for GNU $ac_path_SED
5583 case `"$ac_path_SED" --version 2>&1` in
5585 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5588 $as_echo_n 0123456789 >"conftest.in"
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 $as_echo '' >> "conftest.nl"
5595 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_SED_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_SED="$ac_path_SED"
5601 ac_path_SED_max=$ac_count
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5609 $ac_path_SED_found && break 3
5614 if test -z "$ac_cv_path_SED"; then
5615 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5623 $as_echo "$ac_cv_path_SED" >&6; }
5624 SED="$ac_cv_path_SED"
5627 test -z "$SED" && SED=sed
5628 Xsed="$SED -e 1s/^X//"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5641 $as_echo_n "checking for fgrep... " >&6; }
5642 if ${ac_cv_path_FGREP+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5646 then ac_cv_path_FGREP="$GREP -F"
5648 if test -z "$FGREP"; then
5649 ac_path_FGREP_found=false
5650 # Loop through the user's path and test for each of PROGNAME-LIST
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5655 test -z "$as_dir" && as_dir=.
5656 for ac_prog in fgrep; do
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5659 as_fn_executable_p "$ac_path_FGREP" || continue
5660 # Check for GNU ac_path_FGREP and select it if it is found.
5661 # Check for GNU $ac_path_FGREP
5662 case `"$ac_path_FGREP" --version 2>&1` in
5664 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5667 $as_echo_n 0123456789 >"conftest.in"
5670 cat "conftest.in" "conftest.in" >"conftest.tmp"
5671 mv "conftest.tmp" "conftest.in"
5672 cp "conftest.in" "conftest.nl"
5673 $as_echo 'FGREP' >> "conftest.nl"
5674 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5676 as_fn_arith $ac_count + 1 && ac_count=$as_val
5677 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5678 # Best one so far, save it but keep looking for a better one
5679 ac_cv_path_FGREP="$ac_path_FGREP"
5680 ac_path_FGREP_max=$ac_count
5682 # 10*(2^10) chars as input seems more than enough
5683 test $ac_count -gt 10 && break
5685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5688 $ac_path_FGREP_found && break 3
5693 if test -z "$ac_cv_path_FGREP"; then
5694 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5697 ac_cv_path_FGREP=$FGREP
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5703 $as_echo "$ac_cv_path_FGREP" >&6; }
5704 FGREP="$ac_cv_path_FGREP"
5707 test -z "$GREP" && GREP=grep
5727 # Check whether --with-gnu-ld was given.
5728 if test "${with_gnu_ld+set}" = set; then :
5729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5735 if test "$GCC" = yes; then
5736 # Check if gcc -print-prog-name=ld gives a path.
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5738 $as_echo_n "checking for ld used by $CC... " >&6; }
5741 # gcc leaves a trailing carriage return which upsets mingw
5742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5747 # Accept absolute paths.
5749 re_direlt='/[^/][^/]*/\.\./'
5750 # Canonicalize the pathname of ld
5751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5755 test -z "$LD" && LD="$ac_prog"
5758 # If it fails, then pretend we aren't using GCC.
5762 # If it is relative, then search for the first ld in PATH.
5766 elif test "$with_gnu_ld" = yes; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5768 $as_echo_n "checking for GNU ld... " >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5771 $as_echo_n "checking for non-GNU ld... " >&6; }
5773 if ${lt_cv_path_LD+:} false; then :
5774 $as_echo_n "(cached) " >&6
5776 if test -z "$LD"; then
5777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778 for ac_dir in $PATH; do
5780 test -z "$ac_dir" && ac_dir=.
5781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5782 lt_cv_path_LD="$ac_dir/$ac_prog"
5783 # Check to see if the program is GNU ld. I'd rather use --version,
5784 # but apparently some variants of GNU ld only accept -v.
5785 # Break only if it was the GNU/non-GNU ld that we prefer.
5786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5787 *GNU* | *'with BFD'*)
5788 test "$with_gnu_ld" != no && break
5791 test "$with_gnu_ld" != yes && break
5798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5803 if test -n "$LD"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5805 $as_echo "$LD" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5810 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5813 if ${lt_cv_prog_gnu_ld+:} false; then :
5814 $as_echo_n "(cached) " >&6
5816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5817 case `$LD -v 2>&1 </dev/null` in
5818 *GNU* | *'with BFD'*)
5819 lt_cv_prog_gnu_ld=yes
5822 lt_cv_prog_gnu_ld=no
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5828 with_gnu_ld=$lt_cv_prog_gnu_ld
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5839 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5840 if ${lt_cv_path_NM+:} false; then :
5841 $as_echo_n "(cached) " >&6
5843 if test -n "$NM"; then
5844 # Let the user override the test.
5847 lt_nm_to_check="${ac_tool_prefix}nm"
5848 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5849 lt_nm_to_check="$lt_nm_to_check nm"
5851 for lt_tmp_nm in $lt_nm_to_check; do
5852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5853 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5855 test -z "$ac_dir" && ac_dir=.
5856 tmp_nm="$ac_dir/$lt_tmp_nm"
5857 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5858 # Check to see if the nm accepts a BSD-compat flag.
5859 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5860 # nm: unknown option "B" ignored
5861 # Tru64's nm complains that /dev/null is an invalid object file
5862 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5863 */dev/null* | *'Invalid file or object type'*)
5864 lt_cv_path_NM="$tmp_nm -B"
5868 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5870 lt_cv_path_NM="$tmp_nm -p"
5874 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5875 continue # so that we can try to find one that supports BSD flags
5884 : ${lt_cv_path_NM=no}
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5888 $as_echo "$lt_cv_path_NM" >&6; }
5889 if test "$lt_cv_path_NM" != "no"; then
5892 # Didn't find any BSD compatible name lister, look for dumpbin.
5893 if test -n "$DUMPBIN"; then :
5894 # Let the user override the test.
5896 if test -n "$ac_tool_prefix"; then
5897 for ac_prog in dumpbin "link -dump"
5899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_prog_DUMPBIN+:} false; then :
5904 $as_echo_n "(cached) " >&6
5906 if test -n "$DUMPBIN"; then
5907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 DUMPBIN=$ac_cv_prog_DUMPBIN
5927 if test -n "$DUMPBIN"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5929 $as_echo "$DUMPBIN" >&6; }
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5936 test -n "$DUMPBIN" && break
5939 if test -z "$DUMPBIN"; then
5940 ac_ct_DUMPBIN=$DUMPBIN
5941 for ac_prog in dumpbin "link -dump"
5943 # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy $ac_prog; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -n "$ac_ct_DUMPBIN"; then
5951 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5971 if test -n "$ac_ct_DUMPBIN"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5973 $as_echo "$ac_ct_DUMPBIN" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5980 test -n "$ac_ct_DUMPBIN" && break
5983 if test "x$ac_ct_DUMPBIN" = x; then
5986 case $cross_compiling:$ac_tool_warned in
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5992 DUMPBIN=$ac_ct_DUMPBIN
5996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5998 DUMPBIN="$DUMPBIN -symbols"
6006 if test "$DUMPBIN" != ":"; then
6010 test -z "$NM" && NM=nm
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6018 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6019 if ${lt_cv_nm_interface+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 lt_cv_nm_interface="BSD nm"
6023 echo "int some_variable = 0;" > conftest.$ac_ext
6024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6025 (eval "$ac_compile" 2>conftest.err)
6026 cat conftest.err >&5
6027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6029 cat conftest.err >&5
6030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6031 cat conftest.out >&5
6032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6033 lt_cv_nm_interface="MS dumpbin"
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6038 $as_echo "$lt_cv_nm_interface" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6041 $as_echo_n "checking whether ln -s works... " >&6; }
6043 if test "$LN_S" = "ln -s"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045 $as_echo "yes" >&6; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6048 $as_echo "no, using $LN_S" >&6; }
6051 # find the maximum length of command line arguments
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6053 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6054 if ${lt_cv_sys_max_cmd_len+:} false; then :
6055 $as_echo_n "(cached) " >&6
6062 # On DJGPP, this test can blow up pretty badly due to problems in libc
6063 # (any single argument exceeding 2000 bytes causes a buffer overrun
6064 # during glob expansion). Even if it were fixed, the result of this
6065 # check would be larger than it should be.
6066 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6070 # Under GNU Hurd, this test is not required because there is
6071 # no limit to the length of command line arguments.
6072 # Libtool will interpret -1 as no limit whatsoever
6073 lt_cv_sys_max_cmd_len=-1;
6076 cygwin* | mingw* | cegcc*)
6077 # On Win9x/ME, this test blows up -- it succeeds, but takes
6078 # about 5 minutes as the teststring grows exponentially.
6079 # Worse, since 9x/ME are not pre-emptively multitasking,
6080 # you end up with a "frozen" computer, even though with patience
6081 # the test eventually succeeds (with a max line length of 256k).
6082 # Instead, let's just punt: use the minimum linelength reported by
6083 # all of the supported platforms: 8192 (on NT/2K/XP).
6084 lt_cv_sys_max_cmd_len=8192;
6088 # On MiNT this can take a long time and run out of memory.
6089 lt_cv_sys_max_cmd_len=8192;
6093 # On AmigaOS with pdksh, this test takes hours, literally.
6094 # So we just punt and use a minimum line length of 8192.
6095 lt_cv_sys_max_cmd_len=8192;
6098 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6099 # This has been around since 386BSD, at least. Likely further.
6100 if test -x /sbin/sysctl; then
6101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6102 elif test -x /usr/sbin/sysctl; then
6103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6107 # And add a safety zone
6108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6113 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6114 lt_cv_sys_max_cmd_len=196608
6118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6120 # nice to cause kernel panics so lets avoid the loop below.
6121 # First set a reasonable default.
6122 lt_cv_sys_max_cmd_len=16384
6124 if test -x /sbin/sysconfig; then
6125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6131 lt_cv_sys_max_cmd_len=102400
6133 sysv5* | sco5v6* | sysv4.2uw2*)
6134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6135 if test -n "$kargmax"; then
6136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6138 lt_cv_sys_max_cmd_len=32768
6142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6143 if test -n "$lt_cv_sys_max_cmd_len"; then
6144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6147 # Make teststring a little bigger before we do anything with it.
6148 # a 1K string should be a reasonable start.
6149 for i in 1 2 3 4 5 6 7 8 ; do
6150 teststring=$teststring$teststring
6152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6153 # If test is not a shell built-in, we'll probably end up computing a
6154 # maximum length that is only half of the actual maximum length, but
6156 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6158 test $i != 17 # 1/2 MB should be enough
6161 teststring=$teststring$teststring
6163 # Only check the string length outside the loop.
6164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6166 # Add a significant safety factor because C++ compilers can tack on
6167 # massive amounts of additional arguments before passing them to the
6168 # linker. It appears as though 1/2 is a usable value.
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6176 if test -n $lt_cv_sys_max_cmd_len ; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6178 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6181 $as_echo "none" >&6; }
6183 max_cmd_len=$lt_cv_sys_max_cmd_len
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6195 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6196 # Try some XSI features
6199 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6201 && eval 'test $(( 1 + 1 )) -eq 2 \
6202 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6205 $as_echo "$xsi_shell" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6209 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6211 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6213 && lt_shell_append=yes
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6215 $as_echo "$lt_shell_append" >&6; }
6218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6228 # test EBCDIC or ASCII
6229 case `echo X|tr X '\101'` in
6230 A) # ASCII based system
6231 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6232 lt_SP2NL='tr \040 \012'
6233 lt_NL2SP='tr \015\012 \040\040'
6235 *) # EBCDIC based system
6236 lt_SP2NL='tr \100 \n'
6237 lt_NL2SP='tr \r\n \100\100'
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6250 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6251 if ${lt_cv_ld_reload_flag+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 lt_cv_ld_reload_flag='-r'
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6257 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6258 reload_flag=$lt_cv_ld_reload_flag
6259 case $reload_flag in
6261 *) reload_flag=" $reload_flag" ;;
6263 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6266 if test "$GCC" = yes; then
6267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_OBJDUMP+:} false; then :
6288 $as_echo_n "(cached) " >&6
6290 if test -n "$OBJDUMP"; then
6291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 OBJDUMP=$ac_cv_prog_OBJDUMP
6311 if test -n "$OBJDUMP"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6313 $as_echo "$OBJDUMP" >&6; }
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6321 if test -z "$ac_cv_prog_OBJDUMP"; then
6322 ac_ct_OBJDUMP=$OBJDUMP
6323 # Extract the first word of "objdump", so it can be a program name with args.
6324 set dummy objdump; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 if test -n "$ac_ct_OBJDUMP"; then
6331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6351 if test -n "$ac_ct_OBJDUMP"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6353 $as_echo "$ac_ct_OBJDUMP" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6359 if test "x$ac_ct_OBJDUMP" = x; then
6362 case $cross_compiling:$ac_tool_warned in
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6368 OBJDUMP=$ac_ct_OBJDUMP
6371 OBJDUMP="$ac_cv_prog_OBJDUMP"
6374 test -z "$OBJDUMP" && OBJDUMP=objdump
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6386 if ${lt_cv_deplibs_check_method+:} false; then :
6387 $as_echo_n "(cached) " >&6
6389 lt_cv_file_magic_cmd='$MAGIC_CMD'
6390 lt_cv_file_magic_test_file=
6391 lt_cv_deplibs_check_method='unknown'
6392 # Need to set the preceding variable on all platforms that support
6393 # interlibrary dependencies.
6394 # 'none' -- dependencies not supported.
6395 # `unknown' -- same as none, but documents that we really don't know.
6396 # 'pass_all' -- all dependencies passed with no checks.
6397 # 'test_compile' -- check by making test program.
6398 # 'file_magic [[regex]]' -- check by looking for files in library path
6399 # which responds to the $file_magic_cmd with a given extended regex.
6400 # If you have `file' or equivalent on your system and you're not sure
6401 # whether `pass_all' will *always* work, you probably want this one.
6405 lt_cv_deplibs_check_method=pass_all
6409 lt_cv_deplibs_check_method=pass_all
6413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6414 lt_cv_file_magic_cmd='/usr/bin/file -L'
6415 lt_cv_file_magic_test_file=/shlib/libc.so
6419 # func_win32_libid is a shell function defined in ltmain.sh
6420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6421 lt_cv_file_magic_cmd='func_win32_libid'
6425 # Base MSYS/MinGW do not provide the 'file' command needed by
6426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6427 # unless we find 'file', for example because we are cross-compiling.
6428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6431 lt_cv_file_magic_cmd='func_win32_libid'
6433 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6434 lt_cv_file_magic_cmd='$OBJDUMP -f'
6439 # use the weaker test based on 'objdump'. See mingw*.
6440 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6441 lt_cv_file_magic_cmd='$OBJDUMP -f'
6444 darwin* | rhapsody*)
6445 lt_cv_deplibs_check_method=pass_all
6448 freebsd* | dragonfly*)
6449 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6452 # Not sure whether the presence of OpenBSD here was a mistake.
6453 # Let's accept both of them until this is cleared up.
6454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6455 lt_cv_file_magic_cmd=/usr/bin/file
6456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6460 lt_cv_deplibs_check_method=pass_all
6465 lt_cv_deplibs_check_method=pass_all
6469 lt_cv_deplibs_check_method=pass_all
6472 hpux10.20* | hpux11*)
6473 lt_cv_file_magic_cmd=/usr/bin/file
6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6477 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6480 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]'
6481 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6485 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6491 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6495 irix5* | irix6* | nonstopux*)
6497 *-32|*"-32 ") libmagic=32-bit;;
6498 *-n32|*"-n32 ") libmagic=N32;;
6499 *-64|*"-64 ") libmagic=64-bit;;
6500 *) libmagic=never-match;;
6502 lt_cv_deplibs_check_method=pass_all
6505 # This must be Linux ELF.
6506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6507 lt_cv_deplibs_check_method=pass_all
6511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6520 lt_cv_file_magic_cmd=/usr/bin/file
6521 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6525 lt_cv_deplibs_check_method=pass_all
6529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6536 osf3* | osf4* | osf5*)
6537 lt_cv_deplibs_check_method=pass_all
6541 lt_cv_deplibs_check_method=pass_all
6545 lt_cv_deplibs_check_method=pass_all
6548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6549 lt_cv_deplibs_check_method=pass_all
6553 case $host_vendor in
6555 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]'
6556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6559 lt_cv_deplibs_check_method=pass_all
6562 lt_cv_file_magic_cmd='/bin/file'
6563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6566 lt_cv_file_magic_cmd='/bin/file'
6567 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6568 lt_cv_file_magic_test_file=/lib/libc.so
6571 lt_cv_deplibs_check_method=pass_all
6574 lt_cv_deplibs_check_method=pass_all
6580 lt_cv_deplibs_check_method=pass_all
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6586 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6587 file_magic_cmd=$lt_cv_file_magic_cmd
6588 deplibs_check_method=$lt_cv_deplibs_check_method
6589 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}ar; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_AR+:} false; then :
6608 $as_echo_n "(cached) " >&6
6610 if test -n "$AR"; then
6611 ac_cv_prog_AR="$AR" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_AR="${ac_tool_prefix}ar"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 if test -n "$AR"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6633 $as_echo "$AR" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6641 if test -z "$ac_cv_prog_AR"; then
6643 # Extract the first word of "ar", so it can be a program name with args.
6644 set dummy ar; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 if test -n "$ac_ct_AR"; then
6651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_AR="ar"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6671 if test -n "$ac_ct_AR"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6673 $as_echo "$ac_ct_AR" >&6; }
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6679 if test "x$ac_ct_AR" = x; then
6682 case $cross_compiling:$ac_tool_warned in
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6694 test -z "$AR" && AR=ar
6695 test -z "$AR_FLAGS" && AR_FLAGS=cru
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}strip; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_STRIP+:} false; then :
6713 $as_echo_n "(cached) " >&6
6715 if test -n "$STRIP"; then
6716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 STRIP=$ac_cv_prog_STRIP
6736 if test -n "$STRIP"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6738 $as_echo "$STRIP" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6746 if test -z "$ac_cv_prog_STRIP"; then
6748 # Extract the first word of "strip", so it can be a program name with args.
6749 set dummy strip; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6753 $as_echo_n "(cached) " >&6
6755 if test -n "$ac_ct_STRIP"; then
6756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_STRIP="strip"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6776 if test -n "$ac_ct_STRIP"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6778 $as_echo "$ac_ct_STRIP" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6784 if test "x$ac_ct_STRIP" = x; then
6787 case $cross_compiling:$ac_tool_warned in
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6796 STRIP="$ac_cv_prog_STRIP"
6799 test -z "$STRIP" && STRIP=:
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_RANLIB+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$RANLIB"; then
6815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 RANLIB=$ac_cv_prog_RANLIB
6835 if test -n "$RANLIB"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6837 $as_echo "$RANLIB" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6845 if test -z "$ac_cv_prog_RANLIB"; then
6846 ac_ct_RANLIB=$RANLIB
6847 # Extract the first word of "ranlib", so it can be a program name with args.
6848 set dummy ranlib; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 if test -n "$ac_ct_RANLIB"; then
6855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_ac_ct_RANLIB="ranlib"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6875 if test -n "$ac_ct_RANLIB"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6877 $as_echo "$ac_ct_RANLIB" >&6; }
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6883 if test "x$ac_ct_RANLIB" = x; then
6886 case $cross_compiling:$ac_tool_warned in
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6892 RANLIB=$ac_ct_RANLIB
6895 RANLIB="$ac_cv_prog_RANLIB"
6898 test -z "$RANLIB" && RANLIB=:
6905 # Determine commands to create old-style static archives.
6906 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6907 old_postinstall_cmds='chmod 644 $oldlib'
6908 old_postuninstall_cmds=
6910 if test -n "$RANLIB"; then
6913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6919 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6924 lock_old_archive_extraction=yes ;;
6926 lock_old_archive_extraction=no ;;
6967 # If no C compiler was specified, use CC.
6970 # If no C compiler flags were specified, use CFLAGS.
6971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6973 # Allow CC to be a program name with arguments.
6977 # Check for command to grab the raw symbol name followed by C symbol from nm.
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6979 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6980 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6981 $as_echo_n "(cached) " >&6
6984 # These are sane defaults that work on at least a few old systems.
6985 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6987 # Character class describing NM global symbol codes.
6988 symcode='[BCDEGRST]'
6990 # Regexp to match symbols that can be accessed directly from C.
6991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6993 # Define system-specific variables.
6998 cygwin* | mingw* | pw32* | cegcc*)
6999 symcode='[ABCDGISTW]'
7002 if test "$host_cpu" = ia64; then
7003 symcode='[ABCDEGRST]'
7007 symcode='[BCDEGRST]'
7010 symcode='[BCDEGQRST]'
7021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7029 # If we're using GNU nm, then use its standard symbol codes.
7030 case `$NM -V 2>&1` in
7031 *GNU* | *'with BFD'*)
7032 symcode='[ABCDGIRSTW]' ;;
7035 # Transform an extracted symbol line into a proper C declaration.
7036 # Some systems (esp. on ia64) link data and code symbols differently,
7037 # so use this general approach.
7038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7040 # Transform an extracted symbol line into symbol name and symbol address
7041 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7042 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'"
7044 # Handle CRLF in mingw tool chain
7048 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7052 # Try without a prefix underscore, then with it.
7053 for ac_symprfx in "" "_"; do
7055 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7056 symxfrm="\\1 $ac_symprfx\\2 \\2"
7058 # Write the raw and C identifiers.
7059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7060 # Fake it for dumpbin and say T for any non-static function
7061 # and D for any global variable.
7062 # Also find C++ and __fastcall symbols from MSVC++,
7063 # which start with @ or ?.
7064 lt_cv_sys_global_symbol_pipe="$AWK '"\
7065 " {last_section=section; section=\$ 3};"\
7066 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7067 " \$ 0!~/External *\|/{next};"\
7068 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7069 " {if(hide[section]) next};"\
7070 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7071 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7072 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7073 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7074 " ' prfx=^$ac_symprfx"
7076 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7079 # Check to see that the pipe works correctly.
7083 cat > conftest.$ac_ext <<_LT_EOF
7088 void nm_test_func(void);
7089 void nm_test_func(void){}
7093 int main(){nm_test_var='a';nm_test_func();return(0);}
7096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7097 (eval $ac_compile) 2>&5
7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100 test $ac_status = 0; }; then
7101 # Now try to grab the symbols.
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7104 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; } && test -s "$nlist"; then
7108 # Try sorting and uniquifying the output.
7109 if sort "$nlist" | uniq > "$nlist"T; then
7110 mv -f "$nlist"T "$nlist"
7115 # Make sure that we snagged all the symbols we need.
7116 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7117 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7118 cat <<_LT_EOF > conftest.$ac_ext
7124 # Now generate the symbol file.
7125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7127 cat <<_LT_EOF >> conftest.$ac_ext
7129 /* The mapping between symbol names and symbols. */
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7136 { "@PROGRAM@", (void *) 0 },
7138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139 cat <<\_LT_EOF >> conftest.$ac_ext
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146 return lt__PROGRAM__LTX_preloaded_symbols;
7154 # Now try linking the two files.
7155 mv conftest.$ac_objext conftstm.$ac_objext
7156 lt_save_LIBS="$LIBS"
7157 lt_save_CFLAGS="$CFLAGS"
7158 LIBS="conftstm.$ac_objext"
7159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161 (eval $ac_link) 2>&5
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7167 LIBS="$lt_save_LIBS"
7168 CFLAGS="$lt_save_CFLAGS"
7170 echo "cannot find nm_test_func in $nlist" >&5
7173 echo "cannot find nm_test_var in $nlist" >&5
7176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7179 echo "$progname: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 rm -rf conftest* conftst*
7184 # Do not use the global_symbol_pipe unless it works.
7185 if test "$pipe_works" = yes; then
7188 lt_cv_sys_global_symbol_pipe=
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195 lt_cv_sys_global_symbol_to_cdecl=
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199 $as_echo "failed" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202 $as_echo "ok" >&6; }
7226 # Check whether --enable-libtool-lock was given.
7227 if test "${enable_libtool_lock+set}" = set; then :
7228 enableval=$enable_libtool_lock;
7231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7233 # Some flags need to be propagated to the compiler or linker for good
7237 # Find out which ABI we are using.
7238 echo 'int i;' > conftest.$ac_ext
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240 (eval $ac_compile) 2>&5
7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; }; then
7244 case `/usr/bin/file conftest.$ac_objext` in
7256 # Find out which ABI we are using.
7257 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7259 (eval $ac_compile) 2>&5
7261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262 test $ac_status = 0; }; then
7263 if test "$lt_cv_prog_gnu_ld" = yes; then
7264 case `/usr/bin/file conftest.$ac_objext` in
7266 LD="${LD-ld} -melf32bsmip"
7269 LD="${LD-ld} -melf32bmipn32"
7272 LD="${LD-ld} -melf64bmip"
7276 case `/usr/bin/file conftest.$ac_objext` in
7292 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7293 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7294 # Find out which ABI we are using.
7295 echo 'int i;' > conftest.$ac_ext
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297 (eval $ac_compile) 2>&5
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; then
7301 case `/usr/bin/file conftest.o` in
7304 x86_64-*kfreebsd*-gnu)
7305 LD="${LD-ld} -m elf_i386_fbsd"
7308 case `/usr/bin/file conftest.o` in
7310 LD="${LD-ld} -m elf32_x86_64"
7313 LD="${LD-ld} -m elf_i386"
7317 powerpc64le-*linux*)
7318 LD="${LD-ld} -m elf32lppclinux"
7321 LD="${LD-ld} -m elf32ppclinux"
7324 LD="${LD-ld} -m elf_s390"
7327 LD="${LD-ld} -m elf32_sparc"
7333 x86_64-*kfreebsd*-gnu)
7334 LD="${LD-ld} -m elf_x86_64_fbsd"
7337 LD="${LD-ld} -m elf_x86_64"
7340 LD="${LD-ld} -m elf64lppc"
7343 LD="${LD-ld} -m elf64ppc"
7345 s390*-*linux*|s390*-*tpf*)
7346 LD="${LD-ld} -m elf64_s390"
7349 LD="${LD-ld} -m elf64_sparc"
7359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7360 SAVE_CFLAGS="$CFLAGS"
7361 CFLAGS="$CFLAGS -belf"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7363 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7364 if ${lt_cv_cc_needs_belf+:} false; then :
7365 $as_echo_n "(cached) " >&6
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7384 if ac_fn_c_try_link "$LINENO"; then :
7385 lt_cv_cc_needs_belf=yes
7387 lt_cv_cc_needs_belf=no
7389 rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7392 ac_cpp='$CPP $CPPFLAGS'
7393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7399 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7400 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7401 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7402 CFLAGS="$SAVE_CFLAGS"
7406 # Find out which ABI we are using.
7407 echo 'int i;' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 case `/usr/bin/file conftest.o` in
7415 case $lt_cv_prog_gnu_ld in
7416 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7430 need_locks="$enable_libtool_lock"
7434 rhapsody* | darwin*)
7435 if test -n "$ac_tool_prefix"; then
7436 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7437 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7441 $as_echo_n "(cached) " >&6
7443 if test -n "$DSYMUTIL"; then
7444 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7464 if test -n "$DSYMUTIL"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7466 $as_echo "$DSYMUTIL" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7474 if test -z "$ac_cv_prog_DSYMUTIL"; then
7475 ac_ct_DSYMUTIL=$DSYMUTIL
7476 # Extract the first word of "dsymutil", so it can be a program name with args.
7477 set dummy dsymutil; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 if test -n "$ac_ct_DSYMUTIL"; then
7484 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7504 if test -n "$ac_ct_DSYMUTIL"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7506 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7512 if test "x$ac_ct_DSYMUTIL" = x; then
7515 case $cross_compiling:$ac_tool_warned in
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7519 ac_tool_warned=yes ;;
7521 DSYMUTIL=$ac_ct_DSYMUTIL
7524 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7527 if test -n "$ac_tool_prefix"; then
7528 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7529 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_prog_NMEDIT+:} false; then :
7533 $as_echo_n "(cached) " >&6
7535 if test -n "$NMEDIT"; then
7536 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 NMEDIT=$ac_cv_prog_NMEDIT
7556 if test -n "$NMEDIT"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7558 $as_echo "$NMEDIT" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7566 if test -z "$ac_cv_prog_NMEDIT"; then
7567 ac_ct_NMEDIT=$NMEDIT
7568 # Extract the first word of "nmedit", so it can be a program name with args.
7569 set dummy nmedit; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7573 $as_echo_n "(cached) " >&6
7575 if test -n "$ac_ct_NMEDIT"; then
7576 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7596 if test -n "$ac_ct_NMEDIT"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7598 $as_echo "$ac_ct_NMEDIT" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7604 if test "x$ac_ct_NMEDIT" = x; then
7607 case $cross_compiling:$ac_tool_warned in
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7611 ac_tool_warned=yes ;;
7613 NMEDIT=$ac_ct_NMEDIT
7616 NMEDIT="$ac_cv_prog_NMEDIT"
7619 if test -n "$ac_tool_prefix"; then
7620 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7621 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_prog_LIPO+:} false; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$LIPO"; then
7628 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 LIPO=$ac_cv_prog_LIPO
7648 if test -n "$LIPO"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7650 $as_echo "$LIPO" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7658 if test -z "$ac_cv_prog_LIPO"; then
7660 # Extract the first word of "lipo", so it can be a program name with args.
7661 set dummy lipo; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7665 $as_echo_n "(cached) " >&6
7667 if test -n "$ac_ct_LIPO"; then
7668 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_ac_ct_LIPO="lipo"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7688 if test -n "$ac_ct_LIPO"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7690 $as_echo "$ac_ct_LIPO" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7696 if test "x$ac_ct_LIPO" = x; then
7699 case $cross_compiling:$ac_tool_warned in
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7703 ac_tool_warned=yes ;;
7708 LIPO="$ac_cv_prog_LIPO"
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7713 set dummy ${ac_tool_prefix}otool; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_prog_OTOOL+:} false; then :
7717 $as_echo_n "(cached) " >&6
7719 if test -n "$OTOOL"; then
7720 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 OTOOL=$ac_cv_prog_OTOOL
7740 if test -n "$OTOOL"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7742 $as_echo "$OTOOL" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7750 if test -z "$ac_cv_prog_OTOOL"; then
7752 # Extract the first word of "otool", so it can be a program name with args.
7753 set dummy otool; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$ac_ct_OTOOL"; then
7760 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_ac_ct_OTOOL="otool"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7780 if test -n "$ac_ct_OTOOL"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7782 $as_echo "$ac_ct_OTOOL" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7788 if test "x$ac_ct_OTOOL" = x; then
7791 case $cross_compiling:$ac_tool_warned in
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795 ac_tool_warned=yes ;;
7800 OTOOL="$ac_cv_prog_OTOOL"
7803 if test -n "$ac_tool_prefix"; then
7804 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7805 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_OTOOL64+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 if test -n "$OTOOL64"; then
7812 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 OTOOL64=$ac_cv_prog_OTOOL64
7832 if test -n "$OTOOL64"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7834 $as_echo "$OTOOL64" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7842 if test -z "$ac_cv_prog_OTOOL64"; then
7843 ac_ct_OTOOL64=$OTOOL64
7844 # Extract the first word of "otool64", so it can be a program name with args.
7845 set dummy otool64; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$ac_ct_OTOOL64"; then
7852 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_ac_ct_OTOOL64="otool64"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7872 if test -n "$ac_ct_OTOOL64"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7874 $as_echo "$ac_ct_OTOOL64" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7880 if test "x$ac_ct_OTOOL64" = x; then
7883 case $cross_compiling:$ac_tool_warned in
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned=yes ;;
7889 OTOOL64=$ac_ct_OTOOL64
7892 OTOOL64="$ac_cv_prog_OTOOL64"
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7922 $as_echo_n "checking for -single_module linker flag... " >&6; }
7923 if ${lt_cv_apple_cc_single_mod+:} false; then :
7924 $as_echo_n "(cached) " >&6
7926 lt_cv_apple_cc_single_mod=no
7927 if test -z "${LT_MULTI_MODULE}"; then
7928 # By default we will add the -single_module flag. You can override
7929 # by either setting the environment variable LT_MULTI_MODULE
7930 # non-empty at configure time, or by adding -multi_module to the
7932 rm -rf libconftest.dylib*
7933 echo "int foo(void){return 1;}" > conftest.c
7934 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935 -dynamiclib -Wl,-single_module conftest.c" >&5
7936 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7937 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7939 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7940 lt_cv_apple_cc_single_mod=yes
7942 cat conftest.err >&5
7944 rm -rf libconftest.dylib*
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7949 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7951 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7952 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7953 $as_echo_n "(cached) " >&6
7955 lt_cv_ld_exported_symbols_list=no
7956 save_LDFLAGS=$LDFLAGS
7957 echo "_main" > conftest.sym
7958 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7970 if ac_fn_c_try_link "$LINENO"; then :
7971 lt_cv_ld_exported_symbols_list=yes
7973 lt_cv_ld_exported_symbols_list=no
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LDFLAGS="$save_LDFLAGS"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7981 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7983 $as_echo_n "checking for -force_load linker flag... " >&6; }
7984 if ${lt_cv_ld_force_load+:} false; then :
7985 $as_echo_n "(cached) " >&6
7987 lt_cv_ld_force_load=no
7988 cat > conftest.c << _LT_EOF
7989 int forced_loaded() { return 2;}
7991 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7992 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7993 echo "$AR cru libconftest.a conftest.o" >&5
7994 $AR cru libconftest.a conftest.o 2>&5
7995 cat > conftest.c << _LT_EOF
7996 int main() { return 0;}
7998 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7999 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8001 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8002 lt_cv_ld_force_load=yes
8004 cat conftest.err >&5
8006 rm -f conftest.err libconftest.a conftest conftest.c
8007 rm -rf conftest.dSYM
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8011 $as_echo "$lt_cv_ld_force_load" >&6; }
8013 rhapsody* | darwin1.[012])
8014 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8016 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8017 darwin*) # darwin 5.x on
8018 # if running on 10.5 or later, the deployment target defaults
8019 # to the OS version, if on x86, and 10.4, the deployment
8020 # target defaults to 10.4. Don't you love it?
8021 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8022 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8023 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8025 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8027 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8031 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8032 _lt_dar_single_mod='$single_module'
8034 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8035 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8037 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8039 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8040 _lt_dsymutil='~$DSYMUTIL $lib || :'
8047 for ac_header in dlfcn.h
8049 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8051 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8052 cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DLFCN_H 1
8074 # Check whether --enable-shared was given.
8075 if test "${enable_shared+set}" = set; then :
8076 enableval=$enable_shared; p=${PACKAGE-default}
8078 yes) enable_shared=yes ;;
8079 no) enable_shared=no ;;
8082 # Look at the argument we got. We use all the common list separators.
8083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084 for pkg in $enableval; do
8086 if test "X$pkg" = "X$p"; then
8105 # Check whether --enable-static was given.
8106 if test "${enable_static+set}" = set; then :
8107 enableval=$enable_static; p=${PACKAGE-default}
8109 yes) enable_static=yes ;;
8110 no) enable_static=no ;;
8113 # Look at the argument we got. We use all the common list separators.
8114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115 for pkg in $enableval; do
8117 if test "X$pkg" = "X$p"; then
8137 # Check whether --with-pic was given.
8138 if test "${with_pic+set}" = set; then :
8139 withval=$with_pic; pic_mode="$withval"
8145 test -z "$pic_mode" && pic_mode=default
8153 # Check whether --enable-fast-install was given.
8154 if test "${enable_fast_install+set}" = set; then :
8155 enableval=$enable_fast_install; p=${PACKAGE-default}
8157 yes) enable_fast_install=yes ;;
8158 no) enable_fast_install=no ;;
8160 enable_fast_install=no
8161 # Look at the argument we got. We use all the common list separators.
8162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8163 for pkg in $enableval; do
8165 if test "X$pkg" = "X$p"; then
8166 enable_fast_install=yes
8173 enable_fast_install=yes
8186 # This can be used to rebuild libtool when needed
8187 LIBTOOL_DEPS="$ltmain"
8189 # Always use our own libtool.
8190 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8217 test -z "$LN_S" && LN_S="ln -s"
8232 if test -n "${ZSH_VERSION+set}" ; then
8233 setopt NO_GLOB_SUBST
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8237 $as_echo_n "checking for objdir... " >&6; }
8238 if ${lt_cv_objdir+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 rm -f .libs 2>/dev/null
8242 mkdir .libs 2>/dev/null
8243 if test -d .libs; then
8246 # MS-DOS does not allow filenames that begin with a dot.
8249 rmdir .libs 2>/dev/null
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8252 $as_echo "$lt_cv_objdir" >&6; }
8253 objdir=$lt_cv_objdir
8259 cat >>confdefs.h <<_ACEOF
8260 #define LT_OBJDIR "$lt_cv_objdir/"
8268 # AIX sometimes has problems with the GCC collect2 program. For some
8269 # reason, if we set the COLLECT_NAMES environment variable, the problems
8270 # vanish in a puff of smoke.
8271 if test "X${COLLECT_NAMES+set}" != Xset; then
8273 export COLLECT_NAMES
8280 can_build_shared=yes
8282 # All known linkers require a `.a' archive for static linking (except MSVC,
8283 # which needs '.lib').
8286 with_gnu_ld="$lt_cv_prog_gnu_ld"
8289 old_CFLAGS="$CFLAGS"
8291 # Set sane defaults for various variables
8292 test -z "$CC" && CC=cc
8293 test -z "$LTCC" && LTCC=$CC
8294 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8295 test -z "$LD" && LD=ld
8296 test -z "$ac_objext" && ac_objext=o
8298 for cc_temp in $compiler""; do
8300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8306 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8309 # Only perform the check for file, if the check method requires it
8310 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8311 case $deplibs_check_method in
8313 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8315 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8316 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8317 $as_echo_n "(cached) " >&6
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/${ac_tool_prefix}file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such. This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem. Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8368 $as_echo "$MAGIC_CMD" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8378 if test -z "$lt_cv_path_MAGIC_CMD"; then
8379 if test -n "$ac_tool_prefix"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8381 $as_echo_n "checking for file... " >&6; }
8382 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8383 $as_echo_n "(cached) " >&6
8387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8390 lt_save_MAGIC_CMD="$MAGIC_CMD"
8391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8393 for ac_dir in $ac_dummy; do
8395 test -z "$ac_dir" && ac_dir=.
8396 if test -f $ac_dir/file; then
8397 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8398 if test -n "$file_magic_test_file"; then
8399 case $deplibs_check_method in
8401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8404 $EGREP "$file_magic_regex" > /dev/null; then
8409 *** Warning: the command libtool uses to detect shared libraries,
8410 *** $file_magic_cmd, produces output that libtool cannot recognize.
8411 *** The result is that libtool may fail to recognize shared libraries
8412 *** as such. This will affect the creation of libtool libraries that
8413 *** depend on shared libraries, but programs linked with such libtool
8414 *** libraries will work regardless of this problem. Nevertheless, you
8415 *** may want to report the problem to your system manager and/or to
8416 *** bug-libtool@gnu.org
8426 MAGIC_CMD="$lt_save_MAGIC_CMD"
8431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432 if test -n "$MAGIC_CMD"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8434 $as_echo "$MAGIC_CMD" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8450 # Use C for the default configuration in the libtool script
8454 ac_cpp='$CPP $CPPFLAGS'
8455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8460 # Source file extension for C test sources.
8463 # Object file extension for compiled C test sources.
8467 # Code to be used in simple compile tests
8468 lt_simple_compile_test_code="int some_variable = 0;"
8470 # Code to be used in simple link tests
8471 lt_simple_link_test_code='int main(){return(0);}'
8479 # If no C compiler was specified, use CC.
8482 # If no C compiler flags were specified, use CFLAGS.
8483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8485 # Allow CC to be a program name with arguments.
8488 # Save the default compiler, since it gets overwritten when the other
8489 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8490 compiler_DEFAULT=$CC
8492 # save warnings/boilerplate of simple test code
8493 ac_outfile=conftest.$ac_objext
8494 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8496 _lt_compiler_boilerplate=`cat conftest.err`
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502 _lt_linker_boilerplate=`cat conftest.err`
8507 ## There is no encapsulation within the following macros, do not change
8508 ## the running order or otherwise move them around unless you know exactly
8509 ## what you are doing...
8510 if test -n "$compiler"; then
8512 lt_prog_compiler_no_builtin_flag=
8514 if test "$GCC" = yes; then
8515 case $cc_basename in
8517 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8519 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8523 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8524 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8525 $as_echo_n "(cached) " >&6
8527 lt_cv_prog_compiler_rtti_exceptions=no
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8530 lt_compiler_flag="-fno-rtti -fno-exceptions"
8531 # Insert the option either (1) after the last *FLAGS variable, or
8532 # (2) before a word containing "conftest.", or (3) at the end.
8533 # Note that $ac_compile itself does not contain backslashes and begins
8534 # with a dollar sign (not a hyphen), so the echo should work correctly.
8535 # The option is referenced via a variable to avoid confusing sed.
8536 lt_compile=`echo "$ac_compile" | $SED \
8537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8539 -e 's:$: $lt_compiler_flag:'`
8540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8541 (eval "$lt_compile" 2>conftest.err)
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 if (exit $ac_status) && test -s "$ac_outfile"; then
8546 # The compiler can only warn and ignore the option if not recognized
8547 # So say no if there are warnings other than the usual output.
8548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8550 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8551 lt_cv_prog_compiler_rtti_exceptions=yes
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8558 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8560 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8561 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8573 lt_prog_compiler_wl=
8574 lt_prog_compiler_pic=
8575 lt_prog_compiler_static=
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8578 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8580 if test "$GCC" = yes; then
8581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_static='-static'
8586 # All AIX code is PIC.
8587 if test "$host_cpu" = ia64; then
8588 # AIX 5 now supports IA64 processor
8589 lt_prog_compiler_static='-Bstatic'
8591 lt_prog_compiler_pic='-fPIC'
8597 # see comment about AmigaOS4 .so support
8598 lt_prog_compiler_pic='-fPIC'
8601 # FIXME: we need at least 68020 code to build shared libraries, but
8602 # adding the `-m68020' flag to GCC prevents building anything better,
8604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8610 # PIC is the default for these OSes.
8613 mingw* | cygwin* | pw32* | os2* | cegcc*)
8614 # This hack is so that the source file can tell whether it is being
8615 # built for inclusion in a dll (and should export symbols for example).
8616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8617 # (--disable-auto-import) libraries
8618 lt_prog_compiler_pic='-DDLL_EXPORT'
8621 darwin* | rhapsody*)
8622 # PIC is the default on this platform
8623 # Common symbols not allowed in MH_DYLIB files
8624 lt_prog_compiler_pic='-fno-common'
8628 # PIC is the default for Haiku.
8629 # The "-static" flag exists, but is broken.
8630 lt_prog_compiler_static=
8634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8636 # sets the default TLS model and affects inlining.
8642 lt_prog_compiler_pic='-fPIC'
8648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8649 # Instead, we relocate shared libraries at runtime.
8653 # Just because we use GCC doesn't mean we suddenly get shared libraries
8654 # on systems that don't support them.
8655 lt_prog_compiler_can_build_shared=no
8660 # QNX uses GNU C++, but need to define -shared option too, otherwise
8662 lt_prog_compiler_pic='-fPIC -shared'
8666 if test -d /usr/nec; then
8667 lt_prog_compiler_pic=-Kconform_pic
8672 lt_prog_compiler_pic='-fPIC'
8676 case $cc_basename in
8677 nvcc*) # Cuda Compiler Driver 2.2
8678 lt_prog_compiler_wl='-Xlinker '
8679 lt_prog_compiler_pic='-Xcompiler -fPIC'
8683 # PORTME Check for flag to pass linker flags through the system compiler.
8686 lt_prog_compiler_wl='-Wl,'
8687 if test "$host_cpu" = ia64; then
8688 # AIX 5 now supports IA64 processor
8689 lt_prog_compiler_static='-Bstatic'
8691 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8695 mingw* | cygwin* | pw32* | os2* | cegcc*)
8696 # This hack is so that the source file can tell whether it is being
8697 # built for inclusion in a dll (and should export symbols for example).
8698 lt_prog_compiler_pic='-DDLL_EXPORT'
8701 hpux9* | hpux10* | hpux11*)
8702 lt_prog_compiler_wl='-Wl,'
8703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8710 lt_prog_compiler_pic='+Z'
8713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8714 lt_prog_compiler_static='${wl}-a ${wl}archive'
8717 irix5* | irix6* | nonstopux*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # PIC (with -KPIC) is the default.
8720 lt_prog_compiler_static='-non_shared'
8723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8724 case $cc_basename in
8725 # old Intel for x86_64 which still supported -KPIC.
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-static'
8731 # icc used to be incompatible with GCC.
8732 # ICC 10 doesn't accept -KPIC any more.
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-fPIC'
8736 lt_prog_compiler_static='-static'
8738 # Lahey Fortran 8.1.
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='--shared'
8742 lt_prog_compiler_static='--static'
8744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8745 # Portland Group compilers (*not* the Pentium gcc compiler,
8746 # which looks to be a dead project)
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='-fpic'
8749 lt_prog_compiler_static='-Bstatic'
8752 lt_prog_compiler_wl='-Wl,'
8753 # All Alpha code is PIC.
8754 lt_prog_compiler_static='-non_shared'
8756 xl* | bgxl* | bgf* | mpixl*)
8757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-qpic'
8760 lt_prog_compiler_static='-qstaticlink'
8763 case `$CC -V 2>&1 | sed 5q` in
8764 *Sun\ F* | *Sun*Fortran*)
8765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8766 lt_prog_compiler_pic='-KPIC'
8767 lt_prog_compiler_static='-Bstatic'
8768 lt_prog_compiler_wl=''
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-Bstatic'
8787 # QNX uses GNU C++, but need to define -shared option too, otherwise
8789 lt_prog_compiler_pic='-fPIC -shared'
8792 osf3* | osf4* | osf5*)
8793 lt_prog_compiler_wl='-Wl,'
8794 # All OSF/1 code is PIC.
8795 lt_prog_compiler_static='-non_shared'
8799 lt_prog_compiler_static='-non_shared'
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8805 case $cc_basename in
8807 lt_prog_compiler_wl='-Qoption ld ';;
8809 lt_prog_compiler_wl='-Wl,';;
8814 lt_prog_compiler_wl='-Qoption ld '
8815 lt_prog_compiler_pic='-PIC'
8816 lt_prog_compiler_static='-Bstatic'
8819 sysv4 | sysv4.2uw2* | sysv4.3*)
8820 lt_prog_compiler_wl='-Wl,'
8821 lt_prog_compiler_pic='-KPIC'
8822 lt_prog_compiler_static='-Bstatic'
8826 if test -d /usr/nec ;then
8827 lt_prog_compiler_pic='-Kconform_pic'
8828 lt_prog_compiler_static='-Bstatic'
8832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8833 lt_prog_compiler_wl='-Wl,'
8834 lt_prog_compiler_pic='-KPIC'
8835 lt_prog_compiler_static='-Bstatic'
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_can_build_shared=no
8844 lt_prog_compiler_pic='-pic'
8845 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_can_build_shared=no
8855 # For platforms which do not support PIC, -DPIC is meaningless:
8857 lt_prog_compiler_pic=
8860 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8864 $as_echo "$lt_prog_compiler_pic" >&6; }
8872 # Check to make sure the PIC flag actually works.
8874 if test -n "$lt_prog_compiler_pic"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8876 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8877 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8878 $as_echo_n "(cached) " >&6
8880 lt_cv_prog_compiler_pic_works=no
8881 ac_outfile=conftest.$ac_objext
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8884 # Insert the option either (1) after the last *FLAGS variable, or
8885 # (2) before a word containing "conftest.", or (3) at the end.
8886 # Note that $ac_compile itself does not contain backslashes and begins
8887 # with a dollar sign (not a hyphen), so the echo should work correctly.
8888 # The option is referenced via a variable to avoid confusing sed.
8889 lt_compile=`echo "$ac_compile" | $SED \
8890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892 -e 's:$: $lt_compiler_flag:'`
8893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894 (eval "$lt_compile" 2>conftest.err)
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 if (exit $ac_status) && test -s "$ac_outfile"; then
8899 # The compiler can only warn and ignore the option if not recognized
8900 # So say no if there are warnings other than the usual output.
8901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8903 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8904 lt_cv_prog_compiler_pic_works=yes
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8911 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8913 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8914 case $lt_prog_compiler_pic in
8916 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8919 lt_prog_compiler_pic=
8920 lt_prog_compiler_can_build_shared=no
8931 # Check to make sure the static flag actually works.
8933 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8936 if ${lt_cv_prog_compiler_static_works+:} false; then :
8937 $as_echo_n "(cached) " >&6
8939 lt_cv_prog_compiler_static_works=no
8940 save_LDFLAGS="$LDFLAGS"
8941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8944 # The linker can only warn and ignore the option if not recognized
8945 # So say no if there are warnings
8946 if test -s conftest.err; then
8947 # Append any errors to the config.log.
8948 cat conftest.err 1>&5
8949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if diff conftest.exp conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_static_works=yes
8955 lt_cv_prog_compiler_static_works=yes
8959 LDFLAGS="$save_LDFLAGS"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8963 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8965 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8968 lt_prog_compiler_static=
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979 if ${lt_cv_prog_compiler_c_o+:} false; then :
8980 $as_echo_n "(cached) " >&6
8982 lt_cv_prog_compiler_c_o=no
8983 $RM -r conftest 2>/dev/null
8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8989 lt_compiler_flag="-o out/conftest2.$ac_objext"
8990 # Insert the option either (1) after the last *FLAGS variable, or
8991 # (2) before a word containing "conftest.", or (3) at the end.
8992 # Note that $ac_compile itself does not contain backslashes and begins
8993 # with a dollar sign (not a hyphen), so the echo should work correctly.
8994 lt_compile=`echo "$ac_compile" | $SED \
8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997 -e 's:$: $lt_compiler_flag:'`
8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999 (eval "$lt_compile" 2>out/conftest.err)
9001 cat out/conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9005 # The compiler can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010 lt_cv_prog_compiler_c_o=yes
9015 # SGI C++ compiler will create directory out/ii_files/ for
9016 # template instantiation
9017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018 $RM out/* && rmdir out
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9025 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9034 if ${lt_cv_prog_compiler_c_o+:} false; then :
9035 $as_echo_n "(cached) " >&6
9037 lt_cv_prog_compiler_c_o=no
9038 $RM -r conftest 2>/dev/null
9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044 lt_compiler_flag="-o out/conftest2.$ac_objext"
9045 # Insert the option either (1) after the last *FLAGS variable, or
9046 # (2) before a word containing "conftest.", or (3) at the end.
9047 # Note that $ac_compile itself does not contain backslashes and begins
9048 # with a dollar sign (not a hyphen), so the echo should work correctly.
9049 lt_compile=`echo "$ac_compile" | $SED \
9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052 -e 's:$: $lt_compiler_flag:'`
9053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9054 (eval "$lt_compile" 2>out/conftest.err)
9056 cat out/conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9060 # The compiler can only warn and ignore the option if not recognized
9061 # So say no if there are warnings
9062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_c_o=yes
9070 # SGI C++ compiler will create directory out/ii_files/ for
9071 # template instantiation
9072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9073 $RM out/* && rmdir out
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9080 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9085 hard_links="nottested"
9086 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9087 # do not overwrite the value of need_locks provided by the user
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9089 $as_echo_n "checking if we can lock with hard links... " >&6; }
9092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9094 ln conftest.a conftest.b 2>&5 || hard_links=no
9095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9097 $as_echo "$hard_links" >&6; }
9098 if test "$hard_links" = no; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9100 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9113 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9116 allow_undefined_flag=
9117 always_export_symbols=no
9119 archive_expsym_cmds=
9120 compiler_needs_object=no
9121 enable_shared_with_static_runtimes=no
9122 export_dynamic_flag_spec=
9123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9124 hardcode_automatic=no
9126 hardcode_direct_absolute=no
9127 hardcode_libdir_flag_spec=
9128 hardcode_libdir_flag_spec_ld=
9129 hardcode_libdir_separator=
9131 hardcode_shlibpath_var=unsupported
9133 link_all_deplibs=unknown
9136 old_archive_from_new_cmds=
9137 old_archive_from_expsyms_cmds=
9138 thread_safe_flag_spec=
9139 whole_archive_flag_spec=
9140 # include_expsyms should be a list of space-separated symbols to be *always*
9141 # included in the symbol list
9143 # exclude_expsyms can be an extended regexp of symbols to exclude
9144 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9145 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9146 # as well as any symbol that contains `d'.
9147 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9148 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9149 # platforms (ab)use it in PIC code, but their linkers get confused if
9150 # the symbol is explicitly referenced. Since portable code cannot
9151 # rely on this symbol name, it's probably fine to never include it in
9152 # preloaded symbol tables.
9153 # Exclude shared library initialization/finalization symbols.
9154 extract_expsyms_cmds=
9157 cygwin* | mingw* | pw32* | cegcc*)
9158 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9159 # When not using gcc, we currently assume that we are using
9160 # Microsoft Visual C++.
9161 if test "$GCC" != yes; then
9166 # we just hope/assume this is gcc and not c89 (= MSVC++)
9176 # On some targets, GNU ld is compatible enough with the native linker
9177 # that we're better off using the native interface for both.
9178 lt_use_gnu_ld_interface=no
9179 if test "$with_gnu_ld" = yes; then
9182 # The AIX port of GNU ld has always aspired to compatibility
9183 # with the native linker. However, as the warning in the GNU ld
9184 # block says, versions before 2.19.5* couldn't really create working
9185 # shared libraries, regardless of the interface used.
9186 case `$LD -v 2>&1` in
9187 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9188 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9189 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9191 lt_use_gnu_ld_interface=yes
9196 lt_use_gnu_ld_interface=yes
9201 if test "$lt_use_gnu_ld_interface" = yes; then
9202 # If archive_cmds runs LD, not CC, wlarc should be empty
9205 # Set some defaults for GNU ld with shared library support. These
9206 # are reset later if shared libraries are not supported. Putting them
9207 # here allows them to be overridden if necessary.
9208 runpath_var=LD_RUN_PATH
9209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9210 export_dynamic_flag_spec='${wl}--export-dynamic'
9211 # ancient GNU ld didn't support --whole-archive et. al.
9212 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9215 whole_archive_flag_spec=
9217 supports_anon_versioning=no
9218 case `$LD -v 2>&1` in
9219 *GNU\ gold*) supports_anon_versioning=yes ;;
9220 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9221 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9222 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9223 *\ 2.11.*) ;; # other 2.11 versions
9224 *) supports_anon_versioning=yes ;;
9227 # See if GNU ld supports shared libraries.
9230 # On AIX/PPC, the GNU linker is very broken
9231 if test "$host_cpu" != ia64; then
9235 *** Warning: the GNU linker, at least up to release 2.19, is reported
9236 *** to be unable to reliably create shared libraries on AIX.
9237 *** Therefore, libtool is disabling shared libraries support. If you
9238 *** really care for shared libraries, you may want to install binutils
9239 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9240 *** You will then need to restart the configuration process.
9249 # see comment about AmigaOS4 .so support
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 archive_expsym_cmds=''
9254 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)'
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_minus_L=yes
9262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263 allow_undefined_flag=unsupported
9264 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9265 # support --undefined. This deserves some investigation. FIXME
9266 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 cygwin* | mingw* | pw32* | cegcc*)
9273 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9274 # as there is no search path for DLLs.
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 export_dynamic_flag_spec='${wl}--export-all-symbols'
9277 allow_undefined_flag=unsupported
9278 always_export_symbols=no
9279 enable_shared_with_static_runtimes=yes
9280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9284 # If the export-symbols file already is a .def file (1st line
9285 # is EXPORTS), use it as is; otherwise, prepend...
9286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9287 cp $export_symbols $output_objdir/$soname.def;
9289 echo EXPORTS > $output_objdir/$soname.def;
9290 cat $export_symbols >> $output_objdir/$soname.def;
9292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 link_all_deplibs=yes
9305 hardcode_shlibpath_var=no
9306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9307 export_dynamic_flag_spec='${wl}-E'
9308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9309 # Instead, shared libraries are loaded at an image base (0x10000000 by
9310 # default) and relocated if they conflict, which is a slow very memory
9311 # consuming and fragmenting process. To avoid this, we pick a random,
9312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9315 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'
9318 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9320 if test "$host_os" = linux-dietlibc; then
9321 case $cc_basename in
9322 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9325 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9326 && test "$tmp_diet" = no
9328 tmp_addflag=' $pic_flag'
9329 tmp_sharedflag='-shared'
9330 case $cc_basename,$host_cpu in
9331 pgcc*) # Portland Group C compiler
9332 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'
9333 tmp_addflag=' $pic_flag'
9335 pgf77* | pgf90* | pgf95* | pgfortran*)
9336 # Portland Group f77 and f90 compilers
9337 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'
9338 tmp_addflag=' $pic_flag -Mnomain' ;;
9339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9340 tmp_addflag=' -i_dynamic' ;;
9341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9342 tmp_addflag=' -i_dynamic -nofor_main' ;;
9343 ifc* | ifort*) # Intel Fortran compiler
9344 tmp_addflag=' -nofor_main' ;;
9345 lf95*) # Lahey Fortran 8.1
9346 whole_archive_flag_spec=
9347 tmp_sharedflag='--shared' ;;
9348 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9349 tmp_sharedflag='-qmkshrobj'
9351 nvcc*) # Cuda Compiler Driver 2.2
9352 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'
9353 compiler_needs_object=yes
9356 case `$CC -V 2>&1 | sed 5q` in
9357 *Sun\ C*) # Sun C 5.9
9358 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'
9359 compiler_needs_object=yes
9360 tmp_sharedflag='-G' ;;
9361 *Sun\ F*) # Sun Fortran 8.3
9362 tmp_sharedflag='-G' ;;
9364 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9366 if test "x$supports_anon_versioning" = xyes; then
9367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9369 echo "local: *; };" >> $output_objdir/$libname.ver~
9370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9373 case $cc_basename in
9374 xlf* | bgf* | bgxlf* | mpixlf*)
9375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9377 hardcode_libdir_flag_spec=
9378 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9379 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9380 if test "x$supports_anon_versioning" = xyes; then
9381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9383 echo "local: *; };" >> $output_objdir/$libname.ver~
9384 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9395 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9404 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9409 *** create shared libraries on Solaris systems. Therefore, libtool
9410 *** is disabling shared libraries support. We urge you to upgrade GNU
9411 *** binutils to release 2.9.1 or newer. Another option is to modify
9412 *** your PATH or compiler configuration so that the native linker is
9413 *** used, and then restart.
9416 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9425 case `$LD -v 2>&1` in
9426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9431 *** reliably create shared libraries on SCO systems. Therefore, libtool
9432 *** is disabling shared libraries support. We urge you to upgrade GNU
9433 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9434 *** your PATH or compiler configuration so that the native linker is
9435 *** used, and then restart.
9440 # For security reasons, it is highly recommended that you always
9441 # use absolute paths for naming shared libraries, and exclude the
9442 # DT_RUNPATH tag from executables and libraries. But doing so
9443 # requires that you compile everything twice, which is a pain.
9444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9456 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_shlibpath_var=no
9463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9472 if test "$ld_shlibs" = no; then
9474 hardcode_libdir_flag_spec=
9475 export_dynamic_flag_spec=
9476 whole_archive_flag_spec=
9479 # PORTME fill in a description of your system's linker (not GNU ld)
9482 allow_undefined_flag=unsupported
9483 always_export_symbols=yes
9484 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'
9485 # Note: this linker hardcodes the directories in LIBPATH if there
9486 # are no directories specified by -L.
9487 hardcode_minus_L=yes
9488 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9489 # Neither direct hardcoding nor static linking is supported with a
9491 hardcode_direct=unsupported
9496 if test "$host_cpu" = ia64; then
9497 # On IA64, the linker does run time linking by default, so we don't
9498 # have to do anything special.
9499 aix_use_runtimelinking=no
9500 exp_sym_flag='-Bexport'
9503 # If we're using GNU nm, then we don't want the "-C" option.
9504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9505 # Also, AIX nm treats weak defined symbols like other global
9506 # defined symbols, whereas GNU nm marks them as "W".
9507 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9508 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'
9510 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'
9512 aix_use_runtimelinking=no
9514 # Test if we are trying to use run time linking or normal
9515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516 # need to do runtime linking.
9517 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9518 for ld_flag in $LDFLAGS; do
9519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520 aix_use_runtimelinking=yes
9527 exp_sym_flag='-bexport'
9528 no_entry_flag='-bnoentry'
9531 # When large executables or shared objects are built, AIX ld can
9532 # have problems creating the table of contents. If linking a library
9533 # or program results in "error TOC overflow" add -mminimal-toc to
9534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9539 hardcode_direct_absolute=yes
9540 hardcode_libdir_separator=':'
9541 link_all_deplibs=yes
9542 file_list_spec='${wl}-f,'
9544 if test "$GCC" = yes; then
9545 case $host_os in aix4.[012]|aix4.[012].*)
9546 # We only want to do this on AIX 4.2 and lower, the check
9547 # below for broken collect2 doesn't work under 4.3+
9548 collect2name=`${CC} -print-prog-name=collect2`
9549 if test -f "$collect2name" &&
9550 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9552 # We have reworked collect2
9555 # We have old collect2
9556 hardcode_direct=unsupported
9557 # It fails to find uninstalled libraries when the uninstalled
9558 # path is not listed in the libpath. Setting hardcode_minus_L
9559 # to unsupported forces relinking
9560 hardcode_minus_L=yes
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_libdir_separator=
9566 shared_flag='-shared'
9567 if test "$aix_use_runtimelinking" = yes; then
9568 shared_flag="$shared_flag "'${wl}-G'
9572 if test "$host_cpu" = ia64; then
9573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9574 # chokes on -Wl,-G. The following line is correct:
9577 if test "$aix_use_runtimelinking" = yes; then
9578 shared_flag='${wl}-G'
9580 shared_flag='${wl}-bM:SRE'
9585 export_dynamic_flag_spec='${wl}-bexpall'
9586 # It seems that -bexpall does not export symbols beginning with
9587 # underscore (_), so it is better to generate a list of symbols to export.
9588 always_export_symbols=yes
9589 if test "$aix_use_runtimelinking" = yes; then
9590 # Warning - without using the other runtime loading flags (-brtl),
9591 # -berok will link without error, but may produce a broken library.
9592 allow_undefined_flag='-berok'
9593 # Determine the default libpath from the value encoded in an
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9606 if ac_fn_c_try_link "$LINENO"; then :
9608 lt_aix_libpath_sed='
9609 /Import File Strings/,/^$/ {
9615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616 # Check for a 64-bit object if we didn't find anything.
9617 if test -z "$aix_libpath"; then
9618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9626 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"
9628 if test "$host_cpu" = ia64; then
9629 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9630 allow_undefined_flag="-z nodefs"
9631 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"
9633 # Determine the default libpath from the value encoded in an
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9646 if ac_fn_c_try_link "$LINENO"; then :
9648 lt_aix_libpath_sed='
9649 /Import File Strings/,/^$/ {
9655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656 # Check for a 64-bit object if we didn't find anything.
9657 if test -z "$aix_libpath"; then
9658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9661 rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9665 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9666 # Warning - without using the other run time loading flags,
9667 # -berok will link without error, but may produce a broken library.
9668 no_undefined_flag=' ${wl}-bernotok'
9669 allow_undefined_flag=' ${wl}-berok'
9670 if test "$with_gnu_ld" = yes; then
9671 # We only use this code for GNU lds that support --whole-archive.
9672 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9674 # Exported symbols can be pulled into shared objects from archives
9675 whole_archive_flag_spec='$convenience'
9677 archive_cmds_need_lc=yes
9678 # This is similar to how AIX traditionally builds its shared libraries.
9679 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'
9687 # see comment about AmigaOS4 .so support
9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689 archive_expsym_cmds=''
9692 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)'
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 hardcode_minus_L=yes
9700 export_dynamic_flag_spec=-rdynamic
9703 cygwin* | mingw* | pw32* | cegcc*)
9704 # When not using gcc, we currently assume that we are using
9705 # Microsoft Visual C++.
9706 # hardcode_libdir_flag_spec is actually meaningless, as there is
9707 # no search path for DLLs.
9708 hardcode_libdir_flag_spec=' '
9709 allow_undefined_flag=unsupported
9710 # Tell ltmain to make .lib files, not .a files.
9712 # Tell ltmain to make .dll files, not .so files.
9714 # FIXME: Setting linknames here is a bad hack.
9715 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9716 # The linker will automatically build a .lib file if we build a DLL.
9717 old_archive_from_new_cmds='true'
9718 # FIXME: Should let the user specify the lib program.
9719 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9720 fix_srcfile_path='`cygpath -w "$srcfile"`'
9721 enable_shared_with_static_runtimes=yes
9724 darwin* | rhapsody*)
9727 archive_cmds_need_lc=no
9729 hardcode_automatic=yes
9730 hardcode_shlibpath_var=unsupported
9731 if test "$lt_cv_ld_force_load" = "yes"; then
9732 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\"`'
9734 whole_archive_flag_spec=''
9736 link_all_deplibs=yes
9737 allow_undefined_flag="$_lt_dar_allow_undefined"
9738 case $cc_basename in
9739 ifort*) _lt_dar_can_shared=yes ;;
9740 *) _lt_dar_can_shared=$GCC ;;
9742 if test "$_lt_dar_can_shared" = "yes"; then
9743 output_verbose_link_cmd=func_echo_all
9744 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9745 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9746 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}"
9747 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}"
9756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_libdir_flag_spec='-L$libdir'
9758 hardcode_shlibpath_var=no
9761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9762 # support. Future versions do this automatically, but an explicit c++rt0.o
9763 # does not break anything, and helps significantly (at the cost of a little
9766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9767 hardcode_libdir_flag_spec='-R$libdir'
9769 hardcode_shlibpath_var=no
9772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_minus_L=yes
9777 hardcode_shlibpath_var=no
9780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9781 freebsd* | dragonfly*)
9782 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9783 hardcode_libdir_flag_spec='-R$libdir'
9785 hardcode_shlibpath_var=no
9789 if test "$GCC" = yes; then
9790 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'
9792 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'
9794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9795 hardcode_libdir_separator=:
9798 # hardcode_minus_L: Not really in the search PATH,
9799 # but as the default location of the library.
9800 hardcode_minus_L=yes
9801 export_dynamic_flag_spec='${wl}-E'
9805 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9810 if test "$with_gnu_ld" = no; then
9811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9812 hardcode_libdir_flag_spec_ld='+b $libdir'
9813 hardcode_libdir_separator=:
9815 hardcode_direct_absolute=yes
9816 export_dynamic_flag_spec='${wl}-E'
9817 # hardcode_minus_L: Not really in the search PATH,
9818 # but as the default location of the library.
9819 hardcode_minus_L=yes
9824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9846 # Older versions of the 11.00 compiler do not understand -b yet
9847 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9849 $as_echo_n "checking if $CC understands -b... " >&6; }
9850 if ${lt_cv_prog_compiler__b+:} false; then :
9851 $as_echo_n "(cached) " >&6
9853 lt_cv_prog_compiler__b=no
9854 save_LDFLAGS="$LDFLAGS"
9855 LDFLAGS="$LDFLAGS -b"
9856 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9858 # The linker can only warn and ignore the option if not recognized
9859 # So say no if there are warnings
9860 if test -s conftest.err; then
9861 # Append any errors to the config.log.
9862 cat conftest.err 1>&5
9863 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9865 if diff conftest.exp conftest.er2 >/dev/null; then
9866 lt_cv_prog_compiler__b=yes
9869 lt_cv_prog_compiler__b=yes
9873 LDFLAGS="$save_LDFLAGS"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9877 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9879 if test x"$lt_cv_prog_compiler__b" = xyes; then
9880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9882 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9888 if test "$with_gnu_ld" = no; then
9889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9890 hardcode_libdir_separator=:
9895 hardcode_shlibpath_var=no
9899 hardcode_direct_absolute=yes
9900 export_dynamic_flag_spec='${wl}-E'
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L=yes
9910 irix5* | irix6* | nonstopux*)
9911 if test "$GCC" = yes; then
9912 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'
9913 # Try to use the -exported_symbol ld option, if it does not
9914 # work, assume that -exports_file does not work either and
9915 # implicitly export all symbols.
9916 save_LDFLAGS="$LDFLAGS"
9917 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9922 if ac_fn_c_try_link "$LINENO"; then :
9923 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'
9926 rm -f core conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 LDFLAGS="$save_LDFLAGS"
9930 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'
9931 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'
9933 archive_cmds_need_lc='no'
9934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9935 hardcode_libdir_separator=:
9937 link_all_deplibs=yes
9941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9944 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9946 hardcode_libdir_flag_spec='-R$libdir'
9948 hardcode_shlibpath_var=no
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9955 hardcode_libdir_separator=:
9956 hardcode_shlibpath_var=no
9963 if test -f /usr/libexec/ld.so; then
9965 hardcode_shlibpath_var=no
9966 hardcode_direct_absolute=yes
9967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9969 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9971 export_dynamic_flag_spec='${wl}-E'
9974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_libdir_flag_spec='-R$libdir'
9979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 hardcode_minus_L=yes
9992 allow_undefined_flag=unsupported
9993 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'
9994 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9998 if test "$GCC" = yes; then
9999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10000 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'
10002 allow_undefined_flag=' -expect_unresolved \*'
10003 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'
10005 archive_cmds_need_lc='no'
10006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007 hardcode_libdir_separator=:
10010 osf4* | osf5*) # as osf3* with the addition of -msym flag
10011 if test "$GCC" = yes; then
10012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10013 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'
10014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10016 allow_undefined_flag=' -expect_unresolved \*'
10017 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'
10018 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~
10019 $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'
10021 # Both c and cxx compiler support -rpath directly
10022 hardcode_libdir_flag_spec='-rpath $libdir'
10024 archive_cmds_need_lc='no'
10025 hardcode_libdir_separator=:
10029 no_undefined_flag=' -z defs'
10030 if test "$GCC" = yes; then
10032 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10034 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10036 case `$CC -V 2>&1` in
10039 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10041 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10045 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10047 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10051 hardcode_libdir_flag_spec='-R$libdir'
10052 hardcode_shlibpath_var=no
10054 solaris2.[0-5] | solaris2.[0-5].*) ;;
10056 # The compiler driver will combine and reorder linker options,
10057 # but understands `-z linker_flag'. GCC discards it without `$wl',
10058 # but is careful enough not to reorder.
10059 # Supported since Solaris 2.6 (maybe 2.5.1?)
10060 if test "$GCC" = yes; then
10061 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10063 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10067 link_all_deplibs=yes
10071 if test "x$host_vendor" = xsequent; then
10072 # Use $CC to link under sequent, because it throws in some extra .o
10073 # files that make .init and .fini sections work.
10074 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_libdir_flag_spec='-L$libdir'
10079 hardcode_direct=yes
10080 hardcode_minus_L=yes
10081 hardcode_shlibpath_var=no
10085 case $host_vendor in
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_direct=yes # is this really true???
10091 ## LD is ld it makes a PLAMLIB
10092 ## CC just makes a GrossModule.
10093 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10094 reload_cmds='$CC -r -o $output$reload_objs'
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10102 runpath_var='LD_RUN_PATH'
10103 hardcode_shlibpath_var=no
10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_shlibpath_var=no
10109 export_dynamic_flag_spec='-Bexport'
10113 if test -d /usr/nec; then
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_shlibpath_var=no
10116 runpath_var=LD_RUN_PATH
10117 hardcode_runpath_var=yes
10122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10123 no_undefined_flag='${wl}-z,text'
10124 archive_cmds_need_lc=no
10125 hardcode_shlibpath_var=no
10126 runpath_var='LD_RUN_PATH'
10128 if test "$GCC" = yes; then
10129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 sysv5* | sco3.2v5* | sco5v6*)
10138 # Note: We can NOT use -z defs as we might desire, because we do not
10139 # link with -lc, and that would cause any symbols used from libc to
10140 # always be unresolved, which means just about no library would
10141 # ever link correctly. If we're not using GNU ld we use -z text
10142 # though, which does catch some bad symbols but isn't as heavy-handed
10144 no_undefined_flag='${wl}-z,text'
10145 allow_undefined_flag='${wl}-z,nodefs'
10146 archive_cmds_need_lc=no
10147 hardcode_shlibpath_var=no
10148 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10149 hardcode_libdir_separator=':'
10150 link_all_deplibs=yes
10151 export_dynamic_flag_spec='${wl}-Bexport'
10152 runpath_var='LD_RUN_PATH'
10154 if test "$GCC" = yes; then
10155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_shlibpath_var=no
10174 if test x$host_vendor = xsni; then
10176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10177 export_dynamic_flag_spec='${wl}-Blargedynsym'
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10184 $as_echo "$ld_shlibs" >&6; }
10185 test "$ld_shlibs" = no && can_build_shared=no
10187 with_gnu_ld=$with_gnu_ld
10204 # Do we need to explicitly link libc?
10206 case "x$archive_cmds_need_lc" in
10208 # Assume -lc should be added
10209 archive_cmds_need_lc=yes
10211 if test "$enable_shared" = yes && test "$GCC" = yes; then
10212 case $archive_cmds in
10214 # FIXME: we may have to deal with multi-command sequences.
10217 # Test whether the compiler implicitly links with -lc since on some
10218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10219 # to ld, don't add -lc before -lgcc.
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10221 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10222 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10223 $as_echo_n "(cached) " >&6
10226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10229 (eval $ac_compile) 2>&5
10231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10232 test $ac_status = 0; } 2>conftest.err; then
10235 libobjs=conftest.$ac_objext
10237 wl=$lt_prog_compiler_wl
10238 pic_flag=$lt_prog_compiler_pic
10244 lt_save_allow_undefined_flag=$allow_undefined_flag
10245 allow_undefined_flag=
10246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250 test $ac_status = 0; }
10252 lt_cv_archive_cmds_need_lc=no
10254 lt_cv_archive_cmds_need_lc=yes
10256 allow_undefined_flag=$lt_save_allow_undefined_flag
10258 cat conftest.err 1>&5
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10264 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10265 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10431 if test "$GCC" = yes; then
10433 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10434 *) lt_awk_arg="/^libraries:/" ;;
10437 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10438 *) lt_sed_strip_eq="s,=/,/,g" ;;
10440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10441 case $lt_search_path_spec in
10443 # if the path contains ";" then we assume it to be the separator
10444 # otherwise default to the standard path separator (i.e. ":") - it is
10445 # assumed that no part of a normal pathname contains ";" but that should
10446 # okay in the real world where ";" in dirpaths is itself problematic.
10447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10453 # Ok, now we have the path, separated by spaces, we can step through it
10454 # and add multilib dir if necessary.
10455 lt_tmp_lt_search_path_spec=
10456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10457 for lt_sys_path in $lt_search_path_spec; do
10458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10461 test -d "$lt_sys_path" && \
10462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10465 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10466 BEGIN {RS=" "; FS="/|\n";} {
10469 for (lt_i = NF; lt_i > 0; lt_i--) {
10470 if ($lt_i != "" && $lt_i != ".") {
10471 if ($lt_i == "..") {
10474 if (lt_count == 0) {
10475 lt_foo="/" $lt_i lt_foo;
10482 if (lt_foo != "") { lt_freq[lt_foo]++; }
10483 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10485 # AWK program above erroneously prepends '/' to C:/dos/paths
10488 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10489 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10491 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10495 library_names_spec=
10496 libname_spec='lib$name'
10500 postuninstall_cmds=
10504 shlibpath_overrides_runpath=unknown
10506 dynamic_linker="$host_os ld.so"
10507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10508 need_lib_prefix=unknown
10509 hardcode_into_libs=no
10511 # when you set need_version to no, make sure it does not cause -set_version
10512 # flags to be left without arguments
10513 need_version=unknown
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10519 shlibpath_var=LIBPATH
10521 # AIX 3 has no versioning support, so we append a major version to the name.
10522 soname_spec='${libname}${release}${shared_ext}$major'
10529 hardcode_into_libs=yes
10530 if test "$host_cpu" = ia64; then
10531 # AIX 5 supports IA64
10532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10533 shlibpath_var=LD_LIBRARY_PATH
10535 # With GCC up to 2.95.x, collect2 would create an import file
10536 # for dependence libraries. The import file would start with
10537 # the line `#! .'. This would cause the generated library to
10538 # depend on `.', always an invalid library. This was fixed in
10539 # development snapshots of GCC prior to 3.0.
10541 aix4 | aix4.[01] | aix4.[01].*)
10542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10547 can_build_shared=no
10551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10552 # soname into executable. Probably we can add versioning support to
10553 # collect2, so additional links can be useful in future.
10554 if test "$aix_use_runtimelinking" = yes; then
10555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10556 # instead of lib<name>.a to let people know that these are not
10557 # typical AIX shared libraries.
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 # We preserve .a as extension for shared libraries through AIX4.2
10561 # and later when we are not doing run time linking.
10562 library_names_spec='${libname}${release}.a $libname.a'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LIBPATH
10572 # Since July 2007 AmigaOS4 officially supports .so libraries.
10573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 library_names_spec='$libname.ixlibrary $libname.a'
10578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10579 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'
10585 library_names_spec='${libname}${shared_ext}'
10586 dynamic_linker="$host_os ld.so"
10587 shlibpath_var=LIBRARY_PATH
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10599 # the default ld.so.conf also contains /usr/contrib/lib and
10600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10601 # libtool to hard-code these into programs
10604 cygwin* | mingw* | pw32* | cegcc*)
10605 version_type=windows
10610 case $GCC,$host_os in
10611 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10612 library_names_spec='$libname.dll.a'
10613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10614 postinstall_cmds='base_file=`basename \${file}`~
10615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10616 dldir=$destdir/`dirname \$dlpath`~
10617 test -d \$dldir || mkdir -p \$dldir~
10618 $install_prog $dir/$dlname \$dldir/$dlname~
10619 chmod a+x \$dldir/$dlname~
10620 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10621 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10624 dlpath=$dir/\$dldll~
10626 shlibpath_overrides_runpath=yes
10630 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10636 # MinGW DLLs use traditional 'lib' prefix
10637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10640 # pw32 DLLs use 'pw' prefix rather than 'lib'
10641 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10650 dynamic_linker='Win32 ld.exe'
10651 # FIXME: first we should search . and the directory the executable is in
10655 darwin* | rhapsody*)
10656 dynamic_linker="$host_os dyld"
10657 version_type=darwin
10660 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10661 soname_spec='${libname}${release}${major}$shared_ext'
10662 shlibpath_overrides_runpath=yes
10663 shlibpath_var=DYLD_LIBRARY_PATH
10664 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10666 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10667 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 shlibpath_var=LD_LIBRARY_PATH
10679 freebsd* | dragonfly*)
10680 # DragonFly does not have aout. When/if they implement a new
10681 # versioning mechanism, adjust this.
10682 if test -x /usr/bin/objformat; then
10683 objformat=`/usr/bin/objformat`
10686 freebsd[23].*) objformat=aout ;;
10687 *) objformat=elf ;;
10690 version_type=freebsd-$objformat
10691 case $version_type in
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10702 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes
10707 freebsd3.[01]* | freebsdelf3.[01]*)
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10711 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10712 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10713 shlibpath_overrides_runpath=no
10714 hardcode_into_libs=yes
10716 *) # from 4.6 on, and DragonFly
10717 shlibpath_overrides_runpath=yes
10718 hardcode_into_libs=yes
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 hardcode_into_libs=yes
10737 dynamic_linker="$host_os runtime_loader"
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 shlibpath_var=LIBRARY_PATH
10741 shlibpath_overrides_runpath=yes
10742 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10743 hardcode_into_libs=yes
10746 hpux9* | hpux10* | hpux11*)
10747 # Give a soname corresponding to the major version so that dld.sl refuses to
10748 # link against other versions.
10755 hardcode_into_libs=yes
10756 dynamic_linker="$host_os dld.so"
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 if test "X$HPUX_IA64_MODE" = X32; then
10762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10770 hardcode_into_libs=yes
10771 dynamic_linker="$host_os dld.sl"
10772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10781 dynamic_linker="$host_os dld.sl"
10782 shlibpath_var=SHLIB_PATH
10783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10788 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10789 postinstall_cmds='chmod 555 $lib'
10790 # or fails outright, so override atomically:
10791 install_override_mode=555
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10806 irix5* | irix6* | nonstopux*)
10808 nonstopux*) version_type=nonstopux ;;
10810 if test "$lt_cv_prog_gnu_ld" = yes; then
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10821 irix5* | nonstopux*)
10822 libsuff= shlibsuff=
10825 case $LD in # libtool.m4 will add one of these switches to LD
10826 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10827 libsuff= shlibsuff= libmagic=32-bit;;
10828 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10829 libsuff=32 shlibsuff=N32 libmagic=N32;;
10830 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10831 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10832 *) libsuff= shlibsuff= libmagic=never-match;;
10836 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10837 shlibpath_overrides_runpath=no
10838 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10839 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10840 hardcode_into_libs=yes
10843 # No shared lib support for Linux oldld, aout, or coff.
10844 linux*oldld* | linux*aout* | linux*coff*)
10848 # This must be Linux ELF.
10849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10859 # Some binutils ld are patched to set DT_RUNPATH
10860 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10861 $as_echo_n "(cached) " >&6
10863 lt_cv_shlibpath_overrides_runpath=no
10864 save_LDFLAGS=$LDFLAGS
10865 save_libdir=$libdir
10866 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10867 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10879 if ac_fn_c_try_link "$LINENO"; then :
10880 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10881 lt_cv_shlibpath_overrides_runpath=yes
10884 rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LDFLAGS=$save_LDFLAGS
10887 libdir=$save_libdir
10891 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10893 # This implies no fast_install, which is unacceptable.
10894 # Some rework will be needed to allow for fast_install
10895 # before this can be enabled.
10896 hardcode_into_libs=yes
10898 # Append ld.so.conf contents to the search path
10899 if test -f /etc/ld.so.conf; then
10900 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' ' '`
10901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10904 # We used to test for /lib/ld.so.1 and disable shared libraries on
10905 # powerpc, because MkLinux only supported shared libraries with the
10906 # GNU dynamic linker. Since this was broken with cross compilers,
10907 # most powerpc-linux boxes support dynamic linking these days and
10908 # people can always --disable-shared, the test was removed, and we
10909 # assume the GNU/Linux dynamic linker is in use.
10910 dynamic_linker='GNU/Linux ld.so'
10917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920 dynamic_linker='NetBSD (a.out) ld.so'
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 dynamic_linker='NetBSD ld.elf_so'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 hardcode_into_libs=yes
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=no
10946 hardcode_into_libs=yes
10947 dynamic_linker='ldqnx.so'
10952 sys_lib_dlsearch_path_spec="/usr/lib"
10954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10957 *) need_version=no ;;
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10964 openbsd2.[89] | openbsd2.[89].*)
10965 shlibpath_overrides_runpath=no
10968 shlibpath_overrides_runpath=yes
10972 shlibpath_overrides_runpath=yes
10977 libname_spec='$name'
10980 library_names_spec='$libname${shared_ext} $libname.a'
10981 dynamic_linker='OS/2 ld.exe'
10982 shlibpath_var=LIBPATH
10985 osf3* | osf4* | osf5*)
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005 soname_spec='${libname}${release}${shared_ext}$major'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=yes
11008 hardcode_into_libs=yes
11009 # ldd complains unless libraries are executable
11010 postinstall_cmds='chmod +x $lib'
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11019 if test "$with_gnu_ld" = yes; then
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 case $host_vendor in
11032 shlibpath_overrides_runpath=no
11034 runpath_var=LD_RUN_PATH
11042 shlibpath_overrides_runpath=no
11043 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11049 if test -d /usr/nec ;then
11051 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11052 soname_spec='$libname${shared_ext}.$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11058 version_type=freebsd-elf
11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=yes
11065 hardcode_into_libs=yes
11066 if test "$with_gnu_ld" = yes; then
11067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11069 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11072 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11076 sys_lib_dlsearch_path_spec='/usr/lib'
11080 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=no
11087 hardcode_into_libs=yes
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11102 $as_echo "$dynamic_linker" >&6; }
11103 test "$dynamic_linker" = no && can_build_shared=no
11105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11106 if test "$GCC" = yes; then
11107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11110 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11111 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11113 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11114 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11209 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11211 if test -n "$hardcode_libdir_flag_spec" ||
11212 test -n "$runpath_var" ||
11213 test "X$hardcode_automatic" = "Xyes" ; then
11215 # We can hardcode non-existent directories.
11216 if test "$hardcode_direct" != no &&
11217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11218 # have to relink, otherwise we might link with an installed library
11219 # when we should be linking with a yet-to-be-installed one
11220 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11221 test "$hardcode_minus_L" != no; then
11222 # Linking always hardcodes the temporary library directory.
11223 hardcode_action=relink
11225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11226 hardcode_action=immediate
11229 # We cannot hardcode anything, or else we can only hardcode existing
11231 hardcode_action=unsupported
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11234 $as_echo "$hardcode_action" >&6; }
11236 if test "$hardcode_action" = relink ||
11237 test "$inherit_rpath" = yes; then
11238 # Fast installation is not supported
11239 enable_fast_install=no
11240 elif test "$shlibpath_overrides_runpath" = yes ||
11241 test "$enable_shared" = no; then
11242 # Fast installation is not necessary
11243 enable_fast_install=needless
11251 if test "x$enable_dlopen" != xyes; then
11252 enable_dlopen=unknown
11253 enable_dlopen_self=unknown
11254 enable_dlopen_self_static=unknown
11261 lt_cv_dlopen="load_add_on"
11263 lt_cv_dlopen_self=yes
11266 mingw* | pw32* | cegcc*)
11267 lt_cv_dlopen="LoadLibrary"
11272 lt_cv_dlopen="dlopen"
11277 # if libdl is installed we need to link against it
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11279 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11280 if ${ac_cv_lib_dl_dlopen+:} false; then :
11281 $as_echo_n "(cached) " >&6
11283 ac_check_lib_save_LIBS=$LIBS
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11288 /* Override any GCC internal prototype to avoid an error.
11289 Use char because int might match the return type of a GCC
11290 builtin and then its argument prototype would still apply. */
11303 if ac_fn_c_try_link "$LINENO"; then :
11304 ac_cv_lib_dl_dlopen=yes
11306 ac_cv_lib_dl_dlopen=no
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_lib_save_LIBS
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11313 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11314 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11318 lt_cv_dlopen="dyld"
11320 lt_cv_dlopen_self=yes
11327 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11328 if test "x$ac_cv_func_shl_load" = xyes; then :
11329 lt_cv_dlopen="shl_load"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11332 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11333 if ${ac_cv_lib_dld_shl_load+:} false; then :
11334 $as_echo_n "(cached) " >&6
11336 ac_check_lib_save_LIBS=$LIBS
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11341 /* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11351 return shl_load ();
11356 if ac_fn_c_try_link "$LINENO"; then :
11357 ac_cv_lib_dld_shl_load=yes
11359 ac_cv_lib_dld_shl_load=no
11361 rm -f core conftest.err conftest.$ac_objext \
11362 conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11366 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11367 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11368 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11370 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11371 if test "x$ac_cv_func_dlopen" = xyes; then :
11372 lt_cv_dlopen="dlopen"
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11376 if ${ac_cv_lib_dl_dlopen+:} false; then :
11377 $as_echo_n "(cached) " >&6
11379 ac_check_lib_save_LIBS=$LIBS
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11384 /* Override any GCC internal prototype to avoid an error.
11385 Use char because int might match the return type of a GCC
11386 builtin and then its argument prototype would still apply. */
11399 if ac_fn_c_try_link "$LINENO"; then :
11400 ac_cv_lib_dl_dlopen=yes
11402 ac_cv_lib_dl_dlopen=no
11404 rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11406 LIBS=$ac_check_lib_save_LIBS
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11410 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11414 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11415 if ${ac_cv_lib_svld_dlopen+:} false; then :
11416 $as_echo_n "(cached) " >&6
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lsvld $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_svld_dlopen=yes
11441 ac_cv_lib_svld_dlopen=no
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11448 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11449 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11453 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11454 if ${ac_cv_lib_dld_dld_link+:} false; then :
11455 $as_echo_n "(cached) " >&6
11457 ac_check_lib_save_LIBS=$LIBS
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11472 return dld_link ();
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 ac_cv_lib_dld_dld_link=yes
11480 ac_cv_lib_dld_dld_link=no
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11487 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11488 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11489 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11510 if test "x$lt_cv_dlopen" != xno; then
11516 case $lt_cv_dlopen in
11518 save_CPPFLAGS="$CPPFLAGS"
11519 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11521 save_LDFLAGS="$LDFLAGS"
11522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11525 LIBS="$lt_cv_dlopen_libs $LIBS"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11528 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11529 if ${lt_cv_dlopen_self+:} false; then :
11530 $as_echo_n "(cached) " >&6
11532 if test "$cross_compiling" = yes; then :
11533 lt_cv_dlopen_self=cross
11535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11536 lt_status=$lt_dlunknown
11537 cat > conftest.$ac_ext <<_LT_EOF
11538 #line 11538 "configure"
11539 #include "confdefs.h"
11548 # define LT_DLGLOBAL RTLD_GLOBAL
11551 # define LT_DLGLOBAL DL_GLOBAL
11553 # define LT_DLGLOBAL 0
11557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11558 find out it does not work in some platform. */
11559 #ifndef LT_DLLAZY_OR_NOW
11561 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11564 # define LT_DLLAZY_OR_NOW DL_LAZY
11567 # define LT_DLLAZY_OR_NOW RTLD_NOW
11570 # define LT_DLLAZY_OR_NOW DL_NOW
11572 # define LT_DLLAZY_OR_NOW 0
11579 /* When -fvisbility=hidden is used, assume the code has been annotated
11580 correspondingly for the symbols needed. */
11581 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11582 void fnord () __attribute__((visibility("default")));
11585 void fnord () { int i=42; }
11588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11589 int status = $lt_dlunknown;
11593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11596 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 else puts (dlerror ());
11599 /* dlclose (self); */
11607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11608 (eval $ac_link) 2>&5
11610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11612 (./conftest; exit; ) >&5 2>/dev/null
11614 case x$lt_status in
11615 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11616 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11617 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11620 # compilation failed
11621 lt_cv_dlopen_self=no
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11629 $as_echo "$lt_cv_dlopen_self" >&6; }
11631 if test "x$lt_cv_dlopen_self" = xyes; then
11632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11634 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11635 if ${lt_cv_dlopen_self_static+:} false; then :
11636 $as_echo_n "(cached) " >&6
11638 if test "$cross_compiling" = yes; then :
11639 lt_cv_dlopen_self_static=cross
11641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642 lt_status=$lt_dlunknown
11643 cat > conftest.$ac_ext <<_LT_EOF
11644 #line 11644 "configure"
11645 #include "confdefs.h"
11654 # define LT_DLGLOBAL RTLD_GLOBAL
11657 # define LT_DLGLOBAL DL_GLOBAL
11659 # define LT_DLGLOBAL 0
11663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664 find out it does not work in some platform. */
11665 #ifndef LT_DLLAZY_OR_NOW
11667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11670 # define LT_DLLAZY_OR_NOW DL_LAZY
11673 # define LT_DLLAZY_OR_NOW RTLD_NOW
11676 # define LT_DLLAZY_OR_NOW DL_NOW
11678 # define LT_DLLAZY_OR_NOW 0
11685 /* When -fvisbility=hidden is used, assume the code has been annotated
11686 correspondingly for the symbols needed. */
11687 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688 void fnord () __attribute__((visibility("default")));
11691 void fnord () { int i=42; }
11694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695 int status = $lt_dlunknown;
11699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11702 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11703 else puts (dlerror ());
11705 /* dlclose (self); */
11713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714 (eval $ac_link) 2>&5
11716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11718 (./conftest; exit; ) >&5 2>/dev/null
11720 case x$lt_status in
11721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11726 # compilation failed
11727 lt_cv_dlopen_self_static=no
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11735 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11738 CPPFLAGS="$save_CPPFLAGS"
11739 LDFLAGS="$save_LDFLAGS"
11744 case $lt_cv_dlopen_self in
11745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11746 *) enable_dlopen_self=unknown ;;
11749 case $lt_cv_dlopen_self_static in
11750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11751 *) enable_dlopen_self_static=unknown ;;
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11774 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11775 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11777 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11779 $as_echo "yes" >&6; }
11781 # FIXME - insert some real tests, host_os isn't really good enough
11784 if test -n "$STRIP" ; then
11785 striplib="$STRIP -x"
11786 old_striplib="$STRIP -S"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788 $as_echo "yes" >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11812 # Report which library types will actually be built
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11814 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11816 $as_echo "$can_build_shared" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11819 $as_echo_n "checking whether to build shared libraries... " >&6; }
11820 test "$can_build_shared" = "no" && enable_shared=no
11822 # On AIX, shared libraries and static libraries use the same namespace, and
11823 # are all built from PIC.
11826 test "$enable_shared" = yes && enable_static=no
11827 if test -n "$RANLIB"; then
11828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11829 postinstall_cmds='$RANLIB $lib'
11834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11835 test "$enable_shared" = yes && enable_static=no
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11840 $as_echo "$enable_shared" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11843 $as_echo_n "checking whether to build static libraries... " >&6; }
11844 # Make sure either enable_shared or enable_static is yes.
11845 test "$enable_shared" = yes || enable_static=yes
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11847 $as_echo "$enable_static" >&6; }
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11873 ac_config_commands="$ac_config_commands libtool"
11878 # Only expand once:
11882 # The tests for host and target for $enable_largefile require
11887 # As the $enable_largefile decision depends on --enable-plugins we must set it
11888 # even in directories otherwise not depending on the $plugins option.
11892 for ac_header in dlfcn.h
11894 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11896 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_DLFCN_H 1
11905 for ac_header in windows.h
11907 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11909 if test "x$ac_cv_header_windows_h" = xyes; then :
11910 cat >>confdefs.h <<_ACEOF
11911 #define HAVE_WINDOWS_H 1
11919 # Check whether --enable-plugins was given.
11920 if test "${enable_plugins+set}" = set; then :
11921 enableval=$enable_plugins; case "${enableval}" in
11924 if test "$maybe_plugins" != "yes" ; then
11925 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11929 plugins=$maybe_plugins
11933 if test "$plugins" = "yes"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11935 $as_echo_n "checking for library containing dlsym... " >&6; }
11936 if ${ac_cv_search_dlsym+:} false; then :
11937 $as_echo_n "(cached) " >&6
11939 ac_func_search_save_LIBS=$LIBS
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11958 for ac_lib in '' dl; do
11959 if test -z "$ac_lib"; then
11960 ac_res="none required"
11963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 ac_cv_search_dlsym=$ac_res
11968 rm -f core conftest.err conftest.$ac_objext \
11970 if ${ac_cv_search_dlsym+:} false; then :
11974 if ${ac_cv_search_dlsym+:} false; then :
11977 ac_cv_search_dlsym=no
11979 rm conftest.$ac_ext
11980 LIBS=$ac_func_search_save_LIBS
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11983 $as_echo "$ac_cv_search_dlsym" >&6; }
11984 ac_res=$ac_cv_search_dlsym
11985 if test "$ac_res" != no; then :
11986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11994 sparc-*-solaris*|i[3-7]86-*-solaris*)
11995 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11996 # are mutually exclusive; and without procfs support, the bfd/ elf module
11997 # cannot provide certain routines such as elfcore_write_prpsinfo
11998 # or elfcore_write_prstatus. So unless the user explicitly requested
11999 # large-file support through the --enable-largefile switch, disable
12000 # large-file support in favor of procfs support.
12001 test "${target}" = "${host}" -a "x$plugins" = xno \
12002 && : ${enable_largefile="no"}
12006 # Check whether --enable-largefile was given.
12007 if test "${enable_largefile+set}" = set; then :
12008 enableval=$enable_largefile;
12011 if test "$enable_largefile" != no; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12014 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12015 if ${ac_cv_sys_largefile_CC+:} false; then :
12016 $as_echo_n "(cached) " >&6
12018 ac_cv_sys_largefile_CC=no
12019 if test "$GCC" != yes; then
12022 # IRIX 6.2 and later do not support large files by default,
12023 # so use the C compiler's -n32 option if that helps.
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026 #include <sys/types.h>
12027 /* Check that off_t can represent 2**63 - 1 correctly.
12028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12029 since some C++ compilers masquerading as C compilers
12030 incorrectly reject 9223372036854775807. */
12031 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12033 && LARGE_OFF_T % 2147483647 == 1)
12043 if ac_fn_c_try_compile "$LINENO"; then :
12046 rm -f core conftest.err conftest.$ac_objext
12048 if ac_fn_c_try_compile "$LINENO"; then :
12049 ac_cv_sys_largefile_CC=' -n32'; break
12051 rm -f core conftest.err conftest.$ac_objext
12055 rm -f conftest.$ac_ext
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12059 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12060 if test "$ac_cv_sys_largefile_CC" != no; then
12061 CC=$CC$ac_cv_sys_largefile_CC
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12065 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12066 if ${ac_cv_sys_file_offset_bits+:} false; then :
12067 $as_echo_n "(cached) " >&6
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 #include <sys/types.h>
12073 /* Check that off_t can represent 2**63 - 1 correctly.
12074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12075 since some C++ compilers masquerading as C compilers
12076 incorrectly reject 9223372036854775807. */
12077 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12079 && LARGE_OFF_T % 2147483647 == 1)
12089 if ac_fn_c_try_compile "$LINENO"; then :
12090 ac_cv_sys_file_offset_bits=no; break
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #define _FILE_OFFSET_BITS 64
12096 #include <sys/types.h>
12097 /* Check that off_t can represent 2**63 - 1 correctly.
12098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12099 since some C++ compilers masquerading as C compilers
12100 incorrectly reject 9223372036854775807. */
12101 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12103 && LARGE_OFF_T % 2147483647 == 1)
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114 ac_cv_sys_file_offset_bits=64; break
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 ac_cv_sys_file_offset_bits=unknown
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12122 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12123 case $ac_cv_sys_file_offset_bits in #(
12126 cat >>confdefs.h <<_ACEOF
12127 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12132 if test $ac_cv_sys_file_offset_bits = unknown; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12134 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12135 if ${ac_cv_sys_large_files+:} false; then :
12136 $as_echo_n "(cached) " >&6
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 #include <sys/types.h>
12142 /* Check that off_t can represent 2**63 - 1 correctly.
12143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12144 since some C++ compilers masquerading as C compilers
12145 incorrectly reject 9223372036854775807. */
12146 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12148 && LARGE_OFF_T % 2147483647 == 1)
12158 if ac_fn_c_try_compile "$LINENO"; then :
12159 ac_cv_sys_large_files=no; break
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164 #define _LARGE_FILES 1
12165 #include <sys/types.h>
12166 /* Check that off_t can represent 2**63 - 1 correctly.
12167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12168 since some C++ compilers masquerading as C compilers
12169 incorrectly reject 9223372036854775807. */
12170 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12172 && LARGE_OFF_T % 2147483647 == 1)
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183 ac_cv_sys_large_files=1; break
12185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 ac_cv_sys_large_files=unknown
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12191 $as_echo "$ac_cv_sys_large_files" >&6; }
12192 case $ac_cv_sys_large_files in #(
12195 cat >>confdefs.h <<_ACEOF
12196 #define _LARGE_FILES $ac_cv_sys_large_files
12208 # Check whether --enable-targets was given.
12209 if test "${enable_targets+set}" = set; then :
12210 enableval=$enable_targets; case "${enableval}" in
12211 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12213 no) enable_targets= ;;
12214 *) enable_targets=$enableval ;;
12218 # Check whether --enable-deterministic-archives was given.
12219 if test "${enable_deterministic_archives+set}" = set; then :
12220 enableval=$enable_deterministic_archives;
12221 if test "${enableval}" = no; then
12222 default_ar_deterministic=0
12224 default_ar_deterministic=1
12227 default_ar_deterministic=0
12232 cat >>confdefs.h <<_ACEOF
12233 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
12237 # Check whether --enable-default-strings-all was given.
12238 if test "${enable_default_strings_all+set}" = set; then :
12239 enableval=$enable_default_strings_all;
12240 if test "${enableval}" = no; then
12241 default_strings_all=0
12243 default_strings_all=1
12246 default_strings_all=1
12251 cat >>confdefs.h <<_ACEOF
12252 #define DEFAULT_STRINGS_ALL $default_strings_all
12257 # Set the 'development' global.
12258 . $srcdir/../bfd/development.sh
12260 # Set acp_cpp_for_build variable
12261 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12263 # Default set of GCC warnings to enable.
12264 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12265 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12267 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12273 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12276 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12281 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12287 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12290 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12295 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12296 WARN_WRITE_STRINGS=""
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12302 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12305 WARN_WRITE_STRINGS="-Wwrite-strings"
12310 # Verify CC_FOR_BUILD to be compatible with warning flags
12312 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12317 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12318 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12321 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12326 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12331 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12332 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12335 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12340 # Check whether --enable-werror was given.
12341 if test "${enable_werror+set}" = set; then :
12342 enableval=$enable_werror; case "${enableval}" in
12343 yes | y) ERROR_ON_WARNING="yes" ;;
12344 no | n) ERROR_ON_WARNING="no" ;;
12345 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12350 # Disable -Wformat by default when using gcc on mingw
12353 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12354 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12355 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12361 # Enable -Werror by default when using gcc. Turn it off for releases.
12362 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12363 ERROR_ON_WARNING=yes
12367 if test "${ERROR_ON_WARNING}" = yes ; then
12368 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12369 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12370 NO_WERROR="-Wno-error"
12373 if test "${GCC}" = yes ; then
12374 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12375 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12378 # Check whether --enable-build-warnings was given.
12379 if test "${enable_build_warnings+set}" = set; then :
12380 enableval=$enable_build_warnings; case "${enableval}" in
12381 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12382 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12383 no) if test "${GCC}" = yes ; then
12385 WARN_CFLAGS_FOR_BUILD="-w"
12387 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12388 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12389 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12390 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12391 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12392 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12393 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12394 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12399 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12400 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12409 ac_config_headers="$ac_config_headers config.h:config.in"
12414 if test -z "$target" ; then
12415 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12417 if test -z "$host" ; then
12418 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12421 for ac_prog in 'bison -y' byacc
12423 # Extract the first word of "$ac_prog", so it can be a program name with args.
12424 set dummy $ac_prog; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_YACC+:} false; then :
12428 $as_echo_n "(cached) " >&6
12430 if test -n "$YACC"; then
12431 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_YACC="$ac_prog"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 YACC=$ac_cv_prog_YACC
12451 if test -n "$YACC"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12453 $as_echo "$YACC" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12460 test -n "$YACC" && break
12462 test -n "$YACC" || YACC="yacc"
12464 for ac_prog in flex lex
12466 # Extract the first word of "$ac_prog", so it can be a program name with args.
12467 set dummy $ac_prog; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_prog_LEX+:} false; then :
12471 $as_echo_n "(cached) " >&6
12473 if test -n "$LEX"; then
12474 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_prog_LEX="$ac_prog"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 LEX=$ac_cv_prog_LEX
12494 if test -n "$LEX"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12496 $as_echo "$LEX" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12503 test -n "$LEX" && break
12505 test -n "$LEX" || LEX=":"
12509 *) cat >conftest.l <<_ACEOF
12515 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12516 yyless ((input () != 0)); }
12517 f { unput (yytext[0]); }
12518 . { BEGIN INITIAL; }
12520 #ifdef YYTEXT_POINTER
12521 extern char *yytext;
12526 return ! yylex () + ! yywrap ();
12529 { { ac_try="$LEX conftest.l"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12535 $as_echo "$ac_try_echo"; } >&5
12536 (eval "$LEX conftest.l") 2>&5
12538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12539 test $ac_status = 0; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12541 $as_echo_n "checking lex output file root... " >&6; }
12542 if ${ac_cv_prog_lex_root+:} false; then :
12543 $as_echo_n "(cached) " >&6
12546 if test -f lex.yy.c; then
12547 ac_cv_prog_lex_root=lex.yy
12548 elif test -f lexyy.c; then
12549 ac_cv_prog_lex_root=lexyy
12551 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12555 $as_echo "$ac_cv_prog_lex_root" >&6; }
12556 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12558 if test -z "${LEXLIB+set}"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12560 $as_echo_n "checking lex library... " >&6; }
12561 if ${ac_cv_lib_lex+:} false; then :
12562 $as_echo_n "(cached) " >&6
12566 ac_cv_lib_lex='none needed'
12567 for ac_lib in '' -lfl -ll; do
12568 LIBS="$ac_lib $ac_save_LIBS"
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 `cat $LEX_OUTPUT_ROOT.c`
12573 if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_lib_lex=$ac_lib
12576 rm -f core conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12578 test "$ac_cv_lib_lex" != 'none needed' && break
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12584 $as_echo "$ac_cv_lib_lex" >&6; }
12585 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12590 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12591 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12592 $as_echo_n "(cached) " >&6
12594 # POSIX says lex can declare yytext either as a pointer or an array; the
12595 # default is implementation-dependent. Figure out which it is, since
12596 # not all implementations provide the %pointer and %array declarations.
12597 ac_cv_prog_lex_yytext_pointer=no
12599 LIBS="$LEXLIB $ac_save_LIBS"
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12603 #define YYTEXT_POINTER 1
12604 `cat $LEX_OUTPUT_ROOT.c`
12606 if ac_fn_c_try_link "$LINENO"; then :
12607 ac_cv_prog_lex_yytext_pointer=yes
12609 rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12615 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12616 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12618 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12621 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12624 if test "$LEX" = :; then
12625 LEX=${am_missing_run}flex
12628 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"
12629 # If we haven't got the data from the intl directory,
12630 # assume NLS is disabled.
12639 if test -f ../intl/config.intl; then
12640 . ../intl/config.intl
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12643 $as_echo_n "checking whether NLS is requested... " >&6; }
12644 if test x"$USE_NLS" != xyes; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12651 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12655 $as_echo_n "checking for catalogs to be installed... " >&6; }
12656 # Look for .po and .gmo files in the source directory.
12659 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12660 # If there aren't any .gmo files the shell will give us the
12661 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12663 case "$cat" in *\**)
12666 # The quadruple backslash is collapsed to a double backslash
12667 # by the backticks, then collapsed again by the double quotes,
12668 # leaving us with one backslash in the sed expression (right
12669 # before the dot that mustn't act as a wildcard).
12670 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12671 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12672 # The user is allowed to set LINGUAS to a list of languages to
12673 # install catalogs for. If it's empty that means "all of them."
12674 if test "x$LINGUAS" = x; then
12675 CATALOGS="$CATALOGS $cat"
12676 XLINGUAS="$XLINGUAS $lang"
12678 case "$LINGUAS" in *$lang*)
12679 CATALOGS="$CATALOGS $cat"
12680 XLINGUAS="$XLINGUAS $lang"
12685 LINGUAS="$XLINGUAS"
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12687 $as_echo "$LINGUAS" >&6; }
12701 if test -n "$ac_aux_dir"; then
12702 case "$ac_aux_dir" in
12703 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12704 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12707 if test -z "$MKINSTALLDIRS"; then
12708 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12714 $as_echo_n "checking whether NLS is requested... " >&6; }
12715 # Check whether --enable-nls was given.
12716 if test "${enable_nls+set}" = set; then :
12717 enableval=$enable_nls; USE_NLS=$enableval
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12723 $as_echo "$USE_NLS" >&6; }
12730 # Prepare PATH_SEPARATOR.
12731 # The user is always right.
12732 if test "${PATH_SEPARATOR+set}" != set; then
12733 echo "#! /bin/sh" >conf$$.sh
12734 echo "exit 0" >>conf$$.sh
12736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12744 # Find out how to test for executable files. Don't use a zero-byte file,
12745 # as systems may use methods other than mode bits to determine executability.
12746 cat >conf$$.file <<_ASEOF
12750 chmod +x conf$$.file
12751 if test -x conf$$.file >/dev/null 2>&1; then
12752 ac_executable_p="test -x"
12754 ac_executable_p="test -f"
12758 # Extract the first word of "msgfmt", so it can be a program name with args.
12759 set dummy msgfmt; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if ${ac_cv_path_MSGFMT+:} false; then :
12763 $as_echo_n "(cached) " >&6
12767 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12771 for ac_dir in $PATH; do
12773 test -z "$ac_dir" && ac_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12776 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12777 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12778 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12789 MSGFMT="$ac_cv_path_MSGFMT"
12790 if test "$MSGFMT" != ":"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12792 $as_echo "$MSGFMT" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12799 set dummy gmsgfmt; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if ${ac_cv_path_GMSGFMT+:} false; then :
12803 $as_echo_n "(cached) " >&6
12807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12817 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12829 GMSGFMT=$ac_cv_path_GMSGFMT
12830 if test -n "$GMSGFMT"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12832 $as_echo "$GMSGFMT" >&6; }
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12841 # Prepare PATH_SEPARATOR.
12842 # The user is always right.
12843 if test "${PATH_SEPARATOR+set}" != set; then
12844 echo "#! /bin/sh" >conf$$.sh
12845 echo "exit 0" >>conf$$.sh
12847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12855 # Find out how to test for executable files. Don't use a zero-byte file,
12856 # as systems may use methods other than mode bits to determine executability.
12857 cat >conf$$.file <<_ASEOF
12861 chmod +x conf$$.file
12862 if test -x conf$$.file >/dev/null 2>&1; then
12863 ac_executable_p="test -x"
12865 ac_executable_p="test -f"
12869 # Extract the first word of "xgettext", so it can be a program name with args.
12870 set dummy xgettext; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if ${ac_cv_path_XGETTEXT+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 case "$XGETTEXT" in
12878 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12882 for ac_dir in $PATH; do
12884 test -z "$ac_dir" && ac_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12887 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12888 (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
12889 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12896 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12900 XGETTEXT="$ac_cv_path_XGETTEXT"
12901 if test "$XGETTEXT" != ":"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12903 $as_echo "$XGETTEXT" >&6; }
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12912 # Prepare PATH_SEPARATOR.
12913 # The user is always right.
12914 if test "${PATH_SEPARATOR+set}" != set; then
12915 echo "#! /bin/sh" >conf$$.sh
12916 echo "exit 0" >>conf$$.sh
12918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12926 # Find out how to test for executable files. Don't use a zero-byte file,
12927 # as systems may use methods other than mode bits to determine executability.
12928 cat >conf$$.file <<_ASEOF
12932 chmod +x conf$$.file
12933 if test -x conf$$.file >/dev/null 2>&1; then
12934 ac_executable_p="test -x"
12936 ac_executable_p="test -f"
12940 # Extract the first word of "msgmerge", so it can be a program name with args.
12941 set dummy msgmerge; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_path_MSGMERGE+:} false; then :
12945 $as_echo_n "(cached) " >&6
12947 case "$MSGMERGE" in
12949 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12953 for ac_dir in $PATH; do
12955 test -z "$ac_dir" && ac_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12958 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12959 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12966 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12970 MSGMERGE="$ac_cv_path_MSGMERGE"
12971 if test "$MSGMERGE" != ":"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12973 $as_echo "$MSGMERGE" >&6; }
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12980 if test "$GMSGFMT" != ":"; then
12981 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12982 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12985 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12987 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12992 if test "$XGETTEXT" != ":"; then
12993 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12994 (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
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12998 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13004 ac_config_commands="$ac_config_commands default-1"
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13010 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13011 # Check whether --enable-maintainer-mode was given.
13012 if test "${enable_maintainer_mode+set}" = set; then :
13013 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13015 USE_MAINTAINER_MODE=no
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13019 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13020 if test $USE_MAINTAINER_MODE = yes; then
13021 MAINTAINER_MODE_TRUE=
13022 MAINTAINER_MODE_FALSE='#'
13024 MAINTAINER_MODE_TRUE='#'
13025 MAINTAINER_MODE_FALSE=
13028 MAINT=$MAINTAINER_MODE_TRUE
13032 GENINSRC_NEVER_TRUE=
13033 GENINSRC_NEVER_FALSE='#'
13035 GENINSRC_NEVER_TRUE='#'
13036 GENINSRC_NEVER_FALSE=
13040 if test -n "$EXEEXT"; then
13042 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
13046 cat >>confdefs.h <<_ACEOF
13047 #define EXECUTABLE_SUFFIX "${EXEEXT}"
13051 # host-specific stuff:
13055 . ${srcdir}/../bfd/configure.host
13060 if test -n "$ac_tool_prefix"; then
13061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13062 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_prog_RANLIB+:} false; then :
13066 $as_echo_n "(cached) " >&6
13068 if test -n "$RANLIB"; then
13069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13078 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 RANLIB=$ac_cv_prog_RANLIB
13089 if test -n "$RANLIB"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13091 $as_echo "$RANLIB" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13099 if test -z "$ac_cv_prog_RANLIB"; then
13100 ac_ct_RANLIB=$RANLIB
13101 # Extract the first word of "ranlib", so it can be a program name with args.
13102 set dummy ranlib; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13106 $as_echo_n "(cached) " >&6
13108 if test -n "$ac_ct_RANLIB"; then
13109 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118 ac_cv_prog_ac_ct_RANLIB="ranlib"
13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13129 if test -n "$ac_ct_RANLIB"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13131 $as_echo "$ac_ct_RANLIB" >&6; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13137 if test "x$ac_ct_RANLIB" = x; then
13140 case $cross_compiling:$ac_tool_warned in
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13144 ac_tool_warned=yes ;;
13146 RANLIB=$ac_ct_RANLIB
13149 RANLIB="$ac_cv_prog_RANLIB"
13154 # Put a plausible default for CC_FOR_BUILD in Makefile.
13155 if test -z "$CC_FOR_BUILD"; then
13156 if test "x$cross_compiling" = "xno"; then
13157 CC_FOR_BUILD='$(CC)'
13163 # Also set EXEEXT_FOR_BUILD.
13164 if test "x$cross_compiling" = "xno"; then
13165 EXEEXT_FOR_BUILD='$(EXEEXT)'
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13168 $as_echo_n "checking for build system executable suffix... " >&6; }
13169 if ${bfd_cv_build_exeext+:} false; then :
13170 $as_echo_n "(cached) " >&6
13173 echo 'int main () { return 0; }' > conftest.c
13174 bfd_cv_build_exeext=
13175 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13176 for file in conftest.*; do
13178 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13179 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13183 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13186 $as_echo "$bfd_cv_build_exeext" >&6; }
13187 EXEEXT_FOR_BUILD=""
13188 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13192 DEMANGLER_NAME=c++filt
13194 *-*-go32* | *-*-msdos*)
13195 DEMANGLER_NAME=cxxfilt
13199 # The cast to long int works around a bug in the HP C Compiler
13200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13202 # This bug is HP SR number 8606223364.
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13204 $as_echo_n "checking size of long... " >&6; }
13205 if ${ac_cv_sizeof_long+:} false; then :
13206 $as_echo_n "(cached) " >&6
13208 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13211 if test "$ac_cv_type_long" = yes; then
13212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13214 as_fn_error 77 "cannot compute sizeof (long)
13215 See \`config.log' for more details" "$LINENO" 5; }
13217 ac_cv_sizeof_long=0
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13223 $as_echo "$ac_cv_sizeof_long" >&6; }
13227 cat >>confdefs.h <<_ACEOF
13228 #define SIZEOF_LONG $ac_cv_sizeof_long
13232 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13233 if test "x$ac_cv_type_long_long" = xyes; then :
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LONG_LONG 1
13239 # The cast to long int works around a bug in the HP C Compiler
13240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13242 # This bug is HP SR number 8606223364.
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13244 $as_echo_n "checking size of long long... " >&6; }
13245 if ${ac_cv_sizeof_long_long+:} false; then :
13246 $as_echo_n "(cached) " >&6
13248 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13251 if test "$ac_cv_type_long_long" = yes; then
13252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13254 as_fn_error 77 "cannot compute sizeof (long long)
13255 See \`config.log' for more details" "$LINENO" 5; }
13257 ac_cv_sizeof_long_long=0
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13263 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13267 cat >>confdefs.h <<_ACEOF
13268 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13275 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
13277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13278 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13280 cat >>confdefs.h <<_ACEOF
13281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13289 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13290 if ${ac_cv_header_sys_wait_h+:} false; then :
13291 $as_echo_n "(cached) " >&6
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 #include <sys/types.h>
13296 #include <sys/wait.h>
13297 #ifndef WEXITSTATUS
13298 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13301 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13309 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13314 if ac_fn_c_try_compile "$LINENO"; then :
13315 ac_cv_header_sys_wait_h=yes
13317 ac_cv_header_sys_wait_h=no
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13322 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13323 if test $ac_cv_header_sys_wait_h = yes; then
13325 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13330 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13331 if ${gcc_cv_header_string+:} false; then :
13332 $as_echo_n "(cached) " >&6
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <string.h>
13337 #include <strings.h>
13346 if ac_fn_c_try_compile "$LINENO"; then :
13347 gcc_cv_header_string=yes
13349 gcc_cv_header_string=no
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13354 $as_echo "$gcc_cv_header_string" >&6; }
13355 if test $gcc_cv_header_string = yes; then
13357 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13361 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13362 if test "x$ac_cv_type_size_t" = xyes; then :
13366 cat >>confdefs.h <<_ACEOF
13367 #define size_t unsigned int
13372 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13373 # for constant arguments. Useless!
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13375 $as_echo_n "checking for working alloca.h... " >&6; }
13376 if ${ac_cv_working_alloca_h+:} false; then :
13377 $as_echo_n "(cached) " >&6
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 #include <alloca.h>
13385 char *p = (char *) alloca (2 * sizeof (int));
13391 if ac_fn_c_try_link "$LINENO"; then :
13392 ac_cv_working_alloca_h=yes
13394 ac_cv_working_alloca_h=no
13396 rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13400 $as_echo "$ac_cv_working_alloca_h" >&6; }
13401 if test $ac_cv_working_alloca_h = yes; then
13403 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13408 $as_echo_n "checking for alloca... " >&6; }
13409 if ${ac_cv_func_alloca_works+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13415 # define alloca __builtin_alloca
13418 # include <malloc.h>
13419 # define alloca _alloca
13421 # ifdef HAVE_ALLOCA_H
13422 # include <alloca.h>
13427 # ifndef alloca /* predefined by HP cc +Olibcalls */
13428 void *alloca (size_t);
13438 char *p = (char *) alloca (1);
13444 if ac_fn_c_try_link "$LINENO"; then :
13445 ac_cv_func_alloca_works=yes
13447 ac_cv_func_alloca_works=no
13449 rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext conftest.$ac_ext
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13453 $as_echo "$ac_cv_func_alloca_works" >&6; }
13455 if test $ac_cv_func_alloca_works = yes; then
13457 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13460 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13461 # that cause trouble. Some versions do not even contain alloca or
13462 # contain a buggy version. If you still want to use their alloca,
13463 # use ar to extract alloca.o from them instead of compiling alloca.c.
13465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13467 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13471 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13472 if ${ac_cv_os_cray+:} false; then :
13473 $as_echo_n "(cached) " >&6
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 #if defined CRAY && ! defined CRAY2
13484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13485 $EGREP "webecray" >/dev/null 2>&1; then :
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13494 $as_echo "$ac_cv_os_cray" >&6; }
13495 if test $ac_cv_os_cray = yes; then
13496 for ac_func in _getb67 GETB67 getb67; do
13497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13501 cat >>confdefs.h <<_ACEOF
13502 #define CRAY_STACKSEG_END $ac_func
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13512 $as_echo_n "checking stack direction for C alloca... " >&6; }
13513 if ${ac_cv_c_stack_direction+:} false; then :
13514 $as_echo_n "(cached) " >&6
13516 if test "$cross_compiling" = yes; then :
13517 ac_cv_c_stack_direction=0
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13521 $ac_includes_default
13523 find_stack_direction (int *addr, int depth)
13525 int dir, dummy = 0;
13528 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13529 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13530 return dir + dummy;
13534 main (int argc, char **argv)
13536 return find_stack_direction (0, argc + !argv + 20) < 0;
13539 if ac_fn_c_try_run "$LINENO"; then :
13540 ac_cv_c_stack_direction=1
13542 ac_cv_c_stack_direction=-1
13544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13545 conftest.$ac_objext conftest.beam conftest.$ac_ext
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13550 $as_echo "$ac_cv_c_stack_direction" >&6; }
13551 cat >>confdefs.h <<_ACEOF
13552 #define STACK_DIRECTION $ac_cv_c_stack_direction
13561 for ac_header in $ac_header_list
13563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13567 cat >>confdefs.h <<_ACEOF
13568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13582 for ac_func in getpagesize
13584 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13585 if test "x$ac_cv_func_getpagesize" = xyes; then :
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE_GETPAGESIZE 1
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13594 $as_echo_n "checking for working mmap... " >&6; }
13595 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13596 $as_echo_n "(cached) " >&6
13598 if test "$cross_compiling" = yes; then :
13599 ac_cv_func_mmap_fixed_mapped=no
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 $ac_includes_default
13604 /* malloc might have been renamed as rpl_malloc. */
13607 /* Thanks to Mike Haertel and Jim Avera for this test.
13608 Here is a matrix of mmap possibilities:
13609 mmap private not fixed
13610 mmap private fixed at somewhere currently unmapped
13611 mmap private fixed at somewhere already mapped
13612 mmap shared not fixed
13613 mmap shared fixed at somewhere currently unmapped
13614 mmap shared fixed at somewhere already mapped
13615 For private mappings, we should verify that changes cannot be read()
13616 back from the file, nor mmap's back from the file at a different
13617 address. (There have been systems where private was not correctly
13618 implemented like the infamous i386 svr4.0, and systems where the
13619 VM page cache was not coherent with the file system buffer cache
13620 like early versions of FreeBSD and possibly contemporary NetBSD.)
13621 For shared mappings, we should conversely verify that changes get
13622 propagated back to all the places they're supposed to be.
13624 Grep wants private fixed already mapped.
13625 The main things grep needs to know about mmap are:
13626 * does it exist and is it safe to write into the mmap'd area
13627 * how to use it (BSD variants) */
13630 #include <sys/mman.h>
13632 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13636 /* This mess was copied from the GNU getpagesize.h. */
13637 #ifndef HAVE_GETPAGESIZE
13638 # ifdef _SC_PAGESIZE
13639 # define getpagesize() sysconf(_SC_PAGESIZE)
13640 # else /* no _SC_PAGESIZE */
13641 # ifdef HAVE_SYS_PARAM_H
13642 # include <sys/param.h>
13643 # ifdef EXEC_PAGESIZE
13644 # define getpagesize() EXEC_PAGESIZE
13645 # else /* no EXEC_PAGESIZE */
13647 # define getpagesize() NBPG * CLSIZE
13650 # endif /* no CLSIZE */
13651 # else /* no NBPG */
13653 # define getpagesize() NBPC
13654 # else /* no NBPC */
13656 # define getpagesize() PAGESIZE
13657 # endif /* PAGESIZE */
13658 # endif /* no NBPC */
13659 # endif /* no NBPG */
13660 # endif /* no EXEC_PAGESIZE */
13661 # else /* no HAVE_SYS_PARAM_H */
13662 # define getpagesize() 8192 /* punt totally */
13663 # endif /* no HAVE_SYS_PARAM_H */
13664 # endif /* no _SC_PAGESIZE */
13666 #endif /* no HAVE_GETPAGESIZE */
13671 char *data, *data2, *data3;
13672 const char *cdata2;
13676 pagesize = getpagesize ();
13678 /* First, make a file with some known garbage in it. */
13679 data = (char *) malloc (pagesize);
13682 for (i = 0; i < pagesize; ++i)
13683 *(data + i) = rand ();
13685 fd = creat ("conftest.mmap", 0600);
13688 if (write (fd, data, pagesize) != pagesize)
13692 /* Next, check that the tail of a page is zero-filled. File must have
13693 non-zero length, otherwise we risk SIGBUS for entire page. */
13694 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13698 if (write (fd2, cdata2, 1) != 1)
13700 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13701 if (data2 == MAP_FAILED)
13703 for (i = 0; i < pagesize; ++i)
13707 if (munmap (data2, pagesize))
13710 /* Next, try to mmap the file at a fixed address which already has
13711 something else allocated at it. If we can, also make sure that
13712 we see the same garbage. */
13713 fd = open ("conftest.mmap", O_RDWR);
13716 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13717 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13719 for (i = 0; i < pagesize; ++i)
13720 if (*(data + i) != *(data2 + i))
13723 /* Finally, make sure that changes to the mapped area do not
13724 percolate back to the file as seen by read(). (This is a bug on
13725 some variants of i386 svr4.0.) */
13726 for (i = 0; i < pagesize; ++i)
13727 *(data2 + i) = *(data2 + i) + 1;
13728 data3 = (char *) malloc (pagesize);
13731 if (read (fd, data3, pagesize) != pagesize)
13733 for (i = 0; i < pagesize; ++i)
13734 if (*(data + i) != *(data3 + i))
13742 if ac_fn_c_try_run "$LINENO"; then :
13743 ac_cv_func_mmap_fixed_mapped=yes
13745 ac_cv_func_mmap_fixed_mapped=no
13747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13748 conftest.$ac_objext conftest.beam conftest.$ac_ext
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13753 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13754 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13756 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13759 rm -f conftest.mmap conftest.txt
13761 for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13766 cat >>confdefs.h <<_ACEOF
13767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13773 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13774 if test "x$ac_cv_func_mkstemp" = xyes; then :
13776 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13780 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13781 if test "x$ac_cv_func_mkdtemp" = xyes; then :
13783 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13788 $as_echo_n "checking for mbstate_t... " >&6; }
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13795 mbstate_t teststate;
13800 if ac_fn_c_try_compile "$LINENO"; then :
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13807 $as_echo "$have_mbstate_t" >&6; }
13808 if test x"$have_mbstate_t" = xyes; then
13810 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13814 # Some systems have frexp only in -lm, not in -lc.
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13816 $as_echo_n "checking for library containing frexp... " >&6; }
13817 if ${ac_cv_search_frexp+:} false; then :
13818 $as_echo_n "(cached) " >&6
13820 ac_func_search_save_LIBS=$LIBS
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13839 for ac_lib in '' m; do
13840 if test -z "$ac_lib"; then
13841 ac_res="none required"
13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_search_frexp=$ac_res
13849 rm -f core conftest.err conftest.$ac_objext \
13851 if ${ac_cv_search_frexp+:} false; then :
13855 if ${ac_cv_search_frexp+:} false; then :
13858 ac_cv_search_frexp=no
13860 rm conftest.$ac_ext
13861 LIBS=$ac_func_search_save_LIBS
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13864 $as_echo "$ac_cv_search_frexp" >&6; }
13865 ac_res=$ac_cv_search_frexp
13866 if test "$ac_res" != no; then :
13867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13874 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13875 if ${am_cv_val_LC_MESSAGES+:} false; then :
13876 $as_echo_n "(cached) " >&6
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <locale.h>
13889 if ac_fn_c_try_link "$LINENO"; then :
13890 am_cv_val_LC_MESSAGES=yes
13892 am_cv_val_LC_MESSAGES=no
13894 rm -f core conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13898 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13899 if test $am_cv_val_LC_MESSAGES = yes; then
13901 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13907 $as_echo_n "checking for time_t in time.h... " >&6; }
13908 if ${bu_cv_decl_time_t_time_h+:} false; then :
13909 $as_echo_n "(cached) " >&6
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13922 if ac_fn_c_try_compile "$LINENO"; then :
13923 bu_cv_decl_time_t_time_h=yes
13925 bu_cv_decl_time_t_time_h=no
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13931 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13932 if test $bu_cv_decl_time_t_time_h = yes; then
13934 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13939 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
13940 if ${bu_cv_decl_time_t_types_h+:} false; then :
13941 $as_echo_n "(cached) " >&6
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13945 #include <sys/types.h>
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955 bu_cv_decl_time_t_types_h=yes
13957 bu_cv_decl_time_t_types_h=no
13959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13963 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13964 if test $bu_cv_decl_time_t_types_h = yes; then
13966 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13971 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13972 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13973 $as_echo_n "(cached) " >&6
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 #include <unistd.h>
13981 extern int getopt (int, char *const*, const char *);
13986 if ac_fn_c_try_compile "$LINENO"; then :
13987 bu_cv_decl_getopt_unistd_h=yes
13989 bu_cv_decl_getopt_unistd_h=no
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13995 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13996 if test $bu_cv_decl_getopt_unistd_h = yes; then
13998 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14002 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
14005 $as_echo_n "checking for utime.h... " >&6; }
14006 if ${bu_cv_header_utime_h+:} false; then :
14007 $as_echo_n "(cached) " >&6
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 #include <sys/types.h>
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025 bu_cv_header_utime_h=yes
14027 bu_cv_header_utime_h=no
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
14033 $as_echo "$bu_cv_header_utime_h" >&6; }
14034 if test $bu_cv_header_utime_h = yes; then
14036 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
14040 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14041 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14047 cat >>confdefs.h <<_ACEOF
14048 #define HAVE_DECL_ASPRINTF $ac_have_decl
14050 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
14051 if test "x$ac_cv_have_decl_environ" = xyes; then :
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_DECL_ENVIRON $ac_have_decl
14060 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
14061 if test "x$ac_cv_have_decl_fprintf" = xyes; then :
14067 cat >>confdefs.h <<_ACEOF
14068 #define HAVE_DECL_FPRINTF $ac_have_decl
14070 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14071 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
14077 cat >>confdefs.h <<_ACEOF
14078 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14080 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14081 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_DECL_GETENV $ac_have_decl
14090 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
14091 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_DECL_SBRK $ac_have_decl
14100 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
14101 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_DECL_SNPRINTF $ac_have_decl
14110 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14111 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14117 cat >>confdefs.h <<_ACEOF
14118 #define HAVE_DECL_STPCPY $ac_have_decl
14120 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14121 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_DECL_STRNLEN $ac_have_decl
14130 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14131 if test "x$ac_cv_have_decl_strstr" = xyes; then :
14137 cat >>confdefs.h <<_ACEOF
14138 #define HAVE_DECL_STRSTR $ac_have_decl
14140 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14141 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14152 # Link in zlib if we can. This allows us to read compressed debug
14153 # sections. This is used only by readelf.c (objdump uses bfd for
14154 # reading compressed sections).
14156 # Use the system's zlib library.
14157 zlibdir="-L\$(top_builddir)/../zlib"
14158 zlibinc="-I\$(top_srcdir)/../zlib"
14160 # Check whether --with-system-zlib was given.
14161 if test "${with_system_zlib+set}" = set; then :
14162 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14175 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14177 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14181 # target-specific stuff:
14183 # Canonicalize the secondary target names.
14184 if test -n "$enable_targets"; then
14185 for targ in `echo $enable_targets | sed 's/,/ /g'`
14187 result=`$ac_config_sub $targ 2>/dev/null`
14188 if test -n "$result"; then
14189 canon_targets="$canon_targets $result"
14191 # Allow targets that config.sub doesn't recognize, like "all".
14192 canon_targets="$canon_targets $targ"
14197 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14198 if test "x$ac_cv_header_iconv_h" = xyes; then :
14204 if test "X$prefix" = "XNONE"; then
14205 acl_final_prefix="$ac_default_prefix"
14207 acl_final_prefix="$prefix"
14209 if test "X$exec_prefix" = "XNONE"; then
14210 acl_final_exec_prefix='${prefix}'
14212 acl_final_exec_prefix="$exec_prefix"
14214 acl_save_prefix="$prefix"
14215 prefix="$acl_final_prefix"
14216 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14217 prefix="$acl_save_prefix"
14220 # Check whether --with-gnu-ld was given.
14221 if test "${with_gnu_ld+set}" = set; then :
14222 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14227 # Prepare PATH_SEPARATOR.
14228 # The user is always right.
14229 if test "${PATH_SEPARATOR+set}" != set; then
14230 echo "#! /bin/sh" >conf$$.sh
14231 echo "exit 0" >>conf$$.sh
14233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14241 if test "$GCC" = yes; then
14242 # Check if gcc -print-prog-name=ld gives a path.
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14244 $as_echo_n "checking for ld used by GCC... " >&6; }
14247 # gcc leaves a trailing carriage return which upsets mingw
14248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14253 # Accept absolute paths.
14254 [\\/]* | [A-Za-z]:[\\/]*)
14255 re_direlt='/[^/][^/]*/\.\./'
14256 # Canonicalize the path of ld
14257 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14258 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14259 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14261 test -z "$LD" && LD="$ac_prog"
14264 # If it fails, then pretend we aren't using GCC.
14268 # If it is relative, then search for the first ld in PATH.
14269 with_gnu_ld=unknown
14272 elif test "$with_gnu_ld" = yes; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14274 $as_echo_n "checking for GNU ld... " >&6; }
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14277 $as_echo_n "checking for non-GNU ld... " >&6; }
14279 if ${acl_cv_path_LD+:} false; then :
14280 $as_echo_n "(cached) " >&6
14282 if test -z "$LD"; then
14283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14284 for ac_dir in $PATH; do
14285 test -z "$ac_dir" && ac_dir=.
14286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14287 acl_cv_path_LD="$ac_dir/$ac_prog"
14288 # Check to see if the program is GNU ld. I'd rather use --version,
14289 # but apparently some GNU ld's only accept -v.
14290 # Break only if it was the GNU/non-GNU ld that we prefer.
14291 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14292 test "$with_gnu_ld" != no && break
14294 test "$with_gnu_ld" != yes && break
14300 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14304 LD="$acl_cv_path_LD"
14305 if test -n "$LD"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14307 $as_echo "$LD" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14312 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14315 if ${acl_cv_prog_gnu_ld+:} false; then :
14316 $as_echo_n "(cached) " >&6
14318 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14319 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14320 acl_cv_prog_gnu_ld=yes
14322 acl_cv_prog_gnu_ld=no
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14326 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14327 with_gnu_ld=$acl_cv_prog_gnu_ld
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14332 $as_echo_n "checking for shared library run path origin... " >&6; }
14333 if ${acl_cv_rpath+:} false; then :
14334 $as_echo_n "(cached) " >&6
14337 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14338 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14340 rm -f ./conftest.sh
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14345 $as_echo "$acl_cv_rpath" >&6; }
14347 libext="$acl_cv_libext"
14348 shlibext="$acl_cv_shlibext"
14349 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14350 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14351 hardcode_direct="$acl_cv_hardcode_direct"
14352 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14353 # Check whether --enable-rpath was given.
14354 if test "${enable_rpath+set}" = set; then :
14355 enableval=$enable_rpath; :
14369 acl_save_prefix="$prefix"
14370 prefix="$acl_final_prefix"
14371 acl_save_exec_prefix="$exec_prefix"
14372 exec_prefix="$acl_final_exec_prefix"
14374 eval additional_includedir=\"$includedir\"
14375 eval additional_libdir=\"$libdir\"
14377 exec_prefix="$acl_save_exec_prefix"
14378 prefix="$acl_save_prefix"
14381 # Check whether --with-libiconv-prefix was given.
14382 if test "${with_libiconv_prefix+set}" = set; then :
14383 withval=$with_libiconv_prefix;
14384 if test "X$withval" = "Xno"; then
14387 if test "X$withval" = "X"; then
14389 acl_save_prefix="$prefix"
14390 prefix="$acl_final_prefix"
14391 acl_save_exec_prefix="$exec_prefix"
14392 exec_prefix="$acl_final_exec_prefix"
14394 eval additional_includedir=\"$includedir\"
14395 eval additional_libdir=\"$libdir\"
14397 exec_prefix="$acl_save_exec_prefix"
14398 prefix="$acl_save_prefix"
14401 additional_includedir="$withval/include"
14402 additional_libdir="$withval/lib"
14413 names_already_handled=
14414 names_next_round='iconv '
14415 while test -n "$names_next_round"; do
14416 names_this_round="$names_next_round"
14418 for name in $names_this_round; do
14420 for n in $names_already_handled; do
14421 if test "$n" = "$name"; then
14422 already_handled=yes
14426 if test -z "$already_handled"; then
14427 names_already_handled="$names_already_handled $name"
14428 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14429 eval value=\"\$HAVE_LIB$uppername\"
14430 if test -n "$value"; then
14431 if test "$value" = yes; then
14432 eval value=\"\$LIB$uppername\"
14433 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14434 eval value=\"\$LTLIB$uppername\"
14435 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14444 if test $use_additional = yes; then
14445 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14446 found_dir="$additional_libdir"
14447 found_so="$additional_libdir/lib$name.$shlibext"
14448 if test -f "$additional_libdir/lib$name.la"; then
14449 found_la="$additional_libdir/lib$name.la"
14452 if test -f "$additional_libdir/lib$name.$libext"; then
14453 found_dir="$additional_libdir"
14454 found_a="$additional_libdir/lib$name.$libext"
14455 if test -f "$additional_libdir/lib$name.la"; then
14456 found_la="$additional_libdir/lib$name.la"
14461 if test "X$found_dir" = "X"; then
14462 for x in $LDFLAGS $LTLIBICONV; do
14464 acl_save_prefix="$prefix"
14465 prefix="$acl_final_prefix"
14466 acl_save_exec_prefix="$exec_prefix"
14467 exec_prefix="$acl_final_exec_prefix"
14469 exec_prefix="$acl_save_exec_prefix"
14470 prefix="$acl_save_prefix"
14474 dir=`echo "X$x" | sed -e 's/^X-L//'`
14475 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14477 found_so="$dir/lib$name.$shlibext"
14478 if test -f "$dir/lib$name.la"; then
14479 found_la="$dir/lib$name.la"
14482 if test -f "$dir/lib$name.$libext"; then
14484 found_a="$dir/lib$name.$libext"
14485 if test -f "$dir/lib$name.la"; then
14486 found_la="$dir/lib$name.la"
14492 if test "X$found_dir" != "X"; then
14497 if test "X$found_dir" != "X"; then
14498 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14499 if test "X$found_so" != "X"; then
14500 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14504 for x in $ltrpathdirs; do
14505 if test "X$x" = "X$found_dir"; then
14510 if test -z "$haveit"; then
14511 ltrpathdirs="$ltrpathdirs $found_dir"
14513 if test "$hardcode_direct" = yes; then
14514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14516 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14519 for x in $rpathdirs; do
14520 if test "X$x" = "X$found_dir"; then
14525 if test -z "$haveit"; then
14526 rpathdirs="$rpathdirs $found_dir"
14530 for x in $LDFLAGS $LIBICONV; do
14532 acl_save_prefix="$prefix"
14533 prefix="$acl_final_prefix"
14534 acl_save_exec_prefix="$exec_prefix"
14535 exec_prefix="$acl_final_exec_prefix"
14537 exec_prefix="$acl_save_exec_prefix"
14538 prefix="$acl_save_prefix"
14540 if test "X$x" = "X-L$found_dir"; then
14545 if test -z "$haveit"; then
14546 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14548 if test "$hardcode_minus_L" != no; then
14549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14551 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14557 if test "X$found_a" != "X"; then
14558 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14560 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14563 additional_includedir=
14564 case "$found_dir" in
14566 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14567 additional_includedir="$basedir/include"
14570 if test "X$additional_includedir" != "X"; then
14571 if test "X$additional_includedir" != "X/usr/include"; then
14573 if test "X$additional_includedir" = "X/usr/local/include"; then
14574 if test -n "$GCC"; then
14576 linux*) haveit=yes;;
14580 if test -z "$haveit"; then
14581 for x in $CPPFLAGS $INCICONV; do
14583 acl_save_prefix="$prefix"
14584 prefix="$acl_final_prefix"
14585 acl_save_exec_prefix="$exec_prefix"
14586 exec_prefix="$acl_final_exec_prefix"
14588 exec_prefix="$acl_save_exec_prefix"
14589 prefix="$acl_save_prefix"
14591 if test "X$x" = "X-I$additional_includedir"; then
14596 if test -z "$haveit"; then
14597 if test -d "$additional_includedir"; then
14598 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14604 if test -n "$found_la"; then
14605 save_libdir="$libdir"
14606 case "$found_la" in
14607 */* | *\\*) . "$found_la" ;;
14608 *) . "./$found_la" ;;
14610 libdir="$save_libdir"
14611 for dep in $dependency_libs; do
14614 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14615 if test "X$additional_libdir" != "X/usr/lib"; then
14617 if test "X$additional_libdir" = "X/usr/local/lib"; then
14618 if test -n "$GCC"; then
14620 linux*) haveit=yes;;
14624 if test -z "$haveit"; then
14626 for x in $LDFLAGS $LIBICONV; do
14628 acl_save_prefix="$prefix"
14629 prefix="$acl_final_prefix"
14630 acl_save_exec_prefix="$exec_prefix"
14631 exec_prefix="$acl_final_exec_prefix"
14633 exec_prefix="$acl_save_exec_prefix"
14634 prefix="$acl_save_prefix"
14636 if test "X$x" = "X-L$additional_libdir"; then
14641 if test -z "$haveit"; then
14642 if test -d "$additional_libdir"; then
14643 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14647 for x in $LDFLAGS $LTLIBICONV; do
14649 acl_save_prefix="$prefix"
14650 prefix="$acl_final_prefix"
14651 acl_save_exec_prefix="$exec_prefix"
14652 exec_prefix="$acl_final_exec_prefix"
14654 exec_prefix="$acl_save_exec_prefix"
14655 prefix="$acl_save_prefix"
14657 if test "X$x" = "X-L$additional_libdir"; then
14662 if test -z "$haveit"; then
14663 if test -d "$additional_libdir"; then
14664 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14671 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14672 if test "$enable_rpath" != no; then
14674 for x in $rpathdirs; do
14675 if test "X$x" = "X$dir"; then
14680 if test -z "$haveit"; then
14681 rpathdirs="$rpathdirs $dir"
14684 for x in $ltrpathdirs; do
14685 if test "X$x" = "X$dir"; then
14690 if test -z "$haveit"; then
14691 ltrpathdirs="$ltrpathdirs $dir"
14696 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14699 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14702 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14703 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14709 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14716 if test "X$rpathdirs" != "X"; then
14717 if test -n "$hardcode_libdir_separator"; then
14719 for found_dir in $rpathdirs; do
14720 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14722 acl_save_libdir="$libdir"
14724 eval flag=\"$hardcode_libdir_flag_spec\"
14725 libdir="$acl_save_libdir"
14726 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14728 for found_dir in $rpathdirs; do
14729 acl_save_libdir="$libdir"
14730 libdir="$found_dir"
14731 eval flag=\"$hardcode_libdir_flag_spec\"
14732 libdir="$acl_save_libdir"
14733 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14737 if test "X$ltrpathdirs" != "X"; then
14738 for found_dir in $ltrpathdirs; do
14739 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14750 $as_echo_n "checking for iconv... " >&6; }
14751 if ${am_cv_func_iconv+:} false; then :
14752 $as_echo_n "(cached) " >&6
14755 am_cv_func_iconv="no, consider installing GNU libiconv"
14757 am_save_CPPFLAGS="$CPPFLAGS"
14758 CPPFLAGS="$CPPFLAGS $INCICONV"
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 #include <stdlib.h>
14766 iconv_t cd = iconv_open("","");
14767 iconv(cd,NULL,NULL,NULL,NULL);
14773 if ac_fn_c_try_link "$LINENO"; then :
14774 am_cv_func_iconv=yes
14776 rm -f core conftest.err conftest.$ac_objext \
14777 conftest$ac_exeext conftest.$ac_ext
14778 CPPFLAGS="$am_save_CPPFLAGS"
14780 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14781 for _libs in .libs _libs; do
14782 am_save_CPPFLAGS="$CPPFLAGS"
14783 am_save_LIBS="$LIBS"
14784 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14785 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 #include <stdlib.h>
14793 iconv_t cd = iconv_open("","");
14794 iconv(cd,NULL,NULL,NULL,NULL);
14800 if ac_fn_c_try_link "$LINENO"; then :
14801 INCICONV="-I../libiconv/include"
14802 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14803 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14804 am_cv_lib_iconv=yes
14805 am_cv_func_iconv=yes
14807 rm -f core conftest.err conftest.$ac_objext \
14808 conftest$ac_exeext conftest.$ac_ext
14809 CPPFLAGS="$am_save_CPPFLAGS"
14810 LIBS="$am_save_LIBS"
14811 if test "$am_cv_func_iconv" = "yes"; then
14817 if test "$am_cv_func_iconv" != yes; then
14818 am_save_CPPFLAGS="$CPPFLAGS"
14819 am_save_LIBS="$LIBS"
14820 CPPFLAGS="$CPPFLAGS $INCICONV"
14821 LIBS="$LIBS $LIBICONV"
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 #include <stdlib.h>
14829 iconv_t cd = iconv_open("","");
14830 iconv(cd,NULL,NULL,NULL,NULL);
14836 if ac_fn_c_try_link "$LINENO"; then :
14837 am_cv_lib_iconv=yes
14838 am_cv_func_iconv=yes
14840 rm -f core conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
14842 CPPFLAGS="$am_save_CPPFLAGS"
14843 LIBS="$am_save_LIBS"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14848 $as_echo "$am_cv_func_iconv" >&6; }
14849 if test "$am_cv_func_iconv" = yes; then
14851 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14854 if test "$am_cv_lib_iconv" = yes; then
14856 for element in $INCICONV; do
14858 for x in $CPPFLAGS; do
14860 acl_save_prefix="$prefix"
14861 prefix="$acl_final_prefix"
14862 acl_save_exec_prefix="$exec_prefix"
14863 exec_prefix="$acl_final_exec_prefix"
14865 exec_prefix="$acl_save_exec_prefix"
14866 prefix="$acl_save_prefix"
14868 if test "X$x" = "X$element"; then
14873 if test -z "$haveit"; then
14874 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14879 $as_echo_n "checking how to link with libiconv... " >&6; }
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14881 $as_echo "$LIBICONV" >&6; }
14889 if test "$am_cv_func_iconv" = yes; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14891 $as_echo_n "checking for iconv declaration... " >&6; }
14892 if ${am_cv_proto_iconv+:} false; then :
14893 $as_echo_n "(cached) " >&6
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14899 #include <stdlib.h>
14905 #if defined(__STDC__) || defined(__cplusplus)
14906 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14919 if ac_fn_c_try_compile "$LINENO"; then :
14920 am_cv_proto_iconv_arg1=""
14922 am_cv_proto_iconv_arg1="const"
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 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);"
14928 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14930 }$am_cv_proto_iconv" >&5
14932 }$am_cv_proto_iconv" >&6; }
14934 cat >>confdefs.h <<_ACEOF
14935 #define ICONV_CONST $am_cv_proto_iconv_arg1
14950 BUILD_INSTALL_MISC=
14952 OBJDUMP_PRIVATE_VECTORS=
14953 OBJDUMP_PRIVATE_OFILES=
14956 for targ in $target $canon_targets
14958 if test "x$targ" = "xall"; then
14960 BUILD_SRCONV='$(SRCONV_PROG)'
14961 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14962 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14963 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14964 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14965 if test -z "$DLLTOOL_DEFAULT"; then
14966 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14968 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14969 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14970 od_vectors="$od_vectors objdump_private_desc_xcoff"
14973 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14977 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14978 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14979 if test -z "$DLLTOOL_DEFAULT"; then
14980 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14982 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14983 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14984 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14987 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14988 if test -z "$DLLTOOL_DEFAULT"; then
14989 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14991 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14992 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14993 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14995 x86_64-*-mingw* | x86_64-*-cygwin*)
14996 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14997 if test -z "$DLLTOOL_DEFAULT"; then
14998 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
15000 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15001 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15002 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15003 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15005 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
15006 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15007 if test -z "$DLLTOOL_DEFAULT"; then
15008 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15010 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15011 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15012 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15013 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15015 i[3-7]86-*-interix)
15016 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
15017 if test -z "$DLLTOOL_DEFAULT"; then
15018 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15020 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15022 powerpc*-aix5.[01])
15024 powerpc*-aix[5-9].*)
15025 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15027 powerpc*-*-pe* | powerpc*-*-cygwin*)
15028 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15029 if test -z "$DLLTOOL_DEFAULT"; then
15030 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15032 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15033 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15034 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15036 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
15037 case "$BUILD_INSTALL_MISC" in
15039 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
15043 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15044 if test -z "$DLLTOOL_DEFAULT"; then
15045 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15047 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15048 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15049 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15052 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15055 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15056 if test -z "$DLLTOOL_DEFAULT"; then
15057 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15059 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15060 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15061 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15064 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15065 if test -z "$DLLTOOL_DEFAULT"; then
15066 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15068 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15069 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15070 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15073 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15074 if test -z "$DLLTOOL_DEFAULT"; then
15075 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15077 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15080 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15084 # Add objdump private vectors.
15087 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
15089 powerpc*-*-aix* | rs6000-*-aix*)
15090 od_vectors="$od_vectors objdump_private_desc_xcoff"
15093 od_vectors="$od_vectors objdump_private_desc_mach_o"
15099 # Uniq objdump private vector, build objdump target ofiles.
15102 for i in $od_vectors ; do
15107 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
15109 objdump_private_desc_elf32_avr)
15110 od_files="$od_files od-elf32_avr" ;;
15111 objdump_private_desc_xcoff)
15112 od_files="$od_files od-xcoff" ;;
15113 objdump_private_desc_mach_o)
15114 od_files="$od_files od-macho" ;;
15115 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
15121 # Uniq objdump target ofiles
15123 for i in $od_files ; do
15128 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
15133 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15135 if test "${with_windres+set}" = set; then
15136 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15139 if test "${with_windmc+set}" = set; then
15140 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15143 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
15157 cat >>confdefs.h <<_ACEOF
15158 #define TARGET "${target}"
15163 . $srcdir/../bfd/config.bfd
15164 if test "x$targ_underscore" = "xyes"; then
15170 cat >>confdefs.h <<_ACEOF
15171 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15177 . ${srcdir}/configure.tgt
15178 EMULATION=$targ_emul
15179 EMULATION_VECTOR=$targ_emul_vector
15184 # Required for html and install-html
15190 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15192 cat >confcache <<\_ACEOF
15193 # This file is a shell script that caches the results of configure
15194 # tests run on this system so they can be shared between configure
15195 # scripts and configure runs, see configure's option --config-cache.
15196 # It is not useful on other systems. If it contains results you don't
15197 # want to keep, you may remove or edit it.
15199 # config.status only pays attention to the cache file if you give it
15200 # the --recheck option to rerun configure.
15202 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15203 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15204 # following values.
15208 # The following way of writing the cache mishandles newlines in values,
15209 # but we know of no workaround that is simple, portable, and efficient.
15210 # So, we kill variables containing newlines.
15211 # Ultrix sh set writes to stderr and can't be redirected directly,
15212 # and sets the high bit in the cache file unless we assign to the vars.
15214 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15215 eval ac_val=\$$ac_var
15219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15223 _ | IFS | as_nl) ;; #(
15224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15225 *) { eval $ac_var=; unset $ac_var;} ;;
15231 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15232 *${as_nl}ac_space=\ *)
15233 # `set' does not quote correctly, so add quotes: double-quote
15234 # substitution turns \\\\ into \\, and sed turns \\ into \.
15237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15240 # `set' quotes correctly as required by POSIX, so do not add quotes.
15241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15254 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15255 if test -w "$cache_file"; then
15256 if test "x$cache_file" != "x/dev/null"; then
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15258 $as_echo "$as_me: updating cache $cache_file" >&6;}
15259 if test ! -f "$cache_file" || test -h "$cache_file"; then
15260 cat confcache >"$cache_file"
15262 case $cache_file in #(
15264 mv -f confcache "$cache_file"$$ &&
15265 mv -f "$cache_file"$$ "$cache_file" ;; #(
15267 mv -f confcache "$cache_file" ;;
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15273 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15279 # Let make expand exec_prefix.
15280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15282 DEFS=-DHAVE_CONFIG_H
15287 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15288 # 1. Remove the extension, and $U if already installed.
15289 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15290 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15291 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15292 # will be set to the directory where LIBOBJS objects are built.
15293 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15294 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15296 LIBOBJS=$ac_libobjs
15298 LTLIBOBJS=$ac_ltlibobjs
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15302 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15303 if test -n "$am_sleep_pid"; then
15304 # Hide warnings about reused PIDs.
15305 wait $am_sleep_pid 2>/dev/null
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15308 $as_echo "done" >&6; }
15309 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15310 as_fn_error $? "conditional \"AMDEP\" was never defined.
15311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15314 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15317 if test -n "$EXEEXT"; then
15319 am__EXEEXT_FALSE='#'
15321 am__EXEEXT_TRUE='#'
15325 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15326 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15329 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15330 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 : "${CONFIG_STATUS=./config.status}"
15336 ac_clean_files_save=$ac_clean_files
15337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15343 # Generated by $as_me.
15344 # Run this file to recreate the current configuration.
15345 # Compiler output produced by configure, useful for debugging
15346 # configure, is in config.log if it exists.
15349 ac_cs_recheck=false
15352 SHELL=\${CONFIG_SHELL-$SHELL}
15355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15356 ## -------------------- ##
15357 ## M4sh Initialization. ##
15358 ## -------------------- ##
15360 # Be more Bourne compatible
15361 DUALCASE=1; export DUALCASE # for MKS sh
15362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15366 # is contrary to our usage. Disable this feature.
15367 alias -g '${1+"$@"}'='"$@"'
15368 setopt NO_GLOB_SUBST
15370 case `(set -o) 2>/dev/null` in #(
15382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15386 # Prefer a ksh shell builtin over an external printf program on Solaris,
15387 # but without wasting forks for bash or zsh.
15388 if test -z "$BASH_VERSION$ZSH_VERSION" \
15389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15390 as_echo='print -r --'
15391 as_echo_n='print -rn --'
15392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15393 as_echo='printf %s\n'
15394 as_echo_n='printf %s'
15396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15398 as_echo_n='/usr/ucb/echo -n'
15400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15401 as_echo_n_body='eval
15405 expr "X$arg" : "X\\(.*\\)$as_nl";
15406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15410 export as_echo_n_body
15411 as_echo_n='sh -c $as_echo_n_body as_echo'
15413 export as_echo_body
15414 as_echo='sh -c $as_echo_body as_echo'
15417 # The user is always right.
15418 if test "${PATH_SEPARATOR+set}" != set; then
15420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15428 # We need space, tab and new line, in precisely that order. Quoting is
15429 # there to prevent editors from complaining about space-tab.
15430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15431 # splitting by setting IFS to empty value.)
15434 # Find who we are. Look in the path if we contain no directory separator.
15437 *[\\/]* ) as_myself=$0 ;;
15438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439 for as_dir in $PATH
15442 test -z "$as_dir" && as_dir=.
15443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15449 # We did not find ourselves, most probably we were run as `sh COMMAND'
15450 # in which case we are not to be found in the path.
15451 if test "x$as_myself" = x; then
15454 if test ! -f "$as_myself"; then
15455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15459 # Unset variables that we do not need and which cause bugs (e.g. in
15460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15461 # suppresses any "Segmentation fault" message there. '((' could
15462 # trigger a bug in pdksh 5.2.14.
15463 for as_var in BASH_ENV ENV MAIL MAILPATH
15464 do eval test x\${$as_var+set} = xset \
15465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15482 # ----------------------------------------
15483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15485 # script with STATUS, using 1 if that was 0.
15488 as_status=$1; test $as_status -eq 0 && as_status=1
15490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15493 $as_echo "$as_me: error: $2" >&2
15494 as_fn_exit $as_status
15498 # as_fn_set_status STATUS
15499 # -----------------------
15500 # Set $? to STATUS, without forking.
15501 as_fn_set_status ()
15504 } # as_fn_set_status
15506 # as_fn_exit STATUS
15507 # -----------------
15508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15512 as_fn_set_status $1
15518 # Portably unset VAR.
15521 { eval $1=; unset $1;}
15523 as_unset=as_fn_unset
15524 # as_fn_append VAR VALUE
15525 # ----------------------
15526 # Append the text in VALUE to the end of the definition contained in VAR. Take
15527 # advantage of any shell optimizations that allow amortized linear growth over
15528 # repeated appends, instead of the typical quadratic growth present in naive
15530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15531 eval 'as_fn_append ()
15542 # as_fn_arith ARG...
15543 # ------------------
15544 # Perform arithmetic evaluation on the ARGs, and store the result in the
15545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15546 # must be portable across $(()) and expr.
15547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15548 eval 'as_fn_arith ()
15555 as_val=`expr "$@" || test $? -eq 1`
15560 if expr a : '\(a\)' >/dev/null 2>&1 &&
15561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15568 as_basename=basename
15573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15579 as_me=`$as_basename -- "$0" ||
15580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15581 X"$0" : 'X\(//\)$' \| \
15582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15584 sed '/^.*\/\([^/][^/]*\)\/*$/{
15598 # Avoid depending upon Character Ranges.
15599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15602 as_cr_digits='0123456789'
15603 as_cr_alnum=$as_cr_Letters$as_cr_digits
15605 ECHO_C= ECHO_N= ECHO_T=
15606 case `echo -n x` in #(((((
15608 case `echo 'xy\c'` in
15609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15618 rm -f conf$$ conf$$.exe conf$$.file
15619 if test -d conf$$.dir; then
15620 rm -f conf$$.dir/conf$$.file
15623 mkdir conf$$.dir 2>/dev/null
15625 if (echo >conf$$.file) 2>/dev/null; then
15626 if ln -s conf$$.file conf$$ 2>/dev/null; then
15628 # ... but there are two gotchas:
15629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15631 # In both cases, we have to default to `cp -pR'.
15632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15634 elif ln conf$$.file conf$$ 2>/dev/null; then
15642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15643 rmdir conf$$.dir 2>/dev/null
15648 # Create "$as_dir" as a directory, including parents if necessary.
15653 -*) as_dir=./$as_dir;;
15655 test -d "$as_dir" || eval $as_mkdir_p || {
15659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15660 *) as_qdir=$as_dir;;
15662 as_dirs="'$as_qdir' $as_dirs"
15663 as_dir=`$as_dirname -- "$as_dir" ||
15664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15665 X"$as_dir" : 'X\(//\)[^/]' \| \
15666 X"$as_dir" : 'X\(//\)$' \| \
15667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15668 $as_echo X"$as_dir" |
15669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15673 /^X\(\/\/\)[^/].*/{
15686 test -d "$as_dir" && break
15688 test -z "$as_dirs" || eval "mkdir $as_dirs"
15689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15693 if mkdir -p . 2>/dev/null; then
15694 as_mkdir_p='mkdir -p "$as_dir"'
15696 test -d ./-p && rmdir ./-p
15701 # as_fn_executable_p FILE
15702 # -----------------------
15703 # Test if FILE is an executable regular file.
15704 as_fn_executable_p ()
15706 test -f "$1" && test -x "$1"
15707 } # as_fn_executable_p
15708 as_test_x='test -x'
15709 as_executable_p=as_fn_executable_p
15711 # Sed expression to map a string onto a valid CPP name.
15712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15714 # Sed expression to map a string onto a valid variable name.
15715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15719 ## ----------------------------------- ##
15720 ## Main body of $CONFIG_STATUS script. ##
15721 ## ----------------------------------- ##
15723 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15726 # Save the log message, to keep $0 and so on meaningful, and to
15727 # report actual input values of CONFIG_FILES etc. instead of their
15728 # values after options handling.
15730 This file was extended by binutils $as_me 2.32.90, which was
15731 generated by GNU Autoconf 2.69. Invocation command line was
15733 CONFIG_FILES = $CONFIG_FILES
15734 CONFIG_HEADERS = $CONFIG_HEADERS
15735 CONFIG_LINKS = $CONFIG_LINKS
15736 CONFIG_COMMANDS = $CONFIG_COMMANDS
15739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15744 case $ac_config_files in *"
15745 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15748 case $ac_config_headers in *"
15749 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754 # Files that config.status was made for.
15755 config_files="$ac_config_files"
15756 config_headers="$ac_config_headers"
15757 config_commands="$ac_config_commands"
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15763 \`$as_me' instantiates files and other configuration actions
15764 from templates according to the current configuration. Unless the files
15765 and actions are specified as TAGs, all are instantiated by default.
15767 Usage: $0 [OPTION]... [TAG]...
15769 -h, --help print this help, then exit
15770 -V, --version print version number and configuration settings, then exit
15771 --config print configuration, then exit
15772 -q, --quiet, --silent
15773 do not print progress messages
15774 -d, --debug don't remove temporary files
15775 --recheck update $as_me by reconfiguring in the same conditions
15776 --file=FILE[:TEMPLATE]
15777 instantiate the configuration file FILE
15778 --header=FILE[:TEMPLATE]
15779 instantiate the configuration header FILE
15781 Configuration files:
15784 Configuration headers:
15787 Configuration commands:
15790 Report bugs to the package provider."
15793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15796 binutils config.status 2.32.90
15797 configured by $0, generated by GNU Autoconf 2.69,
15798 with options \\"\$ac_cs_config\\"
15800 Copyright (C) 2012 Free Software Foundation, Inc.
15801 This config.status script is free software; the Free Software Foundation
15802 gives unlimited permission to copy, distribute and modify it."
15809 test -n "\$AWK" || AWK=awk
15812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813 # The default lists apply if the user does not specify any file.
15819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15836 # Handling of the options.
15837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15840 $as_echo "$ac_cs_version"; exit ;;
15841 --config | --confi | --conf | --con | --co | --c )
15842 $as_echo "$ac_cs_config"; exit ;;
15843 --debug | --debu | --deb | --de | --d | -d )
15845 --file | --fil | --fi | --f )
15848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15849 '') as_fn_error $? "missing file argument" ;;
15851 as_fn_append CONFIG_FILES " '$ac_optarg'"
15852 ac_need_defaults=false;;
15853 --header | --heade | --head | --hea )
15856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15859 ac_need_defaults=false;;
15861 # Conflict between --help and --header
15862 as_fn_error $? "ambiguous option: \`$1'
15863 Try \`$0 --help' for more information.";;
15864 --help | --hel | -h )
15865 $as_echo "$ac_cs_usage"; exit ;;
15866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15870 # This is an error.
15871 -*) as_fn_error $? "unrecognized option: \`$1'
15872 Try \`$0 --help' for more information." ;;
15874 *) as_fn_append ac_config_targets " $1"
15875 ac_need_defaults=false ;;
15881 ac_configure_extra_args=
15883 if $ac_cs_silent; then
15885 ac_configure_extra_args="$ac_configure_extra_args --silent"
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 if \$ac_cs_recheck; then
15891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15894 CONFIG_SHELL='$SHELL'
15895 export CONFIG_SHELL
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905 ## Running $as_me. ##
15911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15918 # The HP-UX ksh and POSIX shell print the target directory to stdout
15919 # if CDPATH is set.
15920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15922 sed_quote_subst='$sed_quote_subst'
15923 double_quote_subst='$double_quote_subst'
15924 delay_variable_subst='$delay_variable_subst'
15925 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15926 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15927 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15928 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15929 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15930 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15931 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15932 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15933 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15934 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15935 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15936 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15937 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15938 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15939 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15940 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15941 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15942 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15943 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15944 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15945 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15946 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15947 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15948 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15949 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15950 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15951 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15952 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15953 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15954 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15955 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15956 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15957 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15958 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15959 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15960 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15961 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15962 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15963 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15964 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15965 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15966 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15967 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15968 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15969 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15970 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15971 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15972 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15973 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"`'
15974 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15975 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15976 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15979 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15980 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15981 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15982 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15983 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15984 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15985 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15986 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15987 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15988 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15989 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15990 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15991 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15992 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15993 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15994 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15995 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15996 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15997 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15998 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15999 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16000 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16001 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16002 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16003 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16004 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16005 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16006 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16007 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16008 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16009 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16010 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16011 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16012 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16013 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16014 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16020 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16021 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16022 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16023 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16024 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16025 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16026 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16027 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16028 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16029 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16030 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16031 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16032 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16033 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16034 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16035 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16036 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16037 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16038 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16039 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16040 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16041 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16042 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16043 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16044 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16047 LTCFLAGS='$LTCFLAGS'
16048 compiler='$compiler_DEFAULT'
16050 # A function that is used when there is no print builtin or printf.
16051 func_fallback_echo ()
16053 eval 'cat <<_LTECHO_EOF
16058 # Quote evaled strings.
16072 deplibs_check_method \
16081 lt_cv_sys_global_symbol_pipe \
16082 lt_cv_sys_global_symbol_to_cdecl \
16083 lt_cv_sys_global_symbol_to_c_name_address \
16084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16085 lt_prog_compiler_no_builtin_flag \
16086 lt_prog_compiler_wl \
16087 lt_prog_compiler_pic \
16088 lt_prog_compiler_static \
16089 lt_cv_prog_compiler_c_o \
16097 export_dynamic_flag_spec \
16098 whole_archive_flag_spec \
16099 compiler_needs_object \
16101 allow_undefined_flag \
16102 no_undefined_flag \
16103 hardcode_libdir_flag_spec \
16104 hardcode_libdir_flag_spec_ld \
16105 hardcode_libdir_separator \
16110 variables_saved_for_relink \
16112 library_names_spec \
16114 install_override_mode \
16118 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16119 *[\\\\\\\`\\"\\\$]*)
16120 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16123 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16128 # Double-quote double-evaled strings.
16129 for var in reload_cmds \
16130 old_postinstall_cmds \
16131 old_postuninstall_cmds \
16133 extract_expsyms_cmds \
16134 old_archive_from_new_cmds \
16135 old_archive_from_expsyms_cmds \
16137 archive_expsym_cmds \
16139 module_expsym_cmds \
16140 export_symbols_cmds \
16143 postuninstall_cmds \
16145 sys_lib_search_path_spec \
16146 sys_lib_dlsearch_path_spec; do
16147 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16148 *[\\\\\\\`\\"\\\$]*)
16149 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16152 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16157 ac_aux_dir='$ac_aux_dir'
16158 xsi_shell='$xsi_shell'
16159 lt_shell_append='$lt_shell_append'
16161 # See if we are running on zsh, and set the options which allow our
16162 # commands through without removal of \ escapes INIT.
16163 if test -n "\${ZSH_VERSION+set}" ; then
16164 setopt NO_GLOB_SUBST
16170 TIMESTAMP='$TIMESTAMP'
16176 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16177 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16179 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16180 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16181 LINGUAS="${LINGUAS-%UNSET%}"
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 # Handling of arguments.
16189 for ac_config_target in $ac_config_targets
16191 case $ac_config_target in
16192 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16193 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16194 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16195 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16196 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16197 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16198 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16200 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16205 # If the user did not use the arguments to specify the items to instantiate,
16206 # then the envvar interface is used. Set only those that are not.
16207 # We use the long form for the default assignment because of an extremely
16208 # bizarre bug on SunOS 4.1.3.
16209 if $ac_need_defaults; then
16210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16215 # Have a temporary directory for convenience. Make it in the build tree
16216 # simply because there is no reason against having it here, and in addition,
16217 # creating and moving files from /tmp can sometimes cause problems.
16218 # Hook for its removal unless debugging.
16219 # Note that there is a small window in which the directory will not be cleaned:
16220 # after its creation but before its name has been assigned to `$tmp'.
16224 trap 'exit_status=$?
16225 : "${ac_tmp:=$tmp}"
16226 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16228 trap 'as_fn_exit 1' 1 2 13 15
16230 # Create a (secure) tmp directory for tmp files.
16233 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16237 tmp=./conf$$-$RANDOM
16238 (umask 077 && mkdir "$tmp")
16239 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16242 # Set up the scripts for CONFIG_FILES section.
16243 # No need to generate them if there are no CONFIG_FILES.
16244 # This happens for instance with `./config.status config.h'.
16245 if test -n "$CONFIG_FILES"; then
16248 ac_cr=`echo X | tr X '\015'`
16249 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16250 # But we know of no other shell where ac_cr would be empty at this
16251 # point, so we can use a bashism as a fallback.
16252 if test "x$ac_cr" = x; then
16253 eval ac_cr=\$\'\\r\'
16255 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16256 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16259 ac_cs_awk_cr=$ac_cr
16262 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16267 echo "cat >conf$$subs.awk <<_ACEOF" &&
16268 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16270 } >conf$$subs.sh ||
16271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16272 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16274 for ac_last_try in false false false false false :; do
16275 . ./conf$$subs.sh ||
16276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16278 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16279 if test $ac_delim_n = $ac_delim_num; then
16281 elif $ac_last_try; then
16282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16287 rm -f conf$$subs.sh
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16294 s/^/S["/; s/!.*/"]=/
16304 s/\(.\{148\}\)..*/\1/
16306 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16311 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16318 s/\(.\{148\}\)..*/\1/
16320 s/["\\]/\\&/g; s/^/"/; s/$/"/
16324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16329 ' <conf$$subs.awk | sed '
16334 ' >>$CONFIG_STATUS || ac_write_fail=1
16335 rm -f conf$$subs.awk
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16338 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16339 for (key in S) S_is_set[key] = 1
16345 nfields = split(line, field, "@")
16347 len = length(field[1])
16348 for (i = 2; i < nfields; i++) {
16350 keylen = length(key)
16351 if (S_is_set[key]) {
16353 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16354 len += length(value) + length(field[++i])
16365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16366 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16367 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16370 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16371 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16374 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16375 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16376 # trailing colons and then remove the whole line if VPATH becomes empty
16377 # (actually we leave an empty line to preserve line numbers).
16378 if test "x$srcdir" = x.; then
16379 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 fi # test -n "$CONFIG_FILES"
16400 # Set up the scripts for CONFIG_HEADERS section.
16401 # No need to generate them if there are no CONFIG_HEADERS.
16402 # This happens for instance with `./config.status Makefile'.
16403 if test -n "$CONFIG_HEADERS"; then
16404 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16408 # Transform confdefs.h into an awk script `defines.awk', embedded as
16409 # here-document in config.status, that substitutes the proper values into
16410 # config.h.in to produce config.h.
16412 # Create a delimiter string that does not exist in confdefs.h, to ease
16413 # handling of long lines.
16415 for ac_last_try in false false :; do
16416 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16417 if test -z "$ac_tt"; then
16419 elif $ac_last_try; then
16420 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16426 # For the awk script, D is an array of macro values keyed by name,
16427 # likewise P contains macro parameters if any. Preserve backslash
16428 # newline sequences.
16430 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16432 s/.\{148\}/&'"$ac_delim"'/g
16435 s/^[ ]*#[ ]*define[ ][ ]*/ /
16442 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16444 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16448 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16449 D["\1"]=" \3\\\\\\n"\\/p
16451 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16456 s/.\{148\}/&'"$ac_delim"'/g
16461 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16464 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16466 ' <confdefs.h | sed '
16467 s/'"$ac_delim"'/"\\\
16468 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471 for (key in D) D_is_set[key] = 1
16474 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16476 split(line, arg, " ")
16477 if (arg[1] == "#") {
16481 defundef = substr(arg[1], 2)
16484 split(mac1, mac2, "(") #)
16486 prefix = substr(line, 1, index(line, defundef) - 1)
16487 if (D_is_set[macro]) {
16488 # Preserve the white space surrounding the "#".
16489 print prefix "define", macro P[macro] D[macro]
16492 # Replace #undef with comments. This is necessary, for example,
16493 # in the case of _POSIX_SOURCE, which is predefined and required
16494 # on some systems where configure will not decide to define it.
16495 if (defundef == "undef") {
16496 print "/*", prefix defundef, macro, "*/"
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16506 fi # test -n "$CONFIG_HEADERS"
16509 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16514 :[FHLC]) ac_mode=$ac_tag; continue;;
16516 case $ac_mode$ac_tag in
16518 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16519 :[FH]-) ac_tag=-:-;;
16520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16537 -) ac_f="$ac_tmp/stdin";;
16538 *) # Look for the file first in the build tree, then in the source tree
16539 # (if the path is not absolute). The absolute path cannot be DOS-style,
16540 # because $ac_f cannot contain `:'.
16544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16546 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16548 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16549 as_fn_append ac_file_inputs " '$ac_f'"
16552 # Let's still pretend it is `configure' which instantiates (i.e., don't
16553 # use $as_me), people would be surprised to read:
16554 # /* config.h. Generated by config.status. */
16555 configure_input='Generated from '`
16556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16558 if test x"$ac_file" != x-; then
16559 configure_input="$ac_file. $configure_input"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16561 $as_echo "$as_me: creating $ac_file" >&6;}
16563 # Neutralize special characters interpreted by sed in replacement strings.
16564 case $configure_input in #(
16565 *\&* | *\|* | *\\* )
16566 ac_sed_conf_input=`$as_echo "$configure_input" |
16567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16568 *) ac_sed_conf_input=$configure_input;;
16572 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16578 ac_dir=`$as_dirname -- "$ac_file" ||
16579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16580 X"$ac_file" : 'X\(//\)[^/]' \| \
16581 X"$ac_file" : 'X\(//\)$' \| \
16582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16583 $as_echo X"$ac_file" |
16584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16588 /^X\(\/\/\)[^/].*/{
16601 as_dir="$ac_dir"; as_fn_mkdir_p
16605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16608 # A ".." for each directory in $ac_dir_suffix.
16609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16610 case $ac_top_builddir_sub in
16611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16615 ac_abs_top_builddir=$ac_pwd
16616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16617 # for backward compatibility:
16618 ac_top_builddir=$ac_top_build_prefix
16621 .) # We are building in place.
16623 ac_top_srcdir=$ac_top_builddir_sub
16624 ac_abs_top_srcdir=$ac_pwd ;;
16625 [\\/]* | ?:[\\/]* ) # Absolute name.
16626 ac_srcdir=$srcdir$ac_dir_suffix;
16627 ac_top_srcdir=$srcdir
16628 ac_abs_top_srcdir=$srcdir ;;
16629 *) # Relative name.
16630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16631 ac_top_srcdir=$ac_top_build_prefix$srcdir
16632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16644 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16645 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16647 ac_MKDIR_P=$MKDIR_P
16649 [\\/$]* | ?:[\\/]* ) ;;
16650 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16655 # If the template does not know about datarootdir, expand it.
16656 # FIXME: This hack should be removed a few years after 2.60.
16657 ac_datarootdir_hack=; ac_datarootdir_seen=
16668 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16669 *datarootdir*) ac_datarootdir_seen=yes;;
16670 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16672 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16675 ac_datarootdir_hack='
16676 s&@datadir@&$datadir&g
16677 s&@docdir@&$docdir&g
16678 s&@infodir@&$infodir&g
16679 s&@localedir@&$localedir&g
16680 s&@mandir@&$mandir&g
16681 s&\\\${datarootdir}&$datarootdir&g' ;;
16685 # Neutralize VPATH when `$srcdir' = `.'.
16686 # Shell code in configure.ac might set extrasub.
16687 # FIXME: do we really want to maintain this feature?
16688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16689 ac_sed_extra="$ac_vpsub
16692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16695 s|@configure_input@|$ac_sed_conf_input|;t t
16696 s&@top_builddir@&$ac_top_builddir_sub&;t t
16697 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16698 s&@srcdir@&$ac_srcdir&;t t
16699 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16700 s&@top_srcdir@&$ac_top_srcdir&;t t
16701 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16702 s&@builddir@&$ac_builddir&;t t
16703 s&@abs_builddir@&$ac_abs_builddir&;t t
16704 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16705 s&@INSTALL@&$ac_INSTALL&;t t
16706 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16707 $ac_datarootdir_hack
16709 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16710 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16713 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16715 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16717 which seems to be undefined. Please make sure it is defined" >&5
16718 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16719 which seems to be undefined. Please make sure it is defined" >&2;}
16721 rm -f "$ac_tmp/stdin"
16723 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16724 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16732 if test x"$ac_file" != x-; then
16734 $as_echo "/* $configure_input */" \
16735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16736 } >"$ac_tmp/config.h" \
16737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16738 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16740 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16743 mv "$ac_tmp/config.h" "$ac_file" \
16744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16747 $as_echo "/* $configure_input */" \
16748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16749 || as_fn_error $? "could not create -" "$LINENO" 5
16751 # Compute "$ac_file"'s index in $config_headers.
16754 for _am_header in $config_headers :; do
16755 case $_am_header in
16756 $_am_arg | $_am_arg:* )
16759 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16762 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16763 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16764 X"$_am_arg" : 'X\(//\)[^/]' \| \
16765 X"$_am_arg" : 'X\(//\)$' \| \
16766 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16767 $as_echo X"$_am_arg" |
16768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16772 /^X\(\/\/\)[^/].*/{
16784 s/.*/./; q'`/stamp-h$_am_stamp_count
16787 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16788 $as_echo "$as_me: executing $ac_file commands" >&6;}
16793 case $ac_file$ac_mode in
16794 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16795 # Older Autoconf quotes --file arguments for eval, but not when files
16796 # are listed without --file. Let's play safe and only enable the eval
16797 # if we detect the quoting.
16798 case $CONFIG_FILES in
16799 *\'*) eval set x "$CONFIG_FILES" ;;
16800 *) set x $CONFIG_FILES ;;
16805 # Strip MF so we end up with the name of the file.
16806 mf=`echo "$mf" | sed -e 's/:.*$//'`
16807 # Check whether this is an Automake generated Makefile or not.
16808 # We used to match only the files named 'Makefile.in', but
16809 # some people rename them; so instead we look at the file content.
16810 # Grep'ing the first line is not enough: some people post-process
16811 # each Makefile.in and add a new line on top of each file to say so.
16812 # Grep'ing the whole file is not good either: AIX grep has a line
16813 # limit of 2048, but all sed's we know have understand at least 4000.
16814 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16815 dirpart=`$as_dirname -- "$mf" ||
16816 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16817 X"$mf" : 'X\(//\)[^/]' \| \
16818 X"$mf" : 'X\(//\)$' \| \
16819 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16825 /^X\(\/\/\)[^/].*/{
16841 # Extract the definition of DEPDIR, am__include, and am__quote
16842 # from the Makefile without running 'make'.
16843 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16844 test -z "$DEPDIR" && continue
16845 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16846 test -z "$am__include" && continue
16847 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16848 # Find all dependency output files, they are included files with
16849 # $(DEPDIR) in their names. We invoke sed twice because it is the
16850 # simplest approach to changing $(DEPDIR) to its actual value in the
16852 for file in `sed -n "
16853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16855 # Make sure the directory exists.
16856 test -f "$dirpart/$file" && continue
16857 fdir=`$as_dirname -- "$file" ||
16858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16859 X"$file" : 'X\(//\)[^/]' \| \
16860 X"$file" : 'X\(//\)$' \| \
16861 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16862 $as_echo X"$file" |
16863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16867 /^X\(\/\/\)[^/].*/{
16880 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16881 # echo "creating $dirpart/$file"
16882 echo '# dummy' > "$dirpart/$file"
16889 # See if we are running on zsh, and set the options which allow our
16890 # commands through without removal of \ escapes.
16891 if test -n "${ZSH_VERSION+set}" ; then
16892 setopt NO_GLOB_SUBST
16895 cfgfile="${ofile}T"
16896 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16899 cat <<_LT_EOF >> "$cfgfile"
16902 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16903 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16904 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16905 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16907 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16908 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16909 # Written by Gordon Matzigkeit, 1996
16911 # This file is part of GNU Libtool.
16913 # GNU Libtool is free software; you can redistribute it and/or
16914 # modify it under the terms of the GNU General Public License as
16915 # published by the Free Software Foundation; either version 2 of
16916 # the License, or (at your option) any later version.
16918 # As a special exception to the GNU General Public License,
16919 # if you distribute this file as part of a program or library that
16920 # is built using GNU Libtool, you may include this file under the
16921 # same distribution terms that you use for the rest of that program.
16923 # GNU Libtool is distributed in the hope that it will be useful,
16924 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16926 # GNU General Public License for more details.
16928 # You should have received a copy of the GNU General Public License
16929 # along with GNU Libtool; see the file COPYING. If not, a copy
16930 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16931 # obtained by writing to the Free Software Foundation, Inc.,
16932 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16935 # The names of the tagged configurations supported by this script.
16938 # ### BEGIN LIBTOOL CONFIG
16940 # Which release of libtool.m4 was used?
16941 macro_version=$macro_version
16942 macro_revision=$macro_revision
16944 # Whether or not to build shared libraries.
16945 build_libtool_libs=$enable_shared
16947 # Whether or not to build static libraries.
16948 build_old_libs=$enable_static
16950 # What type of objects to build.
16953 # Whether or not to optimize for fast installation.
16954 fast_install=$enable_fast_install
16956 # Shell to use when invoking shell scripts.
16959 # An echo program that protects backslashes.
16963 host_alias=$host_alias
16967 # The build system.
16968 build_alias=$build_alias
16972 # A sed program that does not truncate output.
16975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16976 Xsed="\$SED -e 1s/^X//"
16978 # A grep program that handles long lines.
16984 # A literal string matcher.
16987 # A BSD- or MS-compatible name lister.
16990 # Whether we need soft or hard links.
16993 # What is the maximum length of a command?
16994 max_cmd_len=$max_cmd_len
16996 # Object file suffix (normally "o").
16999 # Executable file suffix (normally "").
17002 # whether the shell understands "unset".
17005 # turn spaces into newlines.
17008 # turn newlines into spaces.
17011 # An object symbol dumper.
17012 OBJDUMP=$lt_OBJDUMP
17014 # Method to check whether dependent libraries are shared objects.
17015 deplibs_check_method=$lt_deplibs_check_method
17017 # Command to use when deplibs_check_method == "file_magic".
17018 file_magic_cmd=$lt_file_magic_cmd
17022 AR_FLAGS=$lt_AR_FLAGS
17024 # A symbol stripping program.
17027 # Commands used to install an old-style archive.
17029 old_postinstall_cmds=$lt_old_postinstall_cmds
17030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17032 # Whether to use a lock for old archive extraction.
17033 lock_old_archive_extraction=$lock_old_archive_extraction
17038 # LTCC compiler flags.
17039 LTCFLAGS=$lt_CFLAGS
17041 # Take the output of nm and produce a listing of raw symbols and C names.
17042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17044 # Transform the output of nm in a proper C declaration.
17045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17047 # Transform the output of nm in a C name address pair.
17048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17050 # Transform the output of nm in a C name address pair when lib prefix is needed.
17051 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17053 # The name of the directory that contains temporary libtool files.
17056 # Used to examine libraries when file_magic_cmd begins with "file".
17057 MAGIC_CMD=$MAGIC_CMD
17059 # Must we lock files when doing compilation?
17060 need_locks=$lt_need_locks
17062 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17063 DSYMUTIL=$lt_DSYMUTIL
17065 # Tool to change global to local symbols on Mac OS X.
17068 # Tool to manipulate fat objects and archives on Mac OS X.
17071 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17074 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17075 OTOOL64=$lt_OTOOL64
17077 # Old archive suffix (normally "a").
17080 # Shared library suffix (normally ".so").
17081 shrext_cmds=$lt_shrext_cmds
17083 # The commands to extract the exported symbol list from a shared archive.
17084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17086 # Variables whose values should be saved in libtool wrapper scripts and
17087 # restored at link time.
17088 variables_saved_for_relink=$lt_variables_saved_for_relink
17090 # Do we need the "lib" prefix for modules?
17091 need_lib_prefix=$need_lib_prefix
17093 # Do we need a version for libraries?
17094 need_version=$need_version
17096 # Library versioning type.
17097 version_type=$version_type
17099 # Shared library runtime path variable.
17100 runpath_var=$runpath_var
17102 # Shared library path variable.
17103 shlibpath_var=$shlibpath_var
17105 # Is shlibpath searched before the hard-coded library search path?
17106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17108 # Format of library name prefix.
17109 libname_spec=$lt_libname_spec
17111 # List of archive names. First name is the real one, the rest are links.
17112 # The last name is the one that the linker finds with -lNAME
17113 library_names_spec=$lt_library_names_spec
17115 # The coded name of the library, if different from the real name.
17116 soname_spec=$lt_soname_spec
17118 # Permission mode override for installation of shared libraries.
17119 install_override_mode=$lt_install_override_mode
17121 # Command to use after installation of a shared archive.
17122 postinstall_cmds=$lt_postinstall_cmds
17124 # Command to use after uninstallation of a shared archive.
17125 postuninstall_cmds=$lt_postuninstall_cmds
17127 # Commands used to finish a libtool library installation in a directory.
17128 finish_cmds=$lt_finish_cmds
17130 # As "finish_cmds", except a single script fragment to be evaled but
17132 finish_eval=$lt_finish_eval
17134 # Whether we should hardcode library paths into libraries.
17135 hardcode_into_libs=$hardcode_into_libs
17137 # Compile-time system search path for libraries.
17138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17140 # Run-time system search path for libraries.
17141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17143 # Whether dlopen is supported.
17144 dlopen_support=$enable_dlopen
17146 # Whether dlopen of programs is supported.
17147 dlopen_self=$enable_dlopen_self
17149 # Whether dlopen of statically linked programs is supported.
17150 dlopen_self_static=$enable_dlopen_self_static
17152 # Commands to strip libraries.
17153 old_striplib=$lt_old_striplib
17154 striplib=$lt_striplib
17157 # The linker used to build libraries.
17160 # How to create reloadable object files.
17161 reload_flag=$lt_reload_flag
17162 reload_cmds=$lt_reload_cmds
17164 # Commands used to build an old-style archive.
17165 old_archive_cmds=$lt_old_archive_cmds
17167 # A language specific compiler.
17170 # Is the compiler the GNU compiler?
17173 # Compiler flag to turn off builtin functions.
17174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17176 # How to pass a linker flag through the compiler.
17177 wl=$lt_lt_prog_compiler_wl
17179 # Additional compiler flags for building library objects.
17180 pic_flag=$lt_lt_prog_compiler_pic
17182 # Compiler flag to prevent dynamic linking.
17183 link_static_flag=$lt_lt_prog_compiler_static
17185 # Does compiler simultaneously support -c and -o options?
17186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17188 # Whether or not to add -lc for building shared libraries.
17189 build_libtool_need_lc=$archive_cmds_need_lc
17191 # Whether or not to disallow shared libs when runtime libs are static.
17192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17194 # Compiler flag to allow reflexive dlopens.
17195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17197 # Compiler flag to generate shared objects directly from archives.
17198 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17200 # Whether the compiler copes with passing no objects directly.
17201 compiler_needs_object=$lt_compiler_needs_object
17203 # Create an old-style archive from a shared archive.
17204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17206 # Create a temporary old-style archive to link instead of a shared archive.
17207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17209 # Commands used to build a shared archive.
17210 archive_cmds=$lt_archive_cmds
17211 archive_expsym_cmds=$lt_archive_expsym_cmds
17213 # Commands used to build a loadable module if different from building
17214 # a shared archive.
17215 module_cmds=$lt_module_cmds
17216 module_expsym_cmds=$lt_module_expsym_cmds
17218 # Whether we are building with GNU ld or not.
17219 with_gnu_ld=$lt_with_gnu_ld
17221 # Flag that allows shared libraries with undefined symbols to be built.
17222 allow_undefined_flag=$lt_allow_undefined_flag
17224 # Flag that enforces no undefined symbols.
17225 no_undefined_flag=$lt_no_undefined_flag
17227 # Flag to hardcode \$libdir into a binary during linking.
17228 # This must work even if \$libdir does not exist
17229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17231 # If ld is used when linking, flag to hardcode \$libdir into a binary
17232 # during linking. This must work even if \$libdir does not exist.
17233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17235 # Whether we need a single "-rpath" flag with a separated argument.
17236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239 # DIR into the resulting binary.
17240 hardcode_direct=$hardcode_direct
17242 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17243 # DIR into the resulting binary and the resulting library dependency is
17244 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17245 # library is relocated.
17246 hardcode_direct_absolute=$hardcode_direct_absolute
17248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17249 # into the resulting binary.
17250 hardcode_minus_L=$hardcode_minus_L
17252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17253 # into the resulting binary.
17254 hardcode_shlibpath_var=$hardcode_shlibpath_var
17256 # Set to "yes" if building a shared library automatically hardcodes DIR
17257 # into the library and all subsequent libraries and executables linked
17259 hardcode_automatic=$hardcode_automatic
17261 # Set to yes if linker adds runtime paths of dependent libraries
17262 # to runtime path list.
17263 inherit_rpath=$inherit_rpath
17265 # Whether libtool must link a program against all its dependency libraries.
17266 link_all_deplibs=$link_all_deplibs
17268 # Fix the shell variable \$srcfile for the compiler.
17269 fix_srcfile_path=$lt_fix_srcfile_path
17271 # Set to "yes" if exported symbols are required.
17272 always_export_symbols=$always_export_symbols
17274 # The commands to list exported symbols.
17275 export_symbols_cmds=$lt_export_symbols_cmds
17277 # Symbols that should not be listed in the preloaded symbols.
17278 exclude_expsyms=$lt_exclude_expsyms
17280 # Symbols that must always be exported.
17281 include_expsyms=$lt_include_expsyms
17283 # Commands necessary for linking programs (against libraries) with templates.
17284 prelink_cmds=$lt_prelink_cmds
17286 # Specify filename containing input files.
17287 file_list_spec=$lt_file_list_spec
17289 # How to hardcode a shared library path into an executable.
17290 hardcode_action=$hardcode_action
17292 # ### END LIBTOOL CONFIG
17298 cat <<\_LT_EOF >> "$cfgfile"
17299 # AIX sometimes has problems with the GCC collect2 program. For some
17300 # reason, if we set the COLLECT_NAMES environment variable, the problems
17301 # vanish in a puff of smoke.
17302 if test "X${COLLECT_NAMES+set}" != Xset; then
17304 export COLLECT_NAMES
17311 ltmain="$ac_aux_dir/ltmain.sh"
17314 # We use sed instead of cat because bash on DJGPP gets confused if
17315 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17316 # text mode, it properly converts lines to CR/LF. This bash problem
17317 # is reportedly fixed, but why not run on old versions too?
17318 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17319 || (rm -f "$cfgfile"; exit 1)
17323 cat << \_LT_EOF >> "$cfgfile"
17325 # func_dirname file append nondir_replacement
17326 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17327 # otherwise set result to NONDIR_REPLACEMENT.
17331 */*) func_dirname_result="${1%/*}${2}" ;;
17332 * ) func_dirname_result="${3}" ;;
17336 # func_basename file
17339 func_basename_result="${1##*/}"
17342 # func_dirname_and_basename file append nondir_replacement
17343 # perform func_basename and func_dirname in a single function
17345 # dirname: Compute the dirname of FILE. If nonempty,
17346 # add APPEND to the result, otherwise set result
17347 # to NONDIR_REPLACEMENT.
17348 # value returned in "$func_dirname_result"
17349 # basename: Compute filename of FILE.
17350 # value retuned in "$func_basename_result"
17351 # Implementation must be kept synchronized with func_dirname
17352 # and func_basename. For efficiency, we do not delegate to
17353 # those functions but instead duplicate the functionality here.
17354 func_dirname_and_basename ()
17357 */*) func_dirname_result="${1%/*}${2}" ;;
17358 * ) func_dirname_result="${3}" ;;
17360 func_basename_result="${1##*/}"
17363 # func_stripname prefix suffix name
17364 # strip PREFIX and SUFFIX off of NAME.
17365 # PREFIX and SUFFIX must not contain globbing or regex special
17366 # characters, hashes, percent signs, but SUFFIX may contain a leading
17367 # dot (in which case that matches only a dot).
17370 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17371 # positional parameters, so assign one to ordinary parameter first.
17372 func_stripname_result=${3}
17373 func_stripname_result=${func_stripname_result#"${1}"}
17374 func_stripname_result=${func_stripname_result%"${2}"}
17380 func_opt_split_opt=${1%%=*}
17381 func_opt_split_arg=${1#*=}
17388 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17389 *) func_lo2o_result=${1} ;;
17393 # func_xform libobj-or-source
17396 func_xform_result=${1%.*}.lo
17399 # func_arith arithmetic-term...
17402 func_arith_result=$(( $* ))
17406 # STRING may not start with a hyphen.
17409 func_len_result=${#1}
17414 *) # Bourne compatible functions.
17415 cat << \_LT_EOF >> "$cfgfile"
17417 # func_dirname file append nondir_replacement
17418 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17419 # otherwise set result to NONDIR_REPLACEMENT.
17422 # Extract subdirectory from the argument.
17423 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17424 if test "X$func_dirname_result" = "X${1}"; then
17425 func_dirname_result="${3}"
17427 func_dirname_result="$func_dirname_result${2}"
17431 # func_basename file
17434 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17438 # func_stripname prefix suffix name
17439 # strip PREFIX and SUFFIX off of NAME.
17440 # PREFIX and SUFFIX must not contain globbing or regex special
17441 # characters, hashes, percent signs, but SUFFIX may contain a leading
17442 # dot (in which case that matches only a dot).
17443 # func_strip_suffix prefix name
17447 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17448 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17453 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17454 my_sed_long_arg='1s/^-[^=]*=//'
17459 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17460 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17466 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17469 # func_xform libobj-or-source
17472 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17475 # func_arith arithmetic-term...
17478 func_arith_result=`expr "$@"`
17482 # STRING may not start with a hyphen.
17485 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17491 case $lt_shell_append in
17493 cat << \_LT_EOF >> "$cfgfile"
17495 # func_append var value
17496 # Append VALUE to the end of shell variable VAR.
17504 cat << \_LT_EOF >> "$cfgfile"
17506 # func_append var value
17507 # Append VALUE to the end of shell variable VAR.
17518 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17519 || (rm -f "$cfgfile"; exit 1)
17521 mv -f "$cfgfile" "$ofile" ||
17522 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17527 for ac_file in $CONFIG_FILES; do
17528 # Support "outfile[:infile[:infile...]]"
17530 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17532 # PO directories have a Makefile.in generated from Makefile.in.in.
17533 case "$ac_file" in */Makefile.in)
17534 # Adjust a relative srcdir.
17535 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17536 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17537 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17538 # In autoconf-2.13 it is called $ac_given_srcdir.
17539 # In autoconf-2.50 it is called $srcdir.
17540 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17541 case "$ac_given_srcdir" in
17542 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17543 /*) top_srcdir="$ac_given_srcdir" ;;
17544 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17546 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17547 rm -f "$ac_dir/POTFILES"
17548 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17549 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17550 POMAKEFILEDEPS="POTFILES.in"
17551 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17552 # on $ac_dir but don't depend on user-specified configuration
17554 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17555 # The LINGUAS file contains the set of available languages.
17556 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17557 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17559 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17560 # Hide the ALL_LINGUAS assigment from automake.
17561 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17562 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17564 # The set of available languages was given in configure.ac.
17565 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17567 case "$ac_given_srcdir" in
17569 *) srcdirpre='$(srcdir)/' ;;
17575 for lang in $ALL_LINGUAS; do
17576 POFILES="$POFILES $srcdirpre$lang.po"
17577 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17578 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17579 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17581 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17582 # environment variable.
17584 if test -n "$ALL_LINGUAS"; then
17585 for presentlang in $ALL_LINGUAS; do
17587 if test "%UNSET%" != "$LINGUAS"; then
17588 desiredlanguages="$LINGUAS"
17590 desiredlanguages="$ALL_LINGUAS"
17592 for desiredlang in $desiredlanguages; do
17593 # Use the presentlang catalog if desiredlang is
17594 # a. equal to presentlang, or
17595 # b. a variant of presentlang (because in this case,
17596 # presentlang can be used as a fallback for messages
17597 # which are not translated in the desiredlang catalog).
17598 case "$desiredlang" in
17599 "$presentlang"*) useit=yes;;
17602 if test $useit = yes; then
17603 INST_LINGUAS="$INST_LINGUAS $presentlang"
17608 if test -n "$INST_LINGUAS"; then
17609 for lang in $INST_LINGUAS; do
17610 CATALOGS="$CATALOGS $lang.gmo"
17613 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17614 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"
17615 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17616 if test -f "$f"; then
17618 *.orig | *.bak | *~) ;;
17619 *) cat "$f" >> "$ac_dir/Makefile" ;;
17634 ac_clean_files=$ac_clean_files_save
17636 test $ac_write_fail = 0 ||
17637 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17640 # configure is writing to config.log, and then calls config.status.
17641 # config.status does its own redirection, appending to config.log.
17642 # Unfortunately, on DOS this fails, as config.log is still kept open
17643 # by configure, so config.status won't be able to write to it; its
17644 # output is simply discarded. So we exec the FD to /dev/null,
17645 # effectively closing config.log, so it can be properly (re)opened and
17646 # appended to by config.status. When coming back to configure, we
17647 # need to make the FD available again.
17648 if test "$no_create" != yes; then
17650 ac_config_status_args=
17651 test "$silent" = yes &&
17652 ac_config_status_args="$ac_config_status_args --quiet"
17654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17657 # would make configure fail if this is the last instruction.
17658 $ac_cs_success || as_fn_exit 1
17660 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17662 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}