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
651 TARGET_SYSTEM_ROOT_DEFINE
681 MAINTAINER_MODE_FALSE
700 INSTALL_STRIP_PROGRAM
761 program_transform_name
772 ac_subst_files='TDIRS'
774 enable_option_checking
775 enable_dependency_tracking
776 enable_maintainer_mode
791 enable_compressed_debug_sections
793 enable_build_warnings
795 enable_initfini_array
797 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
930 eval enable_$ac_useropt=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval with_$ac_useropt=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1176 eval with_$ac_useropt=no ;;
1179 # Obsolete; use --with-x.
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1196 -*) as_fn_error "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information."
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error "missing argument to $ac_option"
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1229 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1247 # Be sure to have absolute directory names.
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error "pwd does not report name of working directory"
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 # Report the --help message.
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1353 \`configure' configures ld 2.26.51 to adapt to many kinds of systems.
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1360 Defaults for the options are specified in brackets.
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1384 For better control, use the options below.
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of ld 2.26.51:";;
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --disable-dependency-tracking speeds up one-time build
1433 --enable-dependency-tracking do not reject slow dependency extractors
1434 --enable-maintainer-mode enable make rules and dependencies not useful
1435 (and sometimes confusing) to the casual installer
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --enable-plugins Enable support for plugins
1442 --disable-largefile omit support for large files
1443 --enable-targets alternative target configurations
1444 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1445 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1446 --enable-got=<type> GOT handling scheme (target, single, negative,
1448 --enable-compressed-debug-sections={all,ld,none}
1449 compress debug sections by default]
1450 --enable-werror treat compile warnings as errors
1451 --enable-build-warnings enable build-time compiler warnings
1452 --disable-nls do not use Native Language Support
1453 --disable-initfini-array do not use .init_array/.fini_array sections
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic try to use only PIC/non-PIC objects [default=use
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-lib-path=dir1:dir2... set default LIB_PATH
1462 --with-sysroot=DIR Search for usr/lib et al within DIR.
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
1475 CXXCPP C++ preprocessor
1476 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1477 the first program found out of: `bison -y', `byacc', `yacc'.
1478 YFLAGS The list of arguments that will be passed by default to $YACC.
1479 This script will default YFLAGS to the empty string to avoid a
1480 default value of `-d' given by some make applications.
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1548 ld configure 2.26.51
1549 generated by GNU Autoconf 2.64
1551 Copyright (C) 2009 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 } # ac_fn_c_try_compile
1600 # ac_fn_c_try_link LINENO
1601 # -----------------------
1602 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext conftest$ac_exeext
1607 if { { ac_try="$ac_link"
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>conftest.err
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest$ac_exeext && {
1626 test "$cross_compiling" = yes ||
1627 $as_test_x conftest$ac_exeext
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638 # interfere with the next link command; also delete a directory that is
1639 # left behind by Apple's compiler. We do this before executing the actions.
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 } # ac_fn_c_try_link
1646 # ac_fn_cxx_try_compile LINENO
1647 # ----------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_cxx_try_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_cxx_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_cxx_try_compile
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1724 # the include files in INCLUDES and setting the cache variable VAR
1726 ac_fn_c_check_header_mongrel ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 # Is the header compilable?
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1741 $as_echo_n "checking $2 usability... " >&6; }
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_header_compiler=yes
1750 ac_header_compiler=no
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1754 $as_echo "$ac_header_compiler" >&6; }
1756 # Is the header present?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758 $as_echo_n "checking $2 presence... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1763 if ac_fn_c_try_cpp "$LINENO"; then :
1764 ac_header_preproc=yes
1766 ac_header_preproc=no
1768 rm -f conftest.err conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770 $as_echo "$ac_header_preproc" >&6; }
1772 # So? What about this header?
1773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1776 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1782 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1784 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1786 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1788 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 $as_echo_n "(cached) " >&6
1798 eval "$3=\$ac_header_compiler"
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 } # ac_fn_c_check_header_mongrel
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=$ac_status
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_header_compile
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890 $as_echo_n "(cached) " >&6
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896 #define $2 innocuous_$2
1898 /* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1904 # include <limits.h>
1906 # include <assert.h>
1911 /* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1918 /* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921 #if defined __stub_$2 || defined __stub___$2
1933 if ac_fn_c_try_link "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 } # ac_fn_c_check_func
1948 # ac_fn_cxx_try_cpp LINENO
1949 # ------------------------
1950 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_cxx_try_cpp ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } >/dev/null && {
1970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1971 test ! -s conftest.err
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983 } # ac_fn_cxx_try_cpp
1985 # ac_fn_cxx_try_link LINENO
1986 # -------------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_cxx_try_link ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_cxx_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
2012 $as_test_x conftest$ac_exeext
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 } # ac_fn_cxx_try_link
2031 # ac_fn_c_check_decl LINENO SYMBOL VAR
2032 # ------------------------------------
2033 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2034 ac_fn_c_check_decl ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 as_decl_name=`echo $2|sed 's/ *(.*//'`
2038 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2040 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2050 #ifndef $as_decl_name
2052 (void) $as_decl_use;
2054 (void) $as_decl_name;
2062 if ac_fn_c_try_compile "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 } # ac_fn_c_check_decl
2076 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2077 # --------------------------------------------
2078 # Tries to find the compile-time value of EXPR in a program that includes
2079 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2081 ac_fn_c_compute_int ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 if test "$cross_compiling" = yes; then
2085 # Depending upon the size, compute the lo and hi bounds.
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) >= 0)];
2099 if ac_fn_c_try_compile "$LINENO"; then :
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=$ac_mid; break
2118 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2119 if test $ac_lo -le $ac_mid; then
2123 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) < 0)];
2141 if ac_fn_c_try_compile "$LINENO"; then :
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=$ac_mid; break
2160 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2161 if test $ac_mid -le $ac_hi; then
2165 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 # Binary search between lo and hi bounds.
2176 while test "x$ac_lo" != "x$ac_hi"; do
2177 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2184 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191 if ac_fn_c_try_compile "$LINENO"; then :
2194 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2206 static long int longval () { return $2; }
2207 static unsigned long int ulongval () { return $2; }
2214 FILE *f = fopen ("conftest.val", "w");
2219 long int i = longval ();
2222 fprintf (f, "%ld", i);
2226 unsigned long int i = ulongval ();
2229 fprintf (f, "%lu", i);
2231 /* Do not output a trailing newline, as this causes \r\n confusion
2232 on some platforms. */
2233 return ferror (f) || fclose (f) != 0;
2239 if ac_fn_c_try_run "$LINENO"; then :
2240 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2245 conftest.$ac_objext conftest.beam conftest.$ac_ext
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 } # ac_fn_c_compute_int
2253 cat >config.log <<_ACEOF
2254 This file contains any messages produced by compilers while
2255 running configure, to aid debugging if configure makes a mistake.
2257 It was created by ld $as_me 2.26.51, which was
2258 generated by GNU Autoconf 2.64. Invocation command line was
2270 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2271 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2272 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2273 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2274 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2276 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2277 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2279 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2280 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2281 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2282 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2283 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2284 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2285 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 $as_echo "PATH: $as_dir"
2310 # Keep a trace of the command line.
2311 # Strip out --no-create and --no-recursion so they do not pile up.
2312 # Strip out --silent because we don't want to record it for future runs.
2313 # Also quote any args containing shell meta-characters.
2314 # Make two passes to allow for proper duplicate-argument suppression.
2318 ac_must_keep_next=false
2324 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2326 | -silent | --silent | --silen | --sile | --sil)
2329 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2334 as_fn_append ac_configure_args1 " '$ac_arg'"
2335 if test $ac_must_keep_next = true; then
2336 ac_must_keep_next=false # Got value, back to normal.
2339 *=* | --config-cache | -C | -disable-* | --disable-* \
2340 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2341 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2342 | -with-* | --with-* | -without-* | --without-* | --x)
2343 case "$ac_configure_args0 " in
2344 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 -* ) ac_must_keep_next=true ;;
2350 as_fn_append ac_configure_args " '$ac_arg'"
2355 { ac_configure_args0=; unset ac_configure_args0;}
2356 { ac_configure_args1=; unset ac_configure_args1;}
2358 # When interrupted or exit'd, cleanup temporary files, and complete
2359 # config.log. We remove comments because anyway the quotes in there
2360 # would cause problems or look ugly.
2361 # WARNING: Use '\'' to represent an apostrophe within the trap.
2362 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2363 trap 'exit_status=$?
2364 # Save into config.log some information that might help in debugging.
2369 ## ---------------- ##
2370 ## Cache variables. ##
2371 ## ---------------- ##
2374 # The following way of writing the cache mishandles newlines in values,
2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2377 eval ac_val=\$$ac_var
2381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 _ | IFS | as_nl) ;; #(
2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2387 *) { eval $ac_var=; unset $ac_var;} ;;
2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2393 *${as_nl}ac_space=\ *)
2395 "s/'\''/'\''\\\\'\'''\''/g;
2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2407 ## ----------------- ##
2408 ## Output variables. ##
2409 ## ----------------- ##
2412 for ac_var in $ac_subst_vars
2414 eval ac_val=\$$ac_var
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 $as_echo "$ac_var='\''$ac_val'\''"
2422 if test -n "$ac_subst_files"; then
2424 ## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##
2429 for ac_var in $ac_subst_files
2431 eval ac_val=\$$ac_var
2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435 $as_echo "$ac_var='\''$ac_val'\''"
2440 if test -s confdefs.h; then
2450 test "$ac_signal" != 0 &&
2451 $as_echo "$as_me: caught signal $ac_signal"
2452 $as_echo "$as_me: exit $exit_status"
2454 rm -f core *.core core.conftest.* &&
2455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 for ac_signal in 1 2 13 15; do
2459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2464 rm -f -r conftest* confdefs.h
2466 $as_echo "/* confdefs.h */" > confdefs.h
2468 # Predefined preprocessor variables.
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_URL "$PACKAGE_URL"
2495 # Let the site file select an alternate cache file if it wants to.
2496 # Prefer an explicitly selected file to automatically selected ones.
2499 if test -n "$CONFIG_SITE"; then
2500 ac_site_file1=$CONFIG_SITE
2501 elif test "x$prefix" != xNONE; then
2502 ac_site_file1=$prefix/share/config.site
2503 ac_site_file2=$prefix/etc/config.site
2505 ac_site_file1=$ac_default_prefix/share/config.site
2506 ac_site_file2=$ac_default_prefix/etc/config.site
2508 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 test "x$ac_site_file" = xNONE && continue
2511 if test -r "$ac_site_file"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2513 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2514 sed 's/^/| /' "$ac_site_file" >&5
2519 if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special
2521 # files actually), so we avoid doing that.
2522 if test -f "$cache_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524 $as_echo "$as_me: loading cache $cache_file" >&6;}
2526 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527 *) . "./$cache_file";;
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532 $as_echo "$as_me: creating cache $cache_file" >&6;}
2536 # Check that the precious variables saved in the cache have kept the same
2538 ac_cache_corrupted=false
2539 for ac_var in $ac_precious_vars; do
2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2541 eval ac_new_set=\$ac_env_${ac_var}_set
2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2543 eval ac_new_val=\$ac_env_${ac_var}_value
2544 case $ac_old_set,$ac_new_set in
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2555 if test "x$ac_old_val" != "x$ac_new_val"; then
2556 # differences in whitespace do not lead to failure.
2557 ac_old_val_w=`echo x $ac_old_val`
2558 ac_new_val_w=`echo x $ac_new_val`
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2562 ac_cache_corrupted=:
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2566 eval $ac_var=\$ac_old_val
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2569 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2571 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578 *) ac_arg=$ac_var=$ac_new_val ;;
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 if $ac_cache_corrupted; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2593 ## -------------------- ##
2594 ## Main body of script. ##
2595 ## -------------------- ##
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2611 for ac_t in install-sh install.sh shtool; do
2612 if test -f "$ac_dir/$ac_t"; then
2614 ac_install_sh="$ac_aux_dir/$ac_t -c"
2619 if test -z "$ac_aux_dir"; then
2620 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2623 # These three variables are undocumented and unsupported,
2624 # and are intended to be withdrawn in a future Autoconf release.
2625 # They can cause serious problems if a builder's source tree is in a directory
2626 # whose full name contains unusual characters.
2627 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2628 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2629 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2632 # Make sure we can run config.sub.
2633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2634 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2637 $as_echo_n "checking build system type... " >&6; }
2638 if test "${ac_cv_build+set}" = set; then :
2639 $as_echo_n "(cached) " >&6
2641 ac_build_alias=$build_alias
2642 test "x$ac_build_alias" = x &&
2643 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2644 test "x$ac_build_alias" = x &&
2645 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2646 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2647 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2651 $as_echo "$ac_cv_build" >&6; }
2652 case $ac_cv_build in
2654 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2657 ac_save_IFS=$IFS; IFS='-'
2663 # Remember, the first character of IFS is used to create $*,
2664 # except with old shells:
2667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2671 $as_echo_n "checking host system type... " >&6; }
2672 if test "${ac_cv_host+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2675 if test "x$host_alias" = x; then
2676 ac_cv_host=$ac_cv_build
2678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2679 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2684 $as_echo "$ac_cv_host" >&6; }
2687 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2690 ac_save_IFS=$IFS; IFS='-'
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2700 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2704 $as_echo_n "checking target system type... " >&6; }
2705 if test "${ac_cv_target+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2708 if test "x$target_alias" = x; then
2709 ac_cv_target=$ac_cv_host
2711 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2712 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2717 $as_echo "$ac_cv_target" >&6; }
2718 case $ac_cv_target in
2720 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2722 target=$ac_cv_target
2723 ac_save_IFS=$IFS; IFS='-'
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2733 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2736 # The aliases save the names the user supplied, while $host etc.
2737 # will get canonicalized.
2738 test -n "$target_alias" &&
2739 test "$program_prefix$program_suffix$program_transform_name" = \
2741 program_prefix=${target_alias}-
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2787 if test -z "$ac_cv_prog_CC"; then
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790 set dummy gcc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2794 $as_echo_n "(cached) " >&6
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_ac_ct_CC="gcc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2819 $as_echo "$ac_ct_CC" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2825 if test "x$ac_ct_CC" = x; then
2828 case $cross_compiling:$ac_tool_warned in
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832 ac_tool_warned=yes ;;
2840 if test -z "$CC"; then
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}cc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_CC+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_CC="${ac_tool_prefix}cc"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2881 if test -z "$CC"; then
2882 # Extract the first word of "cc", so it can be a program name with args.
2883 set dummy cc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901 ac_prog_rejected=yes
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 for ac_prog in cl.exe
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2978 test -n "$CC" && break
2981 if test -z "$CC"; then
2983 for ac_prog in cl.exe
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_ac_ct_CC="$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3022 test -n "$ac_ct_CC" && break
3025 if test "x$ac_ct_CC" = x; then
3028 case $cross_compiling:$ac_tool_warned in
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3041 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error "no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." "$LINENO" 5; }
3046 # Provide some information about the compiler.
3047 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3050 for ac_option in --version -v -V -qversion; do
3051 { { ac_try="$ac_compiler $ac_option >&5"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060 if test -s conftest.err; then
3062 ... rest of stderr output deleted ...
3063 10q' conftest.err >conftest.er1
3064 cat conftest.er1 >&5
3065 rm -f conftest.er1 conftest.err
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3082 ac_clean_files_save=$ac_clean_files
3083 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3084 # Try to create an executable without -o first, disregard a.out.
3085 # It will help us diagnose broken compilers, and finding out an intuition
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3088 $as_echo_n "checking for C compiler default output file name... " >&6; }
3089 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091 # The possible output files:
3092 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3095 for ac_file in $ac_files
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3099 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104 if { { ac_try="$ac_link_default"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link_default") 2>&5
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; then :
3115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3118 # so that the user can short-circuit this test for compilers unknown to
3120 for ac_file in $ac_files ''
3122 test -f "$ac_file" || continue
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3127 # We found the default executable, but exeext='' is most
3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 # We set ac_cv_exeext here because the later test for it is not
3136 # safe: cross compilers may not add the suffix if given an `-o'
3137 # argument, so we may need to know it at that point already.
3138 # Even if this section looks crufty: it has the advantage of
3145 test "$ac_cv_exeext" = no && ac_cv_exeext=
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3151 $as_echo "$ac_file" >&6; }
3152 if test -z "$ac_file"; then :
3153 $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { as_fn_set_status 77
3159 as_fn_error "C compiler cannot create executables
3160 See \`config.log' for more details." "$LINENO" 5; }; }
3162 ac_exeext=$ac_cv_exeext
3164 # Check that the compiler produces executables we can run. If not, either
3165 # the compiler is broken, or we cross compile.
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3167 $as_echo_n "checking whether the C compiler works... " >&6; }
3168 # If not cross compiling, check that we can run a simple program.
3169 if test "$cross_compiling" != yes; then
3170 if { ac_try='./$ac_file'
3171 { { case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_try") 2>&5
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; }; then
3183 if test "$cross_compiling" = maybe; then
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error "cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." "$LINENO" 5; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3197 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3198 ac_clean_files=$ac_clean_files_save
3199 # Check that the compiler produces executables we can run. If not, either
3200 # the compiler is broken, or we cross compile.
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3202 $as_echo_n "checking whether we are cross compiling... " >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3204 $as_echo "$cross_compiling" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." "$LINENO" 5; }
3238 rm -f conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3246 $as_echo_n "checking for suffix of object files... " >&6; }
3247 if test "${ac_cv_objext+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3261 rm -f conftest.o conftest.obj
3262 if { { ac_try="$ac_compile"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compile") 2>&5
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 for ac_file in conftest.o conftest.obj conftest.*; do
3274 test -f "$ac_file" || continue;
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error "cannot compute suffix of object files: cannot compile
3288 See \`config.log' for more details." "$LINENO" 5; }
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3293 $as_echo "$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3297 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3298 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3315 if ac_fn_c_try_compile "$LINENO"; then :
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3325 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3326 if test $ac_compiler_gnu = yes; then
3331 ac_test_CFLAGS=${CFLAGS+set}
3332 ac_save_CFLAGS=$CFLAGS
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3334 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3335 if test "${ac_cv_prog_cc_g+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3338 ac_save_c_werror_flag=$ac_c_werror_flag
3339 ac_c_werror_flag=yes
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3353 if ac_fn_c_try_compile "$LINENO"; then :
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3368 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3384 if ac_fn_c_try_compile "$LINENO"; then :
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3395 $as_echo "$ac_cv_prog_cc_g" >&6; }
3396 if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3405 if test "$GCC" = yes; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3412 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3413 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3416 ac_cv_prog_cc_c89=no
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3422 #include <sys/types.h>
3423 #include <sys/stat.h>
3424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3425 struct buf { int x; };
3426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3427 static char *e (p, i)
3433 static char *f (char * (*g) (char **, int), char **p, ...)
3438 s = g (p, va_arg (v,int));
3443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3444 function prototypes and stuff, but not '\xHH' hex character constants.
3445 These don't provoke an error unfortunately, instead are silently treated
3446 as 'x'. The following induces an error, until -std is added to get
3447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3448 array size at least. It's necessary to write '\x00'==0 to get something
3449 that's true only with -std. */
3450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3453 inside strings and character constants. */
3455 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457 int test (int i, double x);
3458 struct s1 {int (*f) (int a);};
3459 struct s2 {int (*f) (double a);};
3460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474 CC="$ac_save_CC $ac_arg"
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_prog_cc_c89=$ac_arg
3478 rm -f core conftest.err conftest.$ac_objext
3479 test "x$ac_cv_prog_cc_c89" != "xno" && break
3481 rm -f conftest.$ac_ext
3486 case "x$ac_cv_prog_cc_c89" in
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3489 $as_echo "none needed" >&6; } ;;
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3492 $as_echo "unsupported" >&6; } ;;
3494 CC="$CC $ac_cv_prog_cc_c89"
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3496 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3498 if test "x$ac_cv_prog_cc_c89" != xno; then :
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3510 $as_echo_n "checking for library containing strerror... " >&6; }
3511 if test "${ac_cv_search_strerror+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 ac_func_search_save_LIBS=$LIBS
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3518 /* Override any GCC internal prototype to avoid an error.
3519 Use char because int might match the return type of a GCC
3520 builtin and then its argument prototype would still apply. */
3533 for ac_lib in '' cposix; do
3534 if test -z "$ac_lib"; then
3535 ac_res="none required"
3538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3540 if ac_fn_c_try_link "$LINENO"; then :
3541 ac_cv_search_strerror=$ac_res
3543 rm -f core conftest.err conftest.$ac_objext \
3545 if test "${ac_cv_search_strerror+set}" = set; then :
3549 if test "${ac_cv_search_strerror+set}" = set; then :
3552 ac_cv_search_strerror=no
3555 LIBS=$ac_func_search_save_LIBS
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3558 $as_echo "$ac_cv_search_strerror" >&6; }
3559 ac_res=$ac_cv_search_strerror
3560 if test "$ac_res" != no; then :
3561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3566 am__api_version='1.11'
3568 # Find a good install program. We prefer a C program (faster),
3569 # so one script is as good as another. But avoid the broken or
3570 # incompatible versions:
3571 # SysV /etc/install, /usr/sbin/install
3572 # SunOS /usr/etc/install
3573 # IRIX /sbin/install
3575 # AmigaOS /C/install, which installs bootblocks on floppy discs
3576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3579 # OS/2's system install, which has a completely different semantic
3580 # ./install, which can be erroneously created by make from ./install.sh.
3581 # Reject install programs that cannot install multiple files.
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3584 if test -z "$INSTALL"; then
3585 if test "${ac_cv_path_install+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 # Account for people who put trailing slashes in PATH elements.
3594 case $as_dir/ in #((
3595 ./ | .// | /[cC]/* | \
3596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3600 # OSF1 and SCO ODT 3.0 have their own names for install.
3601 # Don't use installbsd from OSF since it installs stuff as root
3603 for ac_prog in ginstall scoinst install; do
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3606 if test $ac_prog = install &&
3607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3608 # AIX install. It has an incompatible calling convention.
3610 elif test $ac_prog = install &&
3611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3612 # program-specific install script used by HP pwplus--don't use.
3615 rm -rf conftest.one conftest.two conftest.dir
3616 echo one > conftest.one
3617 echo two > conftest.two
3619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3620 test -s conftest.one && test -s conftest.two &&
3621 test -s conftest.dir/conftest.one &&
3622 test -s conftest.dir/conftest.two
3624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3637 rm -rf conftest.one conftest.two conftest.dir
3640 if test "${ac_cv_path_install+set}" = set; then
3641 INSTALL=$ac_cv_path_install
3643 # As a last resort, use the slow shell script. Don't cache a
3644 # value for INSTALL within a source directory, because that will
3645 # break other packages using the cache if that directory is
3646 # removed, or if the value is a relative name.
3647 INSTALL=$ac_install_sh
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3651 $as_echo "$INSTALL" >&6; }
3653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3654 # It thinks the first close brace ends the variable substitution.
3655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3662 $as_echo_n "checking whether build environment is sane... " >&6; }
3665 echo timestamp > conftest.file
3666 # Reject unsafe characters in $srcdir or the absolute working directory
3667 # name. Accept space and tab only in the latter.
3671 *[\\\"\#\$\&\'\`$am_lf]*)
3672 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3675 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3676 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3679 # Do `set' in a subshell so we don't clobber the current shell's
3680 # arguments. Must try -L first in case configure is actually a
3681 # symlink; some systems play weird games with the mod time of symlinks
3682 # (eg FreeBSD returns the mod time of the symlink's containing
3685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3686 if test "$*" = "X"; then
3688 set X `ls -t "$srcdir/configure" conftest.file`
3691 if test "$*" != "X $srcdir/configure conftest.file" \
3692 && test "$*" != "X conftest.file $srcdir/configure"; then
3694 # If neither matched, then we have a broken ls. This can happen
3695 # if, for instance, CONFIG_SHELL is bash and it inherits a
3696 # broken ls alias from the environment. This has actually
3697 # happened. Such a system could not be considered "sane".
3698 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3699 alias in your environment" "$LINENO" 5
3702 test "$2" = conftest.file
3708 as_fn_error "newly created file is older than distributed files!
3709 Check your system clock" "$LINENO" 5
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3713 test "$program_prefix" != NONE &&
3714 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3715 # Use a double $ so make ignores it.
3716 test "$program_suffix" != NONE &&
3717 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3718 # Double any \ or $.
3719 # By default was `s,x,x', remove it if useless.
3720 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3721 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3723 # expand $ac_aux_dir to an absolute path
3724 am_aux_dir=`cd $ac_aux_dir && pwd`
3726 if test x"${MISSING+set}" != xset; then
3729 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3731 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3734 # Use eval to expand $SHELL
3735 if eval "$MISSING --run true"; then
3736 am_missing_run="$MISSING --run "
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3740 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3743 if test x"${install_sh}" != xset; then
3746 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3748 install_sh="\${SHELL} $am_aux_dir/install-sh"
3752 # Installed binaries are usually stripped using `strip' when the user
3753 # run `make install-strip'. However `strip' might not be the right
3754 # tool to use in cross-compilation environments, therefore Automake
3755 # will honor the `STRIP' environment variable to overrule this program.
3756 if test "$cross_compiling" != no; then
3757 if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3759 set dummy ${ac_tool_prefix}strip; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if test "${ac_cv_prog_STRIP+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3765 if test -n "$STRIP"; then
3766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 STRIP=$ac_cv_prog_STRIP
3786 if test -n "$STRIP"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3788 $as_echo "$STRIP" >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3796 if test -z "$ac_cv_prog_STRIP"; then
3798 # Extract the first word of "strip", so it can be a program name with args.
3799 set dummy strip; ac_word=$2
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3802 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3805 if test -n "$ac_ct_STRIP"; then
3806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_ac_ct_STRIP="strip"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3826 if test -n "$ac_ct_STRIP"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3828 $as_echo "$ac_ct_STRIP" >&6; }
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3834 if test "x$ac_ct_STRIP" = x; then
3837 case $cross_compiling:$ac_tool_warned in
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841 ac_tool_warned=yes ;;
3846 STRIP="$ac_cv_prog_STRIP"
3850 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3853 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3854 if test -z "$MKDIR_P"; then
3855 if test "${ac_cv_path_mkdir+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in mkdir gmkdir; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3866 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3867 'mkdir (GNU coreutils) '* | \
3868 'mkdir (coreutils) '* | \
3869 'mkdir (fileutils) '4.1*)
3870 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3880 if test "${ac_cv_path_mkdir+set}" = set; then
3881 MKDIR_P="$ac_cv_path_mkdir -p"
3883 # As a last resort, use the slow shell script. Don't cache a
3884 # value for MKDIR_P within a source directory, because that will
3885 # break other packages using the cache if that directory is
3886 # removed, or if the value is a relative name.
3887 test -d ./--version && rmdir ./--version
3888 MKDIR_P="$ac_install_sh -d"
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3892 $as_echo "$MKDIR_P" >&6; }
3896 [\\/$]* | ?:[\\/]*) ;;
3897 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3900 for ac_prog in gawk mawk nawk awk
3902 # Extract the first word of "$ac_prog", so it can be a program name with args.
3903 set dummy $ac_prog; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if test "${ac_cv_prog_AWK+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3909 if test -n "$AWK"; then
3910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_prog_AWK="$ac_prog"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 if test -n "$AWK"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3932 $as_echo "$AWK" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3939 test -n "$AWK" && break
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3943 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3945 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3946 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3947 $as_echo_n "(cached) " >&6
3949 cat >conftest.make <<\_ACEOF
3952 @echo '@@@%%%=$(MAKE)=@@@%%%'
3954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3957 eval ac_cv_prog_make_${ac_make}_set=yes;;
3959 eval ac_cv_prog_make_${ac_make}_set=no;;
3963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965 $as_echo "yes" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 SET_MAKE="MAKE=${MAKE-make}"
3973 rm -rf .tst 2>/dev/null
3974 mkdir .tst 2>/dev/null
3975 if test -d .tst; then
3980 rmdir .tst 2>/dev/null
3982 DEPDIR="${am__leading_dot}deps"
3984 ac_config_commands="$ac_config_commands depfiles"
3987 am_make=${MAKE-make}
3988 cat > confinc << 'END'
3990 @echo this is the am__doit target
3993 # If we don't find an include directive, just comment out the code.
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3995 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3999 # First try GNU make style include.
4000 echo "include confinc" > confmf
4001 # Ignore all kinds of additional output from `make'.
4002 case `$am_make -s -f confmf 2> /dev/null` in #(
4003 *the\ am__doit\ target*)
4009 # Now try BSD make style include.
4010 if test "$am__include" = "#"; then
4011 echo '.include "confinc"' > confmf
4012 case `$am_make -s -f confmf 2> /dev/null` in #(
4013 *the\ am__doit\ target*)
4014 am__include=.include
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4023 $as_echo "$_am_result" >&6; }
4024 rm -f confinc confmf
4026 # Check whether --enable-dependency-tracking was given.
4027 if test "${enable_dependency_tracking+set}" = set; then :
4028 enableval=$enable_dependency_tracking;
4031 if test "x$enable_dependency_tracking" != xno; then
4032 am_depcomp="$ac_aux_dir/depcomp"
4035 if test "x$enable_dependency_tracking" != xno; then
4044 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4045 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4046 # is not polluted with repeated "-I."
4047 am__isrc=' -I$(srcdir)'
4048 # test to see if srcdir already configured
4049 if test -f $srcdir/config.status; then
4050 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4054 # test whether we have cygpath
4055 if test -z "$CYGPATH_W"; then
4056 if (cygpath --version) >/dev/null 2>/dev/null; then
4057 CYGPATH_W='cygpath -w'
4064 # Define the identity of the package.
4069 cat >>confdefs.h <<_ACEOF
4070 #define PACKAGE "$PACKAGE"
4074 cat >>confdefs.h <<_ACEOF
4075 #define VERSION "$VERSION"
4078 # Some tools Automake needs.
4080 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4083 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4086 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4092 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4094 # We need awk for the "check" target. The system "awk" is bad on
4096 # Always define AMTAR for backward compatibility.
4098 AMTAR=${AMTAR-"${am_missing_run}tar"}
4100 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4105 depcc="$CC" am_compiler_list=
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108 $as_echo_n "checking dependency style of $depcc... " >&6; }
4109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113 # We make a subdir and do the tests there. Otherwise we can end up
4114 # making bogus files that we don't know about and never remove. For
4115 # instance it was reported that on HP-UX the gcc test will end up
4116 # making a dummy file named `D' -- because `-MD' means `put the output
4119 # Copy depcomp to subdir because otherwise we won't find it if we're
4120 # using a relative directory.
4121 cp "$am_depcomp" conftest.dir
4123 # We will build objects and dependencies in a subdirectory because
4124 # it helps to detect inapplicable dependency modes. For instance
4125 # both Tru64's cc and ICC support -MD to output dependencies as a
4126 # side effect of compilation, but ICC will put the dependencies in
4127 # the current directory while Tru64 will put them in the object
4131 am_cv_CC_dependencies_compiler_type=none
4132 if test "$am_compiler_list" = ""; then
4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4136 case " $depcc " in #(
4137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4140 for depmode in $am_compiler_list; do
4141 # Setup a source with many dependencies, because some compilers
4142 # like to wrap large dependency lists on column 80 (with \), and
4143 # we should not choose a depcomp mode which is confused by this.
4145 # We need to recreate these files for each test, as the compiler may
4146 # overwrite some of them when testing with obscure command lines.
4147 # This happens at least with the AIX C compiler.
4149 for i in 1 2 3 4 5 6; do
4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4152 # Solaris 8's {/usr,}/bin/sh.
4153 touch sub/conftst$i.h
4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4158 # mode. It turns out that the SunPro C++ compiler does not properly
4159 # handle `-M -o', and we need to detect this. Also, some Intel
4160 # versions had trouble with output in subdirs
4161 am__obj=sub/conftest.${OBJEXT-o}
4162 am__minus_obj="-o $am__obj"
4165 # This depmode causes a compiler race in universal mode.
4166 test "$am__universal" = false || continue
4169 # after this tag, mechanisms are not by side-effect, so they'll
4170 # only be used when explicitly requested
4171 if test "x$enable_dependency_tracking" = xyes; then
4177 msvisualcpp | msvcmsys)
4178 # This compiler won't grok `-c -o', but also, the minuso test has
4179 # not run yet. These depmodes are late enough in the game, and
4180 # so weak that their functioning should not be impacted.
4181 am__obj=conftest.${OBJEXT-o}
4186 if depmode=$depmode \
4187 source=sub/conftest.c object=$am__obj \
4188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4190 >/dev/null 2>conftest.err &&
4191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195 # icc doesn't choke on unknown options, it will just issue warnings
4196 # or remarks (even with -Werror). So we grep stderr for any message
4197 # that says an option was ignored or not supported.
4198 # When given -MP, icc 7.0 and 7.1 complain thusly:
4199 # icc: Command line warning: ignoring option '-M'; no argument required
4200 # The diagnosis changed in icc 8.0:
4201 # icc: Command line remark: option '-MP' not supported
4202 if (grep 'ignoring option' conftest.err ||
4203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4204 am_cv_CC_dependencies_compiler_type=$depmode
4213 am_cv_CC_dependencies_compiler_type=none
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4222 test "x$enable_dependency_tracking" != xno \
4223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225 am__fastdepCC_FALSE='#'
4227 am__fastdepCC_TRUE='#'
4228 am__fastdepCC_FALSE=
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4235 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4236 # Check whether --enable-maintainer-mode was given.
4237 if test "${enable_maintainer_mode+set}" = set; then :
4238 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4240 USE_MAINTAINER_MODE=no
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4244 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4245 if test $USE_MAINTAINER_MODE = yes; then
4246 MAINTAINER_MODE_TRUE=
4247 MAINTAINER_MODE_FALSE='#'
4249 MAINTAINER_MODE_TRUE='#'
4250 MAINTAINER_MODE_FALSE=
4253 MAINT=$MAINTAINER_MODE_TRUE
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_CC+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4301 if test -z "$ac_cv_prog_CC"; then
4303 # Extract the first word of "gcc", so it can be a program name with args.
4304 set dummy gcc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$ac_ct_CC"; then
4311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_ac_ct_CC="gcc"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4331 if test -n "$ac_ct_CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4333 $as_echo "$ac_ct_CC" >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4339 if test "x$ac_ct_CC" = x; then
4342 case $cross_compiling:$ac_tool_warned in
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4354 if test -z "$CC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4357 set dummy ${ac_tool_prefix}cc; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if test "${ac_cv_prog_CC+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4363 if test -n "$CC"; then
4364 ac_cv_prog_CC="$CC" # Let the user override the test.
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_CC="${ac_tool_prefix}cc"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 if test -n "$CC"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4386 $as_echo "$CC" >&6; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4395 if test -z "$CC"; then
4396 # Extract the first word of "cc", so it can be a program name with args.
4397 set dummy cc; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_CC+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4403 if test -n "$CC"; then
4404 ac_cv_prog_CC="$CC" # Let the user override the test.
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4415 ac_prog_rejected=yes
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 if test $ac_prog_rejected = yes; then
4427 # We found a bogon in the path, so make sure we never use it.
4428 set dummy $ac_cv_prog_CC
4430 if test $# != 0; then
4431 # We chose a different compiler from the bogus one.
4432 # However, it has the same basename, so the bogon will be chosen
4433 # first if we set CC to just the basename; use the full file name.
4435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4441 if test -n "$CC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4443 $as_echo "$CC" >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4451 if test -z "$CC"; then
4452 if test -n "$ac_tool_prefix"; then
4453 for ac_prog in cl.exe
4455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_CC+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 test -n "$CC" && break
4495 if test -z "$CC"; then
4497 for ac_prog in cl.exe
4499 # Extract the first word of "$ac_prog", so it can be a program name with args.
4500 set dummy $ac_prog; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4506 if test -n "$ac_ct_CC"; then
4507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_ac_ct_CC="$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4527 if test -n "$ac_ct_CC"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4529 $as_echo "$ac_ct_CC" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4536 test -n "$ac_ct_CC" && break
4539 if test "x$ac_ct_CC" = x; then
4542 case $cross_compiling:$ac_tool_warned in
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4546 ac_tool_warned=yes ;;
4555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error "no acceptable C compiler found in \$PATH
4558 See \`config.log' for more details." "$LINENO" 5; }
4560 # Provide some information about the compiler.
4561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4564 for ac_option in --version -v -V -qversion; do
4565 { { ac_try="$ac_compiler $ac_option >&5"
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4574 if test -s conftest.err; then
4576 ... rest of stderr output deleted ...
4577 10q' conftest.err >conftest.er1
4578 cat conftest.er1 >&5
4579 rm -f conftest.er1 conftest.err
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4586 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4587 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4604 if ac_fn_c_try_compile "$LINENO"; then :
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4614 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4615 if test $ac_compiler_gnu = yes; then
4620 ac_test_CFLAGS=${CFLAGS+set}
4621 ac_save_CFLAGS=$CFLAGS
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4623 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4624 if test "${ac_cv_prog_cc_g+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4627 ac_save_c_werror_flag=$ac_c_werror_flag
4628 ac_c_werror_flag=yes
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4642 if ac_fn_c_try_compile "$LINENO"; then :
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4657 if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4673 if ac_fn_c_try_compile "$LINENO"; then :
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4684 $as_echo "$ac_cv_prog_cc_g" >&6; }
4685 if test "$ac_test_CFLAGS" = set; then
4686 CFLAGS=$ac_save_CFLAGS
4687 elif test $ac_cv_prog_cc_g = yes; then
4688 if test "$GCC" = yes; then
4694 if test "$GCC" = yes; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4701 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4702 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4705 ac_cv_prog_cc_c89=no
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4711 #include <sys/types.h>
4712 #include <sys/stat.h>
4713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4714 struct buf { int x; };
4715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4716 static char *e (p, i)
4722 static char *f (char * (*g) (char **, int), char **p, ...)
4727 s = g (p, va_arg (v,int));
4732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4733 function prototypes and stuff, but not '\xHH' hex character constants.
4734 These don't provoke an error unfortunately, instead are silently treated
4735 as 'x'. The following induces an error, until -std is added to get
4736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4737 array size at least. It's necessary to write '\x00'==0 to get something
4738 that's true only with -std. */
4739 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4741 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4742 inside strings and character constants. */
4744 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4746 int test (int i, double x);
4747 struct s1 {int (*f) (int a);};
4748 struct s2 {int (*f) (double a);};
4749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4755 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4760 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4763 CC="$ac_save_CC $ac_arg"
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_prog_cc_c89=$ac_arg
4767 rm -f core conftest.err conftest.$ac_objext
4768 test "x$ac_cv_prog_cc_c89" != "xno" && break
4770 rm -f conftest.$ac_ext
4775 case "x$ac_cv_prog_cc_c89" in
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4778 $as_echo "none needed" >&6; } ;;
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4781 $as_echo "unsupported" >&6; } ;;
4783 CC="$CC $ac_cv_prog_cc_c89"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4785 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4787 if test "x$ac_cv_prog_cc_c89" != xno; then :
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 ac_cpp='$CXXCPP $CPPFLAGS'
4799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4802 if test -z "$CXX"; then
4803 if test -n "$CCC"; then
4806 if test -n "$ac_tool_prefix"; then
4807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_CXX+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4816 if test -n "$CXX"; then
4817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 if test -n "$CXX"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4839 $as_echo "$CXX" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4846 test -n "$CXX" && break
4849 if test -z "$CXX"; then
4851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -n "$ac_ct_CXX"; then
4861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_CXX="$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4881 if test -n "$ac_ct_CXX"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4883 $as_echo "$ac_ct_CXX" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 test -n "$ac_ct_CXX" && break
4893 if test "x$ac_ct_CXX" = x; then
4896 case $cross_compiling:$ac_tool_warned in
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4908 # Provide some information about the compiler.
4909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4912 for ac_option in --version -v -V -qversion; do
4913 { { ac_try="$ac_compiler $ac_option >&5"
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4919 $as_echo "$ac_try_echo"; } >&5
4920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922 if test -s conftest.err; then
4924 ... rest of stderr output deleted ...
4925 10q' conftest.err >conftest.er1
4926 cat conftest.er1 >&5
4927 rm -f conftest.er1 conftest.err
4929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4930 test $ac_status = 0; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4934 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4935 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4936 $as_echo_n "(cached) " >&6
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4952 if ac_fn_cxx_try_compile "$LINENO"; then :
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4962 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4963 if test $ac_compiler_gnu = yes; then
4968 ac_test_CXXFLAGS=${CXXFLAGS+set}
4969 ac_save_CXXFLAGS=$CXXFLAGS
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4971 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4972 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4976 ac_cxx_werror_flag=yes
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4990 if ac_fn_cxx_try_compile "$LINENO"; then :
4991 ac_cv_prog_cxx_g=yes
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
5005 if ac_fn_cxx_try_compile "$LINENO"; then :
5008 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5021 if ac_fn_cxx_try_compile "$LINENO"; then :
5022 ac_cv_prog_cxx_g=yes
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5032 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5033 if test "$ac_test_CXXFLAGS" = set; then
5034 CXXFLAGS=$ac_save_CXXFLAGS
5035 elif test $ac_cv_prog_cxx_g = yes; then
5036 if test "$GXX" = yes; then
5042 if test "$GXX" = yes; then
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054 depcc="$CXX" am_compiler_list=
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5057 $as_echo_n "checking dependency style of $depcc... " >&6; }
5058 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5062 # We make a subdir and do the tests there. Otherwise we can end up
5063 # making bogus files that we don't know about and never remove. For
5064 # instance it was reported that on HP-UX the gcc test will end up
5065 # making a dummy file named `D' -- because `-MD' means `put the output
5068 # Copy depcomp to subdir because otherwise we won't find it if we're
5069 # using a relative directory.
5070 cp "$am_depcomp" conftest.dir
5072 # We will build objects and dependencies in a subdirectory because
5073 # it helps to detect inapplicable dependency modes. For instance
5074 # both Tru64's cc and ICC support -MD to output dependencies as a
5075 # side effect of compilation, but ICC will put the dependencies in
5076 # the current directory while Tru64 will put them in the object
5080 am_cv_CXX_dependencies_compiler_type=none
5081 if test "$am_compiler_list" = ""; then
5082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5085 case " $depcc " in #(
5086 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5089 for depmode in $am_compiler_list; do
5090 # Setup a source with many dependencies, because some compilers
5091 # like to wrap large dependency lists on column 80 (with \), and
5092 # we should not choose a depcomp mode which is confused by this.
5094 # We need to recreate these files for each test, as the compiler may
5095 # overwrite some of them when testing with obscure command lines.
5096 # This happens at least with the AIX C compiler.
5098 for i in 1 2 3 4 5 6; do
5099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5101 # Solaris 8's {/usr,}/bin/sh.
5102 touch sub/conftst$i.h
5104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5107 # mode. It turns out that the SunPro C++ compiler does not properly
5108 # handle `-M -o', and we need to detect this. Also, some Intel
5109 # versions had trouble with output in subdirs
5110 am__obj=sub/conftest.${OBJEXT-o}
5111 am__minus_obj="-o $am__obj"
5114 # This depmode causes a compiler race in universal mode.
5115 test "$am__universal" = false || continue
5118 # after this tag, mechanisms are not by side-effect, so they'll
5119 # only be used when explicitly requested
5120 if test "x$enable_dependency_tracking" = xyes; then
5126 msvisualcpp | msvcmsys)
5127 # This compiler won't grok `-c -o', but also, the minuso test has
5128 # not run yet. These depmodes are late enough in the game, and
5129 # so weak that their functioning should not be impacted.
5130 am__obj=conftest.${OBJEXT-o}
5135 if depmode=$depmode \
5136 source=sub/conftest.c object=$am__obj \
5137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5138 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5139 >/dev/null 2>conftest.err &&
5140 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5141 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5142 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5143 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5144 # icc doesn't choke on unknown options, it will just issue warnings
5145 # or remarks (even with -Werror). So we grep stderr for any message
5146 # that says an option was ignored or not supported.
5147 # When given -MP, icc 7.0 and 7.1 complain thusly:
5148 # icc: Command line warning: ignoring option '-M'; no argument required
5149 # The diagnosis changed in icc 8.0:
5150 # icc: Command line remark: option '-MP' not supported
5151 if (grep 'ignoring option' conftest.err ||
5152 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5153 am_cv_CXX_dependencies_compiler_type=$depmode
5162 am_cv_CXX_dependencies_compiler_type=none
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5167 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5168 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5171 test "x$enable_dependency_tracking" != xno \
5172 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5173 am__fastdepCXX_TRUE=
5174 am__fastdepCXX_FALSE='#'
5176 am__fastdepCXX_TRUE='#'
5177 am__fastdepCXX_FALSE=
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5182 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5183 if test "${ac_cv_path_GREP+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5186 if test -z "$GREP"; then
5187 ac_path_GREP_found=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5193 test -z "$as_dir" && as_dir=.
5194 for ac_prog in grep ggrep; do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5197 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5198 # Check for GNU ac_path_GREP and select it if it is found.
5199 # Check for GNU $ac_path_GREP
5200 case `"$ac_path_GREP" --version 2>&1` in
5202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5205 $as_echo_n 0123456789 >"conftest.in"
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'GREP' >> "conftest.nl"
5212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_GREP="$ac_path_GREP"
5218 ac_path_GREP_max=$ac_count
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5226 $ac_path_GREP_found && break 3
5231 if test -z "$ac_cv_path_GREP"; then
5232 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5235 ac_cv_path_GREP=$GREP
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5240 $as_echo "$ac_cv_path_GREP" >&6; }
5241 GREP="$ac_cv_path_GREP"
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5250 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5251 # On Suns, sometimes $CPP names a directory.
5252 if test -n "$CPP" && test -d "$CPP"; then
5255 if test -z "$CPP"; then
5256 if test "${ac_cv_prog_CPP+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5259 # Double quotes because CPP needs to be expanded
5260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5263 for ac_c_preproc_warn_flag in '' yes
5265 # Use a header file that comes with gcc, so configuring glibc
5266 # with a fresh cross-compiler works.
5267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5268 # <limits.h> exists even on freestanding compilers.
5269 # On the NeXT, cc -E runs the code through the compiler's parser,
5270 # not just through cpp. "Syntax error" is here to catch this case.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5274 # include <limits.h>
5276 # include <assert.h>
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5283 # Broken: fails on valid input.
5286 rm -f conftest.err conftest.$ac_ext
5288 # OK, works on sane cases. Now check whether nonexistent headers
5289 # can be detected and how.
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #include <ac_nonexistent.h>
5294 if ac_fn_c_try_cpp "$LINENO"; then :
5295 # Broken: success on invalid input.
5298 # Passes both tests.
5302 rm -f conftest.err conftest.$ac_ext
5305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5306 rm -f conftest.err conftest.$ac_ext
5307 if $ac_preproc_ok; then :
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5320 $as_echo "$CPP" >&6; }
5322 for ac_c_preproc_warn_flag in '' yes
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5333 # include <limits.h>
5335 # include <assert.h>
5339 if ac_fn_c_try_cpp "$LINENO"; then :
5342 # Broken: fails on valid input.
5345 rm -f conftest.err conftest.$ac_ext
5347 # OK, works on sane cases. Now check whether nonexistent headers
5348 # can be detected and how.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <ac_nonexistent.h>
5353 if ac_fn_c_try_cpp "$LINENO"; then :
5354 # Broken: success on invalid input.
5357 # Passes both tests.
5361 rm -f conftest.err conftest.$ac_ext
5364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365 rm -f conftest.err conftest.$ac_ext
5366 if $ac_preproc_ok; then :
5369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5371 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5372 See \`config.log' for more details." "$LINENO" 5; }
5376 ac_cpp='$CPP $CPPFLAGS'
5377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5383 $as_echo_n "checking for egrep... " >&6; }
5384 if test "${ac_cv_path_EGREP+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5388 then ac_cv_path_EGREP="$GREP -E"
5390 if test -z "$EGREP"; then
5391 ac_path_EGREP_found=false
5392 # Loop through the user's path and test for each of PROGNAME-LIST
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5397 test -z "$as_dir" && as_dir=.
5398 for ac_prog in egrep; do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5402 # Check for GNU ac_path_EGREP and select it if it is found.
5403 # Check for GNU $ac_path_EGREP
5404 case `"$ac_path_EGREP" --version 2>&1` in
5406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5409 $as_echo_n 0123456789 >"conftest.in"
5412 cat "conftest.in" "conftest.in" >"conftest.tmp"
5413 mv "conftest.tmp" "conftest.in"
5414 cp "conftest.in" "conftest.nl"
5415 $as_echo 'EGREP' >> "conftest.nl"
5416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418 as_fn_arith $ac_count + 1 && ac_count=$as_val
5419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5420 # Best one so far, save it but keep looking for a better one
5421 ac_cv_path_EGREP="$ac_path_EGREP"
5422 ac_path_EGREP_max=$ac_count
5424 # 10*(2^10) chars as input seems more than enough
5425 test $ac_count -gt 10 && break
5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430 $ac_path_EGREP_found && break 3
5435 if test -z "$ac_cv_path_EGREP"; then
5436 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5439 ac_cv_path_EGREP=$EGREP
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5445 $as_echo "$ac_cv_path_EGREP" >&6; }
5446 EGREP="$ac_cv_path_EGREP"
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5450 $as_echo_n "checking for ANSI C header files... " >&6; }
5451 if test "${ac_cv_header_stdc+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 ac_cv_header_stdc=yes
5472 ac_cv_header_stdc=no
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 if test $ac_cv_header_stdc = yes; then
5477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 $EGREP "memchr" >/dev/null 2>&1; then :
5487 ac_cv_header_stdc=no
5493 if test $ac_cv_header_stdc = yes; then
5494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 $EGREP "free" >/dev/null 2>&1; then :
5504 ac_cv_header_stdc=no
5510 if test $ac_cv_header_stdc = yes; then
5511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5512 if test "$cross_compiling" = yes; then :
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5519 #if ((' ' & 0x0FF) == 0x020)
5520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5523 # define ISLOWER(c) \
5524 (('a' <= (c) && (c) <= 'i') \
5525 || ('j' <= (c) && (c) <= 'r') \
5526 || ('s' <= (c) && (c) <= 'z'))
5527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5535 for (i = 0; i < 256; i++)
5536 if (XOR (islower (i), ISLOWER (i))
5537 || toupper (i) != TOUPPER (i))
5542 if ac_fn_c_try_run "$LINENO"; then :
5545 ac_cv_header_stdc=no
5547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5548 conftest.$ac_objext conftest.beam conftest.$ac_ext
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5554 $as_echo "$ac_cv_header_stdc" >&6; }
5555 if test $ac_cv_header_stdc = yes; then
5557 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5561 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5563 inttypes.h stdint.h unistd.h
5565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5566 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5568 eval as_val=\$$as_ac_Header
5569 if test "x$as_val" = x""yes; then :
5570 cat >>confdefs.h <<_ACEOF
5571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5580 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5581 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5588 if test "$MINIX" = yes; then
5590 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5593 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5596 $as_echo "#define _MINIX 1" >>confdefs.h
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5602 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5603 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5609 # define __EXTENSIONS__ 1
5610 $ac_includes_default
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 ac_cv_safe_to_define___extensions__=yes
5622 ac_cv_safe_to_define___extensions__=no
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5627 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5628 test $ac_cv_safe_to_define___extensions__ = yes &&
5629 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5631 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5633 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5635 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5637 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5647 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5652 macro_version='2.2.7a'
5653 macro_revision='1.3134'
5667 ltmain="$ac_aux_dir/ltmain.sh"
5669 # Backslashify metacharacters that are still active within
5670 # double-quoted strings.
5671 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5673 # Same as above, but do not quote variable references.
5674 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5676 # Sed substitution to delay expansion of an escaped shell variable in a
5677 # double_quote_subst'ed string.
5678 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5680 # Sed substitution to delay expansion of an escaped single quote.
5681 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5683 # Sed substitution to avoid accidental globbing in evaled expressions
5684 no_glob_subst='s/\*/\\\*/g'
5686 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5687 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5688 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5691 $as_echo_n "checking how to print strings... " >&6; }
5692 # Test print first, because it will be a builtin if present.
5693 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5694 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5696 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5699 # Use this function as a fallback that always works.
5700 func_fallback_echo ()
5702 eval 'cat <<_LTECHO_EOF
5706 ECHO='func_fallback_echo'
5709 # func_echo_all arg...
5710 # Invoke $ECHO with all args, space-separated.
5717 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5718 $as_echo "printf" >&6; } ;;
5719 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5720 $as_echo "print -r" >&6; } ;;
5721 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5722 $as_echo "cat" >&6; } ;;
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5739 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5740 if test "${ac_cv_path_SED+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5743 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5744 for ac_i in 1 2 3 4 5 6 7; do
5745 ac_script="$ac_script$as_nl$ac_script"
5747 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5748 { ac_script=; unset ac_script;}
5749 if test -z "$SED"; then
5750 ac_path_SED_found=false
5751 # Loop through the user's path and test for each of PROGNAME-LIST
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir=.
5757 for ac_prog in sed gsed; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5760 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5761 # Check for GNU ac_path_SED and select it if it is found.
5762 # Check for GNU $ac_path_SED
5763 case `"$ac_path_SED" --version 2>&1` in
5765 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5768 $as_echo_n 0123456789 >"conftest.in"
5771 cat "conftest.in" "conftest.in" >"conftest.tmp"
5772 mv "conftest.tmp" "conftest.in"
5773 cp "conftest.in" "conftest.nl"
5774 $as_echo '' >> "conftest.nl"
5775 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5777 as_fn_arith $ac_count + 1 && ac_count=$as_val
5778 if test $ac_count -gt ${ac_path_SED_max-0}; then
5779 # Best one so far, save it but keep looking for a better one
5780 ac_cv_path_SED="$ac_path_SED"
5781 ac_path_SED_max=$ac_count
5783 # 10*(2^10) chars as input seems more than enough
5784 test $ac_count -gt 10 && break
5786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5789 $ac_path_SED_found && break 3
5794 if test -z "$ac_cv_path_SED"; then
5795 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5803 $as_echo "$ac_cv_path_SED" >&6; }
5804 SED="$ac_cv_path_SED"
5807 test -z "$SED" && SED=sed
5808 Xsed="$SED -e 1s/^X//"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5821 $as_echo_n "checking for fgrep... " >&6; }
5822 if test "${ac_cv_path_FGREP+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5826 then ac_cv_path_FGREP="$GREP -F"
5828 if test -z "$FGREP"; then
5829 ac_path_FGREP_found=false
5830 # Loop through the user's path and test for each of PROGNAME-LIST
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5835 test -z "$as_dir" && as_dir=.
5836 for ac_prog in fgrep; do
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5839 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5840 # Check for GNU ac_path_FGREP and select it if it is found.
5841 # Check for GNU $ac_path_FGREP
5842 case `"$ac_path_FGREP" --version 2>&1` in
5844 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5847 $as_echo_n 0123456789 >"conftest.in"
5850 cat "conftest.in" "conftest.in" >"conftest.tmp"
5851 mv "conftest.tmp" "conftest.in"
5852 cp "conftest.in" "conftest.nl"
5853 $as_echo 'FGREP' >> "conftest.nl"
5854 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5856 as_fn_arith $ac_count + 1 && ac_count=$as_val
5857 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5858 # Best one so far, save it but keep looking for a better one
5859 ac_cv_path_FGREP="$ac_path_FGREP"
5860 ac_path_FGREP_max=$ac_count
5862 # 10*(2^10) chars as input seems more than enough
5863 test $ac_count -gt 10 && break
5865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5868 $ac_path_FGREP_found && break 3
5873 if test -z "$ac_cv_path_FGREP"; then
5874 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5877 ac_cv_path_FGREP=$FGREP
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5883 $as_echo "$ac_cv_path_FGREP" >&6; }
5884 FGREP="$ac_cv_path_FGREP"
5887 test -z "$GREP" && GREP=grep
5907 # Check whether --with-gnu-ld was given.
5908 if test "${with_gnu_ld+set}" = set; then :
5909 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5915 if test "$GCC" = yes; then
5916 # Check if gcc -print-prog-name=ld gives a path.
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5918 $as_echo_n "checking for ld used by $CC... " >&6; }
5921 # gcc leaves a trailing carriage return which upsets mingw
5922 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5924 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5927 # Accept absolute paths.
5929 re_direlt='/[^/][^/]*/\.\./'
5930 # Canonicalize the pathname of ld
5931 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5932 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5933 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5935 test -z "$LD" && LD="$ac_prog"
5938 # If it fails, then pretend we aren't using GCC.
5942 # If it is relative, then search for the first ld in PATH.
5946 elif test "$with_gnu_ld" = yes; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5948 $as_echo_n "checking for GNU ld... " >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5951 $as_echo_n "checking for non-GNU ld... " >&6; }
5953 if test "${lt_cv_path_LD+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 if test -z "$LD"; then
5957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5958 for ac_dir in $PATH; do
5960 test -z "$ac_dir" && ac_dir=.
5961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5962 lt_cv_path_LD="$ac_dir/$ac_prog"
5963 # Check to see if the program is GNU ld. I'd rather use --version,
5964 # but apparently some variants of GNU ld only accept -v.
5965 # Break only if it was the GNU/non-GNU ld that we prefer.
5966 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5967 *GNU* | *'with BFD'*)
5968 test "$with_gnu_ld" != no && break
5971 test "$with_gnu_ld" != yes && break
5978 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5983 if test -n "$LD"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5985 $as_echo "$LD" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5990 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5992 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5993 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5997 case `$LD -v 2>&1 </dev/null` in
5998 *GNU* | *'with BFD'*)
5999 lt_cv_prog_gnu_ld=yes
6002 lt_cv_prog_gnu_ld=no
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6007 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6008 with_gnu_ld=$lt_cv_prog_gnu_ld
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6019 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6020 if test "${lt_cv_path_NM+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6023 if test -n "$NM"; then
6024 # Let the user override the test.
6027 lt_nm_to_check="${ac_tool_prefix}nm"
6028 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6029 lt_nm_to_check="$lt_nm_to_check nm"
6031 for lt_tmp_nm in $lt_nm_to_check; do
6032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6033 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6035 test -z "$ac_dir" && ac_dir=.
6036 tmp_nm="$ac_dir/$lt_tmp_nm"
6037 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6038 # Check to see if the nm accepts a BSD-compat flag.
6039 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6040 # nm: unknown option "B" ignored
6041 # Tru64's nm complains that /dev/null is an invalid object file
6042 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6043 */dev/null* | *'Invalid file or object type'*)
6044 lt_cv_path_NM="$tmp_nm -B"
6048 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6050 lt_cv_path_NM="$tmp_nm -p"
6054 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6055 continue # so that we can try to find one that supports BSD flags
6064 : ${lt_cv_path_NM=no}
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6068 $as_echo "$lt_cv_path_NM" >&6; }
6069 if test "$lt_cv_path_NM" != "no"; then
6072 # Didn't find any BSD compatible name lister, look for dumpbin.
6073 if test -n "$DUMPBIN"; then :
6074 # Let the user override the test.
6076 if test -n "$ac_tool_prefix"; then
6077 for ac_prog in dumpbin "link -dump"
6079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6086 if test -n "$DUMPBIN"; then
6087 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 DUMPBIN=$ac_cv_prog_DUMPBIN
6107 if test -n "$DUMPBIN"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6109 $as_echo "$DUMPBIN" >&6; }
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6116 test -n "$DUMPBIN" && break
6119 if test -z "$DUMPBIN"; then
6120 ac_ct_DUMPBIN=$DUMPBIN
6121 for ac_prog in dumpbin "link -dump"
6123 # Extract the first word of "$ac_prog", so it can be a program name with args.
6124 set dummy $ac_prog; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6130 if test -n "$ac_ct_DUMPBIN"; then
6131 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6151 if test -n "$ac_ct_DUMPBIN"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6153 $as_echo "$ac_ct_DUMPBIN" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6160 test -n "$ac_ct_DUMPBIN" && break
6163 if test "x$ac_ct_DUMPBIN" = x; then
6166 case $cross_compiling:$ac_tool_warned in
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6172 DUMPBIN=$ac_ct_DUMPBIN
6176 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6178 DUMPBIN="$DUMPBIN -symbols"
6186 if test "$DUMPBIN" != ":"; then
6190 test -z "$NM" && NM=nm
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6198 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6199 if test "${lt_cv_nm_interface+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6202 lt_cv_nm_interface="BSD nm"
6203 echo "int some_variable = 0;" > conftest.$ac_ext
6204 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6205 (eval "$ac_compile" 2>conftest.err)
6206 cat conftest.err >&5
6207 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6208 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6209 cat conftest.err >&5
6210 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6211 cat conftest.out >&5
6212 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6213 lt_cv_nm_interface="MS dumpbin"
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6218 $as_echo "$lt_cv_nm_interface" >&6; }
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6221 $as_echo_n "checking whether ln -s works... " >&6; }
6223 if test "$LN_S" = "ln -s"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6225 $as_echo "yes" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6228 $as_echo "no, using $LN_S" >&6; }
6231 # find the maximum length of command line arguments
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6233 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6234 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6242 # On DJGPP, this test can blow up pretty badly due to problems in libc
6243 # (any single argument exceeding 2000 bytes causes a buffer overrun
6244 # during glob expansion). Even if it were fixed, the result of this
6245 # check would be larger than it should be.
6246 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6250 # Under GNU Hurd, this test is not required because there is
6251 # no limit to the length of command line arguments.
6252 # Libtool will interpret -1 as no limit whatsoever
6253 lt_cv_sys_max_cmd_len=-1;
6256 cygwin* | mingw* | cegcc*)
6257 # On Win9x/ME, this test blows up -- it succeeds, but takes
6258 # about 5 minutes as the teststring grows exponentially.
6259 # Worse, since 9x/ME are not pre-emptively multitasking,
6260 # you end up with a "frozen" computer, even though with patience
6261 # the test eventually succeeds (with a max line length of 256k).
6262 # Instead, let's just punt: use the minimum linelength reported by
6263 # all of the supported platforms: 8192 (on NT/2K/XP).
6264 lt_cv_sys_max_cmd_len=8192;
6268 # On MiNT this can take a long time and run out of memory.
6269 lt_cv_sys_max_cmd_len=8192;
6273 # On AmigaOS with pdksh, this test takes hours, literally.
6274 # So we just punt and use a minimum line length of 8192.
6275 lt_cv_sys_max_cmd_len=8192;
6278 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6279 # This has been around since 386BSD, at least. Likely further.
6280 if test -x /sbin/sysctl; then
6281 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6282 elif test -x /usr/sbin/sysctl; then
6283 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6285 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6287 # And add a safety zone
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6293 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6294 lt_cv_sys_max_cmd_len=196608
6298 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6299 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6300 # nice to cause kernel panics so lets avoid the loop below.
6301 # First set a reasonable default.
6302 lt_cv_sys_max_cmd_len=16384
6304 if test -x /sbin/sysconfig; then
6305 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6306 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6311 lt_cv_sys_max_cmd_len=102400
6313 sysv5* | sco5v6* | sysv4.2uw2*)
6314 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6315 if test -n "$kargmax"; then
6316 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6318 lt_cv_sys_max_cmd_len=32768
6322 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6323 if test -n "$lt_cv_sys_max_cmd_len"; then
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6327 # Make teststring a little bigger before we do anything with it.
6328 # a 1K string should be a reasonable start.
6329 for i in 1 2 3 4 5 6 7 8 ; do
6330 teststring=$teststring$teststring
6332 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6333 # If test is not a shell built-in, we'll probably end up computing a
6334 # maximum length that is only half of the actual maximum length, but
6336 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6337 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6338 test $i != 17 # 1/2 MB should be enough
6341 teststring=$teststring$teststring
6343 # Only check the string length outside the loop.
6344 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6346 # Add a significant safety factor because C++ compilers can tack on
6347 # massive amounts of additional arguments before passing them to the
6348 # linker. It appears as though 1/2 is a usable value.
6349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6356 if test -n $lt_cv_sys_max_cmd_len ; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6358 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6361 $as_echo "none" >&6; }
6363 max_cmd_len=$lt_cv_sys_max_cmd_len
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6375 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6376 # Try some XSI features
6379 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6381 && eval 'test $(( 1 + 1 )) -eq 2 \
6382 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6385 $as_echo "$xsi_shell" >&6; }
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6389 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6391 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6393 && lt_shell_append=yes
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6395 $as_echo "$lt_shell_append" >&6; }
6398 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6408 # test EBCDIC or ASCII
6409 case `echo X|tr X '\101'` in
6410 A) # ASCII based system
6411 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6412 lt_SP2NL='tr \040 \012'
6413 lt_NL2SP='tr \015\012 \040\040'
6415 *) # EBCDIC based system
6416 lt_SP2NL='tr \100 \n'
6417 lt_NL2SP='tr \r\n \100\100'
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6430 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6431 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6434 lt_cv_ld_reload_flag='-r'
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6437 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6438 reload_flag=$lt_cv_ld_reload_flag
6439 case $reload_flag in
6441 *) reload_flag=" $reload_flag" ;;
6443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6446 if test "$GCC" = yes; then
6447 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6470 if test -n "$OBJDUMP"; then
6471 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 OBJDUMP=$ac_cv_prog_OBJDUMP
6491 if test -n "$OBJDUMP"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6493 $as_echo "$OBJDUMP" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6501 if test -z "$ac_cv_prog_OBJDUMP"; then
6502 ac_ct_OBJDUMP=$OBJDUMP
6503 # Extract the first word of "objdump", so it can be a program name with args.
6504 set dummy objdump; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6510 if test -n "$ac_ct_OBJDUMP"; then
6511 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6531 if test -n "$ac_ct_OBJDUMP"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6533 $as_echo "$ac_ct_OBJDUMP" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6539 if test "x$ac_ct_OBJDUMP" = x; then
6542 case $cross_compiling:$ac_tool_warned in
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6548 OBJDUMP=$ac_ct_OBJDUMP
6551 OBJDUMP="$ac_cv_prog_OBJDUMP"
6554 test -z "$OBJDUMP" && OBJDUMP=objdump
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6565 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6566 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6569 lt_cv_file_magic_cmd='$MAGIC_CMD'
6570 lt_cv_file_magic_test_file=
6571 lt_cv_deplibs_check_method='unknown'
6572 # Need to set the preceding variable on all platforms that support
6573 # interlibrary dependencies.
6574 # 'none' -- dependencies not supported.
6575 # `unknown' -- same as none, but documents that we really don't know.
6576 # 'pass_all' -- all dependencies passed with no checks.
6577 # 'test_compile' -- check by making test program.
6578 # 'file_magic [[regex]]' -- check by looking for files in library path
6579 # which responds to the $file_magic_cmd with a given extended regex.
6580 # If you have `file' or equivalent on your system and you're not sure
6581 # whether `pass_all' will *always* work, you probably want this one.
6585 lt_cv_deplibs_check_method=pass_all
6589 lt_cv_deplibs_check_method=pass_all
6593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6594 lt_cv_file_magic_cmd='/usr/bin/file -L'
6595 lt_cv_file_magic_test_file=/shlib/libc.so
6599 # func_win32_libid is a shell function defined in ltmain.sh
6600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6601 lt_cv_file_magic_cmd='func_win32_libid'
6605 # Base MSYS/MinGW do not provide the 'file' command needed by
6606 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6607 # unless we find 'file', for example because we are cross-compiling.
6608 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6609 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6610 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6611 lt_cv_file_magic_cmd='func_win32_libid'
6613 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6614 lt_cv_file_magic_cmd='$OBJDUMP -f'
6619 # use the weaker test based on 'objdump'. See mingw*.
6620 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6621 lt_cv_file_magic_cmd='$OBJDUMP -f'
6624 darwin* | rhapsody*)
6625 lt_cv_deplibs_check_method=pass_all
6628 freebsd* | dragonfly*)
6629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6632 # Not sure whether the presence of OpenBSD here was a mistake.
6633 # Let's accept both of them until this is cleared up.
6634 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6635 lt_cv_file_magic_cmd=/usr/bin/file
6636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6640 lt_cv_deplibs_check_method=pass_all
6645 lt_cv_deplibs_check_method=pass_all
6649 lt_cv_deplibs_check_method=pass_all
6652 hpux10.20* | hpux11*)
6653 lt_cv_file_magic_cmd=/usr/bin/file
6656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6657 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6660 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]'
6661 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6665 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6671 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6675 irix5* | irix6* | nonstopux*)
6677 *-32|*"-32 ") libmagic=32-bit;;
6678 *-n32|*"-n32 ") libmagic=N32;;
6679 *-64|*"-64 ") libmagic=64-bit;;
6680 *) libmagic=never-match;;
6682 lt_cv_deplibs_check_method=pass_all
6685 # This must be Linux ELF.
6686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6687 lt_cv_deplibs_check_method=pass_all
6691 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6700 lt_cv_file_magic_cmd=/usr/bin/file
6701 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6705 lt_cv_deplibs_check_method=pass_all
6709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6716 osf3* | osf4* | osf5*)
6717 lt_cv_deplibs_check_method=pass_all
6721 lt_cv_deplibs_check_method=pass_all
6725 lt_cv_deplibs_check_method=pass_all
6728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6729 lt_cv_deplibs_check_method=pass_all
6733 case $host_vendor in
6735 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]'
6736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6739 lt_cv_deplibs_check_method=pass_all
6742 lt_cv_file_magic_cmd='/bin/file'
6743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6746 lt_cv_file_magic_cmd='/bin/file'
6747 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6748 lt_cv_file_magic_test_file=/lib/libc.so
6751 lt_cv_deplibs_check_method=pass_all
6754 lt_cv_deplibs_check_method=pass_all
6760 lt_cv_deplibs_check_method=pass_all
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6766 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6767 file_magic_cmd=$lt_cv_file_magic_cmd
6768 deplibs_check_method=$lt_cv_deplibs_check_method
6769 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}ar; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if test "${ac_cv_prog_AR+set}" = set; then :
6788 $as_echo_n "(cached) " >&6
6790 if test -n "$AR"; then
6791 ac_cv_prog_AR="$AR" # Let the user override the test.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_prog_AR="${ac_tool_prefix}ar"
6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 if test -n "$AR"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6813 $as_echo "$AR" >&6; }
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6821 if test -z "$ac_cv_prog_AR"; then
6823 # Extract the first word of "ar", so it can be a program name with args.
6824 set dummy ar; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6830 if test -n "$ac_ct_AR"; then
6831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_ac_ct_AR="ar"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6851 if test -n "$ac_ct_AR"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6853 $as_echo "$ac_ct_AR" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6859 if test "x$ac_ct_AR" = x; then
6862 case $cross_compiling:$ac_tool_warned in
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6874 test -z "$AR" && AR=ar
6875 test -z "$AR_FLAGS" && AR_FLAGS=cru
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}strip; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if test "${ac_cv_prog_STRIP+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
6895 if test -n "$STRIP"; then
6896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 STRIP=$ac_cv_prog_STRIP
6916 if test -n "$STRIP"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6918 $as_echo "$STRIP" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6926 if test -z "$ac_cv_prog_STRIP"; then
6928 # Extract the first word of "strip", so it can be a program name with args.
6929 set dummy strip; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6935 if test -n "$ac_ct_STRIP"; then
6936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_ac_ct_STRIP="strip"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6956 if test -n "$ac_ct_STRIP"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6958 $as_echo "$ac_ct_STRIP" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6964 if test "x$ac_ct_STRIP" = x; then
6967 case $cross_compiling:$ac_tool_warned in
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971 ac_tool_warned=yes ;;
6976 STRIP="$ac_cv_prog_STRIP"
6979 test -z "$STRIP" && STRIP=:
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6994 if test -n "$RANLIB"; then
6995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 RANLIB=$ac_cv_prog_RANLIB
7015 if test -n "$RANLIB"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7017 $as_echo "$RANLIB" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7025 if test -z "$ac_cv_prog_RANLIB"; then
7026 ac_ct_RANLIB=$RANLIB
7027 # Extract the first word of "ranlib", so it can be a program name with args.
7028 set dummy ranlib; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7034 if test -n "$ac_ct_RANLIB"; then
7035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_prog_ac_ct_RANLIB="ranlib"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7055 if test -n "$ac_ct_RANLIB"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7057 $as_echo "$ac_ct_RANLIB" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7063 if test "x$ac_ct_RANLIB" = x; then
7066 case $cross_compiling:$ac_tool_warned in
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7072 RANLIB=$ac_ct_RANLIB
7075 RANLIB="$ac_cv_prog_RANLIB"
7078 test -z "$RANLIB" && RANLIB=:
7085 # Determine commands to create old-style static archives.
7086 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7087 old_postinstall_cmds='chmod 644 $oldlib'
7088 old_postuninstall_cmds=
7090 if test -n "$RANLIB"; then
7093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7099 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7104 lock_old_archive_extraction=yes ;;
7106 lock_old_archive_extraction=no ;;
7147 # If no C compiler was specified, use CC.
7150 # If no C compiler flags were specified, use CFLAGS.
7151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7153 # Allow CC to be a program name with arguments.
7157 # Check for command to grab the raw symbol name followed by C symbol from nm.
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7159 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7160 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7164 # These are sane defaults that work on at least a few old systems.
7165 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7167 # Character class describing NM global symbol codes.
7168 symcode='[BCDEGRST]'
7170 # Regexp to match symbols that can be accessed directly from C.
7171 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7173 # Define system-specific variables.
7178 cygwin* | mingw* | pw32* | cegcc*)
7179 symcode='[ABCDGISTW]'
7182 if test "$host_cpu" = ia64; then
7183 symcode='[ABCDEGRST]'
7187 symcode='[BCDEGRST]'
7190 symcode='[BCDEGQRST]'
7201 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7209 # If we're using GNU nm, then use its standard symbol codes.
7210 case `$NM -V 2>&1` in
7211 *GNU* | *'with BFD'*)
7212 symcode='[ABCDGIRSTW]' ;;
7215 # Transform an extracted symbol line into a proper C declaration.
7216 # Some systems (esp. on ia64) link data and code symbols differently,
7217 # so use this general approach.
7218 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7220 # Transform an extracted symbol line into symbol name and symbol address
7221 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7222 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'"
7224 # Handle CRLF in mingw tool chain
7228 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7232 # Try without a prefix underscore, then with it.
7233 for ac_symprfx in "" "_"; do
7235 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7236 symxfrm="\\1 $ac_symprfx\\2 \\2"
7238 # Write the raw and C identifiers.
7239 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7240 # Fake it for dumpbin and say T for any non-static function
7241 # and D for any global variable.
7242 # Also find C++ and __fastcall symbols from MSVC++,
7243 # which start with @ or ?.
7244 lt_cv_sys_global_symbol_pipe="$AWK '"\
7245 " {last_section=section; section=\$ 3};"\
7246 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7247 " \$ 0!~/External *\|/{next};"\
7248 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7249 " {if(hide[section]) next};"\
7250 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7251 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7252 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7253 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7254 " ' prfx=^$ac_symprfx"
7256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7259 # Check to see that the pipe works correctly.
7263 cat > conftest.$ac_ext <<_LT_EOF
7268 void nm_test_func(void);
7269 void nm_test_func(void){}
7273 int main(){nm_test_var='a';nm_test_func();return(0);}
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277 (eval $ac_compile) 2>&5
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
7281 # Now try to grab the symbols.
7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7284 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; } && test -s "$nlist"; then
7288 # Try sorting and uniquifying the output.
7289 if sort "$nlist" | uniq > "$nlist"T; then
7290 mv -f "$nlist"T "$nlist"
7295 # Make sure that we snagged all the symbols we need.
7296 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7297 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7298 cat <<_LT_EOF > conftest.$ac_ext
7304 # Now generate the symbol file.
7305 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7307 cat <<_LT_EOF >> conftest.$ac_ext
7309 /* The mapping between symbol names and symbols. */
7314 lt__PROGRAM__LTX_preloaded_symbols[] =
7316 { "@PROGRAM@", (void *) 0 },
7318 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7319 cat <<\_LT_EOF >> conftest.$ac_ext
7323 /* This works around a problem in FreeBSD linker */
7324 #ifdef FREEBSD_WORKAROUND
7325 static const void *lt_preloaded_setup() {
7326 return lt__PROGRAM__LTX_preloaded_symbols;
7334 # Now try linking the two files.
7335 mv conftest.$ac_objext conftstm.$ac_objext
7336 lt_save_LIBS="$LIBS"
7337 lt_save_CFLAGS="$CFLAGS"
7338 LIBS="conftstm.$ac_objext"
7339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7341 (eval $ac_link) 2>&5
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7347 LIBS="$lt_save_LIBS"
7348 CFLAGS="$lt_save_CFLAGS"
7350 echo "cannot find nm_test_func in $nlist" >&5
7353 echo "cannot find nm_test_var in $nlist" >&5
7356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7359 echo "$progname: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 rm -rf conftest* conftst*
7364 # Do not use the global_symbol_pipe unless it works.
7365 if test "$pipe_works" = yes; then
7368 lt_cv_sys_global_symbol_pipe=
7374 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7375 lt_cv_sys_global_symbol_to_cdecl=
7377 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7379 $as_echo "failed" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7382 $as_echo "ok" >&6; }
7406 # Check whether --enable-libtool-lock was given.
7407 if test "${enable_libtool_lock+set}" = set; then :
7408 enableval=$enable_libtool_lock;
7411 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7413 # Some flags need to be propagated to the compiler or linker for good
7417 # Find out which ABI we are using.
7418 echo 'int i;' > conftest.$ac_ext
7419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7420 (eval $ac_compile) 2>&5
7422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423 test $ac_status = 0; }; then
7424 case `/usr/bin/file conftest.$ac_objext` in
7436 # Find out which ABI we are using.
7437 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439 (eval $ac_compile) 2>&5
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; }; then
7443 if test "$lt_cv_prog_gnu_ld" = yes; then
7444 case `/usr/bin/file conftest.$ac_objext` in
7446 LD="${LD-ld} -melf32bsmip"
7449 LD="${LD-ld} -melf32bmipn32"
7452 LD="${LD-ld} -melf64bmip"
7456 case `/usr/bin/file conftest.$ac_objext` in
7472 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7473 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7474 # Find out which ABI we are using.
7475 echo 'int i;' > conftest.$ac_ext
7476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477 (eval $ac_compile) 2>&5
7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }; then
7481 case `/usr/bin/file conftest.o` in
7484 x86_64-*kfreebsd*-gnu)
7485 LD="${LD-ld} -m elf_i386_fbsd"
7488 case `/usr/bin/file conftest.o` in
7490 LD="${LD-ld} -m elf32_x86_64"
7493 LD="${LD-ld} -m elf_i386"
7497 powerpc64le-*linux*)
7498 LD="${LD-ld} -m elf32lppclinux"
7501 LD="${LD-ld} -m elf32ppclinux"
7504 LD="${LD-ld} -m elf_s390"
7507 LD="${LD-ld} -m elf32_sparc"
7513 x86_64-*kfreebsd*-gnu)
7514 LD="${LD-ld} -m elf_x86_64_fbsd"
7517 LD="${LD-ld} -m elf_x86_64"
7520 LD="${LD-ld} -m elf64lppc"
7523 LD="${LD-ld} -m elf64ppc"
7525 s390*-*linux*|s390*-*tpf*)
7526 LD="${LD-ld} -m elf64_s390"
7529 LD="${LD-ld} -m elf64_sparc"
7539 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7540 SAVE_CFLAGS="$CFLAGS"
7541 CFLAGS="$CFLAGS -belf"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7543 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7544 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 lt_cv_cc_needs_belf=yes
7567 lt_cv_cc_needs_belf=no
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7582 CFLAGS="$SAVE_CFLAGS"
7586 # Find out which ABI we are using.
7587 echo 'int i;' > conftest.$ac_ext
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589 (eval $ac_compile) 2>&5
7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
7593 case `/usr/bin/file conftest.o` in
7595 case $lt_cv_prog_gnu_ld in
7596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7598 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7610 need_locks="$enable_libtool_lock"
7614 rhapsody* | darwin*)
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$DSYMUTIL"; then
7624 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7644 if test -n "$DSYMUTIL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7646 $as_echo "$DSYMUTIL" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7654 if test -z "$ac_cv_prog_DSYMUTIL"; then
7655 ac_ct_DSYMUTIL=$DSYMUTIL
7656 # Extract the first word of "dsymutil", so it can be a program name with args.
7657 set dummy dsymutil; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7663 if test -n "$ac_ct_DSYMUTIL"; then
7664 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7684 if test -n "$ac_ct_DSYMUTIL"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7686 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7692 if test "x$ac_ct_DSYMUTIL" = x; then
7695 case $cross_compiling:$ac_tool_warned in
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7701 DSYMUTIL=$ac_ct_DSYMUTIL
7704 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7707 if test -n "$ac_tool_prefix"; then
7708 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7709 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7713 $as_echo_n "(cached) " >&6
7715 if test -n "$NMEDIT"; then
7716 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 NMEDIT=$ac_cv_prog_NMEDIT
7736 if test -n "$NMEDIT"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7738 $as_echo "$NMEDIT" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7746 if test -z "$ac_cv_prog_NMEDIT"; then
7747 ac_ct_NMEDIT=$NMEDIT
7748 # Extract the first word of "nmedit", so it can be a program name with args.
7749 set dummy nmedit; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 if test -n "$ac_ct_NMEDIT"; then
7756 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7776 if test -n "$ac_ct_NMEDIT"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7778 $as_echo "$ac_ct_NMEDIT" >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7784 if test "x$ac_ct_NMEDIT" = x; then
7787 case $cross_compiling:$ac_tool_warned in
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7791 ac_tool_warned=yes ;;
7793 NMEDIT=$ac_ct_NMEDIT
7796 NMEDIT="$ac_cv_prog_NMEDIT"
7799 if test -n "$ac_tool_prefix"; then
7800 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_LIPO+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7807 if test -n "$LIPO"; then
7808 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 LIPO=$ac_cv_prog_LIPO
7828 if test -n "$LIPO"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7830 $as_echo "$LIPO" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7838 if test -z "$ac_cv_prog_LIPO"; then
7840 # Extract the first word of "lipo", so it can be a program name with args.
7841 set dummy lipo; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7847 if test -n "$ac_ct_LIPO"; then
7848 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_ac_ct_LIPO="lipo"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7868 if test -n "$ac_ct_LIPO"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7870 $as_echo "$ac_ct_LIPO" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7876 if test "x$ac_ct_LIPO" = x; then
7879 case $cross_compiling:$ac_tool_warned in
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883 ac_tool_warned=yes ;;
7888 LIPO="$ac_cv_prog_LIPO"
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}otool; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$OTOOL"; then
7900 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 OTOOL=$ac_cv_prog_OTOOL
7920 if test -n "$OTOOL"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7922 $as_echo "$OTOOL" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 if test -z "$ac_cv_prog_OTOOL"; then
7932 # Extract the first word of "otool", so it can be a program name with args.
7933 set dummy otool; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$ac_ct_OTOOL"; then
7940 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_ac_ct_OTOOL="otool"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7960 if test -n "$ac_ct_OTOOL"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7962 $as_echo "$ac_ct_OTOOL" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7968 if test "x$ac_ct_OTOOL" = x; then
7971 case $cross_compiling:$ac_tool_warned in
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned=yes ;;
7980 OTOOL="$ac_cv_prog_OTOOL"
7983 if test -n "$ac_tool_prefix"; then
7984 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7985 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$OTOOL64"; then
7992 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 OTOOL64=$ac_cv_prog_OTOOL64
8012 if test -n "$OTOOL64"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8014 $as_echo "$OTOOL64" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8022 if test -z "$ac_cv_prog_OTOOL64"; then
8023 ac_ct_OTOOL64=$OTOOL64
8024 # Extract the first word of "otool64", so it can be a program name with args.
8025 set dummy otool64; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8029 $as_echo_n "(cached) " >&6
8031 if test -n "$ac_ct_OTOOL64"; then
8032 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_prog_ac_ct_OTOOL64="otool64"
8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8052 if test -n "$ac_ct_OTOOL64"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8054 $as_echo "$ac_ct_OTOOL64" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8060 if test "x$ac_ct_OTOOL64" = x; then
8063 case $cross_compiling:$ac_tool_warned in
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067 ac_tool_warned=yes ;;
8069 OTOOL64=$ac_ct_OTOOL64
8072 OTOOL64="$ac_cv_prog_OTOOL64"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8102 $as_echo_n "checking for -single_module linker flag... " >&6; }
8103 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8106 lt_cv_apple_cc_single_mod=no
8107 if test -z "${LT_MULTI_MODULE}"; then
8108 # By default we will add the -single_module flag. You can override
8109 # by either setting the environment variable LT_MULTI_MODULE
8110 # non-empty at configure time, or by adding -multi_module to the
8112 rm -rf libconftest.dylib*
8113 echo "int foo(void){return 1;}" > conftest.c
8114 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8115 -dynamiclib -Wl,-single_module conftest.c" >&5
8116 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8117 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8119 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8120 lt_cv_apple_cc_single_mod=yes
8122 cat conftest.err >&5
8124 rm -rf libconftest.dylib*
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8129 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8131 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8132 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8135 lt_cv_ld_exported_symbols_list=no
8136 save_LDFLAGS=$LDFLAGS
8137 echo "_main" > conftest.sym
8138 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 lt_cv_ld_exported_symbols_list=yes
8153 lt_cv_ld_exported_symbols_list=no
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 LDFLAGS="$save_LDFLAGS"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8161 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8163 $as_echo_n "checking for -force_load linker flag... " >&6; }
8164 if test "${lt_cv_ld_force_load+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 lt_cv_ld_force_load=no
8168 cat > conftest.c << _LT_EOF
8169 int forced_loaded() { return 2;}
8171 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8172 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8173 echo "$AR cru libconftest.a conftest.o" >&5
8174 $AR cru libconftest.a conftest.o 2>&5
8175 cat > conftest.c << _LT_EOF
8176 int main() { return 0;}
8178 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8179 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8181 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8182 lt_cv_ld_force_load=yes
8184 cat conftest.err >&5
8186 rm -f conftest.err libconftest.a conftest conftest.c
8187 rm -rf conftest.dSYM
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8191 $as_echo "$lt_cv_ld_force_load" >&6; }
8193 rhapsody* | darwin1.[012])
8194 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8196 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8197 darwin*) # darwin 5.x on
8198 # if running on 10.5 or later, the deployment target defaults
8199 # to the OS version, if on x86, and 10.4, the deployment
8200 # target defaults to 10.4. Don't you love it?
8201 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8202 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8203 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8205 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8211 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8212 _lt_dar_single_mod='$single_module'
8214 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8215 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8217 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8219 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8220 _lt_dsymutil='~$DSYMUTIL $lib || :'
8227 for ac_header in dlfcn.h
8229 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8231 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8232 cat >>confdefs.h <<_ACEOF
8233 #define HAVE_DLFCN_H 1
8255 # Check whether --enable-shared was given.
8256 if test "${enable_shared+set}" = set; then :
8257 enableval=$enable_shared; p=${PACKAGE-default}
8259 yes) enable_shared=yes ;;
8260 no) enable_shared=no ;;
8263 # Look at the argument we got. We use all the common list separators.
8264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8265 for pkg in $enableval; do
8267 if test "X$pkg" = "X$p"; then
8286 # Check whether --enable-static was given.
8287 if test "${enable_static+set}" = set; then :
8288 enableval=$enable_static; p=${PACKAGE-default}
8290 yes) enable_static=yes ;;
8291 no) enable_static=no ;;
8294 # Look at the argument we got. We use all the common list separators.
8295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8296 for pkg in $enableval; do
8298 if test "X$pkg" = "X$p"; then
8318 # Check whether --with-pic was given.
8319 if test "${with_pic+set}" = set; then :
8320 withval=$with_pic; pic_mode="$withval"
8326 test -z "$pic_mode" && pic_mode=default
8334 # Check whether --enable-fast-install was given.
8335 if test "${enable_fast_install+set}" = set; then :
8336 enableval=$enable_fast_install; p=${PACKAGE-default}
8338 yes) enable_fast_install=yes ;;
8339 no) enable_fast_install=no ;;
8341 enable_fast_install=no
8342 # Look at the argument we got. We use all the common list separators.
8343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8344 for pkg in $enableval; do
8346 if test "X$pkg" = "X$p"; then
8347 enable_fast_install=yes
8354 enable_fast_install=yes
8367 # This can be used to rebuild libtool when needed
8368 LIBTOOL_DEPS="$ltmain"
8370 # Always use our own libtool.
8371 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8398 test -z "$LN_S" && LN_S="ln -s"
8413 if test -n "${ZSH_VERSION+set}" ; then
8414 setopt NO_GLOB_SUBST
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8418 $as_echo_n "checking for objdir... " >&6; }
8419 if test "${lt_cv_objdir+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8422 rm -f .libs 2>/dev/null
8423 mkdir .libs 2>/dev/null
8424 if test -d .libs; then
8427 # MS-DOS does not allow filenames that begin with a dot.
8430 rmdir .libs 2>/dev/null
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8433 $as_echo "$lt_cv_objdir" >&6; }
8434 objdir=$lt_cv_objdir
8440 cat >>confdefs.h <<_ACEOF
8441 #define LT_OBJDIR "$lt_cv_objdir/"
8449 # AIX sometimes has problems with the GCC collect2 program. For some
8450 # reason, if we set the COLLECT_NAMES environment variable, the problems
8451 # vanish in a puff of smoke.
8452 if test "X${COLLECT_NAMES+set}" != Xset; then
8454 export COLLECT_NAMES
8461 can_build_shared=yes
8463 # All known linkers require a `.a' archive for static linking (except MSVC,
8464 # which needs '.lib').
8467 with_gnu_ld="$lt_cv_prog_gnu_ld"
8470 old_CFLAGS="$CFLAGS"
8472 # Set sane defaults for various variables
8473 test -z "$CC" && CC=cc
8474 test -z "$LTCC" && LTCC=$CC
8475 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8476 test -z "$LD" && LD=ld
8477 test -z "$ac_objext" && ac_objext=o
8479 for cc_temp in $compiler""; do
8481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8487 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8490 # Only perform the check for file, if the check method requires it
8491 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8492 case $deplibs_check_method in
8494 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8496 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8497 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8502 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8505 lt_save_MAGIC_CMD="$MAGIC_CMD"
8506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8507 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8508 for ac_dir in $ac_dummy; do
8510 test -z "$ac_dir" && ac_dir=.
8511 if test -f $ac_dir/${ac_tool_prefix}file; then
8512 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8513 if test -n "$file_magic_test_file"; then
8514 case $deplibs_check_method in
8516 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8518 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8519 $EGREP "$file_magic_regex" > /dev/null; then
8524 *** Warning: the command libtool uses to detect shared libraries,
8525 *** $file_magic_cmd, produces output that libtool cannot recognize.
8526 *** The result is that libtool may fail to recognize shared libraries
8527 *** as such. This will affect the creation of libtool libraries that
8528 *** depend on shared libraries, but programs linked with such libtool
8529 *** libraries will work regardless of this problem. Nevertheless, you
8530 *** may want to report the problem to your system manager and/or to
8531 *** bug-libtool@gnu.org
8541 MAGIC_CMD="$lt_save_MAGIC_CMD"
8546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547 if test -n "$MAGIC_CMD"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8549 $as_echo "$MAGIC_CMD" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8559 if test -z "$lt_cv_path_MAGIC_CMD"; then
8560 if test -n "$ac_tool_prefix"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8562 $as_echo_n "checking for file... " >&6; }
8563 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8568 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8571 lt_save_MAGIC_CMD="$MAGIC_CMD"
8572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8574 for ac_dir in $ac_dummy; do
8576 test -z "$ac_dir" && ac_dir=.
8577 if test -f $ac_dir/file; then
8578 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8579 if test -n "$file_magic_test_file"; then
8580 case $deplibs_check_method in
8582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8585 $EGREP "$file_magic_regex" > /dev/null; then
8590 *** Warning: the command libtool uses to detect shared libraries,
8591 *** $file_magic_cmd, produces output that libtool cannot recognize.
8592 *** The result is that libtool may fail to recognize shared libraries
8593 *** as such. This will affect the creation of libtool libraries that
8594 *** depend on shared libraries, but programs linked with such libtool
8595 *** libraries will work regardless of this problem. Nevertheless, you
8596 *** may want to report the problem to your system manager and/or to
8597 *** bug-libtool@gnu.org
8607 MAGIC_CMD="$lt_save_MAGIC_CMD"
8612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8613 if test -n "$MAGIC_CMD"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8615 $as_echo "$MAGIC_CMD" >&6; }
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8631 # Use C for the default configuration in the libtool script
8635 ac_cpp='$CPP $CPPFLAGS'
8636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8641 # Source file extension for C test sources.
8644 # Object file extension for compiled C test sources.
8648 # Code to be used in simple compile tests
8649 lt_simple_compile_test_code="int some_variable = 0;"
8651 # Code to be used in simple link tests
8652 lt_simple_link_test_code='int main(){return(0);}'
8660 # If no C compiler was specified, use CC.
8663 # If no C compiler flags were specified, use CFLAGS.
8664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8666 # Allow CC to be a program name with arguments.
8669 # Save the default compiler, since it gets overwritten when the other
8670 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8671 compiler_DEFAULT=$CC
8673 # save warnings/boilerplate of simple test code
8674 ac_outfile=conftest.$ac_objext
8675 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8676 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8677 _lt_compiler_boilerplate=`cat conftest.err`
8680 ac_outfile=conftest.$ac_objext
8681 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8682 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8683 _lt_linker_boilerplate=`cat conftest.err`
8688 ## There is no encapsulation within the following macros, do not change
8689 ## the running order or otherwise move them around unless you know exactly
8690 ## what you are doing...
8691 if test -n "$compiler"; then
8693 lt_prog_compiler_no_builtin_flag=
8695 if test "$GCC" = yes; then
8696 case $cc_basename in
8698 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8700 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8704 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8705 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8708 lt_cv_prog_compiler_rtti_exceptions=no
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711 lt_compiler_flag="-fno-rtti -fno-exceptions"
8712 # Insert the option either (1) after the last *FLAGS variable, or
8713 # (2) before a word containing "conftest.", or (3) at the end.
8714 # Note that $ac_compile itself does not contain backslashes and begins
8715 # with a dollar sign (not a hyphen), so the echo should work correctly.
8716 # The option is referenced via a variable to avoid confusing sed.
8717 lt_compile=`echo "$ac_compile" | $SED \
8718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720 -e 's:$: $lt_compiler_flag:'`
8721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8722 (eval "$lt_compile" 2>conftest.err)
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 if (exit $ac_status) && test -s "$ac_outfile"; then
8727 # The compiler can only warn and ignore the option if not recognized
8728 # So say no if there are warnings other than the usual output.
8729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8732 lt_cv_prog_compiler_rtti_exceptions=yes
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8739 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8741 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8742 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8754 lt_prog_compiler_wl=
8755 lt_prog_compiler_pic=
8756 lt_prog_compiler_static=
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8759 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8761 if test "$GCC" = yes; then
8762 lt_prog_compiler_wl='-Wl,'
8763 lt_prog_compiler_static='-static'
8767 # All AIX code is PIC.
8768 if test "$host_cpu" = ia64; then
8769 # AIX 5 now supports IA64 processor
8770 lt_prog_compiler_static='-Bstatic'
8772 lt_prog_compiler_pic='-fPIC'
8778 # see comment about AmigaOS4 .so support
8779 lt_prog_compiler_pic='-fPIC'
8782 # FIXME: we need at least 68020 code to build shared libraries, but
8783 # adding the `-m68020' flag to GCC prevents building anything better,
8785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8791 # PIC is the default for these OSes.
8794 mingw* | cygwin* | pw32* | os2* | cegcc*)
8795 # This hack is so that the source file can tell whether it is being
8796 # built for inclusion in a dll (and should export symbols for example).
8797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8798 # (--disable-auto-import) libraries
8799 lt_prog_compiler_pic='-DDLL_EXPORT'
8802 darwin* | rhapsody*)
8803 # PIC is the default on this platform
8804 # Common symbols not allowed in MH_DYLIB files
8805 lt_prog_compiler_pic='-fno-common'
8809 # PIC is the default for Haiku.
8810 # The "-static" flag exists, but is broken.
8811 lt_prog_compiler_static=
8815 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8816 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8817 # sets the default TLS model and affects inlining.
8823 lt_prog_compiler_pic='-fPIC'
8829 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8830 # Instead, we relocate shared libraries at runtime.
8834 # Just because we use GCC doesn't mean we suddenly get shared libraries
8835 # on systems that don't support them.
8836 lt_prog_compiler_can_build_shared=no
8841 # QNX uses GNU C++, but need to define -shared option too, otherwise
8843 lt_prog_compiler_pic='-fPIC -shared'
8847 if test -d /usr/nec; then
8848 lt_prog_compiler_pic=-Kconform_pic
8853 lt_prog_compiler_pic='-fPIC'
8857 case $cc_basename in
8858 nvcc*) # Cuda Compiler Driver 2.2
8859 lt_prog_compiler_wl='-Xlinker '
8860 lt_prog_compiler_pic='-Xcompiler -fPIC'
8864 # PORTME Check for flag to pass linker flags through the system compiler.
8867 lt_prog_compiler_wl='-Wl,'
8868 if test "$host_cpu" = ia64; then
8869 # AIX 5 now supports IA64 processor
8870 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8876 mingw* | cygwin* | pw32* | os2* | cegcc*)
8877 # This hack is so that the source file can tell whether it is being
8878 # built for inclusion in a dll (and should export symbols for example).
8879 lt_prog_compiler_pic='-DDLL_EXPORT'
8882 hpux9* | hpux10* | hpux11*)
8883 lt_prog_compiler_wl='-Wl,'
8884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8891 lt_prog_compiler_pic='+Z'
8894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8895 lt_prog_compiler_static='${wl}-a ${wl}archive'
8898 irix5* | irix6* | nonstopux*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # PIC (with -KPIC) is the default.
8901 lt_prog_compiler_static='-non_shared'
8904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8905 case $cc_basename in
8906 # old Intel for x86_64 which still supported -KPIC.
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-static'
8912 # icc used to be incompatible with GCC.
8913 # ICC 10 doesn't accept -KPIC any more.
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-fPIC'
8917 lt_prog_compiler_static='-static'
8919 # Lahey Fortran 8.1.
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='--shared'
8923 lt_prog_compiler_static='--static'
8925 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8926 # Portland Group compilers (*not* the Pentium gcc compiler,
8927 # which looks to be a dead project)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-fpic'
8930 lt_prog_compiler_static='-Bstatic'
8933 lt_prog_compiler_wl='-Wl,'
8934 # All Alpha code is PIC.
8935 lt_prog_compiler_static='-non_shared'
8937 xl* | bgxl* | bgf* | mpixl*)
8938 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-qpic'
8941 lt_prog_compiler_static='-qstaticlink'
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ F* | *Sun*Fortran*)
8946 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_wl=''
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8955 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8968 # QNX uses GNU C++, but need to define -shared option too, otherwise
8970 lt_prog_compiler_pic='-fPIC -shared'
8973 osf3* | osf4* | osf5*)
8974 lt_prog_compiler_wl='-Wl,'
8975 # All OSF/1 code is PIC.
8976 lt_prog_compiler_static='-non_shared'
8980 lt_prog_compiler_static='-non_shared'
8984 lt_prog_compiler_pic='-KPIC'
8985 lt_prog_compiler_static='-Bstatic'
8986 case $cc_basename in
8988 lt_prog_compiler_wl='-Qoption ld ';;
8990 lt_prog_compiler_wl='-Wl,';;
8995 lt_prog_compiler_wl='-Qoption ld '
8996 lt_prog_compiler_pic='-PIC'
8997 lt_prog_compiler_static='-Bstatic'
9000 sysv4 | sysv4.2uw2* | sysv4.3*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9007 if test -d /usr/nec ;then
9008 lt_prog_compiler_pic='-Kconform_pic'
9009 lt_prog_compiler_static='-Bstatic'
9013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_pic='-KPIC'
9016 lt_prog_compiler_static='-Bstatic'
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_can_build_shared=no
9025 lt_prog_compiler_pic='-pic'
9026 lt_prog_compiler_static='-Bstatic'
9030 lt_prog_compiler_can_build_shared=no
9036 # For platforms which do not support PIC, -DPIC is meaningless:
9038 lt_prog_compiler_pic=
9041 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9045 $as_echo "$lt_prog_compiler_pic" >&6; }
9053 # Check to make sure the PIC flag actually works.
9055 if test -n "$lt_prog_compiler_pic"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9057 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9058 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9061 lt_cv_prog_compiler_pic_works=no
9062 ac_outfile=conftest.$ac_objext
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 # The option is referenced via a variable to avoid confusing sed.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>conftest.err)
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s "$ac_outfile"; then
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings other than the usual output.
9082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9085 lt_cv_prog_compiler_pic_works=yes
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9092 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9094 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9095 case $lt_prog_compiler_pic in
9097 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9100 lt_prog_compiler_pic=
9101 lt_prog_compiler_can_build_shared=no
9112 # Check to make sure the static flag actually works.
9114 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9116 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9117 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9120 lt_cv_prog_compiler_static_works=no
9121 save_LDFLAGS="$LDFLAGS"
9122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9123 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9125 # The linker can only warn and ignore the option if not recognized
9126 # So say no if there are warnings
9127 if test -s conftest.err; then
9128 # Append any errors to the config.log.
9129 cat conftest.err 1>&5
9130 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132 if diff conftest.exp conftest.er2 >/dev/null; then
9133 lt_cv_prog_compiler_static_works=yes
9136 lt_cv_prog_compiler_static_works=yes
9140 LDFLAGS="$save_LDFLAGS"
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9144 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9146 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9149 lt_prog_compiler_static=
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9159 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9160 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9163 lt_cv_prog_compiler_c_o=no
9164 $RM -r conftest 2>/dev/null
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170 lt_compiler_flag="-o out/conftest2.$ac_objext"
9171 # Insert the option either (1) after the last *FLAGS variable, or
9172 # (2) before a word containing "conftest.", or (3) at the end.
9173 # Note that $ac_compile itself does not contain backslashes and begins
9174 # with a dollar sign (not a hyphen), so the echo should work correctly.
9175 lt_compile=`echo "$ac_compile" | $SED \
9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178 -e 's:$: $lt_compiler_flag:'`
9179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9180 (eval "$lt_compile" 2>out/conftest.err)
9182 cat out/conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186 # The compiler can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
9188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9191 lt_cv_prog_compiler_c_o=yes
9196 # SGI C++ compiler will create directory out/ii_files/ for
9197 # template instantiation
9198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9199 $RM out/* && rmdir out
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9206 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9214 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9215 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9218 lt_cv_prog_compiler_c_o=no
9219 $RM -r conftest 2>/dev/null
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225 lt_compiler_flag="-o out/conftest2.$ac_objext"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235 (eval "$lt_compile" 2>out/conftest.err)
9237 cat out/conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings
9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_c_o=yes
9251 # SGI C++ compiler will create directory out/ii_files/ for
9252 # template instantiation
9253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9254 $RM out/* && rmdir out
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9261 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9266 hard_links="nottested"
9267 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9268 # do not overwrite the value of need_locks provided by the user
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9270 $as_echo_n "checking if we can lock with hard links... " >&6; }
9273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9275 ln conftest.a conftest.b 2>&5 || hard_links=no
9276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9278 $as_echo "$hard_links" >&6; }
9279 if test "$hard_links" = no; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9281 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9294 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9297 allow_undefined_flag=
9298 always_export_symbols=no
9300 archive_expsym_cmds=
9301 compiler_needs_object=no
9302 enable_shared_with_static_runtimes=no
9303 export_dynamic_flag_spec=
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9305 hardcode_automatic=no
9307 hardcode_direct_absolute=no
9308 hardcode_libdir_flag_spec=
9309 hardcode_libdir_flag_spec_ld=
9310 hardcode_libdir_separator=
9312 hardcode_shlibpath_var=unsupported
9314 link_all_deplibs=unknown
9317 old_archive_from_new_cmds=
9318 old_archive_from_expsyms_cmds=
9319 thread_safe_flag_spec=
9320 whole_archive_flag_spec=
9321 # include_expsyms should be a list of space-separated symbols to be *always*
9322 # included in the symbol list
9324 # exclude_expsyms can be an extended regexp of symbols to exclude
9325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9327 # as well as any symbol that contains `d'.
9328 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9330 # platforms (ab)use it in PIC code, but their linkers get confused if
9331 # the symbol is explicitly referenced. Since portable code cannot
9332 # rely on this symbol name, it's probably fine to never include it in
9333 # preloaded symbol tables.
9334 # Exclude shared library initialization/finalization symbols.
9335 extract_expsyms_cmds=
9338 cygwin* | mingw* | pw32* | cegcc*)
9339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9340 # When not using gcc, we currently assume that we are using
9341 # Microsoft Visual C++.
9342 if test "$GCC" != yes; then
9347 # we just hope/assume this is gcc and not c89 (= MSVC++)
9357 # On some targets, GNU ld is compatible enough with the native linker
9358 # that we're better off using the native interface for both.
9359 lt_use_gnu_ld_interface=no
9360 if test "$with_gnu_ld" = yes; then
9363 # The AIX port of GNU ld has always aspired to compatibility
9364 # with the native linker. However, as the warning in the GNU ld
9365 # block says, versions before 2.19.5* couldn't really create working
9366 # shared libraries, regardless of the interface used.
9367 case `$LD -v 2>&1` in
9368 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9369 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9370 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9372 lt_use_gnu_ld_interface=yes
9377 lt_use_gnu_ld_interface=yes
9382 if test "$lt_use_gnu_ld_interface" = yes; then
9383 # If archive_cmds runs LD, not CC, wlarc should be empty
9386 # Set some defaults for GNU ld with shared library support. These
9387 # are reset later if shared libraries are not supported. Putting them
9388 # here allows them to be overridden if necessary.
9389 runpath_var=LD_RUN_PATH
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391 export_dynamic_flag_spec='${wl}--export-dynamic'
9392 # ancient GNU ld didn't support --whole-archive et. al.
9393 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9394 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9396 whole_archive_flag_spec=
9398 supports_anon_versioning=no
9399 case `$LD -v 2>&1` in
9400 *GNU\ gold*) supports_anon_versioning=yes ;;
9401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9404 *\ 2.11.*) ;; # other 2.11 versions
9405 *) supports_anon_versioning=yes ;;
9408 # See if GNU ld supports shared libraries.
9411 # On AIX/PPC, the GNU linker is very broken
9412 if test "$host_cpu" != ia64; then
9416 *** Warning: the GNU linker, at least up to release 2.19, is reported
9417 *** to be unable to reliably create shared libraries on AIX.
9418 *** Therefore, libtool is disabling shared libraries support. If you
9419 *** really care for shared libraries, you may want to install binutils
9420 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9421 *** You will then need to restart the configuration process.
9430 # see comment about AmigaOS4 .so support
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 archive_expsym_cmds=''
9435 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)'
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_minus_L=yes
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 allow_undefined_flag=unsupported
9445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9446 # support --undefined. This deserves some investigation. FIXME
9447 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453 cygwin* | mingw* | pw32* | cegcc*)
9454 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9455 # as there is no search path for DLLs.
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 export_dynamic_flag_spec='${wl}--export-all-symbols'
9458 allow_undefined_flag=unsupported
9459 always_export_symbols=no
9460 enable_shared_with_static_runtimes=yes
9461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9463 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9465 # If the export-symbols file already is a .def file (1st line
9466 # is EXPORTS), use it as is; otherwise, prepend...
9467 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468 cp $export_symbols $output_objdir/$soname.def;
9470 echo EXPORTS > $output_objdir/$soname.def;
9471 cat $export_symbols >> $output_objdir/$soname.def;
9473 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 link_all_deplibs=yes
9486 hardcode_shlibpath_var=no
9487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9488 export_dynamic_flag_spec='${wl}-E'
9489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9490 # Instead, shared libraries are loaded at an image base (0x10000000 by
9491 # default) and relocated if they conflict, which is a slow very memory
9492 # consuming and fragmenting process. To avoid this, we pick a random,
9493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9496 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'
9499 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9501 if test "$host_os" = linux-dietlibc; then
9502 case $cc_basename in
9503 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9506 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9507 && test "$tmp_diet" = no
9509 tmp_addflag=' $pic_flag'
9510 tmp_sharedflag='-shared'
9511 case $cc_basename,$host_cpu in
9512 pgcc*) # Portland Group C compiler
9513 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'
9514 tmp_addflag=' $pic_flag'
9516 pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group f77 and f90 compilers
9518 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'
9519 tmp_addflag=' $pic_flag -Mnomain' ;;
9520 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9521 tmp_addflag=' -i_dynamic' ;;
9522 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9523 tmp_addflag=' -i_dynamic -nofor_main' ;;
9524 ifc* | ifort*) # Intel Fortran compiler
9525 tmp_addflag=' -nofor_main' ;;
9526 lf95*) # Lahey Fortran 8.1
9527 whole_archive_flag_spec=
9528 tmp_sharedflag='--shared' ;;
9529 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9530 tmp_sharedflag='-qmkshrobj'
9532 nvcc*) # Cuda Compiler Driver 2.2
9533 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'
9534 compiler_needs_object=yes
9537 case `$CC -V 2>&1 | sed 5q` in
9538 *Sun\ C*) # Sun C 5.9
9539 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'
9540 compiler_needs_object=yes
9541 tmp_sharedflag='-G' ;;
9542 *Sun\ F*) # Sun Fortran 8.3
9543 tmp_sharedflag='-G' ;;
9545 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 if test "x$supports_anon_versioning" = xyes; then
9548 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9550 echo "local: *; };" >> $output_objdir/$libname.ver~
9551 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9554 case $cc_basename in
9555 xlf* | bgf* | bgxlf* | mpixlf*)
9556 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9557 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9558 hardcode_libdir_flag_spec=
9559 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9560 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9561 if test "x$supports_anon_versioning" = xyes; then
9562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9564 echo "local: *; };" >> $output_objdir/$libname.ver~
9565 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9576 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9589 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9590 *** create shared libraries on Solaris systems. Therefore, libtool
9591 *** is disabling shared libraries support. We urge you to upgrade GNU
9592 *** binutils to release 2.9.1 or newer. Another option is to modify
9593 *** your PATH or compiler configuration so that the native linker is
9594 *** used, and then restart.
9597 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9606 case `$LD -v 2>&1` in
9607 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9611 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9612 *** reliably create shared libraries on SCO systems. Therefore, libtool
9613 *** is disabling shared libraries support. We urge you to upgrade GNU
9614 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9615 *** your PATH or compiler configuration so that the native linker is
9616 *** used, and then restart.
9621 # For security reasons, it is highly recommended that you always
9622 # use absolute paths for naming shared libraries, and exclude the
9623 # DT_RUNPATH tag from executables and libraries. But doing so
9624 # requires that you compile everything twice, which is a pain.
9625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9637 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_shlibpath_var=no
9644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9653 if test "$ld_shlibs" = no; then
9655 hardcode_libdir_flag_spec=
9656 export_dynamic_flag_spec=
9657 whole_archive_flag_spec=
9660 # PORTME fill in a description of your system's linker (not GNU ld)
9663 allow_undefined_flag=unsupported
9664 always_export_symbols=yes
9665 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'
9666 # Note: this linker hardcodes the directories in LIBPATH if there
9667 # are no directories specified by -L.
9668 hardcode_minus_L=yes
9669 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9670 # Neither direct hardcoding nor static linking is supported with a
9672 hardcode_direct=unsupported
9677 if test "$host_cpu" = ia64; then
9678 # On IA64, the linker does run time linking by default, so we don't
9679 # have to do anything special.
9680 aix_use_runtimelinking=no
9681 exp_sym_flag='-Bexport'
9684 # If we're using GNU nm, then we don't want the "-C" option.
9685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9686 # Also, AIX nm treats weak defined symbols like other global
9687 # defined symbols, whereas GNU nm marks them as "W".
9688 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9689 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'
9691 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'
9693 aix_use_runtimelinking=no
9695 # Test if we are trying to use run time linking or normal
9696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9697 # need to do runtime linking.
9698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9699 for ld_flag in $LDFLAGS; do
9700 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9701 aix_use_runtimelinking=yes
9708 exp_sym_flag='-bexport'
9709 no_entry_flag='-bnoentry'
9712 # When large executables or shared objects are built, AIX ld can
9713 # have problems creating the table of contents. If linking a library
9714 # or program results in "error TOC overflow" add -mminimal-toc to
9715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9720 hardcode_direct_absolute=yes
9721 hardcode_libdir_separator=':'
9722 link_all_deplibs=yes
9723 file_list_spec='${wl}-f,'
9725 if test "$GCC" = yes; then
9726 case $host_os in aix4.[012]|aix4.[012].*)
9727 # We only want to do this on AIX 4.2 and lower, the check
9728 # below for broken collect2 doesn't work under 4.3+
9729 collect2name=`${CC} -print-prog-name=collect2`
9730 if test -f "$collect2name" &&
9731 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9733 # We have reworked collect2
9736 # We have old collect2
9737 hardcode_direct=unsupported
9738 # It fails to find uninstalled libraries when the uninstalled
9739 # path is not listed in the libpath. Setting hardcode_minus_L
9740 # to unsupported forces relinking
9741 hardcode_minus_L=yes
9742 hardcode_libdir_flag_spec='-L$libdir'
9743 hardcode_libdir_separator=
9747 shared_flag='-shared'
9748 if test "$aix_use_runtimelinking" = yes; then
9749 shared_flag="$shared_flag "'${wl}-G'
9753 if test "$host_cpu" = ia64; then
9754 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9755 # chokes on -Wl,-G. The following line is correct:
9758 if test "$aix_use_runtimelinking" = yes; then
9759 shared_flag='${wl}-G'
9761 shared_flag='${wl}-bM:SRE'
9766 export_dynamic_flag_spec='${wl}-bexpall'
9767 # It seems that -bexpall does not export symbols beginning with
9768 # underscore (_), so it is better to generate a list of symbols to export.
9769 always_export_symbols=yes
9770 if test "$aix_use_runtimelinking" = yes; then
9771 # Warning - without using the other runtime loading flags (-brtl),
9772 # -berok will link without error, but may produce a broken library.
9773 allow_undefined_flag='-berok'
9774 # Determine the default libpath from the value encoded in an
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9787 if ac_fn_c_try_link "$LINENO"; then :
9789 lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9796 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$aix_libpath"; then
9799 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9807 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"
9809 if test "$host_cpu" = ia64; then
9810 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9811 allow_undefined_flag="-z nodefs"
9812 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"
9814 # Determine the default libpath from the value encoded in an
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9827 if ac_fn_c_try_link "$LINENO"; then :
9829 lt_aix_libpath_sed='
9830 /Import File Strings/,/^$/ {
9836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837 # Check for a 64-bit object if we didn't find anything.
9838 if test -z "$aix_libpath"; then
9839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9842 rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9847 # Warning - without using the other run time loading flags,
9848 # -berok will link without error, but may produce a broken library.
9849 no_undefined_flag=' ${wl}-bernotok'
9850 allow_undefined_flag=' ${wl}-berok'
9851 if test "$with_gnu_ld" = yes; then
9852 # We only use this code for GNU lds that support --whole-archive.
9853 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9855 # Exported symbols can be pulled into shared objects from archives
9856 whole_archive_flag_spec='$convenience'
9858 archive_cmds_need_lc=yes
9859 # This is similar to how AIX traditionally builds its shared libraries.
9860 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'
9868 # see comment about AmigaOS4 .so support
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 archive_expsym_cmds=''
9873 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)'
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_minus_L=yes
9881 export_dynamic_flag_spec=-rdynamic
9884 cygwin* | mingw* | pw32* | cegcc*)
9885 # When not using gcc, we currently assume that we are using
9886 # Microsoft Visual C++.
9887 # hardcode_libdir_flag_spec is actually meaningless, as there is
9888 # no search path for DLLs.
9889 hardcode_libdir_flag_spec=' '
9890 allow_undefined_flag=unsupported
9891 # Tell ltmain to make .lib files, not .a files.
9893 # Tell ltmain to make .dll files, not .so files.
9895 # FIXME: Setting linknames here is a bad hack.
9896 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9897 # The linker will automatically build a .lib file if we build a DLL.
9898 old_archive_from_new_cmds='true'
9899 # FIXME: Should let the user specify the lib program.
9900 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9901 fix_srcfile_path='`cygpath -w "$srcfile"`'
9902 enable_shared_with_static_runtimes=yes
9905 darwin* | rhapsody*)
9908 archive_cmds_need_lc=no
9910 hardcode_automatic=yes
9911 hardcode_shlibpath_var=unsupported
9912 if test "$lt_cv_ld_force_load" = "yes"; then
9913 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\"`'
9915 whole_archive_flag_spec=''
9917 link_all_deplibs=yes
9918 allow_undefined_flag="$_lt_dar_allow_undefined"
9919 case $cc_basename in
9920 ifort*) _lt_dar_can_shared=yes ;;
9921 *) _lt_dar_can_shared=$GCC ;;
9923 if test "$_lt_dar_can_shared" = "yes"; then
9924 output_verbose_link_cmd=func_echo_all
9925 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9926 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9927 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}"
9928 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}"
9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_shlibpath_var=no
9942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9943 # support. Future versions do this automatically, but an explicit c++rt0.o
9944 # does not break anything, and helps significantly (at the cost of a little
9947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9948 hardcode_libdir_flag_spec='-R$libdir'
9950 hardcode_shlibpath_var=no
9953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_minus_L=yes
9958 hardcode_shlibpath_var=no
9961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9962 freebsd* | dragonfly*)
9963 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_shlibpath_var=no
9970 if test "$GCC" = yes; then
9971 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'
9973 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'
9975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976 hardcode_libdir_separator=:
9979 # hardcode_minus_L: Not really in the search PATH,
9980 # but as the default location of the library.
9981 hardcode_minus_L=yes
9982 export_dynamic_flag_spec='${wl}-E'
9986 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9987 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9991 if test "$with_gnu_ld" = no; then
9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_flag_spec_ld='+b $libdir'
9994 hardcode_libdir_separator=:
9996 hardcode_direct_absolute=yes
9997 export_dynamic_flag_spec='${wl}-E'
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10005 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10008 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10027 # Older versions of the 11.00 compiler do not understand -b yet
10028 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10030 $as_echo_n "checking if $CC understands -b... " >&6; }
10031 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10034 lt_cv_prog_compiler__b=no
10035 save_LDFLAGS="$LDFLAGS"
10036 LDFLAGS="$LDFLAGS -b"
10037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10039 # The linker can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 if test -s conftest.err; then
10042 # Append any errors to the config.log.
10043 cat conftest.err 1>&5
10044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046 if diff conftest.exp conftest.er2 >/dev/null; then
10047 lt_cv_prog_compiler__b=yes
10050 lt_cv_prog_compiler__b=yes
10054 LDFLAGS="$save_LDFLAGS"
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10058 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10060 if test x"$lt_cv_prog_compiler__b" = xyes; then
10061 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10069 if test "$with_gnu_ld" = no; then
10070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10071 hardcode_libdir_separator=:
10076 hardcode_shlibpath_var=no
10079 hardcode_direct=yes
10080 hardcode_direct_absolute=yes
10081 export_dynamic_flag_spec='${wl}-E'
10083 # hardcode_minus_L: Not really in the search PATH,
10084 # but as the default location of the library.
10085 hardcode_minus_L=yes
10091 irix5* | irix6* | nonstopux*)
10092 if test "$GCC" = yes; then
10093 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'
10094 # Try to use the -exported_symbol ld option, if it does not
10095 # work, assume that -exports_file does not work either and
10096 # implicitly export all symbols.
10097 save_LDFLAGS="$LDFLAGS"
10098 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10103 if ac_fn_c_try_link "$LINENO"; then :
10104 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'
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LDFLAGS="$save_LDFLAGS"
10111 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'
10112 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'
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10118 link_all_deplibs=yes
10122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10127 hardcode_libdir_flag_spec='-R$libdir'
10128 hardcode_direct=yes
10129 hardcode_shlibpath_var=no
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_direct=yes
10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator=:
10137 hardcode_shlibpath_var=no
10144 if test -f /usr/libexec/ld.so; then
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10147 hardcode_direct_absolute=yes
10148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 export_dynamic_flag_spec='${wl}-E'
10155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec='-R$libdir'
10160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10171 hardcode_libdir_flag_spec='-L$libdir'
10172 hardcode_minus_L=yes
10173 allow_undefined_flag=unsupported
10174 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'
10175 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10179 if test "$GCC" = yes; then
10180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10181 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'
10183 allow_undefined_flag=' -expect_unresolved \*'
10184 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'
10186 archive_cmds_need_lc='no'
10187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10188 hardcode_libdir_separator=:
10191 osf4* | osf5*) # as osf3* with the addition of -msym flag
10192 if test "$GCC" = yes; then
10193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10194 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'
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 allow_undefined_flag=' -expect_unresolved \*'
10198 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'
10199 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~
10200 $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'
10202 # Both c and cxx compiler support -rpath directly
10203 hardcode_libdir_flag_spec='-rpath $libdir'
10205 archive_cmds_need_lc='no'
10206 hardcode_libdir_separator=:
10210 no_undefined_flag=' -z defs'
10211 if test "$GCC" = yes; then
10213 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10215 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10217 case `$CC -V 2>&1` in
10220 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10226 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10232 hardcode_libdir_flag_spec='-R$libdir'
10233 hardcode_shlibpath_var=no
10235 solaris2.[0-5] | solaris2.[0-5].*) ;;
10237 # The compiler driver will combine and reorder linker options,
10238 # but understands `-z linker_flag'. GCC discards it without `$wl',
10239 # but is careful enough not to reorder.
10240 # Supported since Solaris 2.6 (maybe 2.5.1?)
10241 if test "$GCC" = yes; then
10242 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10248 link_all_deplibs=yes
10252 if test "x$host_vendor" = xsequent; then
10253 # Use $CC to link under sequent, because it throws in some extra .o
10254 # files that make .init and .fini sections work.
10255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 hardcode_direct=yes
10261 hardcode_minus_L=yes
10262 hardcode_shlibpath_var=no
10266 case $host_vendor in
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_direct=yes # is this really true???
10272 ## LD is ld it makes a PLAMLIB
10273 ## CC just makes a GrossModule.
10274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10275 reload_cmds='$CC -r -o $output$reload_objs'
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10283 runpath_var='LD_RUN_PATH'
10284 hardcode_shlibpath_var=no
10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_shlibpath_var=no
10290 export_dynamic_flag_spec='-Bexport'
10294 if test -d /usr/nec; then
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_shlibpath_var=no
10297 runpath_var=LD_RUN_PATH
10298 hardcode_runpath_var=yes
10303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10304 no_undefined_flag='${wl}-z,text'
10305 archive_cmds_need_lc=no
10306 hardcode_shlibpath_var=no
10307 runpath_var='LD_RUN_PATH'
10309 if test "$GCC" = yes; then
10310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 sysv5* | sco3.2v5* | sco5v6*)
10319 # Note: We can NOT use -z defs as we might desire, because we do not
10320 # link with -lc, and that would cause any symbols used from libc to
10321 # always be unresolved, which means just about no library would
10322 # ever link correctly. If we're not using GNU ld we use -z text
10323 # though, which does catch some bad symbols but isn't as heavy-handed
10325 no_undefined_flag='${wl}-z,text'
10326 allow_undefined_flag='${wl}-z,nodefs'
10327 archive_cmds_need_lc=no
10328 hardcode_shlibpath_var=no
10329 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10330 hardcode_libdir_separator=':'
10331 link_all_deplibs=yes
10332 export_dynamic_flag_spec='${wl}-Bexport'
10333 runpath_var='LD_RUN_PATH'
10335 if test "$GCC" = yes; then
10336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_shlibpath_var=no
10355 if test x$host_vendor = xsni; then
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10358 export_dynamic_flag_spec='${wl}-Blargedynsym'
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10365 $as_echo "$ld_shlibs" >&6; }
10366 test "$ld_shlibs" = no && can_build_shared=no
10368 with_gnu_ld=$with_gnu_ld
10385 # Do we need to explicitly link libc?
10387 case "x$archive_cmds_need_lc" in
10389 # Assume -lc should be added
10390 archive_cmds_need_lc=yes
10392 if test "$enable_shared" = yes && test "$GCC" = yes; then
10393 case $archive_cmds in
10395 # FIXME: we may have to deal with multi-command sequences.
10398 # Test whether the compiler implicitly links with -lc since on some
10399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10400 # to ld, don't add -lc before -lgcc.
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10403 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10410 (eval $ac_compile) 2>&5
10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10413 test $ac_status = 0; } 2>conftest.err; then
10416 libobjs=conftest.$ac_objext
10418 wl=$lt_prog_compiler_wl
10419 pic_flag=$lt_prog_compiler_pic
10425 lt_save_allow_undefined_flag=$allow_undefined_flag
10426 allow_undefined_flag=
10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; }
10433 lt_cv_archive_cmds_need_lc=no
10435 lt_cv_archive_cmds_need_lc=yes
10437 allow_undefined_flag=$lt_save_allow_undefined_flag
10439 cat conftest.err 1>&5
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10445 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10610 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10612 if test "$GCC" = yes; then
10614 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10615 *) lt_awk_arg="/^libraries:/" ;;
10618 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10619 *) lt_sed_strip_eq="s,=/,/,g" ;;
10621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10622 case $lt_search_path_spec in
10624 # if the path contains ";" then we assume it to be the separator
10625 # otherwise default to the standard path separator (i.e. ":") - it is
10626 # assumed that no part of a normal pathname contains ";" but that should
10627 # okay in the real world where ";" in dirpaths is itself problematic.
10628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10631 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10634 # Ok, now we have the path, separated by spaces, we can step through it
10635 # and add multilib dir if necessary.
10636 lt_tmp_lt_search_path_spec=
10637 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10638 for lt_sys_path in $lt_search_path_spec; do
10639 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10642 test -d "$lt_sys_path" && \
10643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10647 BEGIN {RS=" "; FS="/|\n";} {
10650 for (lt_i = NF; lt_i > 0; lt_i--) {
10651 if ($lt_i != "" && $lt_i != ".") {
10652 if ($lt_i == "..") {
10655 if (lt_count == 0) {
10656 lt_foo="/" $lt_i lt_foo;
10663 if (lt_foo != "") { lt_freq[lt_foo]++; }
10664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10666 # AWK program above erroneously prepends '/' to C:/dos/paths
10669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10670 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10676 library_names_spec=
10677 libname_spec='lib$name'
10681 postuninstall_cmds=
10685 shlibpath_overrides_runpath=unknown
10687 dynamic_linker="$host_os ld.so"
10688 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10689 need_lib_prefix=unknown
10690 hardcode_into_libs=no
10692 # when you set need_version to no, make sure it does not cause -set_version
10693 # flags to be left without arguments
10694 need_version=unknown
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10700 shlibpath_var=LIBPATH
10702 # AIX 3 has no versioning support, so we append a major version to the name.
10703 soname_spec='${libname}${release}${shared_ext}$major'
10710 hardcode_into_libs=yes
10711 if test "$host_cpu" = ia64; then
10712 # AIX 5 supports IA64
10713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10714 shlibpath_var=LD_LIBRARY_PATH
10716 # With GCC up to 2.95.x, collect2 would create an import file
10717 # for dependence libraries. The import file would start with
10718 # the line `#! .'. This would cause the generated library to
10719 # depend on `.', always an invalid library. This was fixed in
10720 # development snapshots of GCC prior to 3.0.
10722 aix4 | aix4.[01] | aix4.[01].*)
10723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10728 can_build_shared=no
10732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10733 # soname into executable. Probably we can add versioning support to
10734 # collect2, so additional links can be useful in future.
10735 if test "$aix_use_runtimelinking" = yes; then
10736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10737 # instead of lib<name>.a to let people know that these are not
10738 # typical AIX shared libraries.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 # We preserve .a as extension for shared libraries through AIX4.2
10742 # and later when we are not doing run time linking.
10743 library_names_spec='${libname}${release}.a $libname.a'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LIBPATH
10753 # Since July 2007 AmigaOS4 officially supports .so libraries.
10754 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 library_names_spec='$libname.ixlibrary $libname.a'
10759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10760 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'
10766 library_names_spec='${libname}${shared_ext}'
10767 dynamic_linker="$host_os ld.so"
10768 shlibpath_var=LIBRARY_PATH
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10780 # the default ld.so.conf also contains /usr/contrib/lib and
10781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10782 # libtool to hard-code these into programs
10785 cygwin* | mingw* | pw32* | cegcc*)
10786 version_type=windows
10791 case $GCC,$host_os in
10792 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10793 library_names_spec='$libname.dll.a'
10794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10795 postinstall_cmds='base_file=`basename \${file}`~
10796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10797 dldir=$destdir/`dirname \$dlpath`~
10798 test -d \$dldir || mkdir -p \$dldir~
10799 $install_prog $dir/$dlname \$dldir/$dlname~
10800 chmod a+x \$dldir/$dlname~
10801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10805 dlpath=$dir/\$dldll~
10807 shlibpath_overrides_runpath=yes
10811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10817 # MinGW DLLs use traditional 'lib' prefix
10818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10821 # pw32 DLLs use 'pw' prefix rather than 'lib'
10822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10831 dynamic_linker='Win32 ld.exe'
10832 # FIXME: first we should search . and the directory the executable is in
10836 darwin* | rhapsody*)
10837 dynamic_linker="$host_os dyld"
10838 version_type=darwin
10841 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10842 soname_spec='${libname}${release}${major}$shared_ext'
10843 shlibpath_overrides_runpath=yes
10844 shlibpath_var=DYLD_LIBRARY_PATH
10845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LD_LIBRARY_PATH
10860 freebsd* | dragonfly*)
10861 # DragonFly does not have aout. When/if they implement a new
10862 # versioning mechanism, adjust this.
10863 if test -x /usr/bin/objformat; then
10864 objformat=`/usr/bin/objformat`
10867 freebsd[23].*) objformat=aout ;;
10868 *) objformat=elf ;;
10871 version_type=freebsd-$objformat
10872 case $version_type in
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10883 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10888 freebsd3.[01]* | freebsdelf3.[01]*)
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10897 *) # from 4.6 on, and DragonFly
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 hardcode_into_libs=yes
10918 dynamic_linker="$host_os runtime_loader"
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10924 hardcode_into_libs=yes
10927 hpux9* | hpux10* | hpux11*)
10928 # Give a soname corresponding to the major version so that dld.sl refuses to
10929 # link against other versions.
10936 hardcode_into_libs=yes
10937 dynamic_linker="$host_os dld.so"
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 if test "X$HPUX_IA64_MODE" = X32; then
10943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10951 hardcode_into_libs=yes
10952 dynamic_linker="$host_os dld.sl"
10953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=SHLIB_PATH
10964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10970 postinstall_cmds='chmod 555 $lib'
10971 # or fails outright, so override atomically:
10972 install_override_mode=555
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10987 irix5* | irix6* | nonstopux*)
10989 nonstopux*) version_type=nonstopux ;;
10991 if test "$lt_cv_prog_gnu_ld" = yes; then
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11002 irix5* | nonstopux*)
11003 libsuff= shlibsuff=
11006 case $LD in # libtool.m4 will add one of these switches to LD
11007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008 libsuff= shlibsuff= libmagic=32-bit;;
11009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010 libsuff=32 shlibsuff=N32 libmagic=N32;;
11011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013 *) libsuff= shlibsuff= libmagic=never-match;;
11017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018 shlibpath_overrides_runpath=no
11019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11021 hardcode_into_libs=yes
11024 # No shared lib support for Linux oldld, aout, or coff.
11025 linux*oldld* | linux*aout* | linux*coff*)
11029 # This must be Linux ELF.
11030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
11040 # Some binutils ld are patched to set DT_RUNPATH
11041 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11044 lt_cv_shlibpath_overrides_runpath=no
11045 save_LDFLAGS=$LDFLAGS
11046 save_libdir=$libdir
11047 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11062 lt_cv_shlibpath_overrides_runpath=yes
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LDFLAGS=$save_LDFLAGS
11068 libdir=$save_libdir
11072 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11074 # This implies no fast_install, which is unacceptable.
11075 # Some rework will be needed to allow for fast_install
11076 # before this can be enabled.
11077 hardcode_into_libs=yes
11079 # Append ld.so.conf contents to the search path
11080 if test -f /etc/ld.so.conf; then
11081 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' ' '`
11082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11085 # We used to test for /lib/ld.so.1 and disable shared libraries on
11086 # powerpc, because MkLinux only supported shared libraries with the
11087 # GNU dynamic linker. Since this was broken with cross compilers,
11088 # most powerpc-linux boxes support dynamic linking these days and
11089 # people can always --disable-shared, the test was removed, and we
11090 # assume the GNU/Linux dynamic linker is in use.
11091 dynamic_linker='GNU/Linux ld.so'
11098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101 dynamic_linker='NetBSD (a.out) ld.so'
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 dynamic_linker='NetBSD ld.elf_so'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 dynamic_linker='ldqnx.so'
11133 sys_lib_dlsearch_path_spec="/usr/lib"
11135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11138 *) need_version=no ;;
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11145 openbsd2.[89] | openbsd2.[89].*)
11146 shlibpath_overrides_runpath=no
11149 shlibpath_overrides_runpath=yes
11153 shlibpath_overrides_runpath=yes
11158 libname_spec='$name'
11161 library_names_spec='$libname${shared_ext} $libname.a'
11162 dynamic_linker='OS/2 ld.exe'
11163 shlibpath_var=LIBPATH
11166 osf3* | osf4* | osf5*)
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 # ldd complains unless libraries are executable
11191 postinstall_cmds='chmod +x $lib'
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 if test "$with_gnu_ld" = yes; then
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 case $host_vendor in
11213 shlibpath_overrides_runpath=no
11215 runpath_var=LD_RUN_PATH
11223 shlibpath_overrides_runpath=no
11224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11230 if test -d /usr/nec ;then
11232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11233 soname_spec='$libname${shared_ext}.$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11239 version_type=freebsd-elf
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11247 if test "$with_gnu_ld" = yes; then
11248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11250 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11257 sys_lib_dlsearch_path_spec='/usr/lib'
11261 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=no
11268 hardcode_into_libs=yes
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11283 $as_echo "$dynamic_linker" >&6; }
11284 test "$dynamic_linker" = no && can_build_shared=no
11286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11287 if test "$GCC" = yes; then
11288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11291 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11292 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11294 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11295 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11392 if test -n "$hardcode_libdir_flag_spec" ||
11393 test -n "$runpath_var" ||
11394 test "X$hardcode_automatic" = "Xyes" ; then
11396 # We can hardcode non-existent directories.
11397 if test "$hardcode_direct" != no &&
11398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11399 # have to relink, otherwise we might link with an installed library
11400 # when we should be linking with a yet-to-be-installed one
11401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11402 test "$hardcode_minus_L" != no; then
11403 # Linking always hardcodes the temporary library directory.
11404 hardcode_action=relink
11406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11407 hardcode_action=immediate
11410 # We cannot hardcode anything, or else we can only hardcode existing
11412 hardcode_action=unsupported
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11415 $as_echo "$hardcode_action" >&6; }
11417 if test "$hardcode_action" = relink ||
11418 test "$inherit_rpath" = yes; then
11419 # Fast installation is not supported
11420 enable_fast_install=no
11421 elif test "$shlibpath_overrides_runpath" = yes ||
11422 test "$enable_shared" = no; then
11423 # Fast installation is not necessary
11424 enable_fast_install=needless
11432 if test "x$enable_dlopen" != xyes; then
11433 enable_dlopen=unknown
11434 enable_dlopen_self=unknown
11435 enable_dlopen_self_static=unknown
11442 lt_cv_dlopen="load_add_on"
11444 lt_cv_dlopen_self=yes
11447 mingw* | pw32* | cegcc*)
11448 lt_cv_dlopen="LoadLibrary"
11453 lt_cv_dlopen="dlopen"
11458 # if libdl is installed we need to link against it
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11464 ac_check_lib_save_LIBS=$LIBS
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_dl_dlopen=yes
11487 ac_cv_lib_dl_dlopen=no
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11499 lt_cv_dlopen="dyld"
11501 lt_cv_dlopen_self=yes
11508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11509 if test "x$ac_cv_func_shl_load" = x""yes; then :
11510 lt_cv_dlopen="shl_load"
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11513 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11514 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_check_lib_save_LIBS=$LIBS
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11532 return shl_load ();
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_dld_shl_load=yes
11540 ac_cv_lib_dld_shl_load=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11547 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11548 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11549 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11551 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11552 if test "x$ac_cv_func_dlopen" = x""yes; then :
11553 lt_cv_dlopen="dlopen"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
11560 ac_check_lib_save_LIBS=$LIBS
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_dl_dlopen=yes
11583 ac_cv_lib_dl_dlopen=no
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11591 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11595 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11596 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lsvld $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_svld_dlopen=yes
11622 ac_cv_lib_svld_dlopen=no
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11629 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11630 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11638 ac_check_lib_save_LIBS=$LIBS
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11653 return dld_link ();
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_dld_dld_link=yes
11661 ac_cv_lib_dld_dld_link=no
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11669 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11670 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11691 if test "x$lt_cv_dlopen" != xno; then
11697 case $lt_cv_dlopen in
11699 save_CPPFLAGS="$CPPFLAGS"
11700 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11702 save_LDFLAGS="$LDFLAGS"
11703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11706 LIBS="$lt_cv_dlopen_libs $LIBS"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11709 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11710 if test "${lt_cv_dlopen_self+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11713 if test "$cross_compiling" = yes; then :
11714 lt_cv_dlopen_self=cross
11716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11717 lt_status=$lt_dlunknown
11718 cat > conftest.$ac_ext <<_LT_EOF
11719 #line 11719 "configure"
11720 #include "confdefs.h"
11729 # define LT_DLGLOBAL RTLD_GLOBAL
11732 # define LT_DLGLOBAL DL_GLOBAL
11734 # define LT_DLGLOBAL 0
11738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11739 find out it does not work in some platform. */
11740 #ifndef LT_DLLAZY_OR_NOW
11742 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11745 # define LT_DLLAZY_OR_NOW DL_LAZY
11748 # define LT_DLLAZY_OR_NOW RTLD_NOW
11751 # define LT_DLLAZY_OR_NOW DL_NOW
11753 # define LT_DLLAZY_OR_NOW 0
11760 /* When -fvisbility=hidden is used, assume the code has been annotated
11761 correspondingly for the symbols needed. */
11762 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11763 void fnord () __attribute__((visibility("default")));
11766 void fnord () { int i=42; }
11769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11770 int status = $lt_dlunknown;
11774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11778 else puts (dlerror ());
11780 /* dlclose (self); */
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11789 (eval $ac_link) 2>&5
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11793 (./conftest; exit; ) >&5 2>/dev/null
11795 case x$lt_status in
11796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11801 # compilation failed
11802 lt_cv_dlopen_self=no
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11810 $as_echo "$lt_cv_dlopen_self" >&6; }
11812 if test "x$lt_cv_dlopen_self" = xyes; then
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11815 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11816 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11819 if test "$cross_compiling" = yes; then :
11820 lt_cv_dlopen_self_static=cross
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<_LT_EOF
11825 #line 11825 "configure"
11826 #include "confdefs.h"
11835 # define LT_DLGLOBAL RTLD_GLOBAL
11838 # define LT_DLGLOBAL DL_GLOBAL
11840 # define LT_DLGLOBAL 0
11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846 #ifndef LT_DLLAZY_OR_NOW
11848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11851 # define LT_DLLAZY_OR_NOW DL_LAZY
11854 # define LT_DLLAZY_OR_NOW RTLD_NOW
11857 # define LT_DLLAZY_OR_NOW DL_NOW
11859 # define LT_DLLAZY_OR_NOW 0
11866 /* When -fvisbility=hidden is used, assume the code has been annotated
11867 correspondingly for the symbols needed. */
11868 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11869 void fnord () __attribute__((visibility("default")));
11872 void fnord () { int i=42; }
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 else puts (dlerror ());
11886 /* dlclose (self); */
11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11895 (eval $ac_link) 2>&5
11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11899 (./conftest; exit; ) >&5 2>/dev/null
11901 case x$lt_status in
11902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11907 # compilation failed
11908 lt_cv_dlopen_self_static=no
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11916 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11919 CPPFLAGS="$save_CPPFLAGS"
11920 LDFLAGS="$save_LDFLAGS"
11925 case $lt_cv_dlopen_self in
11926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11927 *) enable_dlopen_self=unknown ;;
11930 case $lt_cv_dlopen_self_static in
11931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11932 *) enable_dlopen_self_static=unknown ;;
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11955 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11956 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960 $as_echo "yes" >&6; }
11962 # FIXME - insert some real tests, host_os isn't really good enough
11965 if test -n "$STRIP" ; then
11966 striplib="$STRIP -x"
11967 old_striplib="$STRIP -S"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11993 # Report which library types will actually be built
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11995 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11997 $as_echo "$can_build_shared" >&6; }
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12000 $as_echo_n "checking whether to build shared libraries... " >&6; }
12001 test "$can_build_shared" = "no" && enable_shared=no
12003 # On AIX, shared libraries and static libraries use the same namespace, and
12004 # are all built from PIC.
12007 test "$enable_shared" = yes && enable_static=no
12008 if test -n "$RANLIB"; then
12009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12010 postinstall_cmds='$RANLIB $lib'
12015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12016 test "$enable_shared" = yes && enable_static=no
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12021 $as_echo "$enable_shared" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12024 $as_echo_n "checking whether to build static libraries... " >&6; }
12025 # Make sure either enable_shared or enable_static is yes.
12026 test "$enable_shared" = yes || enable_static=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12028 $as_echo "$enable_static" >&6; }
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12042 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12043 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12044 (test "X$CXX" != "Xg++"))) ; then
12046 ac_cpp='$CXXCPP $CPPFLAGS'
12047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12051 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12052 if test -z "$CXXCPP"; then
12053 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12056 # Double quotes because CXXCPP needs to be expanded
12057 for CXXCPP in "$CXX -E" "/lib/cpp"
12059 ac_preproc_ok=false
12060 for ac_cxx_preproc_warn_flag in '' yes
12062 # Use a header file that comes with gcc, so configuring glibc
12063 # with a fresh cross-compiler works.
12064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 # <limits.h> exists even on freestanding compilers.
12066 # On the NeXT, cc -E runs the code through the compiler's parser,
12067 # not just through cpp. "Syntax error" is here to catch this case.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12071 # include <limits.h>
12073 # include <assert.h>
12077 if ac_fn_cxx_try_cpp "$LINENO"; then :
12080 # Broken: fails on valid input.
12083 rm -f conftest.err conftest.$ac_ext
12085 # OK, works on sane cases. Now check whether nonexistent headers
12086 # can be detected and how.
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 #include <ac_nonexistent.h>
12091 if ac_fn_cxx_try_cpp "$LINENO"; then :
12092 # Broken: success on invalid input.
12095 # Passes both tests.
12099 rm -f conftest.err conftest.$ac_ext
12102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12103 rm -f conftest.err conftest.$ac_ext
12104 if $ac_preproc_ok; then :
12109 ac_cv_prog_CXXCPP=$CXXCPP
12112 CXXCPP=$ac_cv_prog_CXXCPP
12114 ac_cv_prog_CXXCPP=$CXXCPP
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12117 $as_echo "$CXXCPP" >&6; }
12118 ac_preproc_ok=false
12119 for ac_cxx_preproc_warn_flag in '' yes
12121 # Use a header file that comes with gcc, so configuring glibc
12122 # with a fresh cross-compiler works.
12123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12124 # <limits.h> exists even on freestanding compilers.
12125 # On the NeXT, cc -E runs the code through the compiler's parser,
12126 # not just through cpp. "Syntax error" is here to catch this case.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12130 # include <limits.h>
12132 # include <assert.h>
12136 if ac_fn_cxx_try_cpp "$LINENO"; then :
12139 # Broken: fails on valid input.
12142 rm -f conftest.err conftest.$ac_ext
12144 # OK, works on sane cases. Now check whether nonexistent headers
12145 # can be detected and how.
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #include <ac_nonexistent.h>
12150 if ac_fn_cxx_try_cpp "$LINENO"; then :
12151 # Broken: success on invalid input.
12154 # Passes both tests.
12158 rm -f conftest.err conftest.$ac_ext
12161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12162 rm -f conftest.err conftest.$ac_ext
12163 if $ac_preproc_ok; then :
12166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12168 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12169 See \`config.log' for more details." "$LINENO" 5; }
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179 _lt_caught_CXX_error=yes
12183 ac_cpp='$CXXCPP $CPPFLAGS'
12184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188 archive_cmds_need_lc_CXX=no
12189 allow_undefined_flag_CXX=
12190 always_export_symbols_CXX=no
12191 archive_expsym_cmds_CXX=
12192 compiler_needs_object_CXX=no
12193 export_dynamic_flag_spec_CXX=
12194 hardcode_direct_CXX=no
12195 hardcode_direct_absolute_CXX=no
12196 hardcode_libdir_flag_spec_CXX=
12197 hardcode_libdir_flag_spec_ld_CXX=
12198 hardcode_libdir_separator_CXX=
12199 hardcode_minus_L_CXX=no
12200 hardcode_shlibpath_var_CXX=unsupported
12201 hardcode_automatic_CXX=no
12202 inherit_rpath_CXX=no
12204 module_expsym_cmds_CXX=
12205 link_all_deplibs_CXX=unknown
12206 old_archive_cmds_CXX=$old_archive_cmds
12207 reload_flag_CXX=$reload_flag
12208 reload_cmds_CXX=$reload_cmds
12209 no_undefined_flag_CXX=
12210 whole_archive_flag_spec_CXX=
12211 enable_shared_with_static_runtimes_CXX=no
12213 # Source file extension for C++ test sources.
12216 # Object file extension for compiled C++ test sources.
12220 # No sense in running all these tests if we already determined that
12221 # the CXX compiler isn't working. Some variables (like enable_shared)
12222 # are currently assumed to apply to all compilers on this platform,
12223 # and will be corrupted by setting them based on a non-working compiler.
12224 if test "$_lt_caught_CXX_error" != yes; then
12225 # Code to be used in simple compile tests
12226 lt_simple_compile_test_code="int some_variable = 0;"
12228 # Code to be used in simple link tests
12229 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12238 # If no C compiler was specified, use CC.
12241 # If no C compiler flags were specified, use CFLAGS.
12242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12244 # Allow CC to be a program name with arguments.
12248 # save warnings/boilerplate of simple test code
12249 ac_outfile=conftest.$ac_objext
12250 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12251 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12252 _lt_compiler_boilerplate=`cat conftest.err`
12255 ac_outfile=conftest.$ac_objext
12256 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12257 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12258 _lt_linker_boilerplate=`cat conftest.err`
12262 # Allow CC to be a program name with arguments.
12267 lt_save_with_gnu_ld=$with_gnu_ld
12268 lt_save_path_LD=$lt_cv_path_LD
12269 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12270 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12272 $as_unset lt_cv_prog_gnu_ld
12274 if test -n "${lt_cv_path_LDCXX+set}"; then
12275 lt_cv_path_LD=$lt_cv_path_LDCXX
12277 $as_unset lt_cv_path_LD
12279 test -z "${LDCXX+set}" || LD=$LDCXX
12283 for cc_temp in $compiler""; do
12285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12291 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12294 if test -n "$compiler"; then
12295 # We don't want -fno-exception when compiling C++ code, so set the
12296 # no_builtin_flag separately
12297 if test "$GXX" = yes; then
12298 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12300 lt_prog_compiler_no_builtin_flag_CXX=
12303 if test "$GXX" = yes; then
12304 # Set up default GNU C++ configuration
12308 # Check whether --with-gnu-ld was given.
12309 if test "${with_gnu_ld+set}" = set; then :
12310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12316 if test "$GCC" = yes; then
12317 # Check if gcc -print-prog-name=ld gives a path.
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12319 $as_echo_n "checking for ld used by $CC... " >&6; }
12322 # gcc leaves a trailing carriage return which upsets mingw
12323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12328 # Accept absolute paths.
12330 re_direlt='/[^/][^/]*/\.\./'
12331 # Canonicalize the pathname of ld
12332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12334 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12336 test -z "$LD" && LD="$ac_prog"
12339 # If it fails, then pretend we aren't using GCC.
12343 # If it is relative, then search for the first ld in PATH.
12344 with_gnu_ld=unknown
12347 elif test "$with_gnu_ld" = yes; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12349 $as_echo_n "checking for GNU ld... " >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12352 $as_echo_n "checking for non-GNU ld... " >&6; }
12354 if test "${lt_cv_path_LD+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12357 if test -z "$LD"; then
12358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12359 for ac_dir in $PATH; do
12361 test -z "$ac_dir" && ac_dir=.
12362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12363 lt_cv_path_LD="$ac_dir/$ac_prog"
12364 # Check to see if the program is GNU ld. I'd rather use --version,
12365 # but apparently some variants of GNU ld only accept -v.
12366 # Break only if it was the GNU/non-GNU ld that we prefer.
12367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12368 *GNU* | *'with BFD'*)
12369 test "$with_gnu_ld" != no && break
12372 test "$with_gnu_ld" != yes && break
12379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12383 LD="$lt_cv_path_LD"
12384 if test -n "$LD"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12386 $as_echo "$LD" >&6; }
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12391 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12393 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12394 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12398 case `$LD -v 2>&1 </dev/null` in
12399 *GNU* | *'with BFD'*)
12400 lt_cv_prog_gnu_ld=yes
12403 lt_cv_prog_gnu_ld=no
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12408 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12409 with_gnu_ld=$lt_cv_prog_gnu_ld
12417 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12418 # archiving commands below assume that GNU ld is being used.
12419 if test "$with_gnu_ld" = yes; then
12420 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 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'
12423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12426 # If archive_cmds runs LD, not CC, wlarc should be empty
12427 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12428 # investigate it a little bit more. (MM)
12431 # ancient GNU ld didn't support --whole-archive et. al.
12432 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12433 $GREP 'no-whole-archive' > /dev/null; then
12434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12436 whole_archive_flag_spec_CXX=
12442 # A generic and very simple default shared library creation
12443 # command for GNU C++ for the case where it uses the native
12444 # linker, instead of GNU ld. If possible, this setting should
12445 # overridden to take advantage of the native linker features on
12446 # the platform it is being used on.
12447 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12450 # Commands to make compiler produce verbose output that lists
12451 # what "hidden" libraries, object files and flags are used when
12452 # linking a shared library.
12453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12461 # PORTME: fill in a description of your system's C++ link characteristics
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12467 # FIXME: insert proper C++ library support
12471 if test "$host_cpu" = ia64; then
12472 # On IA64, the linker does run time linking by default, so we don't
12473 # have to do anything special.
12474 aix_use_runtimelinking=no
12475 exp_sym_flag='-Bexport'
12478 aix_use_runtimelinking=no
12480 # Test if we are trying to use run time linking or normal
12481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12482 # need to do runtime linking.
12483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12484 for ld_flag in $LDFLAGS; do
12487 aix_use_runtimelinking=yes
12495 exp_sym_flag='-bexport'
12496 no_entry_flag='-bnoentry'
12499 # When large executables or shared objects are built, AIX ld can
12500 # have problems creating the table of contents. If linking a library
12501 # or program results in "error TOC overflow" add -mminimal-toc to
12502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12505 archive_cmds_CXX=''
12506 hardcode_direct_CXX=yes
12507 hardcode_direct_absolute_CXX=yes
12508 hardcode_libdir_separator_CXX=':'
12509 link_all_deplibs_CXX=yes
12510 file_list_spec_CXX='${wl}-f,'
12512 if test "$GXX" = yes; then
12513 case $host_os in aix4.[012]|aix4.[012].*)
12514 # We only want to do this on AIX 4.2 and lower, the check
12515 # below for broken collect2 doesn't work under 4.3+
12516 collect2name=`${CC} -print-prog-name=collect2`
12517 if test -f "$collect2name" &&
12518 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12520 # We have reworked collect2
12523 # We have old collect2
12524 hardcode_direct_CXX=unsupported
12525 # It fails to find uninstalled libraries when the uninstalled
12526 # path is not listed in the libpath. Setting hardcode_minus_L
12527 # to unsupported forces relinking
12528 hardcode_minus_L_CXX=yes
12529 hardcode_libdir_flag_spec_CXX='-L$libdir'
12530 hardcode_libdir_separator_CXX=
12533 shared_flag='-shared'
12534 if test "$aix_use_runtimelinking" = yes; then
12535 shared_flag="$shared_flag "'${wl}-G'
12539 if test "$host_cpu" = ia64; then
12540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12541 # chokes on -Wl,-G. The following line is correct:
12544 if test "$aix_use_runtimelinking" = yes; then
12545 shared_flag='${wl}-G'
12547 shared_flag='${wl}-bM:SRE'
12552 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12553 # It seems that -bexpall does not export symbols beginning with
12554 # underscore (_), so it is better to generate a list of symbols to
12556 always_export_symbols_CXX=yes
12557 if test "$aix_use_runtimelinking" = yes; then
12558 # Warning - without using the other runtime loading flags (-brtl),
12559 # -berok will link without error, but may produce a broken library.
12560 allow_undefined_flag_CXX='-berok'
12561 # Determine the default libpath from the value encoded in an empty
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12574 if ac_fn_cxx_try_link "$LINENO"; then :
12576 lt_aix_libpath_sed='
12577 /Import File Strings/,/^$/ {
12583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12584 # Check for a 64-bit object if we didn't find anything.
12585 if test -z "$aix_libpath"; then
12586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12593 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12595 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"
12597 if test "$host_cpu" = ia64; then
12598 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12599 allow_undefined_flag_CXX="-z nodefs"
12600 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"
12602 # Determine the default libpath from the value encoded in an
12603 # empty executable.
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12615 if ac_fn_cxx_try_link "$LINENO"; then :
12617 lt_aix_libpath_sed='
12618 /Import File Strings/,/^$/ {
12624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12625 # Check for a 64-bit object if we didn't find anything.
12626 if test -z "$aix_libpath"; then
12627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12635 # Warning - without using the other run time loading flags,
12636 # -berok will link without error, but may produce a broken library.
12637 no_undefined_flag_CXX=' ${wl}-bernotok'
12638 allow_undefined_flag_CXX=' ${wl}-berok'
12639 if test "$with_gnu_ld" = yes; then
12640 # We only use this code for GNU lds that support --whole-archive.
12641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12643 # Exported symbols can be pulled into shared objects from archives
12644 whole_archive_flag_spec_CXX='$convenience'
12646 archive_cmds_need_lc_CXX=yes
12647 # This is similar to how AIX traditionally builds its shared
12649 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'
12655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12656 allow_undefined_flag_CXX=unsupported
12657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12658 # support --undefined. This deserves some investigation. FIXME
12659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12666 case $cc_basename in
12668 # FIXME: insert proper C++ library support
12674 cygwin* | mingw* | pw32* | cegcc*)
12675 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12676 # as there is no search path for DLLs.
12677 hardcode_libdir_flag_spec_CXX='-L$libdir'
12678 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12679 allow_undefined_flag_CXX=unsupported
12680 always_export_symbols_CXX=no
12681 enable_shared_with_static_runtimes_CXX=yes
12683 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12684 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'
12685 # If the export-symbols file already is a .def file (1st line
12686 # is EXPORTS), use it as is; otherwise, prepend...
12687 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12688 cp $export_symbols $output_objdir/$soname.def;
12690 echo EXPORTS > $output_objdir/$soname.def;
12691 cat $export_symbols >> $output_objdir/$soname.def;
12693 $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'
12698 darwin* | rhapsody*)
12701 archive_cmds_need_lc_CXX=no
12702 hardcode_direct_CXX=no
12703 hardcode_automatic_CXX=yes
12704 hardcode_shlibpath_var_CXX=unsupported
12705 if test "$lt_cv_ld_force_load" = "yes"; then
12706 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\"`'
12708 whole_archive_flag_spec_CXX=''
12710 link_all_deplibs_CXX=yes
12711 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12712 case $cc_basename in
12713 ifort*) _lt_dar_can_shared=yes ;;
12714 *) _lt_dar_can_shared=$GCC ;;
12716 if test "$_lt_dar_can_shared" = "yes"; then
12717 output_verbose_link_cmd=func_echo_all
12718 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}"
12719 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12720 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}"
12721 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}"
12722 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12723 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}"
12724 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}"
12734 case $cc_basename in
12736 # FIXME: insert proper C++ library support
12740 # Green Hills C++ Compiler
12741 # FIXME: insert proper C++ library support
12745 # FIXME: insert proper C++ library support
12752 # C++ shared libraries reported to be fairly broken before
12758 archive_cmds_need_lc_CXX=no
12761 freebsd* | dragonfly*)
12762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12771 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772 link_all_deplibs_CXX=yes
12776 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator_CXX=:
12778 export_dynamic_flag_spec_CXX='${wl}-E'
12779 hardcode_direct_CXX=yes
12780 hardcode_minus_L_CXX=yes # Not in the search PATH,
12781 # but as the default
12782 # location of the library.
12784 case $cc_basename in
12786 # FIXME: insert proper C++ library support
12790 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'
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12795 # There doesn't appear to be a way to prevent this compiler from
12796 # explicitly linking system object files so we need to strip them
12797 # from the output so that they don't get included in the library
12799 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"'
12802 if test "$GXX" = yes; then
12803 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'
12805 # FIXME: insert proper C++ library support
12813 if test $with_gnu_ld = no; then
12814 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_separator_CXX=:
12821 export_dynamic_flag_spec_CXX='${wl}-E'
12827 hardcode_direct_CXX=no
12828 hardcode_shlibpath_var_CXX=no
12831 hardcode_direct_CXX=yes
12832 hardcode_direct_absolute_CXX=yes
12833 hardcode_minus_L_CXX=yes # Not in the search PATH,
12834 # but as the default
12835 # location of the library.
12839 case $cc_basename in
12841 # FIXME: insert proper C++ library support
12847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12856 # Commands to make compiler produce verbose output that lists
12857 # what "hidden" libraries, object files and flags are used when
12858 # linking a shared library.
12860 # There doesn't appear to be a way to prevent this compiler from
12861 # explicitly linking system object files so we need to strip them
12862 # from the output so that they don't get included in the library
12864 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"'
12867 if test "$GXX" = yes; then
12868 if test $with_gnu_ld = no; then
12871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877 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'
12882 # FIXME: insert proper C++ library support
12890 hardcode_direct_CXX=no
12891 hardcode_shlibpath_var_CXX=no
12892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}-E'
12894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12895 # Instead, shared libraries are loaded at an image base (0x10000000 by
12896 # default) and relocated if they conflict, which is a slow very memory
12897 # consuming and fragmenting process. To avoid this, we pick a random,
12898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12900 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'
12901 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'
12904 case $cc_basename in
12907 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'
12909 # Archives containing C++ object files must be created using
12910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12911 # necessary to make sure instantiated templates are included
12913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12916 if test "$GXX" = yes; then
12917 if test "$with_gnu_ld" = no; then
12918 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'
12920 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'
12923 link_all_deplibs_CXX=yes
12926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator_CXX=:
12928 inherit_rpath_CXX=yes
12931 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12932 case $cc_basename in
12934 # Kuck and Associates, Inc. (KAI) C++ Compiler
12936 # KCC will only create a shared library if the output file
12937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12938 # to its proper name (with version) after linking.
12939 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'
12940 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'
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12945 # There doesn't appear to be a way to prevent this compiler from
12946 # explicitly linking system object files so we need to strip them
12947 # from the output so that they don't get included in the library
12949 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"'
12951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12954 # Archives containing C++ object files must be created using
12955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12956 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12961 # version 8.0 and above of icpc choke on multiply defined symbols
12962 # if we add $predep_objects and $postdep_objects, however 7.1 and
12963 # earlier do not add the objects themselves.
12964 case `$CC -V 2>&1` in
12966 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967 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'
12969 *) # Version 8.0 or newer
12972 ia64*) tmp_idyn=' -i_dynamic';;
12974 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 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'
12978 archive_cmds_need_lc_CXX=no
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12981 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12984 # Portland Group C++ compiler
12986 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12987 prelink_cmds_CXX='tpldir=Template.dir~
12989 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12990 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12991 old_archive_cmds_CXX='tpldir=Template.dir~
12993 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12994 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12996 archive_cmds_CXX='tpldir=Template.dir~
12998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13000 archive_expsym_cmds_CXX='tpldir=Template.dir~
13002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003 $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'
13005 *) # Version 6 and above use weak symbols
13006 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007 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'
13011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13013 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'
13017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13018 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'
13020 runpath_var=LD_RUN_PATH
13021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13022 hardcode_libdir_separator_CXX=:
13024 # Commands to make compiler produce verbose output that lists
13025 # what "hidden" libraries, object files and flags are used when
13026 # linking a shared library.
13028 # There doesn't appear to be a way to prevent this compiler from
13029 # explicitly linking system object files so we need to strip them
13030 # from the output so that they don't get included in the library
13032 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'
13034 xl* | mpixl* | bgxl*)
13035 # IBM XL 8.0 on PPC, with GNU ld
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 if test "x$supports_anon_versioning" = xyes; then
13040 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13042 echo "local: *; };" >> $output_objdir/$libname.ver~
13043 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13047 case `$CC -V 2>&1 | sed 5q` in
13050 no_undefined_flag_CXX=' -zdefs'
13051 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13052 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'
13053 hardcode_libdir_flag_spec_CXX='-R$libdir'
13054 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'
13055 compiler_needs_object_CXX=yes
13057 # Not sure whether something based on
13058 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13060 output_verbose_link_cmd='func_echo_all'
13062 # Archives containing C++ object files must be created using
13063 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13064 # necessary to make sure instantiated templates are included
13066 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13074 # FIXME: insert proper C++ library support
13079 # FIXME: insert proper C++ library support
13084 case $cc_basename in
13086 # FIXME: insert proper C++ library support
13090 # FIXME: insert proper C++ library support
13097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13098 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13100 hardcode_libdir_flag_spec_CXX='-R$libdir'
13101 hardcode_direct_CXX=yes
13102 hardcode_shlibpath_var_CXX=no
13104 # Workaround some broken pre-1.5 toolchains
13105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13113 # C++ shared libraries are fairly broken
13118 if test -f /usr/libexec/ld.so; then
13119 hardcode_direct_CXX=yes
13120 hardcode_shlibpath_var_CXX=no
13121 hardcode_direct_absolute_CXX=yes
13122 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13125 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13126 export_dynamic_flag_spec_CXX='${wl}-E'
13127 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13129 output_verbose_link_cmd=func_echo_all
13135 osf3* | osf4* | osf5*)
13136 case $cc_basename in
13138 # Kuck and Associates, Inc. (KAI) C++ Compiler
13140 # KCC will only create a shared library if the output file
13141 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13142 # to its proper name (with version) after linking.
13143 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'
13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13146 hardcode_libdir_separator_CXX=:
13148 # Archives containing C++ object files must be created using
13149 # the KAI C++ compiler.
13151 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13152 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13156 # Rational C++ 2.4.1
13157 # FIXME: insert proper C++ library support
13163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13164 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'
13165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13168 allow_undefined_flag_CXX=' -expect_unresolved \*'
13169 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'
13170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13171 echo "-hidden">> $lib.exp~
13172 $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~
13174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13178 hardcode_libdir_separator_CXX=:
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13188 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"'
13191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13195 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'
13198 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'
13202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13203 hardcode_libdir_separator_CXX=:
13205 # Commands to make compiler produce verbose output that lists
13206 # what "hidden" libraries, object files and flags are used when
13207 # linking a shared library.
13208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13211 # FIXME: insert proper C++ library support
13219 # FIXME: insert proper C++ library support
13224 case $cc_basename in
13227 # FIXME: insert proper C++ library support
13232 # FIXME: insert proper C++ library support
13236 # FIXME: insert proper C++ library support
13243 case $cc_basename in
13245 # Sun C++ 4.2, 5.x and Centerline C++
13246 archive_cmds_need_lc_CXX=yes
13247 no_undefined_flag_CXX=' -zdefs'
13248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13250 $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'
13252 hardcode_libdir_flag_spec_CXX='-R$libdir'
13253 hardcode_shlibpath_var_CXX=no
13255 solaris2.[0-5] | solaris2.[0-5].*) ;;
13257 # The compiler driver will combine and reorder linker options,
13258 # but understands `-z linker_flag'.
13259 # Supported since Solaris 2.6 (maybe 2.5.1?)
13260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13263 link_all_deplibs_CXX=yes
13265 output_verbose_link_cmd='func_echo_all'
13267 # Archives containing C++ object files must be created using
13268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13269 # necessary to make sure instantiated templates are included
13271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13274 # Green Hills C++ Compiler
13275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13277 # The C++ compiler must be used to create the archive.
13278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13281 # GNU C++ compiler with Solaris linker
13282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13284 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13286 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13289 # Commands to make compiler produce verbose output that lists
13290 # what "hidden" libraries, object files and flags are used when
13291 # linking a shared library.
13292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13297 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13300 # Commands to make compiler produce verbose output that lists
13301 # what "hidden" libraries, object files and flags are used when
13302 # linking a shared library.
13303 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13308 solaris2.[0-5] | solaris2.[0-5].*) ;;
13310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13319 no_undefined_flag_CXX='${wl}-z,text'
13320 archive_cmds_need_lc_CXX=no
13321 hardcode_shlibpath_var_CXX=no
13322 runpath_var='LD_RUN_PATH'
13324 case $cc_basename in
13326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 sysv5* | sco3.2v5* | sco5v6*)
13337 # Note: We can NOT use -z defs as we might desire, because we do not
13338 # link with -lc, and that would cause any symbols used from libc to
13339 # always be unresolved, which means just about no library would
13340 # ever link correctly. If we're not using GNU ld we use -z text
13341 # though, which does catch some bad symbols but isn't as heavy-handed
13343 no_undefined_flag_CXX='${wl}-z,text'
13344 allow_undefined_flag_CXX='${wl}-z,nodefs'
13345 archive_cmds_need_lc_CXX=no
13346 hardcode_shlibpath_var_CXX=no
13347 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13348 hardcode_libdir_separator_CXX=':'
13349 link_all_deplibs_CXX=yes
13350 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13351 runpath_var='LD_RUN_PATH'
13353 case $cc_basename in
13355 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13358 '"$old_archive_cmds_CXX"
13359 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13360 '"$reload_cmds_CXX"
13363 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13370 case $cc_basename in
13372 # NonStop-UX NCC 3.20
13373 # FIXME: insert proper C++ library support
13377 # FIXME: insert proper C++ library support
13384 # FIXME: insert proper C++ library support
13389 # FIXME: insert proper C++ library support
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13395 $as_echo "$ld_shlibs_CXX" >&6; }
13396 test "$ld_shlibs_CXX" = no && can_build_shared=no
13402 ## There is no encapsulation within the following macros, do not change
13403 ## the running order or otherwise move them around unless you know exactly
13404 ## what you are doing...
13405 # Dependencies to place before and after the object being linked:
13406 predep_objects_CXX=
13407 postdep_objects_CXX=
13410 compiler_lib_search_path_CXX=
13412 cat > conftest.$ac_ext <<_LT_EOF
13416 Foo (void) { a = 0; }
13422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13423 (eval $ac_compile) 2>&5
13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426 test $ac_status = 0; }; then
13427 # Parse the compiler output and extract the necessary
13428 # objects, libraries and library flags.
13430 # Sentinel used to keep track of whether or not we are before
13431 # the conftest object file.
13432 pre_test_object_deps_done=no
13434 for p in `eval "$output_verbose_link_cmd"`; do
13438 # Some compilers place space between "-{L,R}" and the path.
13439 # Remove the space.
13440 if test $p = "-L" ||
13441 test $p = "-R"; then
13448 if test "$pre_test_object_deps_done" = no; then
13451 # Internal compiler library paths should come after those
13452 # provided the user. The postdeps already come after the
13453 # user supplied libs so there is no need to process them.
13454 if test -z "$compiler_lib_search_path_CXX"; then
13455 compiler_lib_search_path_CXX="${prev}${p}"
13457 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13460 # The "-l" case would never come before the object being
13461 # linked, so don't bother handling this case.
13464 if test -z "$postdeps_CXX"; then
13465 postdeps_CXX="${prev}${p}"
13467 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13473 # This assumes that the test object file only shows up
13474 # once in the compiler output.
13475 if test "$p" = "conftest.$objext"; then
13476 pre_test_object_deps_done=yes
13480 if test "$pre_test_object_deps_done" = no; then
13481 if test -z "$predep_objects_CXX"; then
13482 predep_objects_CXX="$p"
13484 predep_objects_CXX="$predep_objects_CXX $p"
13487 if test -z "$postdep_objects_CXX"; then
13488 postdep_objects_CXX="$p"
13490 postdep_objects_CXX="$postdep_objects_CXX $p"
13495 *) ;; # Ignore the rest.
13503 echo "libtool.m4: error: problem compiling CXX test program"
13506 $RM -f confest.$objext
13508 # PORTME: override above test on systems where it is broken
13511 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13512 # hack all around it, let's just trust "g++" to DTRT.
13513 predep_objects_CXX=
13514 postdep_objects_CXX=
13519 case `$CC -V 2>&1 | sed 5q` in
13523 # The more standards-conforming stlport4 library is
13524 # incompatible with the Cstd library. Avoid specifying
13525 # it if it's in CXXFLAGS. Ignore libCrun as
13526 # -library=stlport4 depends on it.
13527 case " $CXX $CXXFLAGS " in
13528 *" -library=stlport4 "*)
13529 solaris_use_stlport4=yes
13533 if test "$solaris_use_stlport4" != yes; then
13534 postdeps_CXX='-library=Cstd -library=Crun'
13541 case $cc_basename in
13543 # The more standards-conforming stlport4 library is
13544 # incompatible with the Cstd library. Avoid specifying
13545 # it if it's in CXXFLAGS. Ignore libCrun as
13546 # -library=stlport4 depends on it.
13547 case " $CXX $CXXFLAGS " in
13548 *" -library=stlport4 "*)
13549 solaris_use_stlport4=yes
13553 # Adding this requires a known-good setup of shared libraries for
13554 # Sun compiler versions before 5.6, else PIC objects from an old
13555 # archive will be linked into the output, leading to subtle bugs.
13556 if test "$solaris_use_stlport4" != yes; then
13557 postdeps_CXX='-library=Cstd -library=Crun'
13565 case " $postdeps_CXX " in
13566 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13568 compiler_lib_search_dirs_CXX=
13569 if test -n "${compiler_lib_search_path_CXX}"; then
13570 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13603 lt_prog_compiler_wl_CXX=
13604 lt_prog_compiler_pic_CXX=
13605 lt_prog_compiler_static_CXX=
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13608 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13610 # C++ specific cases for pic, static, wl, etc.
13611 if test "$GXX" = yes; then
13612 lt_prog_compiler_wl_CXX='-Wl,'
13613 lt_prog_compiler_static_CXX='-static'
13617 # All AIX code is PIC.
13618 if test "$host_cpu" = ia64; then
13619 # AIX 5 now supports IA64 processor
13620 lt_prog_compiler_static_CXX='-Bstatic'
13622 lt_prog_compiler_pic_CXX='-fPIC'
13628 # see comment about AmigaOS4 .so support
13629 lt_prog_compiler_pic_CXX='-fPIC'
13632 # FIXME: we need at least 68020 code to build shared libraries, but
13633 # adding the `-m68020' flag to GCC prevents building anything better,
13635 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13640 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13641 # PIC is the default for these OSes.
13643 mingw* | cygwin* | os2* | pw32* | cegcc*)
13644 # This hack is so that the source file can tell whether it is being
13645 # built for inclusion in a dll (and should export symbols for example).
13646 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13647 # (--disable-auto-import) libraries
13648 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13650 darwin* | rhapsody*)
13651 # PIC is the default on this platform
13652 # Common symbols not allowed in MH_DYLIB files
13653 lt_prog_compiler_pic_CXX='-fno-common'
13656 # DJGPP does not support shared libraries at all
13657 lt_prog_compiler_pic_CXX=
13660 # PIC is the default for Haiku.
13661 # The "-static" flag exists, but is broken.
13662 lt_prog_compiler_static_CXX=
13665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13666 # Instead, we relocate shared libraries at runtime.
13669 if test -d /usr/nec; then
13670 lt_prog_compiler_pic_CXX=-Kconform_pic
13674 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13675 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13676 # sets the default TLS model and affects inlining.
13681 lt_prog_compiler_pic_CXX='-fPIC'
13686 # QNX uses GNU C++, but need to define -shared option too, otherwise
13687 # it will coredump.
13688 lt_prog_compiler_pic_CXX='-fPIC -shared'
13691 lt_prog_compiler_pic_CXX='-fPIC'
13697 # All AIX code is PIC.
13698 if test "$host_cpu" = ia64; then
13699 # AIX 5 now supports IA64 processor
13700 lt_prog_compiler_static_CXX='-Bstatic'
13702 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13706 case $cc_basename in
13708 # Green Hills C++ Compiler
13709 # _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"
13714 case $cc_basename in
13716 lt_prog_compiler_pic_CXX='-KPIC'
13719 # Green Hills C++ Compiler
13720 lt_prog_compiler_pic_CXX='-pic'
13726 freebsd* | dragonfly*)
13727 # FreeBSD uses GNU C++
13729 hpux9* | hpux10* | hpux11*)
13730 case $cc_basename in
13732 lt_prog_compiler_wl_CXX='-Wl,'
13733 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13734 if test "$host_cpu" != ia64; then
13735 lt_prog_compiler_pic_CXX='+Z'
13739 lt_prog_compiler_wl_CXX='-Wl,'
13740 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13746 lt_prog_compiler_pic_CXX='+Z'
13755 # This is c89, which is MS Visual C++ (no shared libs)
13756 # Anyone wants to do a port?
13758 irix5* | irix6* | nonstopux*)
13759 case $cc_basename in
13761 lt_prog_compiler_wl_CXX='-Wl,'
13762 lt_prog_compiler_static_CXX='-non_shared'
13763 # CC pic flag -KPIC is the default.
13769 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13770 case $cc_basename in
13773 lt_prog_compiler_wl_CXX='--backend -Wl,'
13774 lt_prog_compiler_pic_CXX='-fPIC'
13777 # old Intel C++ for x86_64 which still supported -KPIC.
13778 lt_prog_compiler_wl_CXX='-Wl,'
13779 lt_prog_compiler_pic_CXX='-KPIC'
13780 lt_prog_compiler_static_CXX='-static'
13783 # Intel C++, used to be incompatible with GCC.
13784 # ICC 10 doesn't accept -KPIC any more.
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_pic_CXX='-fPIC'
13787 lt_prog_compiler_static_CXX='-static'
13790 # Portland Group C++ compiler
13791 lt_prog_compiler_wl_CXX='-Wl,'
13792 lt_prog_compiler_pic_CXX='-fpic'
13793 lt_prog_compiler_static_CXX='-Bstatic'
13797 # Make sure the PIC flag is empty. It appears that all Alpha
13798 # Linux and Compaq Tru64 Unix objects are PIC.
13799 lt_prog_compiler_pic_CXX=
13800 lt_prog_compiler_static_CXX='-non_shared'
13802 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13803 # IBM XL 8.0, 9.0 on PPC and BlueGene
13804 lt_prog_compiler_wl_CXX='-Wl,'
13805 lt_prog_compiler_pic_CXX='-qpic'
13806 lt_prog_compiler_static_CXX='-qstaticlink'
13809 case `$CC -V 2>&1 | sed 5q` in
13812 lt_prog_compiler_pic_CXX='-KPIC'
13813 lt_prog_compiler_static_CXX='-Bstatic'
13814 lt_prog_compiler_wl_CXX='-Qoption ld '
13825 case $cc_basename in
13827 lt_prog_compiler_pic_CXX='-W c,exportall'
13836 # QNX uses GNU C++, but need to define -shared option too, otherwise
13837 # it will coredump.
13838 lt_prog_compiler_pic_CXX='-fPIC -shared'
13840 osf3* | osf4* | osf5*)
13841 case $cc_basename in
13843 lt_prog_compiler_wl_CXX='--backend -Wl,'
13846 # Rational C++ 2.4.1
13847 lt_prog_compiler_pic_CXX='-pic'
13850 # Digital/Compaq C++
13851 lt_prog_compiler_wl_CXX='-Wl,'
13852 # Make sure the PIC flag is empty. It appears that all Alpha
13853 # Linux and Compaq Tru64 Unix objects are PIC.
13854 lt_prog_compiler_pic_CXX=
13855 lt_prog_compiler_static_CXX='-non_shared'
13864 case $cc_basename in
13866 # Sun C++ 4.2, 5.x and Centerline C++
13867 lt_prog_compiler_pic_CXX='-KPIC'
13868 lt_prog_compiler_static_CXX='-Bstatic'
13869 lt_prog_compiler_wl_CXX='-Qoption ld '
13872 # Green Hills C++ Compiler
13873 lt_prog_compiler_pic_CXX='-PIC'
13880 case $cc_basename in
13883 lt_prog_compiler_pic_CXX='-pic'
13884 lt_prog_compiler_static_CXX='-Bstatic'
13888 lt_prog_compiler_pic_CXX='-pic'
13894 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13895 case $cc_basename in
13897 lt_prog_compiler_wl_CXX='-Wl,'
13898 lt_prog_compiler_pic_CXX='-KPIC'
13899 lt_prog_compiler_static_CXX='-Bstatic'
13904 case $cc_basename in
13906 # NonStop-UX NCC 3.20
13907 lt_prog_compiler_pic_CXX='-KPIC'
13916 lt_prog_compiler_can_build_shared_CXX=no
13922 # For platforms which do not support PIC, -DPIC is meaningless:
13924 lt_prog_compiler_pic_CXX=
13927 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13931 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13936 # Check to make sure the PIC flag actually works.
13938 if test -n "$lt_prog_compiler_pic_CXX"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13940 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13941 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13944 lt_cv_prog_compiler_pic_works_CXX=no
13945 ac_outfile=conftest.$ac_objext
13946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13947 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13948 # Insert the option either (1) after the last *FLAGS variable, or
13949 # (2) before a word containing "conftest.", or (3) at the end.
13950 # Note that $ac_compile itself does not contain backslashes and begins
13951 # with a dollar sign (not a hyphen), so the echo should work correctly.
13952 # The option is referenced via a variable to avoid confusing sed.
13953 lt_compile=`echo "$ac_compile" | $SED \
13954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13956 -e 's:$: $lt_compiler_flag:'`
13957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13958 (eval "$lt_compile" 2>conftest.err)
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 if (exit $ac_status) && test -s "$ac_outfile"; then
13963 # The compiler can only warn and ignore the option if not recognized
13964 # So say no if there are warnings other than the usual output.
13965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13968 lt_cv_prog_compiler_pic_works_CXX=yes
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13975 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13977 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13978 case $lt_prog_compiler_pic_CXX in
13980 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13983 lt_prog_compiler_pic_CXX=
13984 lt_prog_compiler_can_build_shared_CXX=no
13992 # Check to make sure the static flag actually works.
13994 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13996 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13997 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13998 $as_echo_n "(cached) " >&6
14000 lt_cv_prog_compiler_static_works_CXX=no
14001 save_LDFLAGS="$LDFLAGS"
14002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14005 # The linker can only warn and ignore the option if not recognized
14006 # So say no if there are warnings
14007 if test -s conftest.err; then
14008 # Append any errors to the config.log.
14009 cat conftest.err 1>&5
14010 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14012 if diff conftest.exp conftest.er2 >/dev/null; then
14013 lt_cv_prog_compiler_static_works_CXX=yes
14016 lt_cv_prog_compiler_static_works_CXX=yes
14020 LDFLAGS="$save_LDFLAGS"
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14024 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14026 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14029 lt_prog_compiler_static_CXX=
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14036 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14037 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14038 $as_echo_n "(cached) " >&6
14040 lt_cv_prog_compiler_c_o_CXX=no
14041 $RM -r conftest 2>/dev/null
14045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14047 lt_compiler_flag="-o out/conftest2.$ac_objext"
14048 # Insert the option either (1) after the last *FLAGS variable, or
14049 # (2) before a word containing "conftest.", or (3) at the end.
14050 # Note that $ac_compile itself does not contain backslashes and begins
14051 # with a dollar sign (not a hyphen), so the echo should work correctly.
14052 lt_compile=`echo "$ac_compile" | $SED \
14053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14055 -e 's:$: $lt_compiler_flag:'`
14056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14057 (eval "$lt_compile" 2>out/conftest.err)
14059 cat out/conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14063 # The compiler can only warn and ignore the option if not recognized
14064 # So say no if there are warnings
14065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14068 lt_cv_prog_compiler_c_o_CXX=yes
14073 # SGI C++ compiler will create directory out/ii_files/ for
14074 # template instantiation
14075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14076 $RM out/* && rmdir out
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14083 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14088 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14089 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14092 lt_cv_prog_compiler_c_o_CXX=no
14093 $RM -r conftest 2>/dev/null
14097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14099 lt_compiler_flag="-o out/conftest2.$ac_objext"
14100 # Insert the option either (1) after the last *FLAGS variable, or
14101 # (2) before a word containing "conftest.", or (3) at the end.
14102 # Note that $ac_compile itself does not contain backslashes and begins
14103 # with a dollar sign (not a hyphen), so the echo should work correctly.
14104 lt_compile=`echo "$ac_compile" | $SED \
14105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14107 -e 's:$: $lt_compiler_flag:'`
14108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14109 (eval "$lt_compile" 2>out/conftest.err)
14111 cat out/conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14115 # The compiler can only warn and ignore the option if not recognized
14116 # So say no if there are warnings
14117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14120 lt_cv_prog_compiler_c_o_CXX=yes
14125 # SGI C++ compiler will create directory out/ii_files/ for
14126 # template instantiation
14127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14128 $RM out/* && rmdir out
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14135 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14140 hard_links="nottested"
14141 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14142 # do not overwrite the value of need_locks provided by the user
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14144 $as_echo_n "checking if we can lock with hard links... " >&6; }
14147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14149 ln conftest.a conftest.b 2>&5 || hard_links=no
14150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14152 $as_echo "$hard_links" >&6; }
14153 if test "$hard_links" = no; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14155 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14165 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14170 # If we're using GNU nm, then we don't want the "-C" option.
14171 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14172 # Also, AIX nm treats weak defined symbols like other global defined
14173 # symbols, whereas GNU nm marks them as "W".
14174 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14175 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'
14177 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'
14181 export_symbols_cmds_CXX="$ltdll_cmds"
14183 cygwin* | mingw* | cegcc*)
14184 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'
14187 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14190 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14193 $as_echo "$ld_shlibs_CXX" >&6; }
14194 test "$ld_shlibs_CXX" = no && can_build_shared=no
14196 with_gnu_ld_CXX=$with_gnu_ld
14204 # Do we need to explicitly link libc?
14206 case "x$archive_cmds_need_lc_CXX" in
14208 # Assume -lc should be added
14209 archive_cmds_need_lc_CXX=yes
14211 if test "$enable_shared" = yes && test "$GCC" = yes; then
14212 case $archive_cmds_CXX in
14214 # FIXME: we may have to deal with multi-command sequences.
14217 # Test whether the compiler implicitly links with -lc since on some
14218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14219 # to ld, don't add -lc before -lgcc.
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14221 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14222 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14223 $as_echo_n "(cached) " >&6
14226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14229 (eval $ac_compile) 2>&5
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; } 2>conftest.err; then
14235 libobjs=conftest.$ac_objext
14237 wl=$lt_prog_compiler_wl_CXX
14238 pic_flag=$lt_prog_compiler_pic_CXX
14244 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14245 allow_undefined_flag_CXX=
14246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14247 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14250 test $ac_status = 0; }
14252 lt_cv_archive_cmds_need_lc_CXX=no
14254 lt_cv_archive_cmds_need_lc_CXX=yes
14256 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14258 cat conftest.err 1>&5
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14264 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14265 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14336 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14338 library_names_spec=
14339 libname_spec='lib$name'
14343 postuninstall_cmds=
14347 shlibpath_overrides_runpath=unknown
14349 dynamic_linker="$host_os ld.so"
14350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14351 need_lib_prefix=unknown
14352 hardcode_into_libs=no
14354 # when you set need_version to no, make sure it does not cause -set_version
14355 # flags to be left without arguments
14356 need_version=unknown
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14362 shlibpath_var=LIBPATH
14364 # AIX 3 has no versioning support, so we append a major version to the name.
14365 soname_spec='${libname}${release}${shared_ext}$major'
14372 hardcode_into_libs=yes
14373 if test "$host_cpu" = ia64; then
14374 # AIX 5 supports IA64
14375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14376 shlibpath_var=LD_LIBRARY_PATH
14378 # With GCC up to 2.95.x, collect2 would create an import file
14379 # for dependence libraries. The import file would start with
14380 # the line `#! .'. This would cause the generated library to
14381 # depend on `.', always an invalid library. This was fixed in
14382 # development snapshots of GCC prior to 3.0.
14384 aix4 | aix4.[01] | aix4.[01].*)
14385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14387 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14390 can_build_shared=no
14394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14395 # soname into executable. Probably we can add versioning support to
14396 # collect2, so additional links can be useful in future.
14397 if test "$aix_use_runtimelinking" = yes; then
14398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14399 # instead of lib<name>.a to let people know that these are not
14400 # typical AIX shared libraries.
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 # We preserve .a as extension for shared libraries through AIX4.2
14404 # and later when we are not doing run time linking.
14405 library_names_spec='${libname}${release}.a $libname.a'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14408 shlibpath_var=LIBPATH
14415 # Since July 2007 AmigaOS4 officially supports .so libraries.
14416 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 library_names_spec='$libname.ixlibrary $libname.a'
14421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14422 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'
14428 library_names_spec='${libname}${shared_ext}'
14429 dynamic_linker="$host_os ld.so"
14430 shlibpath_var=LIBRARY_PATH
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14442 # the default ld.so.conf also contains /usr/contrib/lib and
14443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14444 # libtool to hard-code these into programs
14447 cygwin* | mingw* | pw32* | cegcc*)
14448 version_type=windows
14453 case $GCC,$host_os in
14454 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14455 library_names_spec='$libname.dll.a'
14456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14457 postinstall_cmds='base_file=`basename \${file}`~
14458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14459 dldir=$destdir/`dirname \$dlpath`~
14460 test -d \$dldir || mkdir -p \$dldir~
14461 $install_prog $dir/$dlname \$dldir/$dlname~
14462 chmod a+x \$dldir/$dlname~
14463 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14464 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14467 dlpath=$dir/\$dldll~
14469 shlibpath_overrides_runpath=yes
14473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14474 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14478 # MinGW DLLs use traditional 'lib' prefix
14479 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14482 # pw32 DLLs use 'pw' prefix rather than 'lib'
14483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14492 dynamic_linker='Win32 ld.exe'
14493 # FIXME: first we should search . and the directory the executable is in
14497 darwin* | rhapsody*)
14498 dynamic_linker="$host_os dyld"
14499 version_type=darwin
14502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14503 soname_spec='${libname}${release}${major}$shared_ext'
14504 shlibpath_overrides_runpath=yes
14505 shlibpath_var=DYLD_LIBRARY_PATH
14506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14520 freebsd* | dragonfly*)
14521 # DragonFly does not have aout. When/if they implement a new
14522 # versioning mechanism, adjust this.
14523 if test -x /usr/bin/objformat; then
14524 objformat=`/usr/bin/objformat`
14527 freebsd[23].*) objformat=aout ;;
14528 *) objformat=elf ;;
14531 version_type=freebsd-$objformat
14532 case $version_type in
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14543 shlibpath_var=LD_LIBRARY_PATH
14546 shlibpath_overrides_runpath=yes
14548 freebsd3.[01]* | freebsdelf3.[01]*)
14549 shlibpath_overrides_runpath=yes
14550 hardcode_into_libs=yes
14552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14554 shlibpath_overrides_runpath=no
14555 hardcode_into_libs=yes
14557 *) # from 4.6 on, and DragonFly
14558 shlibpath_overrides_runpath=yes
14559 hardcode_into_libs=yes
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14571 hardcode_into_libs=yes
14578 dynamic_linker="$host_os runtime_loader"
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LIBRARY_PATH
14582 shlibpath_overrides_runpath=yes
14583 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14584 hardcode_into_libs=yes
14587 hpux9* | hpux10* | hpux11*)
14588 # Give a soname corresponding to the major version so that dld.sl refuses to
14589 # link against other versions.
14596 hardcode_into_libs=yes
14597 dynamic_linker="$host_os dld.so"
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 if test "X$HPUX_IA64_MODE" = X32; then
14603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14611 hardcode_into_libs=yes
14612 dynamic_linker="$host_os dld.sl"
14613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14622 dynamic_linker="$host_os dld.sl"
14623 shlibpath_var=SHLIB_PATH
14624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14629 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14630 postinstall_cmds='chmod 555 $lib'
14631 # or fails outright, so override atomically:
14632 install_override_mode=555
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=no
14644 hardcode_into_libs=yes
14647 irix5* | irix6* | nonstopux*)
14649 nonstopux*) version_type=nonstopux ;;
14651 if test "$lt_cv_prog_gnu_ld" = yes; then
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14662 irix5* | nonstopux*)
14663 libsuff= shlibsuff=
14666 case $LD in # libtool.m4 will add one of these switches to LD
14667 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14668 libsuff= shlibsuff= libmagic=32-bit;;
14669 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14670 libsuff=32 shlibsuff=N32 libmagic=N32;;
14671 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14672 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14673 *) libsuff= shlibsuff= libmagic=never-match;;
14677 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14678 shlibpath_overrides_runpath=no
14679 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14680 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14681 hardcode_into_libs=yes
14684 # No shared lib support for Linux oldld, aout, or coff.
14685 linux*oldld* | linux*aout* | linux*coff*)
14689 # This must be Linux ELF.
14690 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=no
14700 # Some binutils ld are patched to set DT_RUNPATH
14701 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14702 $as_echo_n "(cached) " >&6
14704 lt_cv_shlibpath_overrides_runpath=no
14705 save_LDFLAGS=$LDFLAGS
14706 save_libdir=$libdir
14707 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14708 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14720 if ac_fn_cxx_try_link "$LINENO"; then :
14721 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14722 lt_cv_shlibpath_overrides_runpath=yes
14725 rm -f core conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LDFLAGS=$save_LDFLAGS
14728 libdir=$save_libdir
14732 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14734 # This implies no fast_install, which is unacceptable.
14735 # Some rework will be needed to allow for fast_install
14736 # before this can be enabled.
14737 hardcode_into_libs=yes
14739 # Append ld.so.conf contents to the search path
14740 if test -f /etc/ld.so.conf; then
14741 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' ' '`
14742 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14745 # We used to test for /lib/ld.so.1 and disable shared libraries on
14746 # powerpc, because MkLinux only supported shared libraries with the
14747 # GNU dynamic linker. Since this was broken with cross compilers,
14748 # most powerpc-linux boxes support dynamic linking these days and
14749 # people can always --disable-shared, the test was removed, and we
14750 # assume the GNU/Linux dynamic linker is in use.
14751 dynamic_linker='GNU/Linux ld.so'
14758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14761 dynamic_linker='NetBSD (a.out) ld.so'
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14764 soname_spec='${libname}${release}${shared_ext}$major'
14765 dynamic_linker='NetBSD ld.elf_so'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 shlibpath_overrides_runpath=yes
14769 hardcode_into_libs=yes
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=yes
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 shlibpath_overrides_runpath=no
14787 hardcode_into_libs=yes
14788 dynamic_linker='ldqnx.so'
14793 sys_lib_dlsearch_path_spec="/usr/lib"
14795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14798 *) need_version=no ;;
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14805 openbsd2.[89] | openbsd2.[89].*)
14806 shlibpath_overrides_runpath=no
14809 shlibpath_overrides_runpath=yes
14813 shlibpath_overrides_runpath=yes
14818 libname_spec='$name'
14821 library_names_spec='$libname${shared_ext} $libname.a'
14822 dynamic_linker='OS/2 ld.exe'
14823 shlibpath_var=LIBPATH
14826 osf3* | osf4* | osf5*)
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 shlibpath_overrides_runpath=yes
14849 hardcode_into_libs=yes
14850 # ldd complains unless libraries are executable
14851 postinstall_cmds='chmod +x $lib'
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes
14860 if test "$with_gnu_ld" = yes; then
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 case $host_vendor in
14873 shlibpath_overrides_runpath=no
14875 runpath_var=LD_RUN_PATH
14883 shlibpath_overrides_runpath=no
14884 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14890 if test -d /usr/nec ;then
14892 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14893 soname_spec='$libname${shared_ext}.$major'
14894 shlibpath_var=LD_LIBRARY_PATH
14898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14899 version_type=freebsd-elf
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath=yes
14906 hardcode_into_libs=yes
14907 if test "$with_gnu_ld" = yes; then
14908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14910 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14917 sys_lib_dlsearch_path_spec='/usr/lib'
14921 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 shlibpath_overrides_runpath=no
14928 hardcode_into_libs=yes
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 shlibpath_var=LD_LIBRARY_PATH
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14943 $as_echo "$dynamic_linker" >&6; }
14944 test "$dynamic_linker" = no && can_build_shared=no
14946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14947 if test "$GCC" = yes; then
14948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14951 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14952 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14954 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14955 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14996 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14997 hardcode_action_CXX=
14998 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14999 test -n "$runpath_var_CXX" ||
15000 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15002 # We can hardcode non-existent directories.
15003 if test "$hardcode_direct_CXX" != no &&
15004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15005 # have to relink, otherwise we might link with an installed library
15006 # when we should be linking with a yet-to-be-installed one
15007 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15008 test "$hardcode_minus_L_CXX" != no; then
15009 # Linking always hardcodes the temporary library directory.
15010 hardcode_action_CXX=relink
15012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15013 hardcode_action_CXX=immediate
15016 # We cannot hardcode anything, or else we can only hardcode existing
15018 hardcode_action_CXX=unsupported
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15021 $as_echo "$hardcode_action_CXX" >&6; }
15023 if test "$hardcode_action_CXX" = relink ||
15024 test "$inherit_rpath_CXX" = yes; then
15025 # Fast installation is not supported
15026 enable_fast_install=no
15027 elif test "$shlibpath_overrides_runpath" = yes ||
15028 test "$enable_shared" = no; then
15029 # Fast installation is not necessary
15030 enable_fast_install=needless
15039 fi # test -n "$compiler"
15045 with_gnu_ld=$lt_save_with_gnu_ld
15046 lt_cv_path_LDCXX=$lt_cv_path_LD
15047 lt_cv_path_LD=$lt_save_path_LD
15048 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15049 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15050 fi # test "$_lt_caught_CXX_error" != yes
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15070 ac_config_commands="$ac_config_commands libtool"
15075 # Only expand once:
15079 # The tests for host and target for $enable_largefile require
15084 # As the $enable_largefile decision depends on --enable-plugins we must set it
15085 # even in directories otherwise not depending on the $plugins option.
15089 for ac_header in dlfcn.h
15091 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15093 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_DLFCN_H 1
15102 for ac_header in windows.h
15104 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15106 if test "x$ac_cv_header_windows_h" = x""yes; then :
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_WINDOWS_H 1
15116 # Check whether --enable-plugins was given.
15117 if test "${enable_plugins+set}" = set; then :
15118 enableval=$enable_plugins; case "${enableval}" in
15121 if test "$maybe_plugins" != "yes" ; then
15122 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15126 plugins=$maybe_plugins
15130 if test "$plugins" = "yes"; then
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15132 $as_echo_n "checking for library containing dlopen... " >&6; }
15133 if test "${ac_cv_search_dlopen+set}" = set; then :
15134 $as_echo_n "(cached) " >&6
15136 ac_func_search_save_LIBS=$LIBS
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15155 for ac_lib in '' dl; do
15156 if test -z "$ac_lib"; then
15157 ac_res="none required"
15160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15162 if ac_fn_c_try_link "$LINENO"; then :
15163 ac_cv_search_dlopen=$ac_res
15165 rm -f core conftest.err conftest.$ac_objext \
15167 if test "${ac_cv_search_dlopen+set}" = set; then :
15171 if test "${ac_cv_search_dlopen+set}" = set; then :
15174 ac_cv_search_dlopen=no
15176 rm conftest.$ac_ext
15177 LIBS=$ac_func_search_save_LIBS
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15180 $as_echo "$ac_cv_search_dlopen" >&6; }
15181 ac_res=$ac_cv_search_dlopen
15182 if test "$ac_res" != no; then :
15183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15191 sparc-*-solaris*|i[3-7]86-*-solaris*)
15192 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15193 # are mutually exclusive; and without procfs support, the bfd/ elf module
15194 # cannot provide certain routines such as elfcore_write_prpsinfo
15195 # or elfcore_write_prstatus. So unless the user explicitly requested
15196 # large-file support through the --enable-largefile switch, disable
15197 # large-file support in favor of procfs support.
15198 test "${target}" = "${host}" -a "x$plugins" = xno \
15199 && : ${enable_largefile="no"}
15203 # Check whether --enable-largefile was given.
15204 if test "${enable_largefile+set}" = set; then :
15205 enableval=$enable_largefile;
15208 if test "$enable_largefile" != no; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15211 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15212 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15213 $as_echo_n "(cached) " >&6
15215 ac_cv_sys_largefile_CC=no
15216 if test "$GCC" != yes; then
15219 # IRIX 6.2 and later do not support large files by default,
15220 # so use the C compiler's -n32 option if that helps.
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223 #include <sys/types.h>
15224 /* Check that off_t can represent 2**63 - 1 correctly.
15225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15226 since some C++ compilers masquerading as C compilers
15227 incorrectly reject 9223372036854775807. */
15228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15230 && LARGE_OFF_T % 2147483647 == 1)
15240 if ac_fn_c_try_compile "$LINENO"; then :
15243 rm -f core conftest.err conftest.$ac_objext
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246 ac_cv_sys_largefile_CC=' -n32'; break
15248 rm -f core conftest.err conftest.$ac_objext
15252 rm -f conftest.$ac_ext
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15256 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15257 if test "$ac_cv_sys_largefile_CC" != no; then
15258 CC=$CC$ac_cv_sys_largefile_CC
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15262 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15263 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15264 $as_echo_n "(cached) " >&6
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15269 #include <sys/types.h>
15270 /* Check that off_t can represent 2**63 - 1 correctly.
15271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15272 since some C++ compilers masquerading as C compilers
15273 incorrectly reject 9223372036854775807. */
15274 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15276 && LARGE_OFF_T % 2147483647 == 1)
15286 if ac_fn_c_try_compile "$LINENO"; then :
15287 ac_cv_sys_file_offset_bits=no; break
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #define _FILE_OFFSET_BITS 64
15293 #include <sys/types.h>
15294 /* Check that off_t can represent 2**63 - 1 correctly.
15295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15296 since some C++ compilers masquerading as C compilers
15297 incorrectly reject 9223372036854775807. */
15298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15300 && LARGE_OFF_T % 2147483647 == 1)
15310 if ac_fn_c_try_compile "$LINENO"; then :
15311 ac_cv_sys_file_offset_bits=64; break
15313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15314 ac_cv_sys_file_offset_bits=unknown
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15319 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15320 case $ac_cv_sys_file_offset_bits in #(
15323 cat >>confdefs.h <<_ACEOF
15324 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15329 if test $ac_cv_sys_file_offset_bits = unknown; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15331 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15332 if test "${ac_cv_sys_large_files+set}" = set; then :
15333 $as_echo_n "(cached) " >&6
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <sys/types.h>
15339 /* Check that off_t can represent 2**63 - 1 correctly.
15340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15341 since some C++ compilers masquerading as C compilers
15342 incorrectly reject 9223372036854775807. */
15343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15345 && LARGE_OFF_T % 2147483647 == 1)
15355 if ac_fn_c_try_compile "$LINENO"; then :
15356 ac_cv_sys_large_files=no; break
15358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 #define _LARGE_FILES 1
15362 #include <sys/types.h>
15363 /* Check that off_t can represent 2**63 - 1 correctly.
15364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15365 since some C++ compilers masquerading as C compilers
15366 incorrectly reject 9223372036854775807. */
15367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15369 && LARGE_OFF_T % 2147483647 == 1)
15379 if ac_fn_c_try_compile "$LINENO"; then :
15380 ac_cv_sys_large_files=1; break
15382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 ac_cv_sys_large_files=unknown
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15388 $as_echo "$ac_cv_sys_large_files" >&6; }
15389 case $ac_cv_sys_large_files in #(
15392 cat >>confdefs.h <<_ACEOF
15393 #define _LARGE_FILES $ac_cv_sys_large_files
15404 # Check whether --with-lib-path was given.
15405 if test "${with_lib_path+set}" = set; then :
15406 withval=$with_lib_path; LIB_PATH=$withval
15409 # Check whether --enable-targets was given.
15410 if test "${enable_targets+set}" = set; then :
15411 enableval=$enable_targets; case "${enableval}" in
15412 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15414 no) enable_targets= ;;
15415 *) enable_targets=$enableval ;;
15418 # Check whether --enable-64-bit-bfd was given.
15419 if test "${enable_64_bit_bfd+set}" = set; then :
15420 enableval=$enable_64_bit_bfd; case "${enableval}" in
15421 yes) want64=true ;;
15422 no) want64=false ;;
15423 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15430 # Check whether --with-sysroot was given.
15431 if test "${with_sysroot+set}" = set; then :
15432 withval=$with_sysroot;
15433 case ${with_sysroot} in
15434 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15435 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15438 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15441 if test "x$prefix" = xNONE; then
15442 test_prefix=/usr/local
15444 test_prefix=$prefix
15446 if test "x$exec_prefix" = xNONE; then
15447 test_exec_prefix=$test_prefix
15449 test_exec_prefix=$exec_prefix
15451 case ${TARGET_SYSTEM_ROOT} in
15452 "${test_prefix}"|"${test_prefix}/"*|\
15453 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15454 '${prefix}'|'${prefix}/'*|\
15455 '${exec_prefix}'|'${exec_prefix}/'*)
15456 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15457 TARGET_SYSTEM_ROOT_DEFINE="$t"
15464 TARGET_SYSTEM_ROOT=
15465 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15473 # Check whether --enable-gold was given.
15474 if test "${enable_gold+set}" = set; then :
15475 enableval=$enable_gold; case "${enableval}" in
15477 install_as_default=no
15478 installed_linker=ld.bfd
15481 install_as_default=yes
15482 installed_linker=ld.bfd
15485 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15489 install_as_default=yes
15490 installed_linker=ld.bfd
15496 # Check whether --enable-got was given.
15497 if test "${enable_got+set}" = set; then :
15498 enableval=$enable_got; case "${enableval}" in
15499 target | single | negative | multigot) got_handling=$enableval ;;
15500 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15503 got_handling=target
15507 case "${got_handling}" in
15510 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15514 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15518 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15522 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15524 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15528 # Decide the default method for compressing debug sections.
15529 ac_default_compressed_debug_sections=unset
15530 # Provide a configure time option to override our default.
15531 # Check whether --enable-compressed_debug_sections was given.
15532 if test "${enable_compressed_debug_sections+set}" = set; then :
15533 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15534 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15535 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15540 # Set the 'development' global.
15541 . $srcdir/../bfd/development.sh
15543 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15549 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15552 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15557 # Check whether --enable-werror was given.
15558 if test "${enable_werror+set}" = set; then :
15559 enableval=$enable_werror; case "${enableval}" in
15560 yes | y) ERROR_ON_WARNING="yes" ;;
15561 no | n) ERROR_ON_WARNING="no" ;;
15562 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15567 # Disable -Wformat by default when using gcc on mingw
15570 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15571 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15577 # Enable -Werror by default when using gcc. Turn it off for releases.
15578 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15579 ERROR_ON_WARNING=yes
15583 if test "${ERROR_ON_WARNING}" = yes ; then
15584 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15585 NO_WERROR="-Wno-error"
15588 if test "${GCC}" = yes ; then
15589 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15592 # Check whether --enable-build-warnings was given.
15593 if test "${enable_build_warnings+set}" = set; then :
15594 enableval=$enable_build_warnings; case "${enableval}" in
15595 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15596 no) if test "${GCC}" = yes ; then
15599 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15600 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15601 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15602 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15603 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15608 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15609 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15618 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15619 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <locale.h>
15633 if ac_fn_c_try_link "$LINENO"; then :
15634 am_cv_val_LC_MESSAGES=yes
15636 am_cv_val_LC_MESSAGES=no
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15642 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15643 if test $am_cv_val_LC_MESSAGES = yes; then
15645 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15650 ac_config_headers="$ac_config_headers config.h:config.in"
15656 if test -z "$target" ; then
15657 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15659 if test -z "$host" ; then
15660 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15663 # host-specific stuff:
15665 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15666 # If we haven't got the data from the intl directory,
15667 # assume NLS is disabled.
15676 if test -f ../intl/config.intl; then
15677 . ../intl/config.intl
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15680 $as_echo_n "checking whether NLS is requested... " >&6; }
15681 if test x"$USE_NLS" != xyes; then
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683 $as_echo "no" >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15686 $as_echo "yes" >&6; }
15688 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15692 $as_echo_n "checking for catalogs to be installed... " >&6; }
15693 # Look for .po and .gmo files in the source directory.
15696 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15697 # If there aren't any .gmo files the shell will give us the
15698 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15700 case "$cat" in *\**)
15703 # The quadruple backslash is collapsed to a double backslash
15704 # by the backticks, then collapsed again by the double quotes,
15705 # leaving us with one backslash in the sed expression (right
15706 # before the dot that mustn't act as a wildcard).
15707 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15708 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15709 # The user is allowed to set LINGUAS to a list of languages to
15710 # install catalogs for. If it's empty that means "all of them."
15711 if test "x$LINGUAS" = x; then
15712 CATALOGS="$CATALOGS $cat"
15713 XLINGUAS="$XLINGUAS $lang"
15715 case "$LINGUAS" in *$lang*)
15716 CATALOGS="$CATALOGS $cat"
15717 XLINGUAS="$XLINGUAS $lang"
15722 LINGUAS="$XLINGUAS"
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15724 $as_echo "$LINGUAS" >&6; }
15738 if test -n "$ac_aux_dir"; then
15739 case "$ac_aux_dir" in
15740 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15741 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15744 if test -z "$MKINSTALLDIRS"; then
15745 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15751 $as_echo_n "checking whether NLS is requested... " >&6; }
15752 # Check whether --enable-nls was given.
15753 if test "${enable_nls+set}" = set; then :
15754 enableval=$enable_nls; USE_NLS=$enableval
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15760 $as_echo "$USE_NLS" >&6; }
15767 # Prepare PATH_SEPARATOR.
15768 # The user is always right.
15769 if test "${PATH_SEPARATOR+set}" != set; then
15770 echo "#! /bin/sh" >conf$$.sh
15771 echo "exit 0" >>conf$$.sh
15773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15781 # Find out how to test for executable files. Don't use a zero-byte file,
15782 # as systems may use methods other than mode bits to determine executability.
15783 cat >conf$$.file <<_ASEOF
15787 chmod +x conf$$.file
15788 if test -x conf$$.file >/dev/null 2>&1; then
15789 ac_executable_p="test -x"
15791 ac_executable_p="test -f"
15795 # Extract the first word of "msgfmt", so it can be a program name with args.
15796 set dummy msgfmt; ac_word=$2
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15798 $as_echo_n "checking for $ac_word... " >&6; }
15799 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15800 $as_echo_n "(cached) " >&6
15804 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15808 for ac_dir in $PATH; do
15810 test -z "$ac_dir" && ac_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15813 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15814 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15815 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15822 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15826 MSGFMT="$ac_cv_path_MSGFMT"
15827 if test "$MSGFMT" != ":"; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15829 $as_echo "$MSGFMT" >&6; }
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15832 $as_echo "no" >&6; }
15835 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15836 set dummy gmsgfmt; ac_word=$2
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838 $as_echo_n "checking for $ac_word... " >&6; }
15839 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15840 $as_echo_n "(cached) " >&6
15844 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848 for as_dir in $PATH
15851 test -z "$as_dir" && as_dir=.
15852 for ac_exec_ext in '' $ac_executable_extensions; do
15853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15854 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15862 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15866 GMSGFMT=$ac_cv_path_GMSGFMT
15867 if test -n "$GMSGFMT"; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15869 $as_echo "$GMSGFMT" >&6; }
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15878 # Prepare PATH_SEPARATOR.
15879 # The user is always right.
15880 if test "${PATH_SEPARATOR+set}" != set; then
15881 echo "#! /bin/sh" >conf$$.sh
15882 echo "exit 0" >>conf$$.sh
15884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15892 # Find out how to test for executable files. Don't use a zero-byte file,
15893 # as systems may use methods other than mode bits to determine executability.
15894 cat >conf$$.file <<_ASEOF
15898 chmod +x conf$$.file
15899 if test -x conf$$.file >/dev/null 2>&1; then
15900 ac_executable_p="test -x"
15902 ac_executable_p="test -f"
15906 # Extract the first word of "xgettext", so it can be a program name with args.
15907 set dummy xgettext; ac_word=$2
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15909 $as_echo_n "checking for $ac_word... " >&6; }
15910 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15911 $as_echo_n "(cached) " >&6
15913 case "$XGETTEXT" in
15915 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15918 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15919 for ac_dir in $PATH; do
15921 test -z "$ac_dir" && ac_dir=.
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15924 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15925 (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
15926 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15933 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15937 XGETTEXT="$ac_cv_path_XGETTEXT"
15938 if test "$XGETTEXT" != ":"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15940 $as_echo "$XGETTEXT" >&6; }
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943 $as_echo "no" >&6; }
15949 # Prepare PATH_SEPARATOR.
15950 # The user is always right.
15951 if test "${PATH_SEPARATOR+set}" != set; then
15952 echo "#! /bin/sh" >conf$$.sh
15953 echo "exit 0" >>conf$$.sh
15955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15963 # Find out how to test for executable files. Don't use a zero-byte file,
15964 # as systems may use methods other than mode bits to determine executability.
15965 cat >conf$$.file <<_ASEOF
15969 chmod +x conf$$.file
15970 if test -x conf$$.file >/dev/null 2>&1; then
15971 ac_executable_p="test -x"
15973 ac_executable_p="test -f"
15977 # Extract the first word of "msgmerge", so it can be a program name with args.
15978 set dummy msgmerge; ac_word=$2
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980 $as_echo_n "checking for $ac_word... " >&6; }
15981 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15982 $as_echo_n "(cached) " >&6
15984 case "$MSGMERGE" in
15986 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15989 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15990 for ac_dir in $PATH; do
15992 test -z "$ac_dir" && ac_dir=.
15993 for ac_exec_ext in '' $ac_executable_extensions; do
15994 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15995 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15996 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16003 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16007 MSGMERGE="$ac_cv_path_MSGMERGE"
16008 if test "$MSGMERGE" != ":"; then
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16010 $as_echo "$MSGMERGE" >&6; }
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16013 $as_echo "no" >&6; }
16017 if test "$GMSGFMT" != ":"; then
16018 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16019 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16022 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16024 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16029 if test "$XGETTEXT" != ":"; then
16030 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16031 (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
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16035 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16041 ac_config_commands="$ac_config_commands default-1"
16047 for ac_prog in 'bison -y' byacc
16049 # Extract the first word of "$ac_prog", so it can be a program name with args.
16050 set dummy $ac_prog; ac_word=$2
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16052 $as_echo_n "checking for $ac_word... " >&6; }
16053 if test "${ac_cv_prog_YACC+set}" = set; then :
16054 $as_echo_n "(cached) " >&6
16056 if test -n "$YACC"; then
16057 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16060 for as_dir in $PATH
16063 test -z "$as_dir" && as_dir=.
16064 for ac_exec_ext in '' $ac_executable_extensions; do
16065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16066 ac_cv_prog_YACC="$ac_prog"
16067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16076 YACC=$ac_cv_prog_YACC
16077 if test -n "$YACC"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16079 $as_echo "$YACC" >&6; }
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082 $as_echo "no" >&6; }
16086 test -n "$YACC" && break
16088 test -n "$YACC" || YACC="yacc"
16090 for ac_prog in flex lex
16092 # Extract the first word of "$ac_prog", so it can be a program name with args.
16093 set dummy $ac_prog; ac_word=$2
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16095 $as_echo_n "checking for $ac_word... " >&6; }
16096 if test "${ac_cv_prog_LEX+set}" = set; then :
16097 $as_echo_n "(cached) " >&6
16099 if test -n "$LEX"; then
16100 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103 for as_dir in $PATH
16106 test -z "$as_dir" && as_dir=.
16107 for ac_exec_ext in '' $ac_executable_extensions; do
16108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16109 ac_cv_prog_LEX="$ac_prog"
16110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16119 LEX=$ac_cv_prog_LEX
16120 if test -n "$LEX"; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16122 $as_echo "$LEX" >&6; }
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16125 $as_echo "no" >&6; }
16129 test -n "$LEX" && break
16131 test -n "$LEX" || LEX=":"
16135 *) cat >conftest.l <<_ACEOF
16141 e { yyless (input () != 0); }
16142 f { unput (yytext[0]); }
16143 . { BEGIN INITIAL; }
16145 #ifdef YYTEXT_POINTER
16146 extern char *yytext;
16151 return ! yylex () + ! yywrap ();
16154 { { ac_try="$LEX conftest.l"
16155 case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16160 $as_echo "$ac_try_echo"; } >&5
16161 (eval "$LEX conftest.l") 2>&5
16163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16164 test $ac_status = 0; }
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16166 $as_echo_n "checking lex output file root... " >&6; }
16167 if test "${ac_cv_prog_lex_root+set}" = set; then :
16168 $as_echo_n "(cached) " >&6
16171 if test -f lex.yy.c; then
16172 ac_cv_prog_lex_root=lex.yy
16173 elif test -f lexyy.c; then
16174 ac_cv_prog_lex_root=lexyy
16176 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16180 $as_echo "$ac_cv_prog_lex_root" >&6; }
16181 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16183 if test -z "${LEXLIB+set}"; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16185 $as_echo_n "checking lex library... " >&6; }
16186 if test "${ac_cv_lib_lex+set}" = set; then :
16187 $as_echo_n "(cached) " >&6
16191 ac_cv_lib_lex='none needed'
16192 for ac_lib in '' -lfl -ll; do
16193 LIBS="$ac_lib $ac_save_LIBS"
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 `cat $LEX_OUTPUT_ROOT.c`
16198 if ac_fn_c_try_link "$LINENO"; then :
16199 ac_cv_lib_lex=$ac_lib
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 test "$ac_cv_lib_lex" != 'none needed' && break
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16209 $as_echo "$ac_cv_lib_lex" >&6; }
16210 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16215 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16216 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16217 $as_echo_n "(cached) " >&6
16219 # POSIX says lex can declare yytext either as a pointer or an array; the
16220 # default is implementation-dependent. Figure out which it is, since
16221 # not all implementations provide the %pointer and %array declarations.
16222 ac_cv_prog_lex_yytext_pointer=no
16224 LIBS="$LEXLIB $ac_save_LIBS"
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 #define YYTEXT_POINTER 1
16228 `cat $LEX_OUTPUT_ROOT.c`
16230 if ac_fn_c_try_link "$LINENO"; then :
16231 ac_cv_prog_lex_yytext_pointer=yes
16233 rm -f core conftest.err conftest.$ac_objext \
16234 conftest$ac_exeext conftest.$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16239 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16240 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16242 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16245 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16248 if test "$LEX" = :; then
16249 LEX=${am_missing_run}flex
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16254 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16255 # Check whether --enable-maintainer-mode was given.
16256 if test "${enable_maintainer_mode+set}" = set; then :
16257 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16259 USE_MAINTAINER_MODE=no
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16263 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16264 if test $USE_MAINTAINER_MODE = yes; then
16265 MAINTAINER_MODE_TRUE=
16266 MAINTAINER_MODE_FALSE='#'
16268 MAINTAINER_MODE_TRUE='#'
16269 MAINTAINER_MODE_FALSE=
16272 MAINT=$MAINTAINER_MODE_TRUE
16276 GENINSRC_NEVER_TRUE=
16277 GENINSRC_NEVER_FALSE='#'
16279 GENINSRC_NEVER_TRUE='#'
16280 GENINSRC_NEVER_FALSE=
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16284 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16285 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16286 $as_echo_n "(cached) " >&6
16290 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16291 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16292 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16295 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16298 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16299 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16302 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16309 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16310 do_compare="$gcc_cv_prog_cmp_skip"
16314 . ${srcdir}/configure.host
16323 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16327 eval as_val=\$$as_ac_Header
16328 if test "x$as_val" = x""yes; then :
16329 cat >>confdefs.h <<_ACEOF
16330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16337 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16340 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16341 eval as_val=\$$as_ac_Header
16342 if test "x$as_val" = x""yes; then :
16343 cat >>confdefs.h <<_ACEOF
16344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16352 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16353 if test "${gcc_cv_header_string+set}" = set; then :
16354 $as_echo_n "(cached) " >&6
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 #include <string.h>
16359 #include <strings.h>
16368 if ac_fn_c_try_compile "$LINENO"; then :
16369 gcc_cv_header_string=yes
16371 gcc_cv_header_string=no
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16376 $as_echo "$gcc_cv_header_string" >&6; }
16377 if test $gcc_cv_header_string = yes; then
16379 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16383 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16387 eval as_val=\$$as_ac_var
16388 if test "x$as_val" = x""yes; then :
16389 cat >>confdefs.h <<_ACEOF
16390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16396 for ac_func in open lseek close
16398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16399 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16400 eval as_val=\$$as_ac_var
16401 if test "x$as_val" = x""yes; then :
16402 cat >>confdefs.h <<_ACEOF
16403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16409 ac_header_dirent=no
16410 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16411 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16413 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16415 $as_echo_n "(cached) " >&6
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 #include <sys/types.h>
16431 if ac_fn_c_try_compile "$LINENO"; then :
16432 eval "$as_ac_Header=yes"
16434 eval "$as_ac_Header=no"
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 eval ac_res=\$$as_ac_Header
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16440 $as_echo "$ac_res" >&6; }
16441 eval as_val=\$$as_ac_Header
16442 if test "x$as_val" = x""yes; then :
16443 cat >>confdefs.h <<_ACEOF
16444 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16447 ac_header_dirent=$ac_hdr; break
16451 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16452 if test $ac_header_dirent = dirent.h; then
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16454 $as_echo_n "checking for library containing opendir... " >&6; }
16455 if test "${ac_cv_search_opendir+set}" = set; then :
16456 $as_echo_n "(cached) " >&6
16458 ac_func_search_save_LIBS=$LIBS
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16462 /* Override any GCC internal prototype to avoid an error.
16463 Use char because int might match the return type of a GCC
16464 builtin and then its argument prototype would still apply. */
16477 for ac_lib in '' dir; do
16478 if test -z "$ac_lib"; then
16479 ac_res="none required"
16482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16484 if ac_fn_c_try_link "$LINENO"; then :
16485 ac_cv_search_opendir=$ac_res
16487 rm -f core conftest.err conftest.$ac_objext \
16489 if test "${ac_cv_search_opendir+set}" = set; then :
16493 if test "${ac_cv_search_opendir+set}" = set; then :
16496 ac_cv_search_opendir=no
16498 rm conftest.$ac_ext
16499 LIBS=$ac_func_search_save_LIBS
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16502 $as_echo "$ac_cv_search_opendir" >&6; }
16503 ac_res=$ac_cv_search_opendir
16504 if test "$ac_res" != no; then :
16505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16511 $as_echo_n "checking for library containing opendir... " >&6; }
16512 if test "${ac_cv_search_opendir+set}" = set; then :
16513 $as_echo_n "(cached) " >&6
16515 ac_func_search_save_LIBS=$LIBS
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16519 /* Override any GCC internal prototype to avoid an error.
16520 Use char because int might match the return type of a GCC
16521 builtin and then its argument prototype would still apply. */
16534 for ac_lib in '' x; do
16535 if test -z "$ac_lib"; then
16536 ac_res="none required"
16539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16541 if ac_fn_c_try_link "$LINENO"; then :
16542 ac_cv_search_opendir=$ac_res
16544 rm -f core conftest.err conftest.$ac_objext \
16546 if test "${ac_cv_search_opendir+set}" = set; then :
16550 if test "${ac_cv_search_opendir+set}" = set; then :
16553 ac_cv_search_opendir=no
16555 rm conftest.$ac_ext
16556 LIBS=$ac_func_search_save_LIBS
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16559 $as_echo "$ac_cv_search_opendir" >&6; }
16560 ac_res=$ac_cv_search_opendir
16561 if test "$ac_res" != no; then :
16562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16569 for ac_header in stdlib.h unistd.h
16571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16572 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16573 eval as_val=\$$as_ac_Header
16574 if test "x$as_val" = x""yes; then :
16575 cat >>confdefs.h <<_ACEOF
16576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16583 for ac_func in getpagesize
16585 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16586 if test "x$ac_cv_func_getpagesize" = x""yes; then :
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_GETPAGESIZE 1
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16595 $as_echo_n "checking for working mmap... " >&6; }
16596 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16597 $as_echo_n "(cached) " >&6
16599 if test "$cross_compiling" = yes; then :
16600 ac_cv_func_mmap_fixed_mapped=no
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604 $ac_includes_default
16605 /* malloc might have been renamed as rpl_malloc. */
16608 /* Thanks to Mike Haertel and Jim Avera for this test.
16609 Here is a matrix of mmap possibilities:
16610 mmap private not fixed
16611 mmap private fixed at somewhere currently unmapped
16612 mmap private fixed at somewhere already mapped
16613 mmap shared not fixed
16614 mmap shared fixed at somewhere currently unmapped
16615 mmap shared fixed at somewhere already mapped
16616 For private mappings, we should verify that changes cannot be read()
16617 back from the file, nor mmap's back from the file at a different
16618 address. (There have been systems where private was not correctly
16619 implemented like the infamous i386 svr4.0, and systems where the
16620 VM page cache was not coherent with the file system buffer cache
16621 like early versions of FreeBSD and possibly contemporary NetBSD.)
16622 For shared mappings, we should conversely verify that changes get
16623 propagated back to all the places they're supposed to be.
16625 Grep wants private fixed already mapped.
16626 The main things grep needs to know about mmap are:
16627 * does it exist and is it safe to write into the mmap'd area
16628 * how to use it (BSD variants) */
16631 #include <sys/mman.h>
16633 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16637 /* This mess was copied from the GNU getpagesize.h. */
16638 #ifndef HAVE_GETPAGESIZE
16639 /* Assume that all systems that can run configure have sys/param.h. */
16640 # ifndef HAVE_SYS_PARAM_H
16641 # define HAVE_SYS_PARAM_H 1
16644 # ifdef _SC_PAGESIZE
16645 # define getpagesize() sysconf(_SC_PAGESIZE)
16646 # else /* no _SC_PAGESIZE */
16647 # ifdef HAVE_SYS_PARAM_H
16648 # include <sys/param.h>
16649 # ifdef EXEC_PAGESIZE
16650 # define getpagesize() EXEC_PAGESIZE
16651 # else /* no EXEC_PAGESIZE */
16653 # define getpagesize() NBPG * CLSIZE
16656 # endif /* no CLSIZE */
16657 # else /* no NBPG */
16659 # define getpagesize() NBPC
16660 # else /* no NBPC */
16662 # define getpagesize() PAGESIZE
16663 # endif /* PAGESIZE */
16664 # endif /* no NBPC */
16665 # endif /* no NBPG */
16666 # endif /* no EXEC_PAGESIZE */
16667 # else /* no HAVE_SYS_PARAM_H */
16668 # define getpagesize() 8192 /* punt totally */
16669 # endif /* no HAVE_SYS_PARAM_H */
16670 # endif /* no _SC_PAGESIZE */
16672 #endif /* no HAVE_GETPAGESIZE */
16677 char *data, *data2, *data3;
16681 pagesize = getpagesize ();
16683 /* First, make a file with some known garbage in it. */
16684 data = (char *) malloc (pagesize);
16687 for (i = 0; i < pagesize; ++i)
16688 *(data + i) = rand ();
16690 fd = creat ("conftest.mmap", 0600);
16693 if (write (fd, data, pagesize) != pagesize)
16697 /* Next, try to mmap the file at a fixed address which already has
16698 something else allocated at it. If we can, also make sure that
16699 we see the same garbage. */
16700 fd = open ("conftest.mmap", O_RDWR);
16703 data2 = (char *) malloc (2 * pagesize);
16706 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16707 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16708 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16710 for (i = 0; i < pagesize; ++i)
16711 if (*(data + i) != *(data2 + i))
16714 /* Finally, make sure that changes to the mapped area do not
16715 percolate back to the file as seen by read(). (This is a bug on
16716 some variants of i386 svr4.0.) */
16717 for (i = 0; i < pagesize; ++i)
16718 *(data2 + i) = *(data2 + i) + 1;
16719 data3 = (char *) malloc (pagesize);
16722 if (read (fd, data3, pagesize) != pagesize)
16724 for (i = 0; i < pagesize; ++i)
16725 if (*(data + i) != *(data3 + i))
16731 if ac_fn_c_try_run "$LINENO"; then :
16732 ac_cv_func_mmap_fixed_mapped=yes
16734 ac_cv_func_mmap_fixed_mapped=no
16736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16737 conftest.$ac_objext conftest.beam conftest.$ac_ext
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16742 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16743 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16745 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16748 rm -f conftest.mmap
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16752 $as_echo_n "checking for library containing dlopen... " >&6; }
16753 if test "${ac_cv_search_dlopen+set}" = set; then :
16754 $as_echo_n "(cached) " >&6
16756 ac_func_search_save_LIBS=$LIBS
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16760 /* Override any GCC internal prototype to avoid an error.
16761 Use char because int might match the return type of a GCC
16762 builtin and then its argument prototype would still apply. */
16775 for ac_lib in '' dl; do
16776 if test -z "$ac_lib"; then
16777 ac_res="none required"
16780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16782 if ac_fn_c_try_link "$LINENO"; then :
16783 ac_cv_search_dlopen=$ac_res
16785 rm -f core conftest.err conftest.$ac_objext \
16787 if test "${ac_cv_search_dlopen+set}" = set; then :
16791 if test "${ac_cv_search_dlopen+set}" = set; then :
16794 ac_cv_search_dlopen=no
16796 rm conftest.$ac_ext
16797 LIBS=$ac_func_search_save_LIBS
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16800 $as_echo "$ac_cv_search_dlopen" >&6; }
16801 ac_res=$ac_cv_search_dlopen
16802 if test "$ac_res" != no; then :
16803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16807 if test x$plugins = xyes; then
16808 ENABLE_PLUGINS_TRUE=
16809 ENABLE_PLUGINS_FALSE='#'
16811 ENABLE_PLUGINS_TRUE='#'
16812 ENABLE_PLUGINS_FALSE=
16816 # Check whether --enable-initfini-array was given.
16817 if test "${enable_initfini_array+set}" = set; then :
16818 enableval=$enable_initfini_array; case "${enableval}" in
16820 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16823 enable_initfini_array=yes
16827 if test $enable_initfini_array = yes; then
16829 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16834 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16835 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16836 $as_echo_n "(cached) " >&6
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840 #include <unistd.h>
16844 extern int getopt (int, char *const*, const char *);
16849 if ac_fn_c_try_compile "$LINENO"; then :
16850 ld_cv_decl_getopt_unistd_h=yes
16852 ld_cv_decl_getopt_unistd_h=no
16854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16858 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16859 if test $ld_cv_decl_getopt_unistd_h = yes; then
16861 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16867 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16869 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16873 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16874 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16880 cat >>confdefs.h <<_ACEOF
16881 #define HAVE_DECL_STRSTR $ac_have_decl
16883 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16884 if test "x$ac_cv_have_decl_free" = x""yes; then :
16890 cat >>confdefs.h <<_ACEOF
16891 #define HAVE_DECL_FREE $ac_have_decl
16893 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16894 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16900 cat >>confdefs.h <<_ACEOF
16901 #define HAVE_DECL_SBRK $ac_have_decl
16903 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16904 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16910 cat >>confdefs.h <<_ACEOF
16911 #define HAVE_DECL_GETENV $ac_have_decl
16913 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16914 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16920 cat >>confdefs.h <<_ACEOF
16921 #define HAVE_DECL_ENVIRON $ac_have_decl
16925 # When converting linker scripts into strings for use in emulation
16926 # files, use astring.sed if the compiler supports ANSI string
16927 # concatenation, or ostring.sed otherwise. This is to support the
16928 # broken Microsoft MSVC compiler, which limits the length of string
16929 # constants, while still supporting pre-ANSI compilers which do not
16930 # support string concatenation.
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16932 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16933 if test "${ld_cv_string_concatenation+set}" = set; then :
16934 $as_echo_n "(cached) " >&6
16936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 /* end confdefs.h. */
16947 if ac_fn_c_try_compile "$LINENO"; then :
16948 ld_cv_string_concatenation=yes
16950 ld_cv_string_concatenation=no
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16956 $as_echo "$ld_cv_string_concatenation" >&6; }
16957 if test "$ld_cv_string_concatenation" = "yes"; then
16958 STRINGIFY=astring.sed
16960 STRINGIFY=ostring.sed
16964 # target-specific stuff:
16974 # If the host is 64-bit, then we enable 64-bit targets by default.
16975 # This is consistent with what ../bfd/configure.ac does.
16976 if test x${want64} = xfalse; then
16977 # The cast to long int works around a bug in the HP C Compiler
16978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16980 # This bug is HP SR number 8606223364.
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16982 $as_echo_n "checking size of void *... " >&6; }
16983 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16984 $as_echo_n "(cached) " >&6
16986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16989 if test "$ac_cv_type_void_p" = yes; then
16990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16992 { as_fn_set_status 77
16993 as_fn_error "cannot compute sizeof (void *)
16994 See \`config.log' for more details." "$LINENO" 5; }; }
16996 ac_cv_sizeof_void_p=0
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17002 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17006 cat >>confdefs.h <<_ACEOF
17007 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17011 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17016 elf_list_options=FALSE
17017 elf_shlib_list_options=FALSE
17018 elf_plt_unwind_list_options=FALSE
17019 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17021 if test "$targ_alias" = "all"; then
17023 elf_list_options=TRUE
17024 elf_shlib_list_options=TRUE
17025 elf_plt_unwind_list_options=TRUE
17027 # Canonicalize the secondary target names.
17028 result=`$ac_config_sub $targ_alias 2>/dev/null`
17029 if test -n "$result"; then
17035 . ${srcdir}/configure.tgt
17037 if test "$targ" = "$target"; then
17041 if test x${want64} = xfalse; then
17042 . ${srcdir}/../bfd/config.bfd
17045 if test x${want64} = xtrue; then
17046 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17047 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17050 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17051 case " $all_emuls " in
17054 all_emuls="$all_emuls e${i}.o"
17055 eval result=\$tdir_$i
17056 test -z "$result" && result=$targ_alias
17057 echo tdir_$i=$result >> tdirs
17060 elf_list_options=TRUE
17063 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17064 elf_list_options=TRUE
17068 if test "$elf_list_options" = "TRUE"; then
17069 . ${srcdir}/emulparams/${i}.sh
17070 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17071 elf_shlib_list_options=TRUE
17073 if test x${PLT_UNWIND} = xyes; then
17074 elf_plt_unwind_list_options=TRUE
17081 for i in $targ_emul $targ_extra_libpath; do
17082 case " $all_libpath " in
17085 if test -z "$all_libpath"; then
17088 all_libpath="$all_libpath ${i}"
17094 for i in $targ_extra_ofiles; do
17095 case " $all_emul_extras " in
17098 all_emul_extras="$all_emul_extras ${i}"
17106 if test x$ac_default_compressed_debug_sections = xyes ; then
17108 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17120 if test x${all_targets} = xtrue; then
17121 if test x${want64} = xtrue; then
17122 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17123 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17125 EMULATION_OFILES='$(ALL_EMULATIONS)'
17126 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17129 EMULATION_OFILES=$all_emuls
17130 EMUL_EXTRA_OFILES=$all_emul_extras
17136 EMULATION_LIBPATH=$all_libpath
17139 if test x${enable_static} = xno; then
17140 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17142 TESTBFDLIB="../bfd/.libs/libbfd.a"
17146 target_vendor=${target_vendor=$host_vendor}
17147 case "$target_vendor" in
17148 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17149 *) EXTRA_SHLIB_EXTENSION= ;;
17152 case "$target_os" in
17153 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17156 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17169 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17171 cat >confcache <<\_ACEOF
17172 # This file is a shell script that caches the results of configure
17173 # tests run on this system so they can be shared between configure
17174 # scripts and configure runs, see configure's option --config-cache.
17175 # It is not useful on other systems. If it contains results you don't
17176 # want to keep, you may remove or edit it.
17178 # config.status only pays attention to the cache file if you give it
17179 # the --recheck option to rerun configure.
17181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17183 # following values.
17187 # The following way of writing the cache mishandles newlines in values,
17188 # but we know of no workaround that is simple, portable, and efficient.
17189 # So, we kill variables containing newlines.
17190 # Ultrix sh set writes to stderr and can't be redirected directly,
17191 # and sets the high bit in the cache file unless we assign to the vars.
17193 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17194 eval ac_val=\$$ac_var
17198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17202 _ | IFS | as_nl) ;; #(
17203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17204 *) { eval $ac_var=; unset $ac_var;} ;;
17210 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17211 *${as_nl}ac_space=\ *)
17212 # `set' does not quote correctly, so add quotes: double-quote
17213 # substitution turns \\\\ into \\, and sed turns \\ into \.
17216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17219 # `set' quotes correctly as required by POSIX, so do not add quotes.
17220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17234 if test -w "$cache_file"; then
17235 test "x$cache_file" != "x/dev/null" &&
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17237 $as_echo "$as_me: updating cache $cache_file" >&6;}
17238 cat confcache >$cache_file
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17241 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17247 # Let make expand exec_prefix.
17248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17250 DEFS=-DHAVE_CONFIG_H
17254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17255 # 1. Remove the extension, and $U if already installed.
17256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17257 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17259 # will be set to the directory where LIBOBJS objects are built.
17260 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17261 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17263 LIBOBJS=$ac_libobjs
17265 LTLIBOBJS=$ac_ltlibobjs
17268 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17269 as_fn_error "conditional \"AMDEP\" was never defined.
17270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17273 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17276 if test -n "$EXEEXT"; then
17278 am__EXEEXT_FALSE='#'
17280 am__EXEEXT_TRUE='#'
17284 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17285 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17288 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17289 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17292 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17293 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17296 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17297 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17300 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17301 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17305 : ${CONFIG_STATUS=./config.status}
17307 ac_clean_files_save=$ac_clean_files
17308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17310 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17312 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17314 # Generated by $as_me.
17315 # Run this file to recreate the current configuration.
17316 # Compiler output produced by configure, useful for debugging
17317 # configure, is in config.log if it exists.
17320 ac_cs_recheck=false
17323 SHELL=\${CONFIG_SHELL-$SHELL}
17326 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17327 ## -------------------- ##
17328 ## M4sh Initialization. ##
17329 ## -------------------- ##
17331 # Be more Bourne compatible
17332 DUALCASE=1; export DUALCASE # for MKS sh
17333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17336 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17337 # is contrary to our usage. Disable this feature.
17338 alias -g '${1+"$@"}'='"$@"'
17339 setopt NO_GLOB_SUBST
17341 case `(set -o) 2>/dev/null` in #(
17353 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17354 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17357 # Prefer a ksh shell builtin over an external printf program on Solaris,
17358 # but without wasting forks for bash or zsh.
17359 if test -z "$BASH_VERSION$ZSH_VERSION" \
17360 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17361 as_echo='print -r --'
17362 as_echo_n='print -rn --'
17363 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17364 as_echo='printf %s\n'
17365 as_echo_n='printf %s'
17367 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17368 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17369 as_echo_n='/usr/ucb/echo -n'
17371 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17372 as_echo_n_body='eval
17376 expr "X$arg" : "X\\(.*\\)$as_nl";
17377 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17379 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17381 export as_echo_n_body
17382 as_echo_n='sh -c $as_echo_n_body as_echo'
17384 export as_echo_body
17385 as_echo='sh -c $as_echo_body as_echo'
17388 # The user is always right.
17389 if test "${PATH_SEPARATOR+set}" != set; then
17391 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17392 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17399 # We need space, tab and new line, in precisely that order. Quoting is
17400 # there to prevent editors from complaining about space-tab.
17401 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17402 # splitting by setting IFS to empty value.)
17405 # Find who we are. Look in the path if we contain no directory separator.
17407 *[\\/]* ) as_myself=$0 ;;
17408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17409 for as_dir in $PATH
17412 test -z "$as_dir" && as_dir=.
17413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17419 # We did not find ourselves, most probably we were run as `sh COMMAND'
17420 # in which case we are not to be found in the path.
17421 if test "x$as_myself" = x; then
17424 if test ! -f "$as_myself"; then
17425 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17429 # Unset variables that we do not need and which cause bugs (e.g. in
17430 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17431 # suppresses any "Segmentation fault" message there. '((' could
17432 # trigger a bug in pdksh 5.2.14.
17433 for as_var in BASH_ENV ENV MAIL MAILPATH
17434 do eval test x\${$as_var+set} = xset \
17435 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17451 # as_fn_error ERROR [LINENO LOG_FD]
17452 # ---------------------------------
17453 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17454 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17455 # script with status $?, using 1 if that was 0.
17458 as_status=$?; test $as_status -eq 0 && as_status=1
17460 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17461 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17463 $as_echo "$as_me: error: $1" >&2
17464 as_fn_exit $as_status
17468 # as_fn_set_status STATUS
17469 # -----------------------
17470 # Set $? to STATUS, without forking.
17471 as_fn_set_status ()
17474 } # as_fn_set_status
17476 # as_fn_exit STATUS
17477 # -----------------
17478 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17482 as_fn_set_status $1
17488 # Portably unset VAR.
17491 { eval $1=; unset $1;}
17493 as_unset=as_fn_unset
17494 # as_fn_append VAR VALUE
17495 # ----------------------
17496 # Append the text in VALUE to the end of the definition contained in VAR. Take
17497 # advantage of any shell optimizations that allow amortized linear growth over
17498 # repeated appends, instead of the typical quadratic growth present in naive
17500 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17501 eval 'as_fn_append ()
17512 # as_fn_arith ARG...
17513 # ------------------
17514 # Perform arithmetic evaluation on the ARGs, and store the result in the
17515 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17516 # must be portable across $(()) and expr.
17517 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17518 eval 'as_fn_arith ()
17525 as_val=`expr "$@" || test $? -eq 1`
17530 if expr a : '\(a\)' >/dev/null 2>&1 &&
17531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17537 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17538 as_basename=basename
17543 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17549 as_me=`$as_basename -- "$0" ||
17550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17551 X"$0" : 'X\(//\)$' \| \
17552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17554 sed '/^.*\/\([^/][^/]*\)\/*$/{
17568 # Avoid depending upon Character Ranges.
17569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17572 as_cr_digits='0123456789'
17573 as_cr_alnum=$as_cr_Letters$as_cr_digits
17575 ECHO_C= ECHO_N= ECHO_T=
17576 case `echo -n x` in #(((((
17578 case `echo 'xy\c'` in
17579 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17581 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17588 rm -f conf$$ conf$$.exe conf$$.file
17589 if test -d conf$$.dir; then
17590 rm -f conf$$.dir/conf$$.file
17593 mkdir conf$$.dir 2>/dev/null
17595 if (echo >conf$$.file) 2>/dev/null; then
17596 if ln -s conf$$.file conf$$ 2>/dev/null; then
17598 # ... but there are two gotchas:
17599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17601 # In both cases, we have to default to `cp -p'.
17602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17604 elif ln conf$$.file conf$$ 2>/dev/null; then
17612 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17613 rmdir conf$$.dir 2>/dev/null
17618 # Create "$as_dir" as a directory, including parents if necessary.
17623 -*) as_dir=./$as_dir;;
17625 test -d "$as_dir" || eval $as_mkdir_p || {
17629 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17630 *) as_qdir=$as_dir;;
17632 as_dirs="'$as_qdir' $as_dirs"
17633 as_dir=`$as_dirname -- "$as_dir" ||
17634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635 X"$as_dir" : 'X\(//\)[^/]' \| \
17636 X"$as_dir" : 'X\(//\)$' \| \
17637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17638 $as_echo X"$as_dir" |
17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17643 /^X\(\/\/\)[^/].*/{
17656 test -d "$as_dir" && break
17658 test -z "$as_dirs" || eval "mkdir $as_dirs"
17659 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17663 if mkdir -p . 2>/dev/null; then
17664 as_mkdir_p='mkdir -p "$as_dir"'
17666 test -d ./-p && rmdir ./-p
17670 if test -x / >/dev/null 2>&1; then
17671 as_test_x='test -x'
17673 if ls -dL / >/dev/null 2>&1; then
17680 if test -d "$1"; then
17686 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17687 ???[sx]*):;;*)false;;esac;fi
17691 as_executable_p=$as_test_x
17693 # Sed expression to map a string onto a valid CPP name.
17694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17696 # Sed expression to map a string onto a valid variable name.
17697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17701 ## ----------------------------------- ##
17702 ## Main body of $CONFIG_STATUS script. ##
17703 ## ----------------------------------- ##
17705 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17708 # Save the log message, to keep $0 and so on meaningful, and to
17709 # report actual input values of CONFIG_FILES etc. instead of their
17710 # values after options handling.
17712 This file was extended by ld $as_me 2.26.51, which was
17713 generated by GNU Autoconf 2.64. Invocation command line was
17715 CONFIG_FILES = $CONFIG_FILES
17716 CONFIG_HEADERS = $CONFIG_HEADERS
17717 CONFIG_LINKS = $CONFIG_LINKS
17718 CONFIG_COMMANDS = $CONFIG_COMMANDS
17721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17726 case $ac_config_files in *"
17727 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17730 case $ac_config_headers in *"
17731 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17736 # Files that config.status was made for.
17737 config_files="$ac_config_files"
17738 config_headers="$ac_config_headers"
17739 config_commands="$ac_config_commands"
17743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17745 \`$as_me' instantiates files and other configuration actions
17746 from templates according to the current configuration. Unless the files
17747 and actions are specified as TAGs, all are instantiated by default.
17749 Usage: $0 [OPTION]... [TAG]...
17751 -h, --help print this help, then exit
17752 -V, --version print version number and configuration settings, then exit
17753 -q, --quiet, --silent
17754 do not print progress messages
17755 -d, --debug don't remove temporary files
17756 --recheck update $as_me by reconfiguring in the same conditions
17757 --file=FILE[:TEMPLATE]
17758 instantiate the configuration file FILE
17759 --header=FILE[:TEMPLATE]
17760 instantiate the configuration header FILE
17762 Configuration files:
17765 Configuration headers:
17768 Configuration commands:
17771 Report bugs to the package provider."
17774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776 ld config.status 2.26.51
17777 configured by $0, generated by GNU Autoconf 2.64,
17778 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17780 Copyright (C) 2009 Free Software Foundation, Inc.
17781 This config.status script is free software; the Free Software Foundation
17782 gives unlimited permission to copy, distribute and modify it."
17789 test -n "\$AWK" || AWK=awk
17792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17793 # The default lists apply if the user does not specify any file.
17799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17811 # Handling of the options.
17812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17815 $as_echo "$ac_cs_version"; exit ;;
17816 --debug | --debu | --deb | --de | --d | -d )
17818 --file | --fil | --fi | --f )
17821 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17823 as_fn_append CONFIG_FILES " '$ac_optarg'"
17824 ac_need_defaults=false;;
17825 --header | --heade | --head | --hea )
17828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17830 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17831 ac_need_defaults=false;;
17833 # Conflict between --help and --header
17834 as_fn_error "ambiguous option: \`$1'
17835 Try \`$0 --help' for more information.";;
17836 --help | --hel | -h )
17837 $as_echo "$ac_cs_usage"; exit ;;
17838 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17839 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17842 # This is an error.
17843 -*) as_fn_error "unrecognized option: \`$1'
17844 Try \`$0 --help' for more information." ;;
17846 *) as_fn_append ac_config_targets " $1"
17847 ac_need_defaults=false ;;
17853 ac_configure_extra_args=
17855 if $ac_cs_silent; then
17857 ac_configure_extra_args="$ac_configure_extra_args --silent"
17861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17862 if \$ac_cs_recheck; then
17863 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17865 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17866 CONFIG_SHELL='$SHELL'
17867 export CONFIG_SHELL
17872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17877 ## Running $as_me. ##
17883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17887 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17890 # The HP-UX ksh and POSIX shell print the target directory to stdout
17891 # if CDPATH is set.
17892 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17894 sed_quote_subst='$sed_quote_subst'
17895 double_quote_subst='$double_quote_subst'
17896 delay_variable_subst='$delay_variable_subst'
17897 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17898 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17899 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17900 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17901 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17902 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17903 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17904 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17905 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17906 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17907 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17908 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17909 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17910 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17911 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17912 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17913 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17914 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17915 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17916 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17917 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17918 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17919 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17920 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17921 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17922 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17923 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17924 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17925 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17926 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17927 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17928 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17929 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17930 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17931 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17932 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17933 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17934 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17935 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17936 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17937 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17938 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17939 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17940 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17941 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17942 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17943 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17944 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17945 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"`'
17946 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17947 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17948 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17949 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17950 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17951 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17952 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17953 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17954 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17955 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17956 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17957 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17958 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17959 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17960 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17961 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17962 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17963 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17964 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17965 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17966 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17967 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17968 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17969 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17970 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17971 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17972 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17973 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17974 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17975 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17976 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17977 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17978 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17979 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17980 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17981 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17982 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17983 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17984 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17985 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17986 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17987 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17988 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17989 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17990 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17991 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17992 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17993 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17994 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17995 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17996 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17997 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17998 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17999 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18000 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18001 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18002 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18003 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18004 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18005 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18006 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18007 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18008 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18009 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18010 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18011 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18012 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18013 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18014 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18015 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18016 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18017 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18018 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18019 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18020 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18021 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18022 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18023 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18024 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18025 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18026 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18027 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18028 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18029 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18030 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18031 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18032 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18033 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18034 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18035 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18036 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18037 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18038 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18039 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18040 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18041 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18042 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18043 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18044 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18045 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18046 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18047 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18048 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18049 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18050 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18051 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18052 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18053 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18054 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18055 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18056 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18057 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18058 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18059 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18060 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18061 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18062 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18063 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18064 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18065 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18066 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18067 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18068 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18069 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18070 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18071 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18074 LTCFLAGS='$LTCFLAGS'
18075 compiler='$compiler_DEFAULT'
18077 # A function that is used when there is no print builtin or printf.
18078 func_fallback_echo ()
18080 eval 'cat <<_LTECHO_EOF
18085 # Quote evaled strings.
18099 deplibs_check_method \
18108 lt_cv_sys_global_symbol_pipe \
18109 lt_cv_sys_global_symbol_to_cdecl \
18110 lt_cv_sys_global_symbol_to_c_name_address \
18111 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18112 lt_prog_compiler_no_builtin_flag \
18113 lt_prog_compiler_wl \
18114 lt_prog_compiler_pic \
18115 lt_prog_compiler_static \
18116 lt_cv_prog_compiler_c_o \
18124 export_dynamic_flag_spec \
18125 whole_archive_flag_spec \
18126 compiler_needs_object \
18128 allow_undefined_flag \
18129 no_undefined_flag \
18130 hardcode_libdir_flag_spec \
18131 hardcode_libdir_flag_spec_ld \
18132 hardcode_libdir_separator \
18137 variables_saved_for_relink \
18139 library_names_spec \
18141 install_override_mode \
18145 compiler_lib_search_dirs \
18150 compiler_lib_search_path \
18154 lt_prog_compiler_no_builtin_flag_CXX \
18155 lt_prog_compiler_wl_CXX \
18156 lt_prog_compiler_pic_CXX \
18157 lt_prog_compiler_static_CXX \
18158 lt_cv_prog_compiler_c_o_CXX \
18159 export_dynamic_flag_spec_CXX \
18160 whole_archive_flag_spec_CXX \
18161 compiler_needs_object_CXX \
18163 allow_undefined_flag_CXX \
18164 no_undefined_flag_CXX \
18165 hardcode_libdir_flag_spec_CXX \
18166 hardcode_libdir_flag_spec_ld_CXX \
18167 hardcode_libdir_separator_CXX \
18168 fix_srcfile_path_CXX \
18169 exclude_expsyms_CXX \
18170 include_expsyms_CXX \
18171 file_list_spec_CXX \
18172 compiler_lib_search_dirs_CXX \
18173 predep_objects_CXX \
18174 postdep_objects_CXX \
18177 compiler_lib_search_path_CXX; do
18178 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18179 *[\\\\\\\`\\"\\\$]*)
18180 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18183 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18188 # Double-quote double-evaled strings.
18189 for var in reload_cmds \
18190 old_postinstall_cmds \
18191 old_postuninstall_cmds \
18193 extract_expsyms_cmds \
18194 old_archive_from_new_cmds \
18195 old_archive_from_expsyms_cmds \
18197 archive_expsym_cmds \
18199 module_expsym_cmds \
18200 export_symbols_cmds \
18203 postuninstall_cmds \
18205 sys_lib_search_path_spec \
18206 sys_lib_dlsearch_path_spec \
18208 old_archive_cmds_CXX \
18209 old_archive_from_new_cmds_CXX \
18210 old_archive_from_expsyms_cmds_CXX \
18212 archive_expsym_cmds_CXX \
18214 module_expsym_cmds_CXX \
18215 export_symbols_cmds_CXX \
18216 prelink_cmds_CXX; do
18217 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18218 *[\\\\\\\`\\"\\\$]*)
18219 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18222 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18227 ac_aux_dir='$ac_aux_dir'
18228 xsi_shell='$xsi_shell'
18229 lt_shell_append='$lt_shell_append'
18231 # See if we are running on zsh, and set the options which allow our
18232 # commands through without removal of \ escapes INIT.
18233 if test -n "\${ZSH_VERSION+set}" ; then
18234 setopt NO_GLOB_SUBST
18240 TIMESTAMP='$TIMESTAMP'
18248 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18249 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18251 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18252 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18253 LINGUAS="${LINGUAS-%UNSET%}"
18258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18260 # Handling of arguments.
18261 for ac_config_target in $ac_config_targets
18263 case $ac_config_target in
18264 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18265 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18266 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18267 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18269 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18271 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18276 # If the user did not use the arguments to specify the items to instantiate,
18277 # then the envvar interface is used. Set only those that are not.
18278 # We use the long form for the default assignment because of an extremely
18279 # bizarre bug on SunOS 4.1.3.
18280 if $ac_need_defaults; then
18281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18286 # Have a temporary directory for convenience. Make it in the build tree
18287 # simply because there is no reason against having it here, and in addition,
18288 # creating and moving files from /tmp can sometimes cause problems.
18289 # Hook for its removal unless debugging.
18290 # Note that there is a small window in which the directory will not be cleaned:
18291 # after its creation but before its name has been assigned to `$tmp'.
18295 trap 'exit_status=$?
18296 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18298 trap 'as_fn_exit 1' 1 2 13 15
18300 # Create a (secure) tmp directory for tmp files.
18303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18304 test -n "$tmp" && test -d "$tmp"
18307 tmp=./conf$$-$RANDOM
18308 (umask 077 && mkdir "$tmp")
18309 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18311 # Set up the scripts for CONFIG_FILES section.
18312 # No need to generate them if there are no CONFIG_FILES.
18313 # This happens for instance with `./config.status config.h'.
18314 if test -n "$CONFIG_FILES"; then
18316 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18317 ac_cs_awk_getline=:
18318 ac_cs_awk_pipe_init=
18319 ac_cs_awk_read_file='
18320 while ((getline aline < (F[key])) > 0)
18323 ac_cs_awk_pipe_fini=
18325 ac_cs_awk_getline=false
18326 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18327 ac_cs_awk_read_file='
18329 print "cat " F[key] " &&"
18330 '$ac_cs_awk_pipe_init
18331 # The final `:' finishes the AND list.
18332 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18334 ac_cr=`echo X | tr X '\015'`
18335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18336 # But we know of no other shell where ac_cr would be empty at this
18337 # point, so we can use a bashism as a fallback.
18338 if test "x$ac_cr" = x; then
18339 eval ac_cr=\$\'\\r\'
18341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18345 ac_cs_awk_cr=$ac_cr
18348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18351 # Create commands to substitute file output variables.
18353 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18354 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18355 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18358 } >conf$$files.sh &&
18359 . ./conf$$files.sh ||
18360 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18361 rm -f conf$$files.sh
18364 echo "cat >conf$$subs.awk <<_ACEOF" &&
18365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18367 } >conf$$subs.sh ||
18368 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18371 for ac_last_try in false false false false false :; do
18372 . ./conf$$subs.sh ||
18373 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18375 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18376 if test $ac_delim_n = $ac_delim_num; then
18378 elif $ac_last_try; then
18379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18384 rm -f conf$$subs.sh
18386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18387 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18391 s/^/S["/; s/!.*/"]=/
18401 s/\(.\{148\}\).*/\1/
18403 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18408 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18415 s/\(.\{148\}\).*/\1/
18417 s/["\\]/\\&/g; s/^/"/; s/$/"/
18421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18426 ' <conf$$subs.awk | sed '
18431 ' >>$CONFIG_STATUS || ac_write_fail=1
18432 rm -f conf$$subs.awk
18433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18435 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18436 for (key in S) S_is_set[key] = 1
18438 \$ac_cs_awk_pipe_init
18442 nfields = split(line, field, "@")
18444 len = length(field[1])
18445 for (i = 2; i < nfields; i++) {
18447 keylen = length(key)
18448 if (S_is_set[key]) {
18450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18451 len += length(value) + length(field[++i])
18456 if (nfields == 3 && !substed) {
18458 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18459 \$ac_cs_awk_read_file
18465 \$ac_cs_awk_pipe_fini
18468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18469 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18470 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18473 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18474 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18479 # trailing colons and then remove the whole line if VPATH becomes empty
18480 # (actually we leave an empty line to preserve line numbers).
18481 if test "x$srcdir" = x.; then
18482 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18483 s/:*\$(srcdir):*/:/
18484 s/:*\${srcdir}:*/:/
18486 s/^\([^=]*=[ ]*\):*/\1/
18492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493 fi # test -n "$CONFIG_FILES"
18495 # Set up the scripts for CONFIG_HEADERS section.
18496 # No need to generate them if there are no CONFIG_HEADERS.
18497 # This happens for instance with `./config.status Makefile'.
18498 if test -n "$CONFIG_HEADERS"; then
18499 cat >"$tmp/defines.awk" <<\_ACAWK ||
18503 # Transform confdefs.h into an awk script `defines.awk', embedded as
18504 # here-document in config.status, that substitutes the proper values into
18505 # config.h.in to produce config.h.
18507 # Create a delimiter string that does not exist in confdefs.h, to ease
18508 # handling of long lines.
18510 for ac_last_try in false false :; do
18511 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18512 if test -z "$ac_t"; then
18514 elif $ac_last_try; then
18515 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18521 # For the awk script, D is an array of macro values keyed by name,
18522 # likewise P contains macro parameters if any. Preserve backslash
18523 # newline sequences.
18525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18527 s/.\{148\}/&'"$ac_delim"'/g
18530 s/^[ ]*#[ ]*define[ ][ ]*/ /
18537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18539 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18544 D["\1"]=" \3\\\\\\n"\\/p
18546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18551 s/.\{148\}/&'"$ac_delim"'/g
18556 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18559 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18561 ' <confdefs.h | sed '
18562 s/'"$ac_delim"'/"\\\
18563 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18566 for (key in D) D_is_set[key] = 1
18569 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18571 split(line, arg, " ")
18572 if (arg[1] == "#") {
18576 defundef = substr(arg[1], 2)
18579 split(mac1, mac2, "(") #)
18581 prefix = substr(line, 1, index(line, defundef) - 1)
18582 if (D_is_set[macro]) {
18583 # Preserve the white space surrounding the "#".
18584 print prefix "define", macro P[macro] D[macro]
18587 # Replace #undef with comments. This is necessary, for example,
18588 # in the case of _POSIX_SOURCE, which is predefined and required
18589 # on some systems where configure will not decide to define it.
18590 if (defundef == "undef") {
18591 print "/*", prefix defundef, macro, "*/"
18599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18600 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18601 fi # test -n "$CONFIG_HEADERS"
18604 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18609 :[FHLC]) ac_mode=$ac_tag; continue;;
18611 case $ac_mode$ac_tag in
18613 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18614 :[FH]-) ac_tag=-:-;;
18615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18632 -) ac_f="$tmp/stdin";;
18633 *) # Look for the file first in the build tree, then in the source tree
18634 # (if the path is not absolute). The absolute path cannot be DOS-style,
18635 # because $ac_f cannot contain `:'.
18639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18641 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18643 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18644 as_fn_append ac_file_inputs " '$ac_f'"
18647 # Let's still pretend it is `configure' which instantiates (i.e., don't
18648 # use $as_me), people would be surprised to read:
18649 # /* config.h. Generated by config.status. */
18650 configure_input='Generated from '`
18651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18653 if test x"$ac_file" != x-; then
18654 configure_input="$ac_file. $configure_input"
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18656 $as_echo "$as_me: creating $ac_file" >&6;}
18658 # Neutralize special characters interpreted by sed in replacement strings.
18659 case $configure_input in #(
18660 *\&* | *\|* | *\\* )
18661 ac_sed_conf_input=`$as_echo "$configure_input" |
18662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18663 *) ac_sed_conf_input=$configure_input;;
18667 *:-:* | *:-) cat >"$tmp/stdin" \
18668 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18673 ac_dir=`$as_dirname -- "$ac_file" ||
18674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18675 X"$ac_file" : 'X\(//\)[^/]' \| \
18676 X"$ac_file" : 'X\(//\)$' \| \
18677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18678 $as_echo X"$ac_file" |
18679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18683 /^X\(\/\/\)[^/].*/{
18696 as_dir="$ac_dir"; as_fn_mkdir_p
18700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18703 # A ".." for each directory in $ac_dir_suffix.
18704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18705 case $ac_top_builddir_sub in
18706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18710 ac_abs_top_builddir=$ac_pwd
18711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18712 # for backward compatibility:
18713 ac_top_builddir=$ac_top_build_prefix
18716 .) # We are building in place.
18718 ac_top_srcdir=$ac_top_builddir_sub
18719 ac_abs_top_srcdir=$ac_pwd ;;
18720 [\\/]* | ?:[\\/]* ) # Absolute name.
18721 ac_srcdir=$srcdir$ac_dir_suffix;
18722 ac_top_srcdir=$srcdir
18723 ac_abs_top_srcdir=$srcdir ;;
18724 *) # Relative name.
18725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18726 ac_top_srcdir=$ac_top_build_prefix$srcdir
18727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18742 ac_MKDIR_P=$MKDIR_P
18744 [\\/$]* | ?:[\\/]* ) ;;
18745 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18750 # If the template does not know about datarootdir, expand it.
18751 # FIXME: This hack should be removed a few years after 2.60.
18752 ac_datarootdir_hack=; ac_datarootdir_seen=
18763 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18764 *datarootdir*) ac_datarootdir_seen=yes;;
18765 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18767 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18770 ac_datarootdir_hack='
18771 s&@datadir@&$datadir&g
18772 s&@docdir@&$docdir&g
18773 s&@infodir@&$infodir&g
18774 s&@localedir@&$localedir&g
18775 s&@mandir@&$mandir&g
18776 s&\\\${datarootdir}&$datarootdir&g' ;;
18780 # Neutralize VPATH when `$srcdir' = `.'.
18781 # Shell code in configure.ac might set extrasub.
18782 # FIXME: do we really want to maintain this feature?
18783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18784 ac_sed_extra="$ac_vpsub
18787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18790 s|@configure_input@|$ac_sed_conf_input|;t t
18791 s&@top_builddir@&$ac_top_builddir_sub&;t t
18792 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18793 s&@srcdir@&$ac_srcdir&;t t
18794 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18795 s&@top_srcdir@&$ac_top_srcdir&;t t
18796 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18797 s&@builddir@&$ac_builddir&;t t
18798 s&@abs_builddir@&$ac_abs_builddir&;t t
18799 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18800 s&@INSTALL@&$ac_INSTALL&;t t
18801 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18802 $ac_datarootdir_hack
18804 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18805 if $ac_cs_awk_getline; then
18806 $AWK -f "$tmp/subs.awk"
18808 $AWK -f "$tmp/subs.awk" | $SHELL
18810 || as_fn_error "could not create $ac_file" "$LINENO" 5
18812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18813 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18816 which seems to be undefined. Please make sure it is defined." >&5
18817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18818 which seems to be undefined. Please make sure it is defined." >&2;}
18822 -) cat "$tmp/out" && rm -f "$tmp/out";;
18823 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18825 || as_fn_error "could not create $ac_file" "$LINENO" 5
18831 if test x"$ac_file" != x-; then
18833 $as_echo "/* $configure_input */" \
18834 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18835 } >"$tmp/config.h" \
18836 || as_fn_error "could not create $ac_file" "$LINENO" 5
18837 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18842 mv "$tmp/config.h" "$ac_file" \
18843 || as_fn_error "could not create $ac_file" "$LINENO" 5
18846 $as_echo "/* $configure_input */" \
18847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18848 || as_fn_error "could not create -" "$LINENO" 5
18850 # Compute "$ac_file"'s index in $config_headers.
18853 for _am_header in $config_headers :; do
18854 case $_am_header in
18855 $_am_arg | $_am_arg:* )
18858 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18861 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18862 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18863 X"$_am_arg" : 'X\(//\)[^/]' \| \
18864 X"$_am_arg" : 'X\(//\)$' \| \
18865 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18866 $as_echo X"$_am_arg" |
18867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18871 /^X\(\/\/\)[^/].*/{
18883 s/.*/./; q'`/stamp-h$_am_stamp_count
18886 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18887 $as_echo "$as_me: executing $ac_file commands" >&6;}
18892 case $ac_file$ac_mode in
18893 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18894 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18895 # are listed without --file. Let's play safe and only enable the eval
18896 # if we detect the quoting.
18897 case $CONFIG_FILES in
18898 *\'*) eval set x "$CONFIG_FILES" ;;
18899 *) set x $CONFIG_FILES ;;
18904 # Strip MF so we end up with the name of the file.
18905 mf=`echo "$mf" | sed -e 's/:.*$//'`
18906 # Check whether this is an Automake generated Makefile or not.
18907 # We used to match only the files named `Makefile.in', but
18908 # some people rename them; so instead we look at the file content.
18909 # Grep'ing the first line is not enough: some people post-process
18910 # each Makefile.in and add a new line on top of each file to say so.
18911 # Grep'ing the whole file is not good either: AIX grep has a line
18912 # limit of 2048, but all sed's we know have understand at least 4000.
18913 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18914 dirpart=`$as_dirname -- "$mf" ||
18915 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18916 X"$mf" : 'X\(//\)[^/]' \| \
18917 X"$mf" : 'X\(//\)$' \| \
18918 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18924 /^X\(\/\/\)[^/].*/{
18940 # Extract the definition of DEPDIR, am__include, and am__quote
18941 # from the Makefile without running `make'.
18942 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18943 test -z "$DEPDIR" && continue
18944 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18945 test -z "am__include" && continue
18946 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18947 # When using ansi2knr, U may be empty or an underscore; expand it
18948 U=`sed -n 's/^U = //p' < "$mf"`
18949 # Find all dependency output files, they are included files with
18950 # $(DEPDIR) in their names. We invoke sed twice because it is the
18951 # simplest approach to changing $(DEPDIR) to its actual value in the
18953 for file in `sed -n "
18954 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18955 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18956 # Make sure the directory exists.
18957 test -f "$dirpart/$file" && continue
18958 fdir=`$as_dirname -- "$file" ||
18959 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18960 X"$file" : 'X\(//\)[^/]' \| \
18961 X"$file" : 'X\(//\)$' \| \
18962 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18963 $as_echo X"$file" |
18964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18968 /^X\(\/\/\)[^/].*/{
18981 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18982 # echo "creating $dirpart/$file"
18983 echo '# dummy' > "$dirpart/$file"
18990 # See if we are running on zsh, and set the options which allow our
18991 # commands through without removal of \ escapes.
18992 if test -n "${ZSH_VERSION+set}" ; then
18993 setopt NO_GLOB_SUBST
18996 cfgfile="${ofile}T"
18997 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19000 cat <<_LT_EOF >> "$cfgfile"
19003 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19004 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19009 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19010 # Written by Gordon Matzigkeit, 1996
19012 # This file is part of GNU Libtool.
19014 # GNU Libtool is free software; you can redistribute it and/or
19015 # modify it under the terms of the GNU General Public License as
19016 # published by the Free Software Foundation; either version 2 of
19017 # the License, or (at your option) any later version.
19019 # As a special exception to the GNU General Public License,
19020 # if you distribute this file as part of a program or library that
19021 # is built using GNU Libtool, you may include this file under the
19022 # same distribution terms that you use for the rest of that program.
19024 # GNU Libtool is distributed in the hope that it will be useful,
19025 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19026 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19027 # GNU General Public License for more details.
19029 # You should have received a copy of the GNU General Public License
19030 # along with GNU Libtool; see the file COPYING. If not, a copy
19031 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19032 # obtained by writing to the Free Software Foundation, Inc.,
19033 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19036 # The names of the tagged configurations supported by this script.
19037 available_tags="CXX "
19039 # ### BEGIN LIBTOOL CONFIG
19041 # Which release of libtool.m4 was used?
19042 macro_version=$macro_version
19043 macro_revision=$macro_revision
19045 # Whether or not to build shared libraries.
19046 build_libtool_libs=$enable_shared
19048 # Whether or not to build static libraries.
19049 build_old_libs=$enable_static
19051 # What type of objects to build.
19054 # Whether or not to optimize for fast installation.
19055 fast_install=$enable_fast_install
19057 # Shell to use when invoking shell scripts.
19060 # An echo program that protects backslashes.
19064 host_alias=$host_alias
19068 # The build system.
19069 build_alias=$build_alias
19073 # A sed program that does not truncate output.
19076 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19077 Xsed="\$SED -e 1s/^X//"
19079 # A grep program that handles long lines.
19085 # A literal string matcher.
19088 # A BSD- or MS-compatible name lister.
19091 # Whether we need soft or hard links.
19094 # What is the maximum length of a command?
19095 max_cmd_len=$max_cmd_len
19097 # Object file suffix (normally "o").
19100 # Executable file suffix (normally "").
19103 # whether the shell understands "unset".
19106 # turn spaces into newlines.
19109 # turn newlines into spaces.
19112 # An object symbol dumper.
19113 OBJDUMP=$lt_OBJDUMP
19115 # Method to check whether dependent libraries are shared objects.
19116 deplibs_check_method=$lt_deplibs_check_method
19118 # Command to use when deplibs_check_method == "file_magic".
19119 file_magic_cmd=$lt_file_magic_cmd
19123 AR_FLAGS=$lt_AR_FLAGS
19125 # A symbol stripping program.
19128 # Commands used to install an old-style archive.
19130 old_postinstall_cmds=$lt_old_postinstall_cmds
19131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19133 # Whether to use a lock for old archive extraction.
19134 lock_old_archive_extraction=$lock_old_archive_extraction
19139 # LTCC compiler flags.
19140 LTCFLAGS=$lt_CFLAGS
19142 # Take the output of nm and produce a listing of raw symbols and C names.
19143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19145 # Transform the output of nm in a proper C declaration.
19146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19148 # Transform the output of nm in a C name address pair.
19149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19151 # Transform the output of nm in a C name address pair when lib prefix is needed.
19152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19154 # The name of the directory that contains temporary libtool files.
19157 # Used to examine libraries when file_magic_cmd begins with "file".
19158 MAGIC_CMD=$MAGIC_CMD
19160 # Must we lock files when doing compilation?
19161 need_locks=$lt_need_locks
19163 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19164 DSYMUTIL=$lt_DSYMUTIL
19166 # Tool to change global to local symbols on Mac OS X.
19169 # Tool to manipulate fat objects and archives on Mac OS X.
19172 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19175 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19176 OTOOL64=$lt_OTOOL64
19178 # Old archive suffix (normally "a").
19181 # Shared library suffix (normally ".so").
19182 shrext_cmds=$lt_shrext_cmds
19184 # The commands to extract the exported symbol list from a shared archive.
19185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19187 # Variables whose values should be saved in libtool wrapper scripts and
19188 # restored at link time.
19189 variables_saved_for_relink=$lt_variables_saved_for_relink
19191 # Do we need the "lib" prefix for modules?
19192 need_lib_prefix=$need_lib_prefix
19194 # Do we need a version for libraries?
19195 need_version=$need_version
19197 # Library versioning type.
19198 version_type=$version_type
19200 # Shared library runtime path variable.
19201 runpath_var=$runpath_var
19203 # Shared library path variable.
19204 shlibpath_var=$shlibpath_var
19206 # Is shlibpath searched before the hard-coded library search path?
19207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19209 # Format of library name prefix.
19210 libname_spec=$lt_libname_spec
19212 # List of archive names. First name is the real one, the rest are links.
19213 # The last name is the one that the linker finds with -lNAME
19214 library_names_spec=$lt_library_names_spec
19216 # The coded name of the library, if different from the real name.
19217 soname_spec=$lt_soname_spec
19219 # Permission mode override for installation of shared libraries.
19220 install_override_mode=$lt_install_override_mode
19222 # Command to use after installation of a shared archive.
19223 postinstall_cmds=$lt_postinstall_cmds
19225 # Command to use after uninstallation of a shared archive.
19226 postuninstall_cmds=$lt_postuninstall_cmds
19228 # Commands used to finish a libtool library installation in a directory.
19229 finish_cmds=$lt_finish_cmds
19231 # As "finish_cmds", except a single script fragment to be evaled but
19233 finish_eval=$lt_finish_eval
19235 # Whether we should hardcode library paths into libraries.
19236 hardcode_into_libs=$hardcode_into_libs
19238 # Compile-time system search path for libraries.
19239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19241 # Run-time system search path for libraries.
19242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19244 # Whether dlopen is supported.
19245 dlopen_support=$enable_dlopen
19247 # Whether dlopen of programs is supported.
19248 dlopen_self=$enable_dlopen_self
19250 # Whether dlopen of statically linked programs is supported.
19251 dlopen_self_static=$enable_dlopen_self_static
19253 # Commands to strip libraries.
19254 old_striplib=$lt_old_striplib
19255 striplib=$lt_striplib
19258 # The linker used to build libraries.
19261 # How to create reloadable object files.
19262 reload_flag=$lt_reload_flag
19263 reload_cmds=$lt_reload_cmds
19265 # Commands used to build an old-style archive.
19266 old_archive_cmds=$lt_old_archive_cmds
19268 # A language specific compiler.
19271 # Is the compiler the GNU compiler?
19274 # Compiler flag to turn off builtin functions.
19275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19277 # How to pass a linker flag through the compiler.
19278 wl=$lt_lt_prog_compiler_wl
19280 # Additional compiler flags for building library objects.
19281 pic_flag=$lt_lt_prog_compiler_pic
19283 # Compiler flag to prevent dynamic linking.
19284 link_static_flag=$lt_lt_prog_compiler_static
19286 # Does compiler simultaneously support -c and -o options?
19287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19289 # Whether or not to add -lc for building shared libraries.
19290 build_libtool_need_lc=$archive_cmds_need_lc
19292 # Whether or not to disallow shared libs when runtime libs are static.
19293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19295 # Compiler flag to allow reflexive dlopens.
19296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19298 # Compiler flag to generate shared objects directly from archives.
19299 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19301 # Whether the compiler copes with passing no objects directly.
19302 compiler_needs_object=$lt_compiler_needs_object
19304 # Create an old-style archive from a shared archive.
19305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19307 # Create a temporary old-style archive to link instead of a shared archive.
19308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19310 # Commands used to build a shared archive.
19311 archive_cmds=$lt_archive_cmds
19312 archive_expsym_cmds=$lt_archive_expsym_cmds
19314 # Commands used to build a loadable module if different from building
19315 # a shared archive.
19316 module_cmds=$lt_module_cmds
19317 module_expsym_cmds=$lt_module_expsym_cmds
19319 # Whether we are building with GNU ld or not.
19320 with_gnu_ld=$lt_with_gnu_ld
19322 # Flag that allows shared libraries with undefined symbols to be built.
19323 allow_undefined_flag=$lt_allow_undefined_flag
19325 # Flag that enforces no undefined symbols.
19326 no_undefined_flag=$lt_no_undefined_flag
19328 # Flag to hardcode \$libdir into a binary during linking.
19329 # This must work even if \$libdir does not exist
19330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19332 # If ld is used when linking, flag to hardcode \$libdir into a binary
19333 # during linking. This must work even if \$libdir does not exist.
19334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19336 # Whether we need a single "-rpath" flag with a separated argument.
19337 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19339 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19340 # DIR into the resulting binary.
19341 hardcode_direct=$hardcode_direct
19343 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19344 # DIR into the resulting binary and the resulting library dependency is
19345 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19346 # library is relocated.
19347 hardcode_direct_absolute=$hardcode_direct_absolute
19349 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19350 # into the resulting binary.
19351 hardcode_minus_L=$hardcode_minus_L
19353 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19354 # into the resulting binary.
19355 hardcode_shlibpath_var=$hardcode_shlibpath_var
19357 # Set to "yes" if building a shared library automatically hardcodes DIR
19358 # into the library and all subsequent libraries and executables linked
19360 hardcode_automatic=$hardcode_automatic
19362 # Set to yes if linker adds runtime paths of dependent libraries
19363 # to runtime path list.
19364 inherit_rpath=$inherit_rpath
19366 # Whether libtool must link a program against all its dependency libraries.
19367 link_all_deplibs=$link_all_deplibs
19369 # Fix the shell variable \$srcfile for the compiler.
19370 fix_srcfile_path=$lt_fix_srcfile_path
19372 # Set to "yes" if exported symbols are required.
19373 always_export_symbols=$always_export_symbols
19375 # The commands to list exported symbols.
19376 export_symbols_cmds=$lt_export_symbols_cmds
19378 # Symbols that should not be listed in the preloaded symbols.
19379 exclude_expsyms=$lt_exclude_expsyms
19381 # Symbols that must always be exported.
19382 include_expsyms=$lt_include_expsyms
19384 # Commands necessary for linking programs (against libraries) with templates.
19385 prelink_cmds=$lt_prelink_cmds
19387 # Specify filename containing input files.
19388 file_list_spec=$lt_file_list_spec
19390 # How to hardcode a shared library path into an executable.
19391 hardcode_action=$hardcode_action
19393 # The directories searched by this compiler when creating a shared library.
19394 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19396 # Dependencies to place before and after the objects being linked to
19397 # create a shared library.
19398 predep_objects=$lt_predep_objects
19399 postdep_objects=$lt_postdep_objects
19400 predeps=$lt_predeps
19401 postdeps=$lt_postdeps
19403 # The library search path used internally by the compiler when linking
19404 # a shared library.
19405 compiler_lib_search_path=$lt_compiler_lib_search_path
19407 # ### END LIBTOOL CONFIG
19413 cat <<\_LT_EOF >> "$cfgfile"
19414 # AIX sometimes has problems with the GCC collect2 program. For some
19415 # reason, if we set the COLLECT_NAMES environment variable, the problems
19416 # vanish in a puff of smoke.
19417 if test "X${COLLECT_NAMES+set}" != Xset; then
19419 export COLLECT_NAMES
19426 ltmain="$ac_aux_dir/ltmain.sh"
19429 # We use sed instead of cat because bash on DJGPP gets confused if
19430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19431 # text mode, it properly converts lines to CR/LF. This bash problem
19432 # is reportedly fixed, but why not run on old versions too?
19433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19434 || (rm -f "$cfgfile"; exit 1)
19438 cat << \_LT_EOF >> "$cfgfile"
19440 # func_dirname file append nondir_replacement
19441 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19442 # otherwise set result to NONDIR_REPLACEMENT.
19446 */*) func_dirname_result="${1%/*}${2}" ;;
19447 * ) func_dirname_result="${3}" ;;
19451 # func_basename file
19454 func_basename_result="${1##*/}"
19457 # func_dirname_and_basename file append nondir_replacement
19458 # perform func_basename and func_dirname in a single function
19460 # dirname: Compute the dirname of FILE. If nonempty,
19461 # add APPEND to the result, otherwise set result
19462 # to NONDIR_REPLACEMENT.
19463 # value returned in "$func_dirname_result"
19464 # basename: Compute filename of FILE.
19465 # value retuned in "$func_basename_result"
19466 # Implementation must be kept synchronized with func_dirname
19467 # and func_basename. For efficiency, we do not delegate to
19468 # those functions but instead duplicate the functionality here.
19469 func_dirname_and_basename ()
19472 */*) func_dirname_result="${1%/*}${2}" ;;
19473 * ) func_dirname_result="${3}" ;;
19475 func_basename_result="${1##*/}"
19478 # func_stripname prefix suffix name
19479 # strip PREFIX and SUFFIX off of NAME.
19480 # PREFIX and SUFFIX must not contain globbing or regex special
19481 # characters, hashes, percent signs, but SUFFIX may contain a leading
19482 # dot (in which case that matches only a dot).
19485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19486 # positional parameters, so assign one to ordinary parameter first.
19487 func_stripname_result=${3}
19488 func_stripname_result=${func_stripname_result#"${1}"}
19489 func_stripname_result=${func_stripname_result%"${2}"}
19495 func_opt_split_opt=${1%%=*}
19496 func_opt_split_arg=${1#*=}
19503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19504 *) func_lo2o_result=${1} ;;
19508 # func_xform libobj-or-source
19511 func_xform_result=${1%.*}.lo
19514 # func_arith arithmetic-term...
19517 func_arith_result=$(( $* ))
19521 # STRING may not start with a hyphen.
19524 func_len_result=${#1}
19529 *) # Bourne compatible functions.
19530 cat << \_LT_EOF >> "$cfgfile"
19532 # func_dirname file append nondir_replacement
19533 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19534 # otherwise set result to NONDIR_REPLACEMENT.
19537 # Extract subdirectory from the argument.
19538 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19539 if test "X$func_dirname_result" = "X${1}"; then
19540 func_dirname_result="${3}"
19542 func_dirname_result="$func_dirname_result${2}"
19546 # func_basename file
19549 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19553 # func_stripname prefix suffix name
19554 # strip PREFIX and SUFFIX off of NAME.
19555 # PREFIX and SUFFIX must not contain globbing or regex special
19556 # characters, hashes, percent signs, but SUFFIX may contain a leading
19557 # dot (in which case that matches only a dot).
19558 # func_strip_suffix prefix name
19562 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19563 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19568 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19569 my_sed_long_arg='1s/^-[^=]*=//'
19574 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19575 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19581 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19584 # func_xform libobj-or-source
19587 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19590 # func_arith arithmetic-term...
19593 func_arith_result=`expr "$@"`
19597 # STRING may not start with a hyphen.
19600 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19606 case $lt_shell_append in
19608 cat << \_LT_EOF >> "$cfgfile"
19610 # func_append var value
19611 # Append VALUE to the end of shell variable VAR.
19619 cat << \_LT_EOF >> "$cfgfile"
19621 # func_append var value
19622 # Append VALUE to the end of shell variable VAR.
19633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19634 || (rm -f "$cfgfile"; exit 1)
19636 mv -f "$cfgfile" "$ofile" ||
19637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19641 cat <<_LT_EOF >> "$ofile"
19643 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19645 # The linker used to build libraries.
19648 # How to create reloadable object files.
19649 reload_flag=$lt_reload_flag_CXX
19650 reload_cmds=$lt_reload_cmds_CXX
19652 # Commands used to build an old-style archive.
19653 old_archive_cmds=$lt_old_archive_cmds_CXX
19655 # A language specific compiler.
19656 CC=$lt_compiler_CXX
19658 # Is the compiler the GNU compiler?
19661 # Compiler flag to turn off builtin functions.
19662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19664 # How to pass a linker flag through the compiler.
19665 wl=$lt_lt_prog_compiler_wl_CXX
19667 # Additional compiler flags for building library objects.
19668 pic_flag=$lt_lt_prog_compiler_pic_CXX
19670 # Compiler flag to prevent dynamic linking.
19671 link_static_flag=$lt_lt_prog_compiler_static_CXX
19673 # Does compiler simultaneously support -c and -o options?
19674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19676 # Whether or not to add -lc for building shared libraries.
19677 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19679 # Whether or not to disallow shared libs when runtime libs are static.
19680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19682 # Compiler flag to allow reflexive dlopens.
19683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19685 # Compiler flag to generate shared objects directly from archives.
19686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19688 # Whether the compiler copes with passing no objects directly.
19689 compiler_needs_object=$lt_compiler_needs_object_CXX
19691 # Create an old-style archive from a shared archive.
19692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19694 # Create a temporary old-style archive to link instead of a shared archive.
19695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19697 # Commands used to build a shared archive.
19698 archive_cmds=$lt_archive_cmds_CXX
19699 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19701 # Commands used to build a loadable module if different from building
19702 # a shared archive.
19703 module_cmds=$lt_module_cmds_CXX
19704 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19706 # Whether we are building with GNU ld or not.
19707 with_gnu_ld=$lt_with_gnu_ld_CXX
19709 # Flag that allows shared libraries with undefined symbols to be built.
19710 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19712 # Flag that enforces no undefined symbols.
19713 no_undefined_flag=$lt_no_undefined_flag_CXX
19715 # Flag to hardcode \$libdir into a binary during linking.
19716 # This must work even if \$libdir does not exist
19717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19719 # If ld is used when linking, flag to hardcode \$libdir into a binary
19720 # during linking. This must work even if \$libdir does not exist.
19721 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19723 # Whether we need a single "-rpath" flag with a separated argument.
19724 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19726 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19727 # DIR into the resulting binary.
19728 hardcode_direct=$hardcode_direct_CXX
19730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19731 # DIR into the resulting binary and the resulting library dependency is
19732 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19733 # library is relocated.
19734 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19737 # into the resulting binary.
19738 hardcode_minus_L=$hardcode_minus_L_CXX
19740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19741 # into the resulting binary.
19742 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19744 # Set to "yes" if building a shared library automatically hardcodes DIR
19745 # into the library and all subsequent libraries and executables linked
19747 hardcode_automatic=$hardcode_automatic_CXX
19749 # Set to yes if linker adds runtime paths of dependent libraries
19750 # to runtime path list.
19751 inherit_rpath=$inherit_rpath_CXX
19753 # Whether libtool must link a program against all its dependency libraries.
19754 link_all_deplibs=$link_all_deplibs_CXX
19756 # Fix the shell variable \$srcfile for the compiler.
19757 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19759 # Set to "yes" if exported symbols are required.
19760 always_export_symbols=$always_export_symbols_CXX
19762 # The commands to list exported symbols.
19763 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19765 # Symbols that should not be listed in the preloaded symbols.
19766 exclude_expsyms=$lt_exclude_expsyms_CXX
19768 # Symbols that must always be exported.
19769 include_expsyms=$lt_include_expsyms_CXX
19771 # Commands necessary for linking programs (against libraries) with templates.
19772 prelink_cmds=$lt_prelink_cmds_CXX
19774 # Specify filename containing input files.
19775 file_list_spec=$lt_file_list_spec_CXX
19777 # How to hardcode a shared library path into an executable.
19778 hardcode_action=$hardcode_action_CXX
19780 # The directories searched by this compiler when creating a shared library.
19781 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19783 # Dependencies to place before and after the objects being linked to
19784 # create a shared library.
19785 predep_objects=$lt_predep_objects_CXX
19786 postdep_objects=$lt_postdep_objects_CXX
19787 predeps=$lt_predeps_CXX
19788 postdeps=$lt_postdeps_CXX
19790 # The library search path used internally by the compiler when linking
19791 # a shared library.
19792 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19794 # ### END LIBTOOL TAG CONFIG: CXX
19799 for ac_file in $CONFIG_FILES; do
19800 # Support "outfile[:infile[:infile...]]"
19802 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19804 # PO directories have a Makefile.in generated from Makefile.in.in.
19805 case "$ac_file" in */Makefile.in)
19806 # Adjust a relative srcdir.
19807 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19808 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19809 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19810 # In autoconf-2.13 it is called $ac_given_srcdir.
19811 # In autoconf-2.50 it is called $srcdir.
19812 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19813 case "$ac_given_srcdir" in
19814 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19815 /*) top_srcdir="$ac_given_srcdir" ;;
19816 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19818 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19819 rm -f "$ac_dir/POTFILES"
19820 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19821 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19822 POMAKEFILEDEPS="POTFILES.in"
19823 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19824 # on $ac_dir but don't depend on user-specified configuration
19826 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19827 # The LINGUAS file contains the set of available languages.
19828 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19829 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19831 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19832 # Hide the ALL_LINGUAS assigment from automake.
19833 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19834 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19836 # The set of available languages was given in configure.ac.
19837 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19839 case "$ac_given_srcdir" in
19841 *) srcdirpre='$(srcdir)/' ;;
19847 for lang in $ALL_LINGUAS; do
19848 POFILES="$POFILES $srcdirpre$lang.po"
19849 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19850 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19851 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19853 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19854 # environment variable.
19856 if test -n "$ALL_LINGUAS"; then
19857 for presentlang in $ALL_LINGUAS; do
19859 if test "%UNSET%" != "$LINGUAS"; then
19860 desiredlanguages="$LINGUAS"
19862 desiredlanguages="$ALL_LINGUAS"
19864 for desiredlang in $desiredlanguages; do
19865 # Use the presentlang catalog if desiredlang is
19866 # a. equal to presentlang, or
19867 # b. a variant of presentlang (because in this case,
19868 # presentlang can be used as a fallback for messages
19869 # which are not translated in the desiredlang catalog).
19870 case "$desiredlang" in
19871 "$presentlang"*) useit=yes;;
19874 if test $useit = yes; then
19875 INST_LINGUAS="$INST_LINGUAS $presentlang"
19880 if test -n "$INST_LINGUAS"; then
19881 for lang in $INST_LINGUAS; do
19882 CATALOGS="$CATALOGS $lang.gmo"
19885 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19886 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"
19887 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19888 if test -f "$f"; then
19890 *.orig | *.bak | *~) ;;
19891 *) cat "$f" >> "$ac_dir/Makefile" ;;
19906 ac_clean_files=$ac_clean_files_save
19908 test $ac_write_fail = 0 ||
19909 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19912 # configure is writing to config.log, and then calls config.status.
19913 # config.status does its own redirection, appending to config.log.
19914 # Unfortunately, on DOS this fails, as config.log is still kept open
19915 # by configure, so config.status won't be able to write to it; its
19916 # output is simply discarded. So we exec the FD to /dev/null,
19917 # effectively closing config.log, so it can be properly (re)opened and
19918 # appended to by config.status. When coming back to configure, we
19919 # need to make the FD available again.
19920 if test "$no_create" != yes; then
19922 ac_config_status_args=
19923 test "$silent" = yes &&
19924 ac_config_status_args="$ac_config_status_args --quiet"
19926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19929 # would make configure fail if this is the last instruction.
19930 $ac_cs_success || as_fn_exit $?
19932 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19934 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}