2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for ld 2.26.51.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='ld 2.26.51'
564 ac_unique_file="ldmain.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
611 elf_plt_unwind_list_options
612 elf_shlib_list_options
615 enable_initfini_array
652 TARGET_SYSTEM_ROOT_DEFINE
682 MAINTAINER_MODE_FALSE
701 INSTALL_STRIP_PROGRAM
762 program_transform_name
773 ac_subst_files='TDIRS'
775 enable_option_checking
776 enable_dependency_tracking
777 enable_maintainer_mode
792 enable_compressed_debug_sections
794 enable_build_warnings
796 enable_initfini_array
798 ac_precious_vars='build_alias
815 # Initialize some variables set by options.
817 ac_init_version=false
818 ac_unrecognized_opts=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=no ;;
1180 # Obsolete; use --with-x.
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) as_fn_error "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information."
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error "missing argument to $ac_option"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1230 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1248 # Be sure to have absolute directory names.
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error "pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1354 \`configure' configures ld 2.26.51 to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 --target=TARGET configure for building compilers for TARGET [HOST]
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of ld 2.26.51:";;
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --disable-dependency-tracking speeds up one-time build
1434 --enable-dependency-tracking do not reject slow dependency extractors
1435 --enable-maintainer-mode enable make rules and dependencies not useful
1436 (and sometimes confusing) to the casual installer
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-plugins Enable support for plugins
1443 --disable-largefile omit support for large files
1444 --enable-targets alternative target configurations
1445 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1446 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1447 --enable-got=<type> GOT handling scheme (target, single, negative,
1449 --enable-compressed-debug-sections={all,ld,none}
1450 compress debug sections by default]
1451 --enable-werror treat compile warnings as errors
1452 --enable-build-warnings enable build-time compiler warnings
1453 --disable-nls do not use Native Language Support
1454 --disable-initfini-array do not use .init_array/.fini_array sections
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-lib-path=dir1:dir2... set default LIB_PATH
1463 --with-sysroot=DIR Search for usr/lib et al within DIR.
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1476 CXXCPP C++ preprocessor
1477 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1478 the first program found out of: `bison -y', `byacc', `yacc'.
1479 YFLAGS The list of arguments that will be passed by default to $YACC.
1480 This script will default YFLAGS to the empty string to avoid a
1481 default value of `-d' given by some make applications.
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1486 Report bugs to the package provider.
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1516 .) # We are building in place.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1549 ld configure 2.26.51
1550 generated by GNU Autoconf 2.64
1552 Copyright (C) 2009 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 } # ac_fn_c_try_compile
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 $as_test_x conftest$ac_exeext
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 } # ac_fn_c_try_link
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 } # ac_fn_cxx_try_compile
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } >/dev/null && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725 # the include files in INCLUDES and setting the cache variable VAR
1727 ac_fn_c_check_header_mongrel ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1740 # Is the header compilable?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742 $as_echo_n "checking $2 usability... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1751 ac_header_compiler=no
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755 $as_echo "$ac_header_compiler" >&6; }
1757 # Is the header present?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759 $as_echo_n "checking $2 presence... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1764 if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1767 ac_header_preproc=no
1769 rm -f conftest.err conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771 $as_echo "$ac_header_preproc" >&6; }
1773 # So? What about this header?
1774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1799 eval "$3=\$ac_header_compiler"
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 } # ac_fn_c_check_header_mongrel
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=$ac_status
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists and can be compiled using the include files in
1854 # INCLUDES, setting the cache variable VAR accordingly.
1855 ac_fn_c_check_header_compile ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1868 if ac_fn_c_try_compile "$LINENO"; then :
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_header_compile
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1905 # include <limits.h>
1907 # include <assert.h>
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1934 if ac_fn_c_try_link "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 } # ac_fn_c_check_func
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } >/dev/null && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984 } # ac_fn_cxx_try_cpp
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 $as_test_x conftest$ac_exeext
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_cxx_try_link
2032 # ac_fn_c_check_decl LINENO SYMBOL VAR
2033 # ------------------------------------
2034 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2035 ac_fn_c_check_decl ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2042 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 #ifndef $as_decl_name
2053 (void) $as_decl_use;
2055 (void) $as_decl_name;
2063 if ac_fn_c_try_compile "$LINENO"; then :
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075 } # ac_fn_c_check_decl
2077 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2078 # --------------------------------------------
2079 # Tries to find the compile-time value of EXPR in a program that includes
2080 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2082 ac_fn_c_compute_int ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if test "$cross_compiling" = yes; then
2086 # Depending upon the size, compute the lo and hi bounds.
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 static int test_array [1 - 2 * !(($2) >= 0)];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid; break
2119 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2120 if test $ac_lo -le $ac_mid; then
2124 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2135 static int test_array [1 - 2 * !(($2) < 0)];
2142 if ac_fn_c_try_compile "$LINENO"; then :
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2151 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_lo=$ac_mid; break
2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2162 if test $ac_mid -le $ac_hi; then
2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 # Binary search between lo and hi bounds.
2177 while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 if ac_fn_c_try_compile "$LINENO"; then :
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2207 static long int longval () { return $2; }
2208 static unsigned long int ulongval () { return $2; }
2215 FILE *f = fopen ("conftest.val", "w");
2220 long int i = longval ();
2223 fprintf (f, "%ld", i);
2227 unsigned long int i = ulongval ();
2230 fprintf (f, "%lu", i);
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2240 if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 } # ac_fn_c_compute_int
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2258 It was created by ld $as_me 2.26.51, which was
2259 generated by GNU Autoconf 2.64. Invocation command line was
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_must_keep_next=false
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2348 -* ) ac_must_keep_next=true ;;
2351 as_fn_append ac_configure_args " '$ac_arg'"
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2370 ## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##
2375 # The following way of writing the cache mishandles newlines in values,
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408 ## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 $as_echo "$ac_var='\''$ac_val'\''"
2423 if test -n "$ac_subst_files"; then
2425 ## ------------------- ##
2426 ## File substitutions. ##
2427 ## ------------------- ##
2430 for ac_var in $ac_subst_files
2432 eval ac_val=\$$ac_var
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 $as_echo "$ac_var='\''$ac_val'\''"
2441 if test -s confdefs.h; then
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2459 for ac_signal in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest* confdefs.h
2467 $as_echo "/* confdefs.h */" > confdefs.h
2469 # Predefined preprocessor variables.
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2500 if test -n "$CONFIG_SITE"; then
2501 ac_site_file1=$CONFIG_SITE
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 test "x$ac_site_file" = xNONE && continue
2512 if test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special
2522 # files actually), so we avoid doing that.
2523 if test -f "$cache_file"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 $as_echo "$as_me: creating cache $cache_file" >&6;}
2537 # Check that the precious variables saved in the cache have kept the same
2539 ac_cache_corrupted=false
2540 for ac_var in $ac_precious_vars; do
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 for ac_t in install-sh install.sh shtool; do
2613 if test -f "$ac_dir/$ac_t"; then
2615 ac_install_sh="$ac_aux_dir/$ac_t -c"
2620 if test -z "$ac_aux_dir"; then
2621 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633 # Make sure we can run config.sub.
2634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2635 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2638 $as_echo_n "checking build system type... " >&6; }
2639 if test "${ac_cv_build+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
2642 ac_build_alias=$build_alias
2643 test "x$ac_build_alias" = x &&
2644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2645 test "x$ac_build_alias" = x &&
2646 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2652 $as_echo "$ac_cv_build" >&6; }
2653 case $ac_cv_build in
2655 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2658 ac_save_IFS=$IFS; IFS='-'
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2672 $as_echo_n "checking host system type... " >&6; }
2673 if test "${ac_cv_host+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2676 if test "x$host_alias" = x; then
2677 ac_cv_host=$ac_cv_build
2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2685 $as_echo "$ac_cv_host" >&6; }
2688 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2691 ac_save_IFS=$IFS; IFS='-'
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2705 $as_echo_n "checking target system type... " >&6; }
2706 if test "${ac_cv_target+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2709 if test "x$target_alias" = x; then
2710 ac_cv_target=$ac_cv_host
2712 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2713 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2718 $as_echo "$ac_cv_target" >&6; }
2719 case $ac_cv_target in
2721 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2723 target=$ac_cv_target
2724 ac_save_IFS=$IFS; IFS='-'
2730 # Remember, the first character of IFS is used to create $*,
2731 # except with old shells:
2734 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2737 # The aliases save the names the user supplied, while $host etc.
2738 # will get canonicalized.
2739 test -n "$target_alias" &&
2740 test "$program_prefix$program_suffix$program_transform_name" = \
2742 program_prefix=${target_alias}-
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2788 if test -z "$ac_cv_prog_CC"; then
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_ac_ct_CC="gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2826 if test "x$ac_ct_CC" = x; then
2829 case $cross_compiling:$ac_tool_warned in
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2979 test -n "$CC" && break
2982 if test -z "$CC"; then
2984 for ac_prog in cl.exe
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3023 test -n "$ac_ct_CC" && break
3026 if test "x$ac_ct_CC" = x; then
3029 case $cross_compiling:$ac_tool_warned in
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details." "$LINENO" 5; }
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051 for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3061 if test -s conftest.err; then
3063 ... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3066 rm -f conftest.er1 conftest.err
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096 for ac_file in $ac_files
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 if { { ac_try="$ac_link_default"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3121 for ac_file in $ac_files ''
3123 test -f "$ac_file" || continue
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3128 # We found the default executable, but exeext='' is most
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152 $as_echo "$ac_file" >&6; }
3153 if test -z "$ac_file"; then :
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 { as_fn_set_status 77
3160 as_fn_error "C compiler cannot create executables
3161 See \`config.log' for more details." "$LINENO" 5; }; }
3163 ac_exeext=$ac_cv_exeext
3165 # Check that the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168 $as_echo_n "checking whether the C compiler works... " >&6; }
3169 # If not cross compiling, check that we can run a simple program.
3170 if test "$cross_compiling" != yes; then
3171 if { ac_try='./$ac_file'
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
3184 if test "$cross_compiling" = maybe; then
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." "$LINENO" 5; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205 $as_echo "$cross_compiling" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." "$LINENO" 5; }
3239 rm -f conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247 $as_echo_n "checking for suffix of object files... " >&6; }
3248 if test "${ac_cv_objext+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3262 rm -f conftest.o conftest.obj
3263 if { { ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compile") 2>&5
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error "cannot compute suffix of object files: cannot compile
3289 See \`config.log' for more details." "$LINENO" 5; }
3291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3294 $as_echo "$ac_cv_objext" >&6; }
3295 OBJEXT=$ac_cv_objext
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3316 if ac_fn_c_try_compile "$LINENO"; then :
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3326 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327 if test $ac_compiler_gnu = yes; then
3332 ac_test_CFLAGS=${CFLAGS+set}
3333 ac_save_CFLAGS=$CFLAGS
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3335 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3336 if test "${ac_cv_prog_cc_g+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 if ac_fn_c_try_compile "$LINENO"; then :
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3369 if ac_fn_c_try_compile "$LINENO"; then :
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3385 if ac_fn_c_try_compile "$LINENO"; then :
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3396 $as_echo "$ac_cv_prog_cc_g" >&6; }
3397 if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3406 if test "$GCC" = yes; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
3417 ac_cv_prog_cc_c89=no
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3423 #include <sys/types.h>
3424 #include <sys/stat.h>
3425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426 struct buf { int x; };
3427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428 static char *e (p, i)
3434 static char *f (char * (*g) (char **, int), char **p, ...)
3439 s = g (p, va_arg (v,int));
3444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445 function prototypes and stuff, but not '\xHH' hex character constants.
3446 These don't provoke an error unfortunately, instead are silently treated
3447 as 'x'. The following induces an error, until -std is added to get
3448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449 array size at least. It's necessary to write '\x00'==0 to get something
3450 that's true only with -std. */
3451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454 inside strings and character constants. */
3456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3458 int test (int i, double x);
3459 struct s1 {int (*f) (int a);};
3460 struct s2 {int (*f) (double a);};
3461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3475 CC="$ac_save_CC $ac_arg"
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_cv_prog_cc_c89=$ac_arg
3479 rm -f core conftest.err conftest.$ac_objext
3480 test "x$ac_cv_prog_cc_c89" != "xno" && break
3482 rm -f conftest.$ac_ext
3487 case "x$ac_cv_prog_cc_c89" in
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490 $as_echo "none needed" >&6; } ;;
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493 $as_echo "unsupported" >&6; } ;;
3495 CC="$CC $ac_cv_prog_cc_c89"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3499 if test "x$ac_cv_prog_cc_c89" != xno; then :
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3511 $as_echo_n "checking for library containing strerror... " >&6; }
3512 if test "${ac_cv_search_strerror+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 ac_func_search_save_LIBS=$LIBS
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3519 /* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
3534 for ac_lib in '' cposix; do
3535 if test -z "$ac_lib"; then
3536 ac_res="none required"
3539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3541 if ac_fn_c_try_link "$LINENO"; then :
3542 ac_cv_search_strerror=$ac_res
3544 rm -f core conftest.err conftest.$ac_objext \
3546 if test "${ac_cv_search_strerror+set}" = set; then :
3550 if test "${ac_cv_search_strerror+set}" = set; then :
3553 ac_cv_search_strerror=no
3556 LIBS=$ac_func_search_save_LIBS
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3559 $as_echo "$ac_cv_search_strerror" >&6; }
3560 ac_res=$ac_cv_search_strerror
3561 if test "$ac_res" != no; then :
3562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3567 am__api_version='1.11'
3569 # Find a good install program. We prefer a C program (faster),
3570 # so one script is as good as another. But avoid the broken or
3571 # incompatible versions:
3572 # SysV /etc/install, /usr/sbin/install
3573 # SunOS /usr/etc/install
3574 # IRIX /sbin/install
3576 # AmigaOS /C/install, which installs bootblocks on floppy discs
3577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580 # OS/2's system install, which has a completely different semantic
3581 # ./install, which can be erroneously created by make from ./install.sh.
3582 # Reject install programs that cannot install multiple files.
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3584 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3595 case $as_dir/ in #((
3596 ./ | .// | /[cC]/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3638 rm -rf conftest.one conftest.two conftest.dir
3641 if test "${ac_cv_path_install+set}" = set; then
3642 INSTALL=$ac_cv_path_install
3644 # As a last resort, use the slow shell script. Don't cache a
3645 # value for INSTALL within a source directory, because that will
3646 # break other packages using the cache if that directory is
3647 # removed, or if the value is a relative name.
3648 INSTALL=$ac_install_sh
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3652 $as_echo "$INSTALL" >&6; }
3654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3655 # It thinks the first close brace ends the variable substitution.
3656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3663 $as_echo_n "checking whether build environment is sane... " >&6; }
3666 echo timestamp > conftest.file
3667 # Reject unsafe characters in $srcdir or the absolute working directory
3668 # name. Accept space and tab only in the latter.
3672 *[\\\"\#\$\&\'\`$am_lf]*)
3673 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3677 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3680 # Do `set' in a subshell so we don't clobber the current shell's
3681 # arguments. Must try -L first in case configure is actually a
3682 # symlink; some systems play weird games with the mod time of symlinks
3683 # (eg FreeBSD returns the mod time of the symlink's containing
3686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3687 if test "$*" = "X"; then
3689 set X `ls -t "$srcdir/configure" conftest.file`
3692 if test "$*" != "X $srcdir/configure conftest.file" \
3693 && test "$*" != "X conftest.file $srcdir/configure"; then
3695 # If neither matched, then we have a broken ls. This can happen
3696 # if, for instance, CONFIG_SHELL is bash and it inherits a
3697 # broken ls alias from the environment. This has actually
3698 # happened. Such a system could not be considered "sane".
3699 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3700 alias in your environment" "$LINENO" 5
3703 test "$2" = conftest.file
3709 as_fn_error "newly created file is older than distributed files!
3710 Check your system clock" "$LINENO" 5
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3714 test "$program_prefix" != NONE &&
3715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3716 # Use a double $ so make ignores it.
3717 test "$program_suffix" != NONE &&
3718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3719 # Double any \ or $.
3720 # By default was `s,x,x', remove it if useless.
3721 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3722 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3724 # expand $ac_aux_dir to an absolute path
3725 am_aux_dir=`cd $ac_aux_dir && pwd`
3727 if test x"${MISSING+set}" != xset; then
3730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3732 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3735 # Use eval to expand $SHELL
3736 if eval "$MISSING --run true"; then
3737 am_missing_run="$MISSING --run "
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3741 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3744 if test x"${install_sh}" != xset; then
3747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3749 install_sh="\${SHELL} $am_aux_dir/install-sh"
3753 # Installed binaries are usually stripped using `strip' when the user
3754 # run `make install-strip'. However `strip' might not be the right
3755 # tool to use in cross-compilation environments, therefore Automake
3756 # will honor the `STRIP' environment variable to overrule this program.
3757 if test "$cross_compiling" != no; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}strip; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_STRIP+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$STRIP"; then
3767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 STRIP=$ac_cv_prog_STRIP
3787 if test -n "$STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3789 $as_echo "$STRIP" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3797 if test -z "$ac_cv_prog_STRIP"; then
3799 # Extract the first word of "strip", so it can be a program name with args.
3800 set dummy strip; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -n "$ac_ct_STRIP"; then
3807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_STRIP="strip"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3827 if test -n "$ac_ct_STRIP"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3829 $as_echo "$ac_ct_STRIP" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3835 if test "x$ac_ct_STRIP" = x; then
3838 case $cross_compiling:$ac_tool_warned in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3847 STRIP="$ac_cv_prog_STRIP"
3851 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3854 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3855 if test -z "$MKDIR_P"; then
3856 if test "${ac_cv_path_mkdir+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in mkdir gmkdir; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3868 'mkdir (GNU coreutils) '* | \
3869 'mkdir (coreutils) '* | \
3870 'mkdir (fileutils) '4.1*)
3871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3881 if test "${ac_cv_path_mkdir+set}" = set; then
3882 MKDIR_P="$ac_cv_path_mkdir -p"
3884 # As a last resort, use the slow shell script. Don't cache a
3885 # value for MKDIR_P within a source directory, because that will
3886 # break other packages using the cache if that directory is
3887 # removed, or if the value is a relative name.
3888 test -d ./--version && rmdir ./--version
3889 MKDIR_P="$ac_install_sh -d"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3893 $as_echo "$MKDIR_P" >&6; }
3897 [\\/$]* | ?:[\\/]*) ;;
3898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3901 for ac_prog in gawk mawk nawk awk
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_AWK+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3910 if test -n "$AWK"; then
3911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_AWK="$ac_prog"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 if test -n "$AWK"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3933 $as_echo "$AWK" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3940 test -n "$AWK" && break
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3946 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3947 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3948 $as_echo_n "(cached) " >&6
3950 cat >conftest.make <<\_ACEOF
3953 @echo '@@@%%%=$(MAKE)=@@@%%%'
3955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3958 eval ac_cv_prog_make_${ac_make}_set=yes;;
3960 eval ac_cv_prog_make_${ac_make}_set=no;;
3964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 SET_MAKE="MAKE=${MAKE-make}"
3974 rm -rf .tst 2>/dev/null
3975 mkdir .tst 2>/dev/null
3976 if test -d .tst; then
3981 rmdir .tst 2>/dev/null
3983 DEPDIR="${am__leading_dot}deps"
3985 ac_config_commands="$ac_config_commands depfiles"
3988 am_make=${MAKE-make}
3989 cat > confinc << 'END'
3991 @echo this is the am__doit target
3994 # If we don't find an include directive, just comment out the code.
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3996 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4000 # First try GNU make style include.
4001 echo "include confinc" > confmf
4002 # Ignore all kinds of additional output from `make'.
4003 case `$am_make -s -f confmf 2> /dev/null` in #(
4004 *the\ am__doit\ target*)
4010 # Now try BSD make style include.
4011 if test "$am__include" = "#"; then
4012 echo '.include "confinc"' > confmf
4013 case `$am_make -s -f confmf 2> /dev/null` in #(
4014 *the\ am__doit\ target*)
4015 am__include=.include
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4024 $as_echo "$_am_result" >&6; }
4025 rm -f confinc confmf
4027 # Check whether --enable-dependency-tracking was given.
4028 if test "${enable_dependency_tracking+set}" = set; then :
4029 enableval=$enable_dependency_tracking;
4032 if test "x$enable_dependency_tracking" != xno; then
4033 am_depcomp="$ac_aux_dir/depcomp"
4036 if test "x$enable_dependency_tracking" != xno; then
4045 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4046 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4047 # is not polluted with repeated "-I."
4048 am__isrc=' -I$(srcdir)'
4049 # test to see if srcdir already configured
4050 if test -f $srcdir/config.status; then
4051 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4055 # test whether we have cygpath
4056 if test -z "$CYGPATH_W"; then
4057 if (cygpath --version) >/dev/null 2>/dev/null; then
4058 CYGPATH_W='cygpath -w'
4065 # Define the identity of the package.
4070 cat >>confdefs.h <<_ACEOF
4071 #define PACKAGE "$PACKAGE"
4075 cat >>confdefs.h <<_ACEOF
4076 #define VERSION "$VERSION"
4079 # Some tools Automake needs.
4081 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4084 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4087 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4090 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4093 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4095 # We need awk for the "check" target. The system "awk" is bad on
4097 # Always define AMTAR for backward compatibility.
4099 AMTAR=${AMTAR-"${am_missing_run}tar"}
4101 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4106 depcc="$CC" am_compiler_list=
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4109 $as_echo_n "checking dependency style of $depcc... " >&6; }
4110 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4114 # We make a subdir and do the tests there. Otherwise we can end up
4115 # making bogus files that we don't know about and never remove. For
4116 # instance it was reported that on HP-UX the gcc test will end up
4117 # making a dummy file named `D' -- because `-MD' means `put the output
4120 # Copy depcomp to subdir because otherwise we won't find it if we're
4121 # using a relative directory.
4122 cp "$am_depcomp" conftest.dir
4124 # We will build objects and dependencies in a subdirectory because
4125 # it helps to detect inapplicable dependency modes. For instance
4126 # both Tru64's cc and ICC support -MD to output dependencies as a
4127 # side effect of compilation, but ICC will put the dependencies in
4128 # the current directory while Tru64 will put them in the object
4132 am_cv_CC_dependencies_compiler_type=none
4133 if test "$am_compiler_list" = ""; then
4134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137 case " $depcc " in #(
4138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141 for depmode in $am_compiler_list; do
4142 # Setup a source with many dependencies, because some compilers
4143 # like to wrap large dependency lists on column 80 (with \), and
4144 # we should not choose a depcomp mode which is confused by this.
4146 # We need to recreate these files for each test, as the compiler may
4147 # overwrite some of them when testing with obscure command lines.
4148 # This happens at least with the AIX C compiler.
4150 for i in 1 2 3 4 5 6; do
4151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4153 # Solaris 8's {/usr,}/bin/sh.
4154 touch sub/conftst$i.h
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4158 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4159 # mode. It turns out that the SunPro C++ compiler does not properly
4160 # handle `-M -o', and we need to detect this. Also, some Intel
4161 # versions had trouble with output in subdirs
4162 am__obj=sub/conftest.${OBJEXT-o}
4163 am__minus_obj="-o $am__obj"
4166 # This depmode causes a compiler race in universal mode.
4167 test "$am__universal" = false || continue
4170 # after this tag, mechanisms are not by side-effect, so they'll
4171 # only be used when explicitly requested
4172 if test "x$enable_dependency_tracking" = xyes; then
4178 msvisualcpp | msvcmsys)
4179 # This compiler won't grok `-c -o', but also, the minuso test has
4180 # not run yet. These depmodes are late enough in the game, and
4181 # so weak that their functioning should not be impacted.
4182 am__obj=conftest.${OBJEXT-o}
4187 if depmode=$depmode \
4188 source=sub/conftest.c object=$am__obj \
4189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191 >/dev/null 2>conftest.err &&
4192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196 # icc doesn't choke on unknown options, it will just issue warnings
4197 # or remarks (even with -Werror). So we grep stderr for any message
4198 # that says an option was ignored or not supported.
4199 # When given -MP, icc 7.0 and 7.1 complain thusly:
4200 # icc: Command line warning: ignoring option '-M'; no argument required
4201 # The diagnosis changed in icc 8.0:
4202 # icc: Command line remark: option '-MP' not supported
4203 if (grep 'ignoring option' conftest.err ||
4204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205 am_cv_CC_dependencies_compiler_type=$depmode
4214 am_cv_CC_dependencies_compiler_type=none
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4223 test "x$enable_dependency_tracking" != xno \
4224 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4226 am__fastdepCC_FALSE='#'
4228 am__fastdepCC_TRUE='#'
4229 am__fastdepCC_FALSE=
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4236 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4237 # Check whether --enable-maintainer-mode was given.
4238 if test "${enable_maintainer_mode+set}" = set; then :
4239 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4241 USE_MAINTAINER_MODE=no
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4245 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4246 if test $USE_MAINTAINER_MODE = yes; then
4247 MAINTAINER_MODE_TRUE=
4248 MAINTAINER_MODE_FALSE='#'
4250 MAINTAINER_MODE_TRUE='#'
4251 MAINTAINER_MODE_FALSE=
4254 MAINT=$MAINTAINER_MODE_TRUE
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 if test -n "$CC"; then
4272 ac_cv_prog_CC="$CC" # Let the user override the test.
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 if test -n "$CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294 $as_echo "$CC" >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4302 if test -z "$ac_cv_prog_CC"; then
4304 # Extract the first word of "gcc", so it can be a program name with args.
4305 set dummy gcc; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 if test -n "$ac_ct_CC"; then
4312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_CC="gcc"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4332 if test -n "$ac_ct_CC"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4334 $as_echo "$ac_ct_CC" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4340 if test "x$ac_ct_CC" = x; then
4343 case $cross_compiling:$ac_tool_warned in
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347 ac_tool_warned=yes ;;
4355 if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4358 set dummy ${ac_tool_prefix}cc; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_CC+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_CC="${ac_tool_prefix}cc"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 if test -n "$CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387 $as_echo "$CC" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4396 if test -z "$CC"; then
4397 # Extract the first word of "cc", so it can be a program name with args.
4398 set dummy cc; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_CC+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4404 if test -n "$CC"; then
4405 ac_cv_prog_CC="$CC" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4416 ac_prog_rejected=yes
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 if test $ac_prog_rejected = yes; then
4428 # We found a bogon in the path, so make sure we never use it.
4429 set dummy $ac_cv_prog_CC
4431 if test $# != 0; then
4432 # We chose a different compiler from the bogus one.
4433 # However, it has the same basename, so the bogon will be chosen
4434 # first if we set CC to just the basename; use the full file name.
4436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4442 if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 $as_echo "$CC" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4452 if test -z "$CC"; then
4453 if test -n "$ac_tool_prefix"; then
4454 for ac_prog in cl.exe
4456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if test "${ac_cv_prog_CC+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$CC"; then
4464 ac_cv_prog_CC="$CC" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test -n "$CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486 $as_echo "$CC" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$CC" && break
4496 if test -z "$CC"; then
4498 for ac_prog in cl.exe
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -n "$ac_ct_CC"; then
4508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_ac_ct_CC="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4528 if test -n "$ac_ct_CC"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4530 $as_echo "$ac_ct_CC" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$ac_ct_CC" && break
4540 if test "x$ac_ct_CC" = x; then
4543 case $cross_compiling:$ac_tool_warned in
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4558 as_fn_error "no acceptable C compiler found in \$PATH
4559 See \`config.log' for more details." "$LINENO" 5; }
4561 # Provide some information about the compiler.
4562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4565 for ac_option in --version -v -V -qversion; do
4566 { { ac_try="$ac_compiler $ac_option >&5"
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4575 if test -s conftest.err; then
4577 ... rest of stderr output deleted ...
4578 10q' conftest.err >conftest.er1
4579 cat conftest.er1 >&5
4580 rm -f conftest.er1 conftest.err
4582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4583 test $ac_status = 0; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4587 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4588 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4605 if ac_fn_c_try_compile "$LINENO"; then :
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4615 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4616 if test $ac_compiler_gnu = yes; then
4621 ac_test_CFLAGS=${CFLAGS+set}
4622 ac_save_CFLAGS=$CFLAGS
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4624 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4625 if test "${ac_cv_prog_cc_g+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4628 ac_save_c_werror_flag=$ac_c_werror_flag
4629 ac_c_werror_flag=yes
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4643 if ac_fn_c_try_compile "$LINENO"; then :
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4658 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_c_werror_flag=$ac_save_c_werror_flag
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4674 if ac_fn_c_try_compile "$LINENO"; then :
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4685 $as_echo "$ac_cv_prog_cc_g" >&6; }
4686 if test "$ac_test_CFLAGS" = set; then
4687 CFLAGS=$ac_save_CFLAGS
4688 elif test $ac_cv_prog_cc_g = yes; then
4689 if test "$GCC" = yes; then
4695 if test "$GCC" = yes; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4702 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4703 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 ac_cv_prog_cc_c89=no
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4712 #include <sys/types.h>
4713 #include <sys/stat.h>
4714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4715 struct buf { int x; };
4716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4717 static char *e (p, i)
4723 static char *f (char * (*g) (char **, int), char **p, ...)
4728 s = g (p, va_arg (v,int));
4733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4734 function prototypes and stuff, but not '\xHH' hex character constants.
4735 These don't provoke an error unfortunately, instead are silently treated
4736 as 'x'. The following induces an error, until -std is added to get
4737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4738 array size at least. It's necessary to write '\x00'==0 to get something
4739 that's true only with -std. */
4740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4743 inside strings and character constants. */
4745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4747 int test (int i, double x);
4748 struct s1 {int (*f) (int a);};
4749 struct s2 {int (*f) (double a);};
4750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4764 CC="$ac_save_CC $ac_arg"
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 ac_cv_prog_cc_c89=$ac_arg
4768 rm -f core conftest.err conftest.$ac_objext
4769 test "x$ac_cv_prog_cc_c89" != "xno" && break
4771 rm -f conftest.$ac_ext
4776 case "x$ac_cv_prog_cc_c89" in
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779 $as_echo "none needed" >&6; } ;;
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4782 $as_echo "unsupported" >&6; } ;;
4784 CC="$CC $ac_cv_prog_cc_c89"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4788 if test "x$ac_cv_prog_cc_c89" != xno; then :
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 ac_cpp='$CXXCPP $CPPFLAGS'
4800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4803 if test -z "$CXX"; then
4804 if test -n "$CCC"; then
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CXX+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 if test -n "$CXX"; then
4818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 if test -n "$CXX"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4840 $as_echo "$CXX" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$CXX" && break
4850 if test -z "$CXX"; then
4852 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$ac_ct_CXX"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CXX="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4882 if test -n "$ac_ct_CXX"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4884 $as_echo "$ac_ct_CXX" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 test -n "$ac_ct_CXX" && break
4894 if test "x$ac_ct_CXX" = x; then
4897 case $cross_compiling:$ac_tool_warned in
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4913 for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4923 if test -s conftest.err; then
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4928 rm -f conftest.er1 conftest.err
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4935 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4936 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4953 if ac_fn_cxx_try_compile "$LINENO"; then :
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4963 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4964 if test $ac_compiler_gnu = yes; then
4969 ac_test_CXXFLAGS=${CXXFLAGS+set}
4970 ac_save_CXXFLAGS=$CXXFLAGS
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4972 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4973 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4977 ac_cxx_werror_flag=yes
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4991 if ac_fn_cxx_try_compile "$LINENO"; then :
4992 ac_cv_prog_cxx_g=yes
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
5006 if ac_fn_cxx_try_compile "$LINENO"; then :
5009 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5022 if ac_fn_cxx_try_compile "$LINENO"; then :
5023 ac_cv_prog_cxx_g=yes
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5033 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5034 if test "$ac_test_CXXFLAGS" = set; then
5035 CXXFLAGS=$ac_save_CXXFLAGS
5036 elif test $ac_cv_prog_cxx_g = yes; then
5037 if test "$GXX" = yes; then
5043 if test "$GXX" = yes; then
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 depcc="$CXX" am_compiler_list=
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5058 $as_echo_n "checking dependency style of $depcc... " >&6; }
5059 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5063 # We make a subdir and do the tests there. Otherwise we can end up
5064 # making bogus files that we don't know about and never remove. For
5065 # instance it was reported that on HP-UX the gcc test will end up
5066 # making a dummy file named `D' -- because `-MD' means `put the output
5069 # Copy depcomp to subdir because otherwise we won't find it if we're
5070 # using a relative directory.
5071 cp "$am_depcomp" conftest.dir
5073 # We will build objects and dependencies in a subdirectory because
5074 # it helps to detect inapplicable dependency modes. For instance
5075 # both Tru64's cc and ICC support -MD to output dependencies as a
5076 # side effect of compilation, but ICC will put the dependencies in
5077 # the current directory while Tru64 will put them in the object
5081 am_cv_CXX_dependencies_compiler_type=none
5082 if test "$am_compiler_list" = ""; then
5083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5086 case " $depcc " in #(
5087 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5090 for depmode in $am_compiler_list; do
5091 # Setup a source with many dependencies, because some compilers
5092 # like to wrap large dependency lists on column 80 (with \), and
5093 # we should not choose a depcomp mode which is confused by this.
5095 # We need to recreate these files for each test, as the compiler may
5096 # overwrite some of them when testing with obscure command lines.
5097 # This happens at least with the AIX C compiler.
5099 for i in 1 2 3 4 5 6; do
5100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5101 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5102 # Solaris 8's {/usr,}/bin/sh.
5103 touch sub/conftst$i.h
5105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5107 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5108 # mode. It turns out that the SunPro C++ compiler does not properly
5109 # handle `-M -o', and we need to detect this. Also, some Intel
5110 # versions had trouble with output in subdirs
5111 am__obj=sub/conftest.${OBJEXT-o}
5112 am__minus_obj="-o $am__obj"
5115 # This depmode causes a compiler race in universal mode.
5116 test "$am__universal" = false || continue
5119 # after this tag, mechanisms are not by side-effect, so they'll
5120 # only be used when explicitly requested
5121 if test "x$enable_dependency_tracking" = xyes; then
5127 msvisualcpp | msvcmsys)
5128 # This compiler won't grok `-c -o', but also, the minuso test has
5129 # not run yet. These depmodes are late enough in the game, and
5130 # so weak that their functioning should not be impacted.
5131 am__obj=conftest.${OBJEXT-o}
5136 if depmode=$depmode \
5137 source=sub/conftest.c object=$am__obj \
5138 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5139 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5140 >/dev/null 2>conftest.err &&
5141 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5143 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5145 # icc doesn't choke on unknown options, it will just issue warnings
5146 # or remarks (even with -Werror). So we grep stderr for any message
5147 # that says an option was ignored or not supported.
5148 # When given -MP, icc 7.0 and 7.1 complain thusly:
5149 # icc: Command line warning: ignoring option '-M'; no argument required
5150 # The diagnosis changed in icc 8.0:
5151 # icc: Command line remark: option '-MP' not supported
5152 if (grep 'ignoring option' conftest.err ||
5153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5154 am_cv_CXX_dependencies_compiler_type=$depmode
5163 am_cv_CXX_dependencies_compiler_type=none
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5168 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5172 test "x$enable_dependency_tracking" != xno \
5173 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5174 am__fastdepCXX_TRUE=
5175 am__fastdepCXX_FALSE='#'
5177 am__fastdepCXX_TRUE='#'
5178 am__fastdepCXX_FALSE=
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5183 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5184 if test "${ac_cv_path_GREP+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -z "$GREP"; then
5188 ac_path_GREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in grep ggrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199 # Check for GNU ac_path_GREP and select it if it is found.
5200 # Check for GNU $ac_path_GREP
5201 case `"$ac_path_GREP" --version 2>&1` in
5203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5206 $as_echo_n 0123456789 >"conftest.in"
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo 'GREP' >> "conftest.nl"
5213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_GREP="$ac_path_GREP"
5219 ac_path_GREP_max=$ac_count
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227 $ac_path_GREP_found && break 3
5232 if test -z "$ac_cv_path_GREP"; then
5233 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5236 ac_cv_path_GREP=$GREP
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5241 $as_echo "$ac_cv_path_GREP" >&6; }
5242 GREP="$ac_cv_path_GREP"
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5251 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5252 # On Suns, sometimes $CPP names a directory.
5253 if test -n "$CPP" && test -d "$CPP"; then
5256 if test -z "$CPP"; then
5257 if test "${ac_cv_prog_CPP+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5260 # Double quotes because CPP needs to be expanded
5261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5264 for ac_c_preproc_warn_flag in '' yes
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5275 # include <limits.h>
5277 # include <assert.h>
5281 if ac_fn_c_try_cpp "$LINENO"; then :
5284 # Broken: fails on valid input.
5287 rm -f conftest.err conftest.$ac_ext
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <ac_nonexistent.h>
5295 if ac_fn_c_try_cpp "$LINENO"; then :
5296 # Broken: success on invalid input.
5299 # Passes both tests.
5303 rm -f conftest.err conftest.$ac_ext
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then :
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5321 $as_echo "$CPP" >&6; }
5323 for ac_c_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 # include <limits.h>
5336 # include <assert.h>
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5343 # Broken: fails on valid input.
5346 rm -f conftest.err conftest.$ac_ext
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355 # Broken: success on invalid input.
5358 # Passes both tests.
5362 rm -f conftest.err conftest.$ac_ext
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5372 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5373 See \`config.log' for more details." "$LINENO" 5; }
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5384 $as_echo_n "checking for egrep... " >&6; }
5385 if test "${ac_cv_path_EGREP+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5389 then ac_cv_path_EGREP="$GREP -E"
5391 if test -z "$EGREP"; then
5392 ac_path_EGREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5398 test -z "$as_dir" && as_dir=.
5399 for ac_prog in egrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5403 # Check for GNU ac_path_EGREP and select it if it is found.
5404 # Check for GNU $ac_path_EGREP
5405 case `"$ac_path_EGREP" --version 2>&1` in
5407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5410 $as_echo_n 0123456789 >"conftest.in"
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'EGREP' >> "conftest.nl"
5417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_EGREP="$ac_path_EGREP"
5423 ac_path_EGREP_max=$ac_count
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431 $ac_path_EGREP_found && break 3
5436 if test -z "$ac_cv_path_EGREP"; then
5437 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440 ac_cv_path_EGREP=$EGREP
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5446 $as_echo "$ac_cv_path_EGREP" >&6; }
5447 EGREP="$ac_cv_path_EGREP"
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5451 $as_echo_n "checking for ANSI C header files... " >&6; }
5452 if test "${ac_cv_header_stdc+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_header_stdc=yes
5473 ac_cv_header_stdc=no
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 if test $ac_cv_header_stdc = yes; then
5478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5485 $EGREP "memchr" >/dev/null 2>&1; then :
5488 ac_cv_header_stdc=no
5494 if test $ac_cv_header_stdc = yes; then
5495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 $EGREP "free" >/dev/null 2>&1; then :
5505 ac_cv_header_stdc=no
5511 if test $ac_cv_header_stdc = yes; then
5512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5513 if test "$cross_compiling" = yes; then :
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5520 #if ((' ' & 0x0FF) == 0x020)
5521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5524 # define ISLOWER(c) \
5525 (('a' <= (c) && (c) <= 'i') \
5526 || ('j' <= (c) && (c) <= 'r') \
5527 || ('s' <= (c) && (c) <= 'z'))
5528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5536 for (i = 0; i < 256; i++)
5537 if (XOR (islower (i), ISLOWER (i))
5538 || toupper (i) != TOUPPER (i))
5543 if ac_fn_c_try_run "$LINENO"; then :
5546 ac_cv_header_stdc=no
5548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5549 conftest.$ac_objext conftest.beam conftest.$ac_ext
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5555 $as_echo "$ac_cv_header_stdc" >&6; }
5556 if test $ac_cv_header_stdc = yes; then
5558 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5564 inttypes.h stdint.h unistd.h
5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5569 eval as_val=\$$as_ac_Header
5570 if test "x$as_val" = x""yes; then :
5571 cat >>confdefs.h <<_ACEOF
5572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5582 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5589 if test "$MINIX" = yes; then
5591 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5594 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5597 $as_echo "#define _MINIX 1" >>confdefs.h
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5603 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5604 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5610 # define __EXTENSIONS__ 1
5611 $ac_includes_default
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_safe_to_define___extensions__=yes
5623 ac_cv_safe_to_define___extensions__=no
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5628 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5629 test $ac_cv_safe_to_define___extensions__ = yes &&
5630 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5632 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5634 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5636 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5638 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5648 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5653 macro_version='2.2.7a'
5654 macro_revision='1.3134'
5668 ltmain="$ac_aux_dir/ltmain.sh"
5670 # Backslashify metacharacters that are still active within
5671 # double-quoted strings.
5672 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5674 # Same as above, but do not quote variable references.
5675 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5677 # Sed substitution to delay expansion of an escaped shell variable in a
5678 # double_quote_subst'ed string.
5679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5681 # Sed substitution to delay expansion of an escaped single quote.
5682 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5684 # Sed substitution to avoid accidental globbing in evaled expressions
5685 no_glob_subst='s/\*/\\\*/g'
5687 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5688 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5689 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5692 $as_echo_n "checking how to print strings... " >&6; }
5693 # Test print first, because it will be a builtin if present.
5694 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5695 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5697 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5700 # Use this function as a fallback that always works.
5701 func_fallback_echo ()
5703 eval 'cat <<_LTECHO_EOF
5707 ECHO='func_fallback_echo'
5710 # func_echo_all arg...
5711 # Invoke $ECHO with all args, space-separated.
5718 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5719 $as_echo "printf" >&6; } ;;
5720 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5721 $as_echo "print -r" >&6; } ;;
5722 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5723 $as_echo "cat" >&6; } ;;
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5740 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5741 if test "${ac_cv_path_SED+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5745 for ac_i in 1 2 3 4 5 6 7; do
5746 ac_script="$ac_script$as_nl$ac_script"
5748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5749 { ac_script=; unset ac_script;}
5750 if test -z "$SED"; then
5751 ac_path_SED_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_prog in sed gsed; do
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5761 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5762 # Check for GNU ac_path_SED and select it if it is found.
5763 # Check for GNU $ac_path_SED
5764 case `"$ac_path_SED" --version 2>&1` in
5766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5769 $as_echo_n 0123456789 >"conftest.in"
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo '' >> "conftest.nl"
5776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_SED_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_SED="$ac_path_SED"
5782 ac_path_SED_max=$ac_count
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5790 $ac_path_SED_found && break 3
5795 if test -z "$ac_cv_path_SED"; then
5796 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5804 $as_echo "$ac_cv_path_SED" >&6; }
5805 SED="$ac_cv_path_SED"
5808 test -z "$SED" && SED=sed
5809 Xsed="$SED -e 1s/^X//"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5822 $as_echo_n "checking for fgrep... " >&6; }
5823 if test "${ac_cv_path_FGREP+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5826 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5827 then ac_cv_path_FGREP="$GREP -F"
5829 if test -z "$FGREP"; then
5830 ac_path_FGREP_found=false
5831 # Loop through the user's path and test for each of PROGNAME-LIST
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5836 test -z "$as_dir" && as_dir=.
5837 for ac_prog in fgrep; do
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5840 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5841 # Check for GNU ac_path_FGREP and select it if it is found.
5842 # Check for GNU $ac_path_FGREP
5843 case `"$ac_path_FGREP" --version 2>&1` in
5845 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5848 $as_echo_n 0123456789 >"conftest.in"
5851 cat "conftest.in" "conftest.in" >"conftest.tmp"
5852 mv "conftest.tmp" "conftest.in"
5853 cp "conftest.in" "conftest.nl"
5854 $as_echo 'FGREP' >> "conftest.nl"
5855 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5857 as_fn_arith $ac_count + 1 && ac_count=$as_val
5858 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5859 # Best one so far, save it but keep looking for a better one
5860 ac_cv_path_FGREP="$ac_path_FGREP"
5861 ac_path_FGREP_max=$ac_count
5863 # 10*(2^10) chars as input seems more than enough
5864 test $ac_count -gt 10 && break
5866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5869 $ac_path_FGREP_found && break 3
5874 if test -z "$ac_cv_path_FGREP"; then
5875 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5878 ac_cv_path_FGREP=$FGREP
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5884 $as_echo "$ac_cv_path_FGREP" >&6; }
5885 FGREP="$ac_cv_path_FGREP"
5888 test -z "$GREP" && GREP=grep
5908 # Check whether --with-gnu-ld was given.
5909 if test "${with_gnu_ld+set}" = set; then :
5910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5916 if test "$GCC" = yes; then
5917 # Check if gcc -print-prog-name=ld gives a path.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5919 $as_echo_n "checking for ld used by $CC... " >&6; }
5922 # gcc leaves a trailing carriage return which upsets mingw
5923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5928 # Accept absolute paths.
5930 re_direlt='/[^/][^/]*/\.\./'
5931 # Canonicalize the pathname of ld
5932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5936 test -z "$LD" && LD="$ac_prog"
5939 # If it fails, then pretend we aren't using GCC.
5943 # If it is relative, then search for the first ld in PATH.
5947 elif test "$with_gnu_ld" = yes; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5949 $as_echo_n "checking for GNU ld... " >&6; }
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5952 $as_echo_n "checking for non-GNU ld... " >&6; }
5954 if test "${lt_cv_path_LD+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5957 if test -z "$LD"; then
5958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH; do
5961 test -z "$ac_dir" && ac_dir=.
5962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5963 lt_cv_path_LD="$ac_dir/$ac_prog"
5964 # Check to see if the program is GNU ld. I'd rather use --version,
5965 # but apparently some variants of GNU ld only accept -v.
5966 # Break only if it was the GNU/non-GNU ld that we prefer.
5967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5968 *GNU* | *'with BFD'*)
5969 test "$with_gnu_ld" != no && break
5972 test "$with_gnu_ld" != yes && break
5979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5984 if test -n "$LD"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5986 $as_echo "$LD" >&6; }
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5991 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5994 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5998 case `$LD -v 2>&1 </dev/null` in
5999 *GNU* | *'with BFD'*)
6000 lt_cv_prog_gnu_ld=yes
6003 lt_cv_prog_gnu_ld=no
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6009 with_gnu_ld=$lt_cv_prog_gnu_ld
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6020 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6021 if test "${lt_cv_path_NM+set}" = set; then :
6022 $as_echo_n "(cached) " >&6
6024 if test -n "$NM"; then
6025 # Let the user override the test.
6028 lt_nm_to_check="${ac_tool_prefix}nm"
6029 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6030 lt_nm_to_check="$lt_nm_to_check nm"
6032 for lt_tmp_nm in $lt_nm_to_check; do
6033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6036 test -z "$ac_dir" && ac_dir=.
6037 tmp_nm="$ac_dir/$lt_tmp_nm"
6038 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6039 # Check to see if the nm accepts a BSD-compat flag.
6040 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6041 # nm: unknown option "B" ignored
6042 # Tru64's nm complains that /dev/null is an invalid object file
6043 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6044 */dev/null* | *'Invalid file or object type'*)
6045 lt_cv_path_NM="$tmp_nm -B"
6049 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6051 lt_cv_path_NM="$tmp_nm -p"
6055 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6056 continue # so that we can try to find one that supports BSD flags
6065 : ${lt_cv_path_NM=no}
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6069 $as_echo "$lt_cv_path_NM" >&6; }
6070 if test "$lt_cv_path_NM" != "no"; then
6073 # Didn't find any BSD compatible name lister, look for dumpbin.
6074 if test -n "$DUMPBIN"; then :
6075 # Let the user override the test.
6077 if test -n "$ac_tool_prefix"; then
6078 for ac_prog in dumpbin "link -dump"
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6087 if test -n "$DUMPBIN"; then
6088 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 DUMPBIN=$ac_cv_prog_DUMPBIN
6108 if test -n "$DUMPBIN"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6110 $as_echo "$DUMPBIN" >&6; }
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6117 test -n "$DUMPBIN" && break
6120 if test -z "$DUMPBIN"; then
6121 ac_ct_DUMPBIN=$DUMPBIN
6122 for ac_prog in dumpbin "link -dump"
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6131 if test -n "$ac_ct_DUMPBIN"; then
6132 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6152 if test -n "$ac_ct_DUMPBIN"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6154 $as_echo "$ac_ct_DUMPBIN" >&6; }
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6161 test -n "$ac_ct_DUMPBIN" && break
6164 if test "x$ac_ct_DUMPBIN" = x; then
6167 case $cross_compiling:$ac_tool_warned in
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6173 DUMPBIN=$ac_ct_DUMPBIN
6177 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6179 DUMPBIN="$DUMPBIN -symbols"
6187 if test "$DUMPBIN" != ":"; then
6191 test -z "$NM" && NM=nm
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6199 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6200 if test "${lt_cv_nm_interface+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6203 lt_cv_nm_interface="BSD nm"
6204 echo "int some_variable = 0;" > conftest.$ac_ext
6205 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6206 (eval "$ac_compile" 2>conftest.err)
6207 cat conftest.err >&5
6208 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6209 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6210 cat conftest.err >&5
6211 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6212 cat conftest.out >&5
6213 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6214 lt_cv_nm_interface="MS dumpbin"
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6219 $as_echo "$lt_cv_nm_interface" >&6; }
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6222 $as_echo_n "checking whether ln -s works... " >&6; }
6224 if test "$LN_S" = "ln -s"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6226 $as_echo "yes" >&6; }
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6229 $as_echo "no, using $LN_S" >&6; }
6232 # find the maximum length of command line arguments
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6234 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6235 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6243 # On DJGPP, this test can blow up pretty badly due to problems in libc
6244 # (any single argument exceeding 2000 bytes causes a buffer overrun
6245 # during glob expansion). Even if it were fixed, the result of this
6246 # check would be larger than it should be.
6247 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6251 # Under GNU Hurd, this test is not required because there is
6252 # no limit to the length of command line arguments.
6253 # Libtool will interpret -1 as no limit whatsoever
6254 lt_cv_sys_max_cmd_len=-1;
6257 cygwin* | mingw* | cegcc*)
6258 # On Win9x/ME, this test blows up -- it succeeds, but takes
6259 # about 5 minutes as the teststring grows exponentially.
6260 # Worse, since 9x/ME are not pre-emptively multitasking,
6261 # you end up with a "frozen" computer, even though with patience
6262 # the test eventually succeeds (with a max line length of 256k).
6263 # Instead, let's just punt: use the minimum linelength reported by
6264 # all of the supported platforms: 8192 (on NT/2K/XP).
6265 lt_cv_sys_max_cmd_len=8192;
6269 # On MiNT this can take a long time and run out of memory.
6270 lt_cv_sys_max_cmd_len=8192;
6274 # On AmigaOS with pdksh, this test takes hours, literally.
6275 # So we just punt and use a minimum line length of 8192.
6276 lt_cv_sys_max_cmd_len=8192;
6279 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6280 # This has been around since 386BSD, at least. Likely further.
6281 if test -x /sbin/sysctl; then
6282 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6283 elif test -x /usr/sbin/sysctl; then
6284 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6286 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6288 # And add a safety zone
6289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6294 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6295 lt_cv_sys_max_cmd_len=196608
6299 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6300 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6301 # nice to cause kernel panics so lets avoid the loop below.
6302 # First set a reasonable default.
6303 lt_cv_sys_max_cmd_len=16384
6305 if test -x /sbin/sysconfig; then
6306 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6307 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6312 lt_cv_sys_max_cmd_len=102400
6314 sysv5* | sco5v6* | sysv4.2uw2*)
6315 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6316 if test -n "$kargmax"; then
6317 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6319 lt_cv_sys_max_cmd_len=32768
6323 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6324 if test -n "$lt_cv_sys_max_cmd_len"; then
6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6328 # Make teststring a little bigger before we do anything with it.
6329 # a 1K string should be a reasonable start.
6330 for i in 1 2 3 4 5 6 7 8 ; do
6331 teststring=$teststring$teststring
6333 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6334 # If test is not a shell built-in, we'll probably end up computing a
6335 # maximum length that is only half of the actual maximum length, but
6337 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6338 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6339 test $i != 17 # 1/2 MB should be enough
6342 teststring=$teststring$teststring
6344 # Only check the string length outside the loop.
6345 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6347 # Add a significant safety factor because C++ compilers can tack on
6348 # massive amounts of additional arguments before passing them to the
6349 # linker. It appears as though 1/2 is a usable value.
6350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6357 if test -n $lt_cv_sys_max_cmd_len ; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6359 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6362 $as_echo "none" >&6; }
6364 max_cmd_len=$lt_cv_sys_max_cmd_len
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6376 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6377 # Try some XSI features
6380 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6382 && eval 'test $(( 1 + 1 )) -eq 2 \
6383 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6386 $as_echo "$xsi_shell" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6390 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6392 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6394 && lt_shell_append=yes
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6396 $as_echo "$lt_shell_append" >&6; }
6399 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6409 # test EBCDIC or ASCII
6410 case `echo X|tr X '\101'` in
6411 A) # ASCII based system
6412 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6413 lt_SP2NL='tr \040 \012'
6414 lt_NL2SP='tr \015\012 \040\040'
6416 *) # EBCDIC based system
6417 lt_SP2NL='tr \100 \n'
6418 lt_NL2SP='tr \r\n \100\100'
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6431 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6432 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 lt_cv_ld_reload_flag='-r'
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6438 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6439 reload_flag=$lt_cv_ld_reload_flag
6440 case $reload_flag in
6442 *) reload_flag=" $reload_flag" ;;
6444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6447 if test "$GCC" = yes; then
6448 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6463 if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6465 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6471 if test -n "$OBJDUMP"; then
6472 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 OBJDUMP=$ac_cv_prog_OBJDUMP
6492 if test -n "$OBJDUMP"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6494 $as_echo "$OBJDUMP" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6502 if test -z "$ac_cv_prog_OBJDUMP"; then
6503 ac_ct_OBJDUMP=$OBJDUMP
6504 # Extract the first word of "objdump", so it can be a program name with args.
6505 set dummy objdump; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6511 if test -n "$ac_ct_OBJDUMP"; then
6512 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6532 if test -n "$ac_ct_OBJDUMP"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6534 $as_echo "$ac_ct_OBJDUMP" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6540 if test "x$ac_ct_OBJDUMP" = x; then
6543 case $cross_compiling:$ac_tool_warned in
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6549 OBJDUMP=$ac_ct_OBJDUMP
6552 OBJDUMP="$ac_cv_prog_OBJDUMP"
6555 test -z "$OBJDUMP" && OBJDUMP=objdump
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6566 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6567 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6570 lt_cv_file_magic_cmd='$MAGIC_CMD'
6571 lt_cv_file_magic_test_file=
6572 lt_cv_deplibs_check_method='unknown'
6573 # Need to set the preceding variable on all platforms that support
6574 # interlibrary dependencies.
6575 # 'none' -- dependencies not supported.
6576 # `unknown' -- same as none, but documents that we really don't know.
6577 # 'pass_all' -- all dependencies passed with no checks.
6578 # 'test_compile' -- check by making test program.
6579 # 'file_magic [[regex]]' -- check by looking for files in library path
6580 # which responds to the $file_magic_cmd with a given extended regex.
6581 # If you have `file' or equivalent on your system and you're not sure
6582 # whether `pass_all' will *always* work, you probably want this one.
6586 lt_cv_deplibs_check_method=pass_all
6590 lt_cv_deplibs_check_method=pass_all
6594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6595 lt_cv_file_magic_cmd='/usr/bin/file -L'
6596 lt_cv_file_magic_test_file=/shlib/libc.so
6600 # func_win32_libid is a shell function defined in ltmain.sh
6601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6602 lt_cv_file_magic_cmd='func_win32_libid'
6606 # Base MSYS/MinGW do not provide the 'file' command needed by
6607 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6608 # unless we find 'file', for example because we are cross-compiling.
6609 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6610 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6612 lt_cv_file_magic_cmd='func_win32_libid'
6614 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6615 lt_cv_file_magic_cmd='$OBJDUMP -f'
6620 # use the weaker test based on 'objdump'. See mingw*.
6621 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6622 lt_cv_file_magic_cmd='$OBJDUMP -f'
6625 darwin* | rhapsody*)
6626 lt_cv_deplibs_check_method=pass_all
6629 freebsd* | dragonfly*)
6630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6633 # Not sure whether the presence of OpenBSD here was a mistake.
6634 # Let's accept both of them until this is cleared up.
6635 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6636 lt_cv_file_magic_cmd=/usr/bin/file
6637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6641 lt_cv_deplibs_check_method=pass_all
6646 lt_cv_deplibs_check_method=pass_all
6650 lt_cv_deplibs_check_method=pass_all
6653 hpux10.20* | hpux11*)
6654 lt_cv_file_magic_cmd=/usr/bin/file
6657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6661 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]'
6662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6676 irix5* | irix6* | nonstopux*)
6678 *-32|*"-32 ") libmagic=32-bit;;
6679 *-n32|*"-n32 ") libmagic=N32;;
6680 *-64|*"-64 ") libmagic=64-bit;;
6681 *) libmagic=never-match;;
6683 lt_cv_deplibs_check_method=pass_all
6686 # This must be Linux ELF.
6687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6688 lt_cv_deplibs_check_method=pass_all
6692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6701 lt_cv_file_magic_cmd=/usr/bin/file
6702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6706 lt_cv_deplibs_check_method=pass_all
6710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6717 osf3* | osf4* | osf5*)
6718 lt_cv_deplibs_check_method=pass_all
6722 lt_cv_deplibs_check_method=pass_all
6726 lt_cv_deplibs_check_method=pass_all
6729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6730 lt_cv_deplibs_check_method=pass_all
6734 case $host_vendor in
6736 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]'
6737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6740 lt_cv_deplibs_check_method=pass_all
6743 lt_cv_file_magic_cmd='/bin/file'
6744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6747 lt_cv_file_magic_cmd='/bin/file'
6748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6749 lt_cv_file_magic_test_file=/lib/libc.so
6752 lt_cv_deplibs_check_method=pass_all
6755 lt_cv_deplibs_check_method=pass_all
6761 lt_cv_deplibs_check_method=pass_all
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6767 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6768 file_magic_cmd=$lt_cv_file_magic_cmd
6769 deplibs_check_method=$lt_cv_deplibs_check_method
6770 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}ar; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_AR+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6791 if test -n "$AR"; then
6792 ac_cv_prog_AR="$AR" # Let the user override the test.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_AR="${ac_tool_prefix}ar"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 if test -n "$AR"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6814 $as_echo "$AR" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6822 if test -z "$ac_cv_prog_AR"; then
6824 # Extract the first word of "ar", so it can be a program name with args.
6825 set dummy ar; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6831 if test -n "$ac_ct_AR"; then
6832 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_AR="ar"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6852 if test -n "$ac_ct_AR"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6854 $as_echo "$ac_ct_AR" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6860 if test "x$ac_ct_AR" = x; then
6863 case $cross_compiling:$ac_tool_warned in
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6875 test -z "$AR" && AR=ar
6876 test -z "$AR_FLAGS" && AR_FLAGS=cru
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}strip; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if test "${ac_cv_prog_STRIP+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 if test -n "$STRIP"; then
6897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 STRIP=$ac_cv_prog_STRIP
6917 if test -n "$STRIP"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6919 $as_echo "$STRIP" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6927 if test -z "$ac_cv_prog_STRIP"; then
6929 # Extract the first word of "strip", so it can be a program name with args.
6930 set dummy strip; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6936 if test -n "$ac_ct_STRIP"; then
6937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_STRIP="strip"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6957 if test -n "$ac_ct_STRIP"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6959 $as_echo "$ac_ct_STRIP" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6965 if test "x$ac_ct_STRIP" = x; then
6968 case $cross_compiling:$ac_tool_warned in
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6977 STRIP="$ac_cv_prog_STRIP"
6980 test -z "$STRIP" && STRIP=:
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 RANLIB=$ac_cv_prog_RANLIB
7016 if test -n "$RANLIB"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7018 $as_echo "$RANLIB" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7026 if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029 set dummy ranlib; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_RANLIB="ranlib"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056 if test -n "$ac_ct_RANLIB"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7058 $as_echo "$ac_ct_RANLIB" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7064 if test "x$ac_ct_RANLIB" = x; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7073 RANLIB=$ac_ct_RANLIB
7076 RANLIB="$ac_cv_prog_RANLIB"
7079 test -z "$RANLIB" && RANLIB=:
7086 # Determine commands to create old-style static archives.
7087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7088 old_postinstall_cmds='chmod 644 $oldlib'
7089 old_postuninstall_cmds=
7091 if test -n "$RANLIB"; then
7094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7105 lock_old_archive_extraction=yes ;;
7107 lock_old_archive_extraction=no ;;
7148 # If no C compiler was specified, use CC.
7151 # If no C compiler flags were specified, use CFLAGS.
7152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7154 # Allow CC to be a program name with arguments.
7158 # Check for command to grab the raw symbol name followed by C symbol from nm.
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7160 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7161 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7165 # These are sane defaults that work on at least a few old systems.
7166 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7168 # Character class describing NM global symbol codes.
7169 symcode='[BCDEGRST]'
7171 # Regexp to match symbols that can be accessed directly from C.
7172 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7174 # Define system-specific variables.
7179 cygwin* | mingw* | pw32* | cegcc*)
7180 symcode='[ABCDGISTW]'
7183 if test "$host_cpu" = ia64; then
7184 symcode='[ABCDEGRST]'
7188 symcode='[BCDEGRST]'
7191 symcode='[BCDEGQRST]'
7202 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7210 # If we're using GNU nm, then use its standard symbol codes.
7211 case `$NM -V 2>&1` in
7212 *GNU* | *'with BFD'*)
7213 symcode='[ABCDGIRSTW]' ;;
7216 # Transform an extracted symbol line into a proper C declaration.
7217 # Some systems (esp. on ia64) link data and code symbols differently,
7218 # so use this general approach.
7219 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7221 # Transform an extracted symbol line into symbol name and symbol address
7222 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7223 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'"
7225 # Handle CRLF in mingw tool chain
7229 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7233 # Try without a prefix underscore, then with it.
7234 for ac_symprfx in "" "_"; do
7236 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7237 symxfrm="\\1 $ac_symprfx\\2 \\2"
7239 # Write the raw and C identifiers.
7240 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7241 # Fake it for dumpbin and say T for any non-static function
7242 # and D for any global variable.
7243 # Also find C++ and __fastcall symbols from MSVC++,
7244 # which start with @ or ?.
7245 lt_cv_sys_global_symbol_pipe="$AWK '"\
7246 " {last_section=section; section=\$ 3};"\
7247 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7248 " \$ 0!~/External *\|/{next};"\
7249 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7250 " {if(hide[section]) next};"\
7251 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7252 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7253 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7254 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7255 " ' prfx=^$ac_symprfx"
7257 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7260 # Check to see that the pipe works correctly.
7264 cat > conftest.$ac_ext <<_LT_EOF
7269 void nm_test_func(void);
7270 void nm_test_func(void){}
7274 int main(){nm_test_var='a';nm_test_func();return(0);}
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278 (eval $ac_compile) 2>&5
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 # Now try to grab the symbols.
7284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; } && test -s "$nlist"; then
7289 # Try sorting and uniquifying the output.
7290 if sort "$nlist" | uniq > "$nlist"T; then
7291 mv -f "$nlist"T "$nlist"
7296 # Make sure that we snagged all the symbols we need.
7297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7299 cat <<_LT_EOF > conftest.$ac_ext
7305 # Now generate the symbol file.
7306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7308 cat <<_LT_EOF >> conftest.$ac_ext
7310 /* The mapping between symbol names and symbols. */
7315 lt__PROGRAM__LTX_preloaded_symbols[] =
7317 { "@PROGRAM@", (void *) 0 },
7319 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7320 cat <<\_LT_EOF >> conftest.$ac_ext
7324 /* This works around a problem in FreeBSD linker */
7325 #ifdef FREEBSD_WORKAROUND
7326 static const void *lt_preloaded_setup() {
7327 return lt__PROGRAM__LTX_preloaded_symbols;
7335 # Now try linking the two files.
7336 mv conftest.$ac_objext conftstm.$ac_objext
7337 lt_save_LIBS="$LIBS"
7338 lt_save_CFLAGS="$CFLAGS"
7339 LIBS="conftstm.$ac_objext"
7340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7342 (eval $ac_link) 2>&5
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7348 LIBS="$lt_save_LIBS"
7349 CFLAGS="$lt_save_CFLAGS"
7351 echo "cannot find nm_test_func in $nlist" >&5
7354 echo "cannot find nm_test_var in $nlist" >&5
7357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7360 echo "$progname: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7363 rm -rf conftest* conftst*
7365 # Do not use the global_symbol_pipe unless it works.
7366 if test "$pipe_works" = yes; then
7369 lt_cv_sys_global_symbol_pipe=
7375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7376 lt_cv_sys_global_symbol_to_cdecl=
7378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7380 $as_echo "failed" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7383 $as_echo "ok" >&6; }
7407 # Check whether --enable-libtool-lock was given.
7408 if test "${enable_libtool_lock+set}" = set; then :
7409 enableval=$enable_libtool_lock;
7412 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7414 # Some flags need to be propagated to the compiler or linker for good
7418 # Find out which ABI we are using.
7419 echo 'int i;' > conftest.$ac_ext
7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421 (eval $ac_compile) 2>&5
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 case `/usr/bin/file conftest.$ac_objext` in
7437 # Find out which ABI we are using.
7438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7440 (eval $ac_compile) 2>&5
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7444 if test "$lt_cv_prog_gnu_ld" = yes; then
7445 case `/usr/bin/file conftest.$ac_objext` in
7447 LD="${LD-ld} -melf32bsmip"
7450 LD="${LD-ld} -melf32bmipn32"
7453 LD="${LD-ld} -melf64bmip"
7457 case `/usr/bin/file conftest.$ac_objext` in
7473 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7474 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7475 # Find out which ABI we are using.
7476 echo 'int i;' > conftest.$ac_ext
7477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7478 (eval $ac_compile) 2>&5
7480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7481 test $ac_status = 0; }; then
7482 case `/usr/bin/file conftest.o` in
7485 x86_64-*kfreebsd*-gnu)
7486 LD="${LD-ld} -m elf_i386_fbsd"
7489 case `/usr/bin/file conftest.o` in
7491 LD="${LD-ld} -m elf32_x86_64"
7494 LD="${LD-ld} -m elf_i386"
7498 powerpc64le-*linux*)
7499 LD="${LD-ld} -m elf32lppclinux"
7502 LD="${LD-ld} -m elf32ppclinux"
7505 LD="${LD-ld} -m elf_s390"
7508 LD="${LD-ld} -m elf32_sparc"
7514 x86_64-*kfreebsd*-gnu)
7515 LD="${LD-ld} -m elf_x86_64_fbsd"
7518 LD="${LD-ld} -m elf_x86_64"
7521 LD="${LD-ld} -m elf64lppc"
7524 LD="${LD-ld} -m elf64ppc"
7526 s390*-*linux*|s390*-*tpf*)
7527 LD="${LD-ld} -m elf64_s390"
7530 LD="${LD-ld} -m elf64_sparc"
7540 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7541 SAVE_CFLAGS="$CFLAGS"
7542 CFLAGS="$CFLAGS -belf"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7544 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7545 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7549 ac_cpp='$CPP $CPPFLAGS'
7550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7565 if ac_fn_c_try_link "$LINENO"; then :
7566 lt_cv_cc_needs_belf=yes
7568 lt_cv_cc_needs_belf=no
7570 rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7573 ac_cpp='$CPP $CPPFLAGS'
7574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7580 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7581 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7583 CFLAGS="$SAVE_CFLAGS"
7587 # Find out which ABI we are using.
7588 echo 'int i;' > conftest.$ac_ext
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7590 (eval $ac_compile) 2>&5
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7594 case `/usr/bin/file conftest.o` in
7596 case $lt_cv_prog_gnu_ld in
7597 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7599 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7611 need_locks="$enable_libtool_lock"
7615 rhapsody* | darwin*)
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$DSYMUTIL"; then
7625 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7645 if test -n "$DSYMUTIL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7647 $as_echo "$DSYMUTIL" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7655 if test -z "$ac_cv_prog_DSYMUTIL"; then
7656 ac_ct_DSYMUTIL=$DSYMUTIL
7657 # Extract the first word of "dsymutil", so it can be a program name with args.
7658 set dummy dsymutil; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$ac_ct_DSYMUTIL"; then
7665 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7685 if test -n "$ac_ct_DSYMUTIL"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7687 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7693 if test "x$ac_ct_DSYMUTIL" = x; then
7696 case $cross_compiling:$ac_tool_warned in
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7702 DSYMUTIL=$ac_ct_DSYMUTIL
7705 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7710 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$NMEDIT"; then
7717 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 NMEDIT=$ac_cv_prog_NMEDIT
7737 if test -n "$NMEDIT"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7739 $as_echo "$NMEDIT" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7747 if test -z "$ac_cv_prog_NMEDIT"; then
7748 ac_ct_NMEDIT=$NMEDIT
7749 # Extract the first word of "nmedit", so it can be a program name with args.
7750 set dummy nmedit; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -n "$ac_ct_NMEDIT"; then
7757 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7777 if test -n "$ac_ct_NMEDIT"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7779 $as_echo "$ac_ct_NMEDIT" >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7785 if test "x$ac_ct_NMEDIT" = x; then
7788 case $cross_compiling:$ac_tool_warned in
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792 ac_tool_warned=yes ;;
7794 NMEDIT=$ac_ct_NMEDIT
7797 NMEDIT="$ac_cv_prog_NMEDIT"
7800 if test -n "$ac_tool_prefix"; then
7801 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7802 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if test "${ac_cv_prog_LIPO+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7808 if test -n "$LIPO"; then
7809 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 LIPO=$ac_cv_prog_LIPO
7829 if test -n "$LIPO"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7831 $as_echo "$LIPO" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7839 if test -z "$ac_cv_prog_LIPO"; then
7841 # Extract the first word of "lipo", so it can be a program name with args.
7842 set dummy lipo; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7848 if test -n "$ac_ct_LIPO"; then
7849 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_ac_ct_LIPO="lipo"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7869 if test -n "$ac_ct_LIPO"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7871 $as_echo "$ac_ct_LIPO" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7877 if test "x$ac_ct_LIPO" = x; then
7880 case $cross_compiling:$ac_tool_warned in
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7889 LIPO="$ac_cv_prog_LIPO"
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7894 set dummy ${ac_tool_prefix}otool; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$OTOOL"; then
7901 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 OTOOL=$ac_cv_prog_OTOOL
7921 if test -n "$OTOOL"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7923 $as_echo "$OTOOL" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7931 if test -z "$ac_cv_prog_OTOOL"; then
7933 # Extract the first word of "otool", so it can be a program name with args.
7934 set dummy otool; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7940 if test -n "$ac_ct_OTOOL"; then
7941 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_ac_ct_OTOOL="otool"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7961 if test -n "$ac_ct_OTOOL"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7963 $as_echo "$ac_ct_OTOOL" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7969 if test "x$ac_ct_OTOOL" = x; then
7972 case $cross_compiling:$ac_tool_warned in
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7981 OTOOL="$ac_cv_prog_OTOOL"
7984 if test -n "$ac_tool_prefix"; then
7985 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7986 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7992 if test -n "$OTOOL64"; then
7993 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 OTOOL64=$ac_cv_prog_OTOOL64
8013 if test -n "$OTOOL64"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8015 $as_echo "$OTOOL64" >&6; }
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8023 if test -z "$ac_cv_prog_OTOOL64"; then
8024 ac_ct_OTOOL64=$OTOOL64
8025 # Extract the first word of "otool64", so it can be a program name with args.
8026 set dummy otool64; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8032 if test -n "$ac_ct_OTOOL64"; then
8033 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_prog_ac_ct_OTOOL64="otool64"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8053 if test -n "$ac_ct_OTOOL64"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8055 $as_echo "$ac_ct_OTOOL64" >&6; }
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8061 if test "x$ac_ct_OTOOL64" = x; then
8064 case $cross_compiling:$ac_tool_warned in
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8070 OTOOL64=$ac_ct_OTOOL64
8073 OTOOL64="$ac_cv_prog_OTOOL64"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8103 $as_echo_n "checking for -single_module linker flag... " >&6; }
8104 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8107 lt_cv_apple_cc_single_mod=no
8108 if test -z "${LT_MULTI_MODULE}"; then
8109 # By default we will add the -single_module flag. You can override
8110 # by either setting the environment variable LT_MULTI_MODULE
8111 # non-empty at configure time, or by adding -multi_module to the
8113 rm -rf libconftest.dylib*
8114 echo "int foo(void){return 1;}" > conftest.c
8115 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116 -dynamiclib -Wl,-single_module conftest.c" >&5
8117 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8118 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8120 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8121 lt_cv_apple_cc_single_mod=yes
8123 cat conftest.err >&5
8125 rm -rf libconftest.dylib*
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8130 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8132 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8133 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8136 lt_cv_ld_exported_symbols_list=no
8137 save_LDFLAGS=$LDFLAGS
8138 echo "_main" > conftest.sym
8139 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8151 if ac_fn_c_try_link "$LINENO"; then :
8152 lt_cv_ld_exported_symbols_list=yes
8154 lt_cv_ld_exported_symbols_list=no
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 LDFLAGS="$save_LDFLAGS"
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8162 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8164 $as_echo_n "checking for -force_load linker flag... " >&6; }
8165 if test "${lt_cv_ld_force_load+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8168 lt_cv_ld_force_load=no
8169 cat > conftest.c << _LT_EOF
8170 int forced_loaded() { return 2;}
8172 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8173 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8174 echo "$AR cru libconftest.a conftest.o" >&5
8175 $AR cru libconftest.a conftest.o 2>&5
8176 cat > conftest.c << _LT_EOF
8177 int main() { return 0;}
8179 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8180 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8182 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8183 lt_cv_ld_force_load=yes
8185 cat conftest.err >&5
8187 rm -f conftest.err libconftest.a conftest conftest.c
8188 rm -rf conftest.dSYM
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8192 $as_echo "$lt_cv_ld_force_load" >&6; }
8194 rhapsody* | darwin1.[012])
8195 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8198 darwin*) # darwin 5.x on
8199 # if running on 10.5 or later, the deployment target defaults
8200 # to the OS version, if on x86, and 10.4, the deployment
8201 # target defaults to 10.4. Don't you love it?
8202 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8203 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8208 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8212 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8213 _lt_dar_single_mod='$single_module'
8215 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8216 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8218 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8220 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8221 _lt_dsymutil='~$DSYMUTIL $lib || :'
8228 for ac_header in dlfcn.h
8230 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8232 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_DLFCN_H 1
8256 # Check whether --enable-shared was given.
8257 if test "${enable_shared+set}" = set; then :
8258 enableval=$enable_shared; p=${PACKAGE-default}
8260 yes) enable_shared=yes ;;
8261 no) enable_shared=no ;;
8264 # Look at the argument we got. We use all the common list separators.
8265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266 for pkg in $enableval; do
8268 if test "X$pkg" = "X$p"; then
8287 # Check whether --enable-static was given.
8288 if test "${enable_static+set}" = set; then :
8289 enableval=$enable_static; p=${PACKAGE-default}
8291 yes) enable_static=yes ;;
8292 no) enable_static=no ;;
8295 # Look at the argument we got. We use all the common list separators.
8296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297 for pkg in $enableval; do
8299 if test "X$pkg" = "X$p"; then
8319 # Check whether --with-pic was given.
8320 if test "${with_pic+set}" = set; then :
8321 withval=$with_pic; pic_mode="$withval"
8327 test -z "$pic_mode" && pic_mode=default
8335 # Check whether --enable-fast-install was given.
8336 if test "${enable_fast_install+set}" = set; then :
8337 enableval=$enable_fast_install; p=${PACKAGE-default}
8339 yes) enable_fast_install=yes ;;
8340 no) enable_fast_install=no ;;
8342 enable_fast_install=no
8343 # Look at the argument we got. We use all the common list separators.
8344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345 for pkg in $enableval; do
8347 if test "X$pkg" = "X$p"; then
8348 enable_fast_install=yes
8355 enable_fast_install=yes
8368 # This can be used to rebuild libtool when needed
8369 LIBTOOL_DEPS="$ltmain"
8371 # Always use our own libtool.
8372 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8399 test -z "$LN_S" && LN_S="ln -s"
8414 if test -n "${ZSH_VERSION+set}" ; then
8415 setopt NO_GLOB_SUBST
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8419 $as_echo_n "checking for objdir... " >&6; }
8420 if test "${lt_cv_objdir+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8423 rm -f .libs 2>/dev/null
8424 mkdir .libs 2>/dev/null
8425 if test -d .libs; then
8428 # MS-DOS does not allow filenames that begin with a dot.
8431 rmdir .libs 2>/dev/null
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8434 $as_echo "$lt_cv_objdir" >&6; }
8435 objdir=$lt_cv_objdir
8441 cat >>confdefs.h <<_ACEOF
8442 #define LT_OBJDIR "$lt_cv_objdir/"
8450 # AIX sometimes has problems with the GCC collect2 program. For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8455 export COLLECT_NAMES
8462 can_build_shared=yes
8464 # All known linkers require a `.a' archive for static linking (except MSVC,
8465 # which needs '.lib').
8468 with_gnu_ld="$lt_cv_prog_gnu_ld"
8471 old_CFLAGS="$CFLAGS"
8473 # Set sane defaults for various variables
8474 test -z "$CC" && CC=cc
8475 test -z "$LTCC" && LTCC=$CC
8476 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8477 test -z "$LD" && LD=ld
8478 test -z "$ac_objext" && ac_objext=o
8480 for cc_temp in $compiler""; do
8482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8488 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8491 # Only perform the check for file, if the check method requires it
8492 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8493 case $deplibs_check_method in
8495 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8497 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8506 lt_save_MAGIC_CMD="$MAGIC_CMD"
8507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8509 for ac_dir in $ac_dummy; do
8511 test -z "$ac_dir" && ac_dir=.
8512 if test -f $ac_dir/${ac_tool_prefix}file; then
8513 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8514 if test -n "$file_magic_test_file"; then
8515 case $deplibs_check_method in
8517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8520 $EGREP "$file_magic_regex" > /dev/null; then
8525 *** Warning: the command libtool uses to detect shared libraries,
8526 *** $file_magic_cmd, produces output that libtool cannot recognize.
8527 *** The result is that libtool may fail to recognize shared libraries
8528 *** as such. This will affect the creation of libtool libraries that
8529 *** depend on shared libraries, but programs linked with such libtool
8530 *** libraries will work regardless of this problem. Nevertheless, you
8531 *** may want to report the problem to your system manager and/or to
8532 *** bug-libtool@gnu.org
8542 MAGIC_CMD="$lt_save_MAGIC_CMD"
8547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548 if test -n "$MAGIC_CMD"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8550 $as_echo "$MAGIC_CMD" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8560 if test -z "$lt_cv_path_MAGIC_CMD"; then
8561 if test -n "$ac_tool_prefix"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8563 $as_echo_n "checking for file... " >&6; }
8564 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8572 lt_save_MAGIC_CMD="$MAGIC_CMD"
8573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8575 for ac_dir in $ac_dummy; do
8577 test -z "$ac_dir" && ac_dir=.
8578 if test -f $ac_dir/file; then
8579 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8580 if test -n "$file_magic_test_file"; then
8581 case $deplibs_check_method in
8583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8586 $EGREP "$file_magic_regex" > /dev/null; then
8591 *** Warning: the command libtool uses to detect shared libraries,
8592 *** $file_magic_cmd, produces output that libtool cannot recognize.
8593 *** The result is that libtool may fail to recognize shared libraries
8594 *** as such. This will affect the creation of libtool libraries that
8595 *** depend on shared libraries, but programs linked with such libtool
8596 *** libraries will work regardless of this problem. Nevertheless, you
8597 *** may want to report the problem to your system manager and/or to
8598 *** bug-libtool@gnu.org
8608 MAGIC_CMD="$lt_save_MAGIC_CMD"
8613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614 if test -n "$MAGIC_CMD"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8616 $as_echo "$MAGIC_CMD" >&6; }
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8632 # Use C for the default configuration in the libtool script
8636 ac_cpp='$CPP $CPPFLAGS'
8637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8642 # Source file extension for C test sources.
8645 # Object file extension for compiled C test sources.
8649 # Code to be used in simple compile tests
8650 lt_simple_compile_test_code="int some_variable = 0;"
8652 # Code to be used in simple link tests
8653 lt_simple_link_test_code='int main(){return(0);}'
8661 # If no C compiler was specified, use CC.
8664 # If no C compiler flags were specified, use CFLAGS.
8665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8667 # Allow CC to be a program name with arguments.
8670 # Save the default compiler, since it gets overwritten when the other
8671 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8672 compiler_DEFAULT=$CC
8674 # save warnings/boilerplate of simple test code
8675 ac_outfile=conftest.$ac_objext
8676 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8677 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8678 _lt_compiler_boilerplate=`cat conftest.err`
8681 ac_outfile=conftest.$ac_objext
8682 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8683 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684 _lt_linker_boilerplate=`cat conftest.err`
8689 ## There is no encapsulation within the following macros, do not change
8690 ## the running order or otherwise move them around unless you know exactly
8691 ## what you are doing...
8692 if test -n "$compiler"; then
8694 lt_prog_compiler_no_builtin_flag=
8696 if test "$GCC" = yes; then
8697 case $cc_basename in
8699 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8701 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8705 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8709 lt_cv_prog_compiler_rtti_exceptions=no
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712 lt_compiler_flag="-fno-rtti -fno-exceptions"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>conftest.err)
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
8730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_rtti_exceptions=yes
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8740 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8755 lt_prog_compiler_wl=
8756 lt_prog_compiler_pic=
8757 lt_prog_compiler_static=
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8760 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8762 if test "$GCC" = yes; then
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_static='-static'
8768 # All AIX code is PIC.
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 now supports IA64 processor
8771 lt_prog_compiler_static='-Bstatic'
8773 lt_prog_compiler_pic='-fPIC'
8779 # see comment about AmigaOS4 .so support
8780 lt_prog_compiler_pic='-fPIC'
8783 # FIXME: we need at least 68020 code to build shared libraries, but
8784 # adding the `-m68020' flag to GCC prevents building anything better,
8786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8792 # PIC is the default for these OSes.
8795 mingw* | cygwin* | pw32* | os2* | cegcc*)
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8799 # (--disable-auto-import) libraries
8800 lt_prog_compiler_pic='-DDLL_EXPORT'
8803 darwin* | rhapsody*)
8804 # PIC is the default on this platform
8805 # Common symbols not allowed in MH_DYLIB files
8806 lt_prog_compiler_pic='-fno-common'
8810 # PIC is the default for Haiku.
8811 # The "-static" flag exists, but is broken.
8812 lt_prog_compiler_static=
8816 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8817 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8818 # sets the default TLS model and affects inlining.
8824 lt_prog_compiler_pic='-fPIC'
8830 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8831 # Instead, we relocate shared libraries at runtime.
8835 # Just because we use GCC doesn't mean we suddenly get shared libraries
8836 # on systems that don't support them.
8837 lt_prog_compiler_can_build_shared=no
8842 # QNX uses GNU C++, but need to define -shared option too, otherwise
8844 lt_prog_compiler_pic='-fPIC -shared'
8848 if test -d /usr/nec; then
8849 lt_prog_compiler_pic=-Kconform_pic
8854 lt_prog_compiler_pic='-fPIC'
8858 case $cc_basename in
8859 nvcc*) # Cuda Compiler Driver 2.2
8860 lt_prog_compiler_wl='-Xlinker '
8861 lt_prog_compiler_pic='-Xcompiler -fPIC'
8865 # PORTME Check for flag to pass linker flags through the system compiler.
8868 lt_prog_compiler_wl='-Wl,'
8869 if test "$host_cpu" = ia64; then
8870 # AIX 5 now supports IA64 processor
8871 lt_prog_compiler_static='-Bstatic'
8873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8877 mingw* | cygwin* | pw32* | os2* | cegcc*)
8878 # This hack is so that the source file can tell whether it is being
8879 # built for inclusion in a dll (and should export symbols for example).
8880 lt_prog_compiler_pic='-DDLL_EXPORT'
8883 hpux9* | hpux10* | hpux11*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8892 lt_prog_compiler_pic='+Z'
8895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8896 lt_prog_compiler_static='${wl}-a ${wl}archive'
8899 irix5* | irix6* | nonstopux*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC (with -KPIC) is the default.
8902 lt_prog_compiler_static='-non_shared'
8905 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8906 case $cc_basename in
8907 # old Intel for x86_64 which still supported -KPIC.
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-KPIC'
8911 lt_prog_compiler_static='-static'
8913 # icc used to be incompatible with GCC.
8914 # ICC 10 doesn't accept -KPIC any more.
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-fPIC'
8918 lt_prog_compiler_static='-static'
8920 # Lahey Fortran 8.1.
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='--shared'
8924 lt_prog_compiler_static='--static'
8926 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8927 # Portland Group compilers (*not* the Pentium gcc compiler,
8928 # which looks to be a dead project)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_pic='-fpic'
8931 lt_prog_compiler_static='-Bstatic'
8934 lt_prog_compiler_wl='-Wl,'
8935 # All Alpha code is PIC.
8936 lt_prog_compiler_static='-non_shared'
8938 xl* | bgxl* | bgf* | mpixl*)
8939 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-qpic'
8942 lt_prog_compiler_static='-qstaticlink'
8945 case `$CC -V 2>&1 | sed 5q` in
8946 *Sun\ F* | *Sun*Fortran*)
8947 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
8950 lt_prog_compiler_wl=''
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8969 # QNX uses GNU C++, but need to define -shared option too, otherwise
8971 lt_prog_compiler_pic='-fPIC -shared'
8974 osf3* | osf4* | osf5*)
8975 lt_prog_compiler_wl='-Wl,'
8976 # All OSF/1 code is PIC.
8977 lt_prog_compiler_static='-non_shared'
8981 lt_prog_compiler_static='-non_shared'
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 case $cc_basename in
8989 lt_prog_compiler_wl='-Qoption ld ';;
8991 lt_prog_compiler_wl='-Wl,';;
8996 lt_prog_compiler_wl='-Qoption ld '
8997 lt_prog_compiler_pic='-PIC'
8998 lt_prog_compiler_static='-Bstatic'
9001 sysv4 | sysv4.2uw2* | sysv4.3*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9008 if test -d /usr/nec ;then
9009 lt_prog_compiler_pic='-Kconform_pic'
9010 lt_prog_compiler_static='-Bstatic'
9014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_can_build_shared=no
9026 lt_prog_compiler_pic='-pic'
9027 lt_prog_compiler_static='-Bstatic'
9031 lt_prog_compiler_can_build_shared=no
9037 # For platforms which do not support PIC, -DPIC is meaningless:
9039 lt_prog_compiler_pic=
9042 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9046 $as_echo "$lt_prog_compiler_pic" >&6; }
9054 # Check to make sure the PIC flag actually works.
9056 if test -n "$lt_prog_compiler_pic"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9058 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9059 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9062 lt_cv_prog_compiler_pic_works=no
9063 ac_outfile=conftest.$ac_objext
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 # The option is referenced via a variable to avoid confusing sed.
9071 lt_compile=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076 (eval "$lt_compile" 2>conftest.err)
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 if (exit $ac_status) && test -s "$ac_outfile"; then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings other than the usual output.
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_pic_works=yes
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9093 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9095 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9096 case $lt_prog_compiler_pic in
9098 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9101 lt_prog_compiler_pic=
9102 lt_prog_compiler_can_build_shared=no
9113 # Check to make sure the static flag actually works.
9115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9117 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9118 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9121 lt_cv_prog_compiler_static_works=no
9122 save_LDFLAGS="$LDFLAGS"
9123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9126 # The linker can only warn and ignore the option if not recognized
9127 # So say no if there are warnings
9128 if test -s conftest.err; then
9129 # Append any errors to the config.log.
9130 cat conftest.err 1>&5
9131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9133 if diff conftest.exp conftest.er2 >/dev/null; then
9134 lt_cv_prog_compiler_static_works=yes
9137 lt_cv_prog_compiler_static_works=yes
9141 LDFLAGS="$save_LDFLAGS"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9145 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9147 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9150 lt_prog_compiler_static=
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9161 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9164 lt_cv_prog_compiler_c_o=no
9165 $RM -r conftest 2>/dev/null
9169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9171 lt_compiler_flag="-o out/conftest2.$ac_objext"
9172 # Insert the option either (1) after the last *FLAGS variable, or
9173 # (2) before a word containing "conftest.", or (3) at the end.
9174 # Note that $ac_compile itself does not contain backslashes and begins
9175 # with a dollar sign (not a hyphen), so the echo should work correctly.
9176 lt_compile=`echo "$ac_compile" | $SED \
9177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9179 -e 's:$: $lt_compiler_flag:'`
9180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9181 (eval "$lt_compile" 2>out/conftest.err)
9183 cat out/conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9187 # The compiler can only warn and ignore the option if not recognized
9188 # So say no if there are warnings
9189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9192 lt_cv_prog_compiler_c_o=yes
9197 # SGI C++ compiler will create directory out/ii_files/ for
9198 # template instantiation
9199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9200 $RM out/* && rmdir out
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9216 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9219 lt_cv_prog_compiler_c_o=no
9220 $RM -r conftest 2>/dev/null
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9226 lt_compiler_flag="-o out/conftest2.$ac_objext"
9227 # Insert the option either (1) after the last *FLAGS variable, or
9228 # (2) before a word containing "conftest.", or (3) at the end.
9229 # Note that $ac_compile itself does not contain backslashes and begins
9230 # with a dollar sign (not a hyphen), so the echo should work correctly.
9231 lt_compile=`echo "$ac_compile" | $SED \
9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234 -e 's:$: $lt_compiler_flag:'`
9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9236 (eval "$lt_compile" 2>out/conftest.err)
9238 cat out/conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9242 # The compiler can only warn and ignore the option if not recognized
9243 # So say no if there are warnings
9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9247 lt_cv_prog_compiler_c_o=yes
9252 # SGI C++ compiler will create directory out/ii_files/ for
9253 # template instantiation
9254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9255 $RM out/* && rmdir out
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9267 hard_links="nottested"
9268 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9269 # do not overwrite the value of need_locks provided by the user
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9271 $as_echo_n "checking if we can lock with hard links... " >&6; }
9274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9276 ln conftest.a conftest.b 2>&5 || hard_links=no
9277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9279 $as_echo "$hard_links" >&6; }
9280 if test "$hard_links" = no; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9282 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9298 allow_undefined_flag=
9299 always_export_symbols=no
9301 archive_expsym_cmds=
9302 compiler_needs_object=no
9303 enable_shared_with_static_runtimes=no
9304 export_dynamic_flag_spec=
9305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9306 hardcode_automatic=no
9308 hardcode_direct_absolute=no
9309 hardcode_libdir_flag_spec=
9310 hardcode_libdir_flag_spec_ld=
9311 hardcode_libdir_separator=
9313 hardcode_shlibpath_var=unsupported
9315 link_all_deplibs=unknown
9318 old_archive_from_new_cmds=
9319 old_archive_from_expsyms_cmds=
9320 thread_safe_flag_spec=
9321 whole_archive_flag_spec=
9322 # include_expsyms should be a list of space-separated symbols to be *always*
9323 # included in the symbol list
9325 # exclude_expsyms can be an extended regexp of symbols to exclude
9326 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9327 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9328 # as well as any symbol that contains `d'.
9329 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9330 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9331 # platforms (ab)use it in PIC code, but their linkers get confused if
9332 # the symbol is explicitly referenced. Since portable code cannot
9333 # rely on this symbol name, it's probably fine to never include it in
9334 # preloaded symbol tables.
9335 # Exclude shared library initialization/finalization symbols.
9336 extract_expsyms_cmds=
9339 cygwin* | mingw* | pw32* | cegcc*)
9340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9341 # When not using gcc, we currently assume that we are using
9342 # Microsoft Visual C++.
9343 if test "$GCC" != yes; then
9348 # we just hope/assume this is gcc and not c89 (= MSVC++)
9358 # On some targets, GNU ld is compatible enough with the native linker
9359 # that we're better off using the native interface for both.
9360 lt_use_gnu_ld_interface=no
9361 if test "$with_gnu_ld" = yes; then
9364 # The AIX port of GNU ld has always aspired to compatibility
9365 # with the native linker. However, as the warning in the GNU ld
9366 # block says, versions before 2.19.5* couldn't really create working
9367 # shared libraries, regardless of the interface used.
9368 case `$LD -v 2>&1` in
9369 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9370 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9371 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9373 lt_use_gnu_ld_interface=yes
9378 lt_use_gnu_ld_interface=yes
9383 if test "$lt_use_gnu_ld_interface" = yes; then
9384 # If archive_cmds runs LD, not CC, wlarc should be empty
9387 # Set some defaults for GNU ld with shared library support. These
9388 # are reset later if shared libraries are not supported. Putting them
9389 # here allows them to be overridden if necessary.
9390 runpath_var=LD_RUN_PATH
9391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 export_dynamic_flag_spec='${wl}--export-dynamic'
9393 # ancient GNU ld didn't support --whole-archive et. al.
9394 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9395 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9397 whole_archive_flag_spec=
9399 supports_anon_versioning=no
9400 case `$LD -v 2>&1` in
9401 *GNU\ gold*) supports_anon_versioning=yes ;;
9402 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9403 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9404 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9405 *\ 2.11.*) ;; # other 2.11 versions
9406 *) supports_anon_versioning=yes ;;
9409 # See if GNU ld supports shared libraries.
9412 # On AIX/PPC, the GNU linker is very broken
9413 if test "$host_cpu" != ia64; then
9417 *** Warning: the GNU linker, at least up to release 2.19, is reported
9418 *** to be unable to reliably create shared libraries on AIX.
9419 *** Therefore, libtool is disabling shared libraries support. If you
9420 *** really care for shared libraries, you may want to install binutils
9421 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9422 *** You will then need to restart the configuration process.
9431 # see comment about AmigaOS4 .so support
9432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds=''
9436 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)'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_minus_L=yes
9444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445 allow_undefined_flag=unsupported
9446 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9447 # support --undefined. This deserves some investigation. FIXME
9448 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454 cygwin* | mingw* | pw32* | cegcc*)
9455 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9456 # as there is no search path for DLLs.
9457 hardcode_libdir_flag_spec='-L$libdir'
9458 export_dynamic_flag_spec='${wl}--export-all-symbols'
9459 allow_undefined_flag=unsupported
9460 always_export_symbols=no
9461 enable_shared_with_static_runtimes=yes
9462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9464 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9466 # If the export-symbols file already is a .def file (1st line
9467 # is EXPORTS), use it as is; otherwise, prepend...
9468 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9469 cp $export_symbols $output_objdir/$soname.def;
9471 echo EXPORTS > $output_objdir/$soname.def;
9472 cat $export_symbols >> $output_objdir/$soname.def;
9474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 link_all_deplibs=yes
9487 hardcode_shlibpath_var=no
9488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9489 export_dynamic_flag_spec='${wl}-E'
9490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9491 # Instead, shared libraries are loaded at an image base (0x10000000 by
9492 # default) and relocated if they conflict, which is a slow very memory
9493 # consuming and fragmenting process. To avoid this, we pick a random,
9494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9495 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9497 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'
9500 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9502 if test "$host_os" = linux-dietlibc; then
9503 case $cc_basename in
9504 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9507 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9508 && test "$tmp_diet" = no
9510 tmp_addflag=' $pic_flag'
9511 tmp_sharedflag='-shared'
9512 case $cc_basename,$host_cpu in
9513 pgcc*) # Portland Group C compiler
9514 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'
9515 tmp_addflag=' $pic_flag'
9517 pgf77* | pgf90* | pgf95* | pgfortran*)
9518 # Portland Group f77 and f90 compilers
9519 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'
9520 tmp_addflag=' $pic_flag -Mnomain' ;;
9521 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9522 tmp_addflag=' -i_dynamic' ;;
9523 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9524 tmp_addflag=' -i_dynamic -nofor_main' ;;
9525 ifc* | ifort*) # Intel Fortran compiler
9526 tmp_addflag=' -nofor_main' ;;
9527 lf95*) # Lahey Fortran 8.1
9528 whole_archive_flag_spec=
9529 tmp_sharedflag='--shared' ;;
9530 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9531 tmp_sharedflag='-qmkshrobj'
9533 nvcc*) # Cuda Compiler Driver 2.2
9534 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'
9535 compiler_needs_object=yes
9538 case `$CC -V 2>&1 | sed 5q` in
9539 *Sun\ C*) # Sun C 5.9
9540 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'
9541 compiler_needs_object=yes
9542 tmp_sharedflag='-G' ;;
9543 *Sun\ F*) # Sun Fortran 8.3
9544 tmp_sharedflag='-G' ;;
9546 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 if test "x$supports_anon_versioning" = xyes; then
9549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9551 echo "local: *; };" >> $output_objdir/$libname.ver~
9552 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9555 case $cc_basename in
9556 xlf* | bgf* | bgxlf* | mpixlf*)
9557 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9558 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9559 hardcode_libdir_flag_spec=
9560 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9561 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9562 if test "x$supports_anon_versioning" = xyes; then
9563 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9565 echo "local: *; };" >> $output_objdir/$libname.ver~
9566 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9577 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9586 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9591 *** create shared libraries on Solaris systems. Therefore, libtool
9592 *** is disabling shared libraries support. We urge you to upgrade GNU
9593 *** binutils to release 2.9.1 or newer. Another option is to modify
9594 *** your PATH or compiler configuration so that the native linker is
9595 *** used, and then restart.
9598 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9607 case `$LD -v 2>&1` in
9608 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9612 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9613 *** reliably create shared libraries on SCO systems. Therefore, libtool
9614 *** is disabling shared libraries support. We urge you to upgrade GNU
9615 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9616 *** your PATH or compiler configuration so that the native linker is
9617 *** used, and then restart.
9622 # For security reasons, it is highly recommended that you always
9623 # use absolute paths for naming shared libraries, and exclude the
9624 # DT_RUNPATH tag from executables and libraries. But doing so
9625 # requires that you compile everything twice, which is a pain.
9626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9638 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_shlibpath_var=no
9645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9654 if test "$ld_shlibs" = no; then
9656 hardcode_libdir_flag_spec=
9657 export_dynamic_flag_spec=
9658 whole_archive_flag_spec=
9661 # PORTME fill in a description of your system's linker (not GNU ld)
9664 allow_undefined_flag=unsupported
9665 always_export_symbols=yes
9666 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'
9667 # Note: this linker hardcodes the directories in LIBPATH if there
9668 # are no directories specified by -L.
9669 hardcode_minus_L=yes
9670 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9671 # Neither direct hardcoding nor static linking is supported with a
9673 hardcode_direct=unsupported
9678 if test "$host_cpu" = ia64; then
9679 # On IA64, the linker does run time linking by default, so we don't
9680 # have to do anything special.
9681 aix_use_runtimelinking=no
9682 exp_sym_flag='-Bexport'
9685 # If we're using GNU nm, then we don't want the "-C" option.
9686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9687 # Also, AIX nm treats weak defined symbols like other global
9688 # defined symbols, whereas GNU nm marks them as "W".
9689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9690 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'
9692 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9694 aix_use_runtimelinking=no
9696 # Test if we are trying to use run time linking or normal
9697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9698 # need to do runtime linking.
9699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9700 for ld_flag in $LDFLAGS; do
9701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9702 aix_use_runtimelinking=yes
9709 exp_sym_flag='-bexport'
9710 no_entry_flag='-bnoentry'
9713 # When large executables or shared objects are built, AIX ld can
9714 # have problems creating the table of contents. If linking a library
9715 # or program results in "error TOC overflow" add -mminimal-toc to
9716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9721 hardcode_direct_absolute=yes
9722 hardcode_libdir_separator=':'
9723 link_all_deplibs=yes
9724 file_list_spec='${wl}-f,'
9726 if test "$GCC" = yes; then
9727 case $host_os in aix4.[012]|aix4.[012].*)
9728 # We only want to do this on AIX 4.2 and lower, the check
9729 # below for broken collect2 doesn't work under 4.3+
9730 collect2name=`${CC} -print-prog-name=collect2`
9731 if test -f "$collect2name" &&
9732 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9734 # We have reworked collect2
9737 # We have old collect2
9738 hardcode_direct=unsupported
9739 # It fails to find uninstalled libraries when the uninstalled
9740 # path is not listed in the libpath. Setting hardcode_minus_L
9741 # to unsupported forces relinking
9742 hardcode_minus_L=yes
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_libdir_separator=
9748 shared_flag='-shared'
9749 if test "$aix_use_runtimelinking" = yes; then
9750 shared_flag="$shared_flag "'${wl}-G'
9754 if test "$host_cpu" = ia64; then
9755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9756 # chokes on -Wl,-G. The following line is correct:
9759 if test "$aix_use_runtimelinking" = yes; then
9760 shared_flag='${wl}-G'
9762 shared_flag='${wl}-bM:SRE'
9767 export_dynamic_flag_spec='${wl}-bexpall'
9768 # It seems that -bexpall does not export symbols beginning with
9769 # underscore (_), so it is better to generate a list of symbols to export.
9770 always_export_symbols=yes
9771 if test "$aix_use_runtimelinking" = yes; then
9772 # Warning - without using the other runtime loading flags (-brtl),
9773 # -berok will link without error, but may produce a broken library.
9774 allow_undefined_flag='-berok'
9775 # Determine the default libpath from the value encoded in an
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9788 if ac_fn_c_try_link "$LINENO"; then :
9790 lt_aix_libpath_sed='
9791 /Import File Strings/,/^$/ {
9797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 # Check for a 64-bit object if we didn't find anything.
9799 if test -z "$aix_libpath"; then
9800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9807 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9808 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"
9810 if test "$host_cpu" = ia64; then
9811 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9812 allow_undefined_flag="-z nodefs"
9813 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"
9815 # Determine the default libpath from the value encoded in an
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9828 if ac_fn_c_try_link "$LINENO"; then :
9830 lt_aix_libpath_sed='
9831 /Import File Strings/,/^$/ {
9837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838 # Check for a 64-bit object if we didn't find anything.
9839 if test -z "$aix_libpath"; then
9840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9848 # Warning - without using the other run time loading flags,
9849 # -berok will link without error, but may produce a broken library.
9850 no_undefined_flag=' ${wl}-bernotok'
9851 allow_undefined_flag=' ${wl}-berok'
9852 if test "$with_gnu_ld" = yes; then
9853 # We only use this code for GNU lds that support --whole-archive.
9854 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9856 # Exported symbols can be pulled into shared objects from archives
9857 whole_archive_flag_spec='$convenience'
9859 archive_cmds_need_lc=yes
9860 # This is similar to how AIX traditionally builds its shared libraries.
9861 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'
9869 # see comment about AmigaOS4 .so support
9870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9871 archive_expsym_cmds=''
9874 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)'
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 hardcode_minus_L=yes
9882 export_dynamic_flag_spec=-rdynamic
9885 cygwin* | mingw* | pw32* | cegcc*)
9886 # When not using gcc, we currently assume that we are using
9887 # Microsoft Visual C++.
9888 # hardcode_libdir_flag_spec is actually meaningless, as there is
9889 # no search path for DLLs.
9890 hardcode_libdir_flag_spec=' '
9891 allow_undefined_flag=unsupported
9892 # Tell ltmain to make .lib files, not .a files.
9894 # Tell ltmain to make .dll files, not .so files.
9896 # FIXME: Setting linknames here is a bad hack.
9897 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9898 # The linker will automatically build a .lib file if we build a DLL.
9899 old_archive_from_new_cmds='true'
9900 # FIXME: Should let the user specify the lib program.
9901 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9902 fix_srcfile_path='`cygpath -w "$srcfile"`'
9903 enable_shared_with_static_runtimes=yes
9906 darwin* | rhapsody*)
9909 archive_cmds_need_lc=no
9911 hardcode_automatic=yes
9912 hardcode_shlibpath_var=unsupported
9913 if test "$lt_cv_ld_force_load" = "yes"; then
9914 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\"`'
9916 whole_archive_flag_spec=''
9918 link_all_deplibs=yes
9919 allow_undefined_flag="$_lt_dar_allow_undefined"
9920 case $cc_basename in
9921 ifort*) _lt_dar_can_shared=yes ;;
9922 *) _lt_dar_can_shared=$GCC ;;
9924 if test "$_lt_dar_can_shared" = "yes"; then
9925 output_verbose_link_cmd=func_echo_all
9926 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9927 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9928 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}"
9929 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}"
9938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_shlibpath_var=no
9943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9944 # support. Future versions do this automatically, but an explicit c++rt0.o
9945 # does not break anything, and helps significantly (at the cost of a little
9948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9949 hardcode_libdir_flag_spec='-R$libdir'
9951 hardcode_shlibpath_var=no
9954 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_minus_L=yes
9959 hardcode_shlibpath_var=no
9962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9963 freebsd* | dragonfly*)
9964 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9965 hardcode_libdir_flag_spec='-R$libdir'
9967 hardcode_shlibpath_var=no
9971 if test "$GCC" = yes; then
9972 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'
9974 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'
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
9980 # hardcode_minus_L: Not really in the search PATH,
9981 # but as the default location of the library.
9982 hardcode_minus_L=yes
9983 export_dynamic_flag_spec='${wl}-E'
9987 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9988 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992 if test "$with_gnu_ld" = no; then
9993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994 hardcode_libdir_flag_spec_ld='+b $libdir'
9995 hardcode_libdir_separator=:
9997 hardcode_direct_absolute=yes
9998 export_dynamic_flag_spec='${wl}-E'
9999 # hardcode_minus_L: Not really in the search PATH,
10000 # but as the default location of the library.
10001 hardcode_minus_L=yes
10006 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10009 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10021 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10028 # Older versions of the 11.00 compiler do not understand -b yet
10029 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10031 $as_echo_n "checking if $CC understands -b... " >&6; }
10032 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
10035 lt_cv_prog_compiler__b=no
10036 save_LDFLAGS="$LDFLAGS"
10037 LDFLAGS="$LDFLAGS -b"
10038 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10040 # The linker can only warn and ignore the option if not recognized
10041 # So say no if there are warnings
10042 if test -s conftest.err; then
10043 # Append any errors to the config.log.
10044 cat conftest.err 1>&5
10045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047 if diff conftest.exp conftest.er2 >/dev/null; then
10048 lt_cv_prog_compiler__b=yes
10051 lt_cv_prog_compiler__b=yes
10055 LDFLAGS="$save_LDFLAGS"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10059 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10061 if test x"$lt_cv_prog_compiler__b" = xyes; then
10062 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10070 if test "$with_gnu_ld" = no; then
10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10072 hardcode_libdir_separator=:
10077 hardcode_shlibpath_var=no
10080 hardcode_direct=yes
10081 hardcode_direct_absolute=yes
10082 export_dynamic_flag_spec='${wl}-E'
10084 # hardcode_minus_L: Not really in the search PATH,
10085 # but as the default location of the library.
10086 hardcode_minus_L=yes
10092 irix5* | irix6* | nonstopux*)
10093 if test "$GCC" = yes; then
10094 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'
10095 # Try to use the -exported_symbol ld option, if it does not
10096 # work, assume that -exports_file does not work either and
10097 # implicitly export all symbols.
10098 save_LDFLAGS="$LDFLAGS"
10099 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10104 if ac_fn_c_try_link "$LINENO"; then :
10105 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'
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LDFLAGS="$save_LDFLAGS"
10112 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'
10113 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'
10115 archive_cmds_need_lc='no'
10116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117 hardcode_libdir_separator=:
10119 link_all_deplibs=yes
10123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10126 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10128 hardcode_libdir_flag_spec='-R$libdir'
10129 hardcode_direct=yes
10130 hardcode_shlibpath_var=no
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=yes
10136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137 hardcode_libdir_separator=:
10138 hardcode_shlibpath_var=no
10145 if test -f /usr/libexec/ld.so; then
10146 hardcode_direct=yes
10147 hardcode_shlibpath_var=no
10148 hardcode_direct_absolute=yes
10149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10153 export_dynamic_flag_spec='${wl}-E'
10156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_libdir_flag_spec='-R$libdir'
10161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10172 hardcode_libdir_flag_spec='-L$libdir'
10173 hardcode_minus_L=yes
10174 allow_undefined_flag=unsupported
10175 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'
10176 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10180 if test "$GCC" = yes; then
10181 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10182 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'
10184 allow_undefined_flag=' -expect_unresolved \*'
10185 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'
10187 archive_cmds_need_lc='no'
10188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10189 hardcode_libdir_separator=:
10192 osf4* | osf5*) # as osf3* with the addition of -msym flag
10193 if test "$GCC" = yes; then
10194 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10195 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'
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198 allow_undefined_flag=' -expect_unresolved \*'
10199 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'
10200 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~
10201 $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'
10203 # Both c and cxx compiler support -rpath directly
10204 hardcode_libdir_flag_spec='-rpath $libdir'
10206 archive_cmds_need_lc='no'
10207 hardcode_libdir_separator=:
10211 no_undefined_flag=' -z defs'
10212 if test "$GCC" = yes; then
10214 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10216 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10218 case `$CC -V 2>&1` in
10221 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10223 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10227 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10233 hardcode_libdir_flag_spec='-R$libdir'
10234 hardcode_shlibpath_var=no
10236 solaris2.[0-5] | solaris2.[0-5].*) ;;
10238 # The compiler driver will combine and reorder linker options,
10239 # but understands `-z linker_flag'. GCC discards it without `$wl',
10240 # but is careful enough not to reorder.
10241 # Supported since Solaris 2.6 (maybe 2.5.1?)
10242 if test "$GCC" = yes; then
10243 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10249 link_all_deplibs=yes
10253 if test "x$host_vendor" = xsequent; then
10254 # Use $CC to link under sequent, because it throws in some extra .o
10255 # files that make .init and .fini sections work.
10256 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10260 hardcode_libdir_flag_spec='-L$libdir'
10261 hardcode_direct=yes
10262 hardcode_minus_L=yes
10263 hardcode_shlibpath_var=no
10267 case $host_vendor in
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_direct=yes # is this really true???
10273 ## LD is ld it makes a PLAMLIB
10274 ## CC just makes a GrossModule.
10275 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10276 reload_cmds='$CC -r -o $output$reload_objs'
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10284 runpath_var='LD_RUN_PATH'
10285 hardcode_shlibpath_var=no
10289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290 hardcode_shlibpath_var=no
10291 export_dynamic_flag_spec='-Bexport'
10295 if test -d /usr/nec; then
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_shlibpath_var=no
10298 runpath_var=LD_RUN_PATH
10299 hardcode_runpath_var=yes
10304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10305 no_undefined_flag='${wl}-z,text'
10306 archive_cmds_need_lc=no
10307 hardcode_shlibpath_var=no
10308 runpath_var='LD_RUN_PATH'
10310 if test "$GCC" = yes; then
10311 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 sysv5* | sco3.2v5* | sco5v6*)
10320 # Note: We can NOT use -z defs as we might desire, because we do not
10321 # link with -lc, and that would cause any symbols used from libc to
10322 # always be unresolved, which means just about no library would
10323 # ever link correctly. If we're not using GNU ld we use -z text
10324 # though, which does catch some bad symbols but isn't as heavy-handed
10326 no_undefined_flag='${wl}-z,text'
10327 allow_undefined_flag='${wl}-z,nodefs'
10328 archive_cmds_need_lc=no
10329 hardcode_shlibpath_var=no
10330 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10331 hardcode_libdir_separator=':'
10332 link_all_deplibs=yes
10333 export_dynamic_flag_spec='${wl}-Bexport'
10334 runpath_var='LD_RUN_PATH'
10336 if test "$GCC" = yes; then
10337 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10347 hardcode_libdir_flag_spec='-L$libdir'
10348 hardcode_shlibpath_var=no
10356 if test x$host_vendor = xsni; then
10358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359 export_dynamic_flag_spec='${wl}-Blargedynsym'
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10366 $as_echo "$ld_shlibs" >&6; }
10367 test "$ld_shlibs" = no && can_build_shared=no
10369 with_gnu_ld=$with_gnu_ld
10386 # Do we need to explicitly link libc?
10388 case "x$archive_cmds_need_lc" in
10390 # Assume -lc should be added
10391 archive_cmds_need_lc=yes
10393 if test "$enable_shared" = yes && test "$GCC" = yes; then
10394 case $archive_cmds in
10396 # FIXME: we may have to deal with multi-command sequences.
10399 # Test whether the compiler implicitly links with -lc since on some
10400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10401 # to ld, don't add -lc before -lgcc.
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10403 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10404 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10411 (eval $ac_compile) 2>&5
10413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10414 test $ac_status = 0; } 2>conftest.err; then
10417 libobjs=conftest.$ac_objext
10419 wl=$lt_prog_compiler_wl
10420 pic_flag=$lt_prog_compiler_pic
10426 lt_save_allow_undefined_flag=$allow_undefined_flag
10427 allow_undefined_flag=
10428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10429 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10432 test $ac_status = 0; }
10434 lt_cv_archive_cmds_need_lc=no
10436 lt_cv_archive_cmds_need_lc=yes
10438 allow_undefined_flag=$lt_save_allow_undefined_flag
10440 cat conftest.err 1>&5
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10446 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10447 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10611 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10613 if test "$GCC" = yes; then
10615 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10616 *) lt_awk_arg="/^libraries:/" ;;
10619 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10620 *) lt_sed_strip_eq="s,=/,/,g" ;;
10622 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10623 case $lt_search_path_spec in
10625 # if the path contains ";" then we assume it to be the separator
10626 # otherwise default to the standard path separator (i.e. ":") - it is
10627 # assumed that no part of a normal pathname contains ";" but that should
10628 # okay in the real world where ";" in dirpaths is itself problematic.
10629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10635 # Ok, now we have the path, separated by spaces, we can step through it
10636 # and add multilib dir if necessary.
10637 lt_tmp_lt_search_path_spec=
10638 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10639 for lt_sys_path in $lt_search_path_spec; do
10640 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10643 test -d "$lt_sys_path" && \
10644 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10647 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10648 BEGIN {RS=" "; FS="/|\n";} {
10651 for (lt_i = NF; lt_i > 0; lt_i--) {
10652 if ($lt_i != "" && $lt_i != ".") {
10653 if ($lt_i == "..") {
10656 if (lt_count == 0) {
10657 lt_foo="/" $lt_i lt_foo;
10664 if (lt_foo != "") { lt_freq[lt_foo]++; }
10665 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10667 # AWK program above erroneously prepends '/' to C:/dos/paths
10670 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10671 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10673 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10677 library_names_spec=
10678 libname_spec='lib$name'
10682 postuninstall_cmds=
10686 shlibpath_overrides_runpath=unknown
10688 dynamic_linker="$host_os ld.so"
10689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10690 need_lib_prefix=unknown
10691 hardcode_into_libs=no
10693 # when you set need_version to no, make sure it does not cause -set_version
10694 # flags to be left without arguments
10695 need_version=unknown
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10701 shlibpath_var=LIBPATH
10703 # AIX 3 has no versioning support, so we append a major version to the name.
10704 soname_spec='${libname}${release}${shared_ext}$major'
10711 hardcode_into_libs=yes
10712 if test "$host_cpu" = ia64; then
10713 # AIX 5 supports IA64
10714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10715 shlibpath_var=LD_LIBRARY_PATH
10717 # With GCC up to 2.95.x, collect2 would create an import file
10718 # for dependence libraries. The import file would start with
10719 # the line `#! .'. This would cause the generated library to
10720 # depend on `.', always an invalid library. This was fixed in
10721 # development snapshots of GCC prior to 3.0.
10723 aix4 | aix4.[01] | aix4.[01].*)
10724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10726 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10729 can_build_shared=no
10733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10734 # soname into executable. Probably we can add versioning support to
10735 # collect2, so additional links can be useful in future.
10736 if test "$aix_use_runtimelinking" = yes; then
10737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10738 # instead of lib<name>.a to let people know that these are not
10739 # typical AIX shared libraries.
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 # We preserve .a as extension for shared libraries through AIX4.2
10743 # and later when we are not doing run time linking.
10744 library_names_spec='${libname}${release}.a $libname.a'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LIBPATH
10754 # Since July 2007 AmigaOS4 officially supports .so libraries.
10755 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 library_names_spec='$libname.ixlibrary $libname.a'
10760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10761 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'
10767 library_names_spec='${libname}${shared_ext}'
10768 dynamic_linker="$host_os ld.so"
10769 shlibpath_var=LIBRARY_PATH
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10781 # the default ld.so.conf also contains /usr/contrib/lib and
10782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10783 # libtool to hard-code these into programs
10786 cygwin* | mingw* | pw32* | cegcc*)
10787 version_type=windows
10792 case $GCC,$host_os in
10793 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10794 library_names_spec='$libname.dll.a'
10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10796 postinstall_cmds='base_file=`basename \${file}`~
10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10798 dldir=$destdir/`dirname \$dlpath`~
10799 test -d \$dldir || mkdir -p \$dldir~
10800 $install_prog $dir/$dlname \$dldir/$dlname~
10801 chmod a+x \$dldir/$dlname~
10802 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10803 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10806 dlpath=$dir/\$dldll~
10808 shlibpath_overrides_runpath=yes
10812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10813 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10815 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10818 # MinGW DLLs use traditional 'lib' prefix
10819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10822 # pw32 DLLs use 'pw' prefix rather than 'lib'
10823 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10829 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10832 dynamic_linker='Win32 ld.exe'
10833 # FIXME: first we should search . and the directory the executable is in
10837 darwin* | rhapsody*)
10838 dynamic_linker="$host_os dyld"
10839 version_type=darwin
10842 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10843 soname_spec='${libname}${release}${major}$shared_ext'
10844 shlibpath_overrides_runpath=yes
10845 shlibpath_var=DYLD_LIBRARY_PATH
10846 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10848 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 shlibpath_var=LD_LIBRARY_PATH
10861 freebsd* | dragonfly*)
10862 # DragonFly does not have aout. When/if they implement a new
10863 # versioning mechanism, adjust this.
10864 if test -x /usr/bin/objformat; then
10865 objformat=`/usr/bin/objformat`
10868 freebsd[23].*) objformat=aout ;;
10869 *) objformat=elf ;;
10872 version_type=freebsd-$objformat
10873 case $version_type in
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes
10889 freebsd3.[01]* | freebsdelf3.[01]*)
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10893 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10894 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10895 shlibpath_overrides_runpath=no
10896 hardcode_into_libs=yes
10898 *) # from 4.6 on, and DragonFly
10899 shlibpath_overrides_runpath=yes
10900 hardcode_into_libs=yes
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 hardcode_into_libs=yes
10919 dynamic_linker="$host_os runtime_loader"
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 shlibpath_var=LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10925 hardcode_into_libs=yes
10928 hpux9* | hpux10* | hpux11*)
10929 # Give a soname corresponding to the major version so that dld.sl refuses to
10930 # link against other versions.
10937 hardcode_into_libs=yes
10938 dynamic_linker="$host_os dld.so"
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 if test "X$HPUX_IA64_MODE" = X32; then
10944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10952 hardcode_into_libs=yes
10953 dynamic_linker="$host_os dld.sl"
10954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10963 dynamic_linker="$host_os dld.sl"
10964 shlibpath_var=SHLIB_PATH
10965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10970 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10971 postinstall_cmds='chmod 555 $lib'
10972 # or fails outright, so override atomically:
10973 install_override_mode=555
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=no
10985 hardcode_into_libs=yes
10988 irix5* | irix6* | nonstopux*)
10990 nonstopux*) version_type=nonstopux ;;
10992 if test "$lt_cv_prog_gnu_ld" = yes; then
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11003 irix5* | nonstopux*)
11004 libsuff= shlibsuff=
11007 case $LD in # libtool.m4 will add one of these switches to LD
11008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11009 libsuff= shlibsuff= libmagic=32-bit;;
11010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11011 libsuff=32 shlibsuff=N32 libmagic=N32;;
11012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11014 *) libsuff= shlibsuff= libmagic=never-match;;
11018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11019 shlibpath_overrides_runpath=no
11020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11022 hardcode_into_libs=yes
11025 # No shared lib support for Linux oldld, aout, or coff.
11026 linux*oldld* | linux*aout* | linux*coff*)
11030 # This must be Linux ELF.
11031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=no
11041 # Some binutils ld are patched to set DT_RUNPATH
11042 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11045 lt_cv_shlibpath_overrides_runpath=no
11046 save_LDFLAGS=$LDFLAGS
11047 save_libdir=$libdir
11048 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11049 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11063 lt_cv_shlibpath_overrides_runpath=yes
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LDFLAGS=$save_LDFLAGS
11069 libdir=$save_libdir
11073 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075 # This implies no fast_install, which is unacceptable.
11076 # Some rework will be needed to allow for fast_install
11077 # before this can be enabled.
11078 hardcode_into_libs=yes
11080 # Append ld.so.conf contents to the search path
11081 if test -f /etc/ld.so.conf; then
11082 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' ' '`
11083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11086 # We used to test for /lib/ld.so.1 and disable shared libraries on
11087 # powerpc, because MkLinux only supported shared libraries with the
11088 # GNU dynamic linker. Since this was broken with cross compilers,
11089 # most powerpc-linux boxes support dynamic linking these days and
11090 # people can always --disable-shared, the test was removed, and we
11091 # assume the GNU/Linux dynamic linker is in use.
11092 dynamic_linker='GNU/Linux ld.so'
11099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11102 dynamic_linker='NetBSD (a.out) ld.so'
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 dynamic_linker='NetBSD ld.elf_so'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 hardcode_into_libs=yes
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=yes
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=no
11128 hardcode_into_libs=yes
11129 dynamic_linker='ldqnx.so'
11134 sys_lib_dlsearch_path_spec="/usr/lib"
11136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11138 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11139 *) need_version=no ;;
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11146 openbsd2.[89] | openbsd2.[89].*)
11147 shlibpath_overrides_runpath=no
11150 shlibpath_overrides_runpath=yes
11154 shlibpath_overrides_runpath=yes
11159 libname_spec='$name'
11162 library_names_spec='$libname${shared_ext} $libname.a'
11163 dynamic_linker='OS/2 ld.exe'
11164 shlibpath_var=LIBPATH
11167 osf3* | osf4* | osf5*)
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 hardcode_into_libs=yes
11191 # ldd complains unless libraries are executable
11192 postinstall_cmds='chmod +x $lib'
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=yes
11201 if test "$with_gnu_ld" = yes; then
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 case $host_vendor in
11214 shlibpath_overrides_runpath=no
11216 runpath_var=LD_RUN_PATH
11224 shlibpath_overrides_runpath=no
11225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11231 if test -d /usr/nec ;then
11233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11234 soname_spec='$libname${shared_ext}.$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11240 version_type=freebsd-elf
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=yes
11247 hardcode_into_libs=yes
11248 if test "$with_gnu_ld" = yes; then
11249 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11251 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11254 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11258 sys_lib_dlsearch_path_spec='/usr/lib'
11262 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=no
11269 hardcode_into_libs=yes
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11284 $as_echo "$dynamic_linker" >&6; }
11285 test "$dynamic_linker" = no && can_build_shared=no
11287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11288 if test "$GCC" = yes; then
11289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11292 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11293 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11295 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11296 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11391 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11393 if test -n "$hardcode_libdir_flag_spec" ||
11394 test -n "$runpath_var" ||
11395 test "X$hardcode_automatic" = "Xyes" ; then
11397 # We can hardcode non-existent directories.
11398 if test "$hardcode_direct" != no &&
11399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11400 # have to relink, otherwise we might link with an installed library
11401 # when we should be linking with a yet-to-be-installed one
11402 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11403 test "$hardcode_minus_L" != no; then
11404 # Linking always hardcodes the temporary library directory.
11405 hardcode_action=relink
11407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11408 hardcode_action=immediate
11411 # We cannot hardcode anything, or else we can only hardcode existing
11413 hardcode_action=unsupported
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11416 $as_echo "$hardcode_action" >&6; }
11418 if test "$hardcode_action" = relink ||
11419 test "$inherit_rpath" = yes; then
11420 # Fast installation is not supported
11421 enable_fast_install=no
11422 elif test "$shlibpath_overrides_runpath" = yes ||
11423 test "$enable_shared" = no; then
11424 # Fast installation is not necessary
11425 enable_fast_install=needless
11433 if test "x$enable_dlopen" != xyes; then
11434 enable_dlopen=unknown
11435 enable_dlopen_self=unknown
11436 enable_dlopen_self_static=unknown
11443 lt_cv_dlopen="load_add_on"
11445 lt_cv_dlopen_self=yes
11448 mingw* | pw32* | cegcc*)
11449 lt_cv_dlopen="LoadLibrary"
11454 lt_cv_dlopen="dlopen"
11459 # if libdl is installed we need to link against it
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11461 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11465 ac_check_lib_save_LIBS=$LIBS
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_dl_dlopen=yes
11488 ac_cv_lib_dl_dlopen=no
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11495 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11496 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11497 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11500 lt_cv_dlopen="dyld"
11502 lt_cv_dlopen_self=yes
11509 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11510 if test "x$ac_cv_func_shl_load" = x""yes; then :
11511 lt_cv_dlopen="shl_load"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11514 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11515 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11518 ac_check_lib_save_LIBS=$LIBS
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11533 return shl_load ();
11538 if ac_fn_c_try_link "$LINENO"; then :
11539 ac_cv_lib_dld_shl_load=yes
11541 ac_cv_lib_dld_shl_load=no
11543 rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_lib_save_LIBS
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11548 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11549 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11552 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11553 if test "x$ac_cv_func_dlopen" = x""yes; then :
11554 lt_cv_dlopen="dlopen"
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11561 ac_check_lib_save_LIBS=$LIBS
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11566 /* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 ac_cv_lib_dl_dlopen=yes
11584 ac_cv_lib_dl_dlopen=no
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11591 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11592 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11596 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11597 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lsvld $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11620 if ac_fn_c_try_link "$LINENO"; then :
11621 ac_cv_lib_svld_dlopen=yes
11623 ac_cv_lib_svld_dlopen=no
11625 rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11630 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11631 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11635 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11639 ac_check_lib_save_LIBS=$LIBS
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11654 return dld_link ();
11659 if ac_fn_c_try_link "$LINENO"; then :
11660 ac_cv_lib_dld_dld_link=yes
11662 ac_cv_lib_dld_dld_link=no
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11669 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11670 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11671 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11692 if test "x$lt_cv_dlopen" != xno; then
11698 case $lt_cv_dlopen in
11700 save_CPPFLAGS="$CPPFLAGS"
11701 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11703 save_LDFLAGS="$LDFLAGS"
11704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11707 LIBS="$lt_cv_dlopen_libs $LIBS"
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11710 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11711 if test "${lt_cv_dlopen_self+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
11714 if test "$cross_compiling" = yes; then :
11715 lt_cv_dlopen_self=cross
11717 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11718 lt_status=$lt_dlunknown
11719 cat > conftest.$ac_ext <<_LT_EOF
11720 #line 11720 "configure"
11721 #include "confdefs.h"
11730 # define LT_DLGLOBAL RTLD_GLOBAL
11733 # define LT_DLGLOBAL DL_GLOBAL
11735 # define LT_DLGLOBAL 0
11739 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11740 find out it does not work in some platform. */
11741 #ifndef LT_DLLAZY_OR_NOW
11743 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11746 # define LT_DLLAZY_OR_NOW DL_LAZY
11749 # define LT_DLLAZY_OR_NOW RTLD_NOW
11752 # define LT_DLLAZY_OR_NOW DL_NOW
11754 # define LT_DLLAZY_OR_NOW 0
11761 /* When -fvisbility=hidden is used, assume the code has been annotated
11762 correspondingly for the symbols needed. */
11763 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11764 void fnord () __attribute__((visibility("default")));
11767 void fnord () { int i=42; }
11770 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11771 int status = $lt_dlunknown;
11775 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11778 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11779 else puts (dlerror ());
11781 /* dlclose (self); */
11789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11790 (eval $ac_link) 2>&5
11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11794 (./conftest; exit; ) >&5 2>/dev/null
11796 case x$lt_status in
11797 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11799 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11802 # compilation failed
11803 lt_cv_dlopen_self=no
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11811 $as_echo "$lt_cv_dlopen_self" >&6; }
11813 if test "x$lt_cv_dlopen_self" = xyes; then
11814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11816 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11817 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11820 if test "$cross_compiling" = yes; then :
11821 lt_cv_dlopen_self_static=cross
11823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11824 lt_status=$lt_dlunknown
11825 cat > conftest.$ac_ext <<_LT_EOF
11826 #line 11826 "configure"
11827 #include "confdefs.h"
11836 # define LT_DLGLOBAL RTLD_GLOBAL
11839 # define LT_DLGLOBAL DL_GLOBAL
11841 # define LT_DLGLOBAL 0
11845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11846 find out it does not work in some platform. */
11847 #ifndef LT_DLLAZY_OR_NOW
11849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11852 # define LT_DLLAZY_OR_NOW DL_LAZY
11855 # define LT_DLLAZY_OR_NOW RTLD_NOW
11858 # define LT_DLLAZY_OR_NOW DL_NOW
11860 # define LT_DLLAZY_OR_NOW 0
11867 /* When -fvisbility=hidden is used, assume the code has been annotated
11868 correspondingly for the symbols needed. */
11869 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11870 void fnord () __attribute__((visibility("default")));
11873 void fnord () { int i=42; }
11876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11877 int status = $lt_dlunknown;
11881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11885 else puts (dlerror ());
11887 /* dlclose (self); */
11895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11896 (eval $ac_link) 2>&5
11898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11899 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11900 (./conftest; exit; ) >&5 2>/dev/null
11902 case x$lt_status in
11903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11908 # compilation failed
11909 lt_cv_dlopen_self_static=no
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11917 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11920 CPPFLAGS="$save_CPPFLAGS"
11921 LDFLAGS="$save_LDFLAGS"
11926 case $lt_cv_dlopen_self in
11927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928 *) enable_dlopen_self=unknown ;;
11931 case $lt_cv_dlopen_self_static in
11932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933 *) enable_dlopen_self_static=unknown ;;
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11956 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11957 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11958 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11959 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 $as_echo "yes" >&6; }
11963 # FIXME - insert some real tests, host_os isn't really good enough
11966 if test -n "$STRIP" ; then
11967 striplib="$STRIP -x"
11968 old_striplib="$STRIP -S"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11994 # Report which library types will actually be built
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11996 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11998 $as_echo "$can_build_shared" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12001 $as_echo_n "checking whether to build shared libraries... " >&6; }
12002 test "$can_build_shared" = "no" && enable_shared=no
12004 # On AIX, shared libraries and static libraries use the same namespace, and
12005 # are all built from PIC.
12008 test "$enable_shared" = yes && enable_static=no
12009 if test -n "$RANLIB"; then
12010 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12011 postinstall_cmds='$RANLIB $lib'
12016 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12017 test "$enable_shared" = yes && enable_static=no
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12022 $as_echo "$enable_shared" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12025 $as_echo_n "checking whether to build static libraries... " >&6; }
12026 # Make sure either enable_shared or enable_static is yes.
12027 test "$enable_shared" = yes || enable_static=yes
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12029 $as_echo "$enable_static" >&6; }
12036 ac_cpp='$CPP $CPPFLAGS'
12037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12043 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12044 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12045 (test "X$CXX" != "Xg++"))) ; then
12047 ac_cpp='$CXXCPP $CPPFLAGS'
12048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12053 if test -z "$CXXCPP"; then
12054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12057 # Double quotes because CXXCPP needs to be expanded
12058 for CXXCPP in "$CXX -E" "/lib/cpp"
12060 ac_preproc_ok=false
12061 for ac_cxx_preproc_warn_flag in '' yes
12063 # Use a header file that comes with gcc, so configuring glibc
12064 # with a fresh cross-compiler works.
12065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 # <limits.h> exists even on freestanding compilers.
12067 # On the NeXT, cc -E runs the code through the compiler's parser,
12068 # not just through cpp. "Syntax error" is here to catch this case.
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12072 # include <limits.h>
12074 # include <assert.h>
12078 if ac_fn_cxx_try_cpp "$LINENO"; then :
12081 # Broken: fails on valid input.
12084 rm -f conftest.err conftest.$ac_ext
12086 # OK, works on sane cases. Now check whether nonexistent headers
12087 # can be detected and how.
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 #include <ac_nonexistent.h>
12092 if ac_fn_cxx_try_cpp "$LINENO"; then :
12093 # Broken: success on invalid input.
12096 # Passes both tests.
12100 rm -f conftest.err conftest.$ac_ext
12103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12104 rm -f conftest.err conftest.$ac_ext
12105 if $ac_preproc_ok; then :
12110 ac_cv_prog_CXXCPP=$CXXCPP
12113 CXXCPP=$ac_cv_prog_CXXCPP
12115 ac_cv_prog_CXXCPP=$CXXCPP
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12118 $as_echo "$CXXCPP" >&6; }
12119 ac_preproc_ok=false
12120 for ac_cxx_preproc_warn_flag in '' yes
12122 # Use a header file that comes with gcc, so configuring glibc
12123 # with a fresh cross-compiler works.
12124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125 # <limits.h> exists even on freestanding compilers.
12126 # On the NeXT, cc -E runs the code through the compiler's parser,
12127 # not just through cpp. "Syntax error" is here to catch this case.
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12131 # include <limits.h>
12133 # include <assert.h>
12137 if ac_fn_cxx_try_cpp "$LINENO"; then :
12140 # Broken: fails on valid input.
12143 rm -f conftest.err conftest.$ac_ext
12145 # OK, works on sane cases. Now check whether nonexistent headers
12146 # can be detected and how.
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #include <ac_nonexistent.h>
12151 if ac_fn_cxx_try_cpp "$LINENO"; then :
12152 # Broken: success on invalid input.
12155 # Passes both tests.
12159 rm -f conftest.err conftest.$ac_ext
12162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12163 rm -f conftest.err conftest.$ac_ext
12164 if $ac_preproc_ok; then :
12167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12169 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12170 See \`config.log' for more details." "$LINENO" 5; }
12174 ac_cpp='$CPP $CPPFLAGS'
12175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12180 _lt_caught_CXX_error=yes
12184 ac_cpp='$CXXCPP $CPPFLAGS'
12185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12189 archive_cmds_need_lc_CXX=no
12190 allow_undefined_flag_CXX=
12191 always_export_symbols_CXX=no
12192 archive_expsym_cmds_CXX=
12193 compiler_needs_object_CXX=no
12194 export_dynamic_flag_spec_CXX=
12195 hardcode_direct_CXX=no
12196 hardcode_direct_absolute_CXX=no
12197 hardcode_libdir_flag_spec_CXX=
12198 hardcode_libdir_flag_spec_ld_CXX=
12199 hardcode_libdir_separator_CXX=
12200 hardcode_minus_L_CXX=no
12201 hardcode_shlibpath_var_CXX=unsupported
12202 hardcode_automatic_CXX=no
12203 inherit_rpath_CXX=no
12205 module_expsym_cmds_CXX=
12206 link_all_deplibs_CXX=unknown
12207 old_archive_cmds_CXX=$old_archive_cmds
12208 reload_flag_CXX=$reload_flag
12209 reload_cmds_CXX=$reload_cmds
12210 no_undefined_flag_CXX=
12211 whole_archive_flag_spec_CXX=
12212 enable_shared_with_static_runtimes_CXX=no
12214 # Source file extension for C++ test sources.
12217 # Object file extension for compiled C++ test sources.
12221 # No sense in running all these tests if we already determined that
12222 # the CXX compiler isn't working. Some variables (like enable_shared)
12223 # are currently assumed to apply to all compilers on this platform,
12224 # and will be corrupted by setting them based on a non-working compiler.
12225 if test "$_lt_caught_CXX_error" != yes; then
12226 # Code to be used in simple compile tests
12227 lt_simple_compile_test_code="int some_variable = 0;"
12229 # Code to be used in simple link tests
12230 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12239 # If no C compiler was specified, use CC.
12242 # If no C compiler flags were specified, use CFLAGS.
12243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12245 # Allow CC to be a program name with arguments.
12249 # save warnings/boilerplate of simple test code
12250 ac_outfile=conftest.$ac_objext
12251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12253 _lt_compiler_boilerplate=`cat conftest.err`
12256 ac_outfile=conftest.$ac_objext
12257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12259 _lt_linker_boilerplate=`cat conftest.err`
12263 # Allow CC to be a program name with arguments.
12268 lt_save_with_gnu_ld=$with_gnu_ld
12269 lt_save_path_LD=$lt_cv_path_LD
12270 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12271 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12273 $as_unset lt_cv_prog_gnu_ld
12275 if test -n "${lt_cv_path_LDCXX+set}"; then
12276 lt_cv_path_LD=$lt_cv_path_LDCXX
12278 $as_unset lt_cv_path_LD
12280 test -z "${LDCXX+set}" || LD=$LDCXX
12284 for cc_temp in $compiler""; do
12286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12292 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12295 if test -n "$compiler"; then
12296 # We don't want -fno-exception when compiling C++ code, so set the
12297 # no_builtin_flag separately
12298 if test "$GXX" = yes; then
12299 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12301 lt_prog_compiler_no_builtin_flag_CXX=
12304 if test "$GXX" = yes; then
12305 # Set up default GNU C++ configuration
12309 # Check whether --with-gnu-ld was given.
12310 if test "${with_gnu_ld+set}" = set; then :
12311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12317 if test "$GCC" = yes; then
12318 # Check if gcc -print-prog-name=ld gives a path.
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12320 $as_echo_n "checking for ld used by $CC... " >&6; }
12323 # gcc leaves a trailing carriage return which upsets mingw
12324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12329 # Accept absolute paths.
12331 re_direlt='/[^/][^/]*/\.\./'
12332 # Canonicalize the pathname of ld
12333 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12334 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12335 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12337 test -z "$LD" && LD="$ac_prog"
12340 # If it fails, then pretend we aren't using GCC.
12344 # If it is relative, then search for the first ld in PATH.
12345 with_gnu_ld=unknown
12348 elif test "$with_gnu_ld" = yes; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12350 $as_echo_n "checking for GNU ld... " >&6; }
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12353 $as_echo_n "checking for non-GNU ld... " >&6; }
12355 if test "${lt_cv_path_LD+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12358 if test -z "$LD"; then
12359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12360 for ac_dir in $PATH; do
12362 test -z "$ac_dir" && ac_dir=.
12363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12364 lt_cv_path_LD="$ac_dir/$ac_prog"
12365 # Check to see if the program is GNU ld. I'd rather use --version,
12366 # but apparently some variants of GNU ld only accept -v.
12367 # Break only if it was the GNU/non-GNU ld that we prefer.
12368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12369 *GNU* | *'with BFD'*)
12370 test "$with_gnu_ld" != no && break
12373 test "$with_gnu_ld" != yes && break
12380 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12384 LD="$lt_cv_path_LD"
12385 if test -n "$LD"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12387 $as_echo "$LD" >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12392 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12394 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12395 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12398 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12399 case `$LD -v 2>&1 </dev/null` in
12400 *GNU* | *'with BFD'*)
12401 lt_cv_prog_gnu_ld=yes
12404 lt_cv_prog_gnu_ld=no
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12409 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12410 with_gnu_ld=$lt_cv_prog_gnu_ld
12418 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12419 # archiving commands below assume that GNU ld is being used.
12420 if test "$with_gnu_ld" = yes; then
12421 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12427 # If archive_cmds runs LD, not CC, wlarc should be empty
12428 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12429 # investigate it a little bit more. (MM)
12432 # ancient GNU ld didn't support --whole-archive et. al.
12433 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12434 $GREP 'no-whole-archive' > /dev/null; then
12435 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12437 whole_archive_flag_spec_CXX=
12443 # A generic and very simple default shared library creation
12444 # command for GNU C++ for the case where it uses the native
12445 # linker, instead of GNU ld. If possible, this setting should
12446 # overridden to take advantage of the native linker features on
12447 # the platform it is being used on.
12448 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12451 # Commands to make compiler produce verbose output that lists
12452 # what "hidden" libraries, object files and flags are used when
12453 # linking a shared library.
12454 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12462 # PORTME: fill in a description of your system's C++ link characteristics
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12464 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12468 # FIXME: insert proper C++ library support
12472 if test "$host_cpu" = ia64; then
12473 # On IA64, the linker does run time linking by default, so we don't
12474 # have to do anything special.
12475 aix_use_runtimelinking=no
12476 exp_sym_flag='-Bexport'
12479 aix_use_runtimelinking=no
12481 # Test if we are trying to use run time linking or normal
12482 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12483 # need to do runtime linking.
12484 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12485 for ld_flag in $LDFLAGS; do
12488 aix_use_runtimelinking=yes
12496 exp_sym_flag='-bexport'
12497 no_entry_flag='-bnoentry'
12500 # When large executables or shared objects are built, AIX ld can
12501 # have problems creating the table of contents. If linking a library
12502 # or program results in "error TOC overflow" add -mminimal-toc to
12503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12506 archive_cmds_CXX=''
12507 hardcode_direct_CXX=yes
12508 hardcode_direct_absolute_CXX=yes
12509 hardcode_libdir_separator_CXX=':'
12510 link_all_deplibs_CXX=yes
12511 file_list_spec_CXX='${wl}-f,'
12513 if test "$GXX" = yes; then
12514 case $host_os in aix4.[012]|aix4.[012].*)
12515 # We only want to do this on AIX 4.2 and lower, the check
12516 # below for broken collect2 doesn't work under 4.3+
12517 collect2name=`${CC} -print-prog-name=collect2`
12518 if test -f "$collect2name" &&
12519 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12521 # We have reworked collect2
12524 # We have old collect2
12525 hardcode_direct_CXX=unsupported
12526 # It fails to find uninstalled libraries when the uninstalled
12527 # path is not listed in the libpath. Setting hardcode_minus_L
12528 # to unsupported forces relinking
12529 hardcode_minus_L_CXX=yes
12530 hardcode_libdir_flag_spec_CXX='-L$libdir'
12531 hardcode_libdir_separator_CXX=
12534 shared_flag='-shared'
12535 if test "$aix_use_runtimelinking" = yes; then
12536 shared_flag="$shared_flag "'${wl}-G'
12540 if test "$host_cpu" = ia64; then
12541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12542 # chokes on -Wl,-G. The following line is correct:
12545 if test "$aix_use_runtimelinking" = yes; then
12546 shared_flag='${wl}-G'
12548 shared_flag='${wl}-bM:SRE'
12553 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12554 # It seems that -bexpall does not export symbols beginning with
12555 # underscore (_), so it is better to generate a list of symbols to
12557 always_export_symbols_CXX=yes
12558 if test "$aix_use_runtimelinking" = yes; then
12559 # Warning - without using the other runtime loading flags (-brtl),
12560 # -berok will link without error, but may produce a broken library.
12561 allow_undefined_flag_CXX='-berok'
12562 # Determine the default libpath from the value encoded in an empty
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12575 if ac_fn_cxx_try_link "$LINENO"; then :
12577 lt_aix_libpath_sed='
12578 /Import File Strings/,/^$/ {
12584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585 # Check for a 64-bit object if we didn't find anything.
12586 if test -z "$aix_libpath"; then
12587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12590 rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12596 archive_expsym_cmds_CXX='$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"
12598 if test "$host_cpu" = ia64; then
12599 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12600 allow_undefined_flag_CXX="-z nodefs"
12601 archive_expsym_cmds_CXX="\$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"
12603 # Determine the default libpath from the value encoded in an
12604 # empty executable.
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12616 if ac_fn_cxx_try_link "$LINENO"; then :
12618 lt_aix_libpath_sed='
12619 /Import File Strings/,/^$/ {
12625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626 # Check for a 64-bit object if we didn't find anything.
12627 if test -z "$aix_libpath"; then
12628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12635 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12636 # Warning - without using the other run time loading flags,
12637 # -berok will link without error, but may produce a broken library.
12638 no_undefined_flag_CXX=' ${wl}-bernotok'
12639 allow_undefined_flag_CXX=' ${wl}-berok'
12640 if test "$with_gnu_ld" = yes; then
12641 # We only use this code for GNU lds that support --whole-archive.
12642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12644 # Exported symbols can be pulled into shared objects from archives
12645 whole_archive_flag_spec_CXX='$convenience'
12647 archive_cmds_need_lc_CXX=yes
12648 # This is similar to how AIX traditionally builds its shared
12650 archive_expsym_cmds_CXX="\$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'
12656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12657 allow_undefined_flag_CXX=unsupported
12658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12659 # support --undefined. This deserves some investigation. FIXME
12660 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 case $cc_basename in
12669 # FIXME: insert proper C++ library support
12675 cygwin* | mingw* | pw32* | cegcc*)
12676 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12677 # as there is no search path for DLLs.
12678 hardcode_libdir_flag_spec_CXX='-L$libdir'
12679 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12680 allow_undefined_flag_CXX=unsupported
12681 always_export_symbols_CXX=no
12682 enable_shared_with_static_runtimes_CXX=yes
12684 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12686 # If the export-symbols file already is a .def file (1st line
12687 # is EXPORTS), use it as is; otherwise, prepend...
12688 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12689 cp $export_symbols $output_objdir/$soname.def;
12691 echo EXPORTS > $output_objdir/$soname.def;
12692 cat $export_symbols >> $output_objdir/$soname.def;
12694 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12699 darwin* | rhapsody*)
12702 archive_cmds_need_lc_CXX=no
12703 hardcode_direct_CXX=no
12704 hardcode_automatic_CXX=yes
12705 hardcode_shlibpath_var_CXX=unsupported
12706 if test "$lt_cv_ld_force_load" = "yes"; then
12707 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12709 whole_archive_flag_spec_CXX=''
12711 link_all_deplibs_CXX=yes
12712 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12713 case $cc_basename in
12714 ifort*) _lt_dar_can_shared=yes ;;
12715 *) _lt_dar_can_shared=$GCC ;;
12717 if test "$_lt_dar_can_shared" = "yes"; then
12718 output_verbose_link_cmd=func_echo_all
12719 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12720 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12721 archive_expsym_cmds_CXX="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}"
12722 module_expsym_cmds_CXX="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}"
12723 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12724 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12725 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12735 case $cc_basename in
12737 # FIXME: insert proper C++ library support
12741 # Green Hills C++ Compiler
12742 # FIXME: insert proper C++ library support
12746 # FIXME: insert proper C++ library support
12753 # C++ shared libraries reported to be fairly broken before
12759 archive_cmds_need_lc_CXX=no
12762 freebsd* | dragonfly*)
12763 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12772 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 link_all_deplibs_CXX=yes
12777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_separator_CXX=:
12779 export_dynamic_flag_spec_CXX='${wl}-E'
12780 hardcode_direct_CXX=yes
12781 hardcode_minus_L_CXX=yes # Not in the search PATH,
12782 # but as the default
12783 # location of the library.
12785 case $cc_basename in
12787 # FIXME: insert proper C++ library support
12791 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12792 # Commands to make compiler produce verbose output that lists
12793 # what "hidden" libraries, object files and flags are used when
12794 # linking a shared library.
12796 # There doesn't appear to be a way to prevent this compiler from
12797 # explicitly linking system object files so we need to strip them
12798 # from the output so that they don't get included in the library
12800 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12803 if test "$GXX" = yes; then
12804 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12806 # FIXME: insert proper C++ library support
12814 if test $with_gnu_ld = no; then
12815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12816 hardcode_libdir_separator_CXX=:
12822 export_dynamic_flag_spec_CXX='${wl}-E'
12828 hardcode_direct_CXX=no
12829 hardcode_shlibpath_var_CXX=no
12832 hardcode_direct_CXX=yes
12833 hardcode_direct_absolute_CXX=yes
12834 hardcode_minus_L_CXX=yes # Not in the search PATH,
12835 # but as the default
12836 # location of the library.
12840 case $cc_basename in
12842 # FIXME: insert proper C++ library support
12848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12857 # Commands to make compiler produce verbose output that lists
12858 # what "hidden" libraries, object files and flags are used when
12859 # linking a shared library.
12861 # There doesn't appear to be a way to prevent this compiler from
12862 # explicitly linking system object files so we need to strip them
12863 # from the output so that they don't get included in the library
12865 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12868 if test "$GXX" = yes; then
12869 if test $with_gnu_ld = no; then
12872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12883 # FIXME: insert proper C++ library support
12891 hardcode_direct_CXX=no
12892 hardcode_shlibpath_var_CXX=no
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12894 export_dynamic_flag_spec_CXX='${wl}-E'
12895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12896 # Instead, shared libraries are loaded at an image base (0x10000000 by
12897 # default) and relocated if they conflict, which is a slow very memory
12898 # consuming and fragmenting process. To avoid this, we pick a random,
12899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12901 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12902 archive_expsym_cmds_CXX='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'
12905 case $cc_basename in
12908 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12910 # Archives containing C++ object files must be created using
12911 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12912 # necessary to make sure instantiated templates are included
12914 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12917 if test "$GXX" = yes; then
12918 if test "$with_gnu_ld" = no; then
12919 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12924 link_all_deplibs_CXX=yes
12927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12928 hardcode_libdir_separator_CXX=:
12929 inherit_rpath_CXX=yes
12932 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12933 case $cc_basename in
12935 # Kuck and Associates, Inc. (KAI) C++ Compiler
12937 # KCC will only create a shared library if the output file
12938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12939 # to its proper name (with version) after linking.
12940 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12941 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12950 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12955 # Archives containing C++ object files must be created using
12956 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12957 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12962 # version 8.0 and above of icpc choke on multiply defined symbols
12963 # if we add $predep_objects and $postdep_objects, however 7.1 and
12964 # earlier do not add the objects themselves.
12965 case `$CC -V 2>&1` in
12967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12970 *) # Version 8.0 or newer
12973 ia64*) tmp_idyn=' -i_dynamic';;
12975 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12979 archive_cmds_need_lc_CXX=no
12980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12982 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12985 # Portland Group C++ compiler
12987 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12988 prelink_cmds_CXX='tpldir=Template.dir~
12990 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12991 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12992 old_archive_cmds_CXX='tpldir=Template.dir~
12994 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12995 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12997 archive_cmds_CXX='tpldir=Template.dir~
12999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13000 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13001 archive_expsym_cmds_CXX='tpldir=Template.dir~
13003 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13004 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13006 *) # Version 6 and above use weak symbols
13007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13008 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13012 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13014 whole_archive_flag_spec_CXX='${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'
13018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13021 runpath_var=LD_RUN_PATH
13022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13023 hardcode_libdir_separator_CXX=:
13025 # Commands to make compiler produce verbose output that lists
13026 # what "hidden" libraries, object files and flags are used when
13027 # linking a shared library.
13029 # There doesn't appear to be a way to prevent this compiler from
13030 # explicitly linking system object files so we need to strip them
13031 # from the output so that they don't get included in the library
13033 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13035 xl* | mpixl* | bgxl*)
13036 # IBM XL 8.0 on PPC, with GNU ld
13037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13039 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13040 if test "x$supports_anon_versioning" = xyes; then
13041 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13043 echo "local: *; };" >> $output_objdir/$libname.ver~
13044 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13048 case `$CC -V 2>&1 | sed 5q` in
13051 no_undefined_flag_CXX=' -zdefs'
13052 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13054 hardcode_libdir_flag_spec_CXX='-R$libdir'
13055 whole_archive_flag_spec_CXX='${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'
13056 compiler_needs_object_CXX=yes
13058 # Not sure whether something based on
13059 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13061 output_verbose_link_cmd='func_echo_all'
13063 # Archives containing C++ object files must be created using
13064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13065 # necessary to make sure instantiated templates are included
13067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13075 # FIXME: insert proper C++ library support
13080 # FIXME: insert proper C++ library support
13085 case $cc_basename in
13087 # FIXME: insert proper C++ library support
13091 # FIXME: insert proper C++ library support
13098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13099 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13101 hardcode_libdir_flag_spec_CXX='-R$libdir'
13102 hardcode_direct_CXX=yes
13103 hardcode_shlibpath_var_CXX=no
13105 # Workaround some broken pre-1.5 toolchains
13106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13114 # C++ shared libraries are fairly broken
13119 if test -f /usr/libexec/ld.so; then
13120 hardcode_direct_CXX=yes
13121 hardcode_shlibpath_var_CXX=no
13122 hardcode_direct_absolute_CXX=yes
13123 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13126 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13127 export_dynamic_flag_spec_CXX='${wl}-E'
13128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13130 output_verbose_link_cmd=func_echo_all
13136 osf3* | osf4* | osf5*)
13137 case $cc_basename in
13139 # Kuck and Associates, Inc. (KAI) C++ Compiler
13141 # KCC will only create a shared library if the output file
13142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13143 # to its proper name (with version) after linking.
13144 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13147 hardcode_libdir_separator_CXX=:
13149 # Archives containing C++ object files must be created using
13150 # the KAI C++ compiler.
13152 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13153 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13157 # Rational C++ 2.4.1
13158 # FIXME: insert proper C++ library support
13164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13165 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13169 allow_undefined_flag_CXX=' -expect_unresolved \*'
13170 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13171 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13172 echo "-hidden">> $lib.exp~
13173 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13175 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13179 hardcode_libdir_separator_CXX=:
13181 # Commands to make compiler produce verbose output that lists
13182 # what "hidden" libraries, object files and flags are used when
13183 # linking a shared library.
13185 # There doesn't appear to be a way to prevent this compiler from
13186 # explicitly linking system object files so we need to strip them
13187 # from the output so that they don't get included in the library
13189 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13196 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13199 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13204 hardcode_libdir_separator_CXX=:
13206 # Commands to make compiler produce verbose output that lists
13207 # what "hidden" libraries, object files and flags are used when
13208 # linking a shared library.
13209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13212 # FIXME: insert proper C++ library support
13220 # FIXME: insert proper C++ library support
13225 case $cc_basename in
13228 # FIXME: insert proper C++ library support
13233 # FIXME: insert proper C++ library support
13237 # FIXME: insert proper C++ library support
13244 case $cc_basename in
13246 # Sun C++ 4.2, 5.x and Centerline C++
13247 archive_cmds_need_lc_CXX=yes
13248 no_undefined_flag_CXX=' -zdefs'
13249 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13250 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13251 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13253 hardcode_libdir_flag_spec_CXX='-R$libdir'
13254 hardcode_shlibpath_var_CXX=no
13256 solaris2.[0-5] | solaris2.[0-5].*) ;;
13258 # The compiler driver will combine and reorder linker options,
13259 # but understands `-z linker_flag'.
13260 # Supported since Solaris 2.6 (maybe 2.5.1?)
13261 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13264 link_all_deplibs_CXX=yes
13266 output_verbose_link_cmd='func_echo_all'
13268 # Archives containing C++ object files must be created using
13269 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13270 # necessary to make sure instantiated templates are included
13272 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13275 # Green Hills C++ Compiler
13276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13278 # The C++ compiler must be used to create the archive.
13279 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13282 # GNU C++ compiler with Solaris linker
13283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13284 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13285 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13286 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13287 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13288 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13290 # Commands to make compiler produce verbose output that lists
13291 # what "hidden" libraries, object files and flags are used when
13292 # linking a shared library.
13293 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13295 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13297 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13298 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13299 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13301 # Commands to make compiler produce verbose output that lists
13302 # what "hidden" libraries, object files and flags are used when
13303 # linking a shared library.
13304 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13307 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13309 solaris2.[0-5] | solaris2.[0-5].*) ;;
13311 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13320 no_undefined_flag_CXX='${wl}-z,text'
13321 archive_cmds_need_lc_CXX=no
13322 hardcode_shlibpath_var_CXX=no
13323 runpath_var='LD_RUN_PATH'
13325 case $cc_basename in
13327 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 sysv5* | sco3.2v5* | sco5v6*)
13338 # Note: We can NOT use -z defs as we might desire, because we do not
13339 # link with -lc, and that would cause any symbols used from libc to
13340 # always be unresolved, which means just about no library would
13341 # ever link correctly. If we're not using GNU ld we use -z text
13342 # though, which does catch some bad symbols but isn't as heavy-handed
13344 no_undefined_flag_CXX='${wl}-z,text'
13345 allow_undefined_flag_CXX='${wl}-z,nodefs'
13346 archive_cmds_need_lc_CXX=no
13347 hardcode_shlibpath_var_CXX=no
13348 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13349 hardcode_libdir_separator_CXX=':'
13350 link_all_deplibs_CXX=yes
13351 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13352 runpath_var='LD_RUN_PATH'
13354 case $cc_basename in
13356 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13358 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13359 '"$old_archive_cmds_CXX"
13360 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13361 '"$reload_cmds_CXX"
13364 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13365 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13371 case $cc_basename in
13373 # NonStop-UX NCC 3.20
13374 # FIXME: insert proper C++ library support
13378 # FIXME: insert proper C++ library support
13385 # FIXME: insert proper C++ library support
13390 # FIXME: insert proper C++ library support
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13396 $as_echo "$ld_shlibs_CXX" >&6; }
13397 test "$ld_shlibs_CXX" = no && can_build_shared=no
13403 ## There is no encapsulation within the following macros, do not change
13404 ## the running order or otherwise move them around unless you know exactly
13405 ## what you are doing...
13406 # Dependencies to place before and after the object being linked:
13407 predep_objects_CXX=
13408 postdep_objects_CXX=
13411 compiler_lib_search_path_CXX=
13413 cat > conftest.$ac_ext <<_LT_EOF
13417 Foo (void) { a = 0; }
13423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13424 (eval $ac_compile) 2>&5
13426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427 test $ac_status = 0; }; then
13428 # Parse the compiler output and extract the necessary
13429 # objects, libraries and library flags.
13431 # Sentinel used to keep track of whether or not we are before
13432 # the conftest object file.
13433 pre_test_object_deps_done=no
13435 for p in `eval "$output_verbose_link_cmd"`; do
13439 # Some compilers place space between "-{L,R}" and the path.
13440 # Remove the space.
13441 if test $p = "-L" ||
13442 test $p = "-R"; then
13449 if test "$pre_test_object_deps_done" = no; then
13452 # Internal compiler library paths should come after those
13453 # provided the user. The postdeps already come after the
13454 # user supplied libs so there is no need to process them.
13455 if test -z "$compiler_lib_search_path_CXX"; then
13456 compiler_lib_search_path_CXX="${prev}${p}"
13458 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13461 # The "-l" case would never come before the object being
13462 # linked, so don't bother handling this case.
13465 if test -z "$postdeps_CXX"; then
13466 postdeps_CXX="${prev}${p}"
13468 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13474 # This assumes that the test object file only shows up
13475 # once in the compiler output.
13476 if test "$p" = "conftest.$objext"; then
13477 pre_test_object_deps_done=yes
13481 if test "$pre_test_object_deps_done" = no; then
13482 if test -z "$predep_objects_CXX"; then
13483 predep_objects_CXX="$p"
13485 predep_objects_CXX="$predep_objects_CXX $p"
13488 if test -z "$postdep_objects_CXX"; then
13489 postdep_objects_CXX="$p"
13491 postdep_objects_CXX="$postdep_objects_CXX $p"
13496 *) ;; # Ignore the rest.
13504 echo "libtool.m4: error: problem compiling CXX test program"
13507 $RM -f confest.$objext
13509 # PORTME: override above test on systems where it is broken
13512 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13513 # hack all around it, let's just trust "g++" to DTRT.
13514 predep_objects_CXX=
13515 postdep_objects_CXX=
13520 case `$CC -V 2>&1 | sed 5q` in
13524 # The more standards-conforming stlport4 library is
13525 # incompatible with the Cstd library. Avoid specifying
13526 # it if it's in CXXFLAGS. Ignore libCrun as
13527 # -library=stlport4 depends on it.
13528 case " $CXX $CXXFLAGS " in
13529 *" -library=stlport4 "*)
13530 solaris_use_stlport4=yes
13534 if test "$solaris_use_stlport4" != yes; then
13535 postdeps_CXX='-library=Cstd -library=Crun'
13542 case $cc_basename in
13544 # The more standards-conforming stlport4 library is
13545 # incompatible with the Cstd library. Avoid specifying
13546 # it if it's in CXXFLAGS. Ignore libCrun as
13547 # -library=stlport4 depends on it.
13548 case " $CXX $CXXFLAGS " in
13549 *" -library=stlport4 "*)
13550 solaris_use_stlport4=yes
13554 # Adding this requires a known-good setup of shared libraries for
13555 # Sun compiler versions before 5.6, else PIC objects from an old
13556 # archive will be linked into the output, leading to subtle bugs.
13557 if test "$solaris_use_stlport4" != yes; then
13558 postdeps_CXX='-library=Cstd -library=Crun'
13566 case " $postdeps_CXX " in
13567 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13569 compiler_lib_search_dirs_CXX=
13570 if test -n "${compiler_lib_search_path_CXX}"; then
13571 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13604 lt_prog_compiler_wl_CXX=
13605 lt_prog_compiler_pic_CXX=
13606 lt_prog_compiler_static_CXX=
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13609 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13611 # C++ specific cases for pic, static, wl, etc.
13612 if test "$GXX" = yes; then
13613 lt_prog_compiler_wl_CXX='-Wl,'
13614 lt_prog_compiler_static_CXX='-static'
13618 # All AIX code is PIC.
13619 if test "$host_cpu" = ia64; then
13620 # AIX 5 now supports IA64 processor
13621 lt_prog_compiler_static_CXX='-Bstatic'
13623 lt_prog_compiler_pic_CXX='-fPIC'
13629 # see comment about AmigaOS4 .so support
13630 lt_prog_compiler_pic_CXX='-fPIC'
13633 # FIXME: we need at least 68020 code to build shared libraries, but
13634 # adding the `-m68020' flag to GCC prevents building anything better,
13636 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13642 # PIC is the default for these OSes.
13644 mingw* | cygwin* | os2* | pw32* | cegcc*)
13645 # This hack is so that the source file can tell whether it is being
13646 # built for inclusion in a dll (and should export symbols for example).
13647 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13648 # (--disable-auto-import) libraries
13649 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13651 darwin* | rhapsody*)
13652 # PIC is the default on this platform
13653 # Common symbols not allowed in MH_DYLIB files
13654 lt_prog_compiler_pic_CXX='-fno-common'
13657 # DJGPP does not support shared libraries at all
13658 lt_prog_compiler_pic_CXX=
13661 # PIC is the default for Haiku.
13662 # The "-static" flag exists, but is broken.
13663 lt_prog_compiler_static_CXX=
13666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13667 # Instead, we relocate shared libraries at runtime.
13670 if test -d /usr/nec; then
13671 lt_prog_compiler_pic_CXX=-Kconform_pic
13675 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13676 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13677 # sets the default TLS model and affects inlining.
13682 lt_prog_compiler_pic_CXX='-fPIC'
13687 # QNX uses GNU C++, but need to define -shared option too, otherwise
13688 # it will coredump.
13689 lt_prog_compiler_pic_CXX='-fPIC -shared'
13692 lt_prog_compiler_pic_CXX='-fPIC'
13698 # All AIX code is PIC.
13699 if test "$host_cpu" = ia64; then
13700 # AIX 5 now supports IA64 processor
13701 lt_prog_compiler_static_CXX='-Bstatic'
13703 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13707 case $cc_basename in
13709 # Green Hills C++ Compiler
13710 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13715 case $cc_basename in
13717 lt_prog_compiler_pic_CXX='-KPIC'
13720 # Green Hills C++ Compiler
13721 lt_prog_compiler_pic_CXX='-pic'
13727 freebsd* | dragonfly*)
13728 # FreeBSD uses GNU C++
13730 hpux9* | hpux10* | hpux11*)
13731 case $cc_basename in
13733 lt_prog_compiler_wl_CXX='-Wl,'
13734 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13735 if test "$host_cpu" != ia64; then
13736 lt_prog_compiler_pic_CXX='+Z'
13740 lt_prog_compiler_wl_CXX='-Wl,'
13741 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13747 lt_prog_compiler_pic_CXX='+Z'
13756 # This is c89, which is MS Visual C++ (no shared libs)
13757 # Anyone wants to do a port?
13759 irix5* | irix6* | nonstopux*)
13760 case $cc_basename in
13762 lt_prog_compiler_wl_CXX='-Wl,'
13763 lt_prog_compiler_static_CXX='-non_shared'
13764 # CC pic flag -KPIC is the default.
13770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13771 case $cc_basename in
13774 lt_prog_compiler_wl_CXX='--backend -Wl,'
13775 lt_prog_compiler_pic_CXX='-fPIC'
13778 # old Intel C++ for x86_64 which still supported -KPIC.
13779 lt_prog_compiler_wl_CXX='-Wl,'
13780 lt_prog_compiler_pic_CXX='-KPIC'
13781 lt_prog_compiler_static_CXX='-static'
13784 # Intel C++, used to be incompatible with GCC.
13785 # ICC 10 doesn't accept -KPIC any more.
13786 lt_prog_compiler_wl_CXX='-Wl,'
13787 lt_prog_compiler_pic_CXX='-fPIC'
13788 lt_prog_compiler_static_CXX='-static'
13791 # Portland Group C++ compiler
13792 lt_prog_compiler_wl_CXX='-Wl,'
13793 lt_prog_compiler_pic_CXX='-fpic'
13794 lt_prog_compiler_static_CXX='-Bstatic'
13798 # Make sure the PIC flag is empty. It appears that all Alpha
13799 # Linux and Compaq Tru64 Unix objects are PIC.
13800 lt_prog_compiler_pic_CXX=
13801 lt_prog_compiler_static_CXX='-non_shared'
13803 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13804 # IBM XL 8.0, 9.0 on PPC and BlueGene
13805 lt_prog_compiler_wl_CXX='-Wl,'
13806 lt_prog_compiler_pic_CXX='-qpic'
13807 lt_prog_compiler_static_CXX='-qstaticlink'
13810 case `$CC -V 2>&1 | sed 5q` in
13813 lt_prog_compiler_pic_CXX='-KPIC'
13814 lt_prog_compiler_static_CXX='-Bstatic'
13815 lt_prog_compiler_wl_CXX='-Qoption ld '
13826 case $cc_basename in
13828 lt_prog_compiler_pic_CXX='-W c,exportall'
13837 # QNX uses GNU C++, but need to define -shared option too, otherwise
13838 # it will coredump.
13839 lt_prog_compiler_pic_CXX='-fPIC -shared'
13841 osf3* | osf4* | osf5*)
13842 case $cc_basename in
13844 lt_prog_compiler_wl_CXX='--backend -Wl,'
13847 # Rational C++ 2.4.1
13848 lt_prog_compiler_pic_CXX='-pic'
13851 # Digital/Compaq C++
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 # Make sure the PIC flag is empty. It appears that all Alpha
13854 # Linux and Compaq Tru64 Unix objects are PIC.
13855 lt_prog_compiler_pic_CXX=
13856 lt_prog_compiler_static_CXX='-non_shared'
13865 case $cc_basename in
13867 # Sun C++ 4.2, 5.x and Centerline C++
13868 lt_prog_compiler_pic_CXX='-KPIC'
13869 lt_prog_compiler_static_CXX='-Bstatic'
13870 lt_prog_compiler_wl_CXX='-Qoption ld '
13873 # Green Hills C++ Compiler
13874 lt_prog_compiler_pic_CXX='-PIC'
13881 case $cc_basename in
13884 lt_prog_compiler_pic_CXX='-pic'
13885 lt_prog_compiler_static_CXX='-Bstatic'
13889 lt_prog_compiler_pic_CXX='-pic'
13895 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13896 case $cc_basename in
13898 lt_prog_compiler_wl_CXX='-Wl,'
13899 lt_prog_compiler_pic_CXX='-KPIC'
13900 lt_prog_compiler_static_CXX='-Bstatic'
13905 case $cc_basename in
13907 # NonStop-UX NCC 3.20
13908 lt_prog_compiler_pic_CXX='-KPIC'
13917 lt_prog_compiler_can_build_shared_CXX=no
13923 # For platforms which do not support PIC, -DPIC is meaningless:
13925 lt_prog_compiler_pic_CXX=
13928 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13932 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13937 # Check to make sure the PIC flag actually works.
13939 if test -n "$lt_prog_compiler_pic_CXX"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13942 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13945 lt_cv_prog_compiler_pic_works_CXX=no
13946 ac_outfile=conftest.$ac_objext
13947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13948 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13949 # Insert the option either (1) after the last *FLAGS variable, or
13950 # (2) before a word containing "conftest.", or (3) at the end.
13951 # Note that $ac_compile itself does not contain backslashes and begins
13952 # with a dollar sign (not a hyphen), so the echo should work correctly.
13953 # The option is referenced via a variable to avoid confusing sed.
13954 lt_compile=`echo "$ac_compile" | $SED \
13955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13957 -e 's:$: $lt_compiler_flag:'`
13958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13959 (eval "$lt_compile" 2>conftest.err)
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 if (exit $ac_status) && test -s "$ac_outfile"; then
13964 # The compiler can only warn and ignore the option if not recognized
13965 # So say no if there are warnings other than the usual output.
13966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13969 lt_cv_prog_compiler_pic_works_CXX=yes
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13976 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13978 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13979 case $lt_prog_compiler_pic_CXX in
13981 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13984 lt_prog_compiler_pic_CXX=
13985 lt_prog_compiler_can_build_shared_CXX=no
13993 # Check to make sure the static flag actually works.
13995 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13997 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13998 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13999 $as_echo_n "(cached) " >&6
14001 lt_cv_prog_compiler_static_works_CXX=no
14002 save_LDFLAGS="$LDFLAGS"
14003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14004 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14006 # The linker can only warn and ignore the option if not recognized
14007 # So say no if there are warnings
14008 if test -s conftest.err; then
14009 # Append any errors to the config.log.
14010 cat conftest.err 1>&5
14011 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14013 if diff conftest.exp conftest.er2 >/dev/null; then
14014 lt_cv_prog_compiler_static_works_CXX=yes
14017 lt_cv_prog_compiler_static_works_CXX=yes
14021 LDFLAGS="$save_LDFLAGS"
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14025 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14027 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14030 lt_prog_compiler_static_CXX=
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14038 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14041 lt_cv_prog_compiler_c_o_CXX=no
14042 $RM -r conftest 2>/dev/null
14046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14048 lt_compiler_flag="-o out/conftest2.$ac_objext"
14049 # Insert the option either (1) after the last *FLAGS variable, or
14050 # (2) before a word containing "conftest.", or (3) at the end.
14051 # Note that $ac_compile itself does not contain backslashes and begins
14052 # with a dollar sign (not a hyphen), so the echo should work correctly.
14053 lt_compile=`echo "$ac_compile" | $SED \
14054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14056 -e 's:$: $lt_compiler_flag:'`
14057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14058 (eval "$lt_compile" 2>out/conftest.err)
14060 cat out/conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14064 # The compiler can only warn and ignore the option if not recognized
14065 # So say no if there are warnings
14066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14069 lt_cv_prog_compiler_c_o_CXX=yes
14074 # SGI C++ compiler will create directory out/ii_files/ for
14075 # template instantiation
14076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14077 $RM out/* && rmdir out
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14084 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14090 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14091 $as_echo_n "(cached) " >&6
14093 lt_cv_prog_compiler_c_o_CXX=no
14094 $RM -r conftest 2>/dev/null
14098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100 lt_compiler_flag="-o out/conftest2.$ac_objext"
14101 # Insert the option either (1) after the last *FLAGS variable, or
14102 # (2) before a word containing "conftest.", or (3) at the end.
14103 # Note that $ac_compile itself does not contain backslashes and begins
14104 # with a dollar sign (not a hyphen), so the echo should work correctly.
14105 lt_compile=`echo "$ac_compile" | $SED \
14106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108 -e 's:$: $lt_compiler_flag:'`
14109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14110 (eval "$lt_compile" 2>out/conftest.err)
14112 cat out/conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14116 # The compiler can only warn and ignore the option if not recognized
14117 # So say no if there are warnings
14118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121 lt_cv_prog_compiler_c_o_CXX=yes
14126 # SGI C++ compiler will create directory out/ii_files/ for
14127 # template instantiation
14128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14129 $RM out/* && rmdir out
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14136 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14141 hard_links="nottested"
14142 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14143 # do not overwrite the value of need_locks provided by the user
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14145 $as_echo_n "checking if we can lock with hard links... " >&6; }
14148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150 ln conftest.a conftest.b 2>&5 || hard_links=no
14151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14153 $as_echo "$hard_links" >&6; }
14154 if test "$hard_links" = no; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14156 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14171 # If we're using GNU nm, then we don't want the "-C" option.
14172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14173 # Also, AIX nm treats weak defined symbols like other global defined
14174 # symbols, whereas GNU nm marks them as "W".
14175 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14176 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14178 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14182 export_symbols_cmds_CXX="$ltdll_cmds"
14184 cygwin* | mingw* | cegcc*)
14185 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14188 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14191 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14194 $as_echo "$ld_shlibs_CXX" >&6; }
14195 test "$ld_shlibs_CXX" = no && can_build_shared=no
14197 with_gnu_ld_CXX=$with_gnu_ld
14205 # Do we need to explicitly link libc?
14207 case "x$archive_cmds_need_lc_CXX" in
14209 # Assume -lc should be added
14210 archive_cmds_need_lc_CXX=yes
14212 if test "$enable_shared" = yes && test "$GCC" = yes; then
14213 case $archive_cmds_CXX in
14215 # FIXME: we may have to deal with multi-command sequences.
14218 # Test whether the compiler implicitly links with -lc since on some
14219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14220 # to ld, don't add -lc before -lgcc.
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14222 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14223 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14230 (eval $ac_compile) 2>&5
14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233 test $ac_status = 0; } 2>conftest.err; then
14236 libobjs=conftest.$ac_objext
14238 wl=$lt_prog_compiler_wl_CXX
14239 pic_flag=$lt_prog_compiler_pic_CXX
14245 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14246 allow_undefined_flag_CXX=
14247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14248 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14251 test $ac_status = 0; }
14253 lt_cv_archive_cmds_need_lc_CXX=no
14255 lt_cv_archive_cmds_need_lc_CXX=yes
14257 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14259 cat conftest.err 1>&5
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14265 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14266 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14339 library_names_spec=
14340 libname_spec='lib$name'
14344 postuninstall_cmds=
14348 shlibpath_overrides_runpath=unknown
14350 dynamic_linker="$host_os ld.so"
14351 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14352 need_lib_prefix=unknown
14353 hardcode_into_libs=no
14355 # when you set need_version to no, make sure it does not cause -set_version
14356 # flags to be left without arguments
14357 need_version=unknown
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14363 shlibpath_var=LIBPATH
14365 # AIX 3 has no versioning support, so we append a major version to the name.
14366 soname_spec='${libname}${release}${shared_ext}$major'
14373 hardcode_into_libs=yes
14374 if test "$host_cpu" = ia64; then
14375 # AIX 5 supports IA64
14376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14377 shlibpath_var=LD_LIBRARY_PATH
14379 # With GCC up to 2.95.x, collect2 would create an import file
14380 # for dependence libraries. The import file would start with
14381 # the line `#! .'. This would cause the generated library to
14382 # depend on `.', always an invalid library. This was fixed in
14383 # development snapshots of GCC prior to 3.0.
14385 aix4 | aix4.[01] | aix4.[01].*)
14386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14388 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14391 can_build_shared=no
14395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14396 # soname into executable. Probably we can add versioning support to
14397 # collect2, so additional links can be useful in future.
14398 if test "$aix_use_runtimelinking" = yes; then
14399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14400 # instead of lib<name>.a to let people know that these are not
14401 # typical AIX shared libraries.
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404 # We preserve .a as extension for shared libraries through AIX4.2
14405 # and later when we are not doing run time linking.
14406 library_names_spec='${libname}${release}.a $libname.a'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14409 shlibpath_var=LIBPATH
14416 # Since July 2007 AmigaOS4 officially supports .so libraries.
14417 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421 library_names_spec='$libname.ixlibrary $libname.a'
14422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14423 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'
14429 library_names_spec='${libname}${shared_ext}'
14430 dynamic_linker="$host_os ld.so"
14431 shlibpath_var=LIBRARY_PATH
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14443 # the default ld.so.conf also contains /usr/contrib/lib and
14444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14445 # libtool to hard-code these into programs
14448 cygwin* | mingw* | pw32* | cegcc*)
14449 version_type=windows
14454 case $GCC,$host_os in
14455 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14456 library_names_spec='$libname.dll.a'
14457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14458 postinstall_cmds='base_file=`basename \${file}`~
14459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14460 dldir=$destdir/`dirname \$dlpath`~
14461 test -d \$dldir || mkdir -p \$dldir~
14462 $install_prog $dir/$dlname \$dldir/$dlname~
14463 chmod a+x \$dldir/$dlname~
14464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14468 dlpath=$dir/\$dldll~
14470 shlibpath_overrides_runpath=yes
14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479 # MinGW DLLs use traditional 'lib' prefix
14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483 # pw32 DLLs use 'pw' prefix rather than 'lib'
14484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14493 dynamic_linker='Win32 ld.exe'
14494 # FIXME: first we should search . and the directory the executable is in
14498 darwin* | rhapsody*)
14499 dynamic_linker="$host_os dyld"
14500 version_type=darwin
14503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14504 soname_spec='${libname}${release}${major}$shared_ext'
14505 shlibpath_overrides_runpath=yes
14506 shlibpath_var=DYLD_LIBRARY_PATH
14507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 shlibpath_var=LD_LIBRARY_PATH
14521 freebsd* | dragonfly*)
14522 # DragonFly does not have aout. When/if they implement a new
14523 # versioning mechanism, adjust this.
14524 if test -x /usr/bin/objformat; then
14525 objformat=`/usr/bin/objformat`
14528 freebsd[23].*) objformat=aout ;;
14529 *) objformat=elf ;;
14532 version_type=freebsd-$objformat
14533 case $version_type in
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14544 shlibpath_var=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath=yes
14549 freebsd3.[01]* | freebsdelf3.[01]*)
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14555 shlibpath_overrides_runpath=no
14556 hardcode_into_libs=yes
14558 *) # from 4.6 on, and DragonFly
14559 shlibpath_overrides_runpath=yes
14560 hardcode_into_libs=yes
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 hardcode_into_libs=yes
14579 dynamic_linker="$host_os runtime_loader"
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 shlibpath_var=LIBRARY_PATH
14583 shlibpath_overrides_runpath=yes
14584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14585 hardcode_into_libs=yes
14588 hpux9* | hpux10* | hpux11*)
14589 # Give a soname corresponding to the major version so that dld.sl refuses to
14590 # link against other versions.
14597 hardcode_into_libs=yes
14598 dynamic_linker="$host_os dld.so"
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 soname_spec='${libname}${release}${shared_ext}$major'
14603 if test "X$HPUX_IA64_MODE" = X32; then
14604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14612 hardcode_into_libs=yes
14613 dynamic_linker="$host_os dld.sl"
14614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14623 dynamic_linker="$host_os dld.sl"
14624 shlibpath_var=SHLIB_PATH
14625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14630 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14631 postinstall_cmds='chmod 555 $lib'
14632 # or fails outright, so override atomically:
14633 install_override_mode=555
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=no
14645 hardcode_into_libs=yes
14648 irix5* | irix6* | nonstopux*)
14650 nonstopux*) version_type=nonstopux ;;
14652 if test "$lt_cv_prog_gnu_ld" = yes; then
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14663 irix5* | nonstopux*)
14664 libsuff= shlibsuff=
14667 case $LD in # libtool.m4 will add one of these switches to LD
14668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14669 libsuff= shlibsuff= libmagic=32-bit;;
14670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14671 libsuff=32 shlibsuff=N32 libmagic=N32;;
14672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14674 *) libsuff= shlibsuff= libmagic=never-match;;
14678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14679 shlibpath_overrides_runpath=no
14680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14682 hardcode_into_libs=yes
14685 # No shared lib support for Linux oldld, aout, or coff.
14686 linux*oldld* | linux*aout* | linux*coff*)
14690 # This must be Linux ELF.
14691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14701 # Some binutils ld are patched to set DT_RUNPATH
14702 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14703 $as_echo_n "(cached) " >&6
14705 lt_cv_shlibpath_overrides_runpath=no
14706 save_LDFLAGS=$LDFLAGS
14707 save_libdir=$libdir
14708 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14709 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14721 if ac_fn_cxx_try_link "$LINENO"; then :
14722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14723 lt_cv_shlibpath_overrides_runpath=yes
14726 rm -f core conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LDFLAGS=$save_LDFLAGS
14729 libdir=$save_libdir
14733 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14735 # This implies no fast_install, which is unacceptable.
14736 # Some rework will be needed to allow for fast_install
14737 # before this can be enabled.
14738 hardcode_into_libs=yes
14740 # Append ld.so.conf contents to the search path
14741 if test -f /etc/ld.so.conf; then
14742 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' ' '`
14743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14746 # We used to test for /lib/ld.so.1 and disable shared libraries on
14747 # powerpc, because MkLinux only supported shared libraries with the
14748 # GNU dynamic linker. Since this was broken with cross compilers,
14749 # most powerpc-linux boxes support dynamic linking these days and
14750 # people can always --disable-shared, the test was removed, and we
14751 # assume the GNU/Linux dynamic linker is in use.
14752 dynamic_linker='GNU/Linux ld.so'
14759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14762 dynamic_linker='NetBSD (a.out) ld.so'
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 dynamic_linker='NetBSD ld.elf_so'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=yes
14770 hardcode_into_libs=yes
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=yes
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=no
14788 hardcode_into_libs=yes
14789 dynamic_linker='ldqnx.so'
14794 sys_lib_dlsearch_path_spec="/usr/lib"
14796 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14798 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14799 *) need_version=no ;;
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14806 openbsd2.[89] | openbsd2.[89].*)
14807 shlibpath_overrides_runpath=no
14810 shlibpath_overrides_runpath=yes
14814 shlibpath_overrides_runpath=yes
14819 libname_spec='$name'
14822 library_names_spec='$libname${shared_ext} $libname.a'
14823 dynamic_linker='OS/2 ld.exe'
14824 shlibpath_var=LIBPATH
14827 osf3* | osf4* | osf5*)
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14835 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=yes
14850 hardcode_into_libs=yes
14851 # ldd complains unless libraries are executable
14852 postinstall_cmds='chmod +x $lib'
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=yes
14861 if test "$with_gnu_ld" = yes; then
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 case $host_vendor in
14874 shlibpath_overrides_runpath=no
14876 runpath_var=LD_RUN_PATH
14884 shlibpath_overrides_runpath=no
14885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14891 if test -d /usr/nec ;then
14893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14894 soname_spec='$libname${shared_ext}.$major'
14895 shlibpath_var=LD_LIBRARY_PATH
14899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14900 version_type=freebsd-elf
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 shlibpath_overrides_runpath=yes
14907 hardcode_into_libs=yes
14908 if test "$with_gnu_ld" = yes; then
14909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14918 sys_lib_dlsearch_path_spec='/usr/lib'
14922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=no
14929 hardcode_into_libs=yes
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14944 $as_echo "$dynamic_linker" >&6; }
14945 test "$dynamic_linker" = no && can_build_shared=no
14947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14948 if test "$GCC" = yes; then
14949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14952 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14953 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14955 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14956 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14998 hardcode_action_CXX=
14999 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15000 test -n "$runpath_var_CXX" ||
15001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15003 # We can hardcode non-existent directories.
15004 if test "$hardcode_direct_CXX" != no &&
15005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15006 # have to relink, otherwise we might link with an installed library
15007 # when we should be linking with a yet-to-be-installed one
15008 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15009 test "$hardcode_minus_L_CXX" != no; then
15010 # Linking always hardcodes the temporary library directory.
15011 hardcode_action_CXX=relink
15013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15014 hardcode_action_CXX=immediate
15017 # We cannot hardcode anything, or else we can only hardcode existing
15019 hardcode_action_CXX=unsupported
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15022 $as_echo "$hardcode_action_CXX" >&6; }
15024 if test "$hardcode_action_CXX" = relink ||
15025 test "$inherit_rpath_CXX" = yes; then
15026 # Fast installation is not supported
15027 enable_fast_install=no
15028 elif test "$shlibpath_overrides_runpath" = yes ||
15029 test "$enable_shared" = no; then
15030 # Fast installation is not necessary
15031 enable_fast_install=needless
15040 fi # test -n "$compiler"
15046 with_gnu_ld=$lt_save_with_gnu_ld
15047 lt_cv_path_LDCXX=$lt_cv_path_LD
15048 lt_cv_path_LD=$lt_save_path_LD
15049 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15050 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15051 fi # test "$_lt_caught_CXX_error" != yes
15054 ac_cpp='$CPP $CPPFLAGS'
15055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15071 ac_config_commands="$ac_config_commands libtool"
15076 # Only expand once:
15080 # The tests for host and target for $enable_largefile require
15085 # As the $enable_largefile decision depends on --enable-plugins we must set it
15086 # even in directories otherwise not depending on the $plugins option.
15090 for ac_header in dlfcn.h
15092 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15094 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15095 cat >>confdefs.h <<_ACEOF
15096 #define HAVE_DLFCN_H 1
15103 for ac_header in windows.h
15105 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15107 if test "x$ac_cv_header_windows_h" = x""yes; then :
15108 cat >>confdefs.h <<_ACEOF
15109 #define HAVE_WINDOWS_H 1
15117 # Check whether --enable-plugins was given.
15118 if test "${enable_plugins+set}" = set; then :
15119 enableval=$enable_plugins; case "${enableval}" in
15122 if test "$maybe_plugins" != "yes" ; then
15123 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15127 plugins=$maybe_plugins
15131 if test "$plugins" = "yes"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15133 $as_echo_n "checking for library containing dlopen... " >&6; }
15134 if test "${ac_cv_search_dlopen+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15137 ac_func_search_save_LIBS=$LIBS
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15141 /* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15156 for ac_lib in '' dl; do
15157 if test -z "$ac_lib"; then
15158 ac_res="none required"
15161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 ac_cv_search_dlopen=$ac_res
15166 rm -f core conftest.err conftest.$ac_objext \
15168 if test "${ac_cv_search_dlopen+set}" = set; then :
15172 if test "${ac_cv_search_dlopen+set}" = set; then :
15175 ac_cv_search_dlopen=no
15177 rm conftest.$ac_ext
15178 LIBS=$ac_func_search_save_LIBS
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15181 $as_echo "$ac_cv_search_dlopen" >&6; }
15182 ac_res=$ac_cv_search_dlopen
15183 if test "$ac_res" != no; then :
15184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15192 sparc-*-solaris*|i[3-7]86-*-solaris*)
15193 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15194 # are mutually exclusive; and without procfs support, the bfd/ elf module
15195 # cannot provide certain routines such as elfcore_write_prpsinfo
15196 # or elfcore_write_prstatus. So unless the user explicitly requested
15197 # large-file support through the --enable-largefile switch, disable
15198 # large-file support in favor of procfs support.
15199 test "${target}" = "${host}" -a "x$plugins" = xno \
15200 && : ${enable_largefile="no"}
15204 # Check whether --enable-largefile was given.
15205 if test "${enable_largefile+set}" = set; then :
15206 enableval=$enable_largefile;
15209 if test "$enable_largefile" != no; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15212 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15213 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15214 $as_echo_n "(cached) " >&6
15216 ac_cv_sys_largefile_CC=no
15217 if test "$GCC" != yes; then
15220 # IRIX 6.2 and later do not support large files by default,
15221 # so use the C compiler's -n32 option if that helps.
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 #include <sys/types.h>
15225 /* Check that off_t can represent 2**63 - 1 correctly.
15226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15227 since some C++ compilers masquerading as C compilers
15228 incorrectly reject 9223372036854775807. */
15229 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15231 && LARGE_OFF_T % 2147483647 == 1)
15241 if ac_fn_c_try_compile "$LINENO"; then :
15244 rm -f core conftest.err conftest.$ac_objext
15246 if ac_fn_c_try_compile "$LINENO"; then :
15247 ac_cv_sys_largefile_CC=' -n32'; break
15249 rm -f core conftest.err conftest.$ac_objext
15253 rm -f conftest.$ac_ext
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15257 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15258 if test "$ac_cv_sys_largefile_CC" != no; then
15259 CC=$CC$ac_cv_sys_largefile_CC
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15263 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15264 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15265 $as_echo_n "(cached) " >&6
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270 #include <sys/types.h>
15271 /* Check that off_t can represent 2**63 - 1 correctly.
15272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15273 since some C++ compilers masquerading as C compilers
15274 incorrectly reject 9223372036854775807. */
15275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15277 && LARGE_OFF_T % 2147483647 == 1)
15287 if ac_fn_c_try_compile "$LINENO"; then :
15288 ac_cv_sys_file_offset_bits=no; break
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 #define _FILE_OFFSET_BITS 64
15294 #include <sys/types.h>
15295 /* Check that off_t can represent 2**63 - 1 correctly.
15296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15297 since some C++ compilers masquerading as C compilers
15298 incorrectly reject 9223372036854775807. */
15299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15301 && LARGE_OFF_T % 2147483647 == 1)
15311 if ac_fn_c_try_compile "$LINENO"; then :
15312 ac_cv_sys_file_offset_bits=64; break
15314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 ac_cv_sys_file_offset_bits=unknown
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15320 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15321 case $ac_cv_sys_file_offset_bits in #(
15324 cat >>confdefs.h <<_ACEOF
15325 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15330 if test $ac_cv_sys_file_offset_bits = unknown; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15332 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15333 if test "${ac_cv_sys_large_files+set}" = set; then :
15334 $as_echo_n "(cached) " >&6
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 #include <sys/types.h>
15340 /* Check that off_t can represent 2**63 - 1 correctly.
15341 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15342 since some C++ compilers masquerading as C compilers
15343 incorrectly reject 9223372036854775807. */
15344 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15346 && LARGE_OFF_T % 2147483647 == 1)
15356 if ac_fn_c_try_compile "$LINENO"; then :
15357 ac_cv_sys_large_files=no; break
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 #define _LARGE_FILES 1
15363 #include <sys/types.h>
15364 /* Check that off_t can represent 2**63 - 1 correctly.
15365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15366 since some C++ compilers masquerading as C compilers
15367 incorrectly reject 9223372036854775807. */
15368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15370 && LARGE_OFF_T % 2147483647 == 1)
15380 if ac_fn_c_try_compile "$LINENO"; then :
15381 ac_cv_sys_large_files=1; break
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 ac_cv_sys_large_files=unknown
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15389 $as_echo "$ac_cv_sys_large_files" >&6; }
15390 case $ac_cv_sys_large_files in #(
15393 cat >>confdefs.h <<_ACEOF
15394 #define _LARGE_FILES $ac_cv_sys_large_files
15405 # Check whether --with-lib-path was given.
15406 if test "${with_lib_path+set}" = set; then :
15407 withval=$with_lib_path; LIB_PATH=$withval
15410 # Check whether --enable-targets was given.
15411 if test "${enable_targets+set}" = set; then :
15412 enableval=$enable_targets; case "${enableval}" in
15413 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15415 no) enable_targets= ;;
15416 *) enable_targets=$enableval ;;
15419 # Check whether --enable-64-bit-bfd was given.
15420 if test "${enable_64_bit_bfd+set}" = set; then :
15421 enableval=$enable_64_bit_bfd; case "${enableval}" in
15422 yes) want64=true ;;
15423 no) want64=false ;;
15424 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15431 # Check whether --with-sysroot was given.
15432 if test "${with_sysroot+set}" = set; then :
15433 withval=$with_sysroot;
15434 case ${with_sysroot} in
15435 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15436 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15439 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15442 if test "x$prefix" = xNONE; then
15443 test_prefix=/usr/local
15445 test_prefix=$prefix
15447 if test "x$exec_prefix" = xNONE; then
15448 test_exec_prefix=$test_prefix
15450 test_exec_prefix=$exec_prefix
15452 case ${TARGET_SYSTEM_ROOT} in
15453 "${test_prefix}"|"${test_prefix}/"*|\
15454 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15455 '${prefix}'|'${prefix}/'*|\
15456 '${exec_prefix}'|'${exec_prefix}/'*)
15457 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15458 TARGET_SYSTEM_ROOT_DEFINE="$t"
15465 TARGET_SYSTEM_ROOT=
15466 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15474 # Check whether --enable-gold was given.
15475 if test "${enable_gold+set}" = set; then :
15476 enableval=$enable_gold; case "${enableval}" in
15478 install_as_default=no
15479 installed_linker=ld.bfd
15482 install_as_default=yes
15483 installed_linker=ld.bfd
15486 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15490 install_as_default=yes
15491 installed_linker=ld.bfd
15497 # Check whether --enable-got was given.
15498 if test "${enable_got+set}" = set; then :
15499 enableval=$enable_got; case "${enableval}" in
15500 target | single | negative | multigot) got_handling=$enableval ;;
15501 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15504 got_handling=target
15508 case "${got_handling}" in
15511 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15515 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15519 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15523 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15525 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15529 # Decide the default method for compressing debug sections.
15530 ac_default_compressed_debug_sections=unset
15531 # Provide a configure time option to override our default.
15532 # Check whether --enable-compressed_debug_sections was given.
15533 if test "${enable_compressed_debug_sections+set}" = set; then :
15534 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15535 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15536 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15541 # Set the 'development' global.
15542 . $srcdir/../bfd/development.sh
15544 # Default set of GCC warnings to enable.
15545 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15547 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15553 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15556 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15561 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15567 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15570 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15575 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15576 WARN_WRITE_STRINGS=""
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15582 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15585 WARN_WRITE_STRINGS="-Wwrite-strings"
15590 # Check whether --enable-werror was given.
15591 if test "${enable_werror+set}" = set; then :
15592 enableval=$enable_werror; case "${enableval}" in
15593 yes | y) ERROR_ON_WARNING="yes" ;;
15594 no | n) ERROR_ON_WARNING="no" ;;
15595 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15600 # Disable -Wformat by default when using gcc on mingw
15603 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15604 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15610 # Enable -Werror by default when using gcc. Turn it off for releases.
15611 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15612 ERROR_ON_WARNING=yes
15616 if test "${ERROR_ON_WARNING}" = yes ; then
15617 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15618 NO_WERROR="-Wno-error"
15621 if test "${GCC}" = yes ; then
15622 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15625 # Check whether --enable-build-warnings was given.
15626 if test "${enable_build_warnings+set}" = set; then :
15627 enableval=$enable_build_warnings; case "${enableval}" in
15628 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15629 no) if test "${GCC}" = yes ; then
15632 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15633 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15634 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15635 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15636 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15641 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15642 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15652 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15653 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15654 $as_echo_n "(cached) " >&6
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <locale.h>
15667 if ac_fn_c_try_link "$LINENO"; then :
15668 am_cv_val_LC_MESSAGES=yes
15670 am_cv_val_LC_MESSAGES=no
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15676 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15677 if test $am_cv_val_LC_MESSAGES = yes; then
15679 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15684 ac_config_headers="$ac_config_headers config.h:config.in"
15690 if test -z "$target" ; then
15691 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15693 if test -z "$host" ; then
15694 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15697 # host-specific stuff:
15699 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15700 # If we haven't got the data from the intl directory,
15701 # assume NLS is disabled.
15710 if test -f ../intl/config.intl; then
15711 . ../intl/config.intl
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15714 $as_echo_n "checking whether NLS is requested... " >&6; }
15715 if test x"$USE_NLS" != xyes; then
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15720 $as_echo "yes" >&6; }
15722 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15726 $as_echo_n "checking for catalogs to be installed... " >&6; }
15727 # Look for .po and .gmo files in the source directory.
15730 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15731 # If there aren't any .gmo files the shell will give us the
15732 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15734 case "$cat" in *\**)
15737 # The quadruple backslash is collapsed to a double backslash
15738 # by the backticks, then collapsed again by the double quotes,
15739 # leaving us with one backslash in the sed expression (right
15740 # before the dot that mustn't act as a wildcard).
15741 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15742 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15743 # The user is allowed to set LINGUAS to a list of languages to
15744 # install catalogs for. If it's empty that means "all of them."
15745 if test "x$LINGUAS" = x; then
15746 CATALOGS="$CATALOGS $cat"
15747 XLINGUAS="$XLINGUAS $lang"
15749 case "$LINGUAS" in *$lang*)
15750 CATALOGS="$CATALOGS $cat"
15751 XLINGUAS="$XLINGUAS $lang"
15756 LINGUAS="$XLINGUAS"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15758 $as_echo "$LINGUAS" >&6; }
15772 if test -n "$ac_aux_dir"; then
15773 case "$ac_aux_dir" in
15774 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15775 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15778 if test -z "$MKINSTALLDIRS"; then
15779 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15785 $as_echo_n "checking whether NLS is requested... " >&6; }
15786 # Check whether --enable-nls was given.
15787 if test "${enable_nls+set}" = set; then :
15788 enableval=$enable_nls; USE_NLS=$enableval
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15794 $as_echo "$USE_NLS" >&6; }
15801 # Prepare PATH_SEPARATOR.
15802 # The user is always right.
15803 if test "${PATH_SEPARATOR+set}" != set; then
15804 echo "#! /bin/sh" >conf$$.sh
15805 echo "exit 0" >>conf$$.sh
15807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15815 # Find out how to test for executable files. Don't use a zero-byte file,
15816 # as systems may use methods other than mode bits to determine executability.
15817 cat >conf$$.file <<_ASEOF
15821 chmod +x conf$$.file
15822 if test -x conf$$.file >/dev/null 2>&1; then
15823 ac_executable_p="test -x"
15825 ac_executable_p="test -f"
15829 # Extract the first word of "msgfmt", so it can be a program name with args.
15830 set dummy msgfmt; ac_word=$2
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15832 $as_echo_n "checking for $ac_word... " >&6; }
15833 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15834 $as_echo_n "(cached) " >&6
15838 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15842 for ac_dir in $PATH; do
15844 test -z "$ac_dir" && ac_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15847 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15848 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15849 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15856 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15860 MSGFMT="$ac_cv_path_MSGFMT"
15861 if test "$MSGFMT" != ":"; then
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15863 $as_echo "$MSGFMT" >&6; }
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866 $as_echo "no" >&6; }
15869 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15870 set dummy gmsgfmt; ac_word=$2
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15872 $as_echo_n "checking for $ac_word... " >&6; }
15873 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
15878 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15882 for as_dir in $PATH
15885 test -z "$as_dir" && as_dir=.
15886 for ac_exec_ext in '' $ac_executable_extensions; do
15887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15888 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15896 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15900 GMSGFMT=$ac_cv_path_GMSGFMT
15901 if test -n "$GMSGFMT"; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15903 $as_echo "$GMSGFMT" >&6; }
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15912 # Prepare PATH_SEPARATOR.
15913 # The user is always right.
15914 if test "${PATH_SEPARATOR+set}" != set; then
15915 echo "#! /bin/sh" >conf$$.sh
15916 echo "exit 0" >>conf$$.sh
15918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15926 # Find out how to test for executable files. Don't use a zero-byte file,
15927 # as systems may use methods other than mode bits to determine executability.
15928 cat >conf$$.file <<_ASEOF
15932 chmod +x conf$$.file
15933 if test -x conf$$.file >/dev/null 2>&1; then
15934 ac_executable_p="test -x"
15936 ac_executable_p="test -f"
15940 # Extract the first word of "xgettext", so it can be a program name with args.
15941 set dummy xgettext; ac_word=$2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943 $as_echo_n "checking for $ac_word... " >&6; }
15944 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
15947 case "$XGETTEXT" in
15949 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15953 for ac_dir in $PATH; do
15955 test -z "$ac_dir" && ac_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15958 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15959 (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
15960 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15967 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15971 XGETTEXT="$ac_cv_path_XGETTEXT"
15972 if test "$XGETTEXT" != ":"; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15974 $as_echo "$XGETTEXT" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977 $as_echo "no" >&6; }
15983 # Prepare PATH_SEPARATOR.
15984 # The user is always right.
15985 if test "${PATH_SEPARATOR+set}" != set; then
15986 echo "#! /bin/sh" >conf$$.sh
15987 echo "exit 0" >>conf$$.sh
15989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15997 # Find out how to test for executable files. Don't use a zero-byte file,
15998 # as systems may use methods other than mode bits to determine executability.
15999 cat >conf$$.file <<_ASEOF
16003 chmod +x conf$$.file
16004 if test -x conf$$.file >/dev/null 2>&1; then
16005 ac_executable_p="test -x"
16007 ac_executable_p="test -f"
16011 # Extract the first word of "msgmerge", so it can be a program name with args.
16012 set dummy msgmerge; ac_word=$2
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16014 $as_echo_n "checking for $ac_word... " >&6; }
16015 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16016 $as_echo_n "(cached) " >&6
16018 case "$MSGMERGE" in
16020 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16023 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16024 for ac_dir in $PATH; do
16026 test -z "$ac_dir" && ac_dir=.
16027 for ac_exec_ext in '' $ac_executable_extensions; do
16028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16029 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16030 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16037 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16041 MSGMERGE="$ac_cv_path_MSGMERGE"
16042 if test "$MSGMERGE" != ":"; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16044 $as_echo "$MSGMERGE" >&6; }
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047 $as_echo "no" >&6; }
16051 if test "$GMSGFMT" != ":"; then
16052 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16053 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16056 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16058 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16063 if test "$XGETTEXT" != ":"; then
16064 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16065 (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
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16069 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16075 ac_config_commands="$ac_config_commands default-1"
16081 for ac_prog in 'bison -y' byacc
16083 # Extract the first word of "$ac_prog", so it can be a program name with args.
16084 set dummy $ac_prog; ac_word=$2
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16086 $as_echo_n "checking for $ac_word... " >&6; }
16087 if test "${ac_cv_prog_YACC+set}" = set; then :
16088 $as_echo_n "(cached) " >&6
16090 if test -n "$YACC"; then
16091 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094 for as_dir in $PATH
16097 test -z "$as_dir" && as_dir=.
16098 for ac_exec_ext in '' $ac_executable_extensions; do
16099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16100 ac_cv_prog_YACC="$ac_prog"
16101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16110 YACC=$ac_cv_prog_YACC
16111 if test -n "$YACC"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16113 $as_echo "$YACC" >&6; }
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16120 test -n "$YACC" && break
16122 test -n "$YACC" || YACC="yacc"
16124 for ac_prog in flex lex
16126 # Extract the first word of "$ac_prog", so it can be a program name with args.
16127 set dummy $ac_prog; ac_word=$2
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16129 $as_echo_n "checking for $ac_word... " >&6; }
16130 if test "${ac_cv_prog_LEX+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
16133 if test -n "$LEX"; then
16134 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137 for as_dir in $PATH
16140 test -z "$as_dir" && as_dir=.
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16143 ac_cv_prog_LEX="$ac_prog"
16144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16153 LEX=$ac_cv_prog_LEX
16154 if test -n "$LEX"; then
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16156 $as_echo "$LEX" >&6; }
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159 $as_echo "no" >&6; }
16163 test -n "$LEX" && break
16165 test -n "$LEX" || LEX=":"
16169 *) cat >conftest.l <<_ACEOF
16175 e { yyless (input () != 0); }
16176 f { unput (yytext[0]); }
16177 . { BEGIN INITIAL; }
16179 #ifdef YYTEXT_POINTER
16180 extern char *yytext;
16185 return ! yylex () + ! yywrap ();
16188 { { ac_try="$LEX conftest.l"
16189 case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16194 $as_echo "$ac_try_echo"; } >&5
16195 (eval "$LEX conftest.l") 2>&5
16197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198 test $ac_status = 0; }
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16200 $as_echo_n "checking lex output file root... " >&6; }
16201 if test "${ac_cv_prog_lex_root+set}" = set; then :
16202 $as_echo_n "(cached) " >&6
16205 if test -f lex.yy.c; then
16206 ac_cv_prog_lex_root=lex.yy
16207 elif test -f lexyy.c; then
16208 ac_cv_prog_lex_root=lexyy
16210 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16214 $as_echo "$ac_cv_prog_lex_root" >&6; }
16215 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16217 if test -z "${LEXLIB+set}"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16219 $as_echo_n "checking lex library... " >&6; }
16220 if test "${ac_cv_lib_lex+set}" = set; then :
16221 $as_echo_n "(cached) " >&6
16225 ac_cv_lib_lex='none needed'
16226 for ac_lib in '' -lfl -ll; do
16227 LIBS="$ac_lib $ac_save_LIBS"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230 `cat $LEX_OUTPUT_ROOT.c`
16232 if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_lib_lex=$ac_lib
16235 rm -f core conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16237 test "$ac_cv_lib_lex" != 'none needed' && break
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16243 $as_echo "$ac_cv_lib_lex" >&6; }
16244 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16249 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16250 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16253 # POSIX says lex can declare yytext either as a pointer or an array; the
16254 # default is implementation-dependent. Figure out which it is, since
16255 # not all implementations provide the %pointer and %array declarations.
16256 ac_cv_prog_lex_yytext_pointer=no
16258 LIBS="$LEXLIB $ac_save_LIBS"
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16261 #define YYTEXT_POINTER 1
16262 `cat $LEX_OUTPUT_ROOT.c`
16264 if ac_fn_c_try_link "$LINENO"; then :
16265 ac_cv_prog_lex_yytext_pointer=yes
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16273 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16274 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16276 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16279 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16282 if test "$LEX" = :; then
16283 LEX=${am_missing_run}flex
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16288 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16289 # Check whether --enable-maintainer-mode was given.
16290 if test "${enable_maintainer_mode+set}" = set; then :
16291 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16293 USE_MAINTAINER_MODE=no
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16297 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16298 if test $USE_MAINTAINER_MODE = yes; then
16299 MAINTAINER_MODE_TRUE=
16300 MAINTAINER_MODE_FALSE='#'
16302 MAINTAINER_MODE_TRUE='#'
16303 MAINTAINER_MODE_FALSE=
16306 MAINT=$MAINTAINER_MODE_TRUE
16310 GENINSRC_NEVER_TRUE=
16311 GENINSRC_NEVER_FALSE='#'
16313 GENINSRC_NEVER_TRUE='#'
16314 GENINSRC_NEVER_FALSE=
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16318 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16319 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16320 $as_echo_n "(cached) " >&6
16324 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16325 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16326 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16329 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16332 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16333 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16336 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16343 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16344 do_compare="$gcc_cv_prog_cmp_skip"
16348 . ${srcdir}/configure.host
16357 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16361 eval as_val=\$$as_ac_Header
16362 if test "x$as_val" = x""yes; then :
16363 cat >>confdefs.h <<_ACEOF
16364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16371 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16375 eval as_val=\$$as_ac_Header
16376 if test "x$as_val" = x""yes; then :
16377 cat >>confdefs.h <<_ACEOF
16378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16386 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16387 if test "${gcc_cv_header_string+set}" = set; then :
16388 $as_echo_n "(cached) " >&6
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <string.h>
16393 #include <strings.h>
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403 gcc_cv_header_string=yes
16405 gcc_cv_header_string=no
16407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16410 $as_echo "$gcc_cv_header_string" >&6; }
16411 if test $gcc_cv_header_string = yes; then
16413 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16417 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16421 eval as_val=\$$as_ac_var
16422 if test "x$as_val" = x""yes; then :
16423 cat >>confdefs.h <<_ACEOF
16424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16430 for ac_func in open lseek close
16432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16434 eval as_val=\$$as_ac_var
16435 if test "x$as_val" = x""yes; then :
16436 cat >>confdefs.h <<_ACEOF
16437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16443 ac_header_dirent=no
16444 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16445 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16447 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16449 $as_echo_n "(cached) " >&6
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453 #include <sys/types.h>
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466 eval "$as_ac_Header=yes"
16468 eval "$as_ac_Header=no"
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 eval ac_res=\$$as_ac_Header
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16474 $as_echo "$ac_res" >&6; }
16475 eval as_val=\$$as_ac_Header
16476 if test "x$as_val" = x""yes; then :
16477 cat >>confdefs.h <<_ACEOF
16478 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16481 ac_header_dirent=$ac_hdr; break
16485 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16486 if test $ac_header_dirent = dirent.h; then
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16488 $as_echo_n "checking for library containing opendir... " >&6; }
16489 if test "${ac_cv_search_opendir+set}" = set; then :
16490 $as_echo_n "(cached) " >&6
16492 ac_func_search_save_LIBS=$LIBS
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16511 for ac_lib in '' dir; do
16512 if test -z "$ac_lib"; then
16513 ac_res="none required"
16516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 ac_cv_search_opendir=$ac_res
16521 rm -f core conftest.err conftest.$ac_objext \
16523 if test "${ac_cv_search_opendir+set}" = set; then :
16527 if test "${ac_cv_search_opendir+set}" = set; then :
16530 ac_cv_search_opendir=no
16532 rm conftest.$ac_ext
16533 LIBS=$ac_func_search_save_LIBS
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16536 $as_echo "$ac_cv_search_opendir" >&6; }
16537 ac_res=$ac_cv_search_opendir
16538 if test "$ac_res" != no; then :
16539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16545 $as_echo_n "checking for library containing opendir... " >&6; }
16546 if test "${ac_cv_search_opendir+set}" = set; then :
16547 $as_echo_n "(cached) " >&6
16549 ac_func_search_save_LIBS=$LIBS
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16553 /* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
16568 for ac_lib in '' x; do
16569 if test -z "$ac_lib"; then
16570 ac_res="none required"
16573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16575 if ac_fn_c_try_link "$LINENO"; then :
16576 ac_cv_search_opendir=$ac_res
16578 rm -f core conftest.err conftest.$ac_objext \
16580 if test "${ac_cv_search_opendir+set}" = set; then :
16584 if test "${ac_cv_search_opendir+set}" = set; then :
16587 ac_cv_search_opendir=no
16589 rm conftest.$ac_ext
16590 LIBS=$ac_func_search_save_LIBS
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16593 $as_echo "$ac_cv_search_opendir" >&6; }
16594 ac_res=$ac_cv_search_opendir
16595 if test "$ac_res" != no; then :
16596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16603 for ac_header in stdlib.h unistd.h
16605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16606 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16607 eval as_val=\$$as_ac_Header
16608 if test "x$as_val" = x""yes; then :
16609 cat >>confdefs.h <<_ACEOF
16610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16617 for ac_func in getpagesize
16619 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16620 if test "x$ac_cv_func_getpagesize" = x""yes; then :
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_GETPAGESIZE 1
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16629 $as_echo_n "checking for working mmap... " >&6; }
16630 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16631 $as_echo_n "(cached) " >&6
16633 if test "$cross_compiling" = yes; then :
16634 ac_cv_func_mmap_fixed_mapped=no
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 $ac_includes_default
16639 /* malloc might have been renamed as rpl_malloc. */
16642 /* Thanks to Mike Haertel and Jim Avera for this test.
16643 Here is a matrix of mmap possibilities:
16644 mmap private not fixed
16645 mmap private fixed at somewhere currently unmapped
16646 mmap private fixed at somewhere already mapped
16647 mmap shared not fixed
16648 mmap shared fixed at somewhere currently unmapped
16649 mmap shared fixed at somewhere already mapped
16650 For private mappings, we should verify that changes cannot be read()
16651 back from the file, nor mmap's back from the file at a different
16652 address. (There have been systems where private was not correctly
16653 implemented like the infamous i386 svr4.0, and systems where the
16654 VM page cache was not coherent with the file system buffer cache
16655 like early versions of FreeBSD and possibly contemporary NetBSD.)
16656 For shared mappings, we should conversely verify that changes get
16657 propagated back to all the places they're supposed to be.
16659 Grep wants private fixed already mapped.
16660 The main things grep needs to know about mmap are:
16661 * does it exist and is it safe to write into the mmap'd area
16662 * how to use it (BSD variants) */
16665 #include <sys/mman.h>
16667 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16671 /* This mess was copied from the GNU getpagesize.h. */
16672 #ifndef HAVE_GETPAGESIZE
16673 /* Assume that all systems that can run configure have sys/param.h. */
16674 # ifndef HAVE_SYS_PARAM_H
16675 # define HAVE_SYS_PARAM_H 1
16678 # ifdef _SC_PAGESIZE
16679 # define getpagesize() sysconf(_SC_PAGESIZE)
16680 # else /* no _SC_PAGESIZE */
16681 # ifdef HAVE_SYS_PARAM_H
16682 # include <sys/param.h>
16683 # ifdef EXEC_PAGESIZE
16684 # define getpagesize() EXEC_PAGESIZE
16685 # else /* no EXEC_PAGESIZE */
16687 # define getpagesize() NBPG * CLSIZE
16690 # endif /* no CLSIZE */
16691 # else /* no NBPG */
16693 # define getpagesize() NBPC
16694 # else /* no NBPC */
16696 # define getpagesize() PAGESIZE
16697 # endif /* PAGESIZE */
16698 # endif /* no NBPC */
16699 # endif /* no NBPG */
16700 # endif /* no EXEC_PAGESIZE */
16701 # else /* no HAVE_SYS_PARAM_H */
16702 # define getpagesize() 8192 /* punt totally */
16703 # endif /* no HAVE_SYS_PARAM_H */
16704 # endif /* no _SC_PAGESIZE */
16706 #endif /* no HAVE_GETPAGESIZE */
16711 char *data, *data2, *data3;
16715 pagesize = getpagesize ();
16717 /* First, make a file with some known garbage in it. */
16718 data = (char *) malloc (pagesize);
16721 for (i = 0; i < pagesize; ++i)
16722 *(data + i) = rand ();
16724 fd = creat ("conftest.mmap", 0600);
16727 if (write (fd, data, pagesize) != pagesize)
16731 /* Next, try to mmap the file at a fixed address which already has
16732 something else allocated at it. If we can, also make sure that
16733 we see the same garbage. */
16734 fd = open ("conftest.mmap", O_RDWR);
16737 data2 = (char *) malloc (2 * pagesize);
16740 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16741 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16742 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16744 for (i = 0; i < pagesize; ++i)
16745 if (*(data + i) != *(data2 + i))
16748 /* Finally, make sure that changes to the mapped area do not
16749 percolate back to the file as seen by read(). (This is a bug on
16750 some variants of i386 svr4.0.) */
16751 for (i = 0; i < pagesize; ++i)
16752 *(data2 + i) = *(data2 + i) + 1;
16753 data3 = (char *) malloc (pagesize);
16756 if (read (fd, data3, pagesize) != pagesize)
16758 for (i = 0; i < pagesize; ++i)
16759 if (*(data + i) != *(data3 + i))
16765 if ac_fn_c_try_run "$LINENO"; then :
16766 ac_cv_func_mmap_fixed_mapped=yes
16768 ac_cv_func_mmap_fixed_mapped=no
16770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16771 conftest.$ac_objext conftest.beam conftest.$ac_ext
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16776 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16777 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16779 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16782 rm -f conftest.mmap
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16786 $as_echo_n "checking for library containing dlopen... " >&6; }
16787 if test "${ac_cv_search_dlopen+set}" = set; then :
16788 $as_echo_n "(cached) " >&6
16790 ac_func_search_save_LIBS=$LIBS
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16809 for ac_lib in '' dl; do
16810 if test -z "$ac_lib"; then
16811 ac_res="none required"
16814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16816 if ac_fn_c_try_link "$LINENO"; then :
16817 ac_cv_search_dlopen=$ac_res
16819 rm -f core conftest.err conftest.$ac_objext \
16821 if test "${ac_cv_search_dlopen+set}" = set; then :
16825 if test "${ac_cv_search_dlopen+set}" = set; then :
16828 ac_cv_search_dlopen=no
16830 rm conftest.$ac_ext
16831 LIBS=$ac_func_search_save_LIBS
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16834 $as_echo "$ac_cv_search_dlopen" >&6; }
16835 ac_res=$ac_cv_search_dlopen
16836 if test "$ac_res" != no; then :
16837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16841 if test x$plugins = xyes; then
16842 ENABLE_PLUGINS_TRUE=
16843 ENABLE_PLUGINS_FALSE='#'
16845 ENABLE_PLUGINS_TRUE='#'
16846 ENABLE_PLUGINS_FALSE=
16850 # Check whether --enable-initfini-array was given.
16851 if test "${enable_initfini_array+set}" = set; then :
16852 enableval=$enable_initfini_array; case "${enableval}" in
16854 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16857 enable_initfini_array=yes
16861 if test $enable_initfini_array = yes; then
16863 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16868 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16869 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16870 $as_echo_n "(cached) " >&6
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16874 #include <unistd.h>
16878 extern int getopt (int, char *const*, const char *);
16883 if ac_fn_c_try_compile "$LINENO"; then :
16884 ld_cv_decl_getopt_unistd_h=yes
16886 ld_cv_decl_getopt_unistd_h=no
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16892 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16893 if test $ld_cv_decl_getopt_unistd_h = yes; then
16895 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16901 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16903 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16907 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16908 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16914 cat >>confdefs.h <<_ACEOF
16915 #define HAVE_DECL_STRSTR $ac_have_decl
16917 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16918 if test "x$ac_cv_have_decl_free" = x""yes; then :
16924 cat >>confdefs.h <<_ACEOF
16925 #define HAVE_DECL_FREE $ac_have_decl
16927 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16928 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16934 cat >>confdefs.h <<_ACEOF
16935 #define HAVE_DECL_SBRK $ac_have_decl
16937 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16938 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_DECL_GETENV $ac_have_decl
16947 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16948 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16954 cat >>confdefs.h <<_ACEOF
16955 #define HAVE_DECL_ENVIRON $ac_have_decl
16959 # When converting linker scripts into strings for use in emulation
16960 # files, use astring.sed if the compiler supports ANSI string
16961 # concatenation, or ostring.sed otherwise. This is to support the
16962 # broken Microsoft MSVC compiler, which limits the length of string
16963 # constants, while still supporting pre-ANSI compilers which do not
16964 # support string concatenation.
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16966 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16967 if test "${ld_cv_string_concatenation+set}" = set; then :
16968 $as_echo_n "(cached) " >&6
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16981 if ac_fn_c_try_compile "$LINENO"; then :
16982 ld_cv_string_concatenation=yes
16984 ld_cv_string_concatenation=no
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16990 $as_echo "$ld_cv_string_concatenation" >&6; }
16991 if test "$ld_cv_string_concatenation" = "yes"; then
16992 STRINGIFY=astring.sed
16994 STRINGIFY=ostring.sed
16998 # target-specific stuff:
17008 # If the host is 64-bit, then we enable 64-bit targets by default.
17009 # This is consistent with what ../bfd/configure.ac does.
17010 if test x${want64} = xfalse; then
17011 # The cast to long int works around a bug in the HP C Compiler
17012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17014 # This bug is HP SR number 8606223364.
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17016 $as_echo_n "checking size of void *... " >&6; }
17017 if test "${ac_cv_sizeof_void_p+set}" = set; then :
17018 $as_echo_n "(cached) " >&6
17020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17023 if test "$ac_cv_type_void_p" = yes; then
17024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17026 { as_fn_set_status 77
17027 as_fn_error "cannot compute sizeof (void *)
17028 See \`config.log' for more details." "$LINENO" 5; }; }
17030 ac_cv_sizeof_void_p=0
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17036 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17040 cat >>confdefs.h <<_ACEOF
17041 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17045 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17050 elf_list_options=FALSE
17051 elf_shlib_list_options=FALSE
17052 elf_plt_unwind_list_options=FALSE
17053 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17055 if test "$targ_alias" = "all"; then
17057 elf_list_options=TRUE
17058 elf_shlib_list_options=TRUE
17059 elf_plt_unwind_list_options=TRUE
17061 # Canonicalize the secondary target names.
17062 result=`$ac_config_sub $targ_alias 2>/dev/null`
17063 if test -n "$result"; then
17069 . ${srcdir}/configure.tgt
17071 if test "$targ" = "$target"; then
17075 if test x${want64} = xfalse; then
17076 . ${srcdir}/../bfd/config.bfd
17079 if test x${want64} = xtrue; then
17080 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17081 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17084 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17085 case " $all_emuls " in
17088 all_emuls="$all_emuls e${i}.o"
17089 eval result=\$tdir_$i
17090 test -z "$result" && result=$targ_alias
17091 echo tdir_$i=$result >> tdirs
17094 elf_list_options=TRUE
17097 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17098 elf_list_options=TRUE
17102 if test "$elf_list_options" = "TRUE"; then
17103 . ${srcdir}/emulparams/${i}.sh
17104 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17105 elf_shlib_list_options=TRUE
17107 if test x${PLT_UNWIND} = xyes; then
17108 elf_plt_unwind_list_options=TRUE
17115 for i in $targ_emul $targ_extra_libpath; do
17116 case " $all_libpath " in
17119 if test -z "$all_libpath"; then
17122 all_libpath="$all_libpath ${i}"
17128 for i in $targ_extra_ofiles; do
17129 case " $all_emul_extras " in
17132 all_emul_extras="$all_emul_extras ${i}"
17140 if test x$ac_default_compressed_debug_sections = xyes ; then
17142 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17154 if test x${all_targets} = xtrue; then
17155 if test x${want64} = xtrue; then
17156 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17157 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17159 EMULATION_OFILES='$(ALL_EMULATIONS)'
17160 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17163 EMULATION_OFILES=$all_emuls
17164 EMUL_EXTRA_OFILES=$all_emul_extras
17170 EMULATION_LIBPATH=$all_libpath
17173 if test x${enable_static} = xno; then
17174 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17176 TESTBFDLIB="../bfd/.libs/libbfd.a"
17180 target_vendor=${target_vendor=$host_vendor}
17181 case "$target_vendor" in
17182 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17183 *) EXTRA_SHLIB_EXTENSION= ;;
17186 case "$target_os" in
17187 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17190 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17192 cat >>confdefs.h <<_ACEOF
17193 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17203 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17205 cat >confcache <<\_ACEOF
17206 # This file is a shell script that caches the results of configure
17207 # tests run on this system so they can be shared between configure
17208 # scripts and configure runs, see configure's option --config-cache.
17209 # It is not useful on other systems. If it contains results you don't
17210 # want to keep, you may remove or edit it.
17212 # config.status only pays attention to the cache file if you give it
17213 # the --recheck option to rerun configure.
17215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17217 # following values.
17221 # The following way of writing the cache mishandles newlines in values,
17222 # but we know of no workaround that is simple, portable, and efficient.
17223 # So, we kill variables containing newlines.
17224 # Ultrix sh set writes to stderr and can't be redirected directly,
17225 # and sets the high bit in the cache file unless we assign to the vars.
17227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17228 eval ac_val=\$$ac_var
17232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17236 _ | IFS | as_nl) ;; #(
17237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17238 *) { eval $ac_var=; unset $ac_var;} ;;
17244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17245 *${as_nl}ac_space=\ *)
17246 # `set' does not quote correctly, so add quotes: double-quote
17247 # substitution turns \\\\ into \\, and sed turns \\ into \.
17250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17253 # `set' quotes correctly as required by POSIX, so do not add quotes.
17254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17268 if test -w "$cache_file"; then
17269 test "x$cache_file" != "x/dev/null" &&
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17271 $as_echo "$as_me: updating cache $cache_file" >&6;}
17272 cat confcache >$cache_file
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17281 # Let make expand exec_prefix.
17282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17284 DEFS=-DHAVE_CONFIG_H
17288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17289 # 1. Remove the extension, and $U if already installed.
17290 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17291 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17293 # will be set to the directory where LIBOBJS objects are built.
17294 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17295 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17297 LIBOBJS=$ac_libobjs
17299 LTLIBOBJS=$ac_ltlibobjs
17302 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17303 as_fn_error "conditional \"AMDEP\" was never defined.
17304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17306 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17307 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17310 if test -n "$EXEEXT"; then
17312 am__EXEEXT_FALSE='#'
17314 am__EXEEXT_TRUE='#'
17318 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17319 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17322 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17323 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17326 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17327 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17330 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17331 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17334 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17335 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17339 : ${CONFIG_STATUS=./config.status}
17341 ac_clean_files_save=$ac_clean_files
17342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17344 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17346 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17348 # Generated by $as_me.
17349 # Run this file to recreate the current configuration.
17350 # Compiler output produced by configure, useful for debugging
17351 # configure, is in config.log if it exists.
17354 ac_cs_recheck=false
17357 SHELL=\${CONFIG_SHELL-$SHELL}
17360 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17361 ## -------------------- ##
17362 ## M4sh Initialization. ##
17363 ## -------------------- ##
17365 # Be more Bourne compatible
17366 DUALCASE=1; export DUALCASE # for MKS sh
17367 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17371 # is contrary to our usage. Disable this feature.
17372 alias -g '${1+"$@"}'='"$@"'
17373 setopt NO_GLOB_SUBST
17375 case `(set -o) 2>/dev/null` in #(
17387 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17388 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17390 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17391 # Prefer a ksh shell builtin over an external printf program on Solaris,
17392 # but without wasting forks for bash or zsh.
17393 if test -z "$BASH_VERSION$ZSH_VERSION" \
17394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17395 as_echo='print -r --'
17396 as_echo_n='print -rn --'
17397 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17398 as_echo='printf %s\n'
17399 as_echo_n='printf %s'
17401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17403 as_echo_n='/usr/ucb/echo -n'
17405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17406 as_echo_n_body='eval
17410 expr "X$arg" : "X\\(.*\\)$as_nl";
17411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17415 export as_echo_n_body
17416 as_echo_n='sh -c $as_echo_n_body as_echo'
17418 export as_echo_body
17419 as_echo='sh -c $as_echo_body as_echo'
17422 # The user is always right.
17423 if test "${PATH_SEPARATOR+set}" != set; then
17425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17433 # We need space, tab and new line, in precisely that order. Quoting is
17434 # there to prevent editors from complaining about space-tab.
17435 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17436 # splitting by setting IFS to empty value.)
17439 # Find who we are. Look in the path if we contain no directory separator.
17441 *[\\/]* ) as_myself=$0 ;;
17442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443 for as_dir in $PATH
17446 test -z "$as_dir" && as_dir=.
17447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17453 # We did not find ourselves, most probably we were run as `sh COMMAND'
17454 # in which case we are not to be found in the path.
17455 if test "x$as_myself" = x; then
17458 if test ! -f "$as_myself"; then
17459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17463 # Unset variables that we do not need and which cause bugs (e.g. in
17464 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17465 # suppresses any "Segmentation fault" message there. '((' could
17466 # trigger a bug in pdksh 5.2.14.
17467 for as_var in BASH_ENV ENV MAIL MAILPATH
17468 do eval test x\${$as_var+set} = xset \
17469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17482 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17485 # as_fn_error ERROR [LINENO LOG_FD]
17486 # ---------------------------------
17487 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17488 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17489 # script with status $?, using 1 if that was 0.
17492 as_status=$?; test $as_status -eq 0 && as_status=1
17494 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17497 $as_echo "$as_me: error: $1" >&2
17498 as_fn_exit $as_status
17502 # as_fn_set_status STATUS
17503 # -----------------------
17504 # Set $? to STATUS, without forking.
17505 as_fn_set_status ()
17508 } # as_fn_set_status
17510 # as_fn_exit STATUS
17511 # -----------------
17512 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17516 as_fn_set_status $1
17522 # Portably unset VAR.
17525 { eval $1=; unset $1;}
17527 as_unset=as_fn_unset
17528 # as_fn_append VAR VALUE
17529 # ----------------------
17530 # Append the text in VALUE to the end of the definition contained in VAR. Take
17531 # advantage of any shell optimizations that allow amortized linear growth over
17532 # repeated appends, instead of the typical quadratic growth present in naive
17534 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17535 eval 'as_fn_append ()
17546 # as_fn_arith ARG...
17547 # ------------------
17548 # Perform arithmetic evaluation on the ARGs, and store the result in the
17549 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17550 # must be portable across $(()) and expr.
17551 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17552 eval 'as_fn_arith ()
17559 as_val=`expr "$@" || test $? -eq 1`
17564 if expr a : '\(a\)' >/dev/null 2>&1 &&
17565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17571 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17572 as_basename=basename
17577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17583 as_me=`$as_basename -- "$0" ||
17584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17585 X"$0" : 'X\(//\)$' \| \
17586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17588 sed '/^.*\/\([^/][^/]*\)\/*$/{
17602 # Avoid depending upon Character Ranges.
17603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17606 as_cr_digits='0123456789'
17607 as_cr_alnum=$as_cr_Letters$as_cr_digits
17609 ECHO_C= ECHO_N= ECHO_T=
17610 case `echo -n x` in #(((((
17612 case `echo 'xy\c'` in
17613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17622 rm -f conf$$ conf$$.exe conf$$.file
17623 if test -d conf$$.dir; then
17624 rm -f conf$$.dir/conf$$.file
17627 mkdir conf$$.dir 2>/dev/null
17629 if (echo >conf$$.file) 2>/dev/null; then
17630 if ln -s conf$$.file conf$$ 2>/dev/null; then
17632 # ... but there are two gotchas:
17633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17635 # In both cases, we have to default to `cp -p'.
17636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17638 elif ln conf$$.file conf$$ 2>/dev/null; then
17646 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17647 rmdir conf$$.dir 2>/dev/null
17652 # Create "$as_dir" as a directory, including parents if necessary.
17657 -*) as_dir=./$as_dir;;
17659 test -d "$as_dir" || eval $as_mkdir_p || {
17663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17664 *) as_qdir=$as_dir;;
17666 as_dirs="'$as_qdir' $as_dirs"
17667 as_dir=`$as_dirname -- "$as_dir" ||
17668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17669 X"$as_dir" : 'X\(//\)[^/]' \| \
17670 X"$as_dir" : 'X\(//\)$' \| \
17671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17672 $as_echo X"$as_dir" |
17673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17677 /^X\(\/\/\)[^/].*/{
17690 test -d "$as_dir" && break
17692 test -z "$as_dirs" || eval "mkdir $as_dirs"
17693 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17697 if mkdir -p . 2>/dev/null; then
17698 as_mkdir_p='mkdir -p "$as_dir"'
17700 test -d ./-p && rmdir ./-p
17704 if test -x / >/dev/null 2>&1; then
17705 as_test_x='test -x'
17707 if ls -dL / >/dev/null 2>&1; then
17714 if test -d "$1"; then
17720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17721 ???[sx]*):;;*)false;;esac;fi
17725 as_executable_p=$as_test_x
17727 # Sed expression to map a string onto a valid CPP name.
17728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17730 # Sed expression to map a string onto a valid variable name.
17731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17735 ## ----------------------------------- ##
17736 ## Main body of $CONFIG_STATUS script. ##
17737 ## ----------------------------------- ##
17739 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742 # Save the log message, to keep $0 and so on meaningful, and to
17743 # report actual input values of CONFIG_FILES etc. instead of their
17744 # values after options handling.
17746 This file was extended by ld $as_me 2.26.51, which was
17747 generated by GNU Autoconf 2.64. Invocation command line was
17749 CONFIG_FILES = $CONFIG_FILES
17750 CONFIG_HEADERS = $CONFIG_HEADERS
17751 CONFIG_LINKS = $CONFIG_LINKS
17752 CONFIG_COMMANDS = $CONFIG_COMMANDS
17755 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17760 case $ac_config_files in *"
17761 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17764 case $ac_config_headers in *"
17765 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 # Files that config.status was made for.
17771 config_files="$ac_config_files"
17772 config_headers="$ac_config_headers"
17773 config_commands="$ac_config_commands"
17777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17779 \`$as_me' instantiates files and other configuration actions
17780 from templates according to the current configuration. Unless the files
17781 and actions are specified as TAGs, all are instantiated by default.
17783 Usage: $0 [OPTION]... [TAG]...
17785 -h, --help print this help, then exit
17786 -V, --version print version number and configuration settings, then exit
17787 -q, --quiet, --silent
17788 do not print progress messages
17789 -d, --debug don't remove temporary files
17790 --recheck update $as_me by reconfiguring in the same conditions
17791 --file=FILE[:TEMPLATE]
17792 instantiate the configuration file FILE
17793 --header=FILE[:TEMPLATE]
17794 instantiate the configuration header FILE
17796 Configuration files:
17799 Configuration headers:
17802 Configuration commands:
17805 Report bugs to the package provider."
17808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17810 ld config.status 2.26.51
17811 configured by $0, generated by GNU Autoconf 2.64,
17812 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17814 Copyright (C) 2009 Free Software Foundation, Inc.
17815 This config.status script is free software; the Free Software Foundation
17816 gives unlimited permission to copy, distribute and modify it."
17823 test -n "\$AWK" || AWK=awk
17826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17827 # The default lists apply if the user does not specify any file.
17833 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17834 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17845 # Handling of the options.
17846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17848 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17849 $as_echo "$ac_cs_version"; exit ;;
17850 --debug | --debu | --deb | --de | --d | -d )
17852 --file | --fil | --fi | --f )
17855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17857 as_fn_append CONFIG_FILES " '$ac_optarg'"
17858 ac_need_defaults=false;;
17859 --header | --heade | --head | --hea )
17862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17865 ac_need_defaults=false;;
17867 # Conflict between --help and --header
17868 as_fn_error "ambiguous option: \`$1'
17869 Try \`$0 --help' for more information.";;
17870 --help | --hel | -h )
17871 $as_echo "$ac_cs_usage"; exit ;;
17872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17876 # This is an error.
17877 -*) as_fn_error "unrecognized option: \`$1'
17878 Try \`$0 --help' for more information." ;;
17880 *) as_fn_append ac_config_targets " $1"
17881 ac_need_defaults=false ;;
17887 ac_configure_extra_args=
17889 if $ac_cs_silent; then
17891 ac_configure_extra_args="$ac_configure_extra_args --silent"
17895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17896 if \$ac_cs_recheck; then
17897 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17900 CONFIG_SHELL='$SHELL'
17901 export CONFIG_SHELL
17906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17911 ## Running $as_me. ##
17917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17921 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17924 # The HP-UX ksh and POSIX shell print the target directory to stdout
17925 # if CDPATH is set.
17926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17928 sed_quote_subst='$sed_quote_subst'
17929 double_quote_subst='$double_quote_subst'
17930 delay_variable_subst='$delay_variable_subst'
17931 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17932 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17933 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17934 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17935 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17936 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17937 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17938 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17939 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17940 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17941 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17942 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17943 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17944 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17945 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17946 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17947 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17948 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17949 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17950 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17951 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17952 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17953 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17954 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17955 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17956 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17957 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17958 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17961 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17964 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17965 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17966 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17967 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17968 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17969 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17970 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17971 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17972 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17973 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17974 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17975 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17976 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17977 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17978 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17979 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"`'
17980 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17981 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17982 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17983 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17984 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17985 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17986 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17987 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17988 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17989 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17990 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17991 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17992 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17993 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17994 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17995 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17996 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17997 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17998 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17999 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18000 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18001 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18002 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18003 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18004 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18005 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18006 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18007 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18008 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18009 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18010 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18011 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18012 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18013 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18014 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18015 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18016 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18017 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18018 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18019 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18020 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18021 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18022 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18023 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18024 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18025 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18026 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18027 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18028 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18029 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18030 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18031 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18032 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18033 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18034 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18035 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18036 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18037 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18038 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18039 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18040 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18041 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18042 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18043 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18044 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18045 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18046 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18047 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18048 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18049 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18050 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18051 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18052 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18053 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18054 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18055 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18056 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18057 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18058 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18059 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18060 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18061 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18062 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18063 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18064 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18065 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18066 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18067 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18068 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18069 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18070 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18071 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18072 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18073 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18074 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18075 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18076 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18077 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18078 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18079 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18080 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18081 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18082 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18083 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18084 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18085 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18086 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18087 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18088 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18089 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18090 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18091 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18092 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18093 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18094 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18095 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18096 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18097 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18098 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18099 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18100 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18101 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18102 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18103 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18104 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18105 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18108 LTCFLAGS='$LTCFLAGS'
18109 compiler='$compiler_DEFAULT'
18111 # A function that is used when there is no print builtin or printf.
18112 func_fallback_echo ()
18114 eval 'cat <<_LTECHO_EOF
18119 # Quote evaled strings.
18133 deplibs_check_method \
18142 lt_cv_sys_global_symbol_pipe \
18143 lt_cv_sys_global_symbol_to_cdecl \
18144 lt_cv_sys_global_symbol_to_c_name_address \
18145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18146 lt_prog_compiler_no_builtin_flag \
18147 lt_prog_compiler_wl \
18148 lt_prog_compiler_pic \
18149 lt_prog_compiler_static \
18150 lt_cv_prog_compiler_c_o \
18158 export_dynamic_flag_spec \
18159 whole_archive_flag_spec \
18160 compiler_needs_object \
18162 allow_undefined_flag \
18163 no_undefined_flag \
18164 hardcode_libdir_flag_spec \
18165 hardcode_libdir_flag_spec_ld \
18166 hardcode_libdir_separator \
18171 variables_saved_for_relink \
18173 library_names_spec \
18175 install_override_mode \
18179 compiler_lib_search_dirs \
18184 compiler_lib_search_path \
18188 lt_prog_compiler_no_builtin_flag_CXX \
18189 lt_prog_compiler_wl_CXX \
18190 lt_prog_compiler_pic_CXX \
18191 lt_prog_compiler_static_CXX \
18192 lt_cv_prog_compiler_c_o_CXX \
18193 export_dynamic_flag_spec_CXX \
18194 whole_archive_flag_spec_CXX \
18195 compiler_needs_object_CXX \
18197 allow_undefined_flag_CXX \
18198 no_undefined_flag_CXX \
18199 hardcode_libdir_flag_spec_CXX \
18200 hardcode_libdir_flag_spec_ld_CXX \
18201 hardcode_libdir_separator_CXX \
18202 fix_srcfile_path_CXX \
18203 exclude_expsyms_CXX \
18204 include_expsyms_CXX \
18205 file_list_spec_CXX \
18206 compiler_lib_search_dirs_CXX \
18207 predep_objects_CXX \
18208 postdep_objects_CXX \
18211 compiler_lib_search_path_CXX; do
18212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18213 *[\\\\\\\`\\"\\\$]*)
18214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18222 # Double-quote double-evaled strings.
18223 for var in reload_cmds \
18224 old_postinstall_cmds \
18225 old_postuninstall_cmds \
18227 extract_expsyms_cmds \
18228 old_archive_from_new_cmds \
18229 old_archive_from_expsyms_cmds \
18231 archive_expsym_cmds \
18233 module_expsym_cmds \
18234 export_symbols_cmds \
18237 postuninstall_cmds \
18239 sys_lib_search_path_spec \
18240 sys_lib_dlsearch_path_spec \
18242 old_archive_cmds_CXX \
18243 old_archive_from_new_cmds_CXX \
18244 old_archive_from_expsyms_cmds_CXX \
18246 archive_expsym_cmds_CXX \
18248 module_expsym_cmds_CXX \
18249 export_symbols_cmds_CXX \
18250 prelink_cmds_CXX; do
18251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18252 *[\\\\\\\`\\"\\\$]*)
18253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18261 ac_aux_dir='$ac_aux_dir'
18262 xsi_shell='$xsi_shell'
18263 lt_shell_append='$lt_shell_append'
18265 # See if we are running on zsh, and set the options which allow our
18266 # commands through without removal of \ escapes INIT.
18267 if test -n "\${ZSH_VERSION+set}" ; then
18268 setopt NO_GLOB_SUBST
18274 TIMESTAMP='$TIMESTAMP'
18282 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18283 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18285 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18286 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18287 LINGUAS="${LINGUAS-%UNSET%}"
18292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18294 # Handling of arguments.
18295 for ac_config_target in $ac_config_targets
18297 case $ac_config_target in
18298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18300 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18301 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18303 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18305 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18310 # If the user did not use the arguments to specify the items to instantiate,
18311 # then the envvar interface is used. Set only those that are not.
18312 # We use the long form for the default assignment because of an extremely
18313 # bizarre bug on SunOS 4.1.3.
18314 if $ac_need_defaults; then
18315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18320 # Have a temporary directory for convenience. Make it in the build tree
18321 # simply because there is no reason against having it here, and in addition,
18322 # creating and moving files from /tmp can sometimes cause problems.
18323 # Hook for its removal unless debugging.
18324 # Note that there is a small window in which the directory will not be cleaned:
18325 # after its creation but before its name has been assigned to `$tmp'.
18329 trap 'exit_status=$?
18330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18332 trap 'as_fn_exit 1' 1 2 13 15
18334 # Create a (secure) tmp directory for tmp files.
18337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18338 test -n "$tmp" && test -d "$tmp"
18341 tmp=./conf$$-$RANDOM
18342 (umask 077 && mkdir "$tmp")
18343 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18345 # Set up the scripts for CONFIG_FILES section.
18346 # No need to generate them if there are no CONFIG_FILES.
18347 # This happens for instance with `./config.status config.h'.
18348 if test -n "$CONFIG_FILES"; then
18350 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18351 ac_cs_awk_getline=:
18352 ac_cs_awk_pipe_init=
18353 ac_cs_awk_read_file='
18354 while ((getline aline < (F[key])) > 0)
18357 ac_cs_awk_pipe_fini=
18359 ac_cs_awk_getline=false
18360 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18361 ac_cs_awk_read_file='
18363 print "cat " F[key] " &&"
18364 '$ac_cs_awk_pipe_init
18365 # The final `:' finishes the AND list.
18366 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18368 ac_cr=`echo X | tr X '\015'`
18369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18370 # But we know of no other shell where ac_cr would be empty at this
18371 # point, so we can use a bashism as a fallback.
18372 if test "x$ac_cr" = x; then
18373 eval ac_cr=\$\'\\r\'
18375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18379 ac_cs_awk_cr=$ac_cr
18382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18385 # Create commands to substitute file output variables.
18387 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18388 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18389 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18392 } >conf$$files.sh &&
18393 . ./conf$$files.sh ||
18394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18395 rm -f conf$$files.sh
18398 echo "cat >conf$$subs.awk <<_ACEOF" &&
18399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18401 } >conf$$subs.sh ||
18402 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18405 for ac_last_try in false false false false false :; do
18406 . ./conf$$subs.sh ||
18407 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18410 if test $ac_delim_n = $ac_delim_num; then
18412 elif $ac_last_try; then
18413 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18418 rm -f conf$$subs.sh
18420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18421 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18425 s/^/S["/; s/!.*/"]=/
18435 s/\(.\{148\}\).*/\1/
18437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18449 s/\(.\{148\}\).*/\1/
18451 s/["\\]/\\&/g; s/^/"/; s/$/"/
18455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18460 ' <conf$$subs.awk | sed '
18465 ' >>$CONFIG_STATUS || ac_write_fail=1
18466 rm -f conf$$subs.awk
18467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18470 for (key in S) S_is_set[key] = 1
18472 \$ac_cs_awk_pipe_init
18476 nfields = split(line, field, "@")
18478 len = length(field[1])
18479 for (i = 2; i < nfields; i++) {
18481 keylen = length(key)
18482 if (S_is_set[key]) {
18484 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18485 len += length(value) + length(field[++i])
18490 if (nfields == 3 && !substed) {
18492 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18493 \$ac_cs_awk_read_file
18499 \$ac_cs_awk_pipe_fini
18502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18503 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18504 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18507 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18508 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18511 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18512 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18513 # trailing colons and then remove the whole line if VPATH becomes empty
18514 # (actually we leave an empty line to preserve line numbers).
18515 if test "x$srcdir" = x.; then
18516 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18517 s/:*\$(srcdir):*/:/
18518 s/:*\${srcdir}:*/:/
18520 s/^\([^=]*=[ ]*\):*/\1/
18526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18527 fi # test -n "$CONFIG_FILES"
18529 # Set up the scripts for CONFIG_HEADERS section.
18530 # No need to generate them if there are no CONFIG_HEADERS.
18531 # This happens for instance with `./config.status Makefile'.
18532 if test -n "$CONFIG_HEADERS"; then
18533 cat >"$tmp/defines.awk" <<\_ACAWK ||
18537 # Transform confdefs.h into an awk script `defines.awk', embedded as
18538 # here-document in config.status, that substitutes the proper values into
18539 # config.h.in to produce config.h.
18541 # Create a delimiter string that does not exist in confdefs.h, to ease
18542 # handling of long lines.
18544 for ac_last_try in false false :; do
18545 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18546 if test -z "$ac_t"; then
18548 elif $ac_last_try; then
18549 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18555 # For the awk script, D is an array of macro values keyed by name,
18556 # likewise P contains macro parameters if any. Preserve backslash
18557 # newline sequences.
18559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18561 s/.\{148\}/&'"$ac_delim"'/g
18564 s/^[ ]*#[ ]*define[ ][ ]*/ /
18571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18578 D["\1"]=" \3\\\\\\n"\\/p
18580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18585 s/.\{148\}/&'"$ac_delim"'/g
18590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18595 ' <confdefs.h | sed '
18596 s/'"$ac_delim"'/"\\\
18597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18600 for (key in D) D_is_set[key] = 1
18603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18605 split(line, arg, " ")
18606 if (arg[1] == "#") {
18610 defundef = substr(arg[1], 2)
18613 split(mac1, mac2, "(") #)
18615 prefix = substr(line, 1, index(line, defundef) - 1)
18616 if (D_is_set[macro]) {
18617 # Preserve the white space surrounding the "#".
18618 print prefix "define", macro P[macro] D[macro]
18621 # Replace #undef with comments. This is necessary, for example,
18622 # in the case of _POSIX_SOURCE, which is predefined and required
18623 # on some systems where configure will not decide to define it.
18624 if (defundef == "undef") {
18625 print "/*", prefix defundef, macro, "*/"
18633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18634 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18635 fi # test -n "$CONFIG_HEADERS"
18638 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18643 :[FHLC]) ac_mode=$ac_tag; continue;;
18645 case $ac_mode$ac_tag in
18647 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18648 :[FH]-) ac_tag=-:-;;
18649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18666 -) ac_f="$tmp/stdin";;
18667 *) # Look for the file first in the build tree, then in the source tree
18668 # (if the path is not absolute). The absolute path cannot be DOS-style,
18669 # because $ac_f cannot contain `:'.
18673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18675 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18677 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18678 as_fn_append ac_file_inputs " '$ac_f'"
18681 # Let's still pretend it is `configure' which instantiates (i.e., don't
18682 # use $as_me), people would be surprised to read:
18683 # /* config.h. Generated by config.status. */
18684 configure_input='Generated from '`
18685 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18687 if test x"$ac_file" != x-; then
18688 configure_input="$ac_file. $configure_input"
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18690 $as_echo "$as_me: creating $ac_file" >&6;}
18692 # Neutralize special characters interpreted by sed in replacement strings.
18693 case $configure_input in #(
18694 *\&* | *\|* | *\\* )
18695 ac_sed_conf_input=`$as_echo "$configure_input" |
18696 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18697 *) ac_sed_conf_input=$configure_input;;
18701 *:-:* | *:-) cat >"$tmp/stdin" \
18702 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18707 ac_dir=`$as_dirname -- "$ac_file" ||
18708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18709 X"$ac_file" : 'X\(//\)[^/]' \| \
18710 X"$ac_file" : 'X\(//\)$' \| \
18711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18712 $as_echo X"$ac_file" |
18713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18717 /^X\(\/\/\)[^/].*/{
18730 as_dir="$ac_dir"; as_fn_mkdir_p
18734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18737 # A ".." for each directory in $ac_dir_suffix.
18738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18739 case $ac_top_builddir_sub in
18740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18744 ac_abs_top_builddir=$ac_pwd
18745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18746 # for backward compatibility:
18747 ac_top_builddir=$ac_top_build_prefix
18750 .) # We are building in place.
18752 ac_top_srcdir=$ac_top_builddir_sub
18753 ac_abs_top_srcdir=$ac_pwd ;;
18754 [\\/]* | ?:[\\/]* ) # Absolute name.
18755 ac_srcdir=$srcdir$ac_dir_suffix;
18756 ac_top_srcdir=$srcdir
18757 ac_abs_top_srcdir=$srcdir ;;
18758 *) # Relative name.
18759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18760 ac_top_srcdir=$ac_top_build_prefix$srcdir
18761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18776 ac_MKDIR_P=$MKDIR_P
18778 [\\/$]* | ?:[\\/]* ) ;;
18779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18784 # If the template does not know about datarootdir, expand it.
18785 # FIXME: This hack should be removed a few years after 2.60.
18786 ac_datarootdir_hack=; ac_datarootdir_seen=
18797 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18798 *datarootdir*) ac_datarootdir_seen=yes;;
18799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18801 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18804 ac_datarootdir_hack='
18805 s&@datadir@&$datadir&g
18806 s&@docdir@&$docdir&g
18807 s&@infodir@&$infodir&g
18808 s&@localedir@&$localedir&g
18809 s&@mandir@&$mandir&g
18810 s&\\\${datarootdir}&$datarootdir&g' ;;
18814 # Neutralize VPATH when `$srcdir' = `.'.
18815 # Shell code in configure.ac might set extrasub.
18816 # FIXME: do we really want to maintain this feature?
18817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18818 ac_sed_extra="$ac_vpsub
18821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18824 s|@configure_input@|$ac_sed_conf_input|;t t
18825 s&@top_builddir@&$ac_top_builddir_sub&;t t
18826 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18827 s&@srcdir@&$ac_srcdir&;t t
18828 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18829 s&@top_srcdir@&$ac_top_srcdir&;t t
18830 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18831 s&@builddir@&$ac_builddir&;t t
18832 s&@abs_builddir@&$ac_abs_builddir&;t t
18833 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18834 s&@INSTALL@&$ac_INSTALL&;t t
18835 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18836 $ac_datarootdir_hack
18838 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18839 if $ac_cs_awk_getline; then
18840 $AWK -f "$tmp/subs.awk"
18842 $AWK -f "$tmp/subs.awk" | $SHELL
18844 || as_fn_error "could not create $ac_file" "$LINENO" 5
18846 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18847 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18848 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18850 which seems to be undefined. Please make sure it is defined." >&5
18851 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18852 which seems to be undefined. Please make sure it is defined." >&2;}
18856 -) cat "$tmp/out" && rm -f "$tmp/out";;
18857 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18859 || as_fn_error "could not create $ac_file" "$LINENO" 5
18865 if test x"$ac_file" != x-; then
18867 $as_echo "/* $configure_input */" \
18868 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18869 } >"$tmp/config.h" \
18870 || as_fn_error "could not create $ac_file" "$LINENO" 5
18871 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18873 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18876 mv "$tmp/config.h" "$ac_file" \
18877 || as_fn_error "could not create $ac_file" "$LINENO" 5
18880 $as_echo "/* $configure_input */" \
18881 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18882 || as_fn_error "could not create -" "$LINENO" 5
18884 # Compute "$ac_file"'s index in $config_headers.
18887 for _am_header in $config_headers :; do
18888 case $_am_header in
18889 $_am_arg | $_am_arg:* )
18892 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18895 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18896 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18897 X"$_am_arg" : 'X\(//\)[^/]' \| \
18898 X"$_am_arg" : 'X\(//\)$' \| \
18899 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18900 $as_echo X"$_am_arg" |
18901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18905 /^X\(\/\/\)[^/].*/{
18917 s/.*/./; q'`/stamp-h$_am_stamp_count
18920 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18921 $as_echo "$as_me: executing $ac_file commands" >&6;}
18926 case $ac_file$ac_mode in
18927 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18928 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18929 # are listed without --file. Let's play safe and only enable the eval
18930 # if we detect the quoting.
18931 case $CONFIG_FILES in
18932 *\'*) eval set x "$CONFIG_FILES" ;;
18933 *) set x $CONFIG_FILES ;;
18938 # Strip MF so we end up with the name of the file.
18939 mf=`echo "$mf" | sed -e 's/:.*$//'`
18940 # Check whether this is an Automake generated Makefile or not.
18941 # We used to match only the files named `Makefile.in', but
18942 # some people rename them; so instead we look at the file content.
18943 # Grep'ing the first line is not enough: some people post-process
18944 # each Makefile.in and add a new line on top of each file to say so.
18945 # Grep'ing the whole file is not good either: AIX grep has a line
18946 # limit of 2048, but all sed's we know have understand at least 4000.
18947 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18948 dirpart=`$as_dirname -- "$mf" ||
18949 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18950 X"$mf" : 'X\(//\)[^/]' \| \
18951 X"$mf" : 'X\(//\)$' \| \
18952 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18958 /^X\(\/\/\)[^/].*/{
18974 # Extract the definition of DEPDIR, am__include, and am__quote
18975 # from the Makefile without running `make'.
18976 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18977 test -z "$DEPDIR" && continue
18978 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18979 test -z "am__include" && continue
18980 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18981 # When using ansi2knr, U may be empty or an underscore; expand it
18982 U=`sed -n 's/^U = //p' < "$mf"`
18983 # Find all dependency output files, they are included files with
18984 # $(DEPDIR) in their names. We invoke sed twice because it is the
18985 # simplest approach to changing $(DEPDIR) to its actual value in the
18987 for file in `sed -n "
18988 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18989 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18990 # Make sure the directory exists.
18991 test -f "$dirpart/$file" && continue
18992 fdir=`$as_dirname -- "$file" ||
18993 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18994 X"$file" : 'X\(//\)[^/]' \| \
18995 X"$file" : 'X\(//\)$' \| \
18996 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18997 $as_echo X"$file" |
18998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19002 /^X\(\/\/\)[^/].*/{
19015 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19016 # echo "creating $dirpart/$file"
19017 echo '# dummy' > "$dirpart/$file"
19024 # See if we are running on zsh, and set the options which allow our
19025 # commands through without removal of \ escapes.
19026 if test -n "${ZSH_VERSION+set}" ; then
19027 setopt NO_GLOB_SUBST
19030 cfgfile="${ofile}T"
19031 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19034 cat <<_LT_EOF >> "$cfgfile"
19037 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19038 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19040 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19042 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19043 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19044 # Written by Gordon Matzigkeit, 1996
19046 # This file is part of GNU Libtool.
19048 # GNU Libtool is free software; you can redistribute it and/or
19049 # modify it under the terms of the GNU General Public License as
19050 # published by the Free Software Foundation; either version 2 of
19051 # the License, or (at your option) any later version.
19053 # As a special exception to the GNU General Public License,
19054 # if you distribute this file as part of a program or library that
19055 # is built using GNU Libtool, you may include this file under the
19056 # same distribution terms that you use for the rest of that program.
19058 # GNU Libtool is distributed in the hope that it will be useful,
19059 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19060 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19061 # GNU General Public License for more details.
19063 # You should have received a copy of the GNU General Public License
19064 # along with GNU Libtool; see the file COPYING. If not, a copy
19065 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19066 # obtained by writing to the Free Software Foundation, Inc.,
19067 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19070 # The names of the tagged configurations supported by this script.
19071 available_tags="CXX "
19073 # ### BEGIN LIBTOOL CONFIG
19075 # Which release of libtool.m4 was used?
19076 macro_version=$macro_version
19077 macro_revision=$macro_revision
19079 # Whether or not to build shared libraries.
19080 build_libtool_libs=$enable_shared
19082 # Whether or not to build static libraries.
19083 build_old_libs=$enable_static
19085 # What type of objects to build.
19088 # Whether or not to optimize for fast installation.
19089 fast_install=$enable_fast_install
19091 # Shell to use when invoking shell scripts.
19094 # An echo program that protects backslashes.
19098 host_alias=$host_alias
19102 # The build system.
19103 build_alias=$build_alias
19107 # A sed program that does not truncate output.
19110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19111 Xsed="\$SED -e 1s/^X//"
19113 # A grep program that handles long lines.
19119 # A literal string matcher.
19122 # A BSD- or MS-compatible name lister.
19125 # Whether we need soft or hard links.
19128 # What is the maximum length of a command?
19129 max_cmd_len=$max_cmd_len
19131 # Object file suffix (normally "o").
19134 # Executable file suffix (normally "").
19137 # whether the shell understands "unset".
19140 # turn spaces into newlines.
19143 # turn newlines into spaces.
19146 # An object symbol dumper.
19147 OBJDUMP=$lt_OBJDUMP
19149 # Method to check whether dependent libraries are shared objects.
19150 deplibs_check_method=$lt_deplibs_check_method
19152 # Command to use when deplibs_check_method == "file_magic".
19153 file_magic_cmd=$lt_file_magic_cmd
19157 AR_FLAGS=$lt_AR_FLAGS
19159 # A symbol stripping program.
19162 # Commands used to install an old-style archive.
19164 old_postinstall_cmds=$lt_old_postinstall_cmds
19165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19167 # Whether to use a lock for old archive extraction.
19168 lock_old_archive_extraction=$lock_old_archive_extraction
19173 # LTCC compiler flags.
19174 LTCFLAGS=$lt_CFLAGS
19176 # Take the output of nm and produce a listing of raw symbols and C names.
19177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19179 # Transform the output of nm in a proper C declaration.
19180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19182 # Transform the output of nm in a C name address pair.
19183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19185 # Transform the output of nm in a C name address pair when lib prefix is needed.
19186 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19188 # The name of the directory that contains temporary libtool files.
19191 # Used to examine libraries when file_magic_cmd begins with "file".
19192 MAGIC_CMD=$MAGIC_CMD
19194 # Must we lock files when doing compilation?
19195 need_locks=$lt_need_locks
19197 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19198 DSYMUTIL=$lt_DSYMUTIL
19200 # Tool to change global to local symbols on Mac OS X.
19203 # Tool to manipulate fat objects and archives on Mac OS X.
19206 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19209 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19210 OTOOL64=$lt_OTOOL64
19212 # Old archive suffix (normally "a").
19215 # Shared library suffix (normally ".so").
19216 shrext_cmds=$lt_shrext_cmds
19218 # The commands to extract the exported symbol list from a shared archive.
19219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19221 # Variables whose values should be saved in libtool wrapper scripts and
19222 # restored at link time.
19223 variables_saved_for_relink=$lt_variables_saved_for_relink
19225 # Do we need the "lib" prefix for modules?
19226 need_lib_prefix=$need_lib_prefix
19228 # Do we need a version for libraries?
19229 need_version=$need_version
19231 # Library versioning type.
19232 version_type=$version_type
19234 # Shared library runtime path variable.
19235 runpath_var=$runpath_var
19237 # Shared library path variable.
19238 shlibpath_var=$shlibpath_var
19240 # Is shlibpath searched before the hard-coded library search path?
19241 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19243 # Format of library name prefix.
19244 libname_spec=$lt_libname_spec
19246 # List of archive names. First name is the real one, the rest are links.
19247 # The last name is the one that the linker finds with -lNAME
19248 library_names_spec=$lt_library_names_spec
19250 # The coded name of the library, if different from the real name.
19251 soname_spec=$lt_soname_spec
19253 # Permission mode override for installation of shared libraries.
19254 install_override_mode=$lt_install_override_mode
19256 # Command to use after installation of a shared archive.
19257 postinstall_cmds=$lt_postinstall_cmds
19259 # Command to use after uninstallation of a shared archive.
19260 postuninstall_cmds=$lt_postuninstall_cmds
19262 # Commands used to finish a libtool library installation in a directory.
19263 finish_cmds=$lt_finish_cmds
19265 # As "finish_cmds", except a single script fragment to be evaled but
19267 finish_eval=$lt_finish_eval
19269 # Whether we should hardcode library paths into libraries.
19270 hardcode_into_libs=$hardcode_into_libs
19272 # Compile-time system search path for libraries.
19273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19275 # Run-time system search path for libraries.
19276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19278 # Whether dlopen is supported.
19279 dlopen_support=$enable_dlopen
19281 # Whether dlopen of programs is supported.
19282 dlopen_self=$enable_dlopen_self
19284 # Whether dlopen of statically linked programs is supported.
19285 dlopen_self_static=$enable_dlopen_self_static
19287 # Commands to strip libraries.
19288 old_striplib=$lt_old_striplib
19289 striplib=$lt_striplib
19292 # The linker used to build libraries.
19295 # How to create reloadable object files.
19296 reload_flag=$lt_reload_flag
19297 reload_cmds=$lt_reload_cmds
19299 # Commands used to build an old-style archive.
19300 old_archive_cmds=$lt_old_archive_cmds
19302 # A language specific compiler.
19305 # Is the compiler the GNU compiler?
19308 # Compiler flag to turn off builtin functions.
19309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19311 # How to pass a linker flag through the compiler.
19312 wl=$lt_lt_prog_compiler_wl
19314 # Additional compiler flags for building library objects.
19315 pic_flag=$lt_lt_prog_compiler_pic
19317 # Compiler flag to prevent dynamic linking.
19318 link_static_flag=$lt_lt_prog_compiler_static
19320 # Does compiler simultaneously support -c and -o options?
19321 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19323 # Whether or not to add -lc for building shared libraries.
19324 build_libtool_need_lc=$archive_cmds_need_lc
19326 # Whether or not to disallow shared libs when runtime libs are static.
19327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19329 # Compiler flag to allow reflexive dlopens.
19330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19332 # Compiler flag to generate shared objects directly from archives.
19333 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19335 # Whether the compiler copes with passing no objects directly.
19336 compiler_needs_object=$lt_compiler_needs_object
19338 # Create an old-style archive from a shared archive.
19339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19341 # Create a temporary old-style archive to link instead of a shared archive.
19342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19344 # Commands used to build a shared archive.
19345 archive_cmds=$lt_archive_cmds
19346 archive_expsym_cmds=$lt_archive_expsym_cmds
19348 # Commands used to build a loadable module if different from building
19349 # a shared archive.
19350 module_cmds=$lt_module_cmds
19351 module_expsym_cmds=$lt_module_expsym_cmds
19353 # Whether we are building with GNU ld or not.
19354 with_gnu_ld=$lt_with_gnu_ld
19356 # Flag that allows shared libraries with undefined symbols to be built.
19357 allow_undefined_flag=$lt_allow_undefined_flag
19359 # Flag that enforces no undefined symbols.
19360 no_undefined_flag=$lt_no_undefined_flag
19362 # Flag to hardcode \$libdir into a binary during linking.
19363 # This must work even if \$libdir does not exist
19364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19366 # If ld is used when linking, flag to hardcode \$libdir into a binary
19367 # during linking. This must work even if \$libdir does not exist.
19368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19370 # Whether we need a single "-rpath" flag with a separated argument.
19371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19373 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19374 # DIR into the resulting binary.
19375 hardcode_direct=$hardcode_direct
19377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19378 # DIR into the resulting binary and the resulting library dependency is
19379 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19380 # library is relocated.
19381 hardcode_direct_absolute=$hardcode_direct_absolute
19383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19384 # into the resulting binary.
19385 hardcode_minus_L=$hardcode_minus_L
19387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19388 # into the resulting binary.
19389 hardcode_shlibpath_var=$hardcode_shlibpath_var
19391 # Set to "yes" if building a shared library automatically hardcodes DIR
19392 # into the library and all subsequent libraries and executables linked
19394 hardcode_automatic=$hardcode_automatic
19396 # Set to yes if linker adds runtime paths of dependent libraries
19397 # to runtime path list.
19398 inherit_rpath=$inherit_rpath
19400 # Whether libtool must link a program against all its dependency libraries.
19401 link_all_deplibs=$link_all_deplibs
19403 # Fix the shell variable \$srcfile for the compiler.
19404 fix_srcfile_path=$lt_fix_srcfile_path
19406 # Set to "yes" if exported symbols are required.
19407 always_export_symbols=$always_export_symbols
19409 # The commands to list exported symbols.
19410 export_symbols_cmds=$lt_export_symbols_cmds
19412 # Symbols that should not be listed in the preloaded symbols.
19413 exclude_expsyms=$lt_exclude_expsyms
19415 # Symbols that must always be exported.
19416 include_expsyms=$lt_include_expsyms
19418 # Commands necessary for linking programs (against libraries) with templates.
19419 prelink_cmds=$lt_prelink_cmds
19421 # Specify filename containing input files.
19422 file_list_spec=$lt_file_list_spec
19424 # How to hardcode a shared library path into an executable.
19425 hardcode_action=$hardcode_action
19427 # The directories searched by this compiler when creating a shared library.
19428 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19430 # Dependencies to place before and after the objects being linked to
19431 # create a shared library.
19432 predep_objects=$lt_predep_objects
19433 postdep_objects=$lt_postdep_objects
19434 predeps=$lt_predeps
19435 postdeps=$lt_postdeps
19437 # The library search path used internally by the compiler when linking
19438 # a shared library.
19439 compiler_lib_search_path=$lt_compiler_lib_search_path
19441 # ### END LIBTOOL CONFIG
19447 cat <<\_LT_EOF >> "$cfgfile"
19448 # AIX sometimes has problems with the GCC collect2 program. For some
19449 # reason, if we set the COLLECT_NAMES environment variable, the problems
19450 # vanish in a puff of smoke.
19451 if test "X${COLLECT_NAMES+set}" != Xset; then
19453 export COLLECT_NAMES
19460 ltmain="$ac_aux_dir/ltmain.sh"
19463 # We use sed instead of cat because bash on DJGPP gets confused if
19464 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19465 # text mode, it properly converts lines to CR/LF. This bash problem
19466 # is reportedly fixed, but why not run on old versions too?
19467 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19468 || (rm -f "$cfgfile"; exit 1)
19472 cat << \_LT_EOF >> "$cfgfile"
19474 # func_dirname file append nondir_replacement
19475 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19476 # otherwise set result to NONDIR_REPLACEMENT.
19480 */*) func_dirname_result="${1%/*}${2}" ;;
19481 * ) func_dirname_result="${3}" ;;
19485 # func_basename file
19488 func_basename_result="${1##*/}"
19491 # func_dirname_and_basename file append nondir_replacement
19492 # perform func_basename and func_dirname in a single function
19494 # dirname: Compute the dirname of FILE. If nonempty,
19495 # add APPEND to the result, otherwise set result
19496 # to NONDIR_REPLACEMENT.
19497 # value returned in "$func_dirname_result"
19498 # basename: Compute filename of FILE.
19499 # value retuned in "$func_basename_result"
19500 # Implementation must be kept synchronized with func_dirname
19501 # and func_basename. For efficiency, we do not delegate to
19502 # those functions but instead duplicate the functionality here.
19503 func_dirname_and_basename ()
19506 */*) func_dirname_result="${1%/*}${2}" ;;
19507 * ) func_dirname_result="${3}" ;;
19509 func_basename_result="${1##*/}"
19512 # func_stripname prefix suffix name
19513 # strip PREFIX and SUFFIX off of NAME.
19514 # PREFIX and SUFFIX must not contain globbing or regex special
19515 # characters, hashes, percent signs, but SUFFIX may contain a leading
19516 # dot (in which case that matches only a dot).
19519 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19520 # positional parameters, so assign one to ordinary parameter first.
19521 func_stripname_result=${3}
19522 func_stripname_result=${func_stripname_result#"${1}"}
19523 func_stripname_result=${func_stripname_result%"${2}"}
19529 func_opt_split_opt=${1%%=*}
19530 func_opt_split_arg=${1#*=}
19537 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19538 *) func_lo2o_result=${1} ;;
19542 # func_xform libobj-or-source
19545 func_xform_result=${1%.*}.lo
19548 # func_arith arithmetic-term...
19551 func_arith_result=$(( $* ))
19555 # STRING may not start with a hyphen.
19558 func_len_result=${#1}
19563 *) # Bourne compatible functions.
19564 cat << \_LT_EOF >> "$cfgfile"
19566 # func_dirname file append nondir_replacement
19567 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19568 # otherwise set result to NONDIR_REPLACEMENT.
19571 # Extract subdirectory from the argument.
19572 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19573 if test "X$func_dirname_result" = "X${1}"; then
19574 func_dirname_result="${3}"
19576 func_dirname_result="$func_dirname_result${2}"
19580 # func_basename file
19583 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19587 # func_stripname prefix suffix name
19588 # strip PREFIX and SUFFIX off of NAME.
19589 # PREFIX and SUFFIX must not contain globbing or regex special
19590 # characters, hashes, percent signs, but SUFFIX may contain a leading
19591 # dot (in which case that matches only a dot).
19592 # func_strip_suffix prefix name
19596 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19597 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19602 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19603 my_sed_long_arg='1s/^-[^=]*=//'
19608 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19609 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19615 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19618 # func_xform libobj-or-source
19621 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19624 # func_arith arithmetic-term...
19627 func_arith_result=`expr "$@"`
19631 # STRING may not start with a hyphen.
19634 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19640 case $lt_shell_append in
19642 cat << \_LT_EOF >> "$cfgfile"
19644 # func_append var value
19645 # Append VALUE to the end of shell variable VAR.
19653 cat << \_LT_EOF >> "$cfgfile"
19655 # func_append var value
19656 # Append VALUE to the end of shell variable VAR.
19667 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19668 || (rm -f "$cfgfile"; exit 1)
19670 mv -f "$cfgfile" "$ofile" ||
19671 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19675 cat <<_LT_EOF >> "$ofile"
19677 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19679 # The linker used to build libraries.
19682 # How to create reloadable object files.
19683 reload_flag=$lt_reload_flag_CXX
19684 reload_cmds=$lt_reload_cmds_CXX
19686 # Commands used to build an old-style archive.
19687 old_archive_cmds=$lt_old_archive_cmds_CXX
19689 # A language specific compiler.
19690 CC=$lt_compiler_CXX
19692 # Is the compiler the GNU compiler?
19695 # Compiler flag to turn off builtin functions.
19696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19698 # How to pass a linker flag through the compiler.
19699 wl=$lt_lt_prog_compiler_wl_CXX
19701 # Additional compiler flags for building library objects.
19702 pic_flag=$lt_lt_prog_compiler_pic_CXX
19704 # Compiler flag to prevent dynamic linking.
19705 link_static_flag=$lt_lt_prog_compiler_static_CXX
19707 # Does compiler simultaneously support -c and -o options?
19708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19710 # Whether or not to add -lc for building shared libraries.
19711 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19713 # Whether or not to disallow shared libs when runtime libs are static.
19714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19716 # Compiler flag to allow reflexive dlopens.
19717 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19719 # Compiler flag to generate shared objects directly from archives.
19720 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19722 # Whether the compiler copes with passing no objects directly.
19723 compiler_needs_object=$lt_compiler_needs_object_CXX
19725 # Create an old-style archive from a shared archive.
19726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19728 # Create a temporary old-style archive to link instead of a shared archive.
19729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19731 # Commands used to build a shared archive.
19732 archive_cmds=$lt_archive_cmds_CXX
19733 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19735 # Commands used to build a loadable module if different from building
19736 # a shared archive.
19737 module_cmds=$lt_module_cmds_CXX
19738 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19740 # Whether we are building with GNU ld or not.
19741 with_gnu_ld=$lt_with_gnu_ld_CXX
19743 # Flag that allows shared libraries with undefined symbols to be built.
19744 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19746 # Flag that enforces no undefined symbols.
19747 no_undefined_flag=$lt_no_undefined_flag_CXX
19749 # Flag to hardcode \$libdir into a binary during linking.
19750 # This must work even if \$libdir does not exist
19751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19753 # If ld is used when linking, flag to hardcode \$libdir into a binary
19754 # during linking. This must work even if \$libdir does not exist.
19755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19757 # Whether we need a single "-rpath" flag with a separated argument.
19758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19760 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19761 # DIR into the resulting binary.
19762 hardcode_direct=$hardcode_direct_CXX
19764 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19765 # DIR into the resulting binary and the resulting library dependency is
19766 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19767 # library is relocated.
19768 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19770 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19771 # into the resulting binary.
19772 hardcode_minus_L=$hardcode_minus_L_CXX
19774 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19775 # into the resulting binary.
19776 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19778 # Set to "yes" if building a shared library automatically hardcodes DIR
19779 # into the library and all subsequent libraries and executables linked
19781 hardcode_automatic=$hardcode_automatic_CXX
19783 # Set to yes if linker adds runtime paths of dependent libraries
19784 # to runtime path list.
19785 inherit_rpath=$inherit_rpath_CXX
19787 # Whether libtool must link a program against all its dependency libraries.
19788 link_all_deplibs=$link_all_deplibs_CXX
19790 # Fix the shell variable \$srcfile for the compiler.
19791 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19793 # Set to "yes" if exported symbols are required.
19794 always_export_symbols=$always_export_symbols_CXX
19796 # The commands to list exported symbols.
19797 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19799 # Symbols that should not be listed in the preloaded symbols.
19800 exclude_expsyms=$lt_exclude_expsyms_CXX
19802 # Symbols that must always be exported.
19803 include_expsyms=$lt_include_expsyms_CXX
19805 # Commands necessary for linking programs (against libraries) with templates.
19806 prelink_cmds=$lt_prelink_cmds_CXX
19808 # Specify filename containing input files.
19809 file_list_spec=$lt_file_list_spec_CXX
19811 # How to hardcode a shared library path into an executable.
19812 hardcode_action=$hardcode_action_CXX
19814 # The directories searched by this compiler when creating a shared library.
19815 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19817 # Dependencies to place before and after the objects being linked to
19818 # create a shared library.
19819 predep_objects=$lt_predep_objects_CXX
19820 postdep_objects=$lt_postdep_objects_CXX
19821 predeps=$lt_predeps_CXX
19822 postdeps=$lt_postdeps_CXX
19824 # The library search path used internally by the compiler when linking
19825 # a shared library.
19826 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19828 # ### END LIBTOOL TAG CONFIG: CXX
19833 for ac_file in $CONFIG_FILES; do
19834 # Support "outfile[:infile[:infile...]]"
19836 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19838 # PO directories have a Makefile.in generated from Makefile.in.in.
19839 case "$ac_file" in */Makefile.in)
19840 # Adjust a relative srcdir.
19841 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19842 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19843 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19844 # In autoconf-2.13 it is called $ac_given_srcdir.
19845 # In autoconf-2.50 it is called $srcdir.
19846 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19847 case "$ac_given_srcdir" in
19848 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19849 /*) top_srcdir="$ac_given_srcdir" ;;
19850 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19852 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19853 rm -f "$ac_dir/POTFILES"
19854 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19855 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19856 POMAKEFILEDEPS="POTFILES.in"
19857 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19858 # on $ac_dir but don't depend on user-specified configuration
19860 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19861 # The LINGUAS file contains the set of available languages.
19862 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19863 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19865 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19866 # Hide the ALL_LINGUAS assigment from automake.
19867 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19868 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19870 # The set of available languages was given in configure.ac.
19871 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19873 case "$ac_given_srcdir" in
19875 *) srcdirpre='$(srcdir)/' ;;
19881 for lang in $ALL_LINGUAS; do
19882 POFILES="$POFILES $srcdirpre$lang.po"
19883 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19884 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19885 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19887 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19888 # environment variable.
19890 if test -n "$ALL_LINGUAS"; then
19891 for presentlang in $ALL_LINGUAS; do
19893 if test "%UNSET%" != "$LINGUAS"; then
19894 desiredlanguages="$LINGUAS"
19896 desiredlanguages="$ALL_LINGUAS"
19898 for desiredlang in $desiredlanguages; do
19899 # Use the presentlang catalog if desiredlang is
19900 # a. equal to presentlang, or
19901 # b. a variant of presentlang (because in this case,
19902 # presentlang can be used as a fallback for messages
19903 # which are not translated in the desiredlang catalog).
19904 case "$desiredlang" in
19905 "$presentlang"*) useit=yes;;
19908 if test $useit = yes; then
19909 INST_LINGUAS="$INST_LINGUAS $presentlang"
19914 if test -n "$INST_LINGUAS"; then
19915 for lang in $INST_LINGUAS; do
19916 CATALOGS="$CATALOGS $lang.gmo"
19919 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19920 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"
19921 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19922 if test -f "$f"; then
19924 *.orig | *.bak | *~) ;;
19925 *) cat "$f" >> "$ac_dir/Makefile" ;;
19940 ac_clean_files=$ac_clean_files_save
19942 test $ac_write_fail = 0 ||
19943 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19946 # configure is writing to config.log, and then calls config.status.
19947 # config.status does its own redirection, appending to config.log.
19948 # Unfortunately, on DOS this fails, as config.log is still kept open
19949 # by configure, so config.status won't be able to write to it; its
19950 # output is simply discarded. So we exec the FD to /dev/null,
19951 # effectively closing config.log, so it can be properly (re)opened and
19952 # appended to by config.status. When coming back to configure, we
19953 # need to make the FD available again.
19954 if test "$no_create" != yes; then
19956 ac_config_status_args=
19957 test "$silent" = yes &&
19958 ac_config_status_args="$ac_config_status_args --quiet"
19960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19963 # would make configure fail if this is the last instruction.
19964 $ac_cs_success || as_fn_exit $?
19966 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19968 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}