2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gas 2.25.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.
558 PACKAGE_TARNAME='gas'
559 PACKAGE_VERSION='2.25.51'
560 PACKAGE_STRING='gas 2.25.51'
564 ac_unique_file="as.h"
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
612 MAINTAINER_MODE_FALSE
681 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
756 enable_dependency_tracking
768 enable_build_warnings
770 enable_maintainer_mode
773 ac_precious_vars='build_alias
786 # Initialize some variables set by options.
788 ac_init_version=false
789 ac_unrecognized_opts=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name=s,x,x,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
943 -help | --help | --hel | --he | -h)
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1092 -site=* | --site=* | --sit=*)
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval with_$ac_useropt=\$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval with_$ac_useropt=no ;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) as_fn_error "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information."
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error "missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures gas 2.25.51 to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of gas 2.25.51:";;
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --enable-plugins Enable support for plugins
1412 --disable-largefile omit support for large files
1413 --enable-targets alternative target configurations besides the primary
1414 --enable-checking enable run-time checks
1415 --enable-werror treat compile warnings as errors
1416 --enable-build-warnings enable build-time compiler warnings
1417 --disable-nls do not use Native Language Support
1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 --with-system-zlib use installed libz
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1438 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1439 the first program found out of: `bison -y', `byacc', `yacc'.
1440 YFLAGS The list of arguments that will be passed by default to $YACC.
1441 This script will default YFLAGS to the empty string to avoid a
1442 default value of `-d' given by some make applications.
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1447 Report bugs to the package provider.
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1477 .) # We are building in place.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1510 gas configure 2.25.51
1511 generated by GNU Autoconf 2.64
1513 Copyright (C) 2009 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 } # ac_fn_c_try_compile
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 $as_test_x conftest$ac_exeext
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 } # ac_fn_c_try_link
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } >/dev/null && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648 # the include files in INCLUDES and setting the cache variable VAR
1650 ac_fn_c_check_header_mongrel ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1663 # Is the header compilable?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665 $as_echo_n "checking $2 usability... " >&6; }
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1674 ac_header_compiler=no
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678 $as_echo "$ac_header_compiler" >&6; }
1680 # Is the header present?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682 $as_echo_n "checking $2 presence... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1687 if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1690 ac_header_preproc=no
1692 rm -f conftest.err conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694 $as_echo "$ac_header_preproc" >&6; }
1696 # So? What about this header?
1697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 $as_echo_n "(cached) " >&6
1722 eval "$3=\$ac_header_compiler"
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 } # ac_fn_c_check_header_mongrel
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=$ac_status
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1791 if ac_fn_c_try_compile "$LINENO"; then :
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 } # ac_fn_c_check_header_compile
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1828 # include <limits.h>
1830 # include <assert.h>
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1857 if ac_fn_c_try_link "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_c_check_func
1872 # ac_fn_c_check_decl LINENO SYMBOL VAR
1873 # ------------------------------------
1874 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1875 ac_fn_c_check_decl ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 as_decl_name=`echo $2|sed 's/ *(.*//'`
1879 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1881 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1891 #ifndef $as_decl_name
1893 (void) $as_decl_use;
1895 (void) $as_decl_name;
1903 if ac_fn_c_try_compile "$LINENO"; then :
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 } # ac_fn_c_check_decl
1916 cat >config.log <<_ACEOF
1917 This file contains any messages produced by compilers while
1918 running configure, to aid debugging if configure makes a mistake.
1920 It was created by gas $as_me 2.25.51, which was
1921 generated by GNU Autoconf 2.64. Invocation command line was
1933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir=.
1957 $as_echo "PATH: $as_dir"
1973 # Keep a trace of the command line.
1974 # Strip out --no-create and --no-recursion so they do not pile up.
1975 # Strip out --silent because we don't want to record it for future runs.
1976 # Also quote any args containing shell meta-characters.
1977 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_must_keep_next=false
1987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1989 | -silent | --silent | --silen | --sile | --sil)
1992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997 as_fn_append ac_configure_args1 " '$ac_arg'"
1998 if test $ac_must_keep_next = true; then
1999 ac_must_keep_next=false # Got value, back to normal.
2002 *=* | --config-cache | -C | -disable-* | --disable-* \
2003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2005 | -with-* | --with-* | -without-* | --without-* | --x)
2006 case "$ac_configure_args0 " in
2007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2010 -* ) ac_must_keep_next=true ;;
2013 as_fn_append ac_configure_args " '$ac_arg'"
2018 { ac_configure_args0=; unset ac_configure_args0;}
2019 { ac_configure_args1=; unset ac_configure_args1;}
2021 # When interrupted or exit'd, cleanup temporary files, and complete
2022 # config.log. We remove comments because anyway the quotes in there
2023 # would cause problems or look ugly.
2024 # WARNING: Use '\'' to represent an apostrophe within the trap.
2025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2026 trap 'exit_status=$?
2027 # Save into config.log some information that might help in debugging.
2032 ## ---------------- ##
2033 ## Cache variables. ##
2034 ## ---------------- ##
2037 # The following way of writing the cache mishandles newlines in values,
2039 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2040 eval ac_val=\$$ac_var
2044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 _ | IFS | as_nl) ;; #(
2049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2050 *) { eval $ac_var=; unset $ac_var;} ;;
2055 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2056 *${as_nl}ac_space=\ *)
2058 "s/'\''/'\''\\\\'\'''\''/g;
2059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2070 ## ----------------- ##
2071 ## Output variables. ##
2072 ## ----------------- ##
2075 for ac_var in $ac_subst_vars
2077 eval ac_val=\$$ac_var
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 $as_echo "$ac_var='\''$ac_val'\''"
2085 if test -n "$ac_subst_files"; then
2087 ## ------------------- ##
2088 ## File substitutions. ##
2089 ## ------------------- ##
2092 for ac_var in $ac_subst_files
2094 eval ac_val=\$$ac_var
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 $as_echo "$ac_var='\''$ac_val'\''"
2103 if test -s confdefs.h; then
2113 test "$ac_signal" != 0 &&
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2121 for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2129 $as_echo "/* confdefs.h */" > confdefs.h
2131 # Predefined preprocessor variables.
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_NAME "$PACKAGE_NAME"
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_STRING "$PACKAGE_STRING"
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_URL "$PACKAGE_URL"
2158 # Let the site file select an alternate cache file if it wants to.
2159 # Prefer an explicitly selected file to automatically selected ones.
2162 if test -n "$CONFIG_SITE"; then
2163 ac_site_file1=$CONFIG_SITE
2164 elif test "x$prefix" != xNONE; then
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
2171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173 test "x$ac_site_file" = xNONE && continue
2174 if test -r "$ac_site_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2177 sed 's/^/| /' "$ac_site_file" >&5
2182 if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special
2184 # files actually), so we avoid doing that.
2185 if test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187 $as_echo "$as_me: loading cache $cache_file" >&6;}
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199 # Check that the precious variables saved in the cache have kept the same
2201 ac_cache_corrupted=false
2202 for ac_var in $ac_precious_vars; do
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
2207 case $ac_old_set,$ac_new_set in
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 if $ac_cache_corrupted; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256 ## -------------------- ##
2257 ## Main body of script. ##
2258 ## -------------------- ##
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273 for ac_dir in .. "$srcdir"/..; do
2274 for ac_t in install-sh install.sh shtool; do
2275 if test -f "$ac_dir/$ac_t"; then
2277 ac_install_sh="$ac_aux_dir/$ac_t -c"
2282 if test -z "$ac_aux_dir"; then
2283 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2286 # These three variables are undocumented and unsupported,
2287 # and are intended to be withdrawn in a future Autoconf release.
2288 # They can cause serious problems if a builder's source tree is in a directory
2289 # whose full name contains unusual characters.
2290 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2291 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2292 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295 # Make sure we can run config.sub.
2296 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2297 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2300 $as_echo_n "checking build system type... " >&6; }
2301 if test "${ac_cv_build+set}" = set; then :
2302 $as_echo_n "(cached) " >&6
2304 ac_build_alias=$build_alias
2305 test "x$ac_build_alias" = x &&
2306 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2307 test "x$ac_build_alias" = x &&
2308 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2309 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2310 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2314 $as_echo "$ac_cv_build" >&6; }
2315 case $ac_cv_build in
2317 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320 ac_save_IFS=$IFS; IFS='-'
2326 # Remember, the first character of IFS is used to create $*,
2327 # except with old shells:
2330 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2334 $as_echo_n "checking host system type... " >&6; }
2335 if test "${ac_cv_host+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
2338 if test "x$host_alias" = x; then
2339 ac_cv_host=$ac_cv_build
2341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2342 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2347 $as_echo "$ac_cv_host" >&6; }
2350 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2353 ac_save_IFS=$IFS; IFS='-'
2359 # Remember, the first character of IFS is used to create $*,
2360 # except with old shells:
2363 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2367 $as_echo_n "checking target system type... " >&6; }
2368 if test "${ac_cv_target+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2371 if test "x$target_alias" = x; then
2372 ac_cv_target=$ac_cv_host
2374 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2380 $as_echo "$ac_cv_target" >&6; }
2381 case $ac_cv_target in
2383 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2385 target=$ac_cv_target
2386 ac_save_IFS=$IFS; IFS='-'
2392 # Remember, the first character of IFS is used to create $*,
2393 # except with old shells:
2396 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2399 # The aliases save the names the user supplied, while $host etc.
2400 # will get canonicalized.
2401 test -n "$target_alias" &&
2402 test "$program_prefix$program_suffix$program_transform_name" = \
2404 program_prefix=${target_alias}-
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_CC+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 if test -n "$CC"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2441 $as_echo "$CC" >&6; }
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444 $as_echo "no" >&6; }
2449 if test -z "$ac_cv_prog_CC"; then
2451 # Extract the first word of "gcc", so it can be a program name with args.
2452 set dummy gcc; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_ac_ct_CC="gcc"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2481 $as_echo "$ac_ct_CC" >&6; }
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2487 if test "x$ac_ct_CC" = x; then
2490 case $cross_compiling:$ac_tool_warned in
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2494 ac_tool_warned=yes ;;
2502 if test -z "$CC"; then
2503 if test -n "$ac_tool_prefix"; then
2504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2505 set dummy ${ac_tool_prefix}cc; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_CC="${ac_tool_prefix}cc"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2543 if test -z "$CC"; then
2544 # Extract the first word of "cc", so it can be a program name with args.
2545 set dummy cc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2563 ac_prog_rejected=yes
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 if test $ac_prog_rejected = yes; then
2575 # We found a bogon in the path, so make sure we never use it.
2576 set dummy $ac_cv_prog_CC
2578 if test $# != 0; then
2579 # We chose a different compiler from the bogus one.
2580 # However, it has the same basename, so the bogon will be chosen
2581 # first if we set CC to just the basename; use the full file name.
2583 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2589 if test -n "$CC"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591 $as_echo "$CC" >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2599 if test -z "$CC"; then
2600 if test -n "$ac_tool_prefix"; then
2601 for ac_prog in cl.exe
2603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2640 test -n "$CC" && break
2643 if test -z "$CC"; then
2645 for ac_prog in cl.exe
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="$ac_prog"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2677 $as_echo "$ac_ct_CC" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2684 test -n "$ac_ct_CC" && break
2687 if test "x$ac_ct_CC" = x; then
2690 case $cross_compiling:$ac_tool_warned in
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2703 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 as_fn_error "no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." "$LINENO" 5; }
2708 # Provide some information about the compiler.
2709 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2712 for ac_option in --version -v -V -qversion; do
2713 { { ac_try="$ac_compiler $ac_option >&5"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2722 if test -s conftest.err; then
2724 ... rest of stderr output deleted ...
2725 10q' conftest.err >conftest.er1
2726 cat conftest.er1 >&5
2727 rm -f conftest.er1 conftest.err
2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730 test $ac_status = 0; }
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2744 ac_clean_files_save=$ac_clean_files
2745 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2746 # Try to create an executable without -o first, disregard a.out.
2747 # It will help us diagnose broken compilers, and finding out an intuition
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2750 $as_echo_n "checking for C compiler default output file name... " >&6; }
2751 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2753 # The possible output files:
2754 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2757 for ac_file in $ac_files
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2766 if { { ac_try="$ac_link_default"
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2772 $as_echo "$ac_try_echo"; } >&5
2773 (eval "$ac_link_default") 2>&5
2775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2776 test $ac_status = 0; }; then :
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2782 for ac_file in $ac_files ''
2784 test -f "$ac_file" || continue
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2789 # We found the default executable, but exeext='' is most
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2807 test "$ac_cv_exeext" = no && ac_cv_exeext=
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2813 $as_echo "$ac_file" >&6; }
2814 if test -z "$ac_file"; then :
2815 $as_echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 { as_fn_set_status 77
2821 as_fn_error "C compiler cannot create executables
2822 See \`config.log' for more details." "$LINENO" 5; }; }
2824 ac_exeext=$ac_cv_exeext
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2829 $as_echo_n "checking whether the C compiler works... " >&6; }
2830 # If not cross compiling, check that we can run a simple program.
2831 if test "$cross_compiling" != yes; then
2832 if { ac_try='./$ac_file'
2833 { { case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_try") 2>&5
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }; }; then
2845 if test "$cross_compiling" = maybe; then
2848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850 as_fn_error "cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." "$LINENO" 5; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857 $as_echo "yes" >&6; }
2859 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2860 ac_clean_files=$ac_clean_files_save
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2864 $as_echo_n "checking whether we are cross compiling... " >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2866 $as_echo "$cross_compiling" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2869 $as_echo_n "checking for suffix of executables... " >&6; }
2870 if { { ac_try="$ac_link"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2876 $as_echo "$ac_try_echo"; } >&5
2877 (eval "$ac_link") 2>&5
2879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2880 test $ac_status = 0; }; then :
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2885 for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error "cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details." "$LINENO" 5; }
2900 rm -f conftest$ac_cv_exeext
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2902 $as_echo "$ac_cv_exeext" >&6; }
2904 rm -f conftest.$ac_ext
2905 EXEEXT=$ac_cv_exeext
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2908 $as_echo_n "checking for suffix of object files... " >&6; }
2909 if test "${ac_cv_objext+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2923 rm -f conftest.o conftest.obj
2924 if { { ac_try="$ac_compile"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compile") 2>&5
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
2935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error "cannot compute suffix of object files: cannot compile
2950 See \`config.log' for more details." "$LINENO" 5; }
2952 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2955 $as_echo "$ac_cv_objext" >&6; }
2956 OBJEXT=$ac_cv_objext
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2960 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2977 if ac_fn_c_try_compile "$LINENO"; then :
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2988 if test $ac_compiler_gnu = yes; then
2993 ac_test_CFLAGS=${CFLAGS+set}
2994 ac_save_CFLAGS=$CFLAGS
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2997 if test "${ac_cv_prog_cc_g+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
3000 ac_save_c_werror_flag=$ac_c_werror_flag
3001 ac_c_werror_flag=yes
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3015 if ac_fn_c_try_compile "$LINENO"; then :
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3030 if ac_fn_c_try_compile "$LINENO"; then :
3033 ac_c_werror_flag=$ac_save_c_werror_flag
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3046 if ac_fn_c_try_compile "$LINENO"; then :
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3057 $as_echo "$ac_cv_prog_cc_g" >&6; }
3058 if test "$ac_test_CFLAGS" = set; then
3059 CFLAGS=$ac_save_CFLAGS
3060 elif test $ac_cv_prog_cc_g = yes; then
3061 if test "$GCC" = yes; then
3067 if test "$GCC" = yes; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3074 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3075 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3078 ac_cv_prog_cc_c89=no
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3084 #include <sys/types.h>
3085 #include <sys/stat.h>
3086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3087 struct buf { int x; };
3088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3089 static char *e (p, i)
3095 static char *f (char * (*g) (char **, int), char **p, ...)
3100 s = g (p, va_arg (v,int));
3105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3106 function prototypes and stuff, but not '\xHH' hex character constants.
3107 These don't provoke an error unfortunately, instead are silently treated
3108 as 'x'. The following induces an error, until -std is added to get
3109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3110 array size at least. It's necessary to write '\x00'==0 to get something
3111 that's true only with -std. */
3112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3115 inside strings and character constants. */
3117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3119 int test (int i, double x);
3120 struct s1 {int (*f) (int a);};
3121 struct s2 {int (*f) (double a);};
3122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3136 CC="$ac_save_CC $ac_arg"
3137 if ac_fn_c_try_compile "$LINENO"; then :
3138 ac_cv_prog_cc_c89=$ac_arg
3140 rm -f core conftest.err conftest.$ac_objext
3141 test "x$ac_cv_prog_cc_c89" != "xno" && break
3143 rm -f conftest.$ac_ext
3148 case "x$ac_cv_prog_cc_c89" in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3151 $as_echo "none needed" >&6; } ;;
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3154 $as_echo "unsupported" >&6; } ;;
3156 CC="$CC $ac_cv_prog_cc_c89"
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3158 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3160 if test "x$ac_cv_prog_cc_c89" != xno; then :
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3172 $as_echo_n "checking for library containing strerror... " >&6; }
3173 if test "${ac_cv_search_strerror+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3176 ac_func_search_save_LIBS=$LIBS
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3180 /* Override any GCC internal prototype to avoid an error.
3181 Use char because int might match the return type of a GCC
3182 builtin and then its argument prototype would still apply. */
3195 for ac_lib in '' cposix; do
3196 if test -z "$ac_lib"; then
3197 ac_res="none required"
3200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3202 if ac_fn_c_try_link "$LINENO"; then :
3203 ac_cv_search_strerror=$ac_res
3205 rm -f core conftest.err conftest.$ac_objext \
3207 if test "${ac_cv_search_strerror+set}" = set; then :
3211 if test "${ac_cv_search_strerror+set}" = set; then :
3214 ac_cv_search_strerror=no
3217 LIBS=$ac_func_search_save_LIBS
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3220 $as_echo "$ac_cv_search_strerror" >&6; }
3221 ac_res=$ac_cv_search_strerror
3222 if test "$ac_res" != no; then :
3223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3228 am__api_version='1.11'
3230 # Find a good install program. We prefer a C program (faster),
3231 # so one script is as good as another. But avoid the broken or
3232 # incompatible versions:
3233 # SysV /etc/install, /usr/sbin/install
3234 # SunOS /usr/etc/install
3235 # IRIX /sbin/install
3237 # AmigaOS /C/install, which installs bootblocks on floppy discs
3238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3241 # OS/2's system install, which has a completely different semantic
3242 # ./install, which can be erroneously created by make from ./install.sh.
3243 # Reject install programs that cannot install multiple files.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3245 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3246 if test -z "$INSTALL"; then
3247 if test "${ac_cv_path_install+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 # Account for people who put trailing slashes in PATH elements.
3256 case $as_dir/ in #((
3257 ./ | .// | /[cC]/* | \
3258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3262 # OSF1 and SCO ODT 3.0 have their own names for install.
3263 # Don't use installbsd from OSF since it installs stuff as root
3265 for ac_prog in ginstall scoinst install; do
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3268 if test $ac_prog = install &&
3269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3270 # AIX install. It has an incompatible calling convention.
3272 elif test $ac_prog = install &&
3273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3274 # program-specific install script used by HP pwplus--don't use.
3277 rm -rf conftest.one conftest.two conftest.dir
3278 echo one > conftest.one
3279 echo two > conftest.two
3281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3282 test -s conftest.one && test -s conftest.two &&
3283 test -s conftest.dir/conftest.one &&
3284 test -s conftest.dir/conftest.two
3286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3299 rm -rf conftest.one conftest.two conftest.dir
3302 if test "${ac_cv_path_install+set}" = set; then
3303 INSTALL=$ac_cv_path_install
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for INSTALL within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the value is a relative name.
3309 INSTALL=$ac_install_sh
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3313 $as_echo "$INSTALL" >&6; }
3315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3316 # It thinks the first close brace ends the variable substitution.
3317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3324 $as_echo_n "checking whether build environment is sane... " >&6; }
3327 echo timestamp > conftest.file
3328 # Reject unsafe characters in $srcdir or the absolute working directory
3329 # name. Accept space and tab only in the latter.
3333 *[\\\"\#\$\&\'\`$am_lf]*)
3334 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3338 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3341 # Do `set' in a subshell so we don't clobber the current shell's
3342 # arguments. Must try -L first in case configure is actually a
3343 # symlink; some systems play weird games with the mod time of symlinks
3344 # (eg FreeBSD returns the mod time of the symlink's containing
3347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3348 if test "$*" = "X"; then
3350 set X `ls -t "$srcdir/configure" conftest.file`
3353 if test "$*" != "X $srcdir/configure conftest.file" \
3354 && test "$*" != "X conftest.file $srcdir/configure"; then
3356 # If neither matched, then we have a broken ls. This can happen
3357 # if, for instance, CONFIG_SHELL is bash and it inherits a
3358 # broken ls alias from the environment. This has actually
3359 # happened. Such a system could not be considered "sane".
3360 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3361 alias in your environment" "$LINENO" 5
3364 test "$2" = conftest.file
3370 as_fn_error "newly created file is older than distributed files!
3371 Check your system clock" "$LINENO" 5
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3375 test "$program_prefix" != NONE &&
3376 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3377 # Use a double $ so make ignores it.
3378 test "$program_suffix" != NONE &&
3379 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3380 # Double any \ or $.
3381 # By default was `s,x,x', remove it if useless.
3382 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3383 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3385 # expand $ac_aux_dir to an absolute path
3386 am_aux_dir=`cd $ac_aux_dir && pwd`
3388 if test x"${MISSING+set}" != xset; then
3391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3393 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3396 # Use eval to expand $SHELL
3397 if eval "$MISSING --run true"; then
3398 am_missing_run="$MISSING --run "
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3405 if test x"${install_sh}" != xset; then
3408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3410 install_sh="\${SHELL} $am_aux_dir/install-sh"
3414 # Installed binaries are usually stripped using `strip' when the user
3415 # run `make install-strip'. However `strip' might not be the right
3416 # tool to use in cross-compilation environments, therefore Automake
3417 # will honor the `STRIP' environment variable to overrule this program.
3418 if test "$cross_compiling" != no; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}strip; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_STRIP+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$STRIP"; then
3428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 STRIP=$ac_cv_prog_STRIP
3448 if test -n "$STRIP"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3450 $as_echo "$STRIP" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3458 if test -z "$ac_cv_prog_STRIP"; then
3460 # Extract the first word of "strip", so it can be a program name with args.
3461 set dummy strip; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3467 if test -n "$ac_ct_STRIP"; then
3468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477 ac_cv_prog_ac_ct_STRIP="strip"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3488 if test -n "$ac_ct_STRIP"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3490 $as_echo "$ac_ct_STRIP" >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3496 if test "x$ac_ct_STRIP" = x; then
3499 case $cross_compiling:$ac_tool_warned in
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3503 ac_tool_warned=yes ;;
3508 STRIP="$ac_cv_prog_STRIP"
3512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3515 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3516 if test -z "$MKDIR_P"; then
3517 if test "${ac_cv_path_mkdir+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3524 test -z "$as_dir" && as_dir=.
3525 for ac_prog in mkdir gmkdir; do
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3529 'mkdir (GNU coreutils) '* | \
3530 'mkdir (coreutils) '* | \
3531 'mkdir (fileutils) '4.1*)
3532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3542 if test "${ac_cv_path_mkdir+set}" = set; then
3543 MKDIR_P="$ac_cv_path_mkdir -p"
3545 # As a last resort, use the slow shell script. Don't cache a
3546 # value for MKDIR_P within a source directory, because that will
3547 # break other packages using the cache if that directory is
3548 # removed, or if the value is a relative name.
3549 test -d ./--version && rmdir ./--version
3550 MKDIR_P="$ac_install_sh -d"
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3554 $as_echo "$MKDIR_P" >&6; }
3558 [\\/$]* | ?:[\\/]*) ;;
3559 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3562 for ac_prog in gawk mawk nawk awk
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_AWK+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$AWK"; then
3572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_AWK="$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 if test -n "$AWK"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3594 $as_echo "$AWK" >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3601 test -n "$AWK" && break
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3608 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3609 $as_echo_n "(cached) " >&6
3611 cat >conftest.make <<\_ACEOF
3614 @echo '@@@%%%=$(MAKE)=@@@%%%'
3616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3619 eval ac_cv_prog_make_${ac_make}_set=yes;;
3621 eval ac_cv_prog_make_${ac_make}_set=no;;
3625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627 $as_echo "yes" >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 SET_MAKE="MAKE=${MAKE-make}"
3635 rm -rf .tst 2>/dev/null
3636 mkdir .tst 2>/dev/null
3637 if test -d .tst; then
3642 rmdir .tst 2>/dev/null
3644 DEPDIR="${am__leading_dot}deps"
3646 ac_config_commands="$ac_config_commands depfiles"
3649 am_make=${MAKE-make}
3650 cat > confinc << 'END'
3652 @echo this is the am__doit target
3655 # If we don't find an include directive, just comment out the code.
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3657 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3661 # First try GNU make style include.
3662 echo "include confinc" > confmf
3663 # Ignore all kinds of additional output from `make'.
3664 case `$am_make -s -f confmf 2> /dev/null` in #(
3665 *the\ am__doit\ target*)
3671 # Now try BSD make style include.
3672 if test "$am__include" = "#"; then
3673 echo '.include "confinc"' > confmf
3674 case `$am_make -s -f confmf 2> /dev/null` in #(
3675 *the\ am__doit\ target*)
3676 am__include=.include
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3685 $as_echo "$_am_result" >&6; }
3686 rm -f confinc confmf
3688 # Check whether --enable-dependency-tracking was given.
3689 if test "${enable_dependency_tracking+set}" = set; then :
3690 enableval=$enable_dependency_tracking;
3693 if test "x$enable_dependency_tracking" != xno; then
3694 am_depcomp="$ac_aux_dir/depcomp"
3697 if test "x$enable_dependency_tracking" != xno; then
3706 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3707 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3708 # is not polluted with repeated "-I."
3709 am__isrc=' -I$(srcdir)'
3710 # test to see if srcdir already configured
3711 if test -f $srcdir/config.status; then
3712 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3716 # test whether we have cygpath
3717 if test -z "$CYGPATH_W"; then
3718 if (cygpath --version) >/dev/null 2>/dev/null; then
3719 CYGPATH_W='cygpath -w'
3726 # Define the identity of the package.
3731 cat >>confdefs.h <<_ACEOF
3732 #define PACKAGE "$PACKAGE"
3736 cat >>confdefs.h <<_ACEOF
3737 #define VERSION "$VERSION"
3740 # Some tools Automake needs.
3742 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3745 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3748 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3751 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3754 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3756 # We need awk for the "check" target. The system "awk" is bad on
3758 # Always define AMTAR for backward compatibility.
3760 AMTAR=${AMTAR-"${am_missing_run}tar"}
3762 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3767 depcc="$CC" am_compiler_list=
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770 $as_echo_n "checking dependency style of $depcc... " >&6; }
3771 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775 # We make a subdir and do the tests there. Otherwise we can end up
3776 # making bogus files that we don't know about and never remove. For
3777 # instance it was reported that on HP-UX the gcc test will end up
3778 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # Copy depcomp to subdir because otherwise we won't find it if we're
3782 # using a relative directory.
3783 cp "$am_depcomp" conftest.dir
3785 # We will build objects and dependencies in a subdirectory because
3786 # it helps to detect inapplicable dependency modes. For instance
3787 # both Tru64's cc and ICC support -MD to output dependencies as a
3788 # side effect of compilation, but ICC will put the dependencies in
3789 # the current directory while Tru64 will put them in the object
3793 am_cv_CC_dependencies_compiler_type=none
3794 if test "$am_compiler_list" = ""; then
3795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 case " $depcc " in #(
3799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 for depmode in $am_compiler_list; do
3803 # Setup a source with many dependencies, because some compilers
3804 # like to wrap large dependency lists on column 80 (with \), and
3805 # we should not choose a depcomp mode which is confused by this.
3807 # We need to recreate these files for each test, as the compiler may
3808 # overwrite some of them when testing with obscure command lines.
3809 # This happens at least with the AIX C compiler.
3811 for i in 1 2 3 4 5 6; do
3812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3813 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3814 # Solaris 8's {/usr,}/bin/sh.
3815 touch sub/conftst$i.h
3817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3819 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820 # mode. It turns out that the SunPro C++ compiler does not properly
3821 # handle `-M -o', and we need to detect this. Also, some Intel
3822 # versions had trouble with output in subdirs
3823 am__obj=sub/conftest.${OBJEXT-o}
3824 am__minus_obj="-o $am__obj"
3827 # This depmode causes a compiler race in universal mode.
3828 test "$am__universal" = false || continue
3831 # after this tag, mechanisms are not by side-effect, so they'll
3832 # only be used when explicitly requested
3833 if test "x$enable_dependency_tracking" = xyes; then
3839 msvisualcpp | msvcmsys)
3840 # This compiler won't grok `-c -o', but also, the minuso test has
3841 # not run yet. These depmodes are late enough in the game, and
3842 # so weak that their functioning should not be impacted.
3843 am__obj=conftest.${OBJEXT-o}
3848 if depmode=$depmode \
3849 source=sub/conftest.c object=$am__obj \
3850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3852 >/dev/null 2>conftest.err &&
3853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857 # icc doesn't choke on unknown options, it will just issue warnings
3858 # or remarks (even with -Werror). So we grep stderr for any message
3859 # that says an option was ignored or not supported.
3860 # When given -MP, icc 7.0 and 7.1 complain thusly:
3861 # icc: Command line warning: ignoring option '-M'; no argument required
3862 # The diagnosis changed in icc 8.0:
3863 # icc: Command line remark: option '-MP' not supported
3864 if (grep 'ignoring option' conftest.err ||
3865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3866 am_cv_CC_dependencies_compiler_type=$depmode
3875 am_cv_CC_dependencies_compiler_type=none
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884 test "x$enable_dependency_tracking" != xno \
3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3887 am__fastdepCC_FALSE='#'
3889 am__fastdepCC_TRUE='#'
3890 am__fastdepCC_FALSE=
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if test "${ac_cv_prog_CC+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 if test -n "$CC"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932 $as_echo "$CC" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3940 if test -z "$ac_cv_prog_CC"; then
3942 # Extract the first word of "gcc", so it can be a program name with args.
3943 set dummy gcc; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3949 if test -n "$ac_ct_CC"; then
3950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_ac_ct_CC="gcc"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970 if test -n "$ac_ct_CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972 $as_echo "$ac_ct_CC" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3978 if test "x$ac_ct_CC" = x; then
3981 case $cross_compiling:$ac_tool_warned in
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985 ac_tool_warned=yes ;;
3993 if test -z "$CC"; then
3994 if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3996 set dummy ${ac_tool_prefix}cc; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_CC+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 if test -n "$CC"; then
4003 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_CC="${ac_tool_prefix}cc"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 if test -n "$CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4025 $as_echo "$CC" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4034 if test -z "$CC"; then
4035 # Extract the first word of "cc", so it can be a program name with args.
4036 set dummy cc; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4054 ac_prog_rejected=yes
4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 if test $ac_prog_rejected = yes; then
4066 # We found a bogon in the path, so make sure we never use it.
4067 set dummy $ac_cv_prog_CC
4069 if test $# != 0; then
4070 # We chose a different compiler from the bogus one.
4071 # However, it has the same basename, so the bogon will be chosen
4072 # first if we set CC to just the basename; use the full file name.
4074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4080 if test -n "$CC"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4082 $as_echo "$CC" >&6; }
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4090 if test -z "$CC"; then
4091 if test -n "$ac_tool_prefix"; then
4092 for ac_prog in cl.exe
4094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if test "${ac_cv_prog_CC+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4131 test -n "$CC" && break
4134 if test -z "$CC"; then
4136 for ac_prog in cl.exe
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139 set dummy $ac_prog; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4145 if test -n "$ac_ct_CC"; then
4146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_ac_ct_CC="$ac_prog"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4166 if test -n "$ac_ct_CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4168 $as_echo "$ac_ct_CC" >&6; }
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4175 test -n "$ac_ct_CC" && break
4178 if test "x$ac_ct_CC" = x; then
4181 case $cross_compiling:$ac_tool_warned in
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4185 ac_tool_warned=yes ;;
4194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196 as_fn_error "no acceptable C compiler found in \$PATH
4197 See \`config.log' for more details." "$LINENO" 5; }
4199 # Provide some information about the compiler.
4200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4203 for ac_option in --version -v -V -qversion; do
4204 { { ac_try="$ac_compiler $ac_option >&5"
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210 $as_echo "$ac_try_echo"; } >&5
4211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4213 if test -s conftest.err; then
4215 ... rest of stderr output deleted ...
4216 10q' conftest.err >conftest.er1
4217 cat conftest.er1 >&5
4218 rm -f conftest.er1 conftest.err
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4225 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4226 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4243 if ac_fn_c_try_compile "$LINENO"; then :
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4253 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4254 if test $ac_compiler_gnu = yes; then
4259 ac_test_CFLAGS=${CFLAGS+set}
4260 ac_save_CFLAGS=$CFLAGS
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4262 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4263 if test "${ac_cv_prog_cc_g+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4266 ac_save_c_werror_flag=$ac_c_werror_flag
4267 ac_c_werror_flag=yes
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4281 if ac_fn_c_try_compile "$LINENO"; then :
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4296 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4312 if ac_fn_c_try_compile "$LINENO"; then :
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 ac_c_werror_flag=$ac_save_c_werror_flag
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4323 $as_echo "$ac_cv_prog_cc_g" >&6; }
4324 if test "$ac_test_CFLAGS" = set; then
4325 CFLAGS=$ac_save_CFLAGS
4326 elif test $ac_cv_prog_cc_g = yes; then
4327 if test "$GCC" = yes; then
4333 if test "$GCC" = yes; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4340 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4341 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 ac_cv_prog_cc_c89=no
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4350 #include <sys/types.h>
4351 #include <sys/stat.h>
4352 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4353 struct buf { int x; };
4354 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4355 static char *e (p, i)
4361 static char *f (char * (*g) (char **, int), char **p, ...)
4366 s = g (p, va_arg (v,int));
4371 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4372 function prototypes and stuff, but not '\xHH' hex character constants.
4373 These don't provoke an error unfortunately, instead are silently treated
4374 as 'x'. The following induces an error, until -std is added to get
4375 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4376 array size at least. It's necessary to write '\x00'==0 to get something
4377 that's true only with -std. */
4378 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4380 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4381 inside strings and character constants. */
4383 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4385 int test (int i, double x);
4386 struct s1 {int (*f) (int a);};
4387 struct s2 {int (*f) (double a);};
4388 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4394 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4399 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4400 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4402 CC="$ac_save_CC $ac_arg"
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_prog_cc_c89=$ac_arg
4406 rm -f core conftest.err conftest.$ac_objext
4407 test "x$ac_cv_prog_cc_c89" != "xno" && break
4409 rm -f conftest.$ac_ext
4414 case "x$ac_cv_prog_cc_c89" in
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4417 $as_echo "none needed" >&6; } ;;
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4420 $as_echo "unsupported" >&6; } ;;
4422 CC="$CC $ac_cv_prog_cc_c89"
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4424 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4426 if test "x$ac_cv_prog_cc_c89" != xno; then :
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4442 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4443 # On Suns, sometimes $CPP names a directory.
4444 if test -n "$CPP" && test -d "$CPP"; then
4447 if test -z "$CPP"; then
4448 if test "${ac_cv_prog_CPP+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4451 # Double quotes because CPP needs to be expanded
4452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4455 for ac_c_preproc_warn_flag in '' yes
4457 # Use a header file that comes with gcc, so configuring glibc
4458 # with a fresh cross-compiler works.
4459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4460 # <limits.h> exists even on freestanding compilers.
4461 # On the NeXT, cc -E runs the code through the compiler's parser,
4462 # not just through cpp. "Syntax error" is here to catch this case.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4466 # include <limits.h>
4468 # include <assert.h>
4472 if ac_fn_c_try_cpp "$LINENO"; then :
4475 # Broken: fails on valid input.
4478 rm -f conftest.err conftest.$ac_ext
4480 # OK, works on sane cases. Now check whether nonexistent headers
4481 # can be detected and how.
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #include <ac_nonexistent.h>
4486 if ac_fn_c_try_cpp "$LINENO"; then :
4487 # Broken: success on invalid input.
4490 # Passes both tests.
4494 rm -f conftest.err conftest.$ac_ext
4497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498 rm -f conftest.err conftest.$ac_ext
4499 if $ac_preproc_ok; then :
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4512 $as_echo "$CPP" >&6; }
4514 for ac_c_preproc_warn_flag in '' yes
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4525 # include <limits.h>
4527 # include <assert.h>
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4534 # Broken: fails on valid input.
4537 rm -f conftest.err conftest.$ac_ext
4539 # OK, works on sane cases. Now check whether nonexistent headers
4540 # can be detected and how.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <ac_nonexistent.h>
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: success on invalid input.
4549 # Passes both tests.
4553 rm -f conftest.err conftest.$ac_ext
4556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557 rm -f conftest.err conftest.$ac_ext
4558 if $ac_preproc_ok; then :
4561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4564 See \`config.log' for more details." "$LINENO" 5; }
4568 ac_cpp='$CPP $CPPFLAGS'
4569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4575 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4576 if test "${ac_cv_path_GREP+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4579 if test -z "$GREP"; then
4580 ac_path_GREP_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in grep ggrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4591 # Check for GNU ac_path_GREP and select it if it is found.
4592 # Check for GNU $ac_path_GREP
4593 case `"$ac_path_GREP" --version 2>&1` in
4595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598 $as_echo_n 0123456789 >"conftest.in"
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo 'GREP' >> "conftest.nl"
4605 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_GREP="$ac_path_GREP"
4611 ac_path_GREP_max=$ac_count
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 $ac_path_GREP_found && break 3
4624 if test -z "$ac_cv_path_GREP"; then
4625 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 ac_cv_path_GREP=$GREP
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4633 $as_echo "$ac_cv_path_GREP" >&6; }
4634 GREP="$ac_cv_path_GREP"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4638 $as_echo_n "checking for egrep... " >&6; }
4639 if test "${ac_cv_path_EGREP+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4642 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4643 then ac_cv_path_EGREP="$GREP -E"
4645 if test -z "$EGREP"; then
4646 ac_path_EGREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in egrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4657 # Check for GNU ac_path_EGREP and select it if it is found.
4658 # Check for GNU $ac_path_EGREP
4659 case `"$ac_path_EGREP" --version 2>&1` in
4661 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664 $as_echo_n 0123456789 >"conftest.in"
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'EGREP' >> "conftest.nl"
4671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_EGREP="$ac_path_EGREP"
4677 ac_path_EGREP_max=$ac_count
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685 $ac_path_EGREP_found && break 3
4690 if test -z "$ac_cv_path_EGREP"; then
4691 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694 ac_cv_path_EGREP=$EGREP
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4700 $as_echo "$ac_cv_path_EGREP" >&6; }
4701 EGREP="$ac_cv_path_EGREP"
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4705 $as_echo_n "checking for ANSI C header files... " >&6; }
4706 if test "${ac_cv_header_stdc+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_header_stdc=yes
4727 ac_cv_header_stdc=no
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 if test $ac_cv_header_stdc = yes; then
4732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 $EGREP "memchr" >/dev/null 2>&1; then :
4742 ac_cv_header_stdc=no
4748 if test $ac_cv_header_stdc = yes; then
4749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756 $EGREP "free" >/dev/null 2>&1; then :
4759 ac_cv_header_stdc=no
4765 if test $ac_cv_header_stdc = yes; then
4766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4767 if test "$cross_compiling" = yes; then :
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4774 #if ((' ' & 0x0FF) == 0x020)
4775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4778 # define ISLOWER(c) \
4779 (('a' <= (c) && (c) <= 'i') \
4780 || ('j' <= (c) && (c) <= 'r') \
4781 || ('s' <= (c) && (c) <= 'z'))
4782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4790 for (i = 0; i < 256; i++)
4791 if (XOR (islower (i), ISLOWER (i))
4792 || toupper (i) != TOUPPER (i))
4797 if ac_fn_c_try_run "$LINENO"; then :
4800 ac_cv_header_stdc=no
4802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4803 conftest.$ac_objext conftest.beam conftest.$ac_ext
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4809 $as_echo "$ac_cv_header_stdc" >&6; }
4810 if test $ac_cv_header_stdc = yes; then
4812 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4816 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4817 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4818 inttypes.h stdint.h unistd.h
4820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4821 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4823 eval as_val=\$$as_ac_Header
4824 if test "x$as_val" = x""yes; then :
4825 cat >>confdefs.h <<_ACEOF
4826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4835 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4836 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4843 if test "$MINIX" = yes; then
4845 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4848 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4851 $as_echo "#define _MINIX 1" >>confdefs.h
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4857 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4858 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4864 # define __EXTENSIONS__ 1
4865 $ac_includes_default
4874 if ac_fn_c_try_compile "$LINENO"; then :
4875 ac_cv_safe_to_define___extensions__=yes
4877 ac_cv_safe_to_define___extensions__=no
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4882 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4883 test $ac_cv_safe_to_define___extensions__ = yes &&
4884 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4886 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4888 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4890 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4892 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4901 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4906 macro_version='2.2.7a'
4907 macro_revision='1.3134'
4921 ltmain="$ac_aux_dir/ltmain.sh"
4923 # Backslashify metacharacters that are still active within
4924 # double-quoted strings.
4925 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4927 # Same as above, but do not quote variable references.
4928 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4930 # Sed substitution to delay expansion of an escaped shell variable in a
4931 # double_quote_subst'ed string.
4932 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4934 # Sed substitution to delay expansion of an escaped single quote.
4935 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4937 # Sed substitution to avoid accidental globbing in evaled expressions
4938 no_glob_subst='s/\*/\\\*/g'
4940 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4945 $as_echo_n "checking how to print strings... " >&6; }
4946 # Test print first, because it will be a builtin if present.
4947 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4948 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4950 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4953 # Use this function as a fallback that always works.
4954 func_fallback_echo ()
4956 eval 'cat <<_LTECHO_EOF
4960 ECHO='func_fallback_echo'
4963 # func_echo_all arg...
4964 # Invoke $ECHO with all args, space-separated.
4971 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4972 $as_echo "printf" >&6; } ;;
4973 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4974 $as_echo "print -r" >&6; } ;;
4975 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4976 $as_echo "cat" >&6; } ;;
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4993 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4994 if test "${ac_cv_path_SED+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4998 for ac_i in 1 2 3 4 5 6 7; do
4999 ac_script="$ac_script$as_nl$ac_script"
5001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5002 { ac_script=; unset ac_script;}
5003 if test -z "$SED"; then
5004 ac_path_SED_found=false
5005 # Loop through the user's path and test for each of PROGNAME-LIST
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_prog in sed gsed; do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5014 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5015 # Check for GNU ac_path_SED and select it if it is found.
5016 # Check for GNU $ac_path_SED
5017 case `"$ac_path_SED" --version 2>&1` in
5019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5022 $as_echo_n 0123456789 >"conftest.in"
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 $as_echo '' >> "conftest.nl"
5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_SED_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_SED="$ac_path_SED"
5035 ac_path_SED_max=$ac_count
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 $ac_path_SED_found && break 3
5048 if test -z "$ac_cv_path_SED"; then
5049 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057 $as_echo "$ac_cv_path_SED" >&6; }
5058 SED="$ac_cv_path_SED"
5061 test -z "$SED" && SED=sed
5062 Xsed="$SED -e 1s/^X//"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 $as_echo_n "checking for fgrep... " >&6; }
5076 if test "${ac_cv_path_FGREP+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080 then ac_cv_path_FGREP="$GREP -F"
5082 if test -z "$FGREP"; then
5083 ac_path_FGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in fgrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5094 # Check for GNU ac_path_FGREP and select it if it is found.
5095 # Check for GNU $ac_path_FGREP
5096 case `"$ac_path_FGREP" --version 2>&1` in
5098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5101 $as_echo_n 0123456789 >"conftest.in"
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 $as_echo 'FGREP' >> "conftest.nl"
5108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_FGREP="$ac_path_FGREP"
5114 ac_path_FGREP_max=$ac_count
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 $ac_path_FGREP_found && break 3
5127 if test -z "$ac_cv_path_FGREP"; then
5128 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5131 ac_cv_path_FGREP=$FGREP
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137 $as_echo "$ac_cv_path_FGREP" >&6; }
5138 FGREP="$ac_cv_path_FGREP"
5141 test -z "$GREP" && GREP=grep
5161 # Check whether --with-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then :
5163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5169 if test "$GCC" = yes; then
5170 # Check if gcc -print-prog-name=ld gives a path.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172 $as_echo_n "checking for ld used by $CC... " >&6; }
5175 # gcc leaves a trailing carriage return which upsets mingw
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5181 # Accept absolute paths.
5183 re_direlt='/[^/][^/]*/\.\./'
5184 # Canonicalize the pathname of ld
5185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5189 test -z "$LD" && LD="$ac_prog"
5192 # If it fails, then pretend we aren't using GCC.
5196 # If it is relative, then search for the first ld in PATH.
5200 elif test "$with_gnu_ld" = yes; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202 $as_echo_n "checking for GNU ld... " >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205 $as_echo_n "checking for non-GNU ld... " >&6; }
5207 if test "${lt_cv_path_LD+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5210 if test -z "$LD"; then
5211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212 for ac_dir in $PATH; do
5214 test -z "$ac_dir" && ac_dir=.
5215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216 lt_cv_path_LD="$ac_dir/$ac_prog"
5217 # Check to see if the program is GNU ld. I'd rather use --version,
5218 # but apparently some variants of GNU ld only accept -v.
5219 # Break only if it was the GNU/non-GNU ld that we prefer.
5220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221 *GNU* | *'with BFD'*)
5222 test "$with_gnu_ld" != no && break
5225 test "$with_gnu_ld" != yes && break
5232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5237 if test -n "$LD"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239 $as_echo "$LD" >&6; }
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5244 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253 lt_cv_prog_gnu_ld=yes
5256 lt_cv_prog_gnu_ld=no
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274 if test "${lt_cv_path_NM+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5277 if test -n "$NM"; then
5278 # Let the user override the test.
5281 lt_nm_to_check="${ac_tool_prefix}nm"
5282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283 lt_nm_to_check="$lt_nm_to_check nm"
5285 for lt_tmp_nm in $lt_nm_to_check; do
5286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5289 test -z "$ac_dir" && ac_dir=.
5290 tmp_nm="$ac_dir/$lt_tmp_nm"
5291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292 # Check to see if the nm accepts a BSD-compat flag.
5293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294 # nm: unknown option "B" ignored
5295 # Tru64's nm complains that /dev/null is an invalid object file
5296 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297 */dev/null* | *'Invalid file or object type'*)
5298 lt_cv_path_NM="$tmp_nm -B"
5302 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5304 lt_cv_path_NM="$tmp_nm -p"
5308 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309 continue # so that we can try to find one that supports BSD flags
5318 : ${lt_cv_path_NM=no}
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322 $as_echo "$lt_cv_path_NM" >&6; }
5323 if test "$lt_cv_path_NM" != "no"; then
5326 # Didn't find any BSD compatible name lister, look for dumpbin.
5327 if test -n "$DUMPBIN"; then :
5328 # Let the user override the test.
5330 if test -n "$ac_tool_prefix"; then
5331 for ac_prog in dumpbin "link -dump"
5333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5340 if test -n "$DUMPBIN"; then
5341 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 DUMPBIN=$ac_cv_prog_DUMPBIN
5361 if test -n "$DUMPBIN"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5363 $as_echo "$DUMPBIN" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5370 test -n "$DUMPBIN" && break
5373 if test -z "$DUMPBIN"; then
5374 ac_ct_DUMPBIN=$DUMPBIN
5375 for ac_prog in dumpbin "link -dump"
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -n "$ac_ct_DUMPBIN"; then
5385 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5405 if test -n "$ac_ct_DUMPBIN"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5407 $as_echo "$ac_ct_DUMPBIN" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5414 test -n "$ac_ct_DUMPBIN" && break
5417 if test "x$ac_ct_DUMPBIN" = x; then
5420 case $cross_compiling:$ac_tool_warned in
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5426 DUMPBIN=$ac_ct_DUMPBIN
5430 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5432 DUMPBIN="$DUMPBIN -symbols"
5440 if test "$DUMPBIN" != ":"; then
5444 test -z "$NM" && NM=nm
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5452 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5453 if test "${lt_cv_nm_interface+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5456 lt_cv_nm_interface="BSD nm"
5457 echo "int some_variable = 0;" > conftest.$ac_ext
5458 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5459 (eval "$ac_compile" 2>conftest.err)
5460 cat conftest.err >&5
5461 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5462 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5463 cat conftest.err >&5
5464 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5465 cat conftest.out >&5
5466 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5467 lt_cv_nm_interface="MS dumpbin"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5472 $as_echo "$lt_cv_nm_interface" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5475 $as_echo_n "checking whether ln -s works... " >&6; }
5477 if test "$LN_S" = "ln -s"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5482 $as_echo "no, using $LN_S" >&6; }
5485 # find the maximum length of command line arguments
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5487 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5488 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5496 # On DJGPP, this test can blow up pretty badly due to problems in libc
5497 # (any single argument exceeding 2000 bytes causes a buffer overrun
5498 # during glob expansion). Even if it were fixed, the result of this
5499 # check would be larger than it should be.
5500 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5504 # Under GNU Hurd, this test is not required because there is
5505 # no limit to the length of command line arguments.
5506 # Libtool will interpret -1 as no limit whatsoever
5507 lt_cv_sys_max_cmd_len=-1;
5510 cygwin* | mingw* | cegcc*)
5511 # On Win9x/ME, this test blows up -- it succeeds, but takes
5512 # about 5 minutes as the teststring grows exponentially.
5513 # Worse, since 9x/ME are not pre-emptively multitasking,
5514 # you end up with a "frozen" computer, even though with patience
5515 # the test eventually succeeds (with a max line length of 256k).
5516 # Instead, let's just punt: use the minimum linelength reported by
5517 # all of the supported platforms: 8192 (on NT/2K/XP).
5518 lt_cv_sys_max_cmd_len=8192;
5522 # On MiNT this can take a long time and run out of memory.
5523 lt_cv_sys_max_cmd_len=8192;
5527 # On AmigaOS with pdksh, this test takes hours, literally.
5528 # So we just punt and use a minimum line length of 8192.
5529 lt_cv_sys_max_cmd_len=8192;
5532 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5533 # This has been around since 386BSD, at least. Likely further.
5534 if test -x /sbin/sysctl; then
5535 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5536 elif test -x /usr/sbin/sysctl; then
5537 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5539 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5541 # And add a safety zone
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5547 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5548 lt_cv_sys_max_cmd_len=196608
5552 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5553 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5554 # nice to cause kernel panics so lets avoid the loop below.
5555 # First set a reasonable default.
5556 lt_cv_sys_max_cmd_len=16384
5558 if test -x /sbin/sysconfig; then
5559 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5560 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5565 lt_cv_sys_max_cmd_len=102400
5567 sysv5* | sco5v6* | sysv4.2uw2*)
5568 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5569 if test -n "$kargmax"; then
5570 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5572 lt_cv_sys_max_cmd_len=32768
5576 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5577 if test -n "$lt_cv_sys_max_cmd_len"; then
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5581 # Make teststring a little bigger before we do anything with it.
5582 # a 1K string should be a reasonable start.
5583 for i in 1 2 3 4 5 6 7 8 ; do
5584 teststring=$teststring$teststring
5586 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5587 # If test is not a shell built-in, we'll probably end up computing a
5588 # maximum length that is only half of the actual maximum length, but
5590 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5591 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5592 test $i != 17 # 1/2 MB should be enough
5595 teststring=$teststring$teststring
5597 # Only check the string length outside the loop.
5598 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5600 # Add a significant safety factor because C++ compilers can tack on
5601 # massive amounts of additional arguments before passing them to the
5602 # linker. It appears as though 1/2 is a usable value.
5603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5610 if test -n $lt_cv_sys_max_cmd_len ; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5612 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5615 $as_echo "none" >&6; }
5617 max_cmd_len=$lt_cv_sys_max_cmd_len
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5629 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5630 # Try some XSI features
5633 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5635 && eval 'test $(( 1 + 1 )) -eq 2 \
5636 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5639 $as_echo "$xsi_shell" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5643 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5645 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5647 && lt_shell_append=yes
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5649 $as_echo "$lt_shell_append" >&6; }
5652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5662 # test EBCDIC or ASCII
5663 case `echo X|tr X '\101'` in
5664 A) # ASCII based system
5665 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5666 lt_SP2NL='tr \040 \012'
5667 lt_NL2SP='tr \015\012 \040\040'
5669 *) # EBCDIC based system
5670 lt_SP2NL='tr \100 \n'
5671 lt_NL2SP='tr \r\n \100\100'
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5684 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5685 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 lt_cv_ld_reload_flag='-r'
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5691 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5692 reload_flag=$lt_cv_ld_reload_flag
5693 case $reload_flag in
5695 *) reload_flag=" $reload_flag" ;;
5697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5700 if test "$GCC" = yes; then
5701 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5703 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5724 if test -n "$OBJDUMP"; then
5725 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 OBJDUMP=$ac_cv_prog_OBJDUMP
5745 if test -n "$OBJDUMP"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5747 $as_echo "$OBJDUMP" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5755 if test -z "$ac_cv_prog_OBJDUMP"; then
5756 ac_ct_OBJDUMP=$OBJDUMP
5757 # Extract the first word of "objdump", so it can be a program name with args.
5758 set dummy objdump; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5764 if test -n "$ac_ct_OBJDUMP"; then
5765 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5785 if test -n "$ac_ct_OBJDUMP"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5787 $as_echo "$ac_ct_OBJDUMP" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5793 if test "x$ac_ct_OBJDUMP" = x; then
5796 case $cross_compiling:$ac_tool_warned in
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5802 OBJDUMP=$ac_ct_OBJDUMP
5805 OBJDUMP="$ac_cv_prog_OBJDUMP"
5808 test -z "$OBJDUMP" && OBJDUMP=objdump
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5819 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5820 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5823 lt_cv_file_magic_cmd='$MAGIC_CMD'
5824 lt_cv_file_magic_test_file=
5825 lt_cv_deplibs_check_method='unknown'
5826 # Need to set the preceding variable on all platforms that support
5827 # interlibrary dependencies.
5828 # 'none' -- dependencies not supported.
5829 # `unknown' -- same as none, but documents that we really don't know.
5830 # 'pass_all' -- all dependencies passed with no checks.
5831 # 'test_compile' -- check by making test program.
5832 # 'file_magic [[regex]]' -- check by looking for files in library path
5833 # which responds to the $file_magic_cmd with a given extended regex.
5834 # If you have `file' or equivalent on your system and you're not sure
5835 # whether `pass_all' will *always* work, you probably want this one.
5839 lt_cv_deplibs_check_method=pass_all
5843 lt_cv_deplibs_check_method=pass_all
5847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5848 lt_cv_file_magic_cmd='/usr/bin/file -L'
5849 lt_cv_file_magic_test_file=/shlib/libc.so
5853 # func_win32_libid is a shell function defined in ltmain.sh
5854 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5855 lt_cv_file_magic_cmd='func_win32_libid'
5859 # Base MSYS/MinGW do not provide the 'file' command needed by
5860 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5861 # unless we find 'file', for example because we are cross-compiling.
5862 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5863 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865 lt_cv_file_magic_cmd='func_win32_libid'
5867 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5868 lt_cv_file_magic_cmd='$OBJDUMP -f'
5873 # use the weaker test based on 'objdump'. See mingw*.
5874 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5875 lt_cv_file_magic_cmd='$OBJDUMP -f'
5878 darwin* | rhapsody*)
5879 lt_cv_deplibs_check_method=pass_all
5882 freebsd* | dragonfly*)
5883 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5886 # Not sure whether the presence of OpenBSD here was a mistake.
5887 # Let's accept both of them until this is cleared up.
5888 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5889 lt_cv_file_magic_cmd=/usr/bin/file
5890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5894 lt_cv_deplibs_check_method=pass_all
5899 lt_cv_deplibs_check_method=pass_all
5903 lt_cv_deplibs_check_method=pass_all
5906 hpux10.20* | hpux11*)
5907 lt_cv_file_magic_cmd=/usr/bin/file
5910 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5911 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5914 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]'
5915 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5919 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5925 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5929 irix5* | irix6* | nonstopux*)
5931 *-32|*"-32 ") libmagic=32-bit;;
5932 *-n32|*"-n32 ") libmagic=N32;;
5933 *-64|*"-64 ") libmagic=64-bit;;
5934 *) libmagic=never-match;;
5936 lt_cv_deplibs_check_method=pass_all
5939 # This must be Linux ELF.
5940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5941 lt_cv_deplibs_check_method=pass_all
5945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5954 lt_cv_file_magic_cmd=/usr/bin/file
5955 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5959 lt_cv_deplibs_check_method=pass_all
5963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5970 osf3* | osf4* | osf5*)
5971 lt_cv_deplibs_check_method=pass_all
5975 lt_cv_deplibs_check_method=pass_all
5979 lt_cv_deplibs_check_method=pass_all
5982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5983 lt_cv_deplibs_check_method=pass_all
5987 case $host_vendor in
5989 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]'
5990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5993 lt_cv_deplibs_check_method=pass_all
5996 lt_cv_file_magic_cmd='/bin/file'
5997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6000 lt_cv_file_magic_cmd='/bin/file'
6001 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6002 lt_cv_file_magic_test_file=/lib/libc.so
6005 lt_cv_deplibs_check_method=pass_all
6008 lt_cv_deplibs_check_method=pass_all
6014 lt_cv_deplibs_check_method=pass_all
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6020 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6021 file_magic_cmd=$lt_cv_file_magic_cmd
6022 deplibs_check_method=$lt_cv_deplibs_check_method
6023 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}ar; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_AR+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$AR"; then
6045 ac_cv_prog_AR="$AR" # Let the user override the test.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_AR="${ac_tool_prefix}ar"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 if test -n "$AR"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6067 $as_echo "$AR" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6075 if test -z "$ac_cv_prog_AR"; then
6077 # Extract the first word of "ar", so it can be a program name with args.
6078 set dummy ar; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$ac_ct_AR"; then
6085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_AR="ar"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6113 if test "x$ac_ct_AR" = x; then
6116 case $cross_compiling:$ac_tool_warned in
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6128 test -z "$AR" && AR=ar
6129 test -z "$AR_FLAGS" && AR_FLAGS=cru
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}strip; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_STRIP+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$STRIP"; then
6150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 STRIP=$ac_cv_prog_STRIP
6170 if test -n "$STRIP"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6172 $as_echo "$STRIP" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6180 if test -z "$ac_cv_prog_STRIP"; then
6182 # Extract the first word of "strip", so it can be a program name with args.
6183 set dummy strip; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 if test -n "$ac_ct_STRIP"; then
6190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_STRIP="strip"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6210 if test -n "$ac_ct_STRIP"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6212 $as_echo "$ac_ct_STRIP" >&6; }
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6218 if test "x$ac_ct_STRIP" = x; then
6221 case $cross_compiling:$ac_tool_warned in
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6230 STRIP="$ac_cv_prog_STRIP"
6233 test -z "$STRIP" && STRIP=:
6240 if test -n "$ac_tool_prefix"; then
6241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$RANLIB"; then
6249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 RANLIB=$ac_cv_prog_RANLIB
6269 if test -n "$RANLIB"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6271 $as_echo "$RANLIB" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6279 if test -z "$ac_cv_prog_RANLIB"; then
6280 ac_ct_RANLIB=$RANLIB
6281 # Extract the first word of "ranlib", so it can be a program name with args.
6282 set dummy ranlib; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$ac_ct_RANLIB"; then
6289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_prog_ac_ct_RANLIB="ranlib"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6309 if test -n "$ac_ct_RANLIB"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6311 $as_echo "$ac_ct_RANLIB" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6317 if test "x$ac_ct_RANLIB" = x; then
6320 case $cross_compiling:$ac_tool_warned in
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324 ac_tool_warned=yes ;;
6326 RANLIB=$ac_ct_RANLIB
6329 RANLIB="$ac_cv_prog_RANLIB"
6332 test -z "$RANLIB" && RANLIB=:
6339 # Determine commands to create old-style static archives.
6340 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6341 old_postinstall_cmds='chmod 644 $oldlib'
6342 old_postuninstall_cmds=
6344 if test -n "$RANLIB"; then
6347 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6350 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6353 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6358 lock_old_archive_extraction=yes ;;
6360 lock_old_archive_extraction=no ;;
6401 # If no C compiler was specified, use CC.
6404 # If no C compiler flags were specified, use CFLAGS.
6405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6407 # Allow CC to be a program name with arguments.
6411 # Check for command to grab the raw symbol name followed by C symbol from nm.
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6413 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6414 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6418 # These are sane defaults that work on at least a few old systems.
6419 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6421 # Character class describing NM global symbol codes.
6422 symcode='[BCDEGRST]'
6424 # Regexp to match symbols that can be accessed directly from C.
6425 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6427 # Define system-specific variables.
6432 cygwin* | mingw* | pw32* | cegcc*)
6433 symcode='[ABCDGISTW]'
6436 if test "$host_cpu" = ia64; then
6437 symcode='[ABCDEGRST]'
6441 symcode='[BCDEGRST]'
6444 symcode='[BCDEGQRST]'
6455 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6463 # If we're using GNU nm, then use its standard symbol codes.
6464 case `$NM -V 2>&1` in
6465 *GNU* | *'with BFD'*)
6466 symcode='[ABCDGIRSTW]' ;;
6469 # Transform an extracted symbol line into a proper C declaration.
6470 # Some systems (esp. on ia64) link data and code symbols differently,
6471 # so use this general approach.
6472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6474 # Transform an extracted symbol line into symbol name and symbol address
6475 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6476 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'"
6478 # Handle CRLF in mingw tool chain
6482 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6486 # Try without a prefix underscore, then with it.
6487 for ac_symprfx in "" "_"; do
6489 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6490 symxfrm="\\1 $ac_symprfx\\2 \\2"
6492 # Write the raw and C identifiers.
6493 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6494 # Fake it for dumpbin and say T for any non-static function
6495 # and D for any global variable.
6496 # Also find C++ and __fastcall symbols from MSVC++,
6497 # which start with @ or ?.
6498 lt_cv_sys_global_symbol_pipe="$AWK '"\
6499 " {last_section=section; section=\$ 3};"\
6500 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6501 " \$ 0!~/External *\|/{next};"\
6502 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6503 " {if(hide[section]) next};"\
6504 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6505 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6506 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6507 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6508 " ' prfx=^$ac_symprfx"
6510 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513 # Check to see that the pipe works correctly.
6517 cat > conftest.$ac_ext <<_LT_EOF
6522 void nm_test_func(void);
6523 void nm_test_func(void){}
6527 int main(){nm_test_var='a';nm_test_func();return(0);}
6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531 (eval $ac_compile) 2>&5
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 # Now try to grab the symbols.
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6538 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; } && test -s "$nlist"; then
6542 # Try sorting and uniquifying the output.
6543 if sort "$nlist" | uniq > "$nlist"T; then
6544 mv -f "$nlist"T "$nlist"
6549 # Make sure that we snagged all the symbols we need.
6550 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6551 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6552 cat <<_LT_EOF > conftest.$ac_ext
6558 # Now generate the symbol file.
6559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6561 cat <<_LT_EOF >> conftest.$ac_ext
6563 /* The mapping between symbol names and symbols. */
6568 lt__PROGRAM__LTX_preloaded_symbols[] =
6570 { "@PROGRAM@", (void *) 0 },
6572 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6573 cat <<\_LT_EOF >> conftest.$ac_ext
6577 /* This works around a problem in FreeBSD linker */
6578 #ifdef FREEBSD_WORKAROUND
6579 static const void *lt_preloaded_setup() {
6580 return lt__PROGRAM__LTX_preloaded_symbols;
6588 # Now try linking the two files.
6589 mv conftest.$ac_objext conftstm.$ac_objext
6590 lt_save_LIBS="$LIBS"
6591 lt_save_CFLAGS="$CFLAGS"
6592 LIBS="conftstm.$ac_objext"
6593 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6595 (eval $ac_link) 2>&5
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6601 LIBS="$lt_save_LIBS"
6602 CFLAGS="$lt_save_CFLAGS"
6604 echo "cannot find nm_test_func in $nlist" >&5
6607 echo "cannot find nm_test_var in $nlist" >&5
6610 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6613 echo "$progname: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 rm -rf conftest* conftst*
6618 # Do not use the global_symbol_pipe unless it works.
6619 if test "$pipe_works" = yes; then
6622 lt_cv_sys_global_symbol_pipe=
6628 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6629 lt_cv_sys_global_symbol_to_cdecl=
6631 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6633 $as_echo "failed" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6636 $as_echo "ok" >&6; }
6660 # Check whether --enable-libtool-lock was given.
6661 if test "${enable_libtool_lock+set}" = set; then :
6662 enableval=$enable_libtool_lock;
6665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6667 # Some flags need to be propagated to the compiler or linker for good
6671 # Find out which ABI we are using.
6672 echo 'int i;' > conftest.$ac_ext
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674 (eval $ac_compile) 2>&5
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }; then
6678 case `/usr/bin/file conftest.$ac_objext` in
6690 # Find out which ABI we are using.
6691 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693 (eval $ac_compile) 2>&5
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; }; then
6697 if test "$lt_cv_prog_gnu_ld" = yes; then
6698 case `/usr/bin/file conftest.$ac_objext` in
6700 LD="${LD-ld} -melf32bsmip"
6703 LD="${LD-ld} -melf32bmipn32"
6706 LD="${LD-ld} -melf64bmip"
6710 case `/usr/bin/file conftest.$ac_objext` in
6726 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6727 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6728 # Find out which ABI we are using.
6729 echo 'int i;' > conftest.$ac_ext
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731 (eval $ac_compile) 2>&5
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }; then
6735 case `/usr/bin/file conftest.o` in
6738 x86_64-*kfreebsd*-gnu)
6739 LD="${LD-ld} -m elf_i386_fbsd"
6742 case `/usr/bin/file conftest.o` in
6744 LD="${LD-ld} -m elf32_x86_64"
6747 LD="${LD-ld} -m elf_i386"
6751 powerpc64le-*linux*)
6752 LD="${LD-ld} -m elf32lppclinux"
6755 LD="${LD-ld} -m elf32ppclinux"
6758 LD="${LD-ld} -m elf_s390"
6761 LD="${LD-ld} -m elf32_sparc"
6767 x86_64-*kfreebsd*-gnu)
6768 LD="${LD-ld} -m elf_x86_64_fbsd"
6771 LD="${LD-ld} -m elf_x86_64"
6774 LD="${LD-ld} -m elf64lppc"
6777 LD="${LD-ld} -m elf64ppc"
6779 s390*-*linux*|s390*-*tpf*)
6780 LD="${LD-ld} -m elf64_s390"
6783 LD="${LD-ld} -m elf64_sparc"
6793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6794 SAVE_CFLAGS="$CFLAGS"
6795 CFLAGS="$CFLAGS -belf"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6797 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6798 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6802 ac_cpp='$CPP $CPPFLAGS'
6803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6818 if ac_fn_c_try_link "$LINENO"; then :
6819 lt_cv_cc_needs_belf=yes
6821 lt_cv_cc_needs_belf=no
6823 rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6833 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6834 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6836 CFLAGS="$SAVE_CFLAGS"
6840 # Find out which ABI we are using.
6841 echo 'int i;' > conftest.$ac_ext
6842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6843 (eval $ac_compile) 2>&5
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; then
6847 case `/usr/bin/file conftest.o` in
6849 case $lt_cv_prog_gnu_ld in
6850 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6864 need_locks="$enable_libtool_lock"
6868 rhapsody* | darwin*)
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6877 if test -n "$DSYMUTIL"; then
6878 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6898 if test -n "$DSYMUTIL"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6900 $as_echo "$DSYMUTIL" >&6; }
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6908 if test -z "$ac_cv_prog_DSYMUTIL"; then
6909 ac_ct_DSYMUTIL=$DSYMUTIL
6910 # Extract the first word of "dsymutil", so it can be a program name with args.
6911 set dummy dsymutil; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6917 if test -n "$ac_ct_DSYMUTIL"; then
6918 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6938 if test -n "$ac_ct_DSYMUTIL"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6940 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$ac_ct_DSYMUTIL" = x; then
6949 case $cross_compiling:$ac_tool_warned in
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6955 DSYMUTIL=$ac_ct_DSYMUTIL
6958 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6969 if test -n "$NMEDIT"; then
6970 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 NMEDIT=$ac_cv_prog_NMEDIT
6990 if test -n "$NMEDIT"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6992 $as_echo "$NMEDIT" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
7000 if test -z "$ac_cv_prog_NMEDIT"; then
7001 ac_ct_NMEDIT=$NMEDIT
7002 # Extract the first word of "nmedit", so it can be a program name with args.
7003 set dummy nmedit; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7009 if test -n "$ac_ct_NMEDIT"; then
7010 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7030 if test -n "$ac_ct_NMEDIT"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7032 $as_echo "$ac_ct_NMEDIT" >&6; }
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7038 if test "x$ac_ct_NMEDIT" = x; then
7041 case $cross_compiling:$ac_tool_warned in
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7047 NMEDIT=$ac_ct_NMEDIT
7050 NMEDIT="$ac_cv_prog_NMEDIT"
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if test "${ac_cv_prog_LIPO+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7061 if test -n "$LIPO"; then
7062 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 LIPO=$ac_cv_prog_LIPO
7082 if test -n "$LIPO"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7084 $as_echo "$LIPO" >&6; }
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7092 if test -z "$ac_cv_prog_LIPO"; then
7094 # Extract the first word of "lipo", so it can be a program name with args.
7095 set dummy lipo; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7101 if test -n "$ac_ct_LIPO"; then
7102 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_ac_ct_LIPO="lipo"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7122 if test -n "$ac_ct_LIPO"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7124 $as_echo "$ac_ct_LIPO" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7130 if test "x$ac_ct_LIPO" = x; then
7133 case $cross_compiling:$ac_tool_warned in
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137 ac_tool_warned=yes ;;
7142 LIPO="$ac_cv_prog_LIPO"
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}otool; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7153 if test -n "$OTOOL"; then
7154 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 OTOOL=$ac_cv_prog_OTOOL
7174 if test -n "$OTOOL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7176 $as_echo "$OTOOL" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7184 if test -z "$ac_cv_prog_OTOOL"; then
7186 # Extract the first word of "otool", so it can be a program name with args.
7187 set dummy otool; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7193 if test -n "$ac_ct_OTOOL"; then
7194 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_OTOOL="otool"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7214 if test -n "$ac_ct_OTOOL"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7216 $as_echo "$ac_ct_OTOOL" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7222 if test "x$ac_ct_OTOOL" = x; then
7225 case $cross_compiling:$ac_tool_warned in
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7234 OTOOL="$ac_cv_prog_OTOOL"
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7245 if test -n "$OTOOL64"; then
7246 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 OTOOL64=$ac_cv_prog_OTOOL64
7266 if test -n "$OTOOL64"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7268 $as_echo "$OTOOL64" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7276 if test -z "$ac_cv_prog_OTOOL64"; then
7277 ac_ct_OTOOL64=$OTOOL64
7278 # Extract the first word of "otool64", so it can be a program name with args.
7279 set dummy otool64; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$ac_ct_OTOOL64"; then
7286 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_ac_ct_OTOOL64="otool64"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7306 if test -n "$ac_ct_OTOOL64"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7308 $as_echo "$ac_ct_OTOOL64" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7314 if test "x$ac_ct_OTOOL64" = x; then
7317 case $cross_compiling:$ac_tool_warned in
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7323 OTOOL64=$ac_ct_OTOOL64
7326 OTOOL64="$ac_cv_prog_OTOOL64"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7356 $as_echo_n "checking for -single_module linker flag... " >&6; }
7357 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7360 lt_cv_apple_cc_single_mod=no
7361 if test -z "${LT_MULTI_MODULE}"; then
7362 # By default we will add the -single_module flag. You can override
7363 # by either setting the environment variable LT_MULTI_MODULE
7364 # non-empty at configure time, or by adding -multi_module to the
7366 rm -rf libconftest.dylib*
7367 echo "int foo(void){return 1;}" > conftest.c
7368 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7369 -dynamiclib -Wl,-single_module conftest.c" >&5
7370 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7373 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7374 lt_cv_apple_cc_single_mod=yes
7376 cat conftest.err >&5
7378 rm -rf libconftest.dylib*
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7383 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7385 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
7389 lt_cv_ld_exported_symbols_list=no
7390 save_LDFLAGS=$LDFLAGS
7391 echo "_main" > conftest.sym
7392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 lt_cv_ld_exported_symbols_list=yes
7407 lt_cv_ld_exported_symbols_list=no
7409 rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
7411 LDFLAGS="$save_LDFLAGS"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7415 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7417 $as_echo_n "checking for -force_load linker flag... " >&6; }
7418 if test "${lt_cv_ld_force_load+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7421 lt_cv_ld_force_load=no
7422 cat > conftest.c << _LT_EOF
7423 int forced_loaded() { return 2;}
7425 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7426 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7427 echo "$AR cru libconftest.a conftest.o" >&5
7428 $AR cru libconftest.a conftest.o 2>&5
7429 cat > conftest.c << _LT_EOF
7430 int main() { return 0;}
7432 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7433 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7435 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7436 lt_cv_ld_force_load=yes
7438 cat conftest.err >&5
7440 rm -f conftest.err libconftest.a conftest conftest.c
7441 rm -rf conftest.dSYM
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7445 $as_echo "$lt_cv_ld_force_load" >&6; }
7447 rhapsody* | darwin1.[012])
7448 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7451 darwin*) # darwin 5.x on
7452 # if running on 10.5 or later, the deployment target defaults
7453 # to the OS version, if on x86, and 10.4, the deployment
7454 # target defaults to 10.4. Don't you love it?
7455 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7456 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7465 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7466 _lt_dar_single_mod='$single_module'
7468 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7469 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7471 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7473 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7474 _lt_dsymutil='~$DSYMUTIL $lib || :'
7481 for ac_header in dlfcn.h
7483 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7485 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7486 cat >>confdefs.h <<_ACEOF
7487 #define HAVE_DLFCN_H 1
7508 # Check whether --enable-shared was given.
7509 if test "${enable_shared+set}" = set; then :
7510 enableval=$enable_shared; p=${PACKAGE-default}
7512 yes) enable_shared=yes ;;
7513 no) enable_shared=no ;;
7516 # Look at the argument we got. We use all the common list separators.
7517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7518 for pkg in $enableval; do
7520 if test "X$pkg" = "X$p"; then
7539 # Check whether --enable-static was given.
7540 if test "${enable_static+set}" = set; then :
7541 enableval=$enable_static; p=${PACKAGE-default}
7543 yes) enable_static=yes ;;
7544 no) enable_static=no ;;
7547 # Look at the argument we got. We use all the common list separators.
7548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7549 for pkg in $enableval; do
7551 if test "X$pkg" = "X$p"; then
7571 # Check whether --with-pic was given.
7572 if test "${with_pic+set}" = set; then :
7573 withval=$with_pic; pic_mode="$withval"
7579 test -z "$pic_mode" && pic_mode=default
7587 # Check whether --enable-fast-install was given.
7588 if test "${enable_fast_install+set}" = set; then :
7589 enableval=$enable_fast_install; p=${PACKAGE-default}
7591 yes) enable_fast_install=yes ;;
7592 no) enable_fast_install=no ;;
7594 enable_fast_install=no
7595 # Look at the argument we got. We use all the common list separators.
7596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7597 for pkg in $enableval; do
7599 if test "X$pkg" = "X$p"; then
7600 enable_fast_install=yes
7607 enable_fast_install=yes
7620 # This can be used to rebuild libtool when needed
7621 LIBTOOL_DEPS="$ltmain"
7623 # Always use our own libtool.
7624 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7651 test -z "$LN_S" && LN_S="ln -s"
7666 if test -n "${ZSH_VERSION+set}" ; then
7667 setopt NO_GLOB_SUBST
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7671 $as_echo_n "checking for objdir... " >&6; }
7672 if test "${lt_cv_objdir+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7675 rm -f .libs 2>/dev/null
7676 mkdir .libs 2>/dev/null
7677 if test -d .libs; then
7680 # MS-DOS does not allow filenames that begin with a dot.
7683 rmdir .libs 2>/dev/null
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7686 $as_echo "$lt_cv_objdir" >&6; }
7687 objdir=$lt_cv_objdir
7693 cat >>confdefs.h <<_ACEOF
7694 #define LT_OBJDIR "$lt_cv_objdir/"
7702 # AIX sometimes has problems with the GCC collect2 program. For some
7703 # reason, if we set the COLLECT_NAMES environment variable, the problems
7704 # vanish in a puff of smoke.
7705 if test "X${COLLECT_NAMES+set}" != Xset; then
7707 export COLLECT_NAMES
7714 can_build_shared=yes
7716 # All known linkers require a `.a' archive for static linking (except MSVC,
7717 # which needs '.lib').
7720 with_gnu_ld="$lt_cv_prog_gnu_ld"
7723 old_CFLAGS="$CFLAGS"
7725 # Set sane defaults for various variables
7726 test -z "$CC" && CC=cc
7727 test -z "$LTCC" && LTCC=$CC
7728 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7729 test -z "$LD" && LD=ld
7730 test -z "$ac_objext" && ac_objext=o
7732 for cc_temp in $compiler""; do
7734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7740 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7743 # Only perform the check for file, if the check method requires it
7744 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7745 case $deplibs_check_method in
7747 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7749 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7750 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7758 lt_save_MAGIC_CMD="$MAGIC_CMD"
7759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7761 for ac_dir in $ac_dummy; do
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/${ac_tool_prefix}file; then
7765 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7766 if test -n "$file_magic_test_file"; then
7767 case $deplibs_check_method in
7769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7772 $EGREP "$file_magic_regex" > /dev/null; then
7777 *** Warning: the command libtool uses to detect shared libraries,
7778 *** $file_magic_cmd, produces output that libtool cannot recognize.
7779 *** The result is that libtool may fail to recognize shared libraries
7780 *** as such. This will affect the creation of libtool libraries that
7781 *** depend on shared libraries, but programs linked with such libtool
7782 *** libraries will work regardless of this problem. Nevertheless, you
7783 *** may want to report the problem to your system manager and/or to
7784 *** bug-libtool@gnu.org
7794 MAGIC_CMD="$lt_save_MAGIC_CMD"
7799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7800 if test -n "$MAGIC_CMD"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7802 $as_echo "$MAGIC_CMD" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7812 if test -z "$lt_cv_path_MAGIC_CMD"; then
7813 if test -n "$ac_tool_prefix"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7815 $as_echo_n "checking for file... " >&6; }
7816 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7824 lt_save_MAGIC_CMD="$MAGIC_CMD"
7825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7826 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7827 for ac_dir in $ac_dummy; do
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f $ac_dir/file; then
7831 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7832 if test -n "$file_magic_test_file"; then
7833 case $deplibs_check_method in
7835 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7838 $EGREP "$file_magic_regex" > /dev/null; then
7843 *** Warning: the command libtool uses to detect shared libraries,
7844 *** $file_magic_cmd, produces output that libtool cannot recognize.
7845 *** The result is that libtool may fail to recognize shared libraries
7846 *** as such. This will affect the creation of libtool libraries that
7847 *** depend on shared libraries, but programs linked with such libtool
7848 *** libraries will work regardless of this problem. Nevertheless, you
7849 *** may want to report the problem to your system manager and/or to
7850 *** bug-libtool@gnu.org
7860 MAGIC_CMD="$lt_save_MAGIC_CMD"
7865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7866 if test -n "$MAGIC_CMD"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7868 $as_echo "$MAGIC_CMD" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7884 # Use C for the default configuration in the libtool script
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894 # Source file extension for C test sources.
7897 # Object file extension for compiled C test sources.
7901 # Code to be used in simple compile tests
7902 lt_simple_compile_test_code="int some_variable = 0;"
7904 # Code to be used in simple link tests
7905 lt_simple_link_test_code='int main(){return(0);}'
7913 # If no C compiler was specified, use CC.
7916 # If no C compiler flags were specified, use CFLAGS.
7917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7919 # Allow CC to be a program name with arguments.
7922 # Save the default compiler, since it gets overwritten when the other
7923 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7924 compiler_DEFAULT=$CC
7926 # save warnings/boilerplate of simple test code
7927 ac_outfile=conftest.$ac_objext
7928 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7930 _lt_compiler_boilerplate=`cat conftest.err`
7933 ac_outfile=conftest.$ac_objext
7934 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7936 _lt_linker_boilerplate=`cat conftest.err`
7941 ## There is no encapsulation within the following macros, do not change
7942 ## the running order or otherwise move them around unless you know exactly
7943 ## what you are doing...
7944 if test -n "$compiler"; then
7946 lt_prog_compiler_no_builtin_flag=
7948 if test "$GCC" = yes; then
7949 case $cc_basename in
7951 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7953 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7957 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7958 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 lt_cv_prog_compiler_rtti_exceptions=no
7962 ac_outfile=conftest.$ac_objext
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964 lt_compiler_flag="-fno-rtti -fno-exceptions"
7965 # Insert the option either (1) after the last *FLAGS variable, or
7966 # (2) before a word containing "conftest.", or (3) at the end.
7967 # Note that $ac_compile itself does not contain backslashes and begins
7968 # with a dollar sign (not a hyphen), so the echo should work correctly.
7969 # The option is referenced via a variable to avoid confusing sed.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>conftest.err)
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s "$ac_outfile"; then
7980 # The compiler can only warn and ignore the option if not recognized
7981 # So say no if there are warnings other than the usual output.
7982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7985 lt_cv_prog_compiler_rtti_exceptions=yes
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7992 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7995 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8007 lt_prog_compiler_wl=
8008 lt_prog_compiler_pic=
8009 lt_prog_compiler_static=
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8012 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8014 if test "$GCC" = yes; then
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_static='-static'
8020 # All AIX code is PIC.
8021 if test "$host_cpu" = ia64; then
8022 # AIX 5 now supports IA64 processor
8023 lt_prog_compiler_static='-Bstatic'
8025 lt_prog_compiler_pic='-fPIC'
8031 # see comment about AmigaOS4 .so support
8032 lt_prog_compiler_pic='-fPIC'
8035 # FIXME: we need at least 68020 code to build shared libraries, but
8036 # adding the `-m68020' flag to GCC prevents building anything better,
8038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8044 # PIC is the default for these OSes.
8047 mingw* | cygwin* | pw32* | os2* | cegcc*)
8048 # This hack is so that the source file can tell whether it is being
8049 # built for inclusion in a dll (and should export symbols for example).
8050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8051 # (--disable-auto-import) libraries
8052 lt_prog_compiler_pic='-DDLL_EXPORT'
8055 darwin* | rhapsody*)
8056 # PIC is the default on this platform
8057 # Common symbols not allowed in MH_DYLIB files
8058 lt_prog_compiler_pic='-fno-common'
8062 # PIC is the default for Haiku.
8063 # The "-static" flag exists, but is broken.
8064 lt_prog_compiler_static=
8068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8070 # sets the default TLS model and affects inlining.
8076 lt_prog_compiler_pic='-fPIC'
8082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8083 # Instead, we relocate shared libraries at runtime.
8087 # Just because we use GCC doesn't mean we suddenly get shared libraries
8088 # on systems that don't support them.
8089 lt_prog_compiler_can_build_shared=no
8094 # QNX uses GNU C++, but need to define -shared option too, otherwise
8096 lt_prog_compiler_pic='-fPIC -shared'
8100 if test -d /usr/nec; then
8101 lt_prog_compiler_pic=-Kconform_pic
8106 lt_prog_compiler_pic='-fPIC'
8110 case $cc_basename in
8111 nvcc*) # Cuda Compiler Driver 2.2
8112 lt_prog_compiler_wl='-Xlinker '
8113 lt_prog_compiler_pic='-Xcompiler -fPIC'
8117 # PORTME Check for flag to pass linker flags through the system compiler.
8120 lt_prog_compiler_wl='-Wl,'
8121 if test "$host_cpu" = ia64; then
8122 # AIX 5 now supports IA64 processor
8123 lt_prog_compiler_static='-Bstatic'
8125 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8129 mingw* | cygwin* | pw32* | os2* | cegcc*)
8130 # This hack is so that the source file can tell whether it is being
8131 # built for inclusion in a dll (and should export symbols for example).
8132 lt_prog_compiler_pic='-DDLL_EXPORT'
8135 hpux9* | hpux10* | hpux11*)
8136 lt_prog_compiler_wl='-Wl,'
8137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8144 lt_prog_compiler_pic='+Z'
8147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8148 lt_prog_compiler_static='${wl}-a ${wl}archive'
8151 irix5* | irix6* | nonstopux*)
8152 lt_prog_compiler_wl='-Wl,'
8153 # PIC (with -KPIC) is the default.
8154 lt_prog_compiler_static='-non_shared'
8157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8158 case $cc_basename in
8159 # old Intel for x86_64 which still supported -KPIC.
8161 lt_prog_compiler_wl='-Wl,'
8162 lt_prog_compiler_pic='-KPIC'
8163 lt_prog_compiler_static='-static'
8165 # icc used to be incompatible with GCC.
8166 # ICC 10 doesn't accept -KPIC any more.
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-fPIC'
8170 lt_prog_compiler_static='-static'
8172 # Lahey Fortran 8.1.
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='--shared'
8176 lt_prog_compiler_static='--static'
8178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8179 # Portland Group compilers (*not* the Pentium gcc compiler,
8180 # which looks to be a dead project)
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-fpic'
8183 lt_prog_compiler_static='-Bstatic'
8186 lt_prog_compiler_wl='-Wl,'
8187 # All Alpha code is PIC.
8188 lt_prog_compiler_static='-non_shared'
8190 xl* | bgxl* | bgf* | mpixl*)
8191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-qpic'
8194 lt_prog_compiler_static='-qstaticlink'
8197 case `$CC -V 2>&1 | sed 5q` in
8198 *Sun\ F* | *Sun*Fortran*)
8199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-Bstatic'
8202 lt_prog_compiler_wl=''
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
8208 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_pic='-KPIC'
8217 lt_prog_compiler_static='-Bstatic'
8221 # QNX uses GNU C++, but need to define -shared option too, otherwise
8223 lt_prog_compiler_pic='-fPIC -shared'
8226 osf3* | osf4* | osf5*)
8227 lt_prog_compiler_wl='-Wl,'
8228 # All OSF/1 code is PIC.
8229 lt_prog_compiler_static='-non_shared'
8233 lt_prog_compiler_static='-non_shared'
8237 lt_prog_compiler_pic='-KPIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 case $cc_basename in
8241 lt_prog_compiler_wl='-Qoption ld ';;
8243 lt_prog_compiler_wl='-Wl,';;
8248 lt_prog_compiler_wl='-Qoption ld '
8249 lt_prog_compiler_pic='-PIC'
8250 lt_prog_compiler_static='-Bstatic'
8253 sysv4 | sysv4.2uw2* | sysv4.3*)
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8260 if test -d /usr/nec ;then
8261 lt_prog_compiler_pic='-Kconform_pic'
8262 lt_prog_compiler_static='-Bstatic'
8266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-Bstatic'
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_can_build_shared=no
8278 lt_prog_compiler_pic='-pic'
8279 lt_prog_compiler_static='-Bstatic'
8283 lt_prog_compiler_can_build_shared=no
8289 # For platforms which do not support PIC, -DPIC is meaningless:
8291 lt_prog_compiler_pic=
8294 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8298 $as_echo "$lt_prog_compiler_pic" >&6; }
8306 # Check to make sure the PIC flag actually works.
8308 if test -n "$lt_prog_compiler_pic"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8311 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8314 lt_cv_prog_compiler_pic_works=no
8315 ac_outfile=conftest.$ac_objext
8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8318 # Insert the option either (1) after the last *FLAGS variable, or
8319 # (2) before a word containing "conftest.", or (3) at the end.
8320 # Note that $ac_compile itself does not contain backslashes and begins
8321 # with a dollar sign (not a hyphen), so the echo should work correctly.
8322 # The option is referenced via a variable to avoid confusing sed.
8323 lt_compile=`echo "$ac_compile" | $SED \
8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326 -e 's:$: $lt_compiler_flag:'`
8327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8328 (eval "$lt_compile" 2>conftest.err)
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 if (exit $ac_status) && test -s "$ac_outfile"; then
8333 # The compiler can only warn and ignore the option if not recognized
8334 # So say no if there are warnings other than the usual output.
8335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8338 lt_cv_prog_compiler_pic_works=yes
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8347 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8348 case $lt_prog_compiler_pic in
8350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8353 lt_prog_compiler_pic=
8354 lt_prog_compiler_can_build_shared=no
8365 # Check to make sure the static flag actually works.
8367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8370 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8373 lt_cv_prog_compiler_static_works=no
8374 save_LDFLAGS="$LDFLAGS"
8375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8378 # The linker can only warn and ignore the option if not recognized
8379 # So say no if there are warnings
8380 if test -s conftest.err; then
8381 # Append any errors to the config.log.
8382 cat conftest.err 1>&5
8383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if diff conftest.exp conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_static_works=yes
8389 lt_cv_prog_compiler_static_works=yes
8393 LDFLAGS="$save_LDFLAGS"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8402 lt_prog_compiler_static=
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8416 lt_cv_prog_compiler_c_o=no
8417 $RM -r conftest 2>/dev/null
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>out/conftest.err)
8435 cat out/conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_c_o=yes
8449 # SGI C++ compiler will create directory out/ii_files/ for
8450 # template instantiation
8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452 $RM out/* && rmdir out
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8471 lt_cv_prog_compiler_c_o=no
8472 $RM -r conftest 2>/dev/null
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8478 lt_compiler_flag="-o out/conftest2.$ac_objext"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>out/conftest.err)
8490 cat out/conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_c_o=yes
8504 # SGI C++ compiler will create directory out/ii_files/ for
8505 # template instantiation
8506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507 $RM out/* && rmdir out
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8519 hard_links="nottested"
8520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8521 # do not overwrite the value of need_locks provided by the user
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8523 $as_echo_n "checking if we can lock with hard links... " >&6; }
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8528 ln conftest.a conftest.b 2>&5 || hard_links=no
8529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8531 $as_echo "$hard_links" >&6; }
8532 if test "$hard_links" = no; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8534 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8550 allow_undefined_flag=
8551 always_export_symbols=no
8553 archive_expsym_cmds=
8554 compiler_needs_object=no
8555 enable_shared_with_static_runtimes=no
8556 export_dynamic_flag_spec=
8557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8558 hardcode_automatic=no
8560 hardcode_direct_absolute=no
8561 hardcode_libdir_flag_spec=
8562 hardcode_libdir_flag_spec_ld=
8563 hardcode_libdir_separator=
8565 hardcode_shlibpath_var=unsupported
8567 link_all_deplibs=unknown
8570 old_archive_from_new_cmds=
8571 old_archive_from_expsyms_cmds=
8572 thread_safe_flag_spec=
8573 whole_archive_flag_spec=
8574 # include_expsyms should be a list of space-separated symbols to be *always*
8575 # included in the symbol list
8577 # exclude_expsyms can be an extended regexp of symbols to exclude
8578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8580 # as well as any symbol that contains `d'.
8581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8583 # platforms (ab)use it in PIC code, but their linkers get confused if
8584 # the symbol is explicitly referenced. Since portable code cannot
8585 # rely on this symbol name, it's probably fine to never include it in
8586 # preloaded symbol tables.
8587 # Exclude shared library initialization/finalization symbols.
8588 extract_expsyms_cmds=
8591 cygwin* | mingw* | pw32* | cegcc*)
8592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8593 # When not using gcc, we currently assume that we are using
8594 # Microsoft Visual C++.
8595 if test "$GCC" != yes; then
8600 # we just hope/assume this is gcc and not c89 (= MSVC++)
8610 # On some targets, GNU ld is compatible enough with the native linker
8611 # that we're better off using the native interface for both.
8612 lt_use_gnu_ld_interface=no
8613 if test "$with_gnu_ld" = yes; then
8616 # The AIX port of GNU ld has always aspired to compatibility
8617 # with the native linker. However, as the warning in the GNU ld
8618 # block says, versions before 2.19.5* couldn't really create working
8619 # shared libraries, regardless of the interface used.
8620 case `$LD -v 2>&1` in
8621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8625 lt_use_gnu_ld_interface=yes
8630 lt_use_gnu_ld_interface=yes
8635 if test "$lt_use_gnu_ld_interface" = yes; then
8636 # If archive_cmds runs LD, not CC, wlarc should be empty
8639 # Set some defaults for GNU ld with shared library support. These
8640 # are reset later if shared libraries are not supported. Putting them
8641 # here allows them to be overridden if necessary.
8642 runpath_var=LD_RUN_PATH
8643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 export_dynamic_flag_spec='${wl}--export-dynamic'
8645 # ancient GNU ld didn't support --whole-archive et. al.
8646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8649 whole_archive_flag_spec=
8651 supports_anon_versioning=no
8652 case `$LD -v 2>&1` in
8653 *GNU\ gold*) supports_anon_versioning=yes ;;
8654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8657 *\ 2.11.*) ;; # other 2.11 versions
8658 *) supports_anon_versioning=yes ;;
8661 # See if GNU ld supports shared libraries.
8664 # On AIX/PPC, the GNU linker is very broken
8665 if test "$host_cpu" != ia64; then
8669 *** Warning: the GNU linker, at least up to release 2.19, is reported
8670 *** to be unable to reliably create shared libraries on AIX.
8671 *** Therefore, libtool is disabling shared libraries support. If you
8672 *** really care for shared libraries, you may want to install binutils
8673 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8674 *** You will then need to restart the configuration process.
8683 # see comment about AmigaOS4 .so support
8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds=''
8688 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)'
8689 hardcode_libdir_flag_spec='-L$libdir'
8690 hardcode_minus_L=yes
8696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 allow_undefined_flag=unsupported
8698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8699 # support --undefined. This deserves some investigation. FIXME
8700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706 cygwin* | mingw* | pw32* | cegcc*)
8707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8708 # as there is no search path for DLLs.
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 export_dynamic_flag_spec='${wl}--export-all-symbols'
8711 allow_undefined_flag=unsupported
8712 always_export_symbols=no
8713 enable_shared_with_static_runtimes=yes
8714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8716 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8718 # If the export-symbols file already is a .def file (1st line
8719 # is EXPORTS), use it as is; otherwise, prepend...
8720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8721 cp $export_symbols $output_objdir/$soname.def;
8723 echo EXPORTS > $output_objdir/$soname.def;
8724 cat $export_symbols >> $output_objdir/$soname.def;
8726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 link_all_deplibs=yes
8739 hardcode_shlibpath_var=no
8740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8741 export_dynamic_flag_spec='${wl}-E'
8742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8743 # Instead, shared libraries are loaded at an image base (0x10000000 by
8744 # default) and relocated if they conflict, which is a slow very memory
8745 # consuming and fragmenting process. To avoid this, we pick a random,
8746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8749 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'
8752 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8754 if test "$host_os" = linux-dietlibc; then
8755 case $cc_basename in
8756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8760 && test "$tmp_diet" = no
8762 tmp_addflag=' $pic_flag'
8763 tmp_sharedflag='-shared'
8764 case $cc_basename,$host_cpu in
8765 pgcc*) # Portland Group C compiler
8766 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'
8767 tmp_addflag=' $pic_flag'
8769 pgf77* | pgf90* | pgf95* | pgfortran*)
8770 # Portland Group f77 and f90 compilers
8771 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'
8772 tmp_addflag=' $pic_flag -Mnomain' ;;
8773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8774 tmp_addflag=' -i_dynamic' ;;
8775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8776 tmp_addflag=' -i_dynamic -nofor_main' ;;
8777 ifc* | ifort*) # Intel Fortran compiler
8778 tmp_addflag=' -nofor_main' ;;
8779 lf95*) # Lahey Fortran 8.1
8780 whole_archive_flag_spec=
8781 tmp_sharedflag='--shared' ;;
8782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8783 tmp_sharedflag='-qmkshrobj'
8785 nvcc*) # Cuda Compiler Driver 2.2
8786 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'
8787 compiler_needs_object=yes
8790 case `$CC -V 2>&1 | sed 5q` in
8791 *Sun\ C*) # Sun C 5.9
8792 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'
8793 compiler_needs_object=yes
8794 tmp_sharedflag='-G' ;;
8795 *Sun\ F*) # Sun Fortran 8.3
8796 tmp_sharedflag='-G' ;;
8798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800 if test "x$supports_anon_versioning" = xyes; then
8801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8803 echo "local: *; };" >> $output_objdir/$libname.ver~
8804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8807 case $cc_basename in
8808 xlf* | bgf* | bgxlf* | mpixlf*)
8809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8810 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8811 hardcode_libdir_flag_spec=
8812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8813 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8814 if test "x$supports_anon_versioning" = xyes; then
8815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8817 echo "local: *; };" >> $output_objdir/$libname.ver~
8818 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8829 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8838 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8843 *** create shared libraries on Solaris systems. Therefore, libtool
8844 *** is disabling shared libraries support. We urge you to upgrade GNU
8845 *** binutils to release 2.9.1 or newer. Another option is to modify
8846 *** your PATH or compiler configuration so that the native linker is
8847 *** used, and then restart.
8850 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8859 case `$LD -v 2>&1` in
8860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8865 *** reliably create shared libraries on SCO systems. Therefore, libtool
8866 *** is disabling shared libraries support. We urge you to upgrade GNU
8867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8868 *** your PATH or compiler configuration so that the native linker is
8869 *** used, and then restart.
8874 # For security reasons, it is highly recommended that you always
8875 # use absolute paths for naming shared libraries, and exclude the
8876 # DT_RUNPATH tag from executables and libraries. But doing so
8877 # requires that you compile everything twice, which is a pain.
8878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8893 hardcode_shlibpath_var=no
8897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8906 if test "$ld_shlibs" = no; then
8908 hardcode_libdir_flag_spec=
8909 export_dynamic_flag_spec=
8910 whole_archive_flag_spec=
8913 # PORTME fill in a description of your system's linker (not GNU ld)
8916 allow_undefined_flag=unsupported
8917 always_export_symbols=yes
8918 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'
8919 # Note: this linker hardcodes the directories in LIBPATH if there
8920 # are no directories specified by -L.
8921 hardcode_minus_L=yes
8922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8923 # Neither direct hardcoding nor static linking is supported with a
8925 hardcode_direct=unsupported
8930 if test "$host_cpu" = ia64; then
8931 # On IA64, the linker does run time linking by default, so we don't
8932 # have to do anything special.
8933 aix_use_runtimelinking=no
8934 exp_sym_flag='-Bexport'
8937 # If we're using GNU nm, then we don't want the "-C" option.
8938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8939 # Also, AIX nm treats weak defined symbols like other global
8940 # defined symbols, whereas GNU nm marks them as "W".
8941 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8942 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'
8944 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8946 aix_use_runtimelinking=no
8948 # Test if we are trying to use run time linking or normal
8949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8950 # need to do runtime linking.
8951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8952 for ld_flag in $LDFLAGS; do
8953 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8954 aix_use_runtimelinking=yes
8961 exp_sym_flag='-bexport'
8962 no_entry_flag='-bnoentry'
8965 # When large executables or shared objects are built, AIX ld can
8966 # have problems creating the table of contents. If linking a library
8967 # or program results in "error TOC overflow" add -mminimal-toc to
8968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8973 hardcode_direct_absolute=yes
8974 hardcode_libdir_separator=':'
8975 link_all_deplibs=yes
8976 file_list_spec='${wl}-f,'
8978 if test "$GCC" = yes; then
8979 case $host_os in aix4.[012]|aix4.[012].*)
8980 # We only want to do this on AIX 4.2 and lower, the check
8981 # below for broken collect2 doesn't work under 4.3+
8982 collect2name=`${CC} -print-prog-name=collect2`
8983 if test -f "$collect2name" &&
8984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8986 # We have reworked collect2
8989 # We have old collect2
8990 hardcode_direct=unsupported
8991 # It fails to find uninstalled libraries when the uninstalled
8992 # path is not listed in the libpath. Setting hardcode_minus_L
8993 # to unsupported forces relinking
8994 hardcode_minus_L=yes
8995 hardcode_libdir_flag_spec='-L$libdir'
8996 hardcode_libdir_separator=
9000 shared_flag='-shared'
9001 if test "$aix_use_runtimelinking" = yes; then
9002 shared_flag="$shared_flag "'${wl}-G'
9006 if test "$host_cpu" = ia64; then
9007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9008 # chokes on -Wl,-G. The following line is correct:
9011 if test "$aix_use_runtimelinking" = yes; then
9012 shared_flag='${wl}-G'
9014 shared_flag='${wl}-bM:SRE'
9019 export_dynamic_flag_spec='${wl}-bexpall'
9020 # It seems that -bexpall does not export symbols beginning with
9021 # underscore (_), so it is better to generate a list of symbols to export.
9022 always_export_symbols=yes
9023 if test "$aix_use_runtimelinking" = yes; then
9024 # Warning - without using the other runtime loading flags (-brtl),
9025 # -berok will link without error, but may produce a broken library.
9026 allow_undefined_flag='-berok'
9027 # Determine the default libpath from the value encoded in an
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9040 if ac_fn_c_try_link "$LINENO"; then :
9042 lt_aix_libpath_sed='
9043 /Import File Strings/,/^$/ {
9049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9050 # Check for a 64-bit object if we didn't find anything.
9051 if test -z "$aix_libpath"; then
9052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9060 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"
9062 if test "$host_cpu" = ia64; then
9063 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9064 allow_undefined_flag="-z nodefs"
9065 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"
9067 # Determine the default libpath from the value encoded in an
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9080 if ac_fn_c_try_link "$LINENO"; then :
9082 lt_aix_libpath_sed='
9083 /Import File Strings/,/^$/ {
9089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9090 # Check for a 64-bit object if we didn't find anything.
9091 if test -z "$aix_libpath"; then
9092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9095 rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9100 # Warning - without using the other run time loading flags,
9101 # -berok will link without error, but may produce a broken library.
9102 no_undefined_flag=' ${wl}-bernotok'
9103 allow_undefined_flag=' ${wl}-berok'
9104 if test "$with_gnu_ld" = yes; then
9105 # We only use this code for GNU lds that support --whole-archive.
9106 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9108 # Exported symbols can be pulled into shared objects from archives
9109 whole_archive_flag_spec='$convenience'
9111 archive_cmds_need_lc=yes
9112 # This is similar to how AIX traditionally builds its shared libraries.
9113 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'
9121 # see comment about AmigaOS4 .so support
9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123 archive_expsym_cmds=''
9126 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)'
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_minus_L=yes
9134 export_dynamic_flag_spec=-rdynamic
9137 cygwin* | mingw* | pw32* | cegcc*)
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 # hardcode_libdir_flag_spec is actually meaningless, as there is
9141 # no search path for DLLs.
9142 hardcode_libdir_flag_spec=' '
9143 allow_undefined_flag=unsupported
9144 # Tell ltmain to make .lib files, not .a files.
9146 # Tell ltmain to make .dll files, not .so files.
9148 # FIXME: Setting linknames here is a bad hack.
9149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9150 # The linker will automatically build a .lib file if we build a DLL.
9151 old_archive_from_new_cmds='true'
9152 # FIXME: Should let the user specify the lib program.
9153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9154 fix_srcfile_path='`cygpath -w "$srcfile"`'
9155 enable_shared_with_static_runtimes=yes
9158 darwin* | rhapsody*)
9161 archive_cmds_need_lc=no
9163 hardcode_automatic=yes
9164 hardcode_shlibpath_var=unsupported
9165 if test "$lt_cv_ld_force_load" = "yes"; then
9166 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\"`'
9168 whole_archive_flag_spec=''
9170 link_all_deplibs=yes
9171 allow_undefined_flag="$_lt_dar_allow_undefined"
9172 case $cc_basename in
9173 ifort*) _lt_dar_can_shared=yes ;;
9174 *) _lt_dar_can_shared=$GCC ;;
9176 if test "$_lt_dar_can_shared" = "yes"; then
9177 output_verbose_link_cmd=func_echo_all
9178 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9179 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9180 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}"
9181 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}"
9190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191 hardcode_libdir_flag_spec='-L$libdir'
9192 hardcode_shlibpath_var=no
9195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9196 # support. Future versions do this automatically, but an explicit c++rt0.o
9197 # does not break anything, and helps significantly (at the cost of a little
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9201 hardcode_libdir_flag_spec='-R$libdir'
9203 hardcode_shlibpath_var=no
9206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_minus_L=yes
9211 hardcode_shlibpath_var=no
9214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9215 freebsd* | dragonfly*)
9216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9217 hardcode_libdir_flag_spec='-R$libdir'
9219 hardcode_shlibpath_var=no
9223 if test "$GCC" = yes; then
9224 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'
9226 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'
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_separator=:
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 export_dynamic_flag_spec='${wl}-E'
9239 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9244 if test "$with_gnu_ld" = no; then
9245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9246 hardcode_libdir_flag_spec_ld='+b $libdir'
9247 hardcode_libdir_separator=:
9249 hardcode_direct_absolute=yes
9250 export_dynamic_flag_spec='${wl}-E'
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9280 # Older versions of the 11.00 compiler do not understand -b yet
9281 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9283 $as_echo_n "checking if $CC understands -b... " >&6; }
9284 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9287 lt_cv_prog_compiler__b=no
9288 save_LDFLAGS="$LDFLAGS"
9289 LDFLAGS="$LDFLAGS -b"
9290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9292 # The linker can only warn and ignore the option if not recognized
9293 # So say no if there are warnings
9294 if test -s conftest.err; then
9295 # Append any errors to the config.log.
9296 cat conftest.err 1>&5
9297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299 if diff conftest.exp conftest.er2 >/dev/null; then
9300 lt_cv_prog_compiler__b=yes
9303 lt_cv_prog_compiler__b=yes
9307 LDFLAGS="$save_LDFLAGS"
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9311 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9313 if test x"$lt_cv_prog_compiler__b" = xyes; then
9314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9322 if test "$with_gnu_ld" = no; then
9323 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9324 hardcode_libdir_separator=:
9329 hardcode_shlibpath_var=no
9333 hardcode_direct_absolute=yes
9334 export_dynamic_flag_spec='${wl}-E'
9336 # hardcode_minus_L: Not really in the search PATH,
9337 # but as the default location of the library.
9338 hardcode_minus_L=yes
9344 irix5* | irix6* | nonstopux*)
9345 if test "$GCC" = yes; then
9346 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'
9347 # Try to use the -exported_symbol ld option, if it does not
9348 # work, assume that -exports_file does not work either and
9349 # implicitly export all symbols.
9350 save_LDFLAGS="$LDFLAGS"
9351 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9356 if ac_fn_c_try_link "$LINENO"; then :
9357 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'
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LDFLAGS="$save_LDFLAGS"
9364 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'
9365 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'
9367 archive_cmds_need_lc='no'
9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 hardcode_libdir_separator=:
9371 link_all_deplibs=yes
9375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9380 hardcode_libdir_flag_spec='-R$libdir'
9382 hardcode_shlibpath_var=no
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389 hardcode_libdir_separator=:
9390 hardcode_shlibpath_var=no
9397 if test -f /usr/libexec/ld.so; then
9399 hardcode_shlibpath_var=no
9400 hardcode_direct_absolute=yes
9401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9405 export_dynamic_flag_spec='${wl}-E'
9408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_libdir_flag_spec='-R$libdir'
9413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_minus_L=yes
9426 allow_undefined_flag=unsupported
9427 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'
9428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9432 if test "$GCC" = yes; then
9433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9434 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'
9436 allow_undefined_flag=' -expect_unresolved \*'
9437 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'
9439 archive_cmds_need_lc='no'
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 hardcode_libdir_separator=:
9444 osf4* | osf5*) # as osf3* with the addition of -msym flag
9445 if test "$GCC" = yes; then
9446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9447 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'
9448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 allow_undefined_flag=' -expect_unresolved \*'
9451 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'
9452 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~
9453 $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'
9455 # Both c and cxx compiler support -rpath directly
9456 hardcode_libdir_flag_spec='-rpath $libdir'
9458 archive_cmds_need_lc='no'
9459 hardcode_libdir_separator=:
9463 no_undefined_flag=' -z defs'
9464 if test "$GCC" = yes; then
9466 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9468 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9470 case `$CC -V 2>&1` in
9473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9485 hardcode_libdir_flag_spec='-R$libdir'
9486 hardcode_shlibpath_var=no
9488 solaris2.[0-5] | solaris2.[0-5].*) ;;
9490 # The compiler driver will combine and reorder linker options,
9491 # but understands `-z linker_flag'. GCC discards it without `$wl',
9492 # but is careful enough not to reorder.
9493 # Supported since Solaris 2.6 (maybe 2.5.1?)
9494 if test "$GCC" = yes; then
9495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9501 link_all_deplibs=yes
9505 if test "x$host_vendor" = xsequent; then
9506 # Use $CC to link under sequent, because it throws in some extra .o
9507 # files that make .init and .fini sections work.
9508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_minus_L=yes
9515 hardcode_shlibpath_var=no
9519 case $host_vendor in
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_direct=yes # is this really true???
9525 ## LD is ld it makes a PLAMLIB
9526 ## CC just makes a GrossModule.
9527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9528 reload_cmds='$CC -r -o $output$reload_objs'
9532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9536 runpath_var='LD_RUN_PATH'
9537 hardcode_shlibpath_var=no
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_shlibpath_var=no
9543 export_dynamic_flag_spec='-Bexport'
9547 if test -d /usr/nec; then
9548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_shlibpath_var=no
9550 runpath_var=LD_RUN_PATH
9551 hardcode_runpath_var=yes
9556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9557 no_undefined_flag='${wl}-z,text'
9558 archive_cmds_need_lc=no
9559 hardcode_shlibpath_var=no
9560 runpath_var='LD_RUN_PATH'
9562 if test "$GCC" = yes; then
9563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9571 sysv5* | sco3.2v5* | sco5v6*)
9572 # Note: We can NOT use -z defs as we might desire, because we do not
9573 # link with -lc, and that would cause any symbols used from libc to
9574 # always be unresolved, which means just about no library would
9575 # ever link correctly. If we're not using GNU ld we use -z text
9576 # though, which does catch some bad symbols but isn't as heavy-handed
9578 no_undefined_flag='${wl}-z,text'
9579 allow_undefined_flag='${wl}-z,nodefs'
9580 archive_cmds_need_lc=no
9581 hardcode_shlibpath_var=no
9582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9583 hardcode_libdir_separator=':'
9584 link_all_deplibs=yes
9585 export_dynamic_flag_spec='${wl}-Bexport'
9586 runpath_var='LD_RUN_PATH'
9588 if test "$GCC" = yes; then
9589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_libdir_flag_spec='-L$libdir'
9600 hardcode_shlibpath_var=no
9608 if test x$host_vendor = xsni; then
9610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9611 export_dynamic_flag_spec='${wl}-Blargedynsym'
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9618 $as_echo "$ld_shlibs" >&6; }
9619 test "$ld_shlibs" = no && can_build_shared=no
9621 with_gnu_ld=$with_gnu_ld
9638 # Do we need to explicitly link libc?
9640 case "x$archive_cmds_need_lc" in
9642 # Assume -lc should be added
9643 archive_cmds_need_lc=yes
9645 if test "$enable_shared" = yes && test "$GCC" = yes; then
9646 case $archive_cmds in
9648 # FIXME: we may have to deal with multi-command sequences.
9651 # Test whether the compiler implicitly links with -lc since on some
9652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9653 # to ld, don't add -lc before -lgcc.
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9655 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9656 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9663 (eval $ac_compile) 2>&5
9665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9666 test $ac_status = 0; } 2>conftest.err; then
9669 libobjs=conftest.$ac_objext
9671 wl=$lt_prog_compiler_wl
9672 pic_flag=$lt_prog_compiler_pic
9678 lt_save_allow_undefined_flag=$allow_undefined_flag
9679 allow_undefined_flag=
9680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9684 test $ac_status = 0; }
9686 lt_cv_archive_cmds_need_lc=no
9688 lt_cv_archive_cmds_need_lc=yes
9690 allow_undefined_flag=$lt_save_allow_undefined_flag
9692 cat conftest.err 1>&5
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9698 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9865 if test "$GCC" = yes; then
9867 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9868 *) lt_awk_arg="/^libraries:/" ;;
9871 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9872 *) lt_sed_strip_eq="s,=/,/,g" ;;
9874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9875 case $lt_search_path_spec in
9877 # if the path contains ";" then we assume it to be the separator
9878 # otherwise default to the standard path separator (i.e. ":") - it is
9879 # assumed that no part of a normal pathname contains ";" but that should
9880 # okay in the real world where ";" in dirpaths is itself problematic.
9881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9887 # Ok, now we have the path, separated by spaces, we can step through it
9888 # and add multilib dir if necessary.
9889 lt_tmp_lt_search_path_spec=
9890 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9891 for lt_sys_path in $lt_search_path_spec; do
9892 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9895 test -d "$lt_sys_path" && \
9896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9900 BEGIN {RS=" "; FS="/|\n";} {
9903 for (lt_i = NF; lt_i > 0; lt_i--) {
9904 if ($lt_i != "" && $lt_i != ".") {
9905 if ($lt_i == "..") {
9908 if (lt_count == 0) {
9909 lt_foo="/" $lt_i lt_foo;
9916 if (lt_foo != "") { lt_freq[lt_foo]++; }
9917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9919 # AWK program above erroneously prepends '/' to C:/dos/paths
9922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9923 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9930 libname_spec='lib$name'
9938 shlibpath_overrides_runpath=unknown
9940 dynamic_linker="$host_os ld.so"
9941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9942 need_lib_prefix=unknown
9943 hardcode_into_libs=no
9945 # when you set need_version to no, make sure it does not cause -set_version
9946 # flags to be left without arguments
9947 need_version=unknown
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9953 shlibpath_var=LIBPATH
9955 # AIX 3 has no versioning support, so we append a major version to the name.
9956 soname_spec='${libname}${release}${shared_ext}$major'
9963 hardcode_into_libs=yes
9964 if test "$host_cpu" = ia64; then
9965 # AIX 5 supports IA64
9966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9967 shlibpath_var=LD_LIBRARY_PATH
9969 # With GCC up to 2.95.x, collect2 would create an import file
9970 # for dependence libraries. The import file would start with
9971 # the line `#! .'. This would cause the generated library to
9972 # depend on `.', always an invalid library. This was fixed in
9973 # development snapshots of GCC prior to 3.0.
9975 aix4 | aix4.[01] | aix4.[01].*)
9976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9978 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9986 # soname into executable. Probably we can add versioning support to
9987 # collect2, so additional links can be useful in future.
9988 if test "$aix_use_runtimelinking" = yes; then
9989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9990 # instead of lib<name>.a to let people know that these are not
9991 # typical AIX shared libraries.
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 # We preserve .a as extension for shared libraries through AIX4.2
9995 # and later when we are not doing run time linking.
9996 library_names_spec='${libname}${release}.a $libname.a'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9999 shlibpath_var=LIBPATH
10006 # Since July 2007 AmigaOS4 officially supports .so libraries.
10007 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 library_names_spec='$libname.ixlibrary $libname.a'
10012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10013 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'
10019 library_names_spec='${libname}${shared_ext}'
10020 dynamic_linker="$host_os ld.so"
10021 shlibpath_var=LIBRARY_PATH
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10033 # the default ld.so.conf also contains /usr/contrib/lib and
10034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10035 # libtool to hard-code these into programs
10038 cygwin* | mingw* | pw32* | cegcc*)
10039 version_type=windows
10044 case $GCC,$host_os in
10045 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10046 library_names_spec='$libname.dll.a'
10047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10048 postinstall_cmds='base_file=`basename \${file}`~
10049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10050 dldir=$destdir/`dirname \$dlpath`~
10051 test -d \$dldir || mkdir -p \$dldir~
10052 $install_prog $dir/$dlname \$dldir/$dlname~
10053 chmod a+x \$dldir/$dlname~
10054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10058 dlpath=$dir/\$dldll~
10060 shlibpath_overrides_runpath=yes
10064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10070 # MinGW DLLs use traditional 'lib' prefix
10071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10074 # pw32 DLLs use 'pw' prefix rather than 'lib'
10075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10084 dynamic_linker='Win32 ld.exe'
10085 # FIXME: first we should search . and the directory the executable is in
10089 darwin* | rhapsody*)
10090 dynamic_linker="$host_os dyld"
10091 version_type=darwin
10094 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10095 soname_spec='${libname}${release}${major}$shared_ext'
10096 shlibpath_overrides_runpath=yes
10097 shlibpath_var=DYLD_LIBRARY_PATH
10098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10113 freebsd* | dragonfly*)
10114 # DragonFly does not have aout. When/if they implement a new
10115 # versioning mechanism, adjust this.
10116 if test -x /usr/bin/objformat; then
10117 objformat=`/usr/bin/objformat`
10120 freebsd[23].*) objformat=aout ;;
10121 *) objformat=elf ;;
10124 version_type=freebsd-$objformat
10125 case $version_type in
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10136 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10141 freebsd3.[01]* | freebsdelf3.[01]*)
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10147 shlibpath_overrides_runpath=no
10148 hardcode_into_libs=yes
10150 *) # from 4.6 on, and DragonFly
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 hardcode_into_libs=yes
10171 dynamic_linker="$host_os runtime_loader"
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 shlibpath_var=LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10176 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10177 hardcode_into_libs=yes
10180 hpux9* | hpux10* | hpux11*)
10181 # Give a soname corresponding to the major version so that dld.sl refuses to
10182 # link against other versions.
10189 hardcode_into_libs=yes
10190 dynamic_linker="$host_os dld.so"
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 if test "X$HPUX_IA64_MODE" = X32; then
10196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10204 hardcode_into_libs=yes
10205 dynamic_linker="$host_os dld.sl"
10206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10215 dynamic_linker="$host_os dld.sl"
10216 shlibpath_var=SHLIB_PATH
10217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10223 postinstall_cmds='chmod 555 $lib'
10224 # or fails outright, so override atomically:
10225 install_override_mode=555
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=no
10237 hardcode_into_libs=yes
10240 irix5* | irix6* | nonstopux*)
10242 nonstopux*) version_type=nonstopux ;;
10244 if test "$lt_cv_prog_gnu_ld" = yes; then
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10255 irix5* | nonstopux*)
10256 libsuff= shlibsuff=
10259 case $LD in # libtool.m4 will add one of these switches to LD
10260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10261 libsuff= shlibsuff= libmagic=32-bit;;
10262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10263 libsuff=32 shlibsuff=N32 libmagic=N32;;
10264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10266 *) libsuff= shlibsuff= libmagic=never-match;;
10270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10271 shlibpath_overrides_runpath=no
10272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10274 hardcode_into_libs=yes
10277 # No shared lib support for Linux oldld, aout, or coff.
10278 linux*oldld* | linux*aout* | linux*coff*)
10282 # This must be Linux ELF.
10283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
10293 # Some binutils ld are patched to set DT_RUNPATH
10294 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10297 lt_cv_shlibpath_overrides_runpath=no
10298 save_LDFLAGS=$LDFLAGS
10299 save_libdir=$libdir
10300 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10301 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10315 lt_cv_shlibpath_overrides_runpath=yes
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LDFLAGS=$save_LDFLAGS
10321 libdir=$save_libdir
10325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10327 # This implies no fast_install, which is unacceptable.
10328 # Some rework will be needed to allow for fast_install
10329 # before this can be enabled.
10330 hardcode_into_libs=yes
10332 # Append ld.so.conf contents to the search path
10333 if test -f /etc/ld.so.conf; then
10334 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' ' '`
10335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10338 # We used to test for /lib/ld.so.1 and disable shared libraries on
10339 # powerpc, because MkLinux only supported shared libraries with the
10340 # GNU dynamic linker. Since this was broken with cross compilers,
10341 # most powerpc-linux boxes support dynamic linking these days and
10342 # people can always --disable-shared, the test was removed, and we
10343 # assume the GNU/Linux dynamic linker is in use.
10344 dynamic_linker='GNU/Linux ld.so'
10351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10354 dynamic_linker='NetBSD (a.out) ld.so'
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 dynamic_linker='NetBSD ld.elf_so'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 hardcode_into_libs=yes
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=no
10380 hardcode_into_libs=yes
10381 dynamic_linker='ldqnx.so'
10386 sys_lib_dlsearch_path_spec="/usr/lib"
10388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10390 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10391 *) need_version=no ;;
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398 openbsd2.[89] | openbsd2.[89].*)
10399 shlibpath_overrides_runpath=no
10402 shlibpath_overrides_runpath=yes
10406 shlibpath_overrides_runpath=yes
10411 libname_spec='$name'
10414 library_names_spec='$libname${shared_ext} $libname.a'
10415 dynamic_linker='OS/2 ld.exe'
10416 shlibpath_var=LIBPATH
10419 osf3* | osf4* | osf5*)
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10443 # ldd complains unless libraries are executable
10444 postinstall_cmds='chmod +x $lib'
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=yes
10453 if test "$with_gnu_ld" = yes; then
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 case $host_vendor in
10466 shlibpath_overrides_runpath=no
10468 runpath_var=LD_RUN_PATH
10476 shlibpath_overrides_runpath=no
10477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10483 if test -d /usr/nec ;then
10485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10486 soname_spec='$libname${shared_ext}.$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492 version_type=freebsd-elf
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10500 if test "$with_gnu_ld" = yes; then
10501 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10510 sys_lib_dlsearch_path_spec='/usr/lib'
10514 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=no
10521 hardcode_into_libs=yes
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10536 $as_echo "$dynamic_linker" >&6; }
10537 test "$dynamic_linker" = no && can_build_shared=no
10539 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10540 if test "$GCC" = yes; then
10541 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10545 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10548 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10643 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10645 if test -n "$hardcode_libdir_flag_spec" ||
10646 test -n "$runpath_var" ||
10647 test "X$hardcode_automatic" = "Xyes" ; then
10649 # We can hardcode non-existent directories.
10650 if test "$hardcode_direct" != no &&
10651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10652 # have to relink, otherwise we might link with an installed library
10653 # when we should be linking with a yet-to-be-installed one
10654 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10655 test "$hardcode_minus_L" != no; then
10656 # Linking always hardcodes the temporary library directory.
10657 hardcode_action=relink
10659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10660 hardcode_action=immediate
10663 # We cannot hardcode anything, or else we can only hardcode existing
10665 hardcode_action=unsupported
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10668 $as_echo "$hardcode_action" >&6; }
10670 if test "$hardcode_action" = relink ||
10671 test "$inherit_rpath" = yes; then
10672 # Fast installation is not supported
10673 enable_fast_install=no
10674 elif test "$shlibpath_overrides_runpath" = yes ||
10675 test "$enable_shared" = no; then
10676 # Fast installation is not necessary
10677 enable_fast_install=needless
10685 if test "x$enable_dlopen" != xyes; then
10686 enable_dlopen=unknown
10687 enable_dlopen_self=unknown
10688 enable_dlopen_self_static=unknown
10695 lt_cv_dlopen="load_add_on"
10697 lt_cv_dlopen_self=yes
10700 mingw* | pw32* | cegcc*)
10701 lt_cv_dlopen="LoadLibrary"
10706 lt_cv_dlopen="dlopen"
10711 # if libdl is installed we need to link against it
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10717 ac_check_lib_save_LIBS=$LIBS
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 ac_cv_lib_dl_dlopen=yes
10740 ac_cv_lib_dl_dlopen=no
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10748 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752 lt_cv_dlopen="dyld"
10754 lt_cv_dlopen_self=yes
10761 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10762 if test "x$ac_cv_func_shl_load" = x""yes; then :
10763 lt_cv_dlopen="shl_load"
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10766 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10770 ac_check_lib_save_LIBS=$LIBS
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10785 return shl_load ();
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 ac_cv_lib_dld_shl_load=yes
10793 ac_cv_lib_dld_shl_load=no
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10800 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10801 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10802 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10804 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10805 if test "x$ac_cv_func_dlopen" = x""yes; then :
10806 lt_cv_dlopen="dlopen"
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10813 ac_check_lib_save_LIBS=$LIBS
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10833 if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_lib_dl_dlopen=yes
10836 ac_cv_lib_dl_dlopen=no
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10848 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-lsvld $LIBS"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_svld_dlopen=yes
10875 ac_cv_lib_svld_dlopen=no
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10882 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10883 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10887 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10891 ac_check_lib_save_LIBS=$LIBS
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10906 return dld_link ();
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_lib_dld_dld_link=yes
10914 ac_cv_lib_dld_dld_link=no
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10921 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10922 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10944 if test "x$lt_cv_dlopen" != xno; then
10950 case $lt_cv_dlopen in
10952 save_CPPFLAGS="$CPPFLAGS"
10953 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10955 save_LDFLAGS="$LDFLAGS"
10956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10959 LIBS="$lt_cv_dlopen_libs $LIBS"
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10962 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10963 if test "${lt_cv_dlopen_self+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self=cross
10969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10970 lt_status=$lt_dlunknown
10971 cat > conftest.$ac_ext <<_LT_EOF
10972 #line 10972 "configure"
10973 #include "confdefs.h"
10982 # define LT_DLGLOBAL RTLD_GLOBAL
10985 # define LT_DLGLOBAL DL_GLOBAL
10987 # define LT_DLGLOBAL 0
10991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10992 find out it does not work in some platform. */
10993 #ifndef LT_DLLAZY_OR_NOW
10995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10998 # define LT_DLLAZY_OR_NOW DL_LAZY
11001 # define LT_DLLAZY_OR_NOW RTLD_NOW
11004 # define LT_DLLAZY_OR_NOW DL_NOW
11006 # define LT_DLLAZY_OR_NOW 0
11013 /* When -fvisbility=hidden is used, assume the code has been annotated
11014 correspondingly for the symbols needed. */
11015 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11016 void fnord () __attribute__((visibility("default")));
11019 void fnord () { int i=42; }
11022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11023 int status = $lt_dlunknown;
11027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11031 else puts (dlerror ());
11033 /* dlclose (self); */
11041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11042 (eval $ac_link) 2>&5
11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11046 (./conftest; exit; ) >&5 2>/dev/null
11048 case x$lt_status in
11049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11051 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054 # compilation failed
11055 lt_cv_dlopen_self=no
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11063 $as_echo "$lt_cv_dlopen_self" >&6; }
11065 if test "x$lt_cv_dlopen_self" = xyes; then
11066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11068 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11069 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11072 if test "$cross_compiling" = yes; then :
11073 lt_cv_dlopen_self_static=cross
11075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11076 lt_status=$lt_dlunknown
11077 cat > conftest.$ac_ext <<_LT_EOF
11078 #line 11078 "configure"
11079 #include "confdefs.h"
11088 # define LT_DLGLOBAL RTLD_GLOBAL
11091 # define LT_DLGLOBAL DL_GLOBAL
11093 # define LT_DLGLOBAL 0
11097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11098 find out it does not work in some platform. */
11099 #ifndef LT_DLLAZY_OR_NOW
11101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11104 # define LT_DLLAZY_OR_NOW DL_LAZY
11107 # define LT_DLLAZY_OR_NOW RTLD_NOW
11110 # define LT_DLLAZY_OR_NOW DL_NOW
11112 # define LT_DLLAZY_OR_NOW 0
11119 /* When -fvisbility=hidden is used, assume the code has been annotated
11120 correspondingly for the symbols needed. */
11121 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11122 void fnord () __attribute__((visibility("default")));
11125 void fnord () { int i=42; }
11128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11129 int status = $lt_dlunknown;
11133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11136 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11137 else puts (dlerror ());
11139 /* dlclose (self); */
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11148 (eval $ac_link) 2>&5
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11152 (./conftest; exit; ) >&5 2>/dev/null
11154 case x$lt_status in
11155 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11156 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11157 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160 # compilation failed
11161 lt_cv_dlopen_self_static=no
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11169 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11172 CPPFLAGS="$save_CPPFLAGS"
11173 LDFLAGS="$save_LDFLAGS"
11178 case $lt_cv_dlopen_self in
11179 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11180 *) enable_dlopen_self=unknown ;;
11183 case $lt_cv_dlopen_self_static in
11184 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11185 *) enable_dlopen_self_static=unknown ;;
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11208 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11209 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11213 $as_echo "yes" >&6; }
11215 # FIXME - insert some real tests, host_os isn't really good enough
11218 if test -n "$STRIP" ; then
11219 striplib="$STRIP -x"
11220 old_striplib="$STRIP -S"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; }
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11246 # Report which library types will actually be built
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11248 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11250 $as_echo "$can_build_shared" >&6; }
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11253 $as_echo_n "checking whether to build shared libraries... " >&6; }
11254 test "$can_build_shared" = "no" && enable_shared=no
11256 # On AIX, shared libraries and static libraries use the same namespace, and
11257 # are all built from PIC.
11260 test "$enable_shared" = yes && enable_static=no
11261 if test -n "$RANLIB"; then
11262 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11263 postinstall_cmds='$RANLIB $lib'
11268 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11269 test "$enable_shared" = yes && enable_static=no
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11274 $as_echo "$enable_shared" >&6; }
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11277 $as_echo_n "checking whether to build static libraries... " >&6; }
11278 # Make sure either enable_shared or enable_static is yes.
11279 test "$enable_shared" = yes || enable_static=yes
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11281 $as_echo "$enable_static" >&6; }
11288 ac_cpp='$CPP $CPPFLAGS'
11289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11307 ac_config_commands="$ac_config_commands libtool"
11312 # Only expand once:
11316 # The tests for host and target for $enable_largefile require
11321 # As the $enable_largefile decision depends on --enable-plugins we must set it
11322 # even in directories otherwise not depending on the $plugins option.
11326 for ac_header in dlfcn.h
11328 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11330 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11331 cat >>confdefs.h <<_ACEOF
11332 #define HAVE_DLFCN_H 1
11339 for ac_header in windows.h
11341 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11343 if test "x$ac_cv_header_windows_h" = x""yes; then :
11344 cat >>confdefs.h <<_ACEOF
11345 #define HAVE_WINDOWS_H 1
11353 # Check whether --enable-plugins was given.
11354 if test "${enable_plugins+set}" = set; then :
11355 enableval=$enable_plugins; case "${enableval}" in
11358 if test "$maybe_plugins" != "yes" ; then
11359 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11363 plugins=$maybe_plugins
11367 if test "$plugins" = "yes"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11369 $as_echo_n "checking for library containing dlopen... " >&6; }
11370 if test "${ac_cv_search_dlopen+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11373 ac_func_search_save_LIBS=$LIBS
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11392 for ac_lib in '' dl; do
11393 if test -z "$ac_lib"; then
11394 ac_res="none required"
11397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11399 if ac_fn_c_try_link "$LINENO"; then :
11400 ac_cv_search_dlopen=$ac_res
11402 rm -f core conftest.err conftest.$ac_objext \
11404 if test "${ac_cv_search_dlopen+set}" = set; then :
11408 if test "${ac_cv_search_dlopen+set}" = set; then :
11411 ac_cv_search_dlopen=no
11413 rm conftest.$ac_ext
11414 LIBS=$ac_func_search_save_LIBS
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11417 $as_echo "$ac_cv_search_dlopen" >&6; }
11418 ac_res=$ac_cv_search_dlopen
11419 if test "$ac_res" != no; then :
11420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11428 sparc-*-solaris*|i[3-7]86-*-solaris*)
11429 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11430 # are mutually exclusive; and without procfs support, the bfd/ elf module
11431 # cannot provide certain routines such as elfcore_write_prpsinfo
11432 # or elfcore_write_prstatus. So unless the user explicitly requested
11433 # large-file support through the --enable-largefile switch, disable
11434 # large-file support in favor of procfs support.
11435 test "${target}" = "${host}" -a "x$plugins" = xno \
11436 && : ${enable_largefile="no"}
11440 # Check whether --enable-largefile was given.
11441 if test "${enable_largefile+set}" = set; then :
11442 enableval=$enable_largefile;
11445 if test "$enable_largefile" != no; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11448 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11449 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11452 ac_cv_sys_largefile_CC=no
11453 if test "$GCC" != yes; then
11456 # IRIX 6.2 and later do not support large files by default,
11457 # so use the C compiler's -n32 option if that helps.
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 #include <sys/types.h>
11461 /* Check that off_t can represent 2**63 - 1 correctly.
11462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11463 since some C++ compilers masquerading as C compilers
11464 incorrectly reject 9223372036854775807. */
11465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11467 && LARGE_OFF_T % 2147483647 == 1)
11477 if ac_fn_c_try_compile "$LINENO"; then :
11480 rm -f core conftest.err conftest.$ac_objext
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483 ac_cv_sys_largefile_CC=' -n32'; break
11485 rm -f core conftest.err conftest.$ac_objext
11489 rm -f conftest.$ac_ext
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11493 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11494 if test "$ac_cv_sys_largefile_CC" != no; then
11495 CC=$CC$ac_cv_sys_largefile_CC
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11499 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11500 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 #include <sys/types.h>
11507 /* Check that off_t can represent 2**63 - 1 correctly.
11508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11509 since some C++ compilers masquerading as C compilers
11510 incorrectly reject 9223372036854775807. */
11511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11513 && LARGE_OFF_T % 2147483647 == 1)
11523 if ac_fn_c_try_compile "$LINENO"; then :
11524 ac_cv_sys_file_offset_bits=no; break
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 #define _FILE_OFFSET_BITS 64
11530 #include <sys/types.h>
11531 /* Check that off_t can represent 2**63 - 1 correctly.
11532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11533 since some C++ compilers masquerading as C compilers
11534 incorrectly reject 9223372036854775807. */
11535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11537 && LARGE_OFF_T % 2147483647 == 1)
11547 if ac_fn_c_try_compile "$LINENO"; then :
11548 ac_cv_sys_file_offset_bits=64; break
11550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 ac_cv_sys_file_offset_bits=unknown
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11556 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11557 case $ac_cv_sys_file_offset_bits in #(
11560 cat >>confdefs.h <<_ACEOF
11561 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11566 if test $ac_cv_sys_file_offset_bits = unknown; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11568 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11569 if test "${ac_cv_sys_large_files+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575 #include <sys/types.h>
11576 /* Check that off_t can represent 2**63 - 1 correctly.
11577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11578 since some C++ compilers masquerading as C compilers
11579 incorrectly reject 9223372036854775807. */
11580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11582 && LARGE_OFF_T % 2147483647 == 1)
11592 if ac_fn_c_try_compile "$LINENO"; then :
11593 ac_cv_sys_large_files=no; break
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598 #define _LARGE_FILES 1
11599 #include <sys/types.h>
11600 /* Check that off_t can represent 2**63 - 1 correctly.
11601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11602 since some C++ compilers masquerading as C compilers
11603 incorrectly reject 9223372036854775807. */
11604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11606 && LARGE_OFF_T % 2147483647 == 1)
11616 if ac_fn_c_try_compile "$LINENO"; then :
11617 ac_cv_sys_large_files=1; break
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 ac_cv_sys_large_files=unknown
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11625 $as_echo "$ac_cv_sys_large_files" >&6; }
11626 case $ac_cv_sys_large_files in #(
11629 cat >>confdefs.h <<_ACEOF
11630 #define _LARGE_FILES $ac_cv_sys_large_files
11640 # Check whether --enable-targets was given.
11641 if test "${enable_targets+set}" = set; then :
11642 enableval=$enable_targets; case "${enableval}" in
11643 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11645 no) enable_targets= ;;
11646 *) enable_targets=$enableval ;;
11651 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11654 # Check whether --enable-checking was given.
11655 if test "${enable_checking+set}" = set; then :
11656 enableval=$enable_checking; case "${enableval}" in
11657 no|none) ac_checking= ;;
11658 *) ac_checking=yes ;;
11661 if test x$ac_checking != x ; then
11663 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11670 # Set the 'development' global.
11671 . $srcdir/../bfd/development.sh
11673 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11679 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11682 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11687 # Check whether --enable-werror was given.
11688 if test "${enable_werror+set}" = set; then :
11689 enableval=$enable_werror; case "${enableval}" in
11690 yes | y) ERROR_ON_WARNING="yes" ;;
11691 no | n) ERROR_ON_WARNING="no" ;;
11692 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11697 # Disable -Wformat by default when using gcc on mingw
11700 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11701 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11707 # Enable -Werror by default when using gcc. Turn it off for releases.
11708 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11709 ERROR_ON_WARNING=yes
11713 if test "${ERROR_ON_WARNING}" = yes ; then
11714 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11715 NO_WERROR="-Wno-error"
11718 if test "${GCC}" = yes ; then
11719 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11722 # Check whether --enable-build-warnings was given.
11723 if test "${enable_build_warnings+set}" = set; then :
11724 enableval=$enable_build_warnings; case "${enableval}" in
11725 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11726 no) if test "${GCC}" = yes ; then
11729 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11730 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11731 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11732 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11733 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11738 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11739 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11746 # Generate a header file
11747 ac_config_headers="$ac_config_headers config.h:config.in"
11753 # If we are on a DOS filesystem, we must use gdb.ini rather than
11756 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11758 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11763 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11769 #We need this for the host. BOUT header is in host order.
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11771 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11772 if test "${ac_cv_c_bigendian+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11775 ac_cv_c_bigendian=unknown
11776 # See if we're dealing with a universal compiler.
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779 #ifndef __APPLE_CC__
11780 not a universal capable compiler
11785 if ac_fn_c_try_compile "$LINENO"; then :
11787 # Check for potential -arch flags. It is not universal unless
11788 # there are at least two -arch flags with different values.
11791 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11792 if test -n "$ac_prev"; then
11794 i?86 | x86_64 | ppc | ppc64)
11795 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11798 ac_cv_c_bigendian=universal
11804 elif test "x$ac_word" = "x-arch"; then
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 if test $ac_cv_c_bigendian = unknown; then
11811 # See if sys/param.h defines the BYTE_ORDER macro.
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <sys/types.h>
11815 #include <sys/param.h>
11820 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11821 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11823 bogus endian macros
11830 if ac_fn_c_try_compile "$LINENO"; then :
11831 # It does; now see whether it defined to BIG_ENDIAN or not.
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <sys/types.h>
11835 #include <sys/param.h>
11840 #if BYTE_ORDER != BIG_ENDIAN
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_c_bigendian=yes
11851 ac_cv_c_bigendian=no
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 if test $ac_cv_c_bigendian = unknown; then
11858 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861 #include <limits.h>
11866 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11867 bogus endian macros
11874 if ac_fn_c_try_compile "$LINENO"; then :
11875 # It does; now see whether it defined to _BIG_ENDIAN or not.
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <limits.h>
11883 #ifndef _BIG_ENDIAN
11891 if ac_fn_c_try_compile "$LINENO"; then :
11892 ac_cv_c_bigendian=yes
11894 ac_cv_c_bigendian=no
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 if test $ac_cv_c_bigendian = unknown; then
11901 # Compile a test program.
11902 if test "$cross_compiling" = yes; then :
11903 # Try to guess by grepping values from an object file.
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 short int ascii_mm[] =
11907 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11908 short int ascii_ii[] =
11909 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11910 int use_ascii (int i) {
11911 return ascii_mm[i] + ascii_ii[i];
11913 short int ebcdic_ii[] =
11914 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11915 short int ebcdic_mm[] =
11916 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11917 int use_ebcdic (int i) {
11918 return ebcdic_mm[i] + ebcdic_ii[i];
11925 return use_ascii (foo) == use_ebcdic (foo);
11930 if ac_fn_c_try_compile "$LINENO"; then :
11931 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11932 ac_cv_c_bigendian=yes
11934 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11935 if test "$ac_cv_c_bigendian" = unknown; then
11936 ac_cv_c_bigendian=no
11938 # finding both strings is unlikely to happen, but who knows?
11939 ac_cv_c_bigendian=unknown
11943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 $ac_includes_default
11952 /* Are we little or big endian? From Harbison&Steele. */
11956 char c[sizeof (long int)];
11959 return u.c[sizeof (long int) - 1] == 1;
11965 if ac_fn_c_try_run "$LINENO"; then :
11966 ac_cv_c_bigendian=no
11968 ac_cv_c_bigendian=yes
11970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11971 conftest.$ac_objext conftest.beam conftest.$ac_ext
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11977 $as_echo "$ac_cv_c_bigendian" >&6; }
11978 case $ac_cv_c_bigendian in #(
11980 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11986 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11990 as_fn_error "unknown endianness
11991 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11997 # Makefile target for installing gas in $(tooldir)/bin.
11998 install_tooldir=install-exec-tooldir
12002 if test -n "$enable_targets" ; then
12003 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12004 if test $t = "all"; then
12008 result=`$ac_config_sub $t 2>/dev/null`
12009 if test -n "$result" ; then
12010 canon_targets="$canon_targets $result"
12012 # # Permit "all", etc. We don't support it yet though.
12013 # canon_targets="$canon_targets $t"
12016 _gas_uniq_list="$canon_targets"
12017 _gas_uniq_newlist=""
12018 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12019 case $_gas_uniq_i in
12020 _gas_uniq_dummy) ;;
12021 *) case " $_gas_uniq_newlist " in
12022 *" $_gas_uniq_i "*) ;;
12023 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12027 canon_targets=$_gas_uniq_newlist
12033 for this_target in $target $canon_targets ; do
12035 targ=${this_target}
12036 . ${srcdir}/configure.tgt
12038 case ${target_cpu} in
12041 cat >>confdefs.h <<_ACEOF
12042 #define DEFAULT_CRIS_ARCH $arch
12048 if test ${this_target} = $target ; then
12049 target_cpu_type=${cpu_type}
12050 elif test ${target_cpu_type} != ${cpu_type} ; then
12054 generic_target=${cpu_type}-${target_vendor}-${target_os}
12055 case ${generic_target} in
12057 if test ${this_target} = $target; then
12059 $as_echo "#define SCO_ELF 1" >>confdefs.h
12064 i386-*-msdosdjgpp* \
12066 | i386-go32-rtems*)
12068 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12074 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12082 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12086 if test ${this_target} = $target; then
12088 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12091 if test x${endian} = xbig; then
12092 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12098 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12103 if test ${this_target} = $target ; then
12105 if test x${endian} = xbig; then
12107 elif test x${endian} = xlittle; then
12110 if test x${endian_def} != x; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12119 # Other random stuff.
12121 case ${cpu_type} in
12123 # Set mips_cpu to the name of the default CPU.
12124 case ${target_cpu} in
12125 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12128 mipsisa32 | mipsisa32el)
12131 mipsisa32r2 | mipsisa32r2el)
12134 mipsisa32r3 | mipsisa32r3el)
12137 mipsisa32r5 | mipsisa32r5el)
12140 mipsisa32r6 | mipsisa32r6el)
12143 mipsisa64 | mipsisa64el)
12146 mipsisa64r2 | mipsisa64r2el)
12149 mipsisa64r3 | mipsisa64r3el)
12152 mipsisa64r5 | mipsisa64r5el)
12155 mipsisa64r6 | mipsisa64r6el)
12158 mipstx39 | mipstx39el)
12161 mips64vr | mips64vrel)
12164 mipsisa32r2* | mipsisa64r2*)
12165 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12167 mipsisa32r6* | mipsisa64r6*)
12168 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12170 mips64* | mipsisa64* | mipsisa32*)
12171 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12174 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12177 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12180 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12181 # binaries. It's a GNU extension that some OSes don't understand.
12184 use_e_mips_abi_o32=0
12187 use_e_mips_abi_o32=1
12190 # Decide whether to generate 32-bit or 64-bit code by default.
12191 # Used to resolve -march=from-abi when an embedded ABI is selected.
12193 mips64*-*-* | mipsisa64*-*-*)
12194 mips_default_64bit=1
12197 mips_default_64bit=0
12200 # Decide which ABI to target by default.
12202 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12203 mips_default_abi=N32_ABI
12205 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12206 mips_default_abi=O32_ABI
12209 mips_default_abi=N64_ABI
12212 mips_default_abi=NO_ABI
12216 cat >>confdefs.h <<_ACEOF
12217 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12221 cat >>confdefs.h <<_ACEOF
12222 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12226 cat >>confdefs.h <<_ACEOF
12227 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12231 cat >>confdefs.h <<_ACEOF
12232 #define MIPS_DEFAULT_ABI $mips_default_abi
12238 # Do we need the opcodes library?
12239 case ${cpu_type} in
12246 case "${enable_shared}" in
12247 yes) shared_opcodes=true ;;
12248 *opcodes*) shared_opcodes=true ;;
12249 *) shared_opcodes=false ;;
12254 # Any other special object files needed ?
12255 case ${cpu_type} in
12258 echo ${extra_objects} | grep -s "bfin-parse.o"
12259 if test $? -ne 0 ; then
12260 extra_objects="$extra_objects bfin-parse.o"
12263 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12264 if test $? -ne 0 ; then
12265 extra_objects="$extra_objects bfin-lex-wrapper.o"
12269 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12280 case ${extra_objects} in
12282 *) extra_objects="$extra_objects m68k-parse.o" ;;
12291 echo ${extra_objects} | grep -s "itbl-parse.o"
12292 if test $? -ne 0 ; then
12293 extra_objects="$extra_objects itbl-parse.o"
12296 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12297 if test $? -ne 0 ; then
12298 extra_objects="$extra_objects itbl-lex-wrapper.o"
12301 echo ${extra_objects} | grep -s "itbl-ops.o"
12302 if test $? -ne 0 ; then
12303 extra_objects="$extra_objects itbl-ops.o"
12312 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12313 # based on arch_name.
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12315 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12316 if test "x${with_arch}" != x; then
12317 case ${with_arch} in
12318 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12320 cat >>confdefs.h <<_ACEOF
12321 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12326 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12331 $as_echo "$with_arch" >&6; }
12333 # Decide features one by one.
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12335 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12336 if test "x${enable_dx_regs}" == xyes; then
12338 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12342 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12346 $as_echo "$enable_dx_regs" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12349 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12350 if test "x${enable_perf_ext}" == xno; then
12352 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12356 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12360 $as_echo "$enable_perf_ext" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12363 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12364 if test "x${enable_perf_ext2}" == xno; then
12366 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12370 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12374 $as_echo "$enable_perf_ext2" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12377 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12378 if test "x${enable_string_ext}" == xno; then
12380 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12384 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12388 $as_echo "$enable_string_ext" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12391 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12392 if test "x${enable_audio_ext}" == xno; then
12394 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12398 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12402 $as_echo "$enable_audio_ext" >&6; }
12405 i386 | s390 | sparc)
12406 if test $this_target = $target ; then
12408 cat >>confdefs.h <<_ACEOF
12409 #define DEFAULT_ARCH "${arch}"
12416 echo ${extra_objects} | grep -s "rl78-parse.o"
12417 if test $? -ne 0 ; then
12418 extra_objects="$extra_objects rl78-parse.o"
12423 echo ${extra_objects} | grep -s "rx-parse.o"
12424 if test $? -ne 0 ; then
12425 extra_objects="$extra_objects rx-parse.o"
12438 echo ${extra_objects} | grep -s "xtensa-relax.o"
12439 if test $? -ne 0 ; then
12440 extra_objects="$extra_objects xtensa-relax.o"
12448 if test $using_cgen = yes ; then
12449 case "x${extra_objects}" in
12451 *) extra_objects="$extra_objects cgen.o" ;;
12455 # See if we really can support this configuration with the emulation code.
12457 if test $this_target = $target ; then
12463 vms) extra_objects="$extra_objects te-vms.o" ;;
12466 # From target name and format, produce a list of supported emulations.
12468 case ${generic_target}-${fmt} in
12469 mips-*-*-*) case "$endian" in
12470 big) emulation="mipsbelf mipslelf mipself" ;;
12471 *) emulation="mipslelf mipsbelf mipself" ;;
12473 # i386-pc-pe-coff != i386-pc-coff.
12475 # Uncommenting the next line will turn on support for i386 AOUT
12476 # for the default linux configuration
12477 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12479 i386-*-aout) emulation="i386aout" ;;
12480 i386-*-coff) emulation="i386coff" ;;
12481 i386-*-elf) emulation="i386elf" ;;
12483 # Always all formats. The first stated emulation becomes the default.
12484 cris-*-*aout*) emulation="crisaout criself" ;;
12485 cris-*-*) emulation="criself crisaout" ;;
12488 emulations="$emulations $emulation"
12492 # Turn on all targets if possible
12493 if test ${all_targets} = "yes"; then
12494 case ${target_cpu_type} in
12496 case ${obj_format} in
12498 emulations="$emulations i386coff i386elf"
12501 emulations="$emulations i386aout i386elf"
12504 emulations="$emulations i386aout i386coff"
12509 case ${obj_format} in
12511 emulations="$emulations i386coff i386elf"
12514 emulations="$emulations i386aout i386elf"
12517 emulations="$emulations i386aout i386coff"
12524 # PE code has way too many macros tweaking behaviour
12526 pe*) emulations="" ;;
12529 # Assign floating point type. Most processors with FP support
12530 # IEEE FP. On those that don't support FP at all, usually IEEE
12532 case ${target_cpu} in
12533 vax | pdp11 ) atof=vax ;;
12537 case "${obj_format}" in
12538 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12541 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12543 if test $using_cgen = yes ; then
12544 case ${target_cpu} in
12546 cgen_cpu_prefix=or1k ;;
12547 *) cgen_cpu_prefix=${target_cpu} ;;
12551 $as_echo "#define USING_CGEN 1" >>confdefs.h
12556 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12557 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12560 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12561 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12564 # Some COFF configurations want these random other flags set.
12565 case ${obj_format} in
12567 case ${target_cpu_type} in
12569 $as_echo "#define I386COFF 1" >>confdefs.h
12572 $as_echo "#define M68KCOFF 1" >>confdefs.h
12575 $as_echo "#define M88KCOFF 1" >>confdefs.h
12578 $as_echo "#define I386COFF 1" >>confdefs.h
12584 # Getting this done right is going to be a bitch. Each configuration specified
12585 # with --enable-targets=... should be checked for environment, format, cpu
12588 # For each configuration, the necessary object file support code must be linked
12589 # in. This might be only one, it might be up to four. The necessary emulation
12590 # code needs to be provided, too.
12592 # And then there's "--enable-targets=all"....
12594 # For now, just always do it for MIPS ELF configurations. Sigh.
12596 formats="${obj_format}"
12599 _gas_uniq_list="$emulations"
12600 _gas_uniq_newlist=""
12601 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12602 case $_gas_uniq_i in
12603 _gas_uniq_dummy) ;;
12604 *) case " $_gas_uniq_newlist " in
12605 *" $_gas_uniq_i "*) ;;
12606 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12610 emulations=$_gas_uniq_newlist
12612 for em in . $emulations ; do
12615 mipsbelf | mipslelf | mipself)
12616 fmt=elf file=mipself ;;
12618 fmt=coff file=$em ;;
12620 fmt=aout file=$em ;;
12622 fmt=elf file=$em ;;
12624 formats="$formats $fmt"
12625 emfiles="$emfiles e-$file.o"
12626 EMULATIONS="$EMULATIONS &$em,"
12628 _gas_uniq_list="$formats"
12629 _gas_uniq_newlist=""
12630 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12631 case $_gas_uniq_i in
12632 _gas_uniq_dummy) ;;
12633 *) case " $_gas_uniq_newlist " in
12634 *" $_gas_uniq_i "*) ;;
12635 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12639 formats=$_gas_uniq_newlist
12641 _gas_uniq_list="$emfiles"
12642 _gas_uniq_newlist=""
12643 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12644 case $_gas_uniq_i in
12645 _gas_uniq_dummy) ;;
12646 *) case " $_gas_uniq_newlist " in
12647 *" $_gas_uniq_i "*) ;;
12648 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12652 emfiles=$_gas_uniq_newlist
12654 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12655 for fmt in $formats ; do
12658 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12661 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12664 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12667 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12670 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12673 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12676 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12679 extra_objects="$extra_objects obj-$fmt.o"
12683 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12684 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12685 # e-mipself has more than one emulation per file, e-i386* has just one at the
12686 # moment. If only one emulation is specified, then don't define
12687 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12688 case "${obj_format}${emfiles}" in
12689 multi* | *mipself*)
12690 extra_objects="$extra_objects $emfiles"
12692 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12698 cat >>confdefs.h <<_ACEOF
12699 #define EMULATIONS $EMULATIONS
12703 cat >>confdefs.h <<_ACEOF
12704 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12708 reject_dev_configs=yes
12710 case ${reject_dev_configs}-${dev} in
12712 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12722 # do we need the opcodes library?
12723 case "${need_opcodes}" in
12725 OPCODES_LIB=../opcodes/libopcodes.la
12732 cat >>confdefs.h <<_ACEOF
12733 #define TARGET_ALIAS "${target_alias}"
12737 cat >>confdefs.h <<_ACEOF
12738 #define TARGET_CANONICAL "${target}"
12742 cat >>confdefs.h <<_ACEOF
12743 #define TARGET_CPU "${target_cpu}"
12747 cat >>confdefs.h <<_ACEOF
12748 #define TARGET_VENDOR "${target_vendor}"
12752 cat >>confdefs.h <<_ACEOF
12753 #define TARGET_OS "${target_os}"
12757 for ac_prog in 'bison -y' byacc
12759 # Extract the first word of "$ac_prog", so it can be a program name with args.
12760 set dummy $ac_prog; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if test "${ac_cv_prog_YACC+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12766 if test -n "$YACC"; then
12767 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770 for as_dir in $PATH
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12776 ac_cv_prog_YACC="$ac_prog"
12777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 YACC=$ac_cv_prog_YACC
12787 if test -n "$YACC"; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12789 $as_echo "$YACC" >&6; }
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12796 test -n "$YACC" && break
12798 test -n "$YACC" || YACC="yacc"
12800 for ac_prog in flex lex
12802 # Extract the first word of "$ac_prog", so it can be a program name with args.
12803 set dummy $ac_prog; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if test "${ac_cv_prog_LEX+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12809 if test -n "$LEX"; then
12810 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12816 test -z "$as_dir" && as_dir=.
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12819 ac_cv_prog_LEX="$ac_prog"
12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 LEX=$ac_cv_prog_LEX
12830 if test -n "$LEX"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12832 $as_echo "$LEX" >&6; }
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12839 test -n "$LEX" && break
12841 test -n "$LEX" || LEX=":"
12843 if test "x$LEX" != "x:"; then
12844 cat >conftest.l <<_ACEOF
12850 e { yyless (input () != 0); }
12851 f { unput (yytext[0]); }
12852 . { BEGIN INITIAL; }
12854 #ifdef YYTEXT_POINTER
12855 extern char *yytext;
12860 return ! yylex () + ! yywrap ();
12863 { { ac_try="$LEX conftest.l"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12869 $as_echo "$ac_try_echo"; } >&5
12870 (eval "$LEX conftest.l") 2>&5
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; }
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12875 $as_echo_n "checking lex output file root... " >&6; }
12876 if test "${ac_cv_prog_lex_root+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12880 if test -f lex.yy.c; then
12881 ac_cv_prog_lex_root=lex.yy
12882 elif test -f lexyy.c; then
12883 ac_cv_prog_lex_root=lexyy
12885 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12889 $as_echo "$ac_cv_prog_lex_root" >&6; }
12890 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12892 if test -z "${LEXLIB+set}"; then
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12894 $as_echo_n "checking lex library... " >&6; }
12895 if test "${ac_cv_lib_lex+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12900 ac_cv_lib_lex='none needed'
12901 for ac_lib in '' -lfl -ll; do
12902 LIBS="$ac_lib $ac_save_LIBS"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905 `cat $LEX_OUTPUT_ROOT.c`
12907 if ac_fn_c_try_link "$LINENO"; then :
12908 ac_cv_lib_lex=$ac_lib
12910 rm -f core conftest.err conftest.$ac_objext \
12911 conftest$ac_exeext conftest.$ac_ext
12912 test "$ac_cv_lib_lex" != 'none needed' && break
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12918 $as_echo "$ac_cv_lib_lex" >&6; }
12919 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12924 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12925 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12928 # POSIX says lex can declare yytext either as a pointer or an array; the
12929 # default is implementation-dependent. Figure out which it is, since
12930 # not all implementations provide the %pointer and %array declarations.
12931 ac_cv_prog_lex_yytext_pointer=no
12933 LIBS="$LEXLIB $ac_save_LIBS"
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936 #define YYTEXT_POINTER 1
12937 `cat $LEX_OUTPUT_ROOT.c`
12939 if ac_fn_c_try_link "$LINENO"; then :
12940 ac_cv_prog_lex_yytext_pointer=yes
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12948 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12949 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12951 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12954 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12957 if test "$LEX" = :; then
12958 LEX=${am_missing_run}flex
12961 ALL_LINGUAS="fr tr es rw id ru fi ja"
12962 # If we haven't got the data from the intl directory,
12963 # assume NLS is disabled.
12972 if test -f ../intl/config.intl; then
12973 . ../intl/config.intl
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12976 $as_echo_n "checking whether NLS is requested... " >&6; }
12977 if test x"$USE_NLS" != xyes; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982 $as_echo "yes" >&6; }
12984 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12988 $as_echo_n "checking for catalogs to be installed... " >&6; }
12989 # Look for .po and .gmo files in the source directory.
12992 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12993 # If there aren't any .gmo files the shell will give us the
12994 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12996 case "$cat" in *\**)
12999 # The quadruple backslash is collapsed to a double backslash
13000 # by the backticks, then collapsed again by the double quotes,
13001 # leaving us with one backslash in the sed expression (right
13002 # before the dot that mustn't act as a wildcard).
13003 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13004 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13005 # The user is allowed to set LINGUAS to a list of languages to
13006 # install catalogs for. If it's empty that means "all of them."
13007 if test "x$LINGUAS" = x; then
13008 CATALOGS="$CATALOGS $cat"
13009 XLINGUAS="$XLINGUAS $lang"
13011 case "$LINGUAS" in *$lang*)
13012 CATALOGS="$CATALOGS $cat"
13013 XLINGUAS="$XLINGUAS $lang"
13018 LINGUAS="$XLINGUAS"
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13020 $as_echo "$LINGUAS" >&6; }
13034 if test -n "$ac_aux_dir"; then
13035 case "$ac_aux_dir" in
13036 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13037 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13040 if test -z "$MKINSTALLDIRS"; then
13041 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13047 $as_echo_n "checking whether NLS is requested... " >&6; }
13048 # Check whether --enable-nls was given.
13049 if test "${enable_nls+set}" = set; then :
13050 enableval=$enable_nls; USE_NLS=$enableval
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13056 $as_echo "$USE_NLS" >&6; }
13063 # Prepare PATH_SEPARATOR.
13064 # The user is always right.
13065 if test "${PATH_SEPARATOR+set}" != set; then
13066 echo "#! /bin/sh" >conf$$.sh
13067 echo "exit 0" >>conf$$.sh
13069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13077 # Find out how to test for executable files. Don't use a zero-byte file,
13078 # as systems may use methods other than mode bits to determine executability.
13079 cat >conf$$.file <<_ASEOF
13083 chmod +x conf$$.file
13084 if test -x conf$$.file >/dev/null 2>&1; then
13085 ac_executable_p="test -x"
13087 ac_executable_p="test -f"
13091 # Extract the first word of "msgfmt", so it can be a program name with args.
13092 set dummy msgfmt; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13100 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13103 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13104 for ac_dir in $PATH; do
13106 test -z "$ac_dir" && ac_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13109 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13110 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13111 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13118 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13122 MSGFMT="$ac_cv_path_MSGFMT"
13123 if test "$MSGFMT" != ":"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13125 $as_echo "$MSGFMT" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13131 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13132 set dummy gmsgfmt; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13140 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13150 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13162 GMSGFMT=$ac_cv_path_GMSGFMT
13163 if test -n "$GMSGFMT"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13165 $as_echo "$GMSGFMT" >&6; }
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13174 # Prepare PATH_SEPARATOR.
13175 # The user is always right.
13176 if test "${PATH_SEPARATOR+set}" != set; then
13177 echo "#! /bin/sh" >conf$$.sh
13178 echo "exit 0" >>conf$$.sh
13180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13188 # Find out how to test for executable files. Don't use a zero-byte file,
13189 # as systems may use methods other than mode bits to determine executability.
13190 cat >conf$$.file <<_ASEOF
13194 chmod +x conf$$.file
13195 if test -x conf$$.file >/dev/null 2>&1; then
13196 ac_executable_p="test -x"
13198 ac_executable_p="test -f"
13202 # Extract the first word of "xgettext", so it can be a program name with args.
13203 set dummy xgettext; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13209 case "$XGETTEXT" in
13211 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13214 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13215 for ac_dir in $PATH; do
13217 test -z "$ac_dir" && ac_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13220 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13221 (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
13222 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13229 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13233 XGETTEXT="$ac_cv_path_XGETTEXT"
13234 if test "$XGETTEXT" != ":"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13236 $as_echo "$XGETTEXT" >&6; }
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13245 # Prepare PATH_SEPARATOR.
13246 # The user is always right.
13247 if test "${PATH_SEPARATOR+set}" != set; then
13248 echo "#! /bin/sh" >conf$$.sh
13249 echo "exit 0" >>conf$$.sh
13251 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13259 # Find out how to test for executable files. Don't use a zero-byte file,
13260 # as systems may use methods other than mode bits to determine executability.
13261 cat >conf$$.file <<_ASEOF
13265 chmod +x conf$$.file
13266 if test -x conf$$.file >/dev/null 2>&1; then
13267 ac_executable_p="test -x"
13269 ac_executable_p="test -f"
13273 # Extract the first word of "msgmerge", so it can be a program name with args.
13274 set dummy msgmerge; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13280 case "$MSGMERGE" in
13282 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13285 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13286 for ac_dir in $PATH; do
13288 test -z "$ac_dir" && ac_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13291 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13292 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13299 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13303 MSGMERGE="$ac_cv_path_MSGMERGE"
13304 if test "$MSGMERGE" != ":"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13306 $as_echo "$MSGMERGE" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13313 if test "$GMSGFMT" != ":"; then
13314 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13315 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13318 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13320 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13325 if test "$XGETTEXT" != ":"; then
13326 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13327 (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
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13331 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13337 ac_config_commands="$ac_config_commands default-1"
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13343 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13344 # Check whether --enable-maintainer-mode was given.
13345 if test "${enable_maintainer_mode+set}" = set; then :
13346 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13348 USE_MAINTAINER_MODE=no
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13352 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13353 if test $USE_MAINTAINER_MODE = yes; then
13354 MAINTAINER_MODE_TRUE=
13355 MAINTAINER_MODE_FALSE='#'
13357 MAINTAINER_MODE_TRUE='#'
13358 MAINTAINER_MODE_FALSE=
13361 MAINT=$MAINTAINER_MODE_TRUE
13365 GENINSRC_NEVER_TRUE=
13366 GENINSRC_NEVER_FALSE='#'
13368 GENINSRC_NEVER_TRUE='#'
13369 GENINSRC_NEVER_FALSE=
13374 for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
13376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13377 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13378 eval as_val=\$$as_ac_Header
13379 if test "x$as_val" = x""yes; then :
13380 cat >>confdefs.h <<_ACEOF
13381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13389 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13390 if test "${gcc_cv_header_string+set}" = set; then :
13391 $as_echo_n "(cached) " >&6
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 #include <string.h>
13396 #include <strings.h>
13405 if ac_fn_c_try_compile "$LINENO"; then :
13406 gcc_cv_header_string=yes
13408 gcc_cv_header_string=no
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13413 $as_echo "$gcc_cv_header_string" >&6; }
13414 if test $gcc_cv_header_string = yes; then
13416 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13421 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13422 # people who are not cross-compiling but are compiling cross-assemblers.
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13424 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13425 if test "${host}" = "${target}"; then
13430 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13434 $as_echo "$cross_gas" >&6; }
13436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13437 # for constant arguments. Useless!
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13439 $as_echo_n "checking for working alloca.h... " >&6; }
13440 if test "${ac_cv_working_alloca_h+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445 #include <alloca.h>
13449 char *p = (char *) alloca (2 * sizeof (int));
13455 if ac_fn_c_try_link "$LINENO"; then :
13456 ac_cv_working_alloca_h=yes
13458 ac_cv_working_alloca_h=no
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13464 $as_echo "$ac_cv_working_alloca_h" >&6; }
13465 if test $ac_cv_working_alloca_h = yes; then
13467 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13472 $as_echo_n "checking for alloca... " >&6; }
13473 if test "${ac_cv_func_alloca_works+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13479 # define alloca __builtin_alloca
13482 # include <malloc.h>
13483 # define alloca _alloca
13485 # ifdef HAVE_ALLOCA_H
13486 # include <alloca.h>
13491 # ifndef alloca /* predefined by HP cc +Olibcalls */
13502 char *p = (char *) alloca (1);
13508 if ac_fn_c_try_link "$LINENO"; then :
13509 ac_cv_func_alloca_works=yes
13511 ac_cv_func_alloca_works=no
13513 rm -f core conftest.err conftest.$ac_objext \
13514 conftest$ac_exeext conftest.$ac_ext
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13517 $as_echo "$ac_cv_func_alloca_works" >&6; }
13519 if test $ac_cv_func_alloca_works = yes; then
13521 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13524 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13525 # that cause trouble. Some versions do not even contain alloca or
13526 # contain a buggy version. If you still want to use their alloca,
13527 # use ar to extract alloca.o from them instead of compiling alloca.c.
13529 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13531 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13535 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13536 if test "${ac_cv_os_cray+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 #if defined CRAY && ! defined CRAY2
13548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13549 $EGREP "webecray" >/dev/null 2>&1; then :
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13558 $as_echo "$ac_cv_os_cray" >&6; }
13559 if test $ac_cv_os_cray = yes; then
13560 for ac_func in _getb67 GETB67 getb67; do
13561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13563 eval as_val=\$$as_ac_var
13564 if test "x$as_val" = x""yes; then :
13566 cat >>confdefs.h <<_ACEOF
13567 #define CRAY_STACKSEG_END $ac_func
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13577 $as_echo_n "checking stack direction for C alloca... " >&6; }
13578 if test "${ac_cv_c_stack_direction+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13581 if test "$cross_compiling" = yes; then :
13582 ac_cv_c_stack_direction=0
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586 $ac_includes_default
13588 find_stack_direction ()
13590 static char *addr = 0;
13595 return find_stack_direction ();
13598 return (&dummy > addr) ? 1 : -1;
13604 return find_stack_direction () < 0;
13607 if ac_fn_c_try_run "$LINENO"; then :
13608 ac_cv_c_stack_direction=1
13610 ac_cv_c_stack_direction=-1
13612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13613 conftest.$ac_objext conftest.beam conftest.$ac_ext
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13618 $as_echo "$ac_cv_c_stack_direction" >&6; }
13619 cat >>confdefs.h <<_ACEOF
13620 #define STACK_DIRECTION $ac_cv_c_stack_direction
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13627 $as_echo_n "checking for inline... " >&6; }
13628 if test "${ac_cv_c_inline+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13632 for ac_kw in inline __inline__ __inline; do
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #ifndef __cplusplus
13637 static $ac_kw foo_t static_foo () {return 0; }
13638 $ac_kw foo_t foo () {return 0; }
13642 if ac_fn_c_try_compile "$LINENO"; then :
13643 ac_cv_c_inline=$ac_kw
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 test "$ac_cv_c_inline" != no && break
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13651 $as_echo "$ac_cv_c_inline" >&6; }
13653 case $ac_cv_c_inline in
13656 case $ac_cv_c_inline in
13658 *) ac_val=$ac_cv_c_inline;;
13660 cat >>confdefs.h <<_ACEOF
13661 #ifndef __cplusplus
13662 #define inline $ac_val
13669 # VMS doesn't have unlink.
13670 for ac_func in unlink remove
13672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13674 eval as_val=\$$as_ac_var
13675 if test "x$as_val" = x""yes; then :
13676 cat >>confdefs.h <<_ACEOF
13677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13683 for ac_func in sbrk setlocale
13685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13687 eval as_val=\$$as_ac_var
13688 if test "x$as_val" = x""yes; then :
13689 cat >>confdefs.h <<_ACEOF
13690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13699 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13700 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13705 #include <locale.h>
13714 if ac_fn_c_try_link "$LINENO"; then :
13715 am_cv_val_LC_MESSAGES=yes
13717 am_cv_val_LC_MESSAGES=no
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13723 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13724 if test $am_cv_val_LC_MESSAGES = yes; then
13726 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13731 # do we need the math library?
13732 case "${need_libm}" in
13736 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13737 # These system don't have libm, or don't need it
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13741 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13742 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13745 ac_check_lib_save_LIBS=$LIBS
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13756 char _mwvalidcheckl ();
13760 return _mwvalidcheckl ();
13765 if ac_fn_c_try_link "$LINENO"; then :
13766 ac_cv_lib_mw__mwvalidcheckl=yes
13768 ac_cv_lib_mw__mwvalidcheckl=no
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 LIBS=$ac_check_lib_save_LIBS
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13775 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13776 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13781 $as_echo_n "checking for cos in -lm... " >&6; }
13782 if test "${ac_cv_lib_m_cos+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13785 ac_check_lib_save_LIBS=$LIBS
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 /* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13805 if ac_fn_c_try_link "$LINENO"; then :
13806 ac_cv_lib_m_cos=yes
13810 rm -f core conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13812 LIBS=$ac_check_lib_save_LIBS
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13815 $as_echo "$ac_cv_lib_m_cos" >&6; }
13816 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13823 $as_echo_n "checking for cos in -lm... " >&6; }
13824 if test "${ac_cv_lib_m_cos+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
13827 ac_check_lib_save_LIBS=$LIBS
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_lib_m_cos=yes
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13857 $as_echo "$ac_cv_lib_m_cos" >&6; }
13858 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13870 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13871 # enough, but on some of those systems, the assert macro relies on requoting
13872 # working properly!
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13874 $as_echo_n "checking for working assert macro... " >&6; }
13875 if test "${gas_cv_assert_ok+set}" = set; then :
13876 $as_echo_n "(cached) " >&6
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <assert.h>
13886 /* check for requoting problems */
13887 static int a, b, c, d;
13889 assert (!strcmp(s, "foo bar baz quux"));
13890 /* check for newline handling */
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 gas_cv_assert_ok=yes
13901 gas_cv_assert_ok=no
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13907 $as_echo "$gas_cv_assert_ok" >&6; }
13908 test $gas_cv_assert_ok = yes ||
13909 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13913 # On some systems, the system header files may not declare malloc, realloc,
13914 # and free. There are places where gas needs these functions to have been
13915 # declared -- such as when taking their addresses.
13917 #ifdef HAVE_MEMORY_H
13918 #include <memory.h>
13920 #ifdef HAVE_STRING_H
13921 #include <string.h>
13923 #ifdef HAVE_STRINGS_H
13924 #include <strings.h>
13927 #ifdef HAVE_STDLIB_H
13928 #include <stdlib.h>
13930 #ifdef HAVE_UNISTD_H
13931 #include <unistd.h>
13935 # Does errno.h declare errno, or do we have to add a separate declaration
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13939 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13940 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 #ifdef HAVE_ERRNO_H
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 gas_cv_decl_needed_errno=no
13965 gas_cv_decl_needed_errno=yes
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13971 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13972 if test $gas_cv_decl_needed_errno = yes; then
13974 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13980 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13981 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13982 $as_echo_n "(cached) " >&6
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986 #include <unistd.h>
13990 extern int getopt (int, char *const*, const char *);
13995 if ac_fn_c_try_compile "$LINENO"; then :
13996 gas_cv_decl_getopt_unistd_h=yes
13998 gas_cv_decl_getopt_unistd_h=no
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14004 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14005 if test $gas_cv_decl_getopt_unistd_h = yes; then
14007 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14013 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14014 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14015 $as_echo_n "(cached) " >&6
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14032 if ac_fn_c_try_link "$LINENO"; then :
14033 gas_cv_decl_needed_environ=no
14035 gas_cv_decl_needed_environ=yes
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14041 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14042 if test $gas_cv_decl_needed_environ = yes; then
14044 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14050 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14051 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14061 typedef int (*f)(int);
14069 if ac_fn_c_try_link "$LINENO"; then :
14070 gas_cv_decl_needed_ffs=no
14072 gas_cv_decl_needed_ffs=yes
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14078 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14079 if test $gas_cv_decl_needed_ffs = yes; then
14081 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14087 $as_echo_n "checking whether declaration is required for free... " >&6; }
14088 if test "${gas_cv_decl_needed_free+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14098 typedef void (*f)();
14106 if ac_fn_c_try_link "$LINENO"; then :
14107 gas_cv_decl_needed_free=no
14109 gas_cv_decl_needed_free=yes
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14115 $as_echo "$gas_cv_decl_needed_free" >&6; }
14116 if test $gas_cv_decl_needed_free = yes; then
14118 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14124 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14125 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14135 typedef char *(*f)();
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 gas_cv_decl_needed_malloc=no
14146 gas_cv_decl_needed_malloc=yes
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14152 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14153 if test $gas_cv_decl_needed_malloc = yes; then
14155 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14161 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14162 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14172 typedef char *(*f)();
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 gas_cv_decl_needed_sbrk=no
14183 gas_cv_decl_needed_sbrk=yes
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14189 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14190 if test $gas_cv_decl_needed_sbrk = yes; then
14192 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14198 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14199 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14200 $as_echo_n "(cached) " >&6
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14209 typedef char *(*f)();
14217 if ac_fn_c_try_link "$LINENO"; then :
14218 gas_cv_decl_needed_strstr=no
14220 gas_cv_decl_needed_strstr=yes
14222 rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14226 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14227 if test $gas_cv_decl_needed_strstr = yes; then
14229 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14234 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14235 if test "x$ac_cv_have_decl_free" = x""yes; then :
14241 cat >>confdefs.h <<_ACEOF
14242 #define HAVE_DECL_FREE $ac_have_decl
14244 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14245 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_DECL_GETENV $ac_have_decl
14254 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14255 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_DECL_MALLOC $ac_have_decl
14264 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14265 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14271 cat >>confdefs.h <<_ACEOF
14272 #define HAVE_DECL_MEMPCPY $ac_have_decl
14274 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14275 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14281 cat >>confdefs.h <<_ACEOF
14282 #define HAVE_DECL_REALLOC $ac_have_decl
14284 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14285 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_DECL_STPCPY $ac_have_decl
14294 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14295 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14301 cat >>confdefs.h <<_ACEOF
14302 #define HAVE_DECL_STRSTR $ac_have_decl
14304 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14305 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14311 cat >>confdefs.h <<_ACEOF
14312 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14318 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14320 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14324 # Link in zlib if we can. This allows us to write compressed debug sections.
14326 # Use the system's zlib library.
14327 zlibdir="-L\$(top_builddir)/../zlib"
14328 zlibinc="-I\$(top_srcdir)/../zlib"
14330 # Check whether --with-system-zlib was given.
14331 if test "${with_system_zlib+set}" = set; then :
14332 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14343 # Support for VMS timestamps via cross compile
14345 if test "$ac_cv_header_time_h" = yes; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14347 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14348 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14354 #define _BSD_SOURCE 1
14359 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14364 if ac_fn_c_try_compile "$LINENO"; then :
14365 gas_cv_have_time_type_member_tm_gmtoff=yes
14367 gas_cv_have_time_type_member_tm_gmtoff=no
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14375 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14379 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14383 if test "$ac_cv_header_sys_stat_h" = yes; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14385 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14386 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h. */
14392 #define _BSD_SOURCE 1
14393 #include <sys/stat.h>
14397 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14402 if ac_fn_c_try_compile "$LINENO"; then :
14403 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14405 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14413 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14417 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14420 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14421 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14427 #define _BSD_SOURCE 1
14428 #include <sys/stat.h>
14432 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14437 if ac_fn_c_try_compile "$LINENO"; then :
14438 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14440 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14448 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14452 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14464 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14466 ac_config_commands="$ac_config_commands default"
14469 cat >confcache <<\_ACEOF
14470 # This file is a shell script that caches the results of configure
14471 # tests run on this system so they can be shared between configure
14472 # scripts and configure runs, see configure's option --config-cache.
14473 # It is not useful on other systems. If it contains results you don't
14474 # want to keep, you may remove or edit it.
14476 # config.status only pays attention to the cache file if you give it
14477 # the --recheck option to rerun configure.
14479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14481 # following values.
14485 # The following way of writing the cache mishandles newlines in values,
14486 # but we know of no workaround that is simple, portable, and efficient.
14487 # So, we kill variables containing newlines.
14488 # Ultrix sh set writes to stderr and can't be redirected directly,
14489 # and sets the high bit in the cache file unless we assign to the vars.
14491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14492 eval ac_val=\$$ac_var
14496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14500 _ | IFS | as_nl) ;; #(
14501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14502 *) { eval $ac_var=; unset $ac_var;} ;;
14508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14509 *${as_nl}ac_space=\ *)
14510 # `set' does not quote correctly, so add quotes: double-quote
14511 # substitution turns \\\\ into \\, and sed turns \\ into \.
14514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14517 # `set' quotes correctly as required by POSIX, so do not add quotes.
14518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14532 if test -w "$cache_file"; then
14533 test "x$cache_file" != "x/dev/null" &&
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14535 $as_echo "$as_me: updating cache $cache_file" >&6;}
14536 cat confcache >$cache_file
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14545 # Let make expand exec_prefix.
14546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14548 DEFS=-DHAVE_CONFIG_H
14552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14553 # 1. Remove the extension, and $U if already installed.
14554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14557 # will be set to the directory where LIBOBJS objects are built.
14558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14561 LIBOBJS=$ac_libobjs
14563 LTLIBOBJS=$ac_ltlibobjs
14566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14567 as_fn_error "conditional \"AMDEP\" was never defined.
14568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14570 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14571 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14574 if test -n "$EXEEXT"; then
14576 am__EXEEXT_FALSE='#'
14578 am__EXEEXT_TRUE='#'
14583 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14584 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14587 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14588 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14592 : ${CONFIG_STATUS=./config.status}
14594 ac_clean_files_save=$ac_clean_files
14595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14597 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14599 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14601 # Generated by $as_me.
14602 # Run this file to recreate the current configuration.
14603 # Compiler output produced by configure, useful for debugging
14604 # configure, is in config.log if it exists.
14607 ac_cs_recheck=false
14610 SHELL=\${CONFIG_SHELL-$SHELL}
14613 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14614 ## -------------------- ##
14615 ## M4sh Initialization. ##
14616 ## -------------------- ##
14618 # Be more Bourne compatible
14619 DUALCASE=1; export DUALCASE # for MKS sh
14620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14623 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14624 # is contrary to our usage. Disable this feature.
14625 alias -g '${1+"$@"}'='"$@"'
14626 setopt NO_GLOB_SUBST
14628 case `(set -o) 2>/dev/null` in #(
14640 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14641 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14643 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14644 # Prefer a ksh shell builtin over an external printf program on Solaris,
14645 # but without wasting forks for bash or zsh.
14646 if test -z "$BASH_VERSION$ZSH_VERSION" \
14647 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14648 as_echo='print -r --'
14649 as_echo_n='print -rn --'
14650 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14651 as_echo='printf %s\n'
14652 as_echo_n='printf %s'
14654 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14655 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14656 as_echo_n='/usr/ucb/echo -n'
14658 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14659 as_echo_n_body='eval
14663 expr "X$arg" : "X\\(.*\\)$as_nl";
14664 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14666 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14668 export as_echo_n_body
14669 as_echo_n='sh -c $as_echo_n_body as_echo'
14671 export as_echo_body
14672 as_echo='sh -c $as_echo_body as_echo'
14675 # The user is always right.
14676 if test "${PATH_SEPARATOR+set}" != set; then
14678 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14679 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14686 # We need space, tab and new line, in precisely that order. Quoting is
14687 # there to prevent editors from complaining about space-tab.
14688 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14689 # splitting by setting IFS to empty value.)
14692 # Find who we are. Look in the path if we contain no directory separator.
14694 *[\\/]* ) as_myself=$0 ;;
14695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14696 for as_dir in $PATH
14699 test -z "$as_dir" && as_dir=.
14700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14706 # We did not find ourselves, most probably we were run as `sh COMMAND'
14707 # in which case we are not to be found in the path.
14708 if test "x$as_myself" = x; then
14711 if test ! -f "$as_myself"; then
14712 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14716 # Unset variables that we do not need and which cause bugs (e.g. in
14717 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14718 # suppresses any "Segmentation fault" message there. '((' could
14719 # trigger a bug in pdksh 5.2.14.
14720 for as_var in BASH_ENV ENV MAIL MAILPATH
14721 do eval test x\${$as_var+set} = xset \
14722 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14738 # as_fn_error ERROR [LINENO LOG_FD]
14739 # ---------------------------------
14740 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14741 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14742 # script with status $?, using 1 if that was 0.
14745 as_status=$?; test $as_status -eq 0 && as_status=1
14747 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14748 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14750 $as_echo "$as_me: error: $1" >&2
14751 as_fn_exit $as_status
14755 # as_fn_set_status STATUS
14756 # -----------------------
14757 # Set $? to STATUS, without forking.
14758 as_fn_set_status ()
14761 } # as_fn_set_status
14763 # as_fn_exit STATUS
14764 # -----------------
14765 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14769 as_fn_set_status $1
14775 # Portably unset VAR.
14778 { eval $1=; unset $1;}
14780 as_unset=as_fn_unset
14781 # as_fn_append VAR VALUE
14782 # ----------------------
14783 # Append the text in VALUE to the end of the definition contained in VAR. Take
14784 # advantage of any shell optimizations that allow amortized linear growth over
14785 # repeated appends, instead of the typical quadratic growth present in naive
14787 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14788 eval 'as_fn_append ()
14799 # as_fn_arith ARG...
14800 # ------------------
14801 # Perform arithmetic evaluation on the ARGs, and store the result in the
14802 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14803 # must be portable across $(()) and expr.
14804 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14805 eval 'as_fn_arith ()
14812 as_val=`expr "$@" || test $? -eq 1`
14817 if expr a : '\(a\)' >/dev/null 2>&1 &&
14818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14824 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14825 as_basename=basename
14830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14836 as_me=`$as_basename -- "$0" ||
14837 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14838 X"$0" : 'X\(//\)$' \| \
14839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14841 sed '/^.*\/\([^/][^/]*\)\/*$/{
14855 # Avoid depending upon Character Ranges.
14856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14859 as_cr_digits='0123456789'
14860 as_cr_alnum=$as_cr_Letters$as_cr_digits
14862 ECHO_C= ECHO_N= ECHO_T=
14863 case `echo -n x` in #(((((
14865 case `echo 'xy\c'` in
14866 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14868 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14875 rm -f conf$$ conf$$.exe conf$$.file
14876 if test -d conf$$.dir; then
14877 rm -f conf$$.dir/conf$$.file
14880 mkdir conf$$.dir 2>/dev/null
14882 if (echo >conf$$.file) 2>/dev/null; then
14883 if ln -s conf$$.file conf$$ 2>/dev/null; then
14885 # ... but there are two gotchas:
14886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14888 # In both cases, we have to default to `cp -p'.
14889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14891 elif ln conf$$.file conf$$ 2>/dev/null; then
14899 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14900 rmdir conf$$.dir 2>/dev/null
14905 # Create "$as_dir" as a directory, including parents if necessary.
14910 -*) as_dir=./$as_dir;;
14912 test -d "$as_dir" || eval $as_mkdir_p || {
14916 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14917 *) as_qdir=$as_dir;;
14919 as_dirs="'$as_qdir' $as_dirs"
14920 as_dir=`$as_dirname -- "$as_dir" ||
14921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14922 X"$as_dir" : 'X\(//\)[^/]' \| \
14923 X"$as_dir" : 'X\(//\)$' \| \
14924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14925 $as_echo X"$as_dir" |
14926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14930 /^X\(\/\/\)[^/].*/{
14943 test -d "$as_dir" && break
14945 test -z "$as_dirs" || eval "mkdir $as_dirs"
14946 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14950 if mkdir -p . 2>/dev/null; then
14951 as_mkdir_p='mkdir -p "$as_dir"'
14953 test -d ./-p && rmdir ./-p
14957 if test -x / >/dev/null 2>&1; then
14958 as_test_x='test -x'
14960 if ls -dL / >/dev/null 2>&1; then
14967 if test -d "$1"; then
14973 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14974 ???[sx]*):;;*)false;;esac;fi
14978 as_executable_p=$as_test_x
14980 # Sed expression to map a string onto a valid CPP name.
14981 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14983 # Sed expression to map a string onto a valid variable name.
14984 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14988 ## ----------------------------------- ##
14989 ## Main body of $CONFIG_STATUS script. ##
14990 ## ----------------------------------- ##
14992 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14995 # Save the log message, to keep $0 and so on meaningful, and to
14996 # report actual input values of CONFIG_FILES etc. instead of their
14997 # values after options handling.
14999 This file was extended by gas $as_me 2.25.51, which was
15000 generated by GNU Autoconf 2.64. Invocation command line was
15002 CONFIG_FILES = $CONFIG_FILES
15003 CONFIG_HEADERS = $CONFIG_HEADERS
15004 CONFIG_LINKS = $CONFIG_LINKS
15005 CONFIG_COMMANDS = $CONFIG_COMMANDS
15008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15013 case $ac_config_files in *"
15014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15017 case $ac_config_headers in *"
15018 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023 # Files that config.status was made for.
15024 config_files="$ac_config_files"
15025 config_headers="$ac_config_headers"
15026 config_commands="$ac_config_commands"
15030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15032 \`$as_me' instantiates files and other configuration actions
15033 from templates according to the current configuration. Unless the files
15034 and actions are specified as TAGs, all are instantiated by default.
15036 Usage: $0 [OPTION]... [TAG]...
15038 -h, --help print this help, then exit
15039 -V, --version print version number and configuration settings, then exit
15040 -q, --quiet, --silent
15041 do not print progress messages
15042 -d, --debug don't remove temporary files
15043 --recheck update $as_me by reconfiguring in the same conditions
15044 --file=FILE[:TEMPLATE]
15045 instantiate the configuration file FILE
15046 --header=FILE[:TEMPLATE]
15047 instantiate the configuration header FILE
15049 Configuration files:
15052 Configuration headers:
15055 Configuration commands:
15058 Report bugs to the package provider."
15061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15063 gas config.status 2.25.51
15064 configured by $0, generated by GNU Autoconf 2.64,
15065 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15067 Copyright (C) 2009 Free Software Foundation, Inc.
15068 This config.status script is free software; the Free Software Foundation
15069 gives unlimited permission to copy, distribute and modify it."
15076 test -n "\$AWK" || AWK=awk
15079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15080 # The default lists apply if the user does not specify any file.
15086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15087 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15098 # Handling of the options.
15099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15102 $as_echo "$ac_cs_version"; exit ;;
15103 --debug | --debu | --deb | --de | --d | -d )
15105 --file | --fil | --fi | --f )
15108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15110 as_fn_append CONFIG_FILES " '$ac_optarg'"
15111 ac_need_defaults=false;;
15112 --header | --heade | --head | --hea )
15115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15117 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15118 ac_need_defaults=false;;
15120 # Conflict between --help and --header
15121 as_fn_error "ambiguous option: \`$1'
15122 Try \`$0 --help' for more information.";;
15123 --help | --hel | -h )
15124 $as_echo "$ac_cs_usage"; exit ;;
15125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15129 # This is an error.
15130 -*) as_fn_error "unrecognized option: \`$1'
15131 Try \`$0 --help' for more information." ;;
15133 *) as_fn_append ac_config_targets " $1"
15134 ac_need_defaults=false ;;
15140 ac_configure_extra_args=
15142 if $ac_cs_silent; then
15144 ac_configure_extra_args="$ac_configure_extra_args --silent"
15148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15149 if \$ac_cs_recheck; then
15150 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15152 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15153 CONFIG_SHELL='$SHELL'
15154 export CONFIG_SHELL
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15164 ## Running $as_me. ##
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15174 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15177 # The HP-UX ksh and POSIX shell print the target directory to stdout
15178 # if CDPATH is set.
15179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15181 sed_quote_subst='$sed_quote_subst'
15182 double_quote_subst='$double_quote_subst'
15183 delay_variable_subst='$delay_variable_subst'
15184 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15185 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15186 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15187 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15188 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15189 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15190 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15191 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15192 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15193 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15194 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15195 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15196 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15197 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15198 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15199 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15200 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15201 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15202 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15203 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15204 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15205 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15206 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15207 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15208 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15209 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15210 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15211 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15212 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15213 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15214 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15215 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15216 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15217 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15218 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15219 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15220 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15221 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15222 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15223 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15224 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15225 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15226 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15227 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15228 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15229 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15230 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15231 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15232 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"`'
15233 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15234 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15235 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15236 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15237 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15238 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15239 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15240 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15241 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15242 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15243 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15244 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15245 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15246 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15247 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15248 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15249 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15250 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15251 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15252 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15253 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15254 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15255 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15256 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15257 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15258 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15259 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15260 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15261 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15262 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15263 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15264 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15265 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15266 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15267 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15268 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15269 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15270 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15271 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15272 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15273 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15274 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15275 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15276 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15277 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15278 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15279 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15280 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15281 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15282 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15283 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15284 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15285 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15286 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15287 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15288 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15289 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15290 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15291 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15292 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15293 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15294 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15295 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15296 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15297 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15298 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15299 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15300 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15301 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15302 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15303 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15306 LTCFLAGS='$LTCFLAGS'
15307 compiler='$compiler_DEFAULT'
15309 # A function that is used when there is no print builtin or printf.
15310 func_fallback_echo ()
15312 eval 'cat <<_LTECHO_EOF
15317 # Quote evaled strings.
15331 deplibs_check_method \
15340 lt_cv_sys_global_symbol_pipe \
15341 lt_cv_sys_global_symbol_to_cdecl \
15342 lt_cv_sys_global_symbol_to_c_name_address \
15343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15344 lt_prog_compiler_no_builtin_flag \
15345 lt_prog_compiler_wl \
15346 lt_prog_compiler_pic \
15347 lt_prog_compiler_static \
15348 lt_cv_prog_compiler_c_o \
15356 export_dynamic_flag_spec \
15357 whole_archive_flag_spec \
15358 compiler_needs_object \
15360 allow_undefined_flag \
15361 no_undefined_flag \
15362 hardcode_libdir_flag_spec \
15363 hardcode_libdir_flag_spec_ld \
15364 hardcode_libdir_separator \
15369 variables_saved_for_relink \
15371 library_names_spec \
15373 install_override_mode \
15377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15378 *[\\\\\\\`\\"\\\$]*)
15379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15387 # Double-quote double-evaled strings.
15388 for var in reload_cmds \
15389 old_postinstall_cmds \
15390 old_postuninstall_cmds \
15392 extract_expsyms_cmds \
15393 old_archive_from_new_cmds \
15394 old_archive_from_expsyms_cmds \
15396 archive_expsym_cmds \
15398 module_expsym_cmds \
15399 export_symbols_cmds \
15402 postuninstall_cmds \
15404 sys_lib_search_path_spec \
15405 sys_lib_dlsearch_path_spec; do
15406 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15407 *[\\\\\\\`\\"\\\$]*)
15408 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15411 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15416 ac_aux_dir='$ac_aux_dir'
15417 xsi_shell='$xsi_shell'
15418 lt_shell_append='$lt_shell_append'
15420 # See if we are running on zsh, and set the options which allow our
15421 # commands through without removal of \ escapes INIT.
15422 if test -n "\${ZSH_VERSION+set}" ; then
15423 setopt NO_GLOB_SUBST
15429 TIMESTAMP='$TIMESTAMP'
15435 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15436 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15438 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15439 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15440 LINGUAS="${LINGUAS-%UNSET%}"
15442 target_cpu_type=${target_cpu_type}
15443 cgen_cpu_prefix=${cgen_cpu_prefix}
15444 obj_format=${obj_format}
15449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15451 # Handling of arguments.
15452 for ac_config_target in $ac_config_targets
15454 case $ac_config_target in
15455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15456 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15457 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15458 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15459 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15460 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15461 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15462 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15463 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15464 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15466 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15471 # If the user did not use the arguments to specify the items to instantiate,
15472 # then the envvar interface is used. Set only those that are not.
15473 # We use the long form for the default assignment because of an extremely
15474 # bizarre bug on SunOS 4.1.3.
15475 if $ac_need_defaults; then
15476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15481 # Have a temporary directory for convenience. Make it in the build tree
15482 # simply because there is no reason against having it here, and in addition,
15483 # creating and moving files from /tmp can sometimes cause problems.
15484 # Hook for its removal unless debugging.
15485 # Note that there is a small window in which the directory will not be cleaned:
15486 # after its creation but before its name has been assigned to `$tmp'.
15490 trap 'exit_status=$?
15491 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15493 trap 'as_fn_exit 1' 1 2 13 15
15495 # Create a (secure) tmp directory for tmp files.
15498 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15499 test -n "$tmp" && test -d "$tmp"
15502 tmp=./conf$$-$RANDOM
15503 (umask 077 && mkdir "$tmp")
15504 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15506 # Set up the scripts for CONFIG_FILES section.
15507 # No need to generate them if there are no CONFIG_FILES.
15508 # This happens for instance with `./config.status config.h'.
15509 if test -n "$CONFIG_FILES"; then
15512 ac_cr=`echo X | tr X '\015'`
15513 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15514 # But we know of no other shell where ac_cr would be empty at this
15515 # point, so we can use a bashism as a fallback.
15516 if test "x$ac_cr" = x; then
15517 eval ac_cr=\$\'\\r\'
15519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15523 ac_cs_awk_cr=$ac_cr
15526 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15531 echo "cat >conf$$subs.awk <<_ACEOF" &&
15532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15534 } >conf$$subs.sh ||
15535 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15536 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15538 for ac_last_try in false false false false false :; do
15539 . ./conf$$subs.sh ||
15540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15542 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15543 if test $ac_delim_n = $ac_delim_num; then
15545 elif $ac_last_try; then
15546 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15551 rm -f conf$$subs.sh
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15558 s/^/S["/; s/!.*/"]=/
15568 s/\(.\{148\}\).*/\1/
15570 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15582 s/\(.\{148\}\).*/\1/
15584 s/["\\]/\\&/g; s/^/"/; s/$/"/
15588 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15593 ' <conf$$subs.awk | sed '
15598 ' >>$CONFIG_STATUS || ac_write_fail=1
15599 rm -f conf$$subs.awk
15600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15602 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15603 for (key in S) S_is_set[key] = 1
15609 nfields = split(line, field, "@")
15611 len = length(field[1])
15612 for (i = 2; i < nfields; i++) {
15614 keylen = length(key)
15615 if (S_is_set[key]) {
15617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15618 len += length(value) + length(field[++i])
15629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15634 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15635 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15638 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15639 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15640 # trailing colons and then remove the whole line if VPATH becomes empty
15641 # (actually we leave an empty line to preserve line numbers).
15642 if test "x$srcdir" = x.; then
15643 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15644 s/:*\$(srcdir):*/:/
15645 s/:*\${srcdir}:*/:/
15647 s/^\([^=]*=[ ]*\):*/\1/
15653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654 fi # test -n "$CONFIG_FILES"
15656 # Set up the scripts for CONFIG_HEADERS section.
15657 # No need to generate them if there are no CONFIG_HEADERS.
15658 # This happens for instance with `./config.status Makefile'.
15659 if test -n "$CONFIG_HEADERS"; then
15660 cat >"$tmp/defines.awk" <<\_ACAWK ||
15664 # Transform confdefs.h into an awk script `defines.awk', embedded as
15665 # here-document in config.status, that substitutes the proper values into
15666 # config.h.in to produce config.h.
15668 # Create a delimiter string that does not exist in confdefs.h, to ease
15669 # handling of long lines.
15671 for ac_last_try in false false :; do
15672 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15673 if test -z "$ac_t"; then
15675 elif $ac_last_try; then
15676 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15682 # For the awk script, D is an array of macro values keyed by name,
15683 # likewise P contains macro parameters if any. Preserve backslash
15684 # newline sequences.
15686 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15688 s/.\{148\}/&'"$ac_delim"'/g
15691 s/^[ ]*#[ ]*define[ ][ ]*/ /
15698 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15705 D["\1"]=" \3\\\\\\n"\\/p
15707 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15712 s/.\{148\}/&'"$ac_delim"'/g
15717 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15720 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15722 ' <confdefs.h | sed '
15723 s/'"$ac_delim"'/"\\\
15724 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15727 for (key in D) D_is_set[key] = 1
15730 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15732 split(line, arg, " ")
15733 if (arg[1] == "#") {
15737 defundef = substr(arg[1], 2)
15740 split(mac1, mac2, "(") #)
15742 prefix = substr(line, 1, index(line, defundef) - 1)
15743 if (D_is_set[macro]) {
15744 # Preserve the white space surrounding the "#".
15745 print prefix "define", macro P[macro] D[macro]
15748 # Replace #undef with comments. This is necessary, for example,
15749 # in the case of _POSIX_SOURCE, which is predefined and required
15750 # on some systems where configure will not decide to define it.
15751 if (defundef == "undef") {
15752 print "/*", prefix defundef, macro, "*/"
15760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15761 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15762 fi # test -n "$CONFIG_HEADERS"
15765 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15770 :[FHLC]) ac_mode=$ac_tag; continue;;
15772 case $ac_mode$ac_tag in
15774 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15775 :[FH]-) ac_tag=-:-;;
15776 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15793 -) ac_f="$tmp/stdin";;
15794 *) # Look for the file first in the build tree, then in the source tree
15795 # (if the path is not absolute). The absolute path cannot be DOS-style,
15796 # because $ac_f cannot contain `:'.
15800 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15802 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15804 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15805 as_fn_append ac_file_inputs " '$ac_f'"
15808 # Let's still pretend it is `configure' which instantiates (i.e., don't
15809 # use $as_me), people would be surprised to read:
15810 # /* config.h. Generated by config.status. */
15811 configure_input='Generated from '`
15812 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15814 if test x"$ac_file" != x-; then
15815 configure_input="$ac_file. $configure_input"
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15817 $as_echo "$as_me: creating $ac_file" >&6;}
15819 # Neutralize special characters interpreted by sed in replacement strings.
15820 case $configure_input in #(
15821 *\&* | *\|* | *\\* )
15822 ac_sed_conf_input=`$as_echo "$configure_input" |
15823 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15824 *) ac_sed_conf_input=$configure_input;;
15828 *:-:* | *:-) cat >"$tmp/stdin" \
15829 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15834 ac_dir=`$as_dirname -- "$ac_file" ||
15835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15836 X"$ac_file" : 'X\(//\)[^/]' \| \
15837 X"$ac_file" : 'X\(//\)$' \| \
15838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15839 $as_echo X"$ac_file" |
15840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15844 /^X\(\/\/\)[^/].*/{
15857 as_dir="$ac_dir"; as_fn_mkdir_p
15861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15863 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15864 # A ".." for each directory in $ac_dir_suffix.
15865 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15866 case $ac_top_builddir_sub in
15867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15871 ac_abs_top_builddir=$ac_pwd
15872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15873 # for backward compatibility:
15874 ac_top_builddir=$ac_top_build_prefix
15877 .) # We are building in place.
15879 ac_top_srcdir=$ac_top_builddir_sub
15880 ac_abs_top_srcdir=$ac_pwd ;;
15881 [\\/]* | ?:[\\/]* ) # Absolute name.
15882 ac_srcdir=$srcdir$ac_dir_suffix;
15883 ac_top_srcdir=$srcdir
15884 ac_abs_top_srcdir=$srcdir ;;
15885 *) # Relative name.
15886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15887 ac_top_srcdir=$ac_top_build_prefix$srcdir
15888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15901 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15903 ac_MKDIR_P=$MKDIR_P
15905 [\\/$]* | ?:[\\/]* ) ;;
15906 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15911 # If the template does not know about datarootdir, expand it.
15912 # FIXME: This hack should be removed a few years after 2.60.
15913 ac_datarootdir_hack=; ac_datarootdir_seen=
15924 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15925 *datarootdir*) ac_datarootdir_seen=yes;;
15926 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15928 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 ac_datarootdir_hack='
15932 s&@datadir@&$datadir&g
15933 s&@docdir@&$docdir&g
15934 s&@infodir@&$infodir&g
15935 s&@localedir@&$localedir&g
15936 s&@mandir@&$mandir&g
15937 s&\\\${datarootdir}&$datarootdir&g' ;;
15941 # Neutralize VPATH when `$srcdir' = `.'.
15942 # Shell code in configure.ac might set extrasub.
15943 # FIXME: do we really want to maintain this feature?
15944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15945 ac_sed_extra="$ac_vpsub
15948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15951 s|@configure_input@|$ac_sed_conf_input|;t t
15952 s&@top_builddir@&$ac_top_builddir_sub&;t t
15953 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15954 s&@srcdir@&$ac_srcdir&;t t
15955 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15956 s&@top_srcdir@&$ac_top_srcdir&;t t
15957 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15958 s&@builddir@&$ac_builddir&;t t
15959 s&@abs_builddir@&$ac_abs_builddir&;t t
15960 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15961 s&@INSTALL@&$ac_INSTALL&;t t
15962 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15963 $ac_datarootdir_hack
15965 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15966 || as_fn_error "could not create $ac_file" "$LINENO" 5
15968 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15969 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15970 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15972 which seems to be undefined. Please make sure it is defined." >&5
15973 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15974 which seems to be undefined. Please make sure it is defined." >&2;}
15978 -) cat "$tmp/out" && rm -f "$tmp/out";;
15979 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15981 || as_fn_error "could not create $ac_file" "$LINENO" 5
15987 if test x"$ac_file" != x-; then
15989 $as_echo "/* $configure_input */" \
15990 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15991 } >"$tmp/config.h" \
15992 || as_fn_error "could not create $ac_file" "$LINENO" 5
15993 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15995 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15998 mv "$tmp/config.h" "$ac_file" \
15999 || as_fn_error "could not create $ac_file" "$LINENO" 5
16002 $as_echo "/* $configure_input */" \
16003 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16004 || as_fn_error "could not create -" "$LINENO" 5
16006 # Compute "$ac_file"'s index in $config_headers.
16009 for _am_header in $config_headers :; do
16010 case $_am_header in
16011 $_am_arg | $_am_arg:* )
16014 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16017 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16018 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16019 X"$_am_arg" : 'X\(//\)[^/]' \| \
16020 X"$_am_arg" : 'X\(//\)$' \| \
16021 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16022 $as_echo X"$_am_arg" |
16023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16027 /^X\(\/\/\)[^/].*/{
16039 s/.*/./; q'`/stamp-h$_am_stamp_count
16042 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16043 $as_echo "$as_me: executing $ac_file commands" >&6;}
16048 case $ac_file$ac_mode in
16049 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16050 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16051 # are listed without --file. Let's play safe and only enable the eval
16052 # if we detect the quoting.
16053 case $CONFIG_FILES in
16054 *\'*) eval set x "$CONFIG_FILES" ;;
16055 *) set x $CONFIG_FILES ;;
16060 # Strip MF so we end up with the name of the file.
16061 mf=`echo "$mf" | sed -e 's/:.*$//'`
16062 # Check whether this is an Automake generated Makefile or not.
16063 # We used to match only the files named `Makefile.in', but
16064 # some people rename them; so instead we look at the file content.
16065 # Grep'ing the first line is not enough: some people post-process
16066 # each Makefile.in and add a new line on top of each file to say so.
16067 # Grep'ing the whole file is not good either: AIX grep has a line
16068 # limit of 2048, but all sed's we know have understand at least 4000.
16069 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16070 dirpart=`$as_dirname -- "$mf" ||
16071 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16072 X"$mf" : 'X\(//\)[^/]' \| \
16073 X"$mf" : 'X\(//\)$' \| \
16074 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16080 /^X\(\/\/\)[^/].*/{
16096 # Extract the definition of DEPDIR, am__include, and am__quote
16097 # from the Makefile without running `make'.
16098 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16099 test -z "$DEPDIR" && continue
16100 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16101 test -z "am__include" && continue
16102 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16103 # When using ansi2knr, U may be empty or an underscore; expand it
16104 U=`sed -n 's/^U = //p' < "$mf"`
16105 # Find all dependency output files, they are included files with
16106 # $(DEPDIR) in their names. We invoke sed twice because it is the
16107 # simplest approach to changing $(DEPDIR) to its actual value in the
16109 for file in `sed -n "
16110 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16111 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16112 # Make sure the directory exists.
16113 test -f "$dirpart/$file" && continue
16114 fdir=`$as_dirname -- "$file" ||
16115 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16116 X"$file" : 'X\(//\)[^/]' \| \
16117 X"$file" : 'X\(//\)$' \| \
16118 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16119 $as_echo X"$file" |
16120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16124 /^X\(\/\/\)[^/].*/{
16137 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16138 # echo "creating $dirpart/$file"
16139 echo '# dummy' > "$dirpart/$file"
16146 # See if we are running on zsh, and set the options which allow our
16147 # commands through without removal of \ escapes.
16148 if test -n "${ZSH_VERSION+set}" ; then
16149 setopt NO_GLOB_SUBST
16152 cfgfile="${ofile}T"
16153 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16156 cat <<_LT_EOF >> "$cfgfile"
16159 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16160 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16162 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16164 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16165 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16166 # Written by Gordon Matzigkeit, 1996
16168 # This file is part of GNU Libtool.
16170 # GNU Libtool is free software; you can redistribute it and/or
16171 # modify it under the terms of the GNU General Public License as
16172 # published by the Free Software Foundation; either version 2 of
16173 # the License, or (at your option) any later version.
16175 # As a special exception to the GNU General Public License,
16176 # if you distribute this file as part of a program or library that
16177 # is built using GNU Libtool, you may include this file under the
16178 # same distribution terms that you use for the rest of that program.
16180 # GNU Libtool is distributed in the hope that it will be useful,
16181 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16182 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16183 # GNU General Public License for more details.
16185 # You should have received a copy of the GNU General Public License
16186 # along with GNU Libtool; see the file COPYING. If not, a copy
16187 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16188 # obtained by writing to the Free Software Foundation, Inc.,
16189 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16192 # The names of the tagged configurations supported by this script.
16195 # ### BEGIN LIBTOOL CONFIG
16197 # Which release of libtool.m4 was used?
16198 macro_version=$macro_version
16199 macro_revision=$macro_revision
16201 # Whether or not to build shared libraries.
16202 build_libtool_libs=$enable_shared
16204 # Whether or not to build static libraries.
16205 build_old_libs=$enable_static
16207 # What type of objects to build.
16210 # Whether or not to optimize for fast installation.
16211 fast_install=$enable_fast_install
16213 # Shell to use when invoking shell scripts.
16216 # An echo program that protects backslashes.
16220 host_alias=$host_alias
16224 # The build system.
16225 build_alias=$build_alias
16229 # A sed program that does not truncate output.
16232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16233 Xsed="\$SED -e 1s/^X//"
16235 # A grep program that handles long lines.
16241 # A literal string matcher.
16244 # A BSD- or MS-compatible name lister.
16247 # Whether we need soft or hard links.
16250 # What is the maximum length of a command?
16251 max_cmd_len=$max_cmd_len
16253 # Object file suffix (normally "o").
16256 # Executable file suffix (normally "").
16259 # whether the shell understands "unset".
16262 # turn spaces into newlines.
16265 # turn newlines into spaces.
16268 # An object symbol dumper.
16269 OBJDUMP=$lt_OBJDUMP
16271 # Method to check whether dependent libraries are shared objects.
16272 deplibs_check_method=$lt_deplibs_check_method
16274 # Command to use when deplibs_check_method == "file_magic".
16275 file_magic_cmd=$lt_file_magic_cmd
16279 AR_FLAGS=$lt_AR_FLAGS
16281 # A symbol stripping program.
16284 # Commands used to install an old-style archive.
16286 old_postinstall_cmds=$lt_old_postinstall_cmds
16287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16289 # Whether to use a lock for old archive extraction.
16290 lock_old_archive_extraction=$lock_old_archive_extraction
16295 # LTCC compiler flags.
16296 LTCFLAGS=$lt_CFLAGS
16298 # Take the output of nm and produce a listing of raw symbols and C names.
16299 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16301 # Transform the output of nm in a proper C declaration.
16302 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16304 # Transform the output of nm in a C name address pair.
16305 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16307 # Transform the output of nm in a C name address pair when lib prefix is needed.
16308 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16310 # The name of the directory that contains temporary libtool files.
16313 # Used to examine libraries when file_magic_cmd begins with "file".
16314 MAGIC_CMD=$MAGIC_CMD
16316 # Must we lock files when doing compilation?
16317 need_locks=$lt_need_locks
16319 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16320 DSYMUTIL=$lt_DSYMUTIL
16322 # Tool to change global to local symbols on Mac OS X.
16325 # Tool to manipulate fat objects and archives on Mac OS X.
16328 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16331 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16332 OTOOL64=$lt_OTOOL64
16334 # Old archive suffix (normally "a").
16337 # Shared library suffix (normally ".so").
16338 shrext_cmds=$lt_shrext_cmds
16340 # The commands to extract the exported symbol list from a shared archive.
16341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16343 # Variables whose values should be saved in libtool wrapper scripts and
16344 # restored at link time.
16345 variables_saved_for_relink=$lt_variables_saved_for_relink
16347 # Do we need the "lib" prefix for modules?
16348 need_lib_prefix=$need_lib_prefix
16350 # Do we need a version for libraries?
16351 need_version=$need_version
16353 # Library versioning type.
16354 version_type=$version_type
16356 # Shared library runtime path variable.
16357 runpath_var=$runpath_var
16359 # Shared library path variable.
16360 shlibpath_var=$shlibpath_var
16362 # Is shlibpath searched before the hard-coded library search path?
16363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16365 # Format of library name prefix.
16366 libname_spec=$lt_libname_spec
16368 # List of archive names. First name is the real one, the rest are links.
16369 # The last name is the one that the linker finds with -lNAME
16370 library_names_spec=$lt_library_names_spec
16372 # The coded name of the library, if different from the real name.
16373 soname_spec=$lt_soname_spec
16375 # Permission mode override for installation of shared libraries.
16376 install_override_mode=$lt_install_override_mode
16378 # Command to use after installation of a shared archive.
16379 postinstall_cmds=$lt_postinstall_cmds
16381 # Command to use after uninstallation of a shared archive.
16382 postuninstall_cmds=$lt_postuninstall_cmds
16384 # Commands used to finish a libtool library installation in a directory.
16385 finish_cmds=$lt_finish_cmds
16387 # As "finish_cmds", except a single script fragment to be evaled but
16389 finish_eval=$lt_finish_eval
16391 # Whether we should hardcode library paths into libraries.
16392 hardcode_into_libs=$hardcode_into_libs
16394 # Compile-time system search path for libraries.
16395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16397 # Run-time system search path for libraries.
16398 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16400 # Whether dlopen is supported.
16401 dlopen_support=$enable_dlopen
16403 # Whether dlopen of programs is supported.
16404 dlopen_self=$enable_dlopen_self
16406 # Whether dlopen of statically linked programs is supported.
16407 dlopen_self_static=$enable_dlopen_self_static
16409 # Commands to strip libraries.
16410 old_striplib=$lt_old_striplib
16411 striplib=$lt_striplib
16414 # The linker used to build libraries.
16417 # How to create reloadable object files.
16418 reload_flag=$lt_reload_flag
16419 reload_cmds=$lt_reload_cmds
16421 # Commands used to build an old-style archive.
16422 old_archive_cmds=$lt_old_archive_cmds
16424 # A language specific compiler.
16427 # Is the compiler the GNU compiler?
16430 # Compiler flag to turn off builtin functions.
16431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16433 # How to pass a linker flag through the compiler.
16434 wl=$lt_lt_prog_compiler_wl
16436 # Additional compiler flags for building library objects.
16437 pic_flag=$lt_lt_prog_compiler_pic
16439 # Compiler flag to prevent dynamic linking.
16440 link_static_flag=$lt_lt_prog_compiler_static
16442 # Does compiler simultaneously support -c and -o options?
16443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16445 # Whether or not to add -lc for building shared libraries.
16446 build_libtool_need_lc=$archive_cmds_need_lc
16448 # Whether or not to disallow shared libs when runtime libs are static.
16449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16451 # Compiler flag to allow reflexive dlopens.
16452 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16454 # Compiler flag to generate shared objects directly from archives.
16455 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16457 # Whether the compiler copes with passing no objects directly.
16458 compiler_needs_object=$lt_compiler_needs_object
16460 # Create an old-style archive from a shared archive.
16461 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16463 # Create a temporary old-style archive to link instead of a shared archive.
16464 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16466 # Commands used to build a shared archive.
16467 archive_cmds=$lt_archive_cmds
16468 archive_expsym_cmds=$lt_archive_expsym_cmds
16470 # Commands used to build a loadable module if different from building
16471 # a shared archive.
16472 module_cmds=$lt_module_cmds
16473 module_expsym_cmds=$lt_module_expsym_cmds
16475 # Whether we are building with GNU ld or not.
16476 with_gnu_ld=$lt_with_gnu_ld
16478 # Flag that allows shared libraries with undefined symbols to be built.
16479 allow_undefined_flag=$lt_allow_undefined_flag
16481 # Flag that enforces no undefined symbols.
16482 no_undefined_flag=$lt_no_undefined_flag
16484 # Flag to hardcode \$libdir into a binary during linking.
16485 # This must work even if \$libdir does not exist
16486 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16488 # If ld is used when linking, flag to hardcode \$libdir into a binary
16489 # during linking. This must work even if \$libdir does not exist.
16490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16492 # Whether we need a single "-rpath" flag with a separated argument.
16493 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16495 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16496 # DIR into the resulting binary.
16497 hardcode_direct=$hardcode_direct
16499 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16500 # DIR into the resulting binary and the resulting library dependency is
16501 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16502 # library is relocated.
16503 hardcode_direct_absolute=$hardcode_direct_absolute
16505 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16506 # into the resulting binary.
16507 hardcode_minus_L=$hardcode_minus_L
16509 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16510 # into the resulting binary.
16511 hardcode_shlibpath_var=$hardcode_shlibpath_var
16513 # Set to "yes" if building a shared library automatically hardcodes DIR
16514 # into the library and all subsequent libraries and executables linked
16516 hardcode_automatic=$hardcode_automatic
16518 # Set to yes if linker adds runtime paths of dependent libraries
16519 # to runtime path list.
16520 inherit_rpath=$inherit_rpath
16522 # Whether libtool must link a program against all its dependency libraries.
16523 link_all_deplibs=$link_all_deplibs
16525 # Fix the shell variable \$srcfile for the compiler.
16526 fix_srcfile_path=$lt_fix_srcfile_path
16528 # Set to "yes" if exported symbols are required.
16529 always_export_symbols=$always_export_symbols
16531 # The commands to list exported symbols.
16532 export_symbols_cmds=$lt_export_symbols_cmds
16534 # Symbols that should not be listed in the preloaded symbols.
16535 exclude_expsyms=$lt_exclude_expsyms
16537 # Symbols that must always be exported.
16538 include_expsyms=$lt_include_expsyms
16540 # Commands necessary for linking programs (against libraries) with templates.
16541 prelink_cmds=$lt_prelink_cmds
16543 # Specify filename containing input files.
16544 file_list_spec=$lt_file_list_spec
16546 # How to hardcode a shared library path into an executable.
16547 hardcode_action=$hardcode_action
16549 # ### END LIBTOOL CONFIG
16555 cat <<\_LT_EOF >> "$cfgfile"
16556 # AIX sometimes has problems with the GCC collect2 program. For some
16557 # reason, if we set the COLLECT_NAMES environment variable, the problems
16558 # vanish in a puff of smoke.
16559 if test "X${COLLECT_NAMES+set}" != Xset; then
16561 export COLLECT_NAMES
16568 ltmain="$ac_aux_dir/ltmain.sh"
16571 # We use sed instead of cat because bash on DJGPP gets confused if
16572 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16573 # text mode, it properly converts lines to CR/LF. This bash problem
16574 # is reportedly fixed, but why not run on old versions too?
16575 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16576 || (rm -f "$cfgfile"; exit 1)
16580 cat << \_LT_EOF >> "$cfgfile"
16582 # func_dirname file append nondir_replacement
16583 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16584 # otherwise set result to NONDIR_REPLACEMENT.
16588 */*) func_dirname_result="${1%/*}${2}" ;;
16589 * ) func_dirname_result="${3}" ;;
16593 # func_basename file
16596 func_basename_result="${1##*/}"
16599 # func_dirname_and_basename file append nondir_replacement
16600 # perform func_basename and func_dirname in a single function
16602 # dirname: Compute the dirname of FILE. If nonempty,
16603 # add APPEND to the result, otherwise set result
16604 # to NONDIR_REPLACEMENT.
16605 # value returned in "$func_dirname_result"
16606 # basename: Compute filename of FILE.
16607 # value retuned in "$func_basename_result"
16608 # Implementation must be kept synchronized with func_dirname
16609 # and func_basename. For efficiency, we do not delegate to
16610 # those functions but instead duplicate the functionality here.
16611 func_dirname_and_basename ()
16614 */*) func_dirname_result="${1%/*}${2}" ;;
16615 * ) func_dirname_result="${3}" ;;
16617 func_basename_result="${1##*/}"
16620 # func_stripname prefix suffix name
16621 # strip PREFIX and SUFFIX off of NAME.
16622 # PREFIX and SUFFIX must not contain globbing or regex special
16623 # characters, hashes, percent signs, but SUFFIX may contain a leading
16624 # dot (in which case that matches only a dot).
16627 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16628 # positional parameters, so assign one to ordinary parameter first.
16629 func_stripname_result=${3}
16630 func_stripname_result=${func_stripname_result#"${1}"}
16631 func_stripname_result=${func_stripname_result%"${2}"}
16637 func_opt_split_opt=${1%%=*}
16638 func_opt_split_arg=${1#*=}
16645 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16646 *) func_lo2o_result=${1} ;;
16650 # func_xform libobj-or-source
16653 func_xform_result=${1%.*}.lo
16656 # func_arith arithmetic-term...
16659 func_arith_result=$(( $* ))
16663 # STRING may not start with a hyphen.
16666 func_len_result=${#1}
16671 *) # Bourne compatible functions.
16672 cat << \_LT_EOF >> "$cfgfile"
16674 # func_dirname file append nondir_replacement
16675 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16676 # otherwise set result to NONDIR_REPLACEMENT.
16679 # Extract subdirectory from the argument.
16680 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16681 if test "X$func_dirname_result" = "X${1}"; then
16682 func_dirname_result="${3}"
16684 func_dirname_result="$func_dirname_result${2}"
16688 # func_basename file
16691 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16695 # func_stripname prefix suffix name
16696 # strip PREFIX and SUFFIX off of NAME.
16697 # PREFIX and SUFFIX must not contain globbing or regex special
16698 # characters, hashes, percent signs, but SUFFIX may contain a leading
16699 # dot (in which case that matches only a dot).
16700 # func_strip_suffix prefix name
16704 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16705 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16710 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16711 my_sed_long_arg='1s/^-[^=]*=//'
16716 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16717 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16723 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16726 # func_xform libobj-or-source
16729 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16732 # func_arith arithmetic-term...
16735 func_arith_result=`expr "$@"`
16739 # STRING may not start with a hyphen.
16742 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16748 case $lt_shell_append in
16750 cat << \_LT_EOF >> "$cfgfile"
16752 # func_append var value
16753 # Append VALUE to the end of shell variable VAR.
16761 cat << \_LT_EOF >> "$cfgfile"
16763 # func_append var value
16764 # Append VALUE to the end of shell variable VAR.
16775 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16776 || (rm -f "$cfgfile"; exit 1)
16778 mv -f "$cfgfile" "$ofile" ||
16779 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16784 for ac_file in $CONFIG_FILES; do
16785 # Support "outfile[:infile[:infile...]]"
16787 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16789 # PO directories have a Makefile.in generated from Makefile.in.in.
16790 case "$ac_file" in */Makefile.in)
16791 # Adjust a relative srcdir.
16792 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16793 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16794 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16795 # In autoconf-2.13 it is called $ac_given_srcdir.
16796 # In autoconf-2.50 it is called $srcdir.
16797 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16798 case "$ac_given_srcdir" in
16799 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16800 /*) top_srcdir="$ac_given_srcdir" ;;
16801 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16803 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16804 rm -f "$ac_dir/POTFILES"
16805 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16806 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16807 POMAKEFILEDEPS="POTFILES.in"
16808 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16809 # on $ac_dir but don't depend on user-specified configuration
16811 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16812 # The LINGUAS file contains the set of available languages.
16813 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16814 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16816 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16817 # Hide the ALL_LINGUAS assigment from automake.
16818 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16819 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16821 # The set of available languages was given in configure.ac.
16822 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16824 case "$ac_given_srcdir" in
16826 *) srcdirpre='$(srcdir)/' ;;
16832 for lang in $ALL_LINGUAS; do
16833 POFILES="$POFILES $srcdirpre$lang.po"
16834 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16835 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16836 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16838 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16839 # environment variable.
16841 if test -n "$ALL_LINGUAS"; then
16842 for presentlang in $ALL_LINGUAS; do
16844 if test "%UNSET%" != "$LINGUAS"; then
16845 desiredlanguages="$LINGUAS"
16847 desiredlanguages="$ALL_LINGUAS"
16849 for desiredlang in $desiredlanguages; do
16850 # Use the presentlang catalog if desiredlang is
16851 # a. equal to presentlang, or
16852 # b. a variant of presentlang (because in this case,
16853 # presentlang can be used as a fallback for messages
16854 # which are not translated in the desiredlang catalog).
16855 case "$desiredlang" in
16856 "$presentlang"*) useit=yes;;
16859 if test $useit = yes; then
16860 INST_LINGUAS="$INST_LINGUAS $presentlang"
16865 if test -n "$INST_LINGUAS"; then
16866 for lang in $INST_LINGUAS; do
16867 CATALOGS="$CATALOGS $lang.gmo"
16870 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16871 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"
16872 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16873 if test -f "$f"; then
16875 *.orig | *.bak | *~) ;;
16876 *) cat "$f" >> "$ac_dir/Makefile" ;;
16884 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16885 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16886 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16887 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16888 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16889 if test "x$cgen_cpu_prefix" != x ; then
16890 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16899 ac_clean_files=$ac_clean_files_save
16901 test $ac_write_fail = 0 ||
16902 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16905 # configure is writing to config.log, and then calls config.status.
16906 # config.status does its own redirection, appending to config.log.
16907 # Unfortunately, on DOS this fails, as config.log is still kept open
16908 # by configure, so config.status won't be able to write to it; its
16909 # output is simply discarded. So we exec the FD to /dev/null,
16910 # effectively closing config.log, so it can be properly (re)opened and
16911 # appended to by config.status. When coming back to configure, we
16912 # need to make the FD available again.
16913 if test "$no_create" != yes; then
16915 ac_config_status_args=
16916 test "$silent" = yes &&
16917 ac_config_status_args="$ac_config_status_args --quiet"
16919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16922 # would make configure fail if this is the last instruction.
16923 $ac_cs_success || as_fn_exit $?
16925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16927 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}