2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for binutils 2.26.51.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
557 PACKAGE_NAME='binutils'
558 PACKAGE_TARNAME='binutils'
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='binutils 2.26.51'
564 ac_unique_file="ar.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
607 OBJDUMP_PRIVATE_OFILES
631 MAINTAINER_MODE_FALSE
693 INSTALL_STRIP_PROGRAM
754 program_transform_name
767 enable_option_checking
768 enable_dependency_tracking
778 enable_deterministic_archives
779 enable_default_strings_all
781 enable_build_warnings
783 enable_maintainer_mode
788 ac_precious_vars='build_alias
801 # Initialize some variables set by options.
803 ac_init_version=false
804 ac_unrecognized_opts=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
815 program_transform_name=s,x,x,
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information."
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1216 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1234 # Be sure to have absolute directory names.
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error "pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1340 \`configure' configures binutils 2.26.51 to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of binutils 2.26.51:";;
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --enable-plugins Enable support for plugins
1427 --disable-largefile omit support for large files
1428 --enable-targets alternative target configurations
1429 --enable-deterministic-archives
1430 ar and ranlib default to -D behavior
1431 --disable-default-strings-all
1432 strings defaults to --data behavior
1433 --enable-werror treat compile warnings as errors
1434 --enable-build-warnings enable build-time compiler warnings
1435 --disable-nls do not use Native Language Support
1436 --enable-maintainer-mode enable make rules and dependencies not useful
1437 (and sometimes confusing) to the casual installer
1438 --disable-rpath do not hardcode runtime library paths
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-pic try to use only PIC/non-PIC objects [default=use
1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1446 --with-system-zlib use installed libz
1447 --with-gnu-ld assume the C compiler uses GNU ld default=no
1448 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1449 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1460 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1461 the first program found out of: `bison -y', `byacc', `yacc'.
1462 YFLAGS The list of arguments that will be passed by default to $YACC.
1463 This script will default YFLAGS to the empty string to avoid a
1464 default value of `-d' given by some make applications.
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1469 Report bugs to the package provider.
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1532 binutils configure 2.26.51
1533 generated by GNU Autoconf 2.64
1535 Copyright (C) 2009 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582 } # ac_fn_c_try_compile
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest$ac_exeext
1591 if { { ac_try="$ac_link"
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>conftest.err
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest$ac_exeext && {
1610 test "$cross_compiling" = yes ||
1611 $as_test_x conftest$ac_exeext
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622 # interfere with the next link command; also delete a directory that is
1623 # left behind by Apple's compiler. We do this before executing the actions.
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 } # ac_fn_c_try_link
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } >/dev/null && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670 # the include files in INCLUDES and setting the cache variable VAR
1672 ac_fn_c_check_header_mongrel ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 $as_echo_n "(cached) " >&6
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 # Is the header compilable?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687 $as_echo_n "checking $2 usability... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 ac_header_compiler=yes
1696 ac_header_compiler=no
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700 $as_echo "$ac_header_compiler" >&6; }
1702 # Is the header present?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704 $as_echo_n "checking $2 presence... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1709 if ac_fn_c_try_cpp "$LINENO"; then :
1710 ac_header_preproc=yes
1712 ac_header_preproc=no
1714 rm -f conftest.err conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716 $as_echo "$ac_header_preproc" >&6; }
1718 # So? What about this header?
1719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1730 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1734 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1744 eval "$3=\$ac_header_compiler"
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 } # ac_fn_c_check_header_mongrel
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=$ac_status
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 } # ac_fn_c_check_header_compile
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 $as_echo_n "(cached) " >&6
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1850 # include <limits.h>
1852 # include <assert.h>
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1879 if ac_fn_c_try_link "$LINENO"; then :
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_func
1894 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1895 # --------------------------------------------
1896 # Tries to find the compile-time value of EXPR in a program that includes
1897 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1899 ac_fn_c_compute_int ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if test "$cross_compiling" = yes; then
1903 # Depending upon the size, compute the lo and hi bounds.
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1910 static int test_array [1 - 2 * !(($2) >= 0)];
1917 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid; break
1936 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937 if test $ac_lo -le $ac_mid; then
1941 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1952 static int test_array [1 - 2 * !(($2) < 0)];
1959 if ac_fn_c_try_compile "$LINENO"; then :
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_lo=$ac_mid; break
1978 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1979 if test $ac_mid -le $ac_hi; then
1983 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 # Binary search between lo and hi bounds.
1994 while test "x$ac_lo" != "x$ac_hi"; do
1995 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009 if ac_fn_c_try_compile "$LINENO"; then :
2012 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2024 static long int longval () { return $2; }
2025 static unsigned long int ulongval () { return $2; }
2032 FILE *f = fopen ("conftest.val", "w");
2037 long int i = longval ();
2040 fprintf (f, "%ld", i);
2044 unsigned long int i = ulongval ();
2047 fprintf (f, "%lu", i);
2049 /* Do not output a trailing newline, as this causes \r\n confusion
2050 on some platforms. */
2051 return ferror (f) || fclose (f) != 0;
2057 if ac_fn_c_try_run "$LINENO"; then :
2058 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2063 conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 } # ac_fn_c_compute_int
2072 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2073 # -------------------------------------------
2074 # Tests whether TYPE exists after having included INCLUDES, setting cache
2075 # variable VAR accordingly.
2076 ac_fn_c_check_type ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082 $as_echo_n "(cached) " >&6
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2110 if ac_fn_c_try_compile "$LINENO"; then :
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124 } # ac_fn_c_check_type
2126 # ac_fn_c_check_decl LINENO SYMBOL VAR
2127 # ------------------------------------
2128 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2129 ac_fn_c_check_decl ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 as_decl_name=`echo $2|sed 's/ *(.*//'`
2133 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2135 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2136 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137 $as_echo_n "(cached) " >&6
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 #ifndef $as_decl_name
2147 (void) $as_decl_use;
2149 (void) $as_decl_name;
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169 } # ac_fn_c_check_decl
2170 cat >config.log <<_ACEOF
2171 This file contains any messages produced by compilers while
2172 running configure, to aid debugging if configure makes a mistake.
2174 It was created by binutils $as_me 2.26.51, which was
2175 generated by GNU Autoconf 2.64. Invocation command line was
2187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2199 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 $as_echo "PATH: $as_dir"
2227 # Keep a trace of the command line.
2228 # Strip out --no-create and --no-recursion so they do not pile up.
2229 # Strip out --silent because we don't want to record it for future runs.
2230 # Also quote any args containing shell meta-characters.
2231 # Make two passes to allow for proper duplicate-argument suppression.
2235 ac_must_keep_next=false
2241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2243 | -silent | --silent | --silen | --sile | --sil)
2246 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 as_fn_append ac_configure_args1 " '$ac_arg'"
2252 if test $ac_must_keep_next = true; then
2253 ac_must_keep_next=false # Got value, back to normal.
2256 *=* | --config-cache | -C | -disable-* | --disable-* \
2257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2259 | -with-* | --with-* | -without-* | --without-* | --x)
2260 case "$ac_configure_args0 " in
2261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264 -* ) ac_must_keep_next=true ;;
2267 as_fn_append ac_configure_args " '$ac_arg'"
2272 { ac_configure_args0=; unset ac_configure_args0;}
2273 { ac_configure_args1=; unset ac_configure_args1;}
2275 # When interrupted or exit'd, cleanup temporary files, and complete
2276 # config.log. We remove comments because anyway the quotes in there
2277 # would cause problems or look ugly.
2278 # WARNING: Use '\'' to represent an apostrophe within the trap.
2279 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2280 trap 'exit_status=$?
2281 # Save into config.log some information that might help in debugging.
2286 ## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##
2291 # The following way of writing the cache mishandles newlines in values,
2293 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2294 eval ac_val=\$$ac_var
2298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 _ | IFS | as_nl) ;; #(
2303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2304 *) { eval $ac_var=; unset $ac_var;} ;;
2309 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2310 *${as_nl}ac_space=\ *)
2312 "s/'\''/'\''\\\\'\'''\''/g;
2313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 ## ----------------- ##
2325 ## Output variables. ##
2326 ## ----------------- ##
2329 for ac_var in $ac_subst_vars
2331 eval ac_val=\$$ac_var
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 $as_echo "$ac_var='\''$ac_val'\''"
2339 if test -n "$ac_subst_files"; then
2341 ## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##
2346 for ac_var in $ac_subst_files
2348 eval ac_val=\$$ac_var
2350 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 $as_echo "$ac_var='\''$ac_val'\''"
2357 if test -s confdefs.h; then
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375 for ac_signal in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2381 rm -f -r conftest* confdefs.h
2383 $as_echo "/* confdefs.h */" > confdefs.h
2385 # Predefined preprocessor variables.
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_NAME "$PACKAGE_NAME"
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_STRING "$PACKAGE_STRING"
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_URL "$PACKAGE_URL"
2412 # Let the site file select an alternate cache file if it wants to.
2413 # Prefer an explicitly selected file to automatically selected ones.
2416 if test -n "$CONFIG_SITE"; then
2417 ac_site_file1=$CONFIG_SITE
2418 elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2425 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427 test "x$ac_site_file" = xNONE && continue
2428 if test -r "$ac_site_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
2436 if test -r "$cache_file"; then
2437 # Some versions of bash will fail to source /dev/null (special
2438 # files actually), so we avoid doing that.
2439 if test -f "$cache_file"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441 $as_echo "$as_me: loading cache $cache_file" >&6;}
2443 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444 *) . "./$cache_file";;
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449 $as_echo "$as_me: creating cache $cache_file" >&6;}
2453 # Check that the precious variables saved in the cache have kept the same
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x $ac_old_val`
2475 ac_new_val_w=`echo x $ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479 ac_cache_corrupted=:
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2486 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2494 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2503 if $ac_cache_corrupted; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2528 for ac_t in install-sh install.sh shtool; do
2529 if test -f "$ac_dir/$ac_t"; then
2531 ac_install_sh="$ac_aux_dir/$ac_t -c"
2536 if test -z "$ac_aux_dir"; then
2537 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2540 # These three variables are undocumented and unsupported,
2541 # and are intended to be withdrawn in a future Autoconf release.
2542 # They can cause serious problems if a builder's source tree is in a directory
2543 # whose full name contains unusual characters.
2544 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2545 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2546 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2549 # Make sure we can run config.sub.
2550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2551 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2554 $as_echo_n "checking build system type... " >&6; }
2555 if test "${ac_cv_build+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
2558 ac_build_alias=$build_alias
2559 test "x$ac_build_alias" = x &&
2560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2561 test "x$ac_build_alias" = x &&
2562 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2564 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2568 $as_echo "$ac_cv_build" >&6; }
2569 case $ac_cv_build in
2571 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2574 ac_save_IFS=$IFS; IFS='-'
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2588 $as_echo_n "checking host system type... " >&6; }
2589 if test "${ac_cv_host+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2592 if test "x$host_alias" = x; then
2593 ac_cv_host=$ac_cv_build
2595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2596 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2601 $as_echo "$ac_cv_host" >&6; }
2604 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2607 ac_save_IFS=$IFS; IFS='-'
2613 # Remember, the first character of IFS is used to create $*,
2614 # except with old shells:
2617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2621 $as_echo_n "checking target system type... " >&6; }
2622 if test "${ac_cv_target+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2625 if test "x$target_alias" = x; then
2626 ac_cv_target=$ac_cv_host
2628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2629 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2634 $as_echo "$ac_cv_target" >&6; }
2635 case $ac_cv_target in
2637 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2639 target=$ac_cv_target
2640 ac_save_IFS=$IFS; IFS='-'
2646 # Remember, the first character of IFS is used to create $*,
2647 # except with old shells:
2650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2653 # The aliases save the names the user supplied, while $host etc.
2654 # will get canonicalized.
2655 test -n "$target_alias" &&
2656 test "$program_prefix$program_suffix$program_transform_name" = \
2658 program_prefix=${target_alias}-
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2666 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2703 if test -z "$ac_cv_prog_CC"; then
2705 # Extract the first word of "gcc", so it can be a program name with args.
2706 set dummy gcc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2712 if test -n "$ac_ct_CC"; then
2713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_ac_ct_CC="gcc"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733 if test -n "$ac_ct_CC"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2735 $as_echo "$ac_ct_CC" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2741 if test "x$ac_ct_CC" = x; then
2744 case $cross_compiling:$ac_tool_warned in
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2748 ac_tool_warned=yes ;;
2756 if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}cc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_CC+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC="${ac_tool_prefix}cc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test -n "$CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2797 if test -z "$CC"; then
2798 # Extract the first word of "cc", so it can be a program name with args.
2799 set dummy cc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_CC+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2817 ac_prog_rejected=yes
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test $ac_prog_rejected = yes; then
2829 # We found a bogon in the path, so make sure we never use it.
2830 set dummy $ac_cv_prog_CC
2832 if test $# != 0; then
2833 # We chose a different compiler from the bogus one.
2834 # However, it has the same basename, so the bogon will be chosen
2835 # first if we set CC to just the basename; use the full file name.
2837 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2853 if test -z "$CC"; then
2854 if test -n "$ac_tool_prefix"; then
2855 for ac_prog in cl.exe
2857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2894 test -n "$CC" && break
2897 if test -z "$CC"; then
2899 for ac_prog in cl.exe
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902 set dummy $ac_prog; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_CC="$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2931 $as_echo "$ac_ct_CC" >&6; }
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2938 test -n "$ac_ct_CC" && break
2941 if test "x$ac_ct_CC" = x; then
2944 case $cross_compiling:$ac_tool_warned in
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2948 ac_tool_warned=yes ;;
2957 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 as_fn_error "no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." "$LINENO" 5; }
2962 # Provide some information about the compiler.
2963 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2966 for ac_option in --version -v -V -qversion; do
2967 { { ac_try="$ac_compiler $ac_option >&5"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2976 if test -s conftest.err; then
2978 ... rest of stderr output deleted ...
2979 10q' conftest.err >conftest.er1
2980 cat conftest.er1 >&5
2981 rm -f conftest.er1 conftest.err
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2998 ac_clean_files_save=$ac_clean_files
2999 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3000 # Try to create an executable without -o first, disregard a.out.
3001 # It will help us diagnose broken compilers, and finding out an intuition
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3004 $as_echo_n "checking for C compiler default output file name... " >&6; }
3005 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3007 # The possible output files:
3008 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3011 for ac_file in $ac_files
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3015 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3020 if { { ac_try="$ac_link_default"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_link_default") 2>&5
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }; then :
3031 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3032 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3033 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3034 # so that the user can short-circuit this test for compilers unknown to
3036 for ac_file in $ac_files ''
3038 test -f "$ac_file" || continue
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3043 # We found the default executable, but exeext='' is most
3047 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3051 # We set ac_cv_exeext here because the later test for it is not
3052 # safe: cross compilers may not add the suffix if given an `-o'
3053 # argument, so we may need to know it at that point already.
3054 # Even if this section looks crufty: it has the advantage of
3061 test "$ac_cv_exeext" = no && ac_cv_exeext=
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3067 $as_echo "$ac_file" >&6; }
3068 if test -z "$ac_file"; then :
3069 $as_echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { as_fn_set_status 77
3075 as_fn_error "C compiler cannot create executables
3076 See \`config.log' for more details." "$LINENO" 5; }; }
3078 ac_exeext=$ac_cv_exeext
3080 # Check that the compiler produces executables we can run. If not, either
3081 # the compiler is broken, or we cross compile.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083 $as_echo_n "checking whether the C compiler works... " >&6; }
3084 # If not cross compiling, check that we can run a simple program.
3085 if test "$cross_compiling" != yes; then
3086 if { ac_try='./$ac_file'
3087 { { case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_try") 2>&5
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }; }; then
3099 if test "$cross_compiling" = maybe; then
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error "cannot run C compiled programs.
3105 If you meant to cross compile, use \`--host'.
3106 See \`config.log' for more details." "$LINENO" 5; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111 $as_echo "yes" >&6; }
3113 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3114 ac_clean_files=$ac_clean_files_save
3115 # Check that the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118 $as_echo_n "checking whether we are cross compiling... " >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3120 $as_echo "$cross_compiling" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123 $as_echo_n "checking for suffix of executables... " >&6; }
3124 if { { ac_try="$ac_link"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3137 # work properly (i.e., refer to `conftest.exe'), while it won't with
3139 for ac_file in conftest.exe conftest conftest.*; do
3140 test -f "$ac_file" || continue
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error "cannot compute suffix of executables: cannot compile and link
3152 See \`config.log' for more details." "$LINENO" 5; }
3154 rm -f conftest$ac_cv_exeext
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3156 $as_echo "$ac_cv_exeext" >&6; }
3158 rm -f conftest.$ac_ext
3159 EXEEXT=$ac_cv_exeext
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3162 $as_echo_n "checking for suffix of object files... " >&6; }
3163 if test "${ac_cv_objext+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3177 rm -f conftest.o conftest.obj
3178 if { { ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_compile") 2>&5
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 for ac_file in conftest.o conftest.obj conftest.*; do
3190 test -f "$ac_file" || continue;
3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error "cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details." "$LINENO" 5; }
3206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3209 $as_echo "$ac_cv_objext" >&6; }
3210 OBJEXT=$ac_cv_objext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3213 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3214 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3231 if ac_fn_c_try_compile "$LINENO"; then :
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3241 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3242 if test $ac_compiler_gnu = yes; then
3247 ac_test_CFLAGS=${CFLAGS+set}
3248 ac_save_CFLAGS=$CFLAGS
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3250 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3251 if test "${ac_cv_prog_cc_g+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3254 ac_save_c_werror_flag=$ac_c_werror_flag
3255 ac_c_werror_flag=yes
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3269 if ac_fn_c_try_compile "$LINENO"; then :
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3284 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3300 if ac_fn_c_try_compile "$LINENO"; then :
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_c_werror_flag=$ac_save_c_werror_flag
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3311 $as_echo "$ac_cv_prog_cc_g" >&6; }
3312 if test "$ac_test_CFLAGS" = set; then
3313 CFLAGS=$ac_save_CFLAGS
3314 elif test $ac_cv_prog_cc_g = yes; then
3315 if test "$GCC" = yes; then
3321 if test "$GCC" = yes; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3328 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3329 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3332 ac_cv_prog_cc_c89=no
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3338 #include <sys/types.h>
3339 #include <sys/stat.h>
3340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3341 struct buf { int x; };
3342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343 static char *e (p, i)
3349 static char *f (char * (*g) (char **, int), char **p, ...)
3354 s = g (p, va_arg (v,int));
3359 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3360 function prototypes and stuff, but not '\xHH' hex character constants.
3361 These don't provoke an error unfortunately, instead are silently treated
3362 as 'x'. The following induces an error, until -std is added to get
3363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3364 array size at least. It's necessary to write '\x00'==0 to get something
3365 that's true only with -std. */
3366 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3368 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3369 inside strings and character constants. */
3371 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3373 int test (int i, double x);
3374 struct s1 {int (*f) (int a);};
3375 struct s2 {int (*f) (double a);};
3376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3388 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3390 CC="$ac_save_CC $ac_arg"
3391 if ac_fn_c_try_compile "$LINENO"; then :
3392 ac_cv_prog_cc_c89=$ac_arg
3394 rm -f core conftest.err conftest.$ac_objext
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break
3397 rm -f conftest.$ac_ext
3402 case "x$ac_cv_prog_cc_c89" in
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3405 $as_echo "none needed" >&6; } ;;
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3408 $as_echo "unsupported" >&6; } ;;
3410 CC="$CC $ac_cv_prog_cc_c89"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3412 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3414 if test "x$ac_cv_prog_cc_c89" != xno; then :
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3426 $as_echo_n "checking for library containing strerror... " >&6; }
3427 if test "${ac_cv_search_strerror+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3430 ac_func_search_save_LIBS=$LIBS
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3434 /* Override any GCC internal prototype to avoid an error.
3435 Use char because int might match the return type of a GCC
3436 builtin and then its argument prototype would still apply. */
3449 for ac_lib in '' cposix; do
3450 if test -z "$ac_lib"; then
3451 ac_res="none required"
3454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3456 if ac_fn_c_try_link "$LINENO"; then :
3457 ac_cv_search_strerror=$ac_res
3459 rm -f core conftest.err conftest.$ac_objext \
3461 if test "${ac_cv_search_strerror+set}" = set; then :
3465 if test "${ac_cv_search_strerror+set}" = set; then :
3468 ac_cv_search_strerror=no
3471 LIBS=$ac_func_search_save_LIBS
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3474 $as_echo "$ac_cv_search_strerror" >&6; }
3475 ac_res=$ac_cv_search_strerror
3476 if test "$ac_res" != no; then :
3477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3482 am__api_version='1.11'
3484 # Find a good install program. We prefer a C program (faster),
3485 # so one script is as good as another. But avoid the broken or
3486 # incompatible versions:
3487 # SysV /etc/install, /usr/sbin/install
3488 # SunOS /usr/etc/install
3489 # IRIX /sbin/install
3491 # AmigaOS /C/install, which installs bootblocks on floppy discs
3492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3495 # OS/2's system install, which has a completely different semantic
3496 # ./install, which can be erroneously created by make from ./install.sh.
3497 # Reject install programs that cannot install multiple files.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3500 if test -z "$INSTALL"; then
3501 if test "${ac_cv_path_install+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir=.
3509 # Account for people who put trailing slashes in PATH elements.
3510 case $as_dir/ in #((
3511 ./ | .// | /[cC]/* | \
3512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3513 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3516 # OSF1 and SCO ODT 3.0 have their own names for install.
3517 # Don't use installbsd from OSF since it installs stuff as root
3519 for ac_prog in ginstall scoinst install; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3522 if test $ac_prog = install &&
3523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3524 # AIX install. It has an incompatible calling convention.
3526 elif test $ac_prog = install &&
3527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528 # program-specific install script used by HP pwplus--don't use.
3531 rm -rf conftest.one conftest.two conftest.dir
3532 echo one > conftest.one
3533 echo two > conftest.two
3535 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3536 test -s conftest.one && test -s conftest.two &&
3537 test -s conftest.dir/conftest.one &&
3538 test -s conftest.dir/conftest.two
3540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3553 rm -rf conftest.one conftest.two conftest.dir
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
3559 # As a last resort, use the slow shell script. Don't cache a
3560 # value for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the value is a relative name.
3563 INSTALL=$ac_install_sh
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3567 $as_echo "$INSTALL" >&6; }
3569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570 # It thinks the first close brace ends the variable substitution.
3571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3578 $as_echo_n "checking whether build environment is sane... " >&6; }
3581 echo timestamp > conftest.file
3582 # Reject unsafe characters in $srcdir or the absolute working directory
3583 # name. Accept space and tab only in the latter.
3587 *[\\\"\#\$\&\'\`$am_lf]*)
3588 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3592 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3595 # Do `set' in a subshell so we don't clobber the current shell's
3596 # arguments. Must try -L first in case configure is actually a
3597 # symlink; some systems play weird games with the mod time of symlinks
3598 # (eg FreeBSD returns the mod time of the symlink's containing
3601 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3602 if test "$*" = "X"; then
3604 set X `ls -t "$srcdir/configure" conftest.file`
3607 if test "$*" != "X $srcdir/configure conftest.file" \
3608 && test "$*" != "X conftest.file $srcdir/configure"; then
3610 # If neither matched, then we have a broken ls. This can happen
3611 # if, for instance, CONFIG_SHELL is bash and it inherits a
3612 # broken ls alias from the environment. This has actually
3613 # happened. Such a system could not be considered "sane".
3614 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3615 alias in your environment" "$LINENO" 5
3618 test "$2" = conftest.file
3624 as_fn_error "newly created file is older than distributed files!
3625 Check your system clock" "$LINENO" 5
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3628 $as_echo "yes" >&6; }
3629 test "$program_prefix" != NONE &&
3630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3631 # Use a double $ so make ignores it.
3632 test "$program_suffix" != NONE &&
3633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3634 # Double any \ or $.
3635 # By default was `s,x,x', remove it if useless.
3636 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3637 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3639 # expand $ac_aux_dir to an absolute path
3640 am_aux_dir=`cd $ac_aux_dir && pwd`
3642 if test x"${MISSING+set}" != xset; then
3645 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3647 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3650 # Use eval to expand $SHELL
3651 if eval "$MISSING --run true"; then
3652 am_missing_run="$MISSING --run "
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3656 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3659 if test x"${install_sh}" != xset; then
3662 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3664 install_sh="\${SHELL} $am_aux_dir/install-sh"
3668 # Installed binaries are usually stripped using `strip' when the user
3669 # run `make install-strip'. However `strip' might not be the right
3670 # tool to use in cross-compilation environments, therefore Automake
3671 # will honor the `STRIP' environment variable to overrule this program.
3672 if test "$cross_compiling" != no; then
3673 if test -n "$ac_tool_prefix"; then
3674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3675 set dummy ${ac_tool_prefix}strip; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if test "${ac_cv_prog_STRIP+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$STRIP"; then
3682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 STRIP=$ac_cv_prog_STRIP
3702 if test -n "$STRIP"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3704 $as_echo "$STRIP" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3712 if test -z "$ac_cv_prog_STRIP"; then
3714 # Extract the first word of "strip", so it can be a program name with args.
3715 set dummy strip; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
3721 if test -n "$ac_ct_STRIP"; then
3722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731 ac_cv_prog_ac_ct_STRIP="strip"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3742 if test -n "$ac_ct_STRIP"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3744 $as_echo "$ac_ct_STRIP" >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3750 if test "x$ac_ct_STRIP" = x; then
3753 case $cross_compiling:$ac_tool_warned in
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757 ac_tool_warned=yes ;;
3762 STRIP="$ac_cv_prog_STRIP"
3766 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3769 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3770 if test -z "$MKDIR_P"; then
3771 if test "${ac_cv_path_mkdir+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3778 test -z "$as_dir" && as_dir=.
3779 for ac_prog in mkdir gmkdir; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3782 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3783 'mkdir (GNU coreutils) '* | \
3784 'mkdir (coreutils) '* | \
3785 'mkdir (fileutils) '4.1*)
3786 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3796 if test "${ac_cv_path_mkdir+set}" = set; then
3797 MKDIR_P="$ac_cv_path_mkdir -p"
3799 # As a last resort, use the slow shell script. Don't cache a
3800 # value for MKDIR_P within a source directory, because that will
3801 # break other packages using the cache if that directory is
3802 # removed, or if the value is a relative name.
3803 test -d ./--version && rmdir ./--version
3804 MKDIR_P="$ac_install_sh -d"
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3808 $as_echo "$MKDIR_P" >&6; }
3812 [\\/$]* | ?:[\\/]*) ;;
3813 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3816 for ac_prog in gawk mawk nawk awk
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_AWK+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$AWK"; then
3826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_AWK="$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 if test -n "$AWK"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3848 $as_echo "$AWK" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3855 test -n "$AWK" && break
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3862 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3863 $as_echo_n "(cached) " >&6
3865 cat >conftest.make <<\_ACEOF
3868 @echo '@@@%%%=$(MAKE)=@@@%%%'
3870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3873 eval ac_cv_prog_make_${ac_make}_set=yes;;
3875 eval ac_cv_prog_make_${ac_make}_set=no;;
3879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881 $as_echo "yes" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 SET_MAKE="MAKE=${MAKE-make}"
3889 rm -rf .tst 2>/dev/null
3890 mkdir .tst 2>/dev/null
3891 if test -d .tst; then
3896 rmdir .tst 2>/dev/null
3898 DEPDIR="${am__leading_dot}deps"
3900 ac_config_commands="$ac_config_commands depfiles"
3903 am_make=${MAKE-make}
3904 cat > confinc << 'END'
3906 @echo this is the am__doit target
3909 # If we don't find an include directive, just comment out the code.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3911 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3915 # First try GNU make style include.
3916 echo "include confinc" > confmf
3917 # Ignore all kinds of additional output from `make'.
3918 case `$am_make -s -f confmf 2> /dev/null` in #(
3919 *the\ am__doit\ target*)
3925 # Now try BSD make style include.
3926 if test "$am__include" = "#"; then
3927 echo '.include "confinc"' > confmf
3928 case `$am_make -s -f confmf 2> /dev/null` in #(
3929 *the\ am__doit\ target*)
3930 am__include=.include
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3939 $as_echo "$_am_result" >&6; }
3940 rm -f confinc confmf
3942 # Check whether --enable-dependency-tracking was given.
3943 if test "${enable_dependency_tracking+set}" = set; then :
3944 enableval=$enable_dependency_tracking;
3947 if test "x$enable_dependency_tracking" != xno; then
3948 am_depcomp="$ac_aux_dir/depcomp"
3952 if test "x$enable_dependency_tracking" != xno; then
3961 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3962 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3963 # is not polluted with repeated "-I."
3964 am__isrc=' -I$(srcdir)'
3965 # test to see if srcdir already configured
3966 if test -f $srcdir/config.status; then
3967 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3971 # test whether we have cygpath
3972 if test -z "$CYGPATH_W"; then
3973 if (cygpath --version) >/dev/null 2>/dev/null; then
3974 CYGPATH_W='cygpath -w'
3981 # Define the identity of the package.
3986 cat >>confdefs.h <<_ACEOF
3987 #define PACKAGE "$PACKAGE"
3991 cat >>confdefs.h <<_ACEOF
3992 #define VERSION "$VERSION"
3995 # Some tools Automake needs.
3997 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4000 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4003 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4006 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4009 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4011 # We need awk for the "check" target. The system "awk" is bad on
4013 # Always define AMTAR for backward compatibility. Yes, it's still used
4014 # in the wild :-( We should find a proper way to deprecate it ...
4017 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4022 depcc="$CC" am_compiler_list=
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4025 $as_echo_n "checking dependency style of $depcc... " >&6; }
4026 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4030 # We make a subdir and do the tests there. Otherwise we can end up
4031 # making bogus files that we don't know about and never remove. For
4032 # instance it was reported that on HP-UX the gcc test will end up
4033 # making a dummy file named `D' -- because `-MD' means `put the output
4037 # Copy depcomp to subdir because otherwise we won't find it if we're
4038 # using a relative directory.
4039 cp "$am_depcomp" conftest.dir
4041 # We will build objects and dependencies in a subdirectory because
4042 # it helps to detect inapplicable dependency modes. For instance
4043 # both Tru64's cc and ICC support -MD to output dependencies as a
4044 # side effect of compilation, but ICC will put the dependencies in
4045 # the current directory while Tru64 will put them in the object
4049 am_cv_CC_dependencies_compiler_type=none
4050 if test "$am_compiler_list" = ""; then
4051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4054 case " $depcc " in #(
4055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4058 for depmode in $am_compiler_list; do
4059 # Setup a source with many dependencies, because some compilers
4060 # like to wrap large dependency lists on column 80 (with \), and
4061 # we should not choose a depcomp mode which is confused by this.
4063 # We need to recreate these files for each test, as the compiler may
4064 # overwrite some of them when testing with obscure command lines.
4065 # This happens at least with the AIX C compiler.
4067 for i in 1 2 3 4 5 6; do
4068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070 # Solaris 8's {/usr,}/bin/sh.
4071 touch sub/conftst$i.h
4073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076 # mode. It turns out that the SunPro C++ compiler does not properly
4077 # handle `-M -o', and we need to detect this. Also, some Intel
4078 # versions had trouble with output in subdirs
4079 am__obj=sub/conftest.${OBJEXT-o}
4080 am__minus_obj="-o $am__obj"
4083 # This depmode causes a compiler race in universal mode.
4084 test "$am__universal" = false || continue
4087 # after this tag, mechanisms are not by side-effect, so they'll
4088 # only be used when explicitly requested
4089 if test "x$enable_dependency_tracking" = xyes; then
4095 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4096 # This compiler won't grok `-c -o', but also, the minuso test has
4097 # not run yet. These depmodes are late enough in the game, and
4098 # so weak that their functioning should not be impacted.
4099 am__obj=conftest.${OBJEXT-o}
4104 if depmode=$depmode \
4105 source=sub/conftest.c object=$am__obj \
4106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4108 >/dev/null 2>conftest.err &&
4109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113 # icc doesn't choke on unknown options, it will just issue warnings
4114 # or remarks (even with -Werror). So we grep stderr for any message
4115 # that says an option was ignored or not supported.
4116 # When given -MP, icc 7.0 and 7.1 complain thusly:
4117 # icc: Command line warning: ignoring option '-M'; no argument required
4118 # The diagnosis changed in icc 8.0:
4119 # icc: Command line remark: option '-MP' not supported
4120 if (grep 'ignoring option' conftest.err ||
4121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122 am_cv_CC_dependencies_compiler_type=$depmode
4131 am_cv_CC_dependencies_compiler_type=none
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4140 test "x$enable_dependency_tracking" != xno \
4141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4143 am__fastdepCC_FALSE='#'
4145 am__fastdepCC_TRUE='#'
4146 am__fastdepCC_FALSE=
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 if test -n "$ac_tool_prefix"; then
4158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if test "${ac_cv_prog_CC+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4165 if test -n "$CC"; then
4166 ac_cv_prog_CC="$CC" # Let the user override the test.
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 if test -n "$CC"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4188 $as_echo "$CC" >&6; }
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4196 if test -z "$ac_cv_prog_CC"; then
4198 # Extract the first word of "gcc", so it can be a program name with args.
4199 set dummy gcc; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4205 if test -n "$ac_ct_CC"; then
4206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_ac_ct_CC="gcc"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226 if test -n "$ac_ct_CC"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4228 $as_echo "$ac_ct_CC" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4234 if test "x$ac_ct_CC" = x; then
4237 case $cross_compiling:$ac_tool_warned in
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4241 ac_tool_warned=yes ;;
4249 if test -z "$CC"; then
4250 if test -n "$ac_tool_prefix"; then
4251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}cc; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if test "${ac_cv_prog_CC+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4258 if test -n "$CC"; then
4259 ac_cv_prog_CC="$CC" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_CC="${ac_tool_prefix}cc"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 if test -n "$CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281 $as_echo "$CC" >&6; }
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4290 if test -z "$CC"; then
4291 # Extract the first word of "cc", so it can be a program name with args.
4292 set dummy cc; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_CC+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$CC"; then
4299 ac_cv_prog_CC="$CC" # Let the user override the test.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4310 ac_prog_rejected=yes
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 if test $ac_prog_rejected = yes; then
4322 # We found a bogon in the path, so make sure we never use it.
4323 set dummy $ac_cv_prog_CC
4325 if test $# != 0; then
4326 # We chose a different compiler from the bogus one.
4327 # However, it has the same basename, so the bogon will be chosen
4328 # first if we set CC to just the basename; use the full file name.
4330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4336 if test -n "$CC"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4338 $as_echo "$CC" >&6; }
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4346 if test -z "$CC"; then
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog in cl.exe
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_CC+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$CC"; then
4358 ac_cv_prog_CC="$CC" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 if test -n "$CC"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4380 $as_echo "$CC" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$CC" && break
4390 if test -z "$CC"; then
4392 for ac_prog in cl.exe
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$ac_ct_CC"; then
4402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CC="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422 if test -n "$ac_ct_CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4424 $as_echo "$ac_ct_CC" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$ac_ct_CC" && break
4434 if test "x$ac_ct_CC" = x; then
4437 case $cross_compiling:$ac_tool_warned in
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452 as_fn_error "no acceptable C compiler found in \$PATH
4453 See \`config.log' for more details." "$LINENO" 5; }
4455 # Provide some information about the compiler.
4456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4459 for ac_option in --version -v -V -qversion; do
4460 { { ac_try="$ac_compiler $ac_option >&5"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 $as_echo "$ac_try_echo"; } >&5
4467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4469 if test -s conftest.err; then
4471 ... rest of stderr output deleted ...
4472 10q' conftest.err >conftest.er1
4473 cat conftest.er1 >&5
4474 rm -f conftest.er1 conftest.err
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4482 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4499 if ac_fn_c_try_compile "$LINENO"; then :
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4509 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4510 if test $ac_compiler_gnu = yes; then
4515 ac_test_CFLAGS=${CFLAGS+set}
4516 ac_save_CFLAGS=$CFLAGS
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4518 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4519 if test "${ac_cv_prog_cc_g+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 ac_save_c_werror_flag=$ac_c_werror_flag
4523 ac_c_werror_flag=yes
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4537 if ac_fn_c_try_compile "$LINENO"; then :
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4552 if ac_fn_c_try_compile "$LINENO"; then :
4555 ac_c_werror_flag=$ac_save_c_werror_flag
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"; then :
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_c_werror_flag=$ac_save_c_werror_flag
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4579 $as_echo "$ac_cv_prog_cc_g" >&6; }
4580 if test "$ac_test_CFLAGS" = set; then
4581 CFLAGS=$ac_save_CFLAGS
4582 elif test $ac_cv_prog_cc_g = yes; then
4583 if test "$GCC" = yes; then
4589 if test "$GCC" = yes; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4596 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4597 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 ac_cv_prog_cc_c89=no
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4606 #include <sys/types.h>
4607 #include <sys/stat.h>
4608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4609 struct buf { int x; };
4610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4611 static char *e (p, i)
4617 static char *f (char * (*g) (char **, int), char **p, ...)
4622 s = g (p, va_arg (v,int));
4627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4628 function prototypes and stuff, but not '\xHH' hex character constants.
4629 These don't provoke an error unfortunately, instead are silently treated
4630 as 'x'. The following induces an error, until -std is added to get
4631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4632 array size at least. It's necessary to write '\x00'==0 to get something
4633 that's true only with -std. */
4634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4637 inside strings and character constants. */
4639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4641 int test (int i, double x);
4642 struct s1 {int (*f) (int a);};
4643 struct s2 {int (*f) (double a);};
4644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4658 CC="$ac_save_CC $ac_arg"
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_cv_prog_cc_c89=$ac_arg
4662 rm -f core conftest.err conftest.$ac_objext
4663 test "x$ac_cv_prog_cc_c89" != "xno" && break
4665 rm -f conftest.$ac_ext
4670 case "x$ac_cv_prog_cc_c89" in
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4673 $as_echo "none needed" >&6; } ;;
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4676 $as_echo "unsupported" >&6; } ;;
4678 CC="$CC $ac_cv_prog_cc_c89"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4680 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4682 if test "x$ac_cv_prog_cc_c89" != xno; then :
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4698 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4699 # On Suns, sometimes $CPP names a directory.
4700 if test -n "$CPP" && test -d "$CPP"; then
4703 if test -z "$CPP"; then
4704 if test "${ac_cv_prog_CPP+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4707 # Double quotes because CPP needs to be expanded
4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4711 for ac_c_preproc_warn_flag in '' yes
4713 # Use a header file that comes with gcc, so configuring glibc
4714 # with a fresh cross-compiler works.
4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716 # <limits.h> exists even on freestanding compilers.
4717 # On the NeXT, cc -E runs the code through the compiler's parser,
4718 # not just through cpp. "Syntax error" is here to catch this case.
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4722 # include <limits.h>
4724 # include <assert.h>
4728 if ac_fn_c_try_cpp "$LINENO"; then :
4731 # Broken: fails on valid input.
4734 rm -f conftest.err conftest.$ac_ext
4736 # OK, works on sane cases. Now check whether nonexistent headers
4737 # can be detected and how.
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 #include <ac_nonexistent.h>
4742 if ac_fn_c_try_cpp "$LINENO"; then :
4743 # Broken: success on invalid input.
4746 # Passes both tests.
4750 rm -f conftest.err conftest.$ac_ext
4753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754 rm -f conftest.err conftest.$ac_ext
4755 if $ac_preproc_ok; then :
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4768 $as_echo "$CPP" >&6; }
4770 for ac_c_preproc_warn_flag in '' yes
4772 # Use a header file that comes with gcc, so configuring glibc
4773 # with a fresh cross-compiler works.
4774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775 # <limits.h> exists even on freestanding compilers.
4776 # On the NeXT, cc -E runs the code through the compiler's parser,
4777 # not just through cpp. "Syntax error" is here to catch this case.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4781 # include <limits.h>
4783 # include <assert.h>
4787 if ac_fn_c_try_cpp "$LINENO"; then :
4790 # Broken: fails on valid input.
4793 rm -f conftest.err conftest.$ac_ext
4795 # OK, works on sane cases. Now check whether nonexistent headers
4796 # can be detected and how.
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 #include <ac_nonexistent.h>
4801 if ac_fn_c_try_cpp "$LINENO"; then :
4802 # Broken: success on invalid input.
4805 # Passes both tests.
4809 rm -f conftest.err conftest.$ac_ext
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then :
4817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4819 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4820 See \`config.log' for more details." "$LINENO" 5; }
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4831 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4832 if test "${ac_cv_path_GREP+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4835 if test -z "$GREP"; then
4836 ac_path_GREP_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4842 test -z "$as_dir" && as_dir=.
4843 for ac_prog in grep ggrep; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4846 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4847 # Check for GNU ac_path_GREP and select it if it is found.
4848 # Check for GNU $ac_path_GREP
4849 case `"$ac_path_GREP" --version 2>&1` in
4851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4854 $as_echo_n 0123456789 >"conftest.in"
4857 cat "conftest.in" "conftest.in" >"conftest.tmp"
4858 mv "conftest.tmp" "conftest.in"
4859 cp "conftest.in" "conftest.nl"
4860 $as_echo 'GREP' >> "conftest.nl"
4861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863 as_fn_arith $ac_count + 1 && ac_count=$as_val
4864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4865 # Best one so far, save it but keep looking for a better one
4866 ac_cv_path_GREP="$ac_path_GREP"
4867 ac_path_GREP_max=$ac_count
4869 # 10*(2^10) chars as input seems more than enough
4870 test $ac_count -gt 10 && break
4872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4875 $ac_path_GREP_found && break 3
4880 if test -z "$ac_cv_path_GREP"; then
4881 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4884 ac_cv_path_GREP=$GREP
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4889 $as_echo "$ac_cv_path_GREP" >&6; }
4890 GREP="$ac_cv_path_GREP"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4894 $as_echo_n "checking for egrep... " >&6; }
4895 if test "${ac_cv_path_EGREP+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4899 then ac_cv_path_EGREP="$GREP -E"
4901 if test -z "$EGREP"; then
4902 ac_path_EGREP_found=false
4903 # Loop through the user's path and test for each of PROGNAME-LIST
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908 test -z "$as_dir" && as_dir=.
4909 for ac_prog in egrep; do
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4912 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4913 # Check for GNU ac_path_EGREP and select it if it is found.
4914 # Check for GNU $ac_path_EGREP
4915 case `"$ac_path_EGREP" --version 2>&1` in
4917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4920 $as_echo_n 0123456789 >"conftest.in"
4923 cat "conftest.in" "conftest.in" >"conftest.tmp"
4924 mv "conftest.tmp" "conftest.in"
4925 cp "conftest.in" "conftest.nl"
4926 $as_echo 'EGREP' >> "conftest.nl"
4927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4929 as_fn_arith $ac_count + 1 && ac_count=$as_val
4930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4931 # Best one so far, save it but keep looking for a better one
4932 ac_cv_path_EGREP="$ac_path_EGREP"
4933 ac_path_EGREP_max=$ac_count
4935 # 10*(2^10) chars as input seems more than enough
4936 test $ac_count -gt 10 && break
4938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4941 $ac_path_EGREP_found && break 3
4946 if test -z "$ac_cv_path_EGREP"; then
4947 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950 ac_cv_path_EGREP=$EGREP
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4956 $as_echo "$ac_cv_path_EGREP" >&6; }
4957 EGREP="$ac_cv_path_EGREP"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4961 $as_echo_n "checking for ANSI C header files... " >&6; }
4962 if test "${ac_cv_header_stdc+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 ac_cv_header_stdc=yes
4983 ac_cv_header_stdc=no
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 if test $ac_cv_header_stdc = yes; then
4988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4995 $EGREP "memchr" >/dev/null 2>&1; then :
4998 ac_cv_header_stdc=no
5004 if test $ac_cv_header_stdc = yes; then
5005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "free" >/dev/null 2>&1; then :
5015 ac_cv_header_stdc=no
5021 if test $ac_cv_header_stdc = yes; then
5022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5023 if test "$cross_compiling" = yes; then :
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5030 #if ((' ' & 0x0FF) == 0x020)
5031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5034 # define ISLOWER(c) \
5035 (('a' <= (c) && (c) <= 'i') \
5036 || ('j' <= (c) && (c) <= 'r') \
5037 || ('s' <= (c) && (c) <= 'z'))
5038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5046 for (i = 0; i < 256; i++)
5047 if (XOR (islower (i), ISLOWER (i))
5048 || toupper (i) != TOUPPER (i))
5053 if ac_fn_c_try_run "$LINENO"; then :
5056 ac_cv_header_stdc=no
5058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5059 conftest.$ac_objext conftest.beam conftest.$ac_ext
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5065 $as_echo "$ac_cv_header_stdc" >&6; }
5066 if test $ac_cv_header_stdc = yes; then
5068 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5072 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5073 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5074 inttypes.h stdint.h unistd.h
5076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5079 eval as_val=\$$as_ac_Header
5080 if test "x$as_val" = x""yes; then :
5081 cat >>confdefs.h <<_ACEOF
5082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5091 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5099 if test "$MINIX" = yes; then
5101 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5104 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5107 $as_echo "#define _MINIX 1" >>confdefs.h
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5113 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5114 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5120 # define __EXTENSIONS__ 1
5121 $ac_includes_default
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 ac_cv_safe_to_define___extensions__=yes
5133 ac_cv_safe_to_define___extensions__=no
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5138 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5139 test $ac_cv_safe_to_define___extensions__ = yes &&
5140 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5142 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5144 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5146 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5148 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5157 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5162 macro_version='2.2.7a'
5163 macro_revision='1.3134'
5177 ltmain="$ac_aux_dir/ltmain.sh"
5179 # Backslashify metacharacters that are still active within
5180 # double-quoted strings.
5181 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5183 # Same as above, but do not quote variable references.
5184 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5186 # Sed substitution to delay expansion of an escaped shell variable in a
5187 # double_quote_subst'ed string.
5188 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5190 # Sed substitution to delay expansion of an escaped single quote.
5191 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5193 # Sed substitution to avoid accidental globbing in evaled expressions
5194 no_glob_subst='s/\*/\\\*/g'
5196 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5198 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5201 $as_echo_n "checking how to print strings... " >&6; }
5202 # Test print first, because it will be a builtin if present.
5203 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5204 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5206 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5209 # Use this function as a fallback that always works.
5210 func_fallback_echo ()
5212 eval 'cat <<_LTECHO_EOF
5216 ECHO='func_fallback_echo'
5219 # func_echo_all arg...
5220 # Invoke $ECHO with all args, space-separated.
5227 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5228 $as_echo "printf" >&6; } ;;
5229 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5230 $as_echo "print -r" >&6; } ;;
5231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5232 $as_echo "cat" >&6; } ;;
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5249 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5250 if test "${ac_cv_path_SED+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5254 for ac_i in 1 2 3 4 5 6 7; do
5255 ac_script="$ac_script$as_nl$ac_script"
5257 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5258 { ac_script=; unset ac_script;}
5259 if test -z "$SED"; then
5260 ac_path_SED_found=false
5261 # Loop through the user's path and test for each of PROGNAME-LIST
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_prog in sed gsed; do
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5270 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5271 # Check for GNU ac_path_SED and select it if it is found.
5272 # Check for GNU $ac_path_SED
5273 case `"$ac_path_SED" --version 2>&1` in
5275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5278 $as_echo_n 0123456789 >"conftest.in"
5281 cat "conftest.in" "conftest.in" >"conftest.tmp"
5282 mv "conftest.tmp" "conftest.in"
5283 cp "conftest.in" "conftest.nl"
5284 $as_echo '' >> "conftest.nl"
5285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287 as_fn_arith $ac_count + 1 && ac_count=$as_val
5288 if test $ac_count -gt ${ac_path_SED_max-0}; then
5289 # Best one so far, save it but keep looking for a better one
5290 ac_cv_path_SED="$ac_path_SED"
5291 ac_path_SED_max=$ac_count
5293 # 10*(2^10) chars as input seems more than enough
5294 test $ac_count -gt 10 && break
5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299 $ac_path_SED_found && break 3
5304 if test -z "$ac_cv_path_SED"; then
5305 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5313 $as_echo "$ac_cv_path_SED" >&6; }
5314 SED="$ac_cv_path_SED"
5317 test -z "$SED" && SED=sed
5318 Xsed="$SED -e 1s/^X//"
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331 $as_echo_n "checking for fgrep... " >&6; }
5332 if test "${ac_cv_path_FGREP+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5335 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5336 then ac_cv_path_FGREP="$GREP -F"
5338 if test -z "$FGREP"; then
5339 ac_path_FGREP_found=false
5340 # Loop through the user's path and test for each of PROGNAME-LIST
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5345 test -z "$as_dir" && as_dir=.
5346 for ac_prog in fgrep; do
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5349 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5350 # Check for GNU ac_path_FGREP and select it if it is found.
5351 # Check for GNU $ac_path_FGREP
5352 case `"$ac_path_FGREP" --version 2>&1` in
5354 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5357 $as_echo_n 0123456789 >"conftest.in"
5360 cat "conftest.in" "conftest.in" >"conftest.tmp"
5361 mv "conftest.tmp" "conftest.in"
5362 cp "conftest.in" "conftest.nl"
5363 $as_echo 'FGREP' >> "conftest.nl"
5364 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366 as_fn_arith $ac_count + 1 && ac_count=$as_val
5367 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5368 # Best one so far, save it but keep looking for a better one
5369 ac_cv_path_FGREP="$ac_path_FGREP"
5370 ac_path_FGREP_max=$ac_count
5372 # 10*(2^10) chars as input seems more than enough
5373 test $ac_count -gt 10 && break
5375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5378 $ac_path_FGREP_found && break 3
5383 if test -z "$ac_cv_path_FGREP"; then
5384 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5387 ac_cv_path_FGREP=$FGREP
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5393 $as_echo "$ac_cv_path_FGREP" >&6; }
5394 FGREP="$ac_cv_path_FGREP"
5397 test -z "$GREP" && GREP=grep
5417 # Check whether --with-gnu-ld was given.
5418 if test "${with_gnu_ld+set}" = set; then :
5419 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5425 if test "$GCC" = yes; then
5426 # Check if gcc -print-prog-name=ld gives a path.
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5428 $as_echo_n "checking for ld used by $CC... " >&6; }
5431 # gcc leaves a trailing carriage return which upsets mingw
5432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5437 # Accept absolute paths.
5439 re_direlt='/[^/][^/]*/\.\./'
5440 # Canonicalize the pathname of ld
5441 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5442 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5443 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5445 test -z "$LD" && LD="$ac_prog"
5448 # If it fails, then pretend we aren't using GCC.
5452 # If it is relative, then search for the first ld in PATH.
5456 elif test "$with_gnu_ld" = yes; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5458 $as_echo_n "checking for GNU ld... " >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5461 $as_echo_n "checking for non-GNU ld... " >&6; }
5463 if test "${lt_cv_path_LD+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5466 if test -z "$LD"; then
5467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5468 for ac_dir in $PATH; do
5470 test -z "$ac_dir" && ac_dir=.
5471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5472 lt_cv_path_LD="$ac_dir/$ac_prog"
5473 # Check to see if the program is GNU ld. I'd rather use --version,
5474 # but apparently some variants of GNU ld only accept -v.
5475 # Break only if it was the GNU/non-GNU ld that we prefer.
5476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5477 *GNU* | *'with BFD'*)
5478 test "$with_gnu_ld" != no && break
5481 test "$with_gnu_ld" != yes && break
5488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5493 if test -n "$LD"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495 $as_echo "$LD" >&6; }
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5500 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5502 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5503 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5507 case `$LD -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 lt_cv_prog_gnu_ld=yes
5512 lt_cv_prog_gnu_ld=no
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5518 with_gnu_ld=$lt_cv_prog_gnu_ld
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5529 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5530 if test "${lt_cv_path_NM+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5533 if test -n "$NM"; then
5534 # Let the user override the test.
5537 lt_nm_to_check="${ac_tool_prefix}nm"
5538 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5539 lt_nm_to_check="$lt_nm_to_check nm"
5541 for lt_tmp_nm in $lt_nm_to_check; do
5542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5543 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5545 test -z "$ac_dir" && ac_dir=.
5546 tmp_nm="$ac_dir/$lt_tmp_nm"
5547 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5548 # Check to see if the nm accepts a BSD-compat flag.
5549 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5550 # nm: unknown option "B" ignored
5551 # Tru64's nm complains that /dev/null is an invalid object file
5552 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5553 */dev/null* | *'Invalid file or object type'*)
5554 lt_cv_path_NM="$tmp_nm -B"
5558 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5560 lt_cv_path_NM="$tmp_nm -p"
5564 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5565 continue # so that we can try to find one that supports BSD flags
5574 : ${lt_cv_path_NM=no}
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5578 $as_echo "$lt_cv_path_NM" >&6; }
5579 if test "$lt_cv_path_NM" != "no"; then
5582 # Didn't find any BSD compatible name lister, look for dumpbin.
5583 if test -n "$DUMPBIN"; then :
5584 # Let the user override the test.
5586 if test -n "$ac_tool_prefix"; then
5587 for ac_prog in dumpbin "link -dump"
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 if test -n "$DUMPBIN"; then
5597 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 DUMPBIN=$ac_cv_prog_DUMPBIN
5617 if test -n "$DUMPBIN"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5619 $as_echo "$DUMPBIN" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5626 test -n "$DUMPBIN" && break
5629 if test -z "$DUMPBIN"; then
5630 ac_ct_DUMPBIN=$DUMPBIN
5631 for ac_prog in dumpbin "link -dump"
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5640 if test -n "$ac_ct_DUMPBIN"; then
5641 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5661 if test -n "$ac_ct_DUMPBIN"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5663 $as_echo "$ac_ct_DUMPBIN" >&6; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5670 test -n "$ac_ct_DUMPBIN" && break
5673 if test "x$ac_ct_DUMPBIN" = x; then
5676 case $cross_compiling:$ac_tool_warned in
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5682 DUMPBIN=$ac_ct_DUMPBIN
5686 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5688 DUMPBIN="$DUMPBIN -symbols"
5696 if test "$DUMPBIN" != ":"; then
5700 test -z "$NM" && NM=nm
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5708 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5709 if test "${lt_cv_nm_interface+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5712 lt_cv_nm_interface="BSD nm"
5713 echo "int some_variable = 0;" > conftest.$ac_ext
5714 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5715 (eval "$ac_compile" 2>conftest.err)
5716 cat conftest.err >&5
5717 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5718 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5719 cat conftest.err >&5
5720 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5721 cat conftest.out >&5
5722 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5723 lt_cv_nm_interface="MS dumpbin"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5728 $as_echo "$lt_cv_nm_interface" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5731 $as_echo_n "checking whether ln -s works... " >&6; }
5733 if test "$LN_S" = "ln -s"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735 $as_echo "yes" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5738 $as_echo "no, using $LN_S" >&6; }
5741 # find the maximum length of command line arguments
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5743 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5744 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5752 # On DJGPP, this test can blow up pretty badly due to problems in libc
5753 # (any single argument exceeding 2000 bytes causes a buffer overrun
5754 # during glob expansion). Even if it were fixed, the result of this
5755 # check would be larger than it should be.
5756 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5760 # Under GNU Hurd, this test is not required because there is
5761 # no limit to the length of command line arguments.
5762 # Libtool will interpret -1 as no limit whatsoever
5763 lt_cv_sys_max_cmd_len=-1;
5766 cygwin* | mingw* | cegcc*)
5767 # On Win9x/ME, this test blows up -- it succeeds, but takes
5768 # about 5 minutes as the teststring grows exponentially.
5769 # Worse, since 9x/ME are not pre-emptively multitasking,
5770 # you end up with a "frozen" computer, even though with patience
5771 # the test eventually succeeds (with a max line length of 256k).
5772 # Instead, let's just punt: use the minimum linelength reported by
5773 # all of the supported platforms: 8192 (on NT/2K/XP).
5774 lt_cv_sys_max_cmd_len=8192;
5778 # On MiNT this can take a long time and run out of memory.
5779 lt_cv_sys_max_cmd_len=8192;
5783 # On AmigaOS with pdksh, this test takes hours, literally.
5784 # So we just punt and use a minimum line length of 8192.
5785 lt_cv_sys_max_cmd_len=8192;
5788 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5789 # This has been around since 386BSD, at least. Likely further.
5790 if test -x /sbin/sysctl; then
5791 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5792 elif test -x /usr/sbin/sysctl; then
5793 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5795 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5797 # And add a safety zone
5798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5803 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5804 lt_cv_sys_max_cmd_len=196608
5808 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5809 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5810 # nice to cause kernel panics so lets avoid the loop below.
5811 # First set a reasonable default.
5812 lt_cv_sys_max_cmd_len=16384
5814 if test -x /sbin/sysconfig; then
5815 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5816 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5821 lt_cv_sys_max_cmd_len=102400
5823 sysv5* | sco5v6* | sysv4.2uw2*)
5824 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5825 if test -n "$kargmax"; then
5826 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5828 lt_cv_sys_max_cmd_len=32768
5832 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5833 if test -n "$lt_cv_sys_max_cmd_len"; then
5834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5837 # Make teststring a little bigger before we do anything with it.
5838 # a 1K string should be a reasonable start.
5839 for i in 1 2 3 4 5 6 7 8 ; do
5840 teststring=$teststring$teststring
5842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5843 # If test is not a shell built-in, we'll probably end up computing a
5844 # maximum length that is only half of the actual maximum length, but
5846 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5847 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5848 test $i != 17 # 1/2 MB should be enough
5851 teststring=$teststring$teststring
5853 # Only check the string length outside the loop.
5854 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5856 # Add a significant safety factor because C++ compilers can tack on
5857 # massive amounts of additional arguments before passing them to the
5858 # linker. It appears as though 1/2 is a usable value.
5859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5866 if test -n $lt_cv_sys_max_cmd_len ; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5868 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5871 $as_echo "none" >&6; }
5873 max_cmd_len=$lt_cv_sys_max_cmd_len
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5885 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5886 # Try some XSI features
5889 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5891 && eval 'test $(( 1 + 1 )) -eq 2 \
5892 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5895 $as_echo "$xsi_shell" >&6; }
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5899 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5901 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5903 && lt_shell_append=yes
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5905 $as_echo "$lt_shell_append" >&6; }
5908 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5918 # test EBCDIC or ASCII
5919 case `echo X|tr X '\101'` in
5920 A) # ASCII based system
5921 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5922 lt_SP2NL='tr \040 \012'
5923 lt_NL2SP='tr \015\012 \040\040'
5925 *) # EBCDIC based system
5926 lt_SP2NL='tr \100 \n'
5927 lt_NL2SP='tr \r\n \100\100'
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5940 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5941 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5944 lt_cv_ld_reload_flag='-r'
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5947 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5948 reload_flag=$lt_cv_ld_reload_flag
5949 case $reload_flag in
5951 *) reload_flag=" $reload_flag" ;;
5953 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5956 if test "$GCC" = yes; then
5957 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5980 if test -n "$OBJDUMP"; then
5981 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 OBJDUMP=$ac_cv_prog_OBJDUMP
6001 if test -n "$OBJDUMP"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6003 $as_echo "$OBJDUMP" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6011 if test -z "$ac_cv_prog_OBJDUMP"; then
6012 ac_ct_OBJDUMP=$OBJDUMP
6013 # Extract the first word of "objdump", so it can be a program name with args.
6014 set dummy objdump; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6020 if test -n "$ac_ct_OBJDUMP"; then
6021 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6041 if test -n "$ac_ct_OBJDUMP"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6043 $as_echo "$ac_ct_OBJDUMP" >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6049 if test "x$ac_ct_OBJDUMP" = x; then
6052 case $cross_compiling:$ac_tool_warned in
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6058 OBJDUMP=$ac_ct_OBJDUMP
6061 OBJDUMP="$ac_cv_prog_OBJDUMP"
6064 test -z "$OBJDUMP" && OBJDUMP=objdump
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6075 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6076 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6079 lt_cv_file_magic_cmd='$MAGIC_CMD'
6080 lt_cv_file_magic_test_file=
6081 lt_cv_deplibs_check_method='unknown'
6082 # Need to set the preceding variable on all platforms that support
6083 # interlibrary dependencies.
6084 # 'none' -- dependencies not supported.
6085 # `unknown' -- same as none, but documents that we really don't know.
6086 # 'pass_all' -- all dependencies passed with no checks.
6087 # 'test_compile' -- check by making test program.
6088 # 'file_magic [[regex]]' -- check by looking for files in library path
6089 # which responds to the $file_magic_cmd with a given extended regex.
6090 # If you have `file' or equivalent on your system and you're not sure
6091 # whether `pass_all' will *always* work, you probably want this one.
6095 lt_cv_deplibs_check_method=pass_all
6099 lt_cv_deplibs_check_method=pass_all
6103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6104 lt_cv_file_magic_cmd='/usr/bin/file -L'
6105 lt_cv_file_magic_test_file=/shlib/libc.so
6109 # func_win32_libid is a shell function defined in ltmain.sh
6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111 lt_cv_file_magic_cmd='func_win32_libid'
6115 # Base MSYS/MinGW do not provide the 'file' command needed by
6116 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6117 # unless we find 'file', for example because we are cross-compiling.
6118 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6119 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6121 lt_cv_file_magic_cmd='func_win32_libid'
6123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6124 lt_cv_file_magic_cmd='$OBJDUMP -f'
6129 # use the weaker test based on 'objdump'. See mingw*.
6130 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6131 lt_cv_file_magic_cmd='$OBJDUMP -f'
6134 darwin* | rhapsody*)
6135 lt_cv_deplibs_check_method=pass_all
6138 freebsd* | dragonfly*)
6139 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6142 # Not sure whether the presence of OpenBSD here was a mistake.
6143 # Let's accept both of them until this is cleared up.
6144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6145 lt_cv_file_magic_cmd=/usr/bin/file
6146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6150 lt_cv_deplibs_check_method=pass_all
6155 lt_cv_deplibs_check_method=pass_all
6159 lt_cv_deplibs_check_method=pass_all
6162 hpux10.20* | hpux11*)
6163 lt_cv_file_magic_cmd=/usr/bin/file
6166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6167 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6170 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]'
6171 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6175 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6181 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6185 irix5* | irix6* | nonstopux*)
6187 *-32|*"-32 ") libmagic=32-bit;;
6188 *-n32|*"-n32 ") libmagic=N32;;
6189 *-64|*"-64 ") libmagic=64-bit;;
6190 *) libmagic=never-match;;
6192 lt_cv_deplibs_check_method=pass_all
6195 # This must be Linux ELF.
6196 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6197 lt_cv_deplibs_check_method=pass_all
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6210 lt_cv_file_magic_cmd=/usr/bin/file
6211 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6215 lt_cv_deplibs_check_method=pass_all
6219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6226 osf3* | osf4* | osf5*)
6227 lt_cv_deplibs_check_method=pass_all
6231 lt_cv_deplibs_check_method=pass_all
6235 lt_cv_deplibs_check_method=pass_all
6238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6239 lt_cv_deplibs_check_method=pass_all
6243 case $host_vendor in
6245 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]'
6246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6249 lt_cv_deplibs_check_method=pass_all
6252 lt_cv_file_magic_cmd='/bin/file'
6253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6256 lt_cv_file_magic_cmd='/bin/file'
6257 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6258 lt_cv_file_magic_test_file=/lib/libc.so
6261 lt_cv_deplibs_check_method=pass_all
6264 lt_cv_deplibs_check_method=pass_all
6270 lt_cv_deplibs_check_method=pass_all
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6276 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6277 file_magic_cmd=$lt_cv_file_magic_cmd
6278 deplibs_check_method=$lt_cv_deplibs_check_method
6279 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}ar; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if test "${ac_cv_prog_AR+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6300 if test -n "$AR"; then
6301 ac_cv_prog_AR="$AR" # Let the user override the test.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_AR="${ac_tool_prefix}ar"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 if test -n "$AR"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6323 $as_echo "$AR" >&6; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6331 if test -z "$ac_cv_prog_AR"; then
6333 # Extract the first word of "ar", so it can be a program name with args.
6334 set dummy ar; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6340 if test -n "$ac_ct_AR"; then
6341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_ac_ct_AR="ar"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6361 if test -n "$ac_ct_AR"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6363 $as_echo "$ac_ct_AR" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6369 if test "x$ac_ct_AR" = x; then
6372 case $cross_compiling:$ac_tool_warned in
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6384 test -z "$AR" && AR=ar
6385 test -z "$AR_FLAGS" && AR_FLAGS=cru
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}strip; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_STRIP+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$STRIP"; then
6406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 STRIP=$ac_cv_prog_STRIP
6426 if test -n "$STRIP"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6428 $as_echo "$STRIP" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6436 if test -z "$ac_cv_prog_STRIP"; then
6438 # Extract the first word of "strip", so it can be a program name with args.
6439 set dummy strip; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$ac_ct_STRIP"; then
6446 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_ac_ct_STRIP="strip"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6466 if test -n "$ac_ct_STRIP"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6468 $as_echo "$ac_ct_STRIP" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6474 if test "x$ac_ct_STRIP" = x; then
6477 case $cross_compiling:$ac_tool_warned in
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6486 STRIP="$ac_cv_prog_STRIP"
6489 test -z "$STRIP" && STRIP=:
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6504 if test -n "$RANLIB"; then
6505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 RANLIB=$ac_cv_prog_RANLIB
6525 if test -n "$RANLIB"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527 $as_echo "$RANLIB" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6535 if test -z "$ac_cv_prog_RANLIB"; then
6536 ac_ct_RANLIB=$RANLIB
6537 # Extract the first word of "ranlib", so it can be a program name with args.
6538 set dummy ranlib; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6544 if test -n "$ac_ct_RANLIB"; then
6545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_ac_ct_RANLIB="ranlib"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6565 if test -n "$ac_ct_RANLIB"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6567 $as_echo "$ac_ct_RANLIB" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6573 if test "x$ac_ct_RANLIB" = x; then
6576 case $cross_compiling:$ac_tool_warned in
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned=yes ;;
6582 RANLIB=$ac_ct_RANLIB
6585 RANLIB="$ac_cv_prog_RANLIB"
6588 test -z "$RANLIB" && RANLIB=:
6595 # Determine commands to create old-style static archives.
6596 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6597 old_postinstall_cmds='chmod 644 $oldlib'
6598 old_postuninstall_cmds=
6600 if test -n "$RANLIB"; then
6603 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6606 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6609 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6614 lock_old_archive_extraction=yes ;;
6616 lock_old_archive_extraction=no ;;
6657 # If no C compiler was specified, use CC.
6660 # If no C compiler flags were specified, use CFLAGS.
6661 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6663 # Allow CC to be a program name with arguments.
6667 # Check for command to grab the raw symbol name followed by C symbol from nm.
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6669 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6670 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6674 # These are sane defaults that work on at least a few old systems.
6675 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6677 # Character class describing NM global symbol codes.
6678 symcode='[BCDEGRST]'
6680 # Regexp to match symbols that can be accessed directly from C.
6681 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6683 # Define system-specific variables.
6688 cygwin* | mingw* | pw32* | cegcc*)
6689 symcode='[ABCDGISTW]'
6692 if test "$host_cpu" = ia64; then
6693 symcode='[ABCDEGRST]'
6697 symcode='[BCDEGRST]'
6700 symcode='[BCDEGQRST]'
6711 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6719 # If we're using GNU nm, then use its standard symbol codes.
6720 case `$NM -V 2>&1` in
6721 *GNU* | *'with BFD'*)
6722 symcode='[ABCDGIRSTW]' ;;
6725 # Transform an extracted symbol line into a proper C declaration.
6726 # Some systems (esp. on ia64) link data and code symbols differently,
6727 # so use this general approach.
6728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6730 # Transform an extracted symbol line into symbol name and symbol address
6731 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6732 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'"
6734 # Handle CRLF in mingw tool chain
6738 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6742 # Try without a prefix underscore, then with it.
6743 for ac_symprfx in "" "_"; do
6745 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746 symxfrm="\\1 $ac_symprfx\\2 \\2"
6748 # Write the raw and C identifiers.
6749 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750 # Fake it for dumpbin and say T for any non-static function
6751 # and D for any global variable.
6752 # Also find C++ and __fastcall symbols from MSVC++,
6753 # which start with @ or ?.
6754 lt_cv_sys_global_symbol_pipe="$AWK '"\
6755 " {last_section=section; section=\$ 3};"\
6756 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6757 " \$ 0!~/External *\|/{next};"\
6758 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6759 " {if(hide[section]) next};"\
6760 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6761 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6762 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6763 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6764 " ' prfx=^$ac_symprfx"
6766 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6769 # Check to see that the pipe works correctly.
6773 cat > conftest.$ac_ext <<_LT_EOF
6778 void nm_test_func(void);
6779 void nm_test_func(void){}
6783 int main(){nm_test_var='a';nm_test_func();return(0);}
6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787 (eval $ac_compile) 2>&5
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; }; then
6791 # Now try to grab the symbols.
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6794 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; } && test -s "$nlist"; then
6798 # Try sorting and uniquifying the output.
6799 if sort "$nlist" | uniq > "$nlist"T; then
6800 mv -f "$nlist"T "$nlist"
6805 # Make sure that we snagged all the symbols we need.
6806 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6807 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6808 cat <<_LT_EOF > conftest.$ac_ext
6814 # Now generate the symbol file.
6815 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6817 cat <<_LT_EOF >> conftest.$ac_ext
6819 /* The mapping between symbol names and symbols. */
6824 lt__PROGRAM__LTX_preloaded_symbols[] =
6826 { "@PROGRAM@", (void *) 0 },
6828 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6829 cat <<\_LT_EOF >> conftest.$ac_ext
6833 /* This works around a problem in FreeBSD linker */
6834 #ifdef FREEBSD_WORKAROUND
6835 static const void *lt_preloaded_setup() {
6836 return lt__PROGRAM__LTX_preloaded_symbols;
6844 # Now try linking the two files.
6845 mv conftest.$ac_objext conftstm.$ac_objext
6846 lt_save_LIBS="$LIBS"
6847 lt_save_CFLAGS="$CFLAGS"
6848 LIBS="conftstm.$ac_objext"
6849 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6851 (eval $ac_link) 2>&5
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6857 LIBS="$lt_save_LIBS"
6858 CFLAGS="$lt_save_CFLAGS"
6860 echo "cannot find nm_test_func in $nlist" >&5
6863 echo "cannot find nm_test_var in $nlist" >&5
6866 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6869 echo "$progname: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 rm -rf conftest* conftst*
6874 # Do not use the global_symbol_pipe unless it works.
6875 if test "$pipe_works" = yes; then
6878 lt_cv_sys_global_symbol_pipe=
6884 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6885 lt_cv_sys_global_symbol_to_cdecl=
6887 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6889 $as_echo "failed" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6892 $as_echo "ok" >&6; }
6916 # Check whether --enable-libtool-lock was given.
6917 if test "${enable_libtool_lock+set}" = set; then :
6918 enableval=$enable_libtool_lock;
6921 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6923 # Some flags need to be propagated to the compiler or linker for good
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 case `/usr/bin/file conftest.$ac_objext` in
6946 # Find out which ABI we are using.
6947 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949 (eval $ac_compile) 2>&5
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }; then
6953 if test "$lt_cv_prog_gnu_ld" = yes; then
6954 case `/usr/bin/file conftest.$ac_objext` in
6956 LD="${LD-ld} -melf32bsmip"
6959 LD="${LD-ld} -melf32bmipn32"
6962 LD="${LD-ld} -melf64bmip"
6966 case `/usr/bin/file conftest.$ac_objext` in
6982 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6983 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6984 # Find out which ABI we are using.
6985 echo 'int i;' > conftest.$ac_ext
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987 (eval $ac_compile) 2>&5
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; then
6991 case `/usr/bin/file conftest.o` in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_i386_fbsd"
6998 case `/usr/bin/file conftest.o` in
7000 LD="${LD-ld} -m elf32_x86_64"
7003 LD="${LD-ld} -m elf_i386"
7007 powerpc64le-*linux*)
7008 LD="${LD-ld} -m elf32lppclinux"
7011 LD="${LD-ld} -m elf32ppclinux"
7014 LD="${LD-ld} -m elf_s390"
7017 LD="${LD-ld} -m elf32_sparc"
7023 x86_64-*kfreebsd*-gnu)
7024 LD="${LD-ld} -m elf_x86_64_fbsd"
7027 LD="${LD-ld} -m elf_x86_64"
7030 LD="${LD-ld} -m elf64lppc"
7033 LD="${LD-ld} -m elf64ppc"
7035 s390*-*linux*|s390*-*tpf*)
7036 LD="${LD-ld} -m elf64_s390"
7039 LD="${LD-ld} -m elf64_sparc"
7049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7050 SAVE_CFLAGS="$CFLAGS"
7051 CFLAGS="$CFLAGS -belf"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7053 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7054 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7074 if ac_fn_c_try_link "$LINENO"; then :
7075 lt_cv_cc_needs_belf=yes
7077 lt_cv_cc_needs_belf=no
7079 rm -f core conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7082 ac_cpp='$CPP $CPPFLAGS'
7083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7089 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7090 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7092 CFLAGS="$SAVE_CFLAGS"
7096 # Find out which ABI we are using.
7097 echo 'int i;' > conftest.$ac_ext
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099 (eval $ac_compile) 2>&5
7101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 case `/usr/bin/file conftest.o` in
7105 case $lt_cv_prog_gnu_ld in
7106 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7108 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7120 need_locks="$enable_libtool_lock"
7124 rhapsody* | darwin*)
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$DSYMUTIL"; then
7134 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7154 if test -n "$DSYMUTIL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7156 $as_echo "$DSYMUTIL" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7164 if test -z "$ac_cv_prog_DSYMUTIL"; then
7165 ac_ct_DSYMUTIL=$DSYMUTIL
7166 # Extract the first word of "dsymutil", so it can be a program name with args.
7167 set dummy dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7194 if test -n "$ac_ct_DSYMUTIL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7202 if test "x$ac_ct_DSYMUTIL" = x; then
7205 case $cross_compiling:$ac_tool_warned in
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7211 DSYMUTIL=$ac_ct_DSYMUTIL
7214 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7225 if test -n "$NMEDIT"; then
7226 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 NMEDIT=$ac_cv_prog_NMEDIT
7246 if test -n "$NMEDIT"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7248 $as_echo "$NMEDIT" >&6; }
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7256 if test -z "$ac_cv_prog_NMEDIT"; then
7257 ac_ct_NMEDIT=$NMEDIT
7258 # Extract the first word of "nmedit", so it can be a program name with args.
7259 set dummy nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -n "$ac_ct_NMEDIT"; then
7266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7286 if test -n "$ac_ct_NMEDIT"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7288 $as_echo "$ac_ct_NMEDIT" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7294 if test "x$ac_ct_NMEDIT" = x; then
7297 case $cross_compiling:$ac_tool_warned in
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7303 NMEDIT=$ac_ct_NMEDIT
7306 NMEDIT="$ac_cv_prog_NMEDIT"
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if test "${ac_cv_prog_LIPO+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7317 if test -n "$LIPO"; then
7318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 LIPO=$ac_cv_prog_LIPO
7338 if test -n "$LIPO"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7340 $as_echo "$LIPO" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7348 if test -z "$ac_cv_prog_LIPO"; then
7350 # Extract the first word of "lipo", so it can be a program name with args.
7351 set dummy lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$ac_ct_LIPO"; then
7358 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_ac_ct_LIPO="lipo"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7378 if test -n "$ac_ct_LIPO"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7380 $as_echo "$ac_ct_LIPO" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7386 if test "x$ac_ct_LIPO" = x; then
7389 case $cross_compiling:$ac_tool_warned in
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7398 LIPO="$ac_cv_prog_LIPO"
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7409 if test -n "$OTOOL"; then
7410 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 OTOOL=$ac_cv_prog_OTOOL
7430 if test -n "$OTOOL"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7432 $as_echo "$OTOOL" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7440 if test -z "$ac_cv_prog_OTOOL"; then
7442 # Extract the first word of "otool", so it can be a program name with args.
7443 set dummy otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$ac_ct_OTOOL"; then
7450 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_OTOOL="otool"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7470 if test -n "$ac_ct_OTOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7472 $as_echo "$ac_ct_OTOOL" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7478 if test "x$ac_ct_OTOOL" = x; then
7481 case $cross_compiling:$ac_tool_warned in
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7490 OTOOL="$ac_cv_prog_OTOOL"
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$OTOOL64"; then
7502 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 OTOOL64=$ac_cv_prog_OTOOL64
7522 if test -n "$OTOOL64"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7524 $as_echo "$OTOOL64" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7532 if test -z "$ac_cv_prog_OTOOL64"; then
7533 ac_ct_OTOOL64=$OTOOL64
7534 # Extract the first word of "otool64", so it can be a program name with args.
7535 set dummy otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$ac_ct_OTOOL64"; then
7542 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_ac_ct_OTOOL64="otool64"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7562 if test -n "$ac_ct_OTOOL64"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7564 $as_echo "$ac_ct_OTOOL64" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7570 if test "x$ac_ct_OTOOL64" = x; then
7573 case $cross_compiling:$ac_tool_warned in
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7579 OTOOL64=$ac_ct_OTOOL64
7582 OTOOL64="$ac_cv_prog_OTOOL64"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7612 $as_echo_n "checking for -single_module linker flag... " >&6; }
7613 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7616 lt_cv_apple_cc_single_mod=no
7617 if test -z "${LT_MULTI_MODULE}"; then
7618 # By default we will add the -single_module flag. You can override
7619 # by either setting the environment variable LT_MULTI_MODULE
7620 # non-empty at configure time, or by adding -multi_module to the
7622 rm -rf libconftest.dylib*
7623 echo "int foo(void){return 1;}" > conftest.c
7624 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7625 -dynamiclib -Wl,-single_module conftest.c" >&5
7626 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7629 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7630 lt_cv_apple_cc_single_mod=yes
7632 cat conftest.err >&5
7634 rm -rf libconftest.dylib*
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7639 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7641 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7642 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7645 lt_cv_ld_exported_symbols_list=no
7646 save_LDFLAGS=$LDFLAGS
7647 echo "_main" > conftest.sym
7648 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7660 if ac_fn_c_try_link "$LINENO"; then :
7661 lt_cv_ld_exported_symbols_list=yes
7663 lt_cv_ld_exported_symbols_list=no
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667 LDFLAGS="$save_LDFLAGS"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7671 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7673 $as_echo_n "checking for -force_load linker flag... " >&6; }
7674 if test "${lt_cv_ld_force_load+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7677 lt_cv_ld_force_load=no
7678 cat > conftest.c << _LT_EOF
7679 int forced_loaded() { return 2;}
7681 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7682 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7683 echo "$AR cru libconftest.a conftest.o" >&5
7684 $AR cru libconftest.a conftest.o 2>&5
7685 cat > conftest.c << _LT_EOF
7686 int main() { return 0;}
7688 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7689 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7691 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7692 lt_cv_ld_force_load=yes
7694 cat conftest.err >&5
7696 rm -f conftest.err libconftest.a conftest conftest.c
7697 rm -rf conftest.dSYM
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7701 $as_echo "$lt_cv_ld_force_load" >&6; }
7703 rhapsody* | darwin1.[012])
7704 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7706 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7707 darwin*) # darwin 5.x on
7708 # if running on 10.5 or later, the deployment target defaults
7709 # to the OS version, if on x86, and 10.4, the deployment
7710 # target defaults to 10.4. Don't you love it?
7711 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7712 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7713 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7715 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7717 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7721 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7722 _lt_dar_single_mod='$single_module'
7724 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7725 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7727 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7729 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7730 _lt_dsymutil='~$DSYMUTIL $lib || :'
7737 for ac_header in dlfcn.h
7739 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7741 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7742 cat >>confdefs.h <<_ACEOF
7743 #define HAVE_DLFCN_H 1
7764 # Check whether --enable-shared was given.
7765 if test "${enable_shared+set}" = set; then :
7766 enableval=$enable_shared; p=${PACKAGE-default}
7768 yes) enable_shared=yes ;;
7769 no) enable_shared=no ;;
7772 # Look at the argument we got. We use all the common list separators.
7773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7774 for pkg in $enableval; do
7776 if test "X$pkg" = "X$p"; then
7795 # Check whether --enable-static was given.
7796 if test "${enable_static+set}" = set; then :
7797 enableval=$enable_static; p=${PACKAGE-default}
7799 yes) enable_static=yes ;;
7800 no) enable_static=no ;;
7803 # Look at the argument we got. We use all the common list separators.
7804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7805 for pkg in $enableval; do
7807 if test "X$pkg" = "X$p"; then
7827 # Check whether --with-pic was given.
7828 if test "${with_pic+set}" = set; then :
7829 withval=$with_pic; pic_mode="$withval"
7835 test -z "$pic_mode" && pic_mode=default
7843 # Check whether --enable-fast-install was given.
7844 if test "${enable_fast_install+set}" = set; then :
7845 enableval=$enable_fast_install; p=${PACKAGE-default}
7847 yes) enable_fast_install=yes ;;
7848 no) enable_fast_install=no ;;
7850 enable_fast_install=no
7851 # Look at the argument we got. We use all the common list separators.
7852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7853 for pkg in $enableval; do
7855 if test "X$pkg" = "X$p"; then
7856 enable_fast_install=yes
7863 enable_fast_install=yes
7876 # This can be used to rebuild libtool when needed
7877 LIBTOOL_DEPS="$ltmain"
7879 # Always use our own libtool.
7880 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7907 test -z "$LN_S" && LN_S="ln -s"
7922 if test -n "${ZSH_VERSION+set}" ; then
7923 setopt NO_GLOB_SUBST
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7927 $as_echo_n "checking for objdir... " >&6; }
7928 if test "${lt_cv_objdir+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7931 rm -f .libs 2>/dev/null
7932 mkdir .libs 2>/dev/null
7933 if test -d .libs; then
7936 # MS-DOS does not allow filenames that begin with a dot.
7939 rmdir .libs 2>/dev/null
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7942 $as_echo "$lt_cv_objdir" >&6; }
7943 objdir=$lt_cv_objdir
7949 cat >>confdefs.h <<_ACEOF
7950 #define LT_OBJDIR "$lt_cv_objdir/"
7958 # AIX sometimes has problems with the GCC collect2 program. For some
7959 # reason, if we set the COLLECT_NAMES environment variable, the problems
7960 # vanish in a puff of smoke.
7961 if test "X${COLLECT_NAMES+set}" != Xset; then
7963 export COLLECT_NAMES
7970 can_build_shared=yes
7972 # All known linkers require a `.a' archive for static linking (except MSVC,
7973 # which needs '.lib').
7976 with_gnu_ld="$lt_cv_prog_gnu_ld"
7979 old_CFLAGS="$CFLAGS"
7981 # Set sane defaults for various variables
7982 test -z "$CC" && CC=cc
7983 test -z "$LTCC" && LTCC=$CC
7984 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7985 test -z "$LD" && LD=ld
7986 test -z "$ac_objext" && ac_objext=o
7988 for cc_temp in $compiler""; do
7990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7996 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7999 # Only perform the check for file, if the check method requires it
8000 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8001 case $deplibs_check_method in
8003 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8005 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8014 lt_save_MAGIC_CMD="$MAGIC_CMD"
8015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8017 for ac_dir in $ac_dummy; do
8019 test -z "$ac_dir" && ac_dir=.
8020 if test -f $ac_dir/${ac_tool_prefix}file; then
8021 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8022 if test -n "$file_magic_test_file"; then
8023 case $deplibs_check_method in
8025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8028 $EGREP "$file_magic_regex" > /dev/null; then
8033 *** Warning: the command libtool uses to detect shared libraries,
8034 *** $file_magic_cmd, produces output that libtool cannot recognize.
8035 *** The result is that libtool may fail to recognize shared libraries
8036 *** as such. This will affect the creation of libtool libraries that
8037 *** depend on shared libraries, but programs linked with such libtool
8038 *** libraries will work regardless of this problem. Nevertheless, you
8039 *** may want to report the problem to your system manager and/or to
8040 *** bug-libtool@gnu.org
8050 MAGIC_CMD="$lt_save_MAGIC_CMD"
8055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056 if test -n "$MAGIC_CMD"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8058 $as_echo "$MAGIC_CMD" >&6; }
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8068 if test -z "$lt_cv_path_MAGIC_CMD"; then
8069 if test -n "$ac_tool_prefix"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8071 $as_echo_n "checking for file... " >&6; }
8072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8080 lt_save_MAGIC_CMD="$MAGIC_CMD"
8081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8083 for ac_dir in $ac_dummy; do
8085 test -z "$ac_dir" && ac_dir=.
8086 if test -f $ac_dir/file; then
8087 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8088 if test -n "$file_magic_test_file"; then
8089 case $deplibs_check_method in
8091 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8094 $EGREP "$file_magic_regex" > /dev/null; then
8099 *** Warning: the command libtool uses to detect shared libraries,
8100 *** $file_magic_cmd, produces output that libtool cannot recognize.
8101 *** The result is that libtool may fail to recognize shared libraries
8102 *** as such. This will affect the creation of libtool libraries that
8103 *** depend on shared libraries, but programs linked with such libtool
8104 *** libraries will work regardless of this problem. Nevertheless, you
8105 *** may want to report the problem to your system manager and/or to
8106 *** bug-libtool@gnu.org
8116 MAGIC_CMD="$lt_save_MAGIC_CMD"
8121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122 if test -n "$MAGIC_CMD"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8124 $as_echo "$MAGIC_CMD" >&6; }
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 $as_echo "no" >&6; }
8140 # Use C for the default configuration in the libtool script
8144 ac_cpp='$CPP $CPPFLAGS'
8145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8150 # Source file extension for C test sources.
8153 # Object file extension for compiled C test sources.
8157 # Code to be used in simple compile tests
8158 lt_simple_compile_test_code="int some_variable = 0;"
8160 # Code to be used in simple link tests
8161 lt_simple_link_test_code='int main(){return(0);}'
8169 # If no C compiler was specified, use CC.
8172 # If no C compiler flags were specified, use CFLAGS.
8173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8175 # Allow CC to be a program name with arguments.
8178 # Save the default compiler, since it gets overwritten when the other
8179 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8180 compiler_DEFAULT=$CC
8182 # save warnings/boilerplate of simple test code
8183 ac_outfile=conftest.$ac_objext
8184 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8186 _lt_compiler_boilerplate=`cat conftest.err`
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192 _lt_linker_boilerplate=`cat conftest.err`
8197 ## There is no encapsulation within the following macros, do not change
8198 ## the running order or otherwise move them around unless you know exactly
8199 ## what you are doing...
8200 if test -n "$compiler"; then
8202 lt_prog_compiler_no_builtin_flag=
8204 if test "$GCC" = yes; then
8205 case $cc_basename in
8207 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8209 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8213 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8217 lt_cv_prog_compiler_rtti_exceptions=no
8218 ac_outfile=conftest.$ac_objext
8219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8220 lt_compiler_flag="-fno-rtti -fno-exceptions"
8221 # Insert the option either (1) after the last *FLAGS variable, or
8222 # (2) before a word containing "conftest.", or (3) at the end.
8223 # Note that $ac_compile itself does not contain backslashes and begins
8224 # with a dollar sign (not a hyphen), so the echo should work correctly.
8225 # The option is referenced via a variable to avoid confusing sed.
8226 lt_compile=`echo "$ac_compile" | $SED \
8227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229 -e 's:$: $lt_compiler_flag:'`
8230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8231 (eval "$lt_compile" 2>conftest.err)
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 if (exit $ac_status) && test -s "$ac_outfile"; then
8236 # The compiler can only warn and ignore the option if not recognized
8237 # So say no if there are warnings other than the usual output.
8238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8241 lt_cv_prog_compiler_rtti_exceptions=yes
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8248 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8250 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8251 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8263 lt_prog_compiler_wl=
8264 lt_prog_compiler_pic=
8265 lt_prog_compiler_static=
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8268 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8270 if test "$GCC" = yes; then
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_static='-static'
8276 # All AIX code is PIC.
8277 if test "$host_cpu" = ia64; then
8278 # AIX 5 now supports IA64 processor
8279 lt_prog_compiler_static='-Bstatic'
8281 lt_prog_compiler_pic='-fPIC'
8287 # see comment about AmigaOS4 .so support
8288 lt_prog_compiler_pic='-fPIC'
8291 # FIXME: we need at least 68020 code to build shared libraries, but
8292 # adding the `-m68020' flag to GCC prevents building anything better,
8294 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8300 # PIC is the default for these OSes.
8303 mingw* | cygwin* | pw32* | os2* | cegcc*)
8304 # This hack is so that the source file can tell whether it is being
8305 # built for inclusion in a dll (and should export symbols for example).
8306 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8307 # (--disable-auto-import) libraries
8308 lt_prog_compiler_pic='-DDLL_EXPORT'
8311 darwin* | rhapsody*)
8312 # PIC is the default on this platform
8313 # Common symbols not allowed in MH_DYLIB files
8314 lt_prog_compiler_pic='-fno-common'
8318 # PIC is the default for Haiku.
8319 # The "-static" flag exists, but is broken.
8320 lt_prog_compiler_static=
8324 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8325 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8326 # sets the default TLS model and affects inlining.
8332 lt_prog_compiler_pic='-fPIC'
8338 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8339 # Instead, we relocate shared libraries at runtime.
8343 # Just because we use GCC doesn't mean we suddenly get shared libraries
8344 # on systems that don't support them.
8345 lt_prog_compiler_can_build_shared=no
8350 # QNX uses GNU C++, but need to define -shared option too, otherwise
8352 lt_prog_compiler_pic='-fPIC -shared'
8356 if test -d /usr/nec; then
8357 lt_prog_compiler_pic=-Kconform_pic
8362 lt_prog_compiler_pic='-fPIC'
8366 case $cc_basename in
8367 nvcc*) # Cuda Compiler Driver 2.2
8368 lt_prog_compiler_wl='-Xlinker '
8369 lt_prog_compiler_pic='-Xcompiler -fPIC'
8373 # PORTME Check for flag to pass linker flags through the system compiler.
8376 lt_prog_compiler_wl='-Wl,'
8377 if test "$host_cpu" = ia64; then
8378 # AIX 5 now supports IA64 processor
8379 lt_prog_compiler_static='-Bstatic'
8381 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8385 mingw* | cygwin* | pw32* | os2* | cegcc*)
8386 # This hack is so that the source file can tell whether it is being
8387 # built for inclusion in a dll (and should export symbols for example).
8388 lt_prog_compiler_pic='-DDLL_EXPORT'
8391 hpux9* | hpux10* | hpux11*)
8392 lt_prog_compiler_wl='-Wl,'
8393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8400 lt_prog_compiler_pic='+Z'
8403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8404 lt_prog_compiler_static='${wl}-a ${wl}archive'
8407 irix5* | irix6* | nonstopux*)
8408 lt_prog_compiler_wl='-Wl,'
8409 # PIC (with -KPIC) is the default.
8410 lt_prog_compiler_static='-non_shared'
8413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8414 case $cc_basename in
8415 # old Intel for x86_64 which still supported -KPIC.
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-static'
8421 # icc used to be incompatible with GCC.
8422 # ICC 10 doesn't accept -KPIC any more.
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_pic='-fPIC'
8426 lt_prog_compiler_static='-static'
8428 # Lahey Fortran 8.1.
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='--shared'
8432 lt_prog_compiler_static='--static'
8434 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8435 # Portland Group compilers (*not* the Pentium gcc compiler,
8436 # which looks to be a dead project)
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_pic='-fpic'
8439 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_wl='-Wl,'
8443 # All Alpha code is PIC.
8444 lt_prog_compiler_static='-non_shared'
8446 xl* | bgxl* | bgf* | mpixl*)
8447 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_pic='-qpic'
8450 lt_prog_compiler_static='-qstaticlink'
8453 case `$CC -V 2>&1 | sed 5q` in
8454 *Sun\ F* | *Sun*Fortran*)
8455 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8458 lt_prog_compiler_wl=''
8462 lt_prog_compiler_pic='-KPIC'
8463 lt_prog_compiler_static='-Bstatic'
8464 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-KPIC'
8473 lt_prog_compiler_static='-Bstatic'
8477 # QNX uses GNU C++, but need to define -shared option too, otherwise
8479 lt_prog_compiler_pic='-fPIC -shared'
8482 osf3* | osf4* | osf5*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # All OSF/1 code is PIC.
8485 lt_prog_compiler_static='-non_shared'
8489 lt_prog_compiler_static='-non_shared'
8493 lt_prog_compiler_pic='-KPIC'
8494 lt_prog_compiler_static='-Bstatic'
8495 case $cc_basename in
8497 lt_prog_compiler_wl='-Qoption ld ';;
8499 lt_prog_compiler_wl='-Wl,';;
8504 lt_prog_compiler_wl='-Qoption ld '
8505 lt_prog_compiler_pic='-PIC'
8506 lt_prog_compiler_static='-Bstatic'
8509 sysv4 | sysv4.2uw2* | sysv4.3*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-Bstatic'
8516 if test -d /usr/nec ;then
8517 lt_prog_compiler_pic='-Kconform_pic'
8518 lt_prog_compiler_static='-Bstatic'
8522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-KPIC'
8525 lt_prog_compiler_static='-Bstatic'
8529 lt_prog_compiler_wl='-Wl,'
8530 lt_prog_compiler_can_build_shared=no
8534 lt_prog_compiler_pic='-pic'
8535 lt_prog_compiler_static='-Bstatic'
8539 lt_prog_compiler_can_build_shared=no
8545 # For platforms which do not support PIC, -DPIC is meaningless:
8547 lt_prog_compiler_pic=
8550 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8554 $as_echo "$lt_prog_compiler_pic" >&6; }
8562 # Check to make sure the PIC flag actually works.
8564 if test -n "$lt_prog_compiler_pic"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8567 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8570 lt_cv_prog_compiler_pic_works=no
8571 ac_outfile=conftest.$ac_objext
8572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8574 # Insert the option either (1) after the last *FLAGS variable, or
8575 # (2) before a word containing "conftest.", or (3) at the end.
8576 # Note that $ac_compile itself does not contain backslashes and begins
8577 # with a dollar sign (not a hyphen), so the echo should work correctly.
8578 # The option is referenced via a variable to avoid confusing sed.
8579 lt_compile=`echo "$ac_compile" | $SED \
8580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582 -e 's:$: $lt_compiler_flag:'`
8583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8584 (eval "$lt_compile" 2>conftest.err)
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 if (exit $ac_status) && test -s "$ac_outfile"; then
8589 # The compiler can only warn and ignore the option if not recognized
8590 # So say no if there are warnings other than the usual output.
8591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8594 lt_cv_prog_compiler_pic_works=yes
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8601 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8603 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8604 case $lt_prog_compiler_pic in
8606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8609 lt_prog_compiler_pic=
8610 lt_prog_compiler_can_build_shared=no
8621 # Check to make sure the static flag actually works.
8623 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8625 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8626 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8629 lt_cv_prog_compiler_static_works=no
8630 save_LDFLAGS="$LDFLAGS"
8631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8634 # The linker can only warn and ignore the option if not recognized
8635 # So say no if there are warnings
8636 if test -s conftest.err; then
8637 # Append any errors to the config.log.
8638 cat conftest.err 1>&5
8639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8641 if diff conftest.exp conftest.er2 >/dev/null; then
8642 lt_cv_prog_compiler_static_works=yes
8645 lt_cv_prog_compiler_static_works=yes
8649 LDFLAGS="$save_LDFLAGS"
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8653 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8655 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8658 lt_prog_compiler_static=
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8669 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8670 $as_echo_n "(cached) " >&6
8672 lt_cv_prog_compiler_c_o=no
8673 $RM -r conftest 2>/dev/null
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8679 lt_compiler_flag="-o out/conftest2.$ac_objext"
8680 # Insert the option either (1) after the last *FLAGS variable, or
8681 # (2) before a word containing "conftest.", or (3) at the end.
8682 # Note that $ac_compile itself does not contain backslashes and begins
8683 # with a dollar sign (not a hyphen), so the echo should work correctly.
8684 lt_compile=`echo "$ac_compile" | $SED \
8685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687 -e 's:$: $lt_compiler_flag:'`
8688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689 (eval "$lt_compile" 2>out/conftest.err)
8691 cat out/conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8695 # The compiler can only warn and ignore the option if not recognized
8696 # So say no if there are warnings
8697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8700 lt_cv_prog_compiler_c_o=yes
8705 # SGI C++ compiler will create directory out/ii_files/ for
8706 # template instantiation
8707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8708 $RM out/* && rmdir out
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8715 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8724 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8727 lt_cv_prog_compiler_c_o=no
8728 $RM -r conftest 2>/dev/null
8732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734 lt_compiler_flag="-o out/conftest2.$ac_objext"
8735 # Insert the option either (1) after the last *FLAGS variable, or
8736 # (2) before a word containing "conftest.", or (3) at the end.
8737 # Note that $ac_compile itself does not contain backslashes and begins
8738 # with a dollar sign (not a hyphen), so the echo should work correctly.
8739 lt_compile=`echo "$ac_compile" | $SED \
8740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8742 -e 's:$: $lt_compiler_flag:'`
8743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8744 (eval "$lt_compile" 2>out/conftest.err)
8746 cat out/conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8750 # The compiler can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8755 lt_cv_prog_compiler_c_o=yes
8760 # SGI C++ compiler will create directory out/ii_files/ for
8761 # template instantiation
8762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8763 $RM out/* && rmdir out
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8770 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8775 hard_links="nottested"
8776 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8777 # do not overwrite the value of need_locks provided by the user
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8779 $as_echo_n "checking if we can lock with hard links... " >&6; }
8782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8784 ln conftest.a conftest.b 2>&5 || hard_links=no
8785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8787 $as_echo "$hard_links" >&6; }
8788 if test "$hard_links" = no; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8790 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8806 allow_undefined_flag=
8807 always_export_symbols=no
8809 archive_expsym_cmds=
8810 compiler_needs_object=no
8811 enable_shared_with_static_runtimes=no
8812 export_dynamic_flag_spec=
8813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8814 hardcode_automatic=no
8816 hardcode_direct_absolute=no
8817 hardcode_libdir_flag_spec=
8818 hardcode_libdir_flag_spec_ld=
8819 hardcode_libdir_separator=
8821 hardcode_shlibpath_var=unsupported
8823 link_all_deplibs=unknown
8826 old_archive_from_new_cmds=
8827 old_archive_from_expsyms_cmds=
8828 thread_safe_flag_spec=
8829 whole_archive_flag_spec=
8830 # include_expsyms should be a list of space-separated symbols to be *always*
8831 # included in the symbol list
8833 # exclude_expsyms can be an extended regexp of symbols to exclude
8834 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8835 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8836 # as well as any symbol that contains `d'.
8837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8839 # platforms (ab)use it in PIC code, but their linkers get confused if
8840 # the symbol is explicitly referenced. Since portable code cannot
8841 # rely on this symbol name, it's probably fine to never include it in
8842 # preloaded symbol tables.
8843 # Exclude shared library initialization/finalization symbols.
8844 extract_expsyms_cmds=
8847 cygwin* | mingw* | pw32* | cegcc*)
8848 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8849 # When not using gcc, we currently assume that we are using
8850 # Microsoft Visual C++.
8851 if test "$GCC" != yes; then
8856 # we just hope/assume this is gcc and not c89 (= MSVC++)
8866 # On some targets, GNU ld is compatible enough with the native linker
8867 # that we're better off using the native interface for both.
8868 lt_use_gnu_ld_interface=no
8869 if test "$with_gnu_ld" = yes; then
8872 # The AIX port of GNU ld has always aspired to compatibility
8873 # with the native linker. However, as the warning in the GNU ld
8874 # block says, versions before 2.19.5* couldn't really create working
8875 # shared libraries, regardless of the interface used.
8876 case `$LD -v 2>&1` in
8877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8879 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8881 lt_use_gnu_ld_interface=yes
8886 lt_use_gnu_ld_interface=yes
8891 if test "$lt_use_gnu_ld_interface" = yes; then
8892 # If archive_cmds runs LD, not CC, wlarc should be empty
8895 # Set some defaults for GNU ld with shared library support. These
8896 # are reset later if shared libraries are not supported. Putting them
8897 # here allows them to be overridden if necessary.
8898 runpath_var=LD_RUN_PATH
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 export_dynamic_flag_spec='${wl}--export-dynamic'
8901 # ancient GNU ld didn't support --whole-archive et. al.
8902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8905 whole_archive_flag_spec=
8907 supports_anon_versioning=no
8908 case `$LD -v 2>&1` in
8909 *GNU\ gold*) supports_anon_versioning=yes ;;
8910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8913 *\ 2.11.*) ;; # other 2.11 versions
8914 *) supports_anon_versioning=yes ;;
8917 # See if GNU ld supports shared libraries.
8920 # On AIX/PPC, the GNU linker is very broken
8921 if test "$host_cpu" != ia64; then
8925 *** Warning: the GNU linker, at least up to release 2.19, is reported
8926 *** to be unable to reliably create shared libraries on AIX.
8927 *** Therefore, libtool is disabling shared libraries support. If you
8928 *** really care for shared libraries, you may want to install binutils
8929 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8930 *** You will then need to restart the configuration process.
8939 # see comment about AmigaOS4 .so support
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 archive_expsym_cmds=''
8944 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)'
8945 hardcode_libdir_flag_spec='-L$libdir'
8946 hardcode_minus_L=yes
8952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8953 allow_undefined_flag=unsupported
8954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8955 # support --undefined. This deserves some investigation. FIXME
8956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8964 # as there is no search path for DLLs.
8965 hardcode_libdir_flag_spec='-L$libdir'
8966 export_dynamic_flag_spec='${wl}--export-all-symbols'
8967 allow_undefined_flag=unsupported
8968 always_export_symbols=no
8969 enable_shared_with_static_runtimes=yes
8970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8972 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8974 # If the export-symbols file already is a .def file (1st line
8975 # is EXPORTS), use it as is; otherwise, prepend...
8976 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8977 cp $export_symbols $output_objdir/$soname.def;
8979 echo EXPORTS > $output_objdir/$soname.def;
8980 cat $export_symbols >> $output_objdir/$soname.def;
8982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990 link_all_deplibs=yes
8995 hardcode_shlibpath_var=no
8996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8997 export_dynamic_flag_spec='${wl}-E'
8998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8999 # Instead, shared libraries are loaded at an image base (0x10000000 by
9000 # default) and relocated if they conflict, which is a slow very memory
9001 # consuming and fragmenting process. To avoid this, we pick a random,
9002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9005 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'
9008 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9010 if test "$host_os" = linux-dietlibc; then
9011 case $cc_basename in
9012 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9015 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9016 && test "$tmp_diet" = no
9018 tmp_addflag=' $pic_flag'
9019 tmp_sharedflag='-shared'
9020 case $cc_basename,$host_cpu in
9021 pgcc*) # Portland Group C compiler
9022 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'
9023 tmp_addflag=' $pic_flag'
9025 pgf77* | pgf90* | pgf95* | pgfortran*)
9026 # Portland Group f77 and f90 compilers
9027 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'
9028 tmp_addflag=' $pic_flag -Mnomain' ;;
9029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9030 tmp_addflag=' -i_dynamic' ;;
9031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9032 tmp_addflag=' -i_dynamic -nofor_main' ;;
9033 ifc* | ifort*) # Intel Fortran compiler
9034 tmp_addflag=' -nofor_main' ;;
9035 lf95*) # Lahey Fortran 8.1
9036 whole_archive_flag_spec=
9037 tmp_sharedflag='--shared' ;;
9038 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9039 tmp_sharedflag='-qmkshrobj'
9041 nvcc*) # Cuda Compiler Driver 2.2
9042 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'
9043 compiler_needs_object=yes
9046 case `$CC -V 2>&1 | sed 5q` in
9047 *Sun\ C*) # Sun C 5.9
9048 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'
9049 compiler_needs_object=yes
9050 tmp_sharedflag='-G' ;;
9051 *Sun\ F*) # Sun Fortran 8.3
9052 tmp_sharedflag='-G' ;;
9054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 if test "x$supports_anon_versioning" = xyes; then
9057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9059 echo "local: *; };" >> $output_objdir/$libname.ver~
9060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9063 case $cc_basename in
9064 xlf* | bgf* | bgxlf* | mpixlf*)
9065 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9066 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9067 hardcode_libdir_flag_spec=
9068 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9069 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9070 if test "x$supports_anon_versioning" = xyes; then
9071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9073 echo "local: *; };" >> $output_objdir/$libname.ver~
9074 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9094 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9099 *** create shared libraries on Solaris systems. Therefore, libtool
9100 *** is disabling shared libraries support. We urge you to upgrade GNU
9101 *** binutils to release 2.9.1 or newer. Another option is to modify
9102 *** your PATH or compiler configuration so that the native linker is
9103 *** used, and then restart.
9106 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9115 case `$LD -v 2>&1` in
9116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9120 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9121 *** reliably create shared libraries on SCO systems. Therefore, libtool
9122 *** is disabling shared libraries support. We urge you to upgrade GNU
9123 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9124 *** your PATH or compiler configuration so that the native linker is
9125 *** used, and then restart.
9130 # For security reasons, it is highly recommended that you always
9131 # use absolute paths for naming shared libraries, and exclude the
9132 # DT_RUNPATH tag from executables and libraries. But doing so
9133 # requires that you compile everything twice, which is a pain.
9134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9149 hardcode_shlibpath_var=no
9153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9162 if test "$ld_shlibs" = no; then
9164 hardcode_libdir_flag_spec=
9165 export_dynamic_flag_spec=
9166 whole_archive_flag_spec=
9169 # PORTME fill in a description of your system's linker (not GNU ld)
9172 allow_undefined_flag=unsupported
9173 always_export_symbols=yes
9174 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'
9175 # Note: this linker hardcodes the directories in LIBPATH if there
9176 # are no directories specified by -L.
9177 hardcode_minus_L=yes
9178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9179 # Neither direct hardcoding nor static linking is supported with a
9181 hardcode_direct=unsupported
9186 if test "$host_cpu" = ia64; then
9187 # On IA64, the linker does run time linking by default, so we don't
9188 # have to do anything special.
9189 aix_use_runtimelinking=no
9190 exp_sym_flag='-Bexport'
9193 # If we're using GNU nm, then we don't want the "-C" option.
9194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9195 # Also, AIX nm treats weak defined symbols like other global
9196 # defined symbols, whereas GNU nm marks them as "W".
9197 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9198 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'
9200 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'
9202 aix_use_runtimelinking=no
9204 # Test if we are trying to use run time linking or normal
9205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9206 # need to do runtime linking.
9207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9208 for ld_flag in $LDFLAGS; do
9209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9210 aix_use_runtimelinking=yes
9217 exp_sym_flag='-bexport'
9218 no_entry_flag='-bnoentry'
9221 # When large executables or shared objects are built, AIX ld can
9222 # have problems creating the table of contents. If linking a library
9223 # or program results in "error TOC overflow" add -mminimal-toc to
9224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9229 hardcode_direct_absolute=yes
9230 hardcode_libdir_separator=':'
9231 link_all_deplibs=yes
9232 file_list_spec='${wl}-f,'
9234 if test "$GCC" = yes; then
9235 case $host_os in aix4.[012]|aix4.[012].*)
9236 # We only want to do this on AIX 4.2 and lower, the check
9237 # below for broken collect2 doesn't work under 4.3+
9238 collect2name=`${CC} -print-prog-name=collect2`
9239 if test -f "$collect2name" &&
9240 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9242 # We have reworked collect2
9245 # We have old collect2
9246 hardcode_direct=unsupported
9247 # It fails to find uninstalled libraries when the uninstalled
9248 # path is not listed in the libpath. Setting hardcode_minus_L
9249 # to unsupported forces relinking
9250 hardcode_minus_L=yes
9251 hardcode_libdir_flag_spec='-L$libdir'
9252 hardcode_libdir_separator=
9256 shared_flag='-shared'
9257 if test "$aix_use_runtimelinking" = yes; then
9258 shared_flag="$shared_flag "'${wl}-G'
9262 if test "$host_cpu" = ia64; then
9263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9264 # chokes on -Wl,-G. The following line is correct:
9267 if test "$aix_use_runtimelinking" = yes; then
9268 shared_flag='${wl}-G'
9270 shared_flag='${wl}-bM:SRE'
9275 export_dynamic_flag_spec='${wl}-bexpall'
9276 # It seems that -bexpall does not export symbols beginning with
9277 # underscore (_), so it is better to generate a list of symbols to export.
9278 always_export_symbols=yes
9279 if test "$aix_use_runtimelinking" = yes; then
9280 # Warning - without using the other runtime loading flags (-brtl),
9281 # -berok will link without error, but may produce a broken library.
9282 allow_undefined_flag='-berok'
9283 # Determine the default libpath from the value encoded in an
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9296 if ac_fn_c_try_link "$LINENO"; then :
9298 lt_aix_libpath_sed='
9299 /Import File Strings/,/^$/ {
9305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306 # Check for a 64-bit object if we didn't find anything.
9307 if test -z "$aix_libpath"; then
9308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9311 rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316 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"
9318 if test "$host_cpu" = ia64; then
9319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9320 allow_undefined_flag="-z nodefs"
9321 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"
9323 # Determine the default libpath from the value encoded in an
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9336 if ac_fn_c_try_link "$LINENO"; then :
9338 lt_aix_libpath_sed='
9339 /Import File Strings/,/^$/ {
9345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346 # Check for a 64-bit object if we didn't find anything.
9347 if test -z "$aix_libpath"; then
9348 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9356 # Warning - without using the other run time loading flags,
9357 # -berok will link without error, but may produce a broken library.
9358 no_undefined_flag=' ${wl}-bernotok'
9359 allow_undefined_flag=' ${wl}-berok'
9360 if test "$with_gnu_ld" = yes; then
9361 # We only use this code for GNU lds that support --whole-archive.
9362 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9364 # Exported symbols can be pulled into shared objects from archives
9365 whole_archive_flag_spec='$convenience'
9367 archive_cmds_need_lc=yes
9368 # This is similar to how AIX traditionally builds its shared libraries.
9369 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'
9377 # see comment about AmigaOS4 .so support
9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379 archive_expsym_cmds=''
9382 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)'
9383 hardcode_libdir_flag_spec='-L$libdir'
9384 hardcode_minus_L=yes
9390 export_dynamic_flag_spec=-rdynamic
9393 cygwin* | mingw* | pw32* | cegcc*)
9394 # When not using gcc, we currently assume that we are using
9395 # Microsoft Visual C++.
9396 # hardcode_libdir_flag_spec is actually meaningless, as there is
9397 # no search path for DLLs.
9398 hardcode_libdir_flag_spec=' '
9399 allow_undefined_flag=unsupported
9400 # Tell ltmain to make .lib files, not .a files.
9402 # Tell ltmain to make .dll files, not .so files.
9404 # FIXME: Setting linknames here is a bad hack.
9405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9406 # The linker will automatically build a .lib file if we build a DLL.
9407 old_archive_from_new_cmds='true'
9408 # FIXME: Should let the user specify the lib program.
9409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9410 fix_srcfile_path='`cygpath -w "$srcfile"`'
9411 enable_shared_with_static_runtimes=yes
9414 darwin* | rhapsody*)
9417 archive_cmds_need_lc=no
9419 hardcode_automatic=yes
9420 hardcode_shlibpath_var=unsupported
9421 if test "$lt_cv_ld_force_load" = "yes"; then
9422 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\"`'
9424 whole_archive_flag_spec=''
9426 link_all_deplibs=yes
9427 allow_undefined_flag="$_lt_dar_allow_undefined"
9428 case $cc_basename in
9429 ifort*) _lt_dar_can_shared=yes ;;
9430 *) _lt_dar_can_shared=$GCC ;;
9432 if test "$_lt_dar_can_shared" = "yes"; then
9433 output_verbose_link_cmd=func_echo_all
9434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9436 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}"
9437 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}"
9446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_libdir_flag_spec='-L$libdir'
9448 hardcode_shlibpath_var=no
9451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9452 # support. Future versions do this automatically, but an explicit c++rt0.o
9453 # does not break anything, and helps significantly (at the cost of a little
9456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9457 hardcode_libdir_flag_spec='-R$libdir'
9459 hardcode_shlibpath_var=no
9462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_minus_L=yes
9467 hardcode_shlibpath_var=no
9470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9471 freebsd* | dragonfly*)
9472 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9473 hardcode_libdir_flag_spec='-R$libdir'
9475 hardcode_shlibpath_var=no
9479 if test "$GCC" = yes; then
9480 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'
9482 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'
9484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485 hardcode_libdir_separator=:
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9491 export_dynamic_flag_spec='${wl}-E'
9495 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9496 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9500 if test "$with_gnu_ld" = no; then
9501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502 hardcode_libdir_flag_spec_ld='+b $libdir'
9503 hardcode_libdir_separator=:
9505 hardcode_direct_absolute=yes
9506 export_dynamic_flag_spec='${wl}-E'
9507 # hardcode_minus_L: Not really in the search PATH,
9508 # but as the default location of the library.
9509 hardcode_minus_L=yes
9514 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9517 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9536 # Older versions of the 11.00 compiler do not understand -b yet
9537 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9539 $as_echo_n "checking if $CC understands -b... " >&6; }
9540 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9543 lt_cv_prog_compiler__b=no
9544 save_LDFLAGS="$LDFLAGS"
9545 LDFLAGS="$LDFLAGS -b"
9546 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9548 # The linker can only warn and ignore the option if not recognized
9549 # So say no if there are warnings
9550 if test -s conftest.err; then
9551 # Append any errors to the config.log.
9552 cat conftest.err 1>&5
9553 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9555 if diff conftest.exp conftest.er2 >/dev/null; then
9556 lt_cv_prog_compiler__b=yes
9559 lt_cv_prog_compiler__b=yes
9563 LDFLAGS="$save_LDFLAGS"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9567 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9569 if test x"$lt_cv_prog_compiler__b" = xyes; then
9570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9578 if test "$with_gnu_ld" = no; then
9579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9580 hardcode_libdir_separator=:
9585 hardcode_shlibpath_var=no
9589 hardcode_direct_absolute=yes
9590 export_dynamic_flag_spec='${wl}-E'
9592 # hardcode_minus_L: Not really in the search PATH,
9593 # but as the default location of the library.
9594 hardcode_minus_L=yes
9600 irix5* | irix6* | nonstopux*)
9601 if test "$GCC" = yes; then
9602 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'
9603 # Try to use the -exported_symbol ld option, if it does not
9604 # work, assume that -exports_file does not work either and
9605 # implicitly export all symbols.
9606 save_LDFLAGS="$LDFLAGS"
9607 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9612 if ac_fn_c_try_link "$LINENO"; then :
9613 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'
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 LDFLAGS="$save_LDFLAGS"
9620 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'
9621 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'
9623 archive_cmds_need_lc='no'
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 hardcode_libdir_separator=:
9627 link_all_deplibs=yes
9631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9634 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9636 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_shlibpath_var=no
9642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9646 hardcode_shlibpath_var=no
9653 if test -f /usr/libexec/ld.so; then
9655 hardcode_shlibpath_var=no
9656 hardcode_direct_absolute=yes
9657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661 export_dynamic_flag_spec='${wl}-E'
9664 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_libdir_flag_spec='-R$libdir'
9669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 hardcode_minus_L=yes
9682 allow_undefined_flag=unsupported
9683 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'
9684 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9688 if test "$GCC" = yes; then
9689 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9690 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'
9692 allow_undefined_flag=' -expect_unresolved \*'
9693 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'
9695 archive_cmds_need_lc='no'
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator=:
9700 osf4* | osf5*) # as osf3* with the addition of -msym flag
9701 if test "$GCC" = yes; then
9702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9703 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'
9704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706 allow_undefined_flag=' -expect_unresolved \*'
9707 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'
9708 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~
9709 $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'
9711 # Both c and cxx compiler support -rpath directly
9712 hardcode_libdir_flag_spec='-rpath $libdir'
9714 archive_cmds_need_lc='no'
9715 hardcode_libdir_separator=:
9719 no_undefined_flag=' -z defs'
9720 if test "$GCC" = yes; then
9722 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9726 case `$CC -V 2>&1` in
9729 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9735 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9737 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9741 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_shlibpath_var=no
9744 solaris2.[0-5] | solaris2.[0-5].*) ;;
9746 # The compiler driver will combine and reorder linker options,
9747 # but understands `-z linker_flag'. GCC discards it without `$wl',
9748 # but is careful enough not to reorder.
9749 # Supported since Solaris 2.6 (maybe 2.5.1?)
9750 if test "$GCC" = yes; then
9751 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9753 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9757 link_all_deplibs=yes
9761 if test "x$host_vendor" = xsequent; then
9762 # Use $CC to link under sequent, because it throws in some extra .o
9763 # files that make .init and .fini sections work.
9764 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_minus_L=yes
9771 hardcode_shlibpath_var=no
9775 case $host_vendor in
9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_direct=yes # is this really true???
9781 ## LD is ld it makes a PLAMLIB
9782 ## CC just makes a GrossModule.
9783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9784 reload_cmds='$CC -r -o $output$reload_objs'
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9792 runpath_var='LD_RUN_PATH'
9793 hardcode_shlibpath_var=no
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_shlibpath_var=no
9799 export_dynamic_flag_spec='-Bexport'
9803 if test -d /usr/nec; then
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_shlibpath_var=no
9806 runpath_var=LD_RUN_PATH
9807 hardcode_runpath_var=yes
9812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9813 no_undefined_flag='${wl}-z,text'
9814 archive_cmds_need_lc=no
9815 hardcode_shlibpath_var=no
9816 runpath_var='LD_RUN_PATH'
9818 if test "$GCC" = yes; then
9819 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 sysv5* | sco3.2v5* | sco5v6*)
9828 # Note: We can NOT use -z defs as we might desire, because we do not
9829 # link with -lc, and that would cause any symbols used from libc to
9830 # always be unresolved, which means just about no library would
9831 # ever link correctly. If we're not using GNU ld we use -z text
9832 # though, which does catch some bad symbols but isn't as heavy-handed
9834 no_undefined_flag='${wl}-z,text'
9835 allow_undefined_flag='${wl}-z,nodefs'
9836 archive_cmds_need_lc=no
9837 hardcode_shlibpath_var=no
9838 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9839 hardcode_libdir_separator=':'
9840 link_all_deplibs=yes
9841 export_dynamic_flag_spec='${wl}-Bexport'
9842 runpath_var='LD_RUN_PATH'
9844 if test "$GCC" = yes; then
9845 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9846 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 hardcode_shlibpath_var=no
9864 if test x$host_vendor = xsni; then
9866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9867 export_dynamic_flag_spec='${wl}-Blargedynsym'
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9874 $as_echo "$ld_shlibs" >&6; }
9875 test "$ld_shlibs" = no && can_build_shared=no
9877 with_gnu_ld=$with_gnu_ld
9894 # Do we need to explicitly link libc?
9896 case "x$archive_cmds_need_lc" in
9898 # Assume -lc should be added
9899 archive_cmds_need_lc=yes
9901 if test "$enable_shared" = yes && test "$GCC" = yes; then
9902 case $archive_cmds in
9904 # FIXME: we may have to deal with multi-command sequences.
9907 # Test whether the compiler implicitly links with -lc since on some
9908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9909 # to ld, don't add -lc before -lgcc.
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9911 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9912 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9919 (eval $ac_compile) 2>&5
9921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9922 test $ac_status = 0; } 2>conftest.err; then
9925 libobjs=conftest.$ac_objext
9927 wl=$lt_prog_compiler_wl
9928 pic_flag=$lt_prog_compiler_pic
9934 lt_save_allow_undefined_flag=$allow_undefined_flag
9935 allow_undefined_flag=
9936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9937 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9940 test $ac_status = 0; }
9942 lt_cv_archive_cmds_need_lc=no
9944 lt_cv_archive_cmds_need_lc=yes
9946 allow_undefined_flag=$lt_save_allow_undefined_flag
9948 cat conftest.err 1>&5
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9954 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9955 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10119 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10121 if test "$GCC" = yes; then
10123 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10124 *) lt_awk_arg="/^libraries:/" ;;
10127 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10128 *) lt_sed_strip_eq="s,=/,/,g" ;;
10130 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10131 case $lt_search_path_spec in
10133 # if the path contains ";" then we assume it to be the separator
10134 # otherwise default to the standard path separator (i.e. ":") - it is
10135 # assumed that no part of a normal pathname contains ";" but that should
10136 # okay in the real world where ";" in dirpaths is itself problematic.
10137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10140 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10143 # Ok, now we have the path, separated by spaces, we can step through it
10144 # and add multilib dir if necessary.
10145 lt_tmp_lt_search_path_spec=
10146 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10147 for lt_sys_path in $lt_search_path_spec; do
10148 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10151 test -d "$lt_sys_path" && \
10152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10155 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10156 BEGIN {RS=" "; FS="/|\n";} {
10159 for (lt_i = NF; lt_i > 0; lt_i--) {
10160 if ($lt_i != "" && $lt_i != ".") {
10161 if ($lt_i == "..") {
10164 if (lt_count == 0) {
10165 lt_foo="/" $lt_i lt_foo;
10172 if (lt_foo != "") { lt_freq[lt_foo]++; }
10173 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10175 # AWK program above erroneously prepends '/' to C:/dos/paths
10178 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10179 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10181 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10185 library_names_spec=
10186 libname_spec='lib$name'
10190 postuninstall_cmds=
10194 shlibpath_overrides_runpath=unknown
10196 dynamic_linker="$host_os ld.so"
10197 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10198 need_lib_prefix=unknown
10199 hardcode_into_libs=no
10201 # when you set need_version to no, make sure it does not cause -set_version
10202 # flags to be left without arguments
10203 need_version=unknown
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10209 shlibpath_var=LIBPATH
10211 # AIX 3 has no versioning support, so we append a major version to the name.
10212 soname_spec='${libname}${release}${shared_ext}$major'
10219 hardcode_into_libs=yes
10220 if test "$host_cpu" = ia64; then
10221 # AIX 5 supports IA64
10222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10223 shlibpath_var=LD_LIBRARY_PATH
10225 # With GCC up to 2.95.x, collect2 would create an import file
10226 # for dependence libraries. The import file would start with
10227 # the line `#! .'. This would cause the generated library to
10228 # depend on `.', always an invalid library. This was fixed in
10229 # development snapshots of GCC prior to 3.0.
10231 aix4 | aix4.[01] | aix4.[01].*)
10232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10234 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10237 can_build_shared=no
10241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10242 # soname into executable. Probably we can add versioning support to
10243 # collect2, so additional links can be useful in future.
10244 if test "$aix_use_runtimelinking" = yes; then
10245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10246 # instead of lib<name>.a to let people know that these are not
10247 # typical AIX shared libraries.
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 # We preserve .a as extension for shared libraries through AIX4.2
10251 # and later when we are not doing run time linking.
10252 library_names_spec='${libname}${release}.a $libname.a'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LIBPATH
10262 # Since July 2007 AmigaOS4 officially supports .so libraries.
10263 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 library_names_spec='$libname.ixlibrary $libname.a'
10268 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10269 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'
10275 library_names_spec='${libname}${shared_ext}'
10276 dynamic_linker="$host_os ld.so"
10277 shlibpath_var=LIBRARY_PATH
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10289 # the default ld.so.conf also contains /usr/contrib/lib and
10290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10291 # libtool to hard-code these into programs
10294 cygwin* | mingw* | pw32* | cegcc*)
10295 version_type=windows
10300 case $GCC,$host_os in
10301 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10302 library_names_spec='$libname.dll.a'
10303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10304 postinstall_cmds='base_file=`basename \${file}`~
10305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10306 dldir=$destdir/`dirname \$dlpath`~
10307 test -d \$dldir || mkdir -p \$dldir~
10308 $install_prog $dir/$dlname \$dldir/$dlname~
10309 chmod a+x \$dldir/$dlname~
10310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10314 dlpath=$dir/\$dldll~
10316 shlibpath_overrides_runpath=yes
10320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10326 # MinGW DLLs use traditional 'lib' prefix
10327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330 # pw32 DLLs use 'pw' prefix rather than 'lib'
10331 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10337 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10340 dynamic_linker='Win32 ld.exe'
10341 # FIXME: first we should search . and the directory the executable is in
10345 darwin* | rhapsody*)
10346 dynamic_linker="$host_os dyld"
10347 version_type=darwin
10350 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10351 soname_spec='${libname}${release}${major}$shared_ext'
10352 shlibpath_overrides_runpath=yes
10353 shlibpath_var=DYLD_LIBRARY_PATH
10354 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10356 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10369 freebsd* | dragonfly*)
10370 # DragonFly does not have aout. When/if they implement a new
10371 # versioning mechanism, adjust this.
10372 if test -x /usr/bin/objformat; then
10373 objformat=`/usr/bin/objformat`
10376 freebsd[23].*) objformat=aout ;;
10377 *) objformat=elf ;;
10380 version_type=freebsd-$objformat
10381 case $version_type in
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10392 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=yes
10397 freebsd3.[01]* | freebsdelf3.[01]*)
10398 shlibpath_overrides_runpath=yes
10399 hardcode_into_libs=yes
10401 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10402 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10406 *) # from 4.6 on, and DragonFly
10407 shlibpath_overrides_runpath=yes
10408 hardcode_into_libs=yes
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 hardcode_into_libs=yes
10427 dynamic_linker="$host_os runtime_loader"
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 shlibpath_var=LIBRARY_PATH
10431 shlibpath_overrides_runpath=yes
10432 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10433 hardcode_into_libs=yes
10436 hpux9* | hpux10* | hpux11*)
10437 # Give a soname corresponding to the major version so that dld.sl refuses to
10438 # link against other versions.
10445 hardcode_into_libs=yes
10446 dynamic_linker="$host_os dld.so"
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 if test "X$HPUX_IA64_MODE" = X32; then
10452 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10454 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10460 hardcode_into_libs=yes
10461 dynamic_linker="$host_os dld.sl"
10462 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471 dynamic_linker="$host_os dld.sl"
10472 shlibpath_var=SHLIB_PATH
10473 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10478 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10479 postinstall_cmds='chmod 555 $lib'
10480 # or fails outright, so override atomically:
10481 install_override_mode=555
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10496 irix5* | irix6* | nonstopux*)
10498 nonstopux*) version_type=nonstopux ;;
10500 if test "$lt_cv_prog_gnu_ld" = yes; then
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10511 irix5* | nonstopux*)
10512 libsuff= shlibsuff=
10515 case $LD in # libtool.m4 will add one of these switches to LD
10516 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10517 libsuff= shlibsuff= libmagic=32-bit;;
10518 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10519 libsuff=32 shlibsuff=N32 libmagic=N32;;
10520 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10521 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10522 *) libsuff= shlibsuff= libmagic=never-match;;
10526 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10527 shlibpath_overrides_runpath=no
10528 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10529 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10530 hardcode_into_libs=yes
10533 # No shared lib support for Linux oldld, aout, or coff.
10534 linux*oldld* | linux*aout* | linux*coff*)
10538 # This must be Linux ELF.
10539 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=no
10549 # Some binutils ld are patched to set DT_RUNPATH
10550 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10553 lt_cv_shlibpath_overrides_runpath=no
10554 save_LDFLAGS=$LDFLAGS
10555 save_libdir=$libdir
10556 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10557 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10571 lt_cv_shlibpath_overrides_runpath=yes
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LDFLAGS=$save_LDFLAGS
10577 libdir=$save_libdir
10581 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10583 # This implies no fast_install, which is unacceptable.
10584 # Some rework will be needed to allow for fast_install
10585 # before this can be enabled.
10586 hardcode_into_libs=yes
10588 # Append ld.so.conf contents to the search path
10589 if test -f /etc/ld.so.conf; then
10590 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' ' '`
10591 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10594 # We used to test for /lib/ld.so.1 and disable shared libraries on
10595 # powerpc, because MkLinux only supported shared libraries with the
10596 # GNU dynamic linker. Since this was broken with cross compilers,
10597 # most powerpc-linux boxes support dynamic linking these days and
10598 # people can always --disable-shared, the test was removed, and we
10599 # assume the GNU/Linux dynamic linker is in use.
10600 dynamic_linker='GNU/Linux ld.so'
10607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10610 dynamic_linker='NetBSD (a.out) ld.so'
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 dynamic_linker='NetBSD ld.elf_so'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=no
10636 hardcode_into_libs=yes
10637 dynamic_linker='ldqnx.so'
10642 sys_lib_dlsearch_path_spec="/usr/lib"
10644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10647 *) need_version=no ;;
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10654 openbsd2.[89] | openbsd2.[89].*)
10655 shlibpath_overrides_runpath=no
10658 shlibpath_overrides_runpath=yes
10662 shlibpath_overrides_runpath=yes
10667 libname_spec='$name'
10670 library_names_spec='$libname${shared_ext} $libname.a'
10671 dynamic_linker='OS/2 ld.exe'
10672 shlibpath_var=LIBPATH
10675 osf3* | osf4* | osf5*)
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
10698 hardcode_into_libs=yes
10699 # ldd complains unless libraries are executable
10700 postinstall_cmds='chmod +x $lib'
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 if test "$with_gnu_ld" = yes; then
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 case $host_vendor in
10722 shlibpath_overrides_runpath=no
10724 runpath_var=LD_RUN_PATH
10732 shlibpath_overrides_runpath=no
10733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10739 if test -d /usr/nec ;then
10741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10742 soname_spec='$libname${shared_ext}.$major'
10743 shlibpath_var=LD_LIBRARY_PATH
10747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10748 version_type=freebsd-elf
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=yes
10755 hardcode_into_libs=yes
10756 if test "$with_gnu_ld" = yes; then
10757 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10766 sys_lib_dlsearch_path_spec='/usr/lib'
10770 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath=no
10777 hardcode_into_libs=yes
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 shlibpath_var=LD_LIBRARY_PATH
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10792 $as_echo "$dynamic_linker" >&6; }
10793 test "$dynamic_linker" = no && can_build_shared=no
10795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10796 if test "$GCC" = yes; then
10797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10800 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10801 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10803 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10804 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10899 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10901 if test -n "$hardcode_libdir_flag_spec" ||
10902 test -n "$runpath_var" ||
10903 test "X$hardcode_automatic" = "Xyes" ; then
10905 # We can hardcode non-existent directories.
10906 if test "$hardcode_direct" != no &&
10907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10908 # have to relink, otherwise we might link with an installed library
10909 # when we should be linking with a yet-to-be-installed one
10910 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10911 test "$hardcode_minus_L" != no; then
10912 # Linking always hardcodes the temporary library directory.
10913 hardcode_action=relink
10915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10916 hardcode_action=immediate
10919 # We cannot hardcode anything, or else we can only hardcode existing
10921 hardcode_action=unsupported
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10924 $as_echo "$hardcode_action" >&6; }
10926 if test "$hardcode_action" = relink ||
10927 test "$inherit_rpath" = yes; then
10928 # Fast installation is not supported
10929 enable_fast_install=no
10930 elif test "$shlibpath_overrides_runpath" = yes ||
10931 test "$enable_shared" = no; then
10932 # Fast installation is not necessary
10933 enable_fast_install=needless
10941 if test "x$enable_dlopen" != xyes; then
10942 enable_dlopen=unknown
10943 enable_dlopen_self=unknown
10944 enable_dlopen_self_static=unknown
10951 lt_cv_dlopen="load_add_on"
10953 lt_cv_dlopen_self=yes
10956 mingw* | pw32* | cegcc*)
10957 lt_cv_dlopen="LoadLibrary"
10962 lt_cv_dlopen="dlopen"
10967 # if libdl is installed we need to link against it
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10969 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10973 ac_check_lib_save_LIBS=$LIBS
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 ac_cv_lib_dl_dlopen=yes
10996 ac_cv_lib_dl_dlopen=no
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11008 lt_cv_dlopen="dyld"
11010 lt_cv_dlopen_self=yes
11017 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11018 if test "x$ac_cv_func_shl_load" = x""yes; then :
11019 lt_cv_dlopen="shl_load"
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11022 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11023 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11026 ac_check_lib_save_LIBS=$LIBS
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11041 return shl_load ();
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dld_shl_load=yes
11049 ac_cv_lib_dld_shl_load=no
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11056 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11057 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11058 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11060 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11061 if test "x$ac_cv_func_dlopen" = x""yes; then :
11062 lt_cv_dlopen="dlopen"
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11069 ac_check_lib_save_LIBS=$LIBS
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11074 /* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11089 if ac_fn_c_try_link "$LINENO"; then :
11090 ac_cv_lib_dl_dlopen=yes
11092 ac_cv_lib_dl_dlopen=no
11094 rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_lib_save_LIBS
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11100 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11104 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11108 ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-lsvld $LIBS"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 ac_cv_lib_svld_dlopen=yes
11131 ac_cv_lib_svld_dlopen=no
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11138 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11139 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11143 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11147 ac_check_lib_save_LIBS=$LIBS
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11162 return dld_link ();
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_dld_dld_link=yes
11170 ac_cv_lib_dld_dld_link=no
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11177 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11178 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11179 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11200 if test "x$lt_cv_dlopen" != xno; then
11206 case $lt_cv_dlopen in
11208 save_CPPFLAGS="$CPPFLAGS"
11209 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11211 save_LDFLAGS="$LDFLAGS"
11212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11215 LIBS="$lt_cv_dlopen_libs $LIBS"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11218 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11219 if test "${lt_cv_dlopen_self+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11222 if test "$cross_compiling" = yes; then :
11223 lt_cv_dlopen_self=cross
11225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11226 lt_status=$lt_dlunknown
11227 cat > conftest.$ac_ext <<_LT_EOF
11228 #line 11228 "configure"
11229 #include "confdefs.h"
11238 # define LT_DLGLOBAL RTLD_GLOBAL
11241 # define LT_DLGLOBAL DL_GLOBAL
11243 # define LT_DLGLOBAL 0
11247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11248 find out it does not work in some platform. */
11249 #ifndef LT_DLLAZY_OR_NOW
11251 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11254 # define LT_DLLAZY_OR_NOW DL_LAZY
11257 # define LT_DLLAZY_OR_NOW RTLD_NOW
11260 # define LT_DLLAZY_OR_NOW DL_NOW
11262 # define LT_DLLAZY_OR_NOW 0
11269 /* When -fvisbility=hidden is used, assume the code has been annotated
11270 correspondingly for the symbols needed. */
11271 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11272 void fnord () __attribute__((visibility("default")));
11275 void fnord () { int i=42; }
11278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11279 int status = $lt_dlunknown;
11283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11286 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11287 else puts (dlerror ());
11289 /* dlclose (self); */
11297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11298 (eval $ac_link) 2>&5
11300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11301 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11302 (./conftest; exit; ) >&5 2>/dev/null
11304 case x$lt_status in
11305 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11306 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11310 # compilation failed
11311 lt_cv_dlopen_self=no
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11319 $as_echo "$lt_cv_dlopen_self" >&6; }
11321 if test "x$lt_cv_dlopen_self" = xyes; then
11322 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11324 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11325 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11328 if test "$cross_compiling" = yes; then :
11329 lt_cv_dlopen_self_static=cross
11331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11332 lt_status=$lt_dlunknown
11333 cat > conftest.$ac_ext <<_LT_EOF
11334 #line 11334 "configure"
11335 #include "confdefs.h"
11344 # define LT_DLGLOBAL RTLD_GLOBAL
11347 # define LT_DLGLOBAL DL_GLOBAL
11349 # define LT_DLGLOBAL 0
11353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11354 find out it does not work in some platform. */
11355 #ifndef LT_DLLAZY_OR_NOW
11357 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11360 # define LT_DLLAZY_OR_NOW DL_LAZY
11363 # define LT_DLLAZY_OR_NOW RTLD_NOW
11366 # define LT_DLLAZY_OR_NOW DL_NOW
11368 # define LT_DLLAZY_OR_NOW 0
11375 /* When -fvisbility=hidden is used, assume the code has been annotated
11376 correspondingly for the symbols needed. */
11377 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11378 void fnord () __attribute__((visibility("default")));
11381 void fnord () { int i=42; }
11384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11385 int status = $lt_dlunknown;
11389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11392 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11393 else puts (dlerror ());
11395 /* dlclose (self); */
11403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11404 (eval $ac_link) 2>&5
11406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11407 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11408 (./conftest; exit; ) >&5 2>/dev/null
11410 case x$lt_status in
11411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11413 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11416 # compilation failed
11417 lt_cv_dlopen_self_static=no
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11425 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11428 CPPFLAGS="$save_CPPFLAGS"
11429 LDFLAGS="$save_LDFLAGS"
11434 case $lt_cv_dlopen_self in
11435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11436 *) enable_dlopen_self=unknown ;;
11439 case $lt_cv_dlopen_self_static in
11440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11441 *) enable_dlopen_self_static=unknown ;;
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11464 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11465 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11466 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11467 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469 $as_echo "yes" >&6; }
11471 # FIXME - insert some real tests, host_os isn't really good enough
11474 if test -n "$STRIP" ; then
11475 striplib="$STRIP -x"
11476 old_striplib="$STRIP -S"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478 $as_echo "yes" >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11502 # Report which library types will actually be built
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11504 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11506 $as_echo "$can_build_shared" >&6; }
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11509 $as_echo_n "checking whether to build shared libraries... " >&6; }
11510 test "$can_build_shared" = "no" && enable_shared=no
11512 # On AIX, shared libraries and static libraries use the same namespace, and
11513 # are all built from PIC.
11516 test "$enable_shared" = yes && enable_static=no
11517 if test -n "$RANLIB"; then
11518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11519 postinstall_cmds='$RANLIB $lib'
11524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11525 test "$enable_shared" = yes && enable_static=no
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11530 $as_echo "$enable_shared" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11533 $as_echo_n "checking whether to build static libraries... " >&6; }
11534 # Make sure either enable_shared or enable_static is yes.
11535 test "$enable_shared" = yes || enable_static=yes
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11537 $as_echo "$enable_static" >&6; }
11544 ac_cpp='$CPP $CPPFLAGS'
11545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11563 ac_config_commands="$ac_config_commands libtool"
11568 # Only expand once:
11572 # The tests for host and target for $enable_largefile require
11577 # As the $enable_largefile decision depends on --enable-plugins we must set it
11578 # even in directories otherwise not depending on the $plugins option.
11582 for ac_header in dlfcn.h
11584 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11586 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11587 cat >>confdefs.h <<_ACEOF
11588 #define HAVE_DLFCN_H 1
11595 for ac_header in windows.h
11597 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11599 if test "x$ac_cv_header_windows_h" = x""yes; then :
11600 cat >>confdefs.h <<_ACEOF
11601 #define HAVE_WINDOWS_H 1
11609 # Check whether --enable-plugins was given.
11610 if test "${enable_plugins+set}" = set; then :
11611 enableval=$enable_plugins; case "${enableval}" in
11614 if test "$maybe_plugins" != "yes" ; then
11615 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11619 plugins=$maybe_plugins
11623 if test "$plugins" = "yes"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11625 $as_echo_n "checking for library containing dlopen... " >&6; }
11626 if test "${ac_cv_search_dlopen+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11629 ac_func_search_save_LIBS=$LIBS
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11648 for ac_lib in '' dl; do
11649 if test -z "$ac_lib"; then
11650 ac_res="none required"
11653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_search_dlopen=$ac_res
11658 rm -f core conftest.err conftest.$ac_objext \
11660 if test "${ac_cv_search_dlopen+set}" = set; then :
11664 if test "${ac_cv_search_dlopen+set}" = set; then :
11667 ac_cv_search_dlopen=no
11669 rm conftest.$ac_ext
11670 LIBS=$ac_func_search_save_LIBS
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11673 $as_echo "$ac_cv_search_dlopen" >&6; }
11674 ac_res=$ac_cv_search_dlopen
11675 if test "$ac_res" != no; then :
11676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11684 sparc-*-solaris*|i[3-7]86-*-solaris*)
11685 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11686 # are mutually exclusive; and without procfs support, the bfd/ elf module
11687 # cannot provide certain routines such as elfcore_write_prpsinfo
11688 # or elfcore_write_prstatus. So unless the user explicitly requested
11689 # large-file support through the --enable-largefile switch, disable
11690 # large-file support in favor of procfs support.
11691 test "${target}" = "${host}" -a "x$plugins" = xno \
11692 && : ${enable_largefile="no"}
11696 # Check whether --enable-largefile was given.
11697 if test "${enable_largefile+set}" = set; then :
11698 enableval=$enable_largefile;
11701 if test "$enable_largefile" != no; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11704 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11705 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11708 ac_cv_sys_largefile_CC=no
11709 if test "$GCC" != yes; then
11712 # IRIX 6.2 and later do not support large files by default,
11713 # so use the C compiler's -n32 option if that helps.
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716 #include <sys/types.h>
11717 /* Check that off_t can represent 2**63 - 1 correctly.
11718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11719 since some C++ compilers masquerading as C compilers
11720 incorrectly reject 9223372036854775807. */
11721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11723 && LARGE_OFF_T % 2147483647 == 1)
11733 if ac_fn_c_try_compile "$LINENO"; then :
11736 rm -f core conftest.err conftest.$ac_objext
11738 if ac_fn_c_try_compile "$LINENO"; then :
11739 ac_cv_sys_largefile_CC=' -n32'; break
11741 rm -f core conftest.err conftest.$ac_objext
11745 rm -f conftest.$ac_ext
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11749 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11750 if test "$ac_cv_sys_largefile_CC" != no; then
11751 CC=$CC$ac_cv_sys_largefile_CC
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11755 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11756 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762 #include <sys/types.h>
11763 /* Check that off_t can represent 2**63 - 1 correctly.
11764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11765 since some C++ compilers masquerading as C compilers
11766 incorrectly reject 9223372036854775807. */
11767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11769 && LARGE_OFF_T % 2147483647 == 1)
11779 if ac_fn_c_try_compile "$LINENO"; then :
11780 ac_cv_sys_file_offset_bits=no; break
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #define _FILE_OFFSET_BITS 64
11786 #include <sys/types.h>
11787 /* Check that off_t can represent 2**63 - 1 correctly.
11788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11789 since some C++ compilers masquerading as C compilers
11790 incorrectly reject 9223372036854775807. */
11791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11793 && LARGE_OFF_T % 2147483647 == 1)
11803 if ac_fn_c_try_compile "$LINENO"; then :
11804 ac_cv_sys_file_offset_bits=64; break
11806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 ac_cv_sys_file_offset_bits=unknown
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11812 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11813 case $ac_cv_sys_file_offset_bits in #(
11816 cat >>confdefs.h <<_ACEOF
11817 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11822 if test $ac_cv_sys_file_offset_bits = unknown; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11824 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11825 if test "${ac_cv_sys_large_files+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include <sys/types.h>
11832 /* Check that off_t can represent 2**63 - 1 correctly.
11833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11834 since some C++ compilers masquerading as C compilers
11835 incorrectly reject 9223372036854775807. */
11836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11838 && LARGE_OFF_T % 2147483647 == 1)
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_sys_large_files=no; break
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #define _LARGE_FILES 1
11855 #include <sys/types.h>
11856 /* Check that off_t can represent 2**63 - 1 correctly.
11857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11858 since some C++ compilers masquerading as C compilers
11859 incorrectly reject 9223372036854775807. */
11860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11862 && LARGE_OFF_T % 2147483647 == 1)
11872 if ac_fn_c_try_compile "$LINENO"; then :
11873 ac_cv_sys_large_files=1; break
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 ac_cv_sys_large_files=unknown
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11881 $as_echo "$ac_cv_sys_large_files" >&6; }
11882 case $ac_cv_sys_large_files in #(
11885 cat >>confdefs.h <<_ACEOF
11886 #define _LARGE_FILES $ac_cv_sys_large_files
11896 # Check whether --enable-targets was given.
11897 if test "${enable_targets+set}" = set; then :
11898 enableval=$enable_targets; case "${enableval}" in
11899 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11901 no) enable_targets= ;;
11902 *) enable_targets=$enableval ;;
11906 # Check whether --enable-deterministic-archives was given.
11907 if test "${enable_deterministic_archives+set}" = set; then :
11908 enableval=$enable_deterministic_archives;
11909 if test "${enableval}" = no; then
11910 default_ar_deterministic=0
11912 default_ar_deterministic=1
11915 default_ar_deterministic=0
11920 cat >>confdefs.h <<_ACEOF
11921 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11925 # Check whether --enable-default-strings-all was given.
11926 if test "${enable_default_strings_all+set}" = set; then :
11927 enableval=$enable_default_strings_all;
11928 if test "${enableval}" = no; then
11929 default_strings_all=0
11931 default_strings_all=1
11934 default_strings_all=1
11939 cat >>confdefs.h <<_ACEOF
11940 #define DEFAULT_STRINGS_ALL $default_strings_all
11945 # Set the 'development' global.
11946 . $srcdir/../bfd/development.sh
11948 # Default set of GCC warnings to enable.
11949 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11951 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11960 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11965 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11971 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11974 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11979 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11980 WARN_WRITE_STRINGS=""
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11986 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11989 WARN_WRITE_STRINGS="-Wwrite-strings"
11994 # Check whether --enable-werror was given.
11995 if test "${enable_werror+set}" = set; then :
11996 enableval=$enable_werror; case "${enableval}" in
11997 yes | y) ERROR_ON_WARNING="yes" ;;
11998 no | n) ERROR_ON_WARNING="no" ;;
11999 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12004 # Disable -Wformat by default when using gcc on mingw
12007 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12008 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12014 # Enable -Werror by default when using gcc. Turn it off for releases.
12015 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12016 ERROR_ON_WARNING=yes
12020 if test "${ERROR_ON_WARNING}" = yes ; then
12021 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12022 NO_WERROR="-Wno-error"
12025 if test "${GCC}" = yes ; then
12026 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12029 # Check whether --enable-build-warnings was given.
12030 if test "${enable_build_warnings+set}" = set; then :
12031 enableval=$enable_build_warnings; case "${enableval}" in
12032 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12033 no) if test "${GCC}" = yes ; then
12036 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12037 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12038 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12039 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12040 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12045 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12046 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12054 ac_config_headers="$ac_config_headers config.h:config.in"
12059 if test -z "$target" ; then
12060 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12062 if test -z "$host" ; then
12063 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
12066 for ac_prog in 'bison -y' byacc
12068 # Extract the first word of "$ac_prog", so it can be a program name with args.
12069 set dummy $ac_prog; ac_word=$2
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12071 $as_echo_n "checking for $ac_word... " >&6; }
12072 if test "${ac_cv_prog_YACC+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12075 if test -n "$YACC"; then
12076 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12085 ac_cv_prog_YACC="$ac_prog"
12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 YACC=$ac_cv_prog_YACC
12096 if test -n "$YACC"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12098 $as_echo "$YACC" >&6; }
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12105 test -n "$YACC" && break
12107 test -n "$YACC" || YACC="yacc"
12109 for ac_prog in flex lex
12111 # Extract the first word of "$ac_prog", so it can be a program name with args.
12112 set dummy $ac_prog; ac_word=$2
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114 $as_echo_n "checking for $ac_word... " >&6; }
12115 if test "${ac_cv_prog_LEX+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
12118 if test -n "$LEX"; then
12119 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_prog_LEX="$ac_prog"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 LEX=$ac_cv_prog_LEX
12139 if test -n "$LEX"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12141 $as_echo "$LEX" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12148 test -n "$LEX" && break
12150 test -n "$LEX" || LEX=":"
12154 *) cat >conftest.l <<_ACEOF
12160 e { yyless (input () != 0); }
12161 f { unput (yytext[0]); }
12162 . { BEGIN INITIAL; }
12164 #ifdef YYTEXT_POINTER
12165 extern char *yytext;
12170 return ! yylex () + ! yywrap ();
12173 { { ac_try="$LEX conftest.l"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12179 $as_echo "$ac_try_echo"; } >&5
12180 (eval "$LEX conftest.l") 2>&5
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183 test $ac_status = 0; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12185 $as_echo_n "checking lex output file root... " >&6; }
12186 if test "${ac_cv_prog_lex_root+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12190 if test -f lex.yy.c; then
12191 ac_cv_prog_lex_root=lex.yy
12192 elif test -f lexyy.c; then
12193 ac_cv_prog_lex_root=lexyy
12195 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12199 $as_echo "$ac_cv_prog_lex_root" >&6; }
12200 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12202 if test -z "${LEXLIB+set}"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12204 $as_echo_n "checking lex library... " >&6; }
12205 if test "${ac_cv_lib_lex+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12210 ac_cv_lib_lex='none needed'
12211 for ac_lib in '' -lfl -ll; do
12212 LIBS="$ac_lib $ac_save_LIBS"
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215 `cat $LEX_OUTPUT_ROOT.c`
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_lex=$ac_lib
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 test "$ac_cv_lib_lex" != 'none needed' && break
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12228 $as_echo "$ac_cv_lib_lex" >&6; }
12229 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12234 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12235 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12238 # POSIX says lex can declare yytext either as a pointer or an array; the
12239 # default is implementation-dependent. Figure out which it is, since
12240 # not all implementations provide the %pointer and %array declarations.
12241 ac_cv_prog_lex_yytext_pointer=no
12243 LIBS="$LEXLIB $ac_save_LIBS"
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #define YYTEXT_POINTER 1
12247 `cat $LEX_OUTPUT_ROOT.c`
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 ac_cv_prog_lex_yytext_pointer=yes
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12258 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12259 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12261 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12264 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12267 if test "$LEX" = :; then
12268 LEX=${am_missing_run}flex
12271 ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr ca"
12272 # If we haven't got the data from the intl directory,
12273 # assume NLS is disabled.
12282 if test -f ../intl/config.intl; then
12283 . ../intl/config.intl
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12286 $as_echo_n "checking whether NLS is requested... " >&6; }
12287 if test x"$USE_NLS" != xyes; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; }
12294 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12298 $as_echo_n "checking for catalogs to be installed... " >&6; }
12299 # Look for .po and .gmo files in the source directory.
12302 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12303 # If there aren't any .gmo files the shell will give us the
12304 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12306 case "$cat" in *\**)
12309 # The quadruple backslash is collapsed to a double backslash
12310 # by the backticks, then collapsed again by the double quotes,
12311 # leaving us with one backslash in the sed expression (right
12312 # before the dot that mustn't act as a wildcard).
12313 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12314 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12315 # The user is allowed to set LINGUAS to a list of languages to
12316 # install catalogs for. If it's empty that means "all of them."
12317 if test "x$LINGUAS" = x; then
12318 CATALOGS="$CATALOGS $cat"
12319 XLINGUAS="$XLINGUAS $lang"
12321 case "$LINGUAS" in *$lang*)
12322 CATALOGS="$CATALOGS $cat"
12323 XLINGUAS="$XLINGUAS $lang"
12328 LINGUAS="$XLINGUAS"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12330 $as_echo "$LINGUAS" >&6; }
12344 if test -n "$ac_aux_dir"; then
12345 case "$ac_aux_dir" in
12346 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12347 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12350 if test -z "$MKINSTALLDIRS"; then
12351 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12357 $as_echo_n "checking whether NLS is requested... " >&6; }
12358 # Check whether --enable-nls was given.
12359 if test "${enable_nls+set}" = set; then :
12360 enableval=$enable_nls; USE_NLS=$enableval
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12366 $as_echo "$USE_NLS" >&6; }
12373 # Prepare PATH_SEPARATOR.
12374 # The user is always right.
12375 if test "${PATH_SEPARATOR+set}" != set; then
12376 echo "#! /bin/sh" >conf$$.sh
12377 echo "exit 0" >>conf$$.sh
12379 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12387 # Find out how to test for executable files. Don't use a zero-byte file,
12388 # as systems may use methods other than mode bits to determine executability.
12389 cat >conf$$.file <<_ASEOF
12393 chmod +x conf$$.file
12394 if test -x conf$$.file >/dev/null 2>&1; then
12395 ac_executable_p="test -x"
12397 ac_executable_p="test -f"
12401 # Extract the first word of "msgfmt", so it can be a program name with args.
12402 set dummy msgfmt; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12410 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12413 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12414 for ac_dir in $PATH; do
12416 test -z "$ac_dir" && ac_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12419 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12420 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12421 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12428 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12432 MSGFMT="$ac_cv_path_MSGFMT"
12433 if test "$MSGFMT" != ":"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12435 $as_echo "$MSGFMT" >&6; }
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12441 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12442 set dummy gmsgfmt; ac_word=$2
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444 $as_echo_n "checking for $ac_word... " >&6; }
12445 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12450 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12472 GMSGFMT=$ac_cv_path_GMSGFMT
12473 if test -n "$GMSGFMT"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12475 $as_echo "$GMSGFMT" >&6; }
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12484 # Prepare PATH_SEPARATOR.
12485 # The user is always right.
12486 if test "${PATH_SEPARATOR+set}" != set; then
12487 echo "#! /bin/sh" >conf$$.sh
12488 echo "exit 0" >>conf$$.sh
12490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12498 # Find out how to test for executable files. Don't use a zero-byte file,
12499 # as systems may use methods other than mode bits to determine executability.
12500 cat >conf$$.file <<_ASEOF
12504 chmod +x conf$$.file
12505 if test -x conf$$.file >/dev/null 2>&1; then
12506 ac_executable_p="test -x"
12508 ac_executable_p="test -f"
12512 # Extract the first word of "xgettext", so it can be a program name with args.
12513 set dummy xgettext; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12519 case "$XGETTEXT" in
12521 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12524 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12525 for ac_dir in $PATH; do
12527 test -z "$ac_dir" && ac_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12530 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12531 (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
12532 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12539 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12543 XGETTEXT="$ac_cv_path_XGETTEXT"
12544 if test "$XGETTEXT" != ":"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12546 $as_echo "$XGETTEXT" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12555 # Prepare PATH_SEPARATOR.
12556 # The user is always right.
12557 if test "${PATH_SEPARATOR+set}" != set; then
12558 echo "#! /bin/sh" >conf$$.sh
12559 echo "exit 0" >>conf$$.sh
12561 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12569 # Find out how to test for executable files. Don't use a zero-byte file,
12570 # as systems may use methods other than mode bits to determine executability.
12571 cat >conf$$.file <<_ASEOF
12575 chmod +x conf$$.file
12576 if test -x conf$$.file >/dev/null 2>&1; then
12577 ac_executable_p="test -x"
12579 ac_executable_p="test -f"
12583 # Extract the first word of "msgmerge", so it can be a program name with args.
12584 set dummy msgmerge; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12590 case "$MSGMERGE" in
12592 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12595 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12596 for ac_dir in $PATH; do
12598 test -z "$ac_dir" && ac_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12601 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12602 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12609 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12613 MSGMERGE="$ac_cv_path_MSGMERGE"
12614 if test "$MSGMERGE" != ":"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12616 $as_echo "$MSGMERGE" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12623 if test "$GMSGFMT" != ":"; then
12624 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12625 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12628 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12630 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12635 if test "$XGETTEXT" != ":"; then
12636 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12637 (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
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12641 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12647 ac_config_commands="$ac_config_commands default-1"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12653 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12654 # Check whether --enable-maintainer-mode was given.
12655 if test "${enable_maintainer_mode+set}" = set; then :
12656 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12658 USE_MAINTAINER_MODE=no
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12662 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12663 if test $USE_MAINTAINER_MODE = yes; then
12664 MAINTAINER_MODE_TRUE=
12665 MAINTAINER_MODE_FALSE='#'
12667 MAINTAINER_MODE_TRUE='#'
12668 MAINTAINER_MODE_FALSE=
12671 MAINT=$MAINTAINER_MODE_TRUE
12675 GENINSRC_NEVER_TRUE=
12676 GENINSRC_NEVER_FALSE='#'
12678 GENINSRC_NEVER_TRUE='#'
12679 GENINSRC_NEVER_FALSE=
12683 if test -n "$EXEEXT"; then
12685 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12689 cat >>confdefs.h <<_ACEOF
12690 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12694 # host-specific stuff:
12698 . ${srcdir}/../bfd/configure.host
12703 if test -n "$ac_tool_prefix"; then
12704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12705 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12711 if test -n "$RANLIB"; then
12712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12718 test -z "$as_dir" && as_dir=.
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12721 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 RANLIB=$ac_cv_prog_RANLIB
12732 if test -n "$RANLIB"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12734 $as_echo "$RANLIB" >&6; }
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12742 if test -z "$ac_cv_prog_RANLIB"; then
12743 ac_ct_RANLIB=$RANLIB
12744 # Extract the first word of "ranlib", so it can be a program name with args.
12745 set dummy ranlib; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 if test -n "$ac_ct_RANLIB"; then
12752 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12761 ac_cv_prog_ac_ct_RANLIB="ranlib"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12772 if test -n "$ac_ct_RANLIB"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12774 $as_echo "$ac_ct_RANLIB" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12780 if test "x$ac_ct_RANLIB" = x; then
12783 case $cross_compiling:$ac_tool_warned in
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12787 ac_tool_warned=yes ;;
12789 RANLIB=$ac_ct_RANLIB
12792 RANLIB="$ac_cv_prog_RANLIB"
12797 # Put a plausible default for CC_FOR_BUILD in Makefile.
12798 if test -z "$CC_FOR_BUILD"; then
12799 if test "x$cross_compiling" = "xno"; then
12800 CC_FOR_BUILD='$(CC)'
12806 # Also set EXEEXT_FOR_BUILD.
12807 if test "x$cross_compiling" = "xno"; then
12808 EXEEXT_FOR_BUILD='$(EXEEXT)'
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12811 $as_echo_n "checking for build system executable suffix... " >&6; }
12812 if test "${bfd_cv_build_exeext+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12816 echo 'int main () { return 0; }' > conftest.c
12817 bfd_cv_build_exeext=
12818 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12819 for file in conftest.*; do
12821 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12822 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12826 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12829 $as_echo "$bfd_cv_build_exeext" >&6; }
12830 EXEEXT_FOR_BUILD=""
12831 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12835 DEMANGLER_NAME=c++filt
12837 *-*-go32* | *-*-msdos*)
12838 DEMANGLER_NAME=cxxfilt
12842 # The cast to long int works around a bug in the HP C Compiler
12843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12845 # This bug is HP SR number 8606223364.
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12847 $as_echo_n "checking size of long... " >&6; }
12848 if test "${ac_cv_sizeof_long+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12854 if test "$ac_cv_type_long" = yes; then
12855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12857 { as_fn_set_status 77
12858 as_fn_error "cannot compute sizeof (long)
12859 See \`config.log' for more details." "$LINENO" 5; }; }
12861 ac_cv_sizeof_long=0
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12867 $as_echo "$ac_cv_sizeof_long" >&6; }
12871 cat >>confdefs.h <<_ACEOF
12872 #define SIZEOF_LONG $ac_cv_sizeof_long
12876 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12877 if test "x$ac_cv_type_long_long" = x""yes; then :
12879 cat >>confdefs.h <<_ACEOF
12880 #define HAVE_LONG_LONG 1
12883 # The cast to long int works around a bug in the HP C Compiler
12884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12886 # This bug is HP SR number 8606223364.
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12888 $as_echo_n "checking size of long long... " >&6; }
12889 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12895 if test "$ac_cv_type_long_long" = yes; then
12896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12898 { as_fn_set_status 77
12899 as_fn_error "cannot compute sizeof (long long)
12900 See \`config.log' for more details." "$LINENO" 5; }; }
12902 ac_cv_sizeof_long_long=0
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12908 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12912 cat >>confdefs.h <<_ACEOF
12913 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12920 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
12922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12923 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12924 eval as_val=\$$as_ac_Header
12925 if test "x$as_val" = x""yes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12935 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12936 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <sys/types.h>
12942 #include <sys/wait.h>
12943 #ifndef WEXITSTATUS
12944 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12947 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12955 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12960 if ac_fn_c_try_compile "$LINENO"; then :
12961 ac_cv_header_sys_wait_h=yes
12963 ac_cv_header_sys_wait_h=no
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12968 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12969 if test $ac_cv_header_sys_wait_h = yes; then
12971 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12976 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12977 if test "${gcc_cv_header_string+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 #include <string.h>
12983 #include <strings.h>
12992 if ac_fn_c_try_compile "$LINENO"; then :
12993 gcc_cv_header_string=yes
12995 gcc_cv_header_string=no
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13000 $as_echo "$gcc_cv_header_string" >&6; }
13001 if test $gcc_cv_header_string = yes; then
13003 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13008 # for constant arguments. Useless!
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13010 $as_echo_n "checking for working alloca.h... " >&6; }
13011 if test "${ac_cv_working_alloca_h+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13016 #include <alloca.h>
13020 char *p = (char *) alloca (2 * sizeof (int));
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 ac_cv_working_alloca_h=yes
13029 ac_cv_working_alloca_h=no
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13035 $as_echo "$ac_cv_working_alloca_h" >&6; }
13036 if test $ac_cv_working_alloca_h = yes; then
13038 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13043 $as_echo_n "checking for alloca... " >&6; }
13044 if test "${ac_cv_func_alloca_works+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13050 # define alloca __builtin_alloca
13053 # include <malloc.h>
13054 # define alloca _alloca
13056 # ifdef HAVE_ALLOCA_H
13057 # include <alloca.h>
13062 # ifndef alloca /* predefined by HP cc +Olibcalls */
13073 char *p = (char *) alloca (1);
13079 if ac_fn_c_try_link "$LINENO"; then :
13080 ac_cv_func_alloca_works=yes
13082 ac_cv_func_alloca_works=no
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13088 $as_echo "$ac_cv_func_alloca_works" >&6; }
13090 if test $ac_cv_func_alloca_works = yes; then
13092 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13095 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13096 # that cause trouble. Some versions do not even contain alloca or
13097 # contain a buggy version. If you still want to use their alloca,
13098 # use ar to extract alloca.o from them instead of compiling alloca.c.
13100 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13102 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13106 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13107 if test "${ac_cv_os_cray+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #if defined CRAY && ! defined CRAY2
13119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13120 $EGREP "webecray" >/dev/null 2>&1; then :
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13129 $as_echo "$ac_cv_os_cray" >&6; }
13130 if test $ac_cv_os_cray = yes; then
13131 for ac_func in _getb67 GETB67 getb67; do
13132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13134 eval as_val=\$$as_ac_var
13135 if test "x$as_val" = x""yes; then :
13137 cat >>confdefs.h <<_ACEOF
13138 #define CRAY_STACKSEG_END $ac_func
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13148 $as_echo_n "checking stack direction for C alloca... " >&6; }
13149 if test "${ac_cv_c_stack_direction+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13152 if test "$cross_compiling" = yes; then :
13153 ac_cv_c_stack_direction=0
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 $ac_includes_default
13159 find_stack_direction ()
13161 static char *addr = 0;
13166 return find_stack_direction ();
13169 return (&dummy > addr) ? 1 : -1;
13175 return find_stack_direction () < 0;
13178 if ac_fn_c_try_run "$LINENO"; then :
13179 ac_cv_c_stack_direction=1
13181 ac_cv_c_stack_direction=-1
13183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13184 conftest.$ac_objext conftest.beam conftest.$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13189 $as_echo "$ac_cv_c_stack_direction" >&6; }
13190 cat >>confdefs.h <<_ACEOF
13191 #define STACK_DIRECTION $ac_cv_c_stack_direction
13197 for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13201 eval as_val=\$$as_ac_var
13202 if test "x$as_val" = x""yes; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13210 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13211 if test "x$ac_cv_func_mkstemp" = x""yes; then :
13213 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13217 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13218 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
13220 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13225 $as_echo_n "checking for mbstate_t... " >&6; }
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13232 mbstate_t teststate;
13237 if ac_fn_c_try_compile "$LINENO"; then :
13242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13244 $as_echo "$have_mbstate_t" >&6; }
13245 if test x"$have_mbstate_t" = xyes; then
13247 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13251 # Some systems have frexp only in -lm, not in -lc.
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13253 $as_echo_n "checking for library containing frexp... " >&6; }
13254 if test "${ac_cv_search_frexp+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13257 ac_func_search_save_LIBS=$LIBS
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13261 /* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13276 for ac_lib in '' m; do
13277 if test -z "$ac_lib"; then
13278 ac_res="none required"
13281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 ac_cv_search_frexp=$ac_res
13286 rm -f core conftest.err conftest.$ac_objext \
13288 if test "${ac_cv_search_frexp+set}" = set; then :
13292 if test "${ac_cv_search_frexp+set}" = set; then :
13295 ac_cv_search_frexp=no
13297 rm conftest.$ac_ext
13298 LIBS=$ac_func_search_save_LIBS
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13301 $as_echo "$ac_cv_search_frexp" >&6; }
13302 ac_res=$ac_cv_search_frexp
13303 if test "$ac_res" != no; then :
13304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13311 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13312 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <locale.h>
13326 if ac_fn_c_try_link "$LINENO"; then :
13327 am_cv_val_LC_MESSAGES=yes
13329 am_cv_val_LC_MESSAGES=no
13331 rm -f core conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13335 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13336 if test $am_cv_val_LC_MESSAGES = yes; then
13338 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13344 $as_echo_n "checking for time_t in time.h... " >&6; }
13345 if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13359 if ac_fn_c_try_compile "$LINENO"; then :
13360 bu_cv_decl_time_t_time_h=yes
13362 bu_cv_decl_time_t_time_h=no
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13368 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13369 if test $bu_cv_decl_time_t_time_h = yes; then
13371 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13376 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
13377 if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <sys/types.h>
13391 if ac_fn_c_try_compile "$LINENO"; then :
13392 bu_cv_decl_time_t_types_h=yes
13394 bu_cv_decl_time_t_types_h=no
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13400 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13401 if test $bu_cv_decl_time_t_types_h = yes; then
13403 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13408 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13409 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <unistd.h>
13418 extern int getopt (int, char *const*, const char *);
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 bu_cv_decl_getopt_unistd_h=yes
13426 bu_cv_decl_getopt_unistd_h=no
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13432 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13433 if test $bu_cv_decl_getopt_unistd_h = yes; then
13435 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13439 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13442 $as_echo_n "checking for utime.h... " >&6; }
13443 if test "${bu_cv_header_utime_h+set}" = set; then :
13444 $as_echo_n "(cached) " >&6
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <sys/types.h>
13461 if ac_fn_c_try_compile "$LINENO"; then :
13462 bu_cv_header_utime_h=yes
13464 bu_cv_header_utime_h=no
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13470 $as_echo "$bu_cv_header_utime_h" >&6; }
13471 if test $bu_cv_header_utime_h = yes; then
13473 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13477 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13478 if test "x$ac_cv_have_decl_environ" = x""yes; then :
13484 cat >>confdefs.h <<_ACEOF
13485 #define HAVE_DECL_ENVIRON $ac_have_decl
13487 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
13488 if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
13494 cat >>confdefs.h <<_ACEOF
13495 #define HAVE_DECL_FPRINTF $ac_have_decl
13497 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13498 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
13504 cat >>confdefs.h <<_ACEOF
13505 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13507 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13508 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_DECL_GETENV $ac_have_decl
13517 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13518 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_DECL_SBRK $ac_have_decl
13527 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13528 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_DECL_SNPRINTF $ac_have_decl
13537 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13538 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13544 cat >>confdefs.h <<_ACEOF
13545 #define HAVE_DECL_STPCPY $ac_have_decl
13547 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13548 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
13554 cat >>confdefs.h <<_ACEOF
13555 #define HAVE_DECL_STRNLEN $ac_have_decl
13557 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13558 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_DECL_STRSTR $ac_have_decl
13567 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13568 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13574 cat >>confdefs.h <<_ACEOF
13575 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13579 # Link in zlib if we can. This allows us to read compressed debug
13580 # sections. This is used only by readelf.c (objdump uses bfd for
13581 # reading compressed sections).
13583 # Use the system's zlib library.
13584 zlibdir="-L\$(top_builddir)/../zlib"
13585 zlibinc="-I\$(top_srcdir)/../zlib"
13587 # Check whether --with-system-zlib was given.
13588 if test "${with_system_zlib+set}" = set; then :
13589 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13602 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13604 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13608 # target-specific stuff:
13610 # Canonicalize the secondary target names.
13611 if test -n "$enable_targets"; then
13612 for targ in `echo $enable_targets | sed 's/,/ /g'`
13614 result=`$ac_config_sub $targ 2>/dev/null`
13615 if test -n "$result"; then
13616 canon_targets="$canon_targets $result"
13618 # Allow targets that config.sub doesn't recognize, like "all".
13619 canon_targets="$canon_targets $targ"
13624 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13625 if test "x$ac_cv_header_iconv_h" = x""yes; then :
13631 if test "X$prefix" = "XNONE"; then
13632 acl_final_prefix="$ac_default_prefix"
13634 acl_final_prefix="$prefix"
13636 if test "X$exec_prefix" = "XNONE"; then
13637 acl_final_exec_prefix='${prefix}'
13639 acl_final_exec_prefix="$exec_prefix"
13641 acl_save_prefix="$prefix"
13642 prefix="$acl_final_prefix"
13643 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13644 prefix="$acl_save_prefix"
13647 # Check whether --with-gnu-ld was given.
13648 if test "${with_gnu_ld+set}" = set; then :
13649 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13654 # Prepare PATH_SEPARATOR.
13655 # The user is always right.
13656 if test "${PATH_SEPARATOR+set}" != set; then
13657 echo "#! /bin/sh" >conf$$.sh
13658 echo "exit 0" >>conf$$.sh
13660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13668 if test "$GCC" = yes; then
13669 # Check if gcc -print-prog-name=ld gives a path.
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13671 $as_echo_n "checking for ld used by GCC... " >&6; }
13674 # gcc leaves a trailing carriage return which upsets mingw
13675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13680 # Accept absolute paths.
13681 [\\/]* | [A-Za-z]:[\\/]*)
13682 re_direlt='/[^/][^/]*/\.\./'
13683 # Canonicalize the path of ld
13684 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13685 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13686 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13688 test -z "$LD" && LD="$ac_prog"
13691 # If it fails, then pretend we aren't using GCC.
13695 # If it is relative, then search for the first ld in PATH.
13696 with_gnu_ld=unknown
13699 elif test "$with_gnu_ld" = yes; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13701 $as_echo_n "checking for GNU ld... " >&6; }
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13704 $as_echo_n "checking for non-GNU ld... " >&6; }
13706 if test "${acl_cv_path_LD+set}" = set; then :
13707 $as_echo_n "(cached) " >&6
13709 if test -z "$LD"; then
13710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13711 for ac_dir in $PATH; do
13712 test -z "$ac_dir" && ac_dir=.
13713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13714 acl_cv_path_LD="$ac_dir/$ac_prog"
13715 # Check to see if the program is GNU ld. I'd rather use --version,
13716 # but apparently some GNU ld's only accept -v.
13717 # Break only if it was the GNU/non-GNU ld that we prefer.
13718 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13719 test "$with_gnu_ld" != no && break
13721 test "$with_gnu_ld" != yes && break
13727 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13731 LD="$acl_cv_path_LD"
13732 if test -n "$LD"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13734 $as_echo "$LD" >&6; }
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13739 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13742 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13745 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13746 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13747 acl_cv_prog_gnu_ld=yes
13749 acl_cv_prog_gnu_ld=no
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13753 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13754 with_gnu_ld=$acl_cv_prog_gnu_ld
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13759 $as_echo_n "checking for shared library run path origin... " >&6; }
13760 if test "${acl_cv_rpath+set}" = set; then :
13761 $as_echo_n "(cached) " >&6
13764 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13765 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13767 rm -f ./conftest.sh
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13772 $as_echo "$acl_cv_rpath" >&6; }
13774 libext="$acl_cv_libext"
13775 shlibext="$acl_cv_shlibext"
13776 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13777 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13778 hardcode_direct="$acl_cv_hardcode_direct"
13779 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13780 # Check whether --enable-rpath was given.
13781 if test "${enable_rpath+set}" = set; then :
13782 enableval=$enable_rpath; :
13796 acl_save_prefix="$prefix"
13797 prefix="$acl_final_prefix"
13798 acl_save_exec_prefix="$exec_prefix"
13799 exec_prefix="$acl_final_exec_prefix"
13801 eval additional_includedir=\"$includedir\"
13802 eval additional_libdir=\"$libdir\"
13804 exec_prefix="$acl_save_exec_prefix"
13805 prefix="$acl_save_prefix"
13808 # Check whether --with-libiconv-prefix was given.
13809 if test "${with_libiconv_prefix+set}" = set; then :
13810 withval=$with_libiconv_prefix;
13811 if test "X$withval" = "Xno"; then
13814 if test "X$withval" = "X"; then
13816 acl_save_prefix="$prefix"
13817 prefix="$acl_final_prefix"
13818 acl_save_exec_prefix="$exec_prefix"
13819 exec_prefix="$acl_final_exec_prefix"
13821 eval additional_includedir=\"$includedir\"
13822 eval additional_libdir=\"$libdir\"
13824 exec_prefix="$acl_save_exec_prefix"
13825 prefix="$acl_save_prefix"
13828 additional_includedir="$withval/include"
13829 additional_libdir="$withval/lib"
13840 names_already_handled=
13841 names_next_round='iconv '
13842 while test -n "$names_next_round"; do
13843 names_this_round="$names_next_round"
13845 for name in $names_this_round; do
13847 for n in $names_already_handled; do
13848 if test "$n" = "$name"; then
13849 already_handled=yes
13853 if test -z "$already_handled"; then
13854 names_already_handled="$names_already_handled $name"
13855 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13856 eval value=\"\$HAVE_LIB$uppername\"
13857 if test -n "$value"; then
13858 if test "$value" = yes; then
13859 eval value=\"\$LIB$uppername\"
13860 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13861 eval value=\"\$LTLIB$uppername\"
13862 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13871 if test $use_additional = yes; then
13872 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13873 found_dir="$additional_libdir"
13874 found_so="$additional_libdir/lib$name.$shlibext"
13875 if test -f "$additional_libdir/lib$name.la"; then
13876 found_la="$additional_libdir/lib$name.la"
13879 if test -f "$additional_libdir/lib$name.$libext"; then
13880 found_dir="$additional_libdir"
13881 found_a="$additional_libdir/lib$name.$libext"
13882 if test -f "$additional_libdir/lib$name.la"; then
13883 found_la="$additional_libdir/lib$name.la"
13888 if test "X$found_dir" = "X"; then
13889 for x in $LDFLAGS $LTLIBICONV; do
13891 acl_save_prefix="$prefix"
13892 prefix="$acl_final_prefix"
13893 acl_save_exec_prefix="$exec_prefix"
13894 exec_prefix="$acl_final_exec_prefix"
13896 exec_prefix="$acl_save_exec_prefix"
13897 prefix="$acl_save_prefix"
13901 dir=`echo "X$x" | sed -e 's/^X-L//'`
13902 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13904 found_so="$dir/lib$name.$shlibext"
13905 if test -f "$dir/lib$name.la"; then
13906 found_la="$dir/lib$name.la"
13909 if test -f "$dir/lib$name.$libext"; then
13911 found_a="$dir/lib$name.$libext"
13912 if test -f "$dir/lib$name.la"; then
13913 found_la="$dir/lib$name.la"
13919 if test "X$found_dir" != "X"; then
13924 if test "X$found_dir" != "X"; then
13925 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13926 if test "X$found_so" != "X"; then
13927 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13931 for x in $ltrpathdirs; do
13932 if test "X$x" = "X$found_dir"; then
13937 if test -z "$haveit"; then
13938 ltrpathdirs="$ltrpathdirs $found_dir"
13940 if test "$hardcode_direct" = yes; then
13941 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13943 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13944 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13946 for x in $rpathdirs; do
13947 if test "X$x" = "X$found_dir"; then
13952 if test -z "$haveit"; then
13953 rpathdirs="$rpathdirs $found_dir"
13957 for x in $LDFLAGS $LIBICONV; do
13959 acl_save_prefix="$prefix"
13960 prefix="$acl_final_prefix"
13961 acl_save_exec_prefix="$exec_prefix"
13962 exec_prefix="$acl_final_exec_prefix"
13964 exec_prefix="$acl_save_exec_prefix"
13965 prefix="$acl_save_prefix"
13967 if test "X$x" = "X-L$found_dir"; then
13972 if test -z "$haveit"; then
13973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13975 if test "$hardcode_minus_L" != no; then
13976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13978 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13984 if test "X$found_a" != "X"; then
13985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13987 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13990 additional_includedir=
13991 case "$found_dir" in
13993 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13994 additional_includedir="$basedir/include"
13997 if test "X$additional_includedir" != "X"; then
13998 if test "X$additional_includedir" != "X/usr/include"; then
14000 if test "X$additional_includedir" = "X/usr/local/include"; then
14001 if test -n "$GCC"; then
14003 linux*) haveit=yes;;
14007 if test -z "$haveit"; then
14008 for x in $CPPFLAGS $INCICONV; do
14010 acl_save_prefix="$prefix"
14011 prefix="$acl_final_prefix"
14012 acl_save_exec_prefix="$exec_prefix"
14013 exec_prefix="$acl_final_exec_prefix"
14015 exec_prefix="$acl_save_exec_prefix"
14016 prefix="$acl_save_prefix"
14018 if test "X$x" = "X-I$additional_includedir"; then
14023 if test -z "$haveit"; then
14024 if test -d "$additional_includedir"; then
14025 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14031 if test -n "$found_la"; then
14032 save_libdir="$libdir"
14033 case "$found_la" in
14034 */* | *\\*) . "$found_la" ;;
14035 *) . "./$found_la" ;;
14037 libdir="$save_libdir"
14038 for dep in $dependency_libs; do
14041 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14042 if test "X$additional_libdir" != "X/usr/lib"; then
14044 if test "X$additional_libdir" = "X/usr/local/lib"; then
14045 if test -n "$GCC"; then
14047 linux*) haveit=yes;;
14051 if test -z "$haveit"; then
14053 for x in $LDFLAGS $LIBICONV; do
14055 acl_save_prefix="$prefix"
14056 prefix="$acl_final_prefix"
14057 acl_save_exec_prefix="$exec_prefix"
14058 exec_prefix="$acl_final_exec_prefix"
14060 exec_prefix="$acl_save_exec_prefix"
14061 prefix="$acl_save_prefix"
14063 if test "X$x" = "X-L$additional_libdir"; then
14068 if test -z "$haveit"; then
14069 if test -d "$additional_libdir"; then
14070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14074 for x in $LDFLAGS $LTLIBICONV; do
14076 acl_save_prefix="$prefix"
14077 prefix="$acl_final_prefix"
14078 acl_save_exec_prefix="$exec_prefix"
14079 exec_prefix="$acl_final_exec_prefix"
14081 exec_prefix="$acl_save_exec_prefix"
14082 prefix="$acl_save_prefix"
14084 if test "X$x" = "X-L$additional_libdir"; then
14089 if test -z "$haveit"; then
14090 if test -d "$additional_libdir"; then
14091 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14098 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14099 if test "$enable_rpath" != no; then
14101 for x in $rpathdirs; do
14102 if test "X$x" = "X$dir"; then
14107 if test -z "$haveit"; then
14108 rpathdirs="$rpathdirs $dir"
14111 for x in $ltrpathdirs; do
14112 if test "X$x" = "X$dir"; then
14117 if test -z "$haveit"; then
14118 ltrpathdirs="$ltrpathdirs $dir"
14123 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14129 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14136 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14143 if test "X$rpathdirs" != "X"; then
14144 if test -n "$hardcode_libdir_separator"; then
14146 for found_dir in $rpathdirs; do
14147 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14149 acl_save_libdir="$libdir"
14151 eval flag=\"$hardcode_libdir_flag_spec\"
14152 libdir="$acl_save_libdir"
14153 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14155 for found_dir in $rpathdirs; do
14156 acl_save_libdir="$libdir"
14157 libdir="$found_dir"
14158 eval flag=\"$hardcode_libdir_flag_spec\"
14159 libdir="$acl_save_libdir"
14160 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14164 if test "X$ltrpathdirs" != "X"; then
14165 for found_dir in $ltrpathdirs; do
14166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14177 $as_echo_n "checking for iconv... " >&6; }
14178 if test "${am_cv_func_iconv+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14182 am_cv_func_iconv="no, consider installing GNU libiconv"
14184 am_save_CPPFLAGS="$CPPFLAGS"
14185 CPPFLAGS="$CPPFLAGS $INCICONV"
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 #include <stdlib.h>
14193 iconv_t cd = iconv_open("","");
14194 iconv(cd,NULL,NULL,NULL,NULL);
14200 if ac_fn_c_try_link "$LINENO"; then :
14201 am_cv_func_iconv=yes
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 CPPFLAGS="$am_save_CPPFLAGS"
14207 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14208 for _libs in .libs _libs; do
14209 am_save_CPPFLAGS="$CPPFLAGS"
14210 am_save_LIBS="$LIBS"
14211 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14212 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 #include <stdlib.h>
14220 iconv_t cd = iconv_open("","");
14221 iconv(cd,NULL,NULL,NULL,NULL);
14227 if ac_fn_c_try_link "$LINENO"; then :
14228 INCICONV="-I../libiconv/include"
14229 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14230 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14231 am_cv_lib_iconv=yes
14232 am_cv_func_iconv=yes
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 CPPFLAGS="$am_save_CPPFLAGS"
14237 LIBS="$am_save_LIBS"
14238 if test "$am_cv_func_iconv" = "yes"; then
14244 if test "$am_cv_func_iconv" != yes; then
14245 am_save_CPPFLAGS="$CPPFLAGS"
14246 am_save_LIBS="$LIBS"
14247 CPPFLAGS="$LIBS $INCICONV"
14248 LIBS="$LIBS $LIBICONV"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 #include <stdlib.h>
14256 iconv_t cd = iconv_open("","");
14257 iconv(cd,NULL,NULL,NULL,NULL);
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 am_cv_lib_iconv=yes
14265 am_cv_func_iconv=yes
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 CPPFLAGS="$am_save_CPPFLAGS"
14270 LIBS="$am_save_LIBS"
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14275 $as_echo "$am_cv_func_iconv" >&6; }
14276 if test "$am_cv_func_iconv" = yes; then
14278 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14281 if test "$am_cv_lib_iconv" = yes; then
14283 for element in $INCICONV; do
14285 for x in $CPPFLAGS; do
14287 acl_save_prefix="$prefix"
14288 prefix="$acl_final_prefix"
14289 acl_save_exec_prefix="$exec_prefix"
14290 exec_prefix="$acl_final_exec_prefix"
14292 exec_prefix="$acl_save_exec_prefix"
14293 prefix="$acl_save_prefix"
14295 if test "X$x" = "X$element"; then
14300 if test -z "$haveit"; then
14301 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14306 $as_echo_n "checking how to link with libiconv... " >&6; }
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14308 $as_echo "$LIBICONV" >&6; }
14316 if test "$am_cv_func_iconv" = yes; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14318 $as_echo_n "checking for iconv declaration... " >&6; }
14319 if test "${am_cv_proto_iconv+set}" = set; then :
14320 $as_echo_n "(cached) " >&6
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14326 #include <stdlib.h>
14332 #if defined(__STDC__) || defined(__cplusplus)
14333 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 am_cv_proto_iconv_arg1=""
14349 am_cv_proto_iconv_arg1="const"
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 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);"
14355 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14357 }$am_cv_proto_iconv" >&5
14359 }$am_cv_proto_iconv" >&6; }
14361 cat >>confdefs.h <<_ACEOF
14362 #define ICONV_CONST $am_cv_proto_iconv_arg1
14379 BUILD_INSTALL_MISC=
14381 OBJDUMP_PRIVATE_VECTORS=
14382 OBJDUMP_PRIVATE_OFILES=
14385 for targ in $target $canon_targets
14387 if test "x$targ" = "xall"; then
14389 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14390 BUILD_SRCONV='$(SRCONV_PROG)'
14391 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14392 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14393 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14394 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14395 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14396 if test -z "$DLLTOOL_DEFAULT"; then
14397 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14399 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14400 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14401 od_vectors="$od_vectors objdump_private_desc_xcoff"
14404 i[3-7]86*-*-netware*)
14405 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14406 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14409 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14410 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14412 powerpc*-*-netware*)
14413 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14414 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14417 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14418 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14423 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14428 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14429 if test -z "$DLLTOOL_DEFAULT"; then
14430 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14432 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14433 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14434 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14436 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14437 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14438 if test -z "$DLLTOOL_DEFAULT"; then
14439 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14441 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14442 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14443 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14446 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14447 if test -z "$DLLTOOL_DEFAULT"; then
14448 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14450 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14451 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14452 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14454 x86_64-*-mingw* | x86_64-*-cygwin*)
14455 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14456 if test -z "$DLLTOOL_DEFAULT"; then
14457 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14459 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14460 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14461 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14462 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14464 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14465 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14466 if test -z "$DLLTOOL_DEFAULT"; then
14467 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14469 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14470 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14471 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14472 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14474 i[3-7]86-*-interix)
14475 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14476 if test -z "$DLLTOOL_DEFAULT"; then
14477 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14479 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14481 powerpc*-aix5.[01])
14483 powerpc*-aix[5-9].*)
14484 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14486 powerpc*-*-pe* | powerpc*-*-cygwin*)
14487 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14488 if test -z "$DLLTOOL_DEFAULT"; then
14489 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14491 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14492 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14493 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14495 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14496 case "$BUILD_INSTALL_MISC" in
14498 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14502 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14503 if test -z "$DLLTOOL_DEFAULT"; then
14504 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14506 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14507 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14508 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14511 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14514 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14515 if test -z "$DLLTOOL_DEFAULT"; then
14516 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14518 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14519 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14520 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14523 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14524 if test -z "$DLLTOOL_DEFAULT"; then
14525 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14527 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14528 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14529 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14532 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14533 if test -z "$DLLTOOL_DEFAULT"; then
14534 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14536 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14539 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14543 # Add objdump private vectors.
14546 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14549 od_vectors="$od_vectors objdump_private_desc_xcoff"
14552 od_vectors="$od_vectors objdump_private_desc_mach_o"
14558 # Uniq objdump private vector, build objdump target ofiles.
14561 for i in $od_vectors ; do
14566 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14568 objdump_private_desc_elf32_avr)
14569 od_files="$od_files od-elf32_avr" ;;
14570 objdump_private_desc_xcoff)
14571 od_files="$od_files od-xcoff" ;;
14572 objdump_private_desc_mach_o)
14573 od_files="$od_files od-macho" ;;
14574 *) as_fn_error "*** unknown private vector $i" "$LINENO" 5 ;;
14580 # Uniq objdump target ofiles
14582 for i in $od_files ; do
14587 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14592 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14594 if test "${with_windres+set}" = set; then
14595 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14598 if test "${with_windmc+set}" = set; then
14599 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14602 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14618 cat >>confdefs.h <<_ACEOF
14619 #define TARGET "${target}"
14624 . $srcdir/../bfd/config.bfd
14625 if test "x$targ_underscore" = "xyes"; then
14631 cat >>confdefs.h <<_ACEOF
14632 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14638 . ${srcdir}/configure.tgt
14639 EMULATION=$targ_emul
14640 EMULATION_VECTOR=$targ_emul_vector
14645 # Required for html and install-html
14651 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14653 cat >confcache <<\_ACEOF
14654 # This file is a shell script that caches the results of configure
14655 # tests run on this system so they can be shared between configure
14656 # scripts and configure runs, see configure's option --config-cache.
14657 # It is not useful on other systems. If it contains results you don't
14658 # want to keep, you may remove or edit it.
14660 # config.status only pays attention to the cache file if you give it
14661 # the --recheck option to rerun configure.
14663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14665 # following values.
14669 # The following way of writing the cache mishandles newlines in values,
14670 # but we know of no workaround that is simple, portable, and efficient.
14671 # So, we kill variables containing newlines.
14672 # Ultrix sh set writes to stderr and can't be redirected directly,
14673 # and sets the high bit in the cache file unless we assign to the vars.
14675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14676 eval ac_val=\$$ac_var
14680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14684 _ | IFS | as_nl) ;; #(
14685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14686 *) { eval $ac_var=; unset $ac_var;} ;;
14692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14693 *${as_nl}ac_space=\ *)
14694 # `set' does not quote correctly, so add quotes: double-quote
14695 # substitution turns \\\\ into \\, and sed turns \\ into \.
14698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14701 # `set' quotes correctly as required by POSIX, so do not add quotes.
14702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14716 if test -w "$cache_file"; then
14717 test "x$cache_file" != "x/dev/null" &&
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14719 $as_echo "$as_me: updating cache $cache_file" >&6;}
14720 cat confcache >$cache_file
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14729 # Let make expand exec_prefix.
14730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14732 DEFS=-DHAVE_CONFIG_H
14736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14737 # 1. Remove the extension, and $U if already installed.
14738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14739 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14741 # will be set to the directory where LIBOBJS objects are built.
14742 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14743 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14745 LIBOBJS=$ac_libobjs
14747 LTLIBOBJS=$ac_ltlibobjs
14750 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14751 as_fn_error "conditional \"AMDEP\" was never defined.
14752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14754 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14755 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14758 if test -n "$EXEEXT"; then
14760 am__EXEEXT_FALSE='#'
14762 am__EXEEXT_TRUE='#'
14766 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14767 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14770 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14771 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14775 : ${CONFIG_STATUS=./config.status}
14777 ac_clean_files_save=$ac_clean_files
14778 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14780 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14782 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14784 # Generated by $as_me.
14785 # Run this file to recreate the current configuration.
14786 # Compiler output produced by configure, useful for debugging
14787 # configure, is in config.log if it exists.
14790 ac_cs_recheck=false
14793 SHELL=\${CONFIG_SHELL-$SHELL}
14796 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14797 ## -------------------- ##
14798 ## M4sh Initialization. ##
14799 ## -------------------- ##
14801 # Be more Bourne compatible
14802 DUALCASE=1; export DUALCASE # for MKS sh
14803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14807 # is contrary to our usage. Disable this feature.
14808 alias -g '${1+"$@"}'='"$@"'
14809 setopt NO_GLOB_SUBST
14811 case `(set -o) 2>/dev/null` in #(
14823 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14824 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14827 # Prefer a ksh shell builtin over an external printf program on Solaris,
14828 # but without wasting forks for bash or zsh.
14829 if test -z "$BASH_VERSION$ZSH_VERSION" \
14830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14831 as_echo='print -r --'
14832 as_echo_n='print -rn --'
14833 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14834 as_echo='printf %s\n'
14835 as_echo_n='printf %s'
14837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14839 as_echo_n='/usr/ucb/echo -n'
14841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14842 as_echo_n_body='eval
14846 expr "X$arg" : "X\\(.*\\)$as_nl";
14847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14851 export as_echo_n_body
14852 as_echo_n='sh -c $as_echo_n_body as_echo'
14854 export as_echo_body
14855 as_echo='sh -c $as_echo_body as_echo'
14858 # The user is always right.
14859 if test "${PATH_SEPARATOR+set}" != set; then
14861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14869 # We need space, tab and new line, in precisely that order. Quoting is
14870 # there to prevent editors from complaining about space-tab.
14871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14872 # splitting by setting IFS to empty value.)
14875 # Find who we are. Look in the path if we contain no directory separator.
14877 *[\\/]* ) as_myself=$0 ;;
14878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14882 test -z "$as_dir" && as_dir=.
14883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14889 # We did not find ourselves, most probably we were run as `sh COMMAND'
14890 # in which case we are not to be found in the path.
14891 if test "x$as_myself" = x; then
14894 if test ! -f "$as_myself"; then
14895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14899 # Unset variables that we do not need and which cause bugs (e.g. in
14900 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14901 # suppresses any "Segmentation fault" message there. '((' could
14902 # trigger a bug in pdksh 5.2.14.
14903 for as_var in BASH_ENV ENV MAIL MAILPATH
14904 do eval test x\${$as_var+set} = xset \
14905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14921 # as_fn_error ERROR [LINENO LOG_FD]
14922 # ---------------------------------
14923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14925 # script with status $?, using 1 if that was 0.
14928 as_status=$?; test $as_status -eq 0 && as_status=1
14930 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14933 $as_echo "$as_me: error: $1" >&2
14934 as_fn_exit $as_status
14938 # as_fn_set_status STATUS
14939 # -----------------------
14940 # Set $? to STATUS, without forking.
14941 as_fn_set_status ()
14944 } # as_fn_set_status
14946 # as_fn_exit STATUS
14947 # -----------------
14948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14952 as_fn_set_status $1
14958 # Portably unset VAR.
14961 { eval $1=; unset $1;}
14963 as_unset=as_fn_unset
14964 # as_fn_append VAR VALUE
14965 # ----------------------
14966 # Append the text in VALUE to the end of the definition contained in VAR. Take
14967 # advantage of any shell optimizations that allow amortized linear growth over
14968 # repeated appends, instead of the typical quadratic growth present in naive
14970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14971 eval 'as_fn_append ()
14982 # as_fn_arith ARG...
14983 # ------------------
14984 # Perform arithmetic evaluation on the ARGs, and store the result in the
14985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14986 # must be portable across $(()) and expr.
14987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14988 eval 'as_fn_arith ()
14995 as_val=`expr "$@" || test $? -eq 1`
15000 if expr a : '\(a\)' >/dev/null 2>&1 &&
15001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15007 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15008 as_basename=basename
15013 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15019 as_me=`$as_basename -- "$0" ||
15020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15021 X"$0" : 'X\(//\)$' \| \
15022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15024 sed '/^.*\/\([^/][^/]*\)\/*$/{
15038 # Avoid depending upon Character Ranges.
15039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15042 as_cr_digits='0123456789'
15043 as_cr_alnum=$as_cr_Letters$as_cr_digits
15045 ECHO_C= ECHO_N= ECHO_T=
15046 case `echo -n x` in #(((((
15048 case `echo 'xy\c'` in
15049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15058 rm -f conf$$ conf$$.exe conf$$.file
15059 if test -d conf$$.dir; then
15060 rm -f conf$$.dir/conf$$.file
15063 mkdir conf$$.dir 2>/dev/null
15065 if (echo >conf$$.file) 2>/dev/null; then
15066 if ln -s conf$$.file conf$$ 2>/dev/null; then
15068 # ... but there are two gotchas:
15069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15071 # In both cases, we have to default to `cp -p'.
15072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15074 elif ln conf$$.file conf$$ 2>/dev/null; then
15082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15083 rmdir conf$$.dir 2>/dev/null
15088 # Create "$as_dir" as a directory, including parents if necessary.
15093 -*) as_dir=./$as_dir;;
15095 test -d "$as_dir" || eval $as_mkdir_p || {
15099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15100 *) as_qdir=$as_dir;;
15102 as_dirs="'$as_qdir' $as_dirs"
15103 as_dir=`$as_dirname -- "$as_dir" ||
15104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105 X"$as_dir" : 'X\(//\)[^/]' \| \
15106 X"$as_dir" : 'X\(//\)$' \| \
15107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15108 $as_echo X"$as_dir" |
15109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15113 /^X\(\/\/\)[^/].*/{
15126 test -d "$as_dir" && break
15128 test -z "$as_dirs" || eval "mkdir $as_dirs"
15129 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15133 if mkdir -p . 2>/dev/null; then
15134 as_mkdir_p='mkdir -p "$as_dir"'
15136 test -d ./-p && rmdir ./-p
15140 if test -x / >/dev/null 2>&1; then
15141 as_test_x='test -x'
15143 if ls -dL / >/dev/null 2>&1; then
15150 if test -d "$1"; then
15156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15157 ???[sx]*):;;*)false;;esac;fi
15161 as_executable_p=$as_test_x
15163 # Sed expression to map a string onto a valid CPP name.
15164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15166 # Sed expression to map a string onto a valid variable name.
15167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15171 ## ----------------------------------- ##
15172 ## Main body of $CONFIG_STATUS script. ##
15173 ## ----------------------------------- ##
15175 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178 # Save the log message, to keep $0 and so on meaningful, and to
15179 # report actual input values of CONFIG_FILES etc. instead of their
15180 # values after options handling.
15182 This file was extended by binutils $as_me 2.26.51, which was
15183 generated by GNU Autoconf 2.64. Invocation command line was
15185 CONFIG_FILES = $CONFIG_FILES
15186 CONFIG_HEADERS = $CONFIG_HEADERS
15187 CONFIG_LINKS = $CONFIG_LINKS
15188 CONFIG_COMMANDS = $CONFIG_COMMANDS
15191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15196 case $ac_config_files in *"
15197 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15200 case $ac_config_headers in *"
15201 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206 # Files that config.status was made for.
15207 config_files="$ac_config_files"
15208 config_headers="$ac_config_headers"
15209 config_commands="$ac_config_commands"
15213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15215 \`$as_me' instantiates files and other configuration actions
15216 from templates according to the current configuration. Unless the files
15217 and actions are specified as TAGs, all are instantiated by default.
15219 Usage: $0 [OPTION]... [TAG]...
15221 -h, --help print this help, then exit
15222 -V, --version print version number and configuration settings, then exit
15223 -q, --quiet, --silent
15224 do not print progress messages
15225 -d, --debug don't remove temporary files
15226 --recheck update $as_me by reconfiguring in the same conditions
15227 --file=FILE[:TEMPLATE]
15228 instantiate the configuration file FILE
15229 --header=FILE[:TEMPLATE]
15230 instantiate the configuration header FILE
15232 Configuration files:
15235 Configuration headers:
15238 Configuration commands:
15241 Report bugs to the package provider."
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15246 binutils config.status 2.26.51
15247 configured by $0, generated by GNU Autoconf 2.64,
15248 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15250 Copyright (C) 2009 Free Software Foundation, Inc.
15251 This config.status script is free software; the Free Software Foundation
15252 gives unlimited permission to copy, distribute and modify it."
15259 test -n "\$AWK" || AWK=awk
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263 # The default lists apply if the user does not specify any file.
15269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15270 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15281 # Handling of the options.
15282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15285 $as_echo "$ac_cs_version"; exit ;;
15286 --debug | --debu | --deb | --de | --d | -d )
15288 --file | --fil | --fi | --f )
15291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15293 as_fn_append CONFIG_FILES " '$ac_optarg'"
15294 ac_need_defaults=false;;
15295 --header | --heade | --head | --hea )
15298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15301 ac_need_defaults=false;;
15303 # Conflict between --help and --header
15304 as_fn_error "ambiguous option: \`$1'
15305 Try \`$0 --help' for more information.";;
15306 --help | --hel | -h )
15307 $as_echo "$ac_cs_usage"; exit ;;
15308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15312 # This is an error.
15313 -*) as_fn_error "unrecognized option: \`$1'
15314 Try \`$0 --help' for more information." ;;
15316 *) as_fn_append ac_config_targets " $1"
15317 ac_need_defaults=false ;;
15323 ac_configure_extra_args=
15325 if $ac_cs_silent; then
15327 ac_configure_extra_args="$ac_configure_extra_args --silent"
15331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 if \$ac_cs_recheck; then
15333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15336 CONFIG_SHELL='$SHELL'
15337 export CONFIG_SHELL
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15347 ## Running $as_me. ##
15353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15357 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15360 # The HP-UX ksh and POSIX shell print the target directory to stdout
15361 # if CDPATH is set.
15362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15364 sed_quote_subst='$sed_quote_subst'
15365 double_quote_subst='$double_quote_subst'
15366 delay_variable_subst='$delay_variable_subst'
15367 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15368 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15369 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15370 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15371 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15372 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15373 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15374 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15375 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15376 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15377 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15378 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15379 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15380 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15381 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15382 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15383 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15384 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15385 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15386 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15387 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15388 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15389 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15390 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15391 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15392 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15393 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15394 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15395 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15396 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15397 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15398 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15399 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15400 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15401 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15402 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15403 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15404 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15405 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15406 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15407 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15408 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15409 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15410 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15411 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15412 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15413 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15414 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15415 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"`'
15416 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15417 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15418 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15419 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15420 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15421 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15422 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15423 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15424 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15425 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15426 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15427 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15428 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15429 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15430 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15431 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15432 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15433 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15434 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15435 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15436 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15437 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15438 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15439 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15440 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15441 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15442 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15443 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15444 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15445 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15446 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15447 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15448 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15449 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15450 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15451 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15452 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15453 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15454 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15455 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15456 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15457 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15458 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15459 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15460 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15461 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15462 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15463 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15464 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15465 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15466 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15467 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15468 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15469 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15470 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15471 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15472 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15473 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15474 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15475 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15476 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15477 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15478 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15479 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15480 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15481 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15482 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15483 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15484 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15485 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15486 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15489 LTCFLAGS='$LTCFLAGS'
15490 compiler='$compiler_DEFAULT'
15492 # A function that is used when there is no print builtin or printf.
15493 func_fallback_echo ()
15495 eval 'cat <<_LTECHO_EOF
15500 # Quote evaled strings.
15514 deplibs_check_method \
15523 lt_cv_sys_global_symbol_pipe \
15524 lt_cv_sys_global_symbol_to_cdecl \
15525 lt_cv_sys_global_symbol_to_c_name_address \
15526 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15527 lt_prog_compiler_no_builtin_flag \
15528 lt_prog_compiler_wl \
15529 lt_prog_compiler_pic \
15530 lt_prog_compiler_static \
15531 lt_cv_prog_compiler_c_o \
15539 export_dynamic_flag_spec \
15540 whole_archive_flag_spec \
15541 compiler_needs_object \
15543 allow_undefined_flag \
15544 no_undefined_flag \
15545 hardcode_libdir_flag_spec \
15546 hardcode_libdir_flag_spec_ld \
15547 hardcode_libdir_separator \
15552 variables_saved_for_relink \
15554 library_names_spec \
15556 install_override_mode \
15560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15561 *[\\\\\\\`\\"\\\$]*)
15562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15570 # Double-quote double-evaled strings.
15571 for var in reload_cmds \
15572 old_postinstall_cmds \
15573 old_postuninstall_cmds \
15575 extract_expsyms_cmds \
15576 old_archive_from_new_cmds \
15577 old_archive_from_expsyms_cmds \
15579 archive_expsym_cmds \
15581 module_expsym_cmds \
15582 export_symbols_cmds \
15585 postuninstall_cmds \
15587 sys_lib_search_path_spec \
15588 sys_lib_dlsearch_path_spec; do
15589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15590 *[\\\\\\\`\\"\\\$]*)
15591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15599 ac_aux_dir='$ac_aux_dir'
15600 xsi_shell='$xsi_shell'
15601 lt_shell_append='$lt_shell_append'
15603 # See if we are running on zsh, and set the options which allow our
15604 # commands through without removal of \ escapes INIT.
15605 if test -n "\${ZSH_VERSION+set}" ; then
15606 setopt NO_GLOB_SUBST
15612 TIMESTAMP='$TIMESTAMP'
15618 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15619 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15621 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15622 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15623 LINGUAS="${LINGUAS-%UNSET%}"
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630 # Handling of arguments.
15631 for ac_config_target in $ac_config_targets
15633 case $ac_config_target in
15634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15635 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15637 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15638 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15639 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15640 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15642 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15647 # If the user did not use the arguments to specify the items to instantiate,
15648 # then the envvar interface is used. Set only those that are not.
15649 # We use the long form for the default assignment because of an extremely
15650 # bizarre bug on SunOS 4.1.3.
15651 if $ac_need_defaults; then
15652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15657 # Have a temporary directory for convenience. Make it in the build tree
15658 # simply because there is no reason against having it here, and in addition,
15659 # creating and moving files from /tmp can sometimes cause problems.
15660 # Hook for its removal unless debugging.
15661 # Note that there is a small window in which the directory will not be cleaned:
15662 # after its creation but before its name has been assigned to `$tmp'.
15666 trap 'exit_status=$?
15667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15669 trap 'as_fn_exit 1' 1 2 13 15
15671 # Create a (secure) tmp directory for tmp files.
15674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15675 test -n "$tmp" && test -d "$tmp"
15678 tmp=./conf$$-$RANDOM
15679 (umask 077 && mkdir "$tmp")
15680 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15682 # Set up the scripts for CONFIG_FILES section.
15683 # No need to generate them if there are no CONFIG_FILES.
15684 # This happens for instance with `./config.status config.h'.
15685 if test -n "$CONFIG_FILES"; then
15688 ac_cr=`echo X | tr X '\015'`
15689 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15690 # But we know of no other shell where ac_cr would be empty at this
15691 # point, so we can use a bashism as a fallback.
15692 if test "x$ac_cr" = x; then
15693 eval ac_cr=\$\'\\r\'
15695 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15696 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15699 ac_cs_awk_cr=$ac_cr
15702 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15707 echo "cat >conf$$subs.awk <<_ACEOF" &&
15708 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15710 } >conf$$subs.sh ||
15711 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15712 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15714 for ac_last_try in false false false false false :; do
15715 . ./conf$$subs.sh ||
15716 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15718 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15719 if test $ac_delim_n = $ac_delim_num; then
15721 elif $ac_last_try; then
15722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15727 rm -f conf$$subs.sh
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15734 s/^/S["/; s/!.*/"]=/
15744 s/\(.\{148\}\).*/\1/
15746 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15758 s/\(.\{148\}\).*/\1/
15760 s/["\\]/\\&/g; s/^/"/; s/$/"/
15764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15769 ' <conf$$subs.awk | sed '
15774 ' >>$CONFIG_STATUS || ac_write_fail=1
15775 rm -f conf$$subs.awk
15776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15778 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15779 for (key in S) S_is_set[key] = 1
15785 nfields = split(line, field, "@")
15787 len = length(field[1])
15788 for (i = 2; i < nfields; i++) {
15790 keylen = length(key)
15791 if (S_is_set[key]) {
15793 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15794 len += length(value) + length(field[++i])
15805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15806 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15807 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15810 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15811 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15814 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15815 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15816 # trailing colons and then remove the whole line if VPATH becomes empty
15817 # (actually we leave an empty line to preserve line numbers).
15818 if test "x$srcdir" = x.; then
15819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15820 s/:*\$(srcdir):*/:/
15821 s/:*\${srcdir}:*/:/
15823 s/^\([^=]*=[ ]*\):*/\1/
15829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830 fi # test -n "$CONFIG_FILES"
15832 # Set up the scripts for CONFIG_HEADERS section.
15833 # No need to generate them if there are no CONFIG_HEADERS.
15834 # This happens for instance with `./config.status Makefile'.
15835 if test -n "$CONFIG_HEADERS"; then
15836 cat >"$tmp/defines.awk" <<\_ACAWK ||
15840 # Transform confdefs.h into an awk script `defines.awk', embedded as
15841 # here-document in config.status, that substitutes the proper values into
15842 # config.h.in to produce config.h.
15844 # Create a delimiter string that does not exist in confdefs.h, to ease
15845 # handling of long lines.
15847 for ac_last_try in false false :; do
15848 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15849 if test -z "$ac_t"; then
15851 elif $ac_last_try; then
15852 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15858 # For the awk script, D is an array of macro values keyed by name,
15859 # likewise P contains macro parameters if any. Preserve backslash
15860 # newline sequences.
15862 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15864 s/.\{148\}/&'"$ac_delim"'/g
15867 s/^[ ]*#[ ]*define[ ][ ]*/ /
15874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15881 D["\1"]=" \3\\\\\\n"\\/p
15883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15888 s/.\{148\}/&'"$ac_delim"'/g
15893 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15896 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15898 ' <confdefs.h | sed '
15899 s/'"$ac_delim"'/"\\\
15900 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903 for (key in D) D_is_set[key] = 1
15906 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15908 split(line, arg, " ")
15909 if (arg[1] == "#") {
15913 defundef = substr(arg[1], 2)
15916 split(mac1, mac2, "(") #)
15918 prefix = substr(line, 1, index(line, defundef) - 1)
15919 if (D_is_set[macro]) {
15920 # Preserve the white space surrounding the "#".
15921 print prefix "define", macro P[macro] D[macro]
15924 # Replace #undef with comments. This is necessary, for example,
15925 # in the case of _POSIX_SOURCE, which is predefined and required
15926 # on some systems where configure will not decide to define it.
15927 if (defundef == "undef") {
15928 print "/*", prefix defundef, macro, "*/"
15936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15938 fi # test -n "$CONFIG_HEADERS"
15941 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15946 :[FHLC]) ac_mode=$ac_tag; continue;;
15948 case $ac_mode$ac_tag in
15950 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15951 :[FH]-) ac_tag=-:-;;
15952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15969 -) ac_f="$tmp/stdin";;
15970 *) # Look for the file first in the build tree, then in the source tree
15971 # (if the path is not absolute). The absolute path cannot be DOS-style,
15972 # because $ac_f cannot contain `:'.
15976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15978 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15981 as_fn_append ac_file_inputs " '$ac_f'"
15984 # Let's still pretend it is `configure' which instantiates (i.e., don't
15985 # use $as_me), people would be surprised to read:
15986 # /* config.h. Generated by config.status. */
15987 configure_input='Generated from '`
15988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15990 if test x"$ac_file" != x-; then
15991 configure_input="$ac_file. $configure_input"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15993 $as_echo "$as_me: creating $ac_file" >&6;}
15995 # Neutralize special characters interpreted by sed in replacement strings.
15996 case $configure_input in #(
15997 *\&* | *\|* | *\\* )
15998 ac_sed_conf_input=`$as_echo "$configure_input" |
15999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16000 *) ac_sed_conf_input=$configure_input;;
16004 *:-:* | *:-) cat >"$tmp/stdin" \
16005 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16010 ac_dir=`$as_dirname -- "$ac_file" ||
16011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16012 X"$ac_file" : 'X\(//\)[^/]' \| \
16013 X"$ac_file" : 'X\(//\)$' \| \
16014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16015 $as_echo X"$ac_file" |
16016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16020 /^X\(\/\/\)[^/].*/{
16033 as_dir="$ac_dir"; as_fn_mkdir_p
16037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16040 # A ".." for each directory in $ac_dir_suffix.
16041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16042 case $ac_top_builddir_sub in
16043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16047 ac_abs_top_builddir=$ac_pwd
16048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16049 # for backward compatibility:
16050 ac_top_builddir=$ac_top_build_prefix
16053 .) # We are building in place.
16055 ac_top_srcdir=$ac_top_builddir_sub
16056 ac_abs_top_srcdir=$ac_pwd ;;
16057 [\\/]* | ?:[\\/]* ) # Absolute name.
16058 ac_srcdir=$srcdir$ac_dir_suffix;
16059 ac_top_srcdir=$srcdir
16060 ac_abs_top_srcdir=$srcdir ;;
16061 *) # Relative name.
16062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16063 ac_top_srcdir=$ac_top_build_prefix$srcdir
16064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16079 ac_MKDIR_P=$MKDIR_P
16081 [\\/$]* | ?:[\\/]* ) ;;
16082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16087 # If the template does not know about datarootdir, expand it.
16088 # FIXME: This hack should be removed a few years after 2.60.
16089 ac_datarootdir_hack=; ac_datarootdir_seen=
16100 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16101 *datarootdir*) ac_datarootdir_seen=yes;;
16102 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16104 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 ac_datarootdir_hack='
16108 s&@datadir@&$datadir&g
16109 s&@docdir@&$docdir&g
16110 s&@infodir@&$infodir&g
16111 s&@localedir@&$localedir&g
16112 s&@mandir@&$mandir&g
16113 s&\\\${datarootdir}&$datarootdir&g' ;;
16117 # Neutralize VPATH when `$srcdir' = `.'.
16118 # Shell code in configure.ac might set extrasub.
16119 # FIXME: do we really want to maintain this feature?
16120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121 ac_sed_extra="$ac_vpsub
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16127 s|@configure_input@|$ac_sed_conf_input|;t t
16128 s&@top_builddir@&$ac_top_builddir_sub&;t t
16129 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16130 s&@srcdir@&$ac_srcdir&;t t
16131 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16132 s&@top_srcdir@&$ac_top_srcdir&;t t
16133 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16134 s&@builddir@&$ac_builddir&;t t
16135 s&@abs_builddir@&$ac_abs_builddir&;t t
16136 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16137 s&@INSTALL@&$ac_INSTALL&;t t
16138 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16139 $ac_datarootdir_hack
16141 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16142 || as_fn_error "could not create $ac_file" "$LINENO" 5
16144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16145 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16148 which seems to be undefined. Please make sure it is defined." >&5
16149 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16150 which seems to be undefined. Please make sure it is defined." >&2;}
16154 -) cat "$tmp/out" && rm -f "$tmp/out";;
16155 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16157 || as_fn_error "could not create $ac_file" "$LINENO" 5
16163 if test x"$ac_file" != x-; then
16165 $as_echo "/* $configure_input */" \
16166 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16167 } >"$tmp/config.h" \
16168 || as_fn_error "could not create $ac_file" "$LINENO" 5
16169 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16171 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16174 mv "$tmp/config.h" "$ac_file" \
16175 || as_fn_error "could not create $ac_file" "$LINENO" 5
16178 $as_echo "/* $configure_input */" \
16179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16180 || as_fn_error "could not create -" "$LINENO" 5
16182 # Compute "$ac_file"'s index in $config_headers.
16185 for _am_header in $config_headers :; do
16186 case $_am_header in
16187 $_am_arg | $_am_arg:* )
16190 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16193 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16194 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16195 X"$_am_arg" : 'X\(//\)[^/]' \| \
16196 X"$_am_arg" : 'X\(//\)$' \| \
16197 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16198 $as_echo X"$_am_arg" |
16199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16203 /^X\(\/\/\)[^/].*/{
16215 s/.*/./; q'`/stamp-h$_am_stamp_count
16218 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16219 $as_echo "$as_me: executing $ac_file commands" >&6;}
16224 case $ac_file$ac_mode in
16225 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16226 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16227 # are listed without --file. Let's play safe and only enable the eval
16228 # if we detect the quoting.
16229 case $CONFIG_FILES in
16230 *\'*) eval set x "$CONFIG_FILES" ;;
16231 *) set x $CONFIG_FILES ;;
16236 # Strip MF so we end up with the name of the file.
16237 mf=`echo "$mf" | sed -e 's/:.*$//'`
16238 # Check whether this is an Automake generated Makefile or not.
16239 # We used to match only the files named `Makefile.in', but
16240 # some people rename them; so instead we look at the file content.
16241 # Grep'ing the first line is not enough: some people post-process
16242 # each Makefile.in and add a new line on top of each file to say so.
16243 # Grep'ing the whole file is not good either: AIX grep has a line
16244 # limit of 2048, but all sed's we know have understand at least 4000.
16245 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16246 dirpart=`$as_dirname -- "$mf" ||
16247 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16248 X"$mf" : 'X\(//\)[^/]' \| \
16249 X"$mf" : 'X\(//\)$' \| \
16250 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16256 /^X\(\/\/\)[^/].*/{
16272 # Extract the definition of DEPDIR, am__include, and am__quote
16273 # from the Makefile without running `make'.
16274 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16275 test -z "$DEPDIR" && continue
16276 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16277 test -z "am__include" && continue
16278 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16279 # When using ansi2knr, U may be empty or an underscore; expand it
16280 U=`sed -n 's/^U = //p' < "$mf"`
16281 # Find all dependency output files, they are included files with
16282 # $(DEPDIR) in their names. We invoke sed twice because it is the
16283 # simplest approach to changing $(DEPDIR) to its actual value in the
16285 for file in `sed -n "
16286 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16287 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16288 # Make sure the directory exists.
16289 test -f "$dirpart/$file" && continue
16290 fdir=`$as_dirname -- "$file" ||
16291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16292 X"$file" : 'X\(//\)[^/]' \| \
16293 X"$file" : 'X\(//\)$' \| \
16294 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16295 $as_echo X"$file" |
16296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16300 /^X\(\/\/\)[^/].*/{
16313 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16314 # echo "creating $dirpart/$file"
16315 echo '# dummy' > "$dirpart/$file"
16322 # See if we are running on zsh, and set the options which allow our
16323 # commands through without removal of \ escapes.
16324 if test -n "${ZSH_VERSION+set}" ; then
16325 setopt NO_GLOB_SUBST
16328 cfgfile="${ofile}T"
16329 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16332 cat <<_LT_EOF >> "$cfgfile"
16335 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16336 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16338 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16340 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16341 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16342 # Written by Gordon Matzigkeit, 1996
16344 # This file is part of GNU Libtool.
16346 # GNU Libtool is free software; you can redistribute it and/or
16347 # modify it under the terms of the GNU General Public License as
16348 # published by the Free Software Foundation; either version 2 of
16349 # the License, or (at your option) any later version.
16351 # As a special exception to the GNU General Public License,
16352 # if you distribute this file as part of a program or library that
16353 # is built using GNU Libtool, you may include this file under the
16354 # same distribution terms that you use for the rest of that program.
16356 # GNU Libtool is distributed in the hope that it will be useful,
16357 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16358 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16359 # GNU General Public License for more details.
16361 # You should have received a copy of the GNU General Public License
16362 # along with GNU Libtool; see the file COPYING. If not, a copy
16363 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16364 # obtained by writing to the Free Software Foundation, Inc.,
16365 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16368 # The names of the tagged configurations supported by this script.
16371 # ### BEGIN LIBTOOL CONFIG
16373 # Which release of libtool.m4 was used?
16374 macro_version=$macro_version
16375 macro_revision=$macro_revision
16377 # Whether or not to build shared libraries.
16378 build_libtool_libs=$enable_shared
16380 # Whether or not to build static libraries.
16381 build_old_libs=$enable_static
16383 # What type of objects to build.
16386 # Whether or not to optimize for fast installation.
16387 fast_install=$enable_fast_install
16389 # Shell to use when invoking shell scripts.
16392 # An echo program that protects backslashes.
16396 host_alias=$host_alias
16400 # The build system.
16401 build_alias=$build_alias
16405 # A sed program that does not truncate output.
16408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16409 Xsed="\$SED -e 1s/^X//"
16411 # A grep program that handles long lines.
16417 # A literal string matcher.
16420 # A BSD- or MS-compatible name lister.
16423 # Whether we need soft or hard links.
16426 # What is the maximum length of a command?
16427 max_cmd_len=$max_cmd_len
16429 # Object file suffix (normally "o").
16432 # Executable file suffix (normally "").
16435 # whether the shell understands "unset".
16438 # turn spaces into newlines.
16441 # turn newlines into spaces.
16444 # An object symbol dumper.
16445 OBJDUMP=$lt_OBJDUMP
16447 # Method to check whether dependent libraries are shared objects.
16448 deplibs_check_method=$lt_deplibs_check_method
16450 # Command to use when deplibs_check_method == "file_magic".
16451 file_magic_cmd=$lt_file_magic_cmd
16455 AR_FLAGS=$lt_AR_FLAGS
16457 # A symbol stripping program.
16460 # Commands used to install an old-style archive.
16462 old_postinstall_cmds=$lt_old_postinstall_cmds
16463 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16465 # Whether to use a lock for old archive extraction.
16466 lock_old_archive_extraction=$lock_old_archive_extraction
16471 # LTCC compiler flags.
16472 LTCFLAGS=$lt_CFLAGS
16474 # Take the output of nm and produce a listing of raw symbols and C names.
16475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16477 # Transform the output of nm in a proper C declaration.
16478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16480 # Transform the output of nm in a C name address pair.
16481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16483 # Transform the output of nm in a C name address pair when lib prefix is needed.
16484 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16486 # The name of the directory that contains temporary libtool files.
16489 # Used to examine libraries when file_magic_cmd begins with "file".
16490 MAGIC_CMD=$MAGIC_CMD
16492 # Must we lock files when doing compilation?
16493 need_locks=$lt_need_locks
16495 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16496 DSYMUTIL=$lt_DSYMUTIL
16498 # Tool to change global to local symbols on Mac OS X.
16501 # Tool to manipulate fat objects and archives on Mac OS X.
16504 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16507 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16508 OTOOL64=$lt_OTOOL64
16510 # Old archive suffix (normally "a").
16513 # Shared library suffix (normally ".so").
16514 shrext_cmds=$lt_shrext_cmds
16516 # The commands to extract the exported symbol list from a shared archive.
16517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16519 # Variables whose values should be saved in libtool wrapper scripts and
16520 # restored at link time.
16521 variables_saved_for_relink=$lt_variables_saved_for_relink
16523 # Do we need the "lib" prefix for modules?
16524 need_lib_prefix=$need_lib_prefix
16526 # Do we need a version for libraries?
16527 need_version=$need_version
16529 # Library versioning type.
16530 version_type=$version_type
16532 # Shared library runtime path variable.
16533 runpath_var=$runpath_var
16535 # Shared library path variable.
16536 shlibpath_var=$shlibpath_var
16538 # Is shlibpath searched before the hard-coded library search path?
16539 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16541 # Format of library name prefix.
16542 libname_spec=$lt_libname_spec
16544 # List of archive names. First name is the real one, the rest are links.
16545 # The last name is the one that the linker finds with -lNAME
16546 library_names_spec=$lt_library_names_spec
16548 # The coded name of the library, if different from the real name.
16549 soname_spec=$lt_soname_spec
16551 # Permission mode override for installation of shared libraries.
16552 install_override_mode=$lt_install_override_mode
16554 # Command to use after installation of a shared archive.
16555 postinstall_cmds=$lt_postinstall_cmds
16557 # Command to use after uninstallation of a shared archive.
16558 postuninstall_cmds=$lt_postuninstall_cmds
16560 # Commands used to finish a libtool library installation in a directory.
16561 finish_cmds=$lt_finish_cmds
16563 # As "finish_cmds", except a single script fragment to be evaled but
16565 finish_eval=$lt_finish_eval
16567 # Whether we should hardcode library paths into libraries.
16568 hardcode_into_libs=$hardcode_into_libs
16570 # Compile-time system search path for libraries.
16571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16573 # Run-time system search path for libraries.
16574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16576 # Whether dlopen is supported.
16577 dlopen_support=$enable_dlopen
16579 # Whether dlopen of programs is supported.
16580 dlopen_self=$enable_dlopen_self
16582 # Whether dlopen of statically linked programs is supported.
16583 dlopen_self_static=$enable_dlopen_self_static
16585 # Commands to strip libraries.
16586 old_striplib=$lt_old_striplib
16587 striplib=$lt_striplib
16590 # The linker used to build libraries.
16593 # How to create reloadable object files.
16594 reload_flag=$lt_reload_flag
16595 reload_cmds=$lt_reload_cmds
16597 # Commands used to build an old-style archive.
16598 old_archive_cmds=$lt_old_archive_cmds
16600 # A language specific compiler.
16603 # Is the compiler the GNU compiler?
16606 # Compiler flag to turn off builtin functions.
16607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16609 # How to pass a linker flag through the compiler.
16610 wl=$lt_lt_prog_compiler_wl
16612 # Additional compiler flags for building library objects.
16613 pic_flag=$lt_lt_prog_compiler_pic
16615 # Compiler flag to prevent dynamic linking.
16616 link_static_flag=$lt_lt_prog_compiler_static
16618 # Does compiler simultaneously support -c and -o options?
16619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16621 # Whether or not to add -lc for building shared libraries.
16622 build_libtool_need_lc=$archive_cmds_need_lc
16624 # Whether or not to disallow shared libs when runtime libs are static.
16625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16627 # Compiler flag to allow reflexive dlopens.
16628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16630 # Compiler flag to generate shared objects directly from archives.
16631 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16633 # Whether the compiler copes with passing no objects directly.
16634 compiler_needs_object=$lt_compiler_needs_object
16636 # Create an old-style archive from a shared archive.
16637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16639 # Create a temporary old-style archive to link instead of a shared archive.
16640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16642 # Commands used to build a shared archive.
16643 archive_cmds=$lt_archive_cmds
16644 archive_expsym_cmds=$lt_archive_expsym_cmds
16646 # Commands used to build a loadable module if different from building
16647 # a shared archive.
16648 module_cmds=$lt_module_cmds
16649 module_expsym_cmds=$lt_module_expsym_cmds
16651 # Whether we are building with GNU ld or not.
16652 with_gnu_ld=$lt_with_gnu_ld
16654 # Flag that allows shared libraries with undefined symbols to be built.
16655 allow_undefined_flag=$lt_allow_undefined_flag
16657 # Flag that enforces no undefined symbols.
16658 no_undefined_flag=$lt_no_undefined_flag
16660 # Flag to hardcode \$libdir into a binary during linking.
16661 # This must work even if \$libdir does not exist
16662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16664 # If ld is used when linking, flag to hardcode \$libdir into a binary
16665 # during linking. This must work even if \$libdir does not exist.
16666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16668 # Whether we need a single "-rpath" flag with a separated argument.
16669 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16672 # DIR into the resulting binary.
16673 hardcode_direct=$hardcode_direct
16675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16676 # DIR into the resulting binary and the resulting library dependency is
16677 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16678 # library is relocated.
16679 hardcode_direct_absolute=$hardcode_direct_absolute
16681 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16682 # into the resulting binary.
16683 hardcode_minus_L=$hardcode_minus_L
16685 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16686 # into the resulting binary.
16687 hardcode_shlibpath_var=$hardcode_shlibpath_var
16689 # Set to "yes" if building a shared library automatically hardcodes DIR
16690 # into the library and all subsequent libraries and executables linked
16692 hardcode_automatic=$hardcode_automatic
16694 # Set to yes if linker adds runtime paths of dependent libraries
16695 # to runtime path list.
16696 inherit_rpath=$inherit_rpath
16698 # Whether libtool must link a program against all its dependency libraries.
16699 link_all_deplibs=$link_all_deplibs
16701 # Fix the shell variable \$srcfile for the compiler.
16702 fix_srcfile_path=$lt_fix_srcfile_path
16704 # Set to "yes" if exported symbols are required.
16705 always_export_symbols=$always_export_symbols
16707 # The commands to list exported symbols.
16708 export_symbols_cmds=$lt_export_symbols_cmds
16710 # Symbols that should not be listed in the preloaded symbols.
16711 exclude_expsyms=$lt_exclude_expsyms
16713 # Symbols that must always be exported.
16714 include_expsyms=$lt_include_expsyms
16716 # Commands necessary for linking programs (against libraries) with templates.
16717 prelink_cmds=$lt_prelink_cmds
16719 # Specify filename containing input files.
16720 file_list_spec=$lt_file_list_spec
16722 # How to hardcode a shared library path into an executable.
16723 hardcode_action=$hardcode_action
16725 # ### END LIBTOOL CONFIG
16731 cat <<\_LT_EOF >> "$cfgfile"
16732 # AIX sometimes has problems with the GCC collect2 program. For some
16733 # reason, if we set the COLLECT_NAMES environment variable, the problems
16734 # vanish in a puff of smoke.
16735 if test "X${COLLECT_NAMES+set}" != Xset; then
16737 export COLLECT_NAMES
16744 ltmain="$ac_aux_dir/ltmain.sh"
16747 # We use sed instead of cat because bash on DJGPP gets confused if
16748 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16749 # text mode, it properly converts lines to CR/LF. This bash problem
16750 # is reportedly fixed, but why not run on old versions too?
16751 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16752 || (rm -f "$cfgfile"; exit 1)
16756 cat << \_LT_EOF >> "$cfgfile"
16758 # func_dirname file append nondir_replacement
16759 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16760 # otherwise set result to NONDIR_REPLACEMENT.
16764 */*) func_dirname_result="${1%/*}${2}" ;;
16765 * ) func_dirname_result="${3}" ;;
16769 # func_basename file
16772 func_basename_result="${1##*/}"
16775 # func_dirname_and_basename file append nondir_replacement
16776 # perform func_basename and func_dirname in a single function
16778 # dirname: Compute the dirname of FILE. If nonempty,
16779 # add APPEND to the result, otherwise set result
16780 # to NONDIR_REPLACEMENT.
16781 # value returned in "$func_dirname_result"
16782 # basename: Compute filename of FILE.
16783 # value retuned in "$func_basename_result"
16784 # Implementation must be kept synchronized with func_dirname
16785 # and func_basename. For efficiency, we do not delegate to
16786 # those functions but instead duplicate the functionality here.
16787 func_dirname_and_basename ()
16790 */*) func_dirname_result="${1%/*}${2}" ;;
16791 * ) func_dirname_result="${3}" ;;
16793 func_basename_result="${1##*/}"
16796 # func_stripname prefix suffix name
16797 # strip PREFIX and SUFFIX off of NAME.
16798 # PREFIX and SUFFIX must not contain globbing or regex special
16799 # characters, hashes, percent signs, but SUFFIX may contain a leading
16800 # dot (in which case that matches only a dot).
16803 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16804 # positional parameters, so assign one to ordinary parameter first.
16805 func_stripname_result=${3}
16806 func_stripname_result=${func_stripname_result#"${1}"}
16807 func_stripname_result=${func_stripname_result%"${2}"}
16813 func_opt_split_opt=${1%%=*}
16814 func_opt_split_arg=${1#*=}
16821 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16822 *) func_lo2o_result=${1} ;;
16826 # func_xform libobj-or-source
16829 func_xform_result=${1%.*}.lo
16832 # func_arith arithmetic-term...
16835 func_arith_result=$(( $* ))
16839 # STRING may not start with a hyphen.
16842 func_len_result=${#1}
16847 *) # Bourne compatible functions.
16848 cat << \_LT_EOF >> "$cfgfile"
16850 # func_dirname file append nondir_replacement
16851 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16852 # otherwise set result to NONDIR_REPLACEMENT.
16855 # Extract subdirectory from the argument.
16856 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16857 if test "X$func_dirname_result" = "X${1}"; then
16858 func_dirname_result="${3}"
16860 func_dirname_result="$func_dirname_result${2}"
16864 # func_basename file
16867 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16871 # func_stripname prefix suffix name
16872 # strip PREFIX and SUFFIX off of NAME.
16873 # PREFIX and SUFFIX must not contain globbing or regex special
16874 # characters, hashes, percent signs, but SUFFIX may contain a leading
16875 # dot (in which case that matches only a dot).
16876 # func_strip_suffix prefix name
16880 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16881 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16886 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16887 my_sed_long_arg='1s/^-[^=]*=//'
16892 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16893 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16899 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16902 # func_xform libobj-or-source
16905 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16908 # func_arith arithmetic-term...
16911 func_arith_result=`expr "$@"`
16915 # STRING may not start with a hyphen.
16918 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16924 case $lt_shell_append in
16926 cat << \_LT_EOF >> "$cfgfile"
16928 # func_append var value
16929 # Append VALUE to the end of shell variable VAR.
16937 cat << \_LT_EOF >> "$cfgfile"
16939 # func_append var value
16940 # Append VALUE to the end of shell variable VAR.
16951 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16952 || (rm -f "$cfgfile"; exit 1)
16954 mv -f "$cfgfile" "$ofile" ||
16955 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16960 for ac_file in $CONFIG_FILES; do
16961 # Support "outfile[:infile[:infile...]]"
16963 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16965 # PO directories have a Makefile.in generated from Makefile.in.in.
16966 case "$ac_file" in */Makefile.in)
16967 # Adjust a relative srcdir.
16968 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16969 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16970 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16971 # In autoconf-2.13 it is called $ac_given_srcdir.
16972 # In autoconf-2.50 it is called $srcdir.
16973 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16974 case "$ac_given_srcdir" in
16975 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16976 /*) top_srcdir="$ac_given_srcdir" ;;
16977 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16979 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16980 rm -f "$ac_dir/POTFILES"
16981 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16982 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16983 POMAKEFILEDEPS="POTFILES.in"
16984 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16985 # on $ac_dir but don't depend on user-specified configuration
16987 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16988 # The LINGUAS file contains the set of available languages.
16989 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16990 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16992 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16993 # Hide the ALL_LINGUAS assigment from automake.
16994 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16995 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16997 # The set of available languages was given in configure.ac.
16998 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17000 case "$ac_given_srcdir" in
17002 *) srcdirpre='$(srcdir)/' ;;
17008 for lang in $ALL_LINGUAS; do
17009 POFILES="$POFILES $srcdirpre$lang.po"
17010 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17011 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17012 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17014 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17015 # environment variable.
17017 if test -n "$ALL_LINGUAS"; then
17018 for presentlang in $ALL_LINGUAS; do
17020 if test "%UNSET%" != "$LINGUAS"; then
17021 desiredlanguages="$LINGUAS"
17023 desiredlanguages="$ALL_LINGUAS"
17025 for desiredlang in $desiredlanguages; do
17026 # Use the presentlang catalog if desiredlang is
17027 # a. equal to presentlang, or
17028 # b. a variant of presentlang (because in this case,
17029 # presentlang can be used as a fallback for messages
17030 # which are not translated in the desiredlang catalog).
17031 case "$desiredlang" in
17032 "$presentlang"*) useit=yes;;
17035 if test $useit = yes; then
17036 INST_LINGUAS="$INST_LINGUAS $presentlang"
17041 if test -n "$INST_LINGUAS"; then
17042 for lang in $INST_LINGUAS; do
17043 CATALOGS="$CATALOGS $lang.gmo"
17046 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17047 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"
17048 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17049 if test -f "$f"; then
17051 *.orig | *.bak | *~) ;;
17052 *) cat "$f" >> "$ac_dir/Makefile" ;;
17067 ac_clean_files=$ac_clean_files_save
17069 test $ac_write_fail = 0 ||
17070 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17073 # configure is writing to config.log, and then calls config.status.
17074 # config.status does its own redirection, appending to config.log.
17075 # Unfortunately, on DOS this fails, as config.log is still kept open
17076 # by configure, so config.status won't be able to write to it; its
17077 # output is simply discarded. So we exec the FD to /dev/null,
17078 # effectively closing config.log, so it can be properly (re)opened and
17079 # appended to by config.status. When coming back to configure, we
17080 # need to make the FD available again.
17081 if test "$no_create" != yes; then
17083 ac_config_status_args=
17084 test "$silent" = yes &&
17085 ac_config_status_args="$ac_config_status_args --quiet"
17087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17090 # would make configure fail if this is the last instruction.
17091 $ac_cs_success || as_fn_exit $?
17093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17095 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}