2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for ld 2.27.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.27.51'
560 PACKAGE_STRING='ld 2.27.51'
564 ac_unique_file="ldmain.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
611 elf_plt_unwind_list_options
612 elf_shlib_list_options
615 enable_initfini_array
652 TARGET_SYSTEM_ROOT_DEFINE
682 MAINTAINER_MODE_FALSE
702 INSTALL_STRIP_PROGRAM
763 program_transform_name
774 ac_subst_files='TDIRS'
776 enable_option_checking
777 enable_dependency_tracking
778 enable_maintainer_mode
793 enable_compressed_debug_sections
796 enable_build_warnings
798 enable_initfini_array
800 ac_precious_vars='build_alias
817 # Initialize some variables set by options.
819 ac_init_version=false
820 ac_unrecognized_opts=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
933 eval enable_$ac_useropt=no ;;
935 -docdir | --docdir | --docdi | --doc | --do)
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
959 eval enable_$ac_useropt=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
974 -help | --help | --hel | --he | -h)
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1123 -site=* | --site=* | --sit=*)
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1179 eval with_$ac_useropt=no ;;
1182 # Obsolete; use --with-x.
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1199 -*) as_fn_error "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information."
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error "missing argument to $ac_option"
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1232 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1250 # Be sure to have absolute directory names.
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1263 target=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270 If a cross compiler is detected then cross compile mode will be used." >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279 test "$silent" = yes && exec 6>/dev/null
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error "pwd does not report name of working directory"
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1322 ac_srcdir_defaulted=no
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1356 \`configure' configures ld 2.27.51 to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of ld 2.27.51:";;
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-plugins Enable support for plugins
1445 --disable-largefile omit support for large files
1446 --enable-targets alternative target configurations
1447 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1448 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1449 --enable-got=<type> GOT handling scheme (target, single, negative,
1451 --enable-compressed-debug-sections={all,ld,none}
1452 compress debug sections by default]
1453 --enable-relro enable -z relro in ELF linker by default
1454 --enable-werror treat compile warnings as errors
1455 --enable-build-warnings enable build-time compiler warnings
1456 --disable-nls do not use Native Language Support
1457 --disable-initfini-array do not use .init_array/.fini_array sections
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-lib-path=dir1:dir2... set default LIB_PATH
1466 --with-sysroot=DIR Search for usr/lib et al within DIR.
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
1479 CXXCPP C++ preprocessor
1480 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1481 the first program found out of: `bison -y', `byacc', `yacc'.
1482 YFLAGS The list of arguments that will be passed by default to $YACC.
1483 This script will default YFLAGS to the empty string to avoid a
1484 default value of `-d' given by some make applications.
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 Report bugs to the package provider.
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1519 .) # We are building in place.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1552 ld configure 2.27.51
1553 generated by GNU Autoconf 2.64
1555 Copyright (C) 2009 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1602 } # ac_fn_c_try_compile
1604 # ac_fn_c_try_link LINENO
1605 # -----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 $as_test_x conftest$ac_exeext
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 } # ac_fn_c_try_link
1650 # ac_fn_cxx_try_compile LINENO
1651 # ----------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_cxx_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_cxx_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 } # ac_fn_cxx_try_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } >/dev/null && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1730 ac_fn_c_check_header_mongrel ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1743 # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1754 ac_header_compiler=no
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1770 ac_header_preproc=no
1772 rm -f conftest.err conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1776 # So? What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1802 eval "$3=\$ac_header_compiler"
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_check_header_mongrel
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815 # that executables *can* be run.
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=$ac_status
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1871 if ac_fn_c_try_compile "$LINENO"; then :
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_compile
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900 #define $2 innocuous_$2
1902 /* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1908 # include <limits.h>
1910 # include <assert.h>
1915 /* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined __stub_$2 || defined __stub___$2
1937 if ac_fn_c_try_link "$LINENO"; then :
1942 rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950 } # ac_fn_c_check_func
1952 # ac_fn_cxx_try_cpp LINENO
1953 # ------------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_cpp ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } >/dev/null && {
1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 } # ac_fn_cxx_try_cpp
1989 # ac_fn_cxx_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_cxx_try_link ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 $as_test_x conftest$ac_exeext
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 } # ac_fn_cxx_try_link
2035 # ac_fn_c_check_decl LINENO SYMBOL VAR
2036 # ------------------------------------
2037 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2038 ac_fn_c_check_decl ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 as_decl_name=`echo $2|sed 's/ *(.*//'`
2042 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2044 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2045 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2046 $as_echo_n "(cached) " >&6
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2054 #ifndef $as_decl_name
2056 (void) $as_decl_use;
2058 (void) $as_decl_name;
2066 if ac_fn_c_try_compile "$LINENO"; then :
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 } # ac_fn_c_check_decl
2080 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081 # --------------------------------------------
2082 # Tries to find the compile-time value of EXPR in a program that includes
2083 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2085 ac_fn_c_compute_int ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2096 static int test_array [1 - 2 * !(($2) >= 0)];
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid; break
2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123 if test $ac_lo -le $ac_mid; then
2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) < 0)];
2145 if ac_fn_c_try_compile "$LINENO"; then :
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_lo=$ac_mid; break
2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165 if test $ac_mid -le $ac_hi; then
2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2198 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2210 static long int longval () { return $2; }
2211 static unsigned long int ulongval () { return $2; }
2218 FILE *f = fopen ("conftest.val", "w");
2223 long int i = longval ();
2226 fprintf (f, "%ld", i);
2230 unsigned long int i = ulongval ();
2233 fprintf (f, "%lu", i);
2235 /* Do not output a trailing newline, as this causes \r\n confusion
2236 on some platforms. */
2237 return ferror (f) || fclose (f) != 0;
2243 if ac_fn_c_try_run "$LINENO"; then :
2244 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249 conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 } # ac_fn_c_compute_int
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2261 It was created by ld $as_me 2.27.51, which was
2262 generated by GNU Autoconf 2.64. Invocation command line was
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2322 ac_must_keep_next=false
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351 -* ) ac_must_keep_next=true ;;
2354 as_fn_append ac_configure_args " '$ac_arg'"
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2373 ## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##
2378 # The following way of writing the cache mishandles newlines in values,
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2389 _ | IFS | as_nl) ;; #(
2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391 *) { eval $ac_var=; unset $ac_var;} ;;
2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
2399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411 ## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##
2416 for ac_var in $ac_subst_vars
2418 eval ac_val=\$$ac_var
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 $as_echo "$ac_var='\''$ac_val'\''"
2426 if test -n "$ac_subst_files"; then
2428 ## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##
2433 for ac_var in $ac_subst_files
2435 eval ac_val=\$$ac_var
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439 $as_echo "$ac_var='\''$ac_val'\''"
2444 if test -s confdefs.h; then
2454 test "$ac_signal" != 0 &&
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462 for ac_signal in 1 2 13 15; do
2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2468 rm -f -r conftest* confdefs.h
2470 $as_echo "/* confdefs.h */" > confdefs.h
2472 # Predefined preprocessor variables.
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_NAME "$PACKAGE_NAME"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_STRING "$PACKAGE_STRING"
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_URL "$PACKAGE_URL"
2499 # Let the site file select an alternate cache file if it wants to.
2500 # Prefer an explicitly selected file to automatically selected ones.
2503 if test -n "$CONFIG_SITE"; then
2504 ac_site_file1=$CONFIG_SITE
2505 elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2512 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2514 test "x$ac_site_file" = xNONE && continue
2515 if test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2523 if test -r "$cache_file"; then
2524 # Some versions of bash will fail to source /dev/null (special
2525 # files actually), so we avoid doing that.
2526 if test -f "$cache_file"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531 *) . "./$cache_file";;
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536 $as_echo "$as_me: creating cache $cache_file" >&6;}
2540 # Check that the precious variables saved in the cache have kept the same
2542 ac_cache_corrupted=false
2543 for ac_var in $ac_precious_vars; do
2544 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2545 eval ac_new_set=\$ac_env_${ac_var}_set
2546 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2547 eval ac_new_val=\$ac_env_${ac_var}_value
2548 case $ac_old_set,$ac_new_set in
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2559 if test "x$ac_old_val" != "x$ac_new_val"; then
2560 # differences in whitespace do not lead to failure.
2561 ac_old_val_w=`echo x $ac_old_val`
2562 ac_new_val_w=`echo x $ac_new_val`
2563 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2565 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2566 ac_cache_corrupted=:
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2569 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2570 eval $ac_var=\$ac_old_val
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2573 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2575 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2578 # Pass precious variables to config.status.
2579 if test "$ac_new_set" = set; then
2581 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2582 *) ac_arg=$ac_var=$ac_new_val ;;
2584 case " $ac_configure_args " in
2585 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2586 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2590 if $ac_cache_corrupted; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2594 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2595 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615 for ac_t in install-sh install.sh shtool; do
2616 if test -f "$ac_dir/$ac_t"; then
2618 ac_install_sh="$ac_aux_dir/$ac_t -c"
2623 if test -z "$ac_aux_dir"; then
2624 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2645 ac_build_alias=$build_alias
2646 test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x &&
2649 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2650 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655 $as_echo "$ac_cv_build" >&6; }
2656 case $ac_cv_build in
2658 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2661 ac_save_IFS=$IFS; IFS='-'
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2671 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675 $as_echo_n "checking host system type... " >&6; }
2676 if test "${ac_cv_host+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2679 if test "x$host_alias" = x; then
2680 ac_cv_host=$ac_cv_build
2682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688 $as_echo "$ac_cv_host" >&6; }
2691 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2694 ac_save_IFS=$IFS; IFS='-'
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2704 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708 $as_echo_n "checking target system type... " >&6; }
2709 if test "${ac_cv_target+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2712 if test "x$target_alias" = x; then
2713 ac_cv_target=$ac_cv_host
2715 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721 $as_echo "$ac_cv_target" >&6; }
2722 case $ac_cv_target in
2724 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2726 target=$ac_cv_target
2727 ac_save_IFS=$IFS; IFS='-'
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2737 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2740 # The aliases save the names the user supplied, while $host etc.
2741 # will get canonicalized.
2742 test -n "$target_alias" &&
2743 test "$program_prefix$program_suffix$program_transform_name" = \
2745 program_prefix=${target_alias}-
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 if test -n "$ac_tool_prefix"; then
2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_CC+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2791 if test -z "$ac_cv_prog_CC"; then
2793 # Extract the first word of "gcc", so it can be a program name with args.
2794 set dummy gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC="gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823 $as_echo "$ac_ct_CC" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2829 if test "x$ac_ct_CC" = x; then
2832 case $cross_compiling:$ac_tool_warned in
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2844 if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}cc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2885 if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887 set dummy cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905 ac_prog_rejected=yes
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 if test $ac_prog_rejected = yes; then
2917 # We found a bogon in the path, so make sure we never use it.
2918 set dummy $ac_cv_prog_CC
2920 if test $# != 0; then
2921 # We chose a different compiler from the bogus one.
2922 # However, it has the same basename, so the bogon will be chosen
2923 # first if we set CC to just the basename; use the full file name.
2925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl.exe
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2982 test -n "$CC" && break
2985 if test -z "$CC"; then
2987 for ac_prog in cl.exe
2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2990 set dummy $ac_prog; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="$ac_prog"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3026 test -n "$ac_ct_CC" && break
3029 if test "x$ac_ct_CC" = x; then
3032 case $cross_compiling:$ac_tool_warned in
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3045 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error "no acceptable C compiler found in \$PATH
3048 See \`config.log' for more details." "$LINENO" 5; }
3050 # Provide some information about the compiler.
3051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3054 for ac_option in --version -v -V -qversion; do
3055 { { ac_try="$ac_compiler $ac_option >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3064 if test -s conftest.err; then
3066 ... rest of stderr output deleted ...
3067 10q' conftest.err >conftest.er1
3068 cat conftest.er1 >&5
3069 rm -f conftest.er1 conftest.err
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3086 ac_clean_files_save=$ac_clean_files
3087 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092 $as_echo_n "checking for C compiler default output file name... " >&6; }
3093 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 # The possible output files:
3096 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3099 for ac_file in $ac_files
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3108 if { { ac_try="$ac_link_default"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link_default") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3122 # so that the user can short-circuit this test for compilers unknown to
3124 for ac_file in $ac_files ''
3126 test -f "$ac_file" || continue
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3131 # We found the default executable, but exeext='' is most
3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 # We set ac_cv_exeext here because the later test for it is not
3140 # safe: cross compilers may not add the suffix if given an `-o'
3141 # argument, so we may need to know it at that point already.
3142 # Even if this section looks crufty: it has the advantage of
3149 test "$ac_cv_exeext" = no && ac_cv_exeext=
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 $as_echo "$ac_file" >&6; }
3156 if test -z "$ac_file"; then :
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 { as_fn_set_status 77
3163 as_fn_error "C compiler cannot create executables
3164 See \`config.log' for more details." "$LINENO" 5; }; }
3166 ac_exeext=$ac_cv_exeext
3168 # Check that the compiler produces executables we can run. If not, either
3169 # the compiler is broken, or we cross compile.
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3171 $as_echo_n "checking whether the C compiler works... " >&6; }
3172 # If not cross compiling, check that we can run a simple program.
3173 if test "$cross_compiling" != yes; then
3174 if { ac_try='./$ac_file'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3187 if test "$cross_compiling" = maybe; then
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error "cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details." "$LINENO" 5; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3201 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3202 ac_clean_files=$ac_clean_files_save
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3206 $as_echo_n "checking whether we are cross compiling... " >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208 $as_echo "$cross_compiling" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details." "$LINENO" 5; }
3242 rm -f conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250 $as_echo_n "checking for suffix of object files... " >&6; }
3251 if test "${ac_cv_objext+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3265 rm -f conftest.o conftest.obj
3266 if { { ac_try="$ac_compile"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compile") 2>&5
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error "cannot compute suffix of object files: cannot compile
3292 See \`config.log' for more details." "$LINENO" 5; }
3294 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297 $as_echo "$ac_cv_objext" >&6; }
3298 OBJEXT=$ac_cv_objext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3301 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3302 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3319 if ac_fn_c_try_compile "$LINENO"; then :
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3329 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3330 if test $ac_compiler_gnu = yes; then
3335 ac_test_CFLAGS=${CFLAGS+set}
3336 ac_save_CFLAGS=$CFLAGS
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3338 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3339 if test "${ac_cv_prog_cc_g+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 ac_save_c_werror_flag=$ac_c_werror_flag
3343 ac_c_werror_flag=yes
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3357 if ac_fn_c_try_compile "$LINENO"; then :
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3372 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_c_werror_flag=$ac_save_c_werror_flag
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3388 if ac_fn_c_try_compile "$LINENO"; then :
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_c_werror_flag=$ac_save_c_werror_flag
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3399 $as_echo "$ac_cv_prog_cc_g" >&6; }
3400 if test "$ac_test_CFLAGS" = set; then
3401 CFLAGS=$ac_save_CFLAGS
3402 elif test $ac_cv_prog_cc_g = yes; then
3403 if test "$GCC" = yes; then
3409 if test "$GCC" = yes; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3416 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3417 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3420 ac_cv_prog_cc_c89=no
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3442 s = g (p, va_arg (v,int));
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 CC="$ac_save_CC $ac_arg"
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_c89=$ac_arg
3482 rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3485 rm -f conftest.$ac_ext
3490 case "x$ac_cv_prog_cc_c89" in
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3493 $as_echo "none needed" >&6; } ;;
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496 $as_echo "unsupported" >&6; } ;;
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3500 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3502 if test "x$ac_cv_prog_cc_c89" != xno; then :
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3514 $as_echo_n "checking for library containing strerror... " >&6; }
3515 if test "${ac_cv_search_strerror+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3518 ac_func_search_save_LIBS=$LIBS
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3522 /* Override any GCC internal prototype to avoid an error.
3523 Use char because int might match the return type of a GCC
3524 builtin and then its argument prototype would still apply. */
3537 for ac_lib in '' cposix; do
3538 if test -z "$ac_lib"; then
3539 ac_res="none required"
3542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3544 if ac_fn_c_try_link "$LINENO"; then :
3545 ac_cv_search_strerror=$ac_res
3547 rm -f core conftest.err conftest.$ac_objext \
3549 if test "${ac_cv_search_strerror+set}" = set; then :
3553 if test "${ac_cv_search_strerror+set}" = set; then :
3556 ac_cv_search_strerror=no
3559 LIBS=$ac_func_search_save_LIBS
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3562 $as_echo "$ac_cv_search_strerror" >&6; }
3563 ac_res=$ac_cv_search_strerror
3564 if test "$ac_res" != no; then :
3565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3570 am__api_version='1.11'
3572 # Find a good install program. We prefer a C program (faster),
3573 # so one script is as good as another. But avoid the broken or
3574 # incompatible versions:
3575 # SysV /etc/install, /usr/sbin/install
3576 # SunOS /usr/etc/install
3577 # IRIX /sbin/install
3579 # AmigaOS /C/install, which installs bootblocks on floppy discs
3580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3583 # OS/2's system install, which has a completely different semantic
3584 # ./install, which can be erroneously created by make from ./install.sh.
3585 # Reject install programs that cannot install multiple files.
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3587 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3588 if test -z "$INSTALL"; then
3589 if test "${ac_cv_path_install+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 # Account for people who put trailing slashes in PATH elements.
3598 case $as_dir/ in #((
3599 ./ | .// | /[cC]/* | \
3600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3604 # OSF1 and SCO ODT 3.0 have their own names for install.
3605 # Don't use installbsd from OSF since it installs stuff as root
3607 for ac_prog in ginstall scoinst install; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3610 if test $ac_prog = install &&
3611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3612 # AIX install. It has an incompatible calling convention.
3614 elif test $ac_prog = install &&
3615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616 # program-specific install script used by HP pwplus--don't use.
3619 rm -rf conftest.one conftest.two conftest.dir
3620 echo one > conftest.one
3621 echo two > conftest.two
3623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3624 test -s conftest.one && test -s conftest.two &&
3625 test -s conftest.dir/conftest.one &&
3626 test -s conftest.dir/conftest.two
3628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3641 rm -rf conftest.one conftest.two conftest.dir
3644 if test "${ac_cv_path_install+set}" = set; then
3645 INSTALL=$ac_cv_path_install
3647 # As a last resort, use the slow shell script. Don't cache a
3648 # value for INSTALL within a source directory, because that will
3649 # break other packages using the cache if that directory is
3650 # removed, or if the value is a relative name.
3651 INSTALL=$ac_install_sh
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3655 $as_echo "$INSTALL" >&6; }
3657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3658 # It thinks the first close brace ends the variable substitution.
3659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3666 $as_echo_n "checking whether build environment is sane... " >&6; }
3669 echo timestamp > conftest.file
3670 # Reject unsafe characters in $srcdir or the absolute working directory
3671 # name. Accept space and tab only in the latter.
3675 *[\\\"\#\$\&\'\`$am_lf]*)
3676 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3679 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3680 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3683 # Do `set' in a subshell so we don't clobber the current shell's
3684 # arguments. Must try -L first in case configure is actually a
3685 # symlink; some systems play weird games with the mod time of symlinks
3686 # (eg FreeBSD returns the mod time of the symlink's containing
3689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3690 if test "$*" = "X"; then
3692 set X `ls -t "$srcdir/configure" conftest.file`
3695 if test "$*" != "X $srcdir/configure conftest.file" \
3696 && test "$*" != "X conftest.file $srcdir/configure"; then
3698 # If neither matched, then we have a broken ls. This can happen
3699 # if, for instance, CONFIG_SHELL is bash and it inherits a
3700 # broken ls alias from the environment. This has actually
3701 # happened. Such a system could not be considered "sane".
3702 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3703 alias in your environment" "$LINENO" 5
3706 test "$2" = conftest.file
3712 as_fn_error "newly created file is older than distributed files!
3713 Check your system clock" "$LINENO" 5
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3717 test "$program_prefix" != NONE &&
3718 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3719 # Use a double $ so make ignores it.
3720 test "$program_suffix" != NONE &&
3721 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3722 # Double any \ or $.
3723 # By default was `s,x,x', remove it if useless.
3724 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3725 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3727 # expand $ac_aux_dir to an absolute path
3728 am_aux_dir=`cd $ac_aux_dir && pwd`
3730 if test x"${MISSING+set}" != xset; then
3733 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3735 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3738 # Use eval to expand $SHELL
3739 if eval "$MISSING --run true"; then
3740 am_missing_run="$MISSING --run "
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3744 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3747 if test x"${install_sh}" != xset; then
3750 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3752 install_sh="\${SHELL} $am_aux_dir/install-sh"
3756 # Installed binaries are usually stripped using `strip' when the user
3757 # run `make install-strip'. However `strip' might not be the right
3758 # tool to use in cross-compilation environments, therefore Automake
3759 # will honor the `STRIP' environment variable to overrule this program.
3760 if test "$cross_compiling" != no; then
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}strip; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if test "${ac_cv_prog_STRIP+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3769 if test -n "$STRIP"; then
3770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 STRIP=$ac_cv_prog_STRIP
3790 if test -n "$STRIP"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3792 $as_echo "$STRIP" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3800 if test -z "$ac_cv_prog_STRIP"; then
3802 # Extract the first word of "strip", so it can be a program name with args.
3803 set dummy strip; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3809 if test -n "$ac_ct_STRIP"; then
3810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_ac_ct_STRIP="strip"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3830 if test -n "$ac_ct_STRIP"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3832 $as_echo "$ac_ct_STRIP" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3838 if test "x$ac_ct_STRIP" = x; then
3841 case $cross_compiling:$ac_tool_warned in
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3850 STRIP="$ac_cv_prog_STRIP"
3854 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3857 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3858 if test -z "$MKDIR_P"; then
3859 if test "${ac_cv_path_mkdir+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in mkdir gmkdir; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3871 'mkdir (GNU coreutils) '* | \
3872 'mkdir (coreutils) '* | \
3873 'mkdir (fileutils) '4.1*)
3874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3884 if test "${ac_cv_path_mkdir+set}" = set; then
3885 MKDIR_P="$ac_cv_path_mkdir -p"
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for MKDIR_P within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 test -d ./--version && rmdir ./--version
3892 MKDIR_P="$ac_install_sh -d"
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3896 $as_echo "$MKDIR_P" >&6; }
3900 [\\/$]* | ?:[\\/]*) ;;
3901 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3904 for ac_prog in gawk mawk nawk awk
3906 # Extract the first word of "$ac_prog", so it can be a program name with args.
3907 set dummy $ac_prog; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_AWK+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3913 if test -n "$AWK"; then
3914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_AWK="$ac_prog"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 if test -n "$AWK"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3936 $as_echo "$AWK" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3943 test -n "$AWK" && break
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3947 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3949 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3951 $as_echo_n "(cached) " >&6
3953 cat >conftest.make <<\_ACEOF
3956 @echo '@@@%%%=$(MAKE)=@@@%%%'
3958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3961 eval ac_cv_prog_make_${ac_make}_set=yes;;
3963 eval ac_cv_prog_make_${ac_make}_set=no;;
3967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3974 SET_MAKE="MAKE=${MAKE-make}"
3977 rm -rf .tst 2>/dev/null
3978 mkdir .tst 2>/dev/null
3979 if test -d .tst; then
3984 rmdir .tst 2>/dev/null
3986 DEPDIR="${am__leading_dot}deps"
3988 ac_config_commands="$ac_config_commands depfiles"
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3994 @echo this is the am__doit target
3997 # If we don't find an include directive, just comment out the code.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # Ignore all kinds of additional output from `make'.
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4013 # Now try BSD make style include.
4014 if test "$am__include" = "#"; then
4015 echo '.include "confinc"' > confmf
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4018 am__include=.include
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027 $as_echo "$_am_result" >&6; }
4028 rm -f confinc confmf
4030 # Check whether --enable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then :
4032 enableval=$enable_dependency_tracking;
4035 if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4040 if test "x$enable_dependency_tracking" != xno; then
4049 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4050 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4051 # is not polluted with repeated "-I."
4052 am__isrc=' -I$(srcdir)'
4053 # test to see if srcdir already configured
4054 if test -f $srcdir/config.status; then
4055 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4059 # test whether we have cygpath
4060 if test -z "$CYGPATH_W"; then
4061 if (cygpath --version) >/dev/null 2>/dev/null; then
4062 CYGPATH_W='cygpath -w'
4069 # Define the identity of the package.
4074 cat >>confdefs.h <<_ACEOF
4075 #define PACKAGE "$PACKAGE"
4079 cat >>confdefs.h <<_ACEOF
4080 #define VERSION "$VERSION"
4083 # Some tools Automake needs.
4085 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4088 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4091 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4094 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4097 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4099 # We need awk for the "check" target. The system "awk" is bad on
4101 # Always define AMTAR for backward compatibility. Yes, it's still used
4102 # in the wild :-( We should find a proper way to deprecate it ...
4105 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4110 depcc="$CC" am_compiler_list=
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4113 $as_echo_n "checking dependency style of $depcc... " >&6; }
4114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118 # We make a subdir and do the tests there. Otherwise we can end up
4119 # making bogus files that we don't know about and never remove. For
4120 # instance it was reported that on HP-UX the gcc test will end up
4121 # making a dummy file named `D' -- because `-MD' means `put the output
4125 # Copy depcomp to subdir because otherwise we won't find it if we're
4126 # using a relative directory.
4127 cp "$am_depcomp" conftest.dir
4129 # We will build objects and dependencies in a subdirectory because
4130 # it helps to detect inapplicable dependency modes. For instance
4131 # both Tru64's cc and ICC support -MD to output dependencies as a
4132 # side effect of compilation, but ICC will put the dependencies in
4133 # the current directory while Tru64 will put them in the object
4137 am_cv_CC_dependencies_compiler_type=none
4138 if test "$am_compiler_list" = ""; then
4139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4142 case " $depcc " in #(
4143 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4146 for depmode in $am_compiler_list; do
4147 # Setup a source with many dependencies, because some compilers
4148 # like to wrap large dependency lists on column 80 (with \), and
4149 # we should not choose a depcomp mode which is confused by this.
4151 # We need to recreate these files for each test, as the compiler may
4152 # overwrite some of them when testing with obscure command lines.
4153 # This happens at least with the AIX C compiler.
4155 for i in 1 2 3 4 5 6; do
4156 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4157 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4158 # Solaris 8's {/usr,}/bin/sh.
4159 touch sub/conftst$i.h
4161 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4164 # mode. It turns out that the SunPro C++ compiler does not properly
4165 # handle `-M -o', and we need to detect this. Also, some Intel
4166 # versions had trouble with output in subdirs
4167 am__obj=sub/conftest.${OBJEXT-o}
4168 am__minus_obj="-o $am__obj"
4171 # This depmode causes a compiler race in universal mode.
4172 test "$am__universal" = false || continue
4175 # after this tag, mechanisms are not by side-effect, so they'll
4176 # only be used when explicitly requested
4177 if test "x$enable_dependency_tracking" = xyes; then
4183 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4184 # This compiler won't grok `-c -o', but also, the minuso test has
4185 # not run yet. These depmodes are late enough in the game, and
4186 # so weak that their functioning should not be impacted.
4187 am__obj=conftest.${OBJEXT-o}
4192 if depmode=$depmode \
4193 source=sub/conftest.c object=$am__obj \
4194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4195 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4196 >/dev/null 2>conftest.err &&
4197 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4199 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4201 # icc doesn't choke on unknown options, it will just issue warnings
4202 # or remarks (even with -Werror). So we grep stderr for any message
4203 # that says an option was ignored or not supported.
4204 # When given -MP, icc 7.0 and 7.1 complain thusly:
4205 # icc: Command line warning: ignoring option '-M'; no argument required
4206 # The diagnosis changed in icc 8.0:
4207 # icc: Command line remark: option '-MP' not supported
4208 if (grep 'ignoring option' conftest.err ||
4209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4210 am_cv_CC_dependencies_compiler_type=$depmode
4219 am_cv_CC_dependencies_compiler_type=none
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4224 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4228 test "x$enable_dependency_tracking" != xno \
4229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4231 am__fastdepCC_FALSE='#'
4233 am__fastdepCC_TRUE='#'
4234 am__fastdepCC_FALSE=
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4242 # Check whether --enable-maintainer-mode was given.
4243 if test "${enable_maintainer_mode+set}" = set; then :
4244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4246 USE_MAINTAINER_MODE=no
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4251 if test $USE_MAINTAINER_MODE = yes; then
4252 MAINTAINER_MODE_TRUE=
4253 MAINTAINER_MODE_FALSE='#'
4255 MAINTAINER_MODE_TRUE='#'
4256 MAINTAINER_MODE_FALSE=
4259 MAINT=$MAINTAINER_MODE_TRUE
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_CC+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4276 if test -n "$CC"; then
4277 ac_cv_prog_CC="$CC" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 if test -n "$CC"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4299 $as_echo "$CC" >&6; }
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4307 if test -z "$ac_cv_prog_CC"; then
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -n "$ac_ct_CC"; then
4317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_ac_ct_CC="gcc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4337 if test -n "$ac_ct_CC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4339 $as_echo "$ac_ct_CC" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4345 if test "x$ac_ct_CC" = x; then
4348 case $cross_compiling:$ac_tool_warned in
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352 ac_tool_warned=yes ;;
4360 if test -z "$CC"; then
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4363 set dummy ${ac_tool_prefix}cc; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_CC+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_CC="${ac_tool_prefix}cc"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4401 if test -z "$CC"; then
4402 # Extract the first word of "cc", so it can be a program name with args.
4403 set dummy cc; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_CC+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4421 ac_prog_rejected=yes
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 if test $ac_prog_rejected = yes; then
4433 # We found a bogon in the path, so make sure we never use it.
4434 set dummy $ac_cv_prog_CC
4436 if test $# != 0; then
4437 # We chose a different compiler from the bogus one.
4438 # However, it has the same basename, so the bogon will be chosen
4439 # first if we set CC to just the basename; use the full file name.
4441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4447 if test -n "$CC"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449 $as_echo "$CC" >&6; }
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4457 if test -z "$CC"; then
4458 if test -n "$ac_tool_prefix"; then
4459 for ac_prog in cl.exe
4461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_CC+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 if test -n "$CC"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4491 $as_echo "$CC" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4498 test -n "$CC" && break
4501 if test -z "$CC"; then
4503 for ac_prog in cl.exe
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4512 if test -n "$ac_ct_CC"; then
4513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_ac_ct_CC="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533 if test -n "$ac_ct_CC"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4535 $as_echo "$ac_ct_CC" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$ac_ct_CC" && break
4545 if test "x$ac_ct_CC" = x; then
4548 case $cross_compiling:$ac_tool_warned in
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563 as_fn_error "no acceptable C compiler found in \$PATH
4564 See \`config.log' for more details." "$LINENO" 5; }
4566 # Provide some information about the compiler.
4567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4570 for ac_option in --version -v -V -qversion; do
4571 { { ac_try="$ac_compiler $ac_option >&5"
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4580 if test -s conftest.err; then
4582 ... rest of stderr output deleted ...
4583 10q' conftest.err >conftest.er1
4584 cat conftest.er1 >&5
4585 rm -f conftest.er1 conftest.err
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4610 if ac_fn_c_try_compile "$LINENO"; then :
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621 if test $ac_compiler_gnu = yes; then
4626 ac_test_CFLAGS=${CFLAGS+set}
4627 ac_save_CFLAGS=$CFLAGS
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4630 if test "${ac_cv_prog_cc_g+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4648 if ac_fn_c_try_compile "$LINENO"; then :
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4663 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_c_werror_flag=$ac_save_c_werror_flag
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4679 if ac_fn_c_try_compile "$LINENO"; then :
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_c_werror_flag=$ac_save_c_werror_flag
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4690 $as_echo "$ac_cv_prog_cc_g" >&6; }
4691 if test "$ac_test_CFLAGS" = set; then
4692 CFLAGS=$ac_save_CFLAGS
4693 elif test $ac_cv_prog_cc_g = yes; then
4694 if test "$GCC" = yes; then
4700 if test "$GCC" = yes; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4708 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4711 ac_cv_prog_cc_c89=no
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4717 #include <sys/types.h>
4718 #include <sys/stat.h>
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4733 s = g (p, va_arg (v,int));
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4739 function prototypes and stuff, but not '\xHH' hex character constants.
4740 These don't provoke an error unfortunately, instead are silently treated
4741 as 'x'. The following induces an error, until -std is added to get
4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4743 array size at least. It's necessary to write '\x00'==0 to get something
4744 that's true only with -std. */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748 inside strings and character constants. */
4750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4752 int test (int i, double x);
4753 struct s1 {int (*f) (int a);};
4754 struct s2 {int (*f) (double a);};
4755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4769 CC="$ac_save_CC $ac_arg"
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_c89=$ac_arg
4773 rm -f core conftest.err conftest.$ac_objext
4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
4776 rm -f conftest.$ac_ext
4781 case "x$ac_cv_prog_cc_c89" in
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784 $as_echo "none needed" >&6; } ;;
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 $as_echo "unsupported" >&6; } ;;
4789 CC="$CC $ac_cv_prog_cc_c89"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4793 if test "x$ac_cv_prog_cc_c89" != xno; then :
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804 ac_cpp='$CXXCPP $CPPFLAGS'
4805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808 if test -z "$CXX"; then
4809 if test -n "$CCC"; then
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_CXX+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$CXX"; then
4823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 if test -n "$CXX"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845 $as_echo "$CXX" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4852 test -n "$CXX" && break
4855 if test -z "$CXX"; then
4857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4866 if test -n "$ac_ct_CXX"; then
4867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_CXX="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887 if test -n "$ac_ct_CXX"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889 $as_echo "$ac_ct_CXX" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4896 test -n "$ac_ct_CXX" && break
4899 if test "x$ac_ct_CXX" = x; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4914 # Provide some information about the compiler.
4915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4918 for ac_option in --version -v -V -qversion; do
4919 { { ac_try="$ac_compiler $ac_option >&5"
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925 $as_echo "$ac_try_echo"; } >&5
4926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4928 if test -s conftest.err; then
4930 ... rest of stderr output deleted ...
4931 10q' conftest.err >conftest.er1
4932 cat conftest.er1 >&5
4933 rm -f conftest.er1 conftest.err
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4958 if ac_fn_cxx_try_compile "$LINENO"; then :
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4969 if test $ac_compiler_gnu = yes; then
4974 ac_test_CXXFLAGS=${CXXFLAGS+set}
4975 ac_save_CXXFLAGS=$CXXFLAGS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982 ac_cxx_werror_flag=yes
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4996 if ac_fn_cxx_try_compile "$LINENO"; then :
4997 ac_cv_prog_cxx_g=yes
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5011 if ac_fn_cxx_try_compile "$LINENO"; then :
5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5027 if ac_fn_cxx_try_compile "$LINENO"; then :
5028 ac_cv_prog_cxx_g=yes
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5039 if test "$ac_test_CXXFLAGS" = set; then
5040 CXXFLAGS=$ac_save_CXXFLAGS
5041 elif test $ac_cv_prog_cxx_g = yes; then
5042 if test "$GXX" = yes; then
5048 if test "$GXX" = yes; then
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 depcc="$CXX" am_compiler_list=
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5063 $as_echo_n "checking dependency style of $depcc... " >&6; }
5064 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5068 # We make a subdir and do the tests there. Otherwise we can end up
5069 # making bogus files that we don't know about and never remove. For
5070 # instance it was reported that on HP-UX the gcc test will end up
5071 # making a dummy file named `D' -- because `-MD' means `put the output
5075 # Copy depcomp to subdir because otherwise we won't find it if we're
5076 # using a relative directory.
5077 cp "$am_depcomp" conftest.dir
5079 # We will build objects and dependencies in a subdirectory because
5080 # it helps to detect inapplicable dependency modes. For instance
5081 # both Tru64's cc and ICC support -MD to output dependencies as a
5082 # side effect of compilation, but ICC will put the dependencies in
5083 # the current directory while Tru64 will put them in the object
5087 am_cv_CXX_dependencies_compiler_type=none
5088 if test "$am_compiler_list" = ""; then
5089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5092 case " $depcc " in #(
5093 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5096 for depmode in $am_compiler_list; do
5097 # Setup a source with many dependencies, because some compilers
5098 # like to wrap large dependency lists on column 80 (with \), and
5099 # we should not choose a depcomp mode which is confused by this.
5101 # We need to recreate these files for each test, as the compiler may
5102 # overwrite some of them when testing with obscure command lines.
5103 # This happens at least with the AIX C compiler.
5105 for i in 1 2 3 4 5 6; do
5106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5107 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5108 # Solaris 8's {/usr,}/bin/sh.
5109 touch sub/conftst$i.h
5111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5113 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5114 # mode. It turns out that the SunPro C++ compiler does not properly
5115 # handle `-M -o', and we need to detect this. Also, some Intel
5116 # versions had trouble with output in subdirs
5117 am__obj=sub/conftest.${OBJEXT-o}
5118 am__minus_obj="-o $am__obj"
5121 # This depmode causes a compiler race in universal mode.
5122 test "$am__universal" = false || continue
5125 # after this tag, mechanisms are not by side-effect, so they'll
5126 # only be used when explicitly requested
5127 if test "x$enable_dependency_tracking" = xyes; then
5133 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5134 # This compiler won't grok `-c -o', but also, the minuso test has
5135 # not run yet. These depmodes are late enough in the game, and
5136 # so weak that their functioning should not be impacted.
5137 am__obj=conftest.${OBJEXT-o}
5142 if depmode=$depmode \
5143 source=sub/conftest.c object=$am__obj \
5144 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5145 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5146 >/dev/null 2>conftest.err &&
5147 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5149 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5151 # icc doesn't choke on unknown options, it will just issue warnings
5152 # or remarks (even with -Werror). So we grep stderr for any message
5153 # that says an option was ignored or not supported.
5154 # When given -MP, icc 7.0 and 7.1 complain thusly:
5155 # icc: Command line warning: ignoring option '-M'; no argument required
5156 # The diagnosis changed in icc 8.0:
5157 # icc: Command line remark: option '-MP' not supported
5158 if (grep 'ignoring option' conftest.err ||
5159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5160 am_cv_CXX_dependencies_compiler_type=$depmode
5169 am_cv_CXX_dependencies_compiler_type=none
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5174 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5175 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5178 test "x$enable_dependency_tracking" != xno \
5179 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5180 am__fastdepCXX_TRUE=
5181 am__fastdepCXX_FALSE='#'
5183 am__fastdepCXX_TRUE='#'
5184 am__fastdepCXX_FALSE=
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5189 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5190 if test "${ac_cv_path_GREP+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -z "$GREP"; then
5194 ac_path_GREP_found=false
5195 # Loop through the user's path and test for each of PROGNAME-LIST
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5200 test -z "$as_dir" && as_dir=.
5201 for ac_prog in grep ggrep; do
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5204 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5205 # Check for GNU ac_path_GREP and select it if it is found.
5206 # Check for GNU $ac_path_GREP
5207 case `"$ac_path_GREP" --version 2>&1` in
5209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5212 $as_echo_n 0123456789 >"conftest.in"
5215 cat "conftest.in" "conftest.in" >"conftest.tmp"
5216 mv "conftest.tmp" "conftest.in"
5217 cp "conftest.in" "conftest.nl"
5218 $as_echo 'GREP' >> "conftest.nl"
5219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5221 as_fn_arith $ac_count + 1 && ac_count=$as_val
5222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5223 # Best one so far, save it but keep looking for a better one
5224 ac_cv_path_GREP="$ac_path_GREP"
5225 ac_path_GREP_max=$ac_count
5227 # 10*(2^10) chars as input seems more than enough
5228 test $ac_count -gt 10 && break
5230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233 $ac_path_GREP_found && break 3
5238 if test -z "$ac_cv_path_GREP"; then
5239 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5242 ac_cv_path_GREP=$GREP
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5247 $as_echo "$ac_cv_path_GREP" >&6; }
5248 GREP="$ac_cv_path_GREP"
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5257 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5258 # On Suns, sometimes $CPP names a directory.
5259 if test -n "$CPP" && test -d "$CPP"; then
5262 if test -z "$CPP"; then
5263 if test "${ac_cv_prog_CPP+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5266 # Double quotes because CPP needs to be expanded
5267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5270 for ac_c_preproc_warn_flag in '' yes
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5281 # include <limits.h>
5283 # include <assert.h>
5287 if ac_fn_c_try_cpp "$LINENO"; then :
5290 # Broken: fails on valid input.
5293 rm -f conftest.err conftest.$ac_ext
5295 # OK, works on sane cases. Now check whether nonexistent headers
5296 # can be detected and how.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <ac_nonexistent.h>
5301 if ac_fn_c_try_cpp "$LINENO"; then :
5302 # Broken: success on invalid input.
5305 # Passes both tests.
5309 rm -f conftest.err conftest.$ac_ext
5312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313 rm -f conftest.err conftest.$ac_ext
5314 if $ac_preproc_ok; then :
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5327 $as_echo "$CPP" >&6; }
5329 for ac_c_preproc_warn_flag in '' yes
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5340 # include <limits.h>
5342 # include <assert.h>
5346 if ac_fn_c_try_cpp "$LINENO"; then :
5349 # Broken: fails on valid input.
5352 rm -f conftest.err conftest.$ac_ext
5354 # OK, works on sane cases. Now check whether nonexistent headers
5355 # can be detected and how.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #include <ac_nonexistent.h>
5360 if ac_fn_c_try_cpp "$LINENO"; then :
5361 # Broken: success on invalid input.
5364 # Passes both tests.
5368 rm -f conftest.err conftest.$ac_ext
5371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5372 rm -f conftest.err conftest.$ac_ext
5373 if $ac_preproc_ok; then :
5376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5378 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5379 See \`config.log' for more details." "$LINENO" 5; }
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5390 $as_echo_n "checking for egrep... " >&6; }
5391 if test "${ac_cv_path_EGREP+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5395 then ac_cv_path_EGREP="$GREP -E"
5397 if test -z "$EGREP"; then
5398 ac_path_EGREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5404 test -z "$as_dir" && as_dir=.
5405 for ac_prog in egrep; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5408 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5409 # Check for GNU ac_path_EGREP and select it if it is found.
5410 # Check for GNU $ac_path_EGREP
5411 case `"$ac_path_EGREP" --version 2>&1` in
5413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5416 $as_echo_n 0123456789 >"conftest.in"
5419 cat "conftest.in" "conftest.in" >"conftest.tmp"
5420 mv "conftest.tmp" "conftest.in"
5421 cp "conftest.in" "conftest.nl"
5422 $as_echo 'EGREP' >> "conftest.nl"
5423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5425 as_fn_arith $ac_count + 1 && ac_count=$as_val
5426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5427 # Best one so far, save it but keep looking for a better one
5428 ac_cv_path_EGREP="$ac_path_EGREP"
5429 ac_path_EGREP_max=$ac_count
5431 # 10*(2^10) chars as input seems more than enough
5432 test $ac_count -gt 10 && break
5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5437 $ac_path_EGREP_found && break 3
5442 if test -z "$ac_cv_path_EGREP"; then
5443 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5446 ac_cv_path_EGREP=$EGREP
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5452 $as_echo "$ac_cv_path_EGREP" >&6; }
5453 EGREP="$ac_cv_path_EGREP"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5457 $as_echo_n "checking for ANSI C header files... " >&6; }
5458 if test "${ac_cv_header_stdc+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_header_stdc=yes
5479 ac_cv_header_stdc=no
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 if test $ac_cv_header_stdc = yes; then
5484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "memchr" >/dev/null 2>&1; then :
5494 ac_cv_header_stdc=no
5500 if test $ac_cv_header_stdc = yes; then
5501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 $EGREP "free" >/dev/null 2>&1; then :
5511 ac_cv_header_stdc=no
5517 if test $ac_cv_header_stdc = yes; then
5518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5519 if test "$cross_compiling" = yes; then :
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5526 #if ((' ' & 0x0FF) == 0x020)
5527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5530 # define ISLOWER(c) \
5531 (('a' <= (c) && (c) <= 'i') \
5532 || ('j' <= (c) && (c) <= 'r') \
5533 || ('s' <= (c) && (c) <= 'z'))
5534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5542 for (i = 0; i < 256; i++)
5543 if (XOR (islower (i), ISLOWER (i))
5544 || toupper (i) != TOUPPER (i))
5549 if ac_fn_c_try_run "$LINENO"; then :
5552 ac_cv_header_stdc=no
5554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5555 conftest.$ac_objext conftest.beam conftest.$ac_ext
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5561 $as_echo "$ac_cv_header_stdc" >&6; }
5562 if test $ac_cv_header_stdc = yes; then
5564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5570 inttypes.h stdint.h unistd.h
5572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5575 eval as_val=\$$as_ac_Header
5576 if test "x$as_val" = x""yes; then :
5577 cat >>confdefs.h <<_ACEOF
5578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5587 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5588 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5595 if test "$MINIX" = yes; then
5597 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5600 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5603 $as_echo "#define _MINIX 1" >>confdefs.h
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5609 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5610 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 # define __EXTENSIONS__ 1
5617 $ac_includes_default
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 ac_cv_safe_to_define___extensions__=yes
5629 ac_cv_safe_to_define___extensions__=no
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5634 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5635 test $ac_cv_safe_to_define___extensions__ = yes &&
5636 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5638 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5640 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5642 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5644 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5654 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5659 macro_version='2.2.7a'
5660 macro_revision='1.3134'
5674 ltmain="$ac_aux_dir/ltmain.sh"
5676 # Backslashify metacharacters that are still active within
5677 # double-quoted strings.
5678 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5680 # Same as above, but do not quote variable references.
5681 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5683 # Sed substitution to delay expansion of an escaped shell variable in a
5684 # double_quote_subst'ed string.
5685 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5687 # Sed substitution to delay expansion of an escaped single quote.
5688 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5690 # Sed substitution to avoid accidental globbing in evaled expressions
5691 no_glob_subst='s/\*/\\\*/g'
5693 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5694 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5695 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5698 $as_echo_n "checking how to print strings... " >&6; }
5699 # Test print first, because it will be a builtin if present.
5700 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5701 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5703 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5706 # Use this function as a fallback that always works.
5707 func_fallback_echo ()
5709 eval 'cat <<_LTECHO_EOF
5713 ECHO='func_fallback_echo'
5716 # func_echo_all arg...
5717 # Invoke $ECHO with all args, space-separated.
5724 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5725 $as_echo "printf" >&6; } ;;
5726 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5727 $as_echo "print -r" >&6; } ;;
5728 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5729 $as_echo "cat" >&6; } ;;
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5746 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5747 if test "${ac_cv_path_SED+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5750 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5751 for ac_i in 1 2 3 4 5 6 7; do
5752 ac_script="$ac_script$as_nl$ac_script"
5754 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5755 { ac_script=; unset ac_script;}
5756 if test -z "$SED"; then
5757 ac_path_SED_found=false
5758 # Loop through the user's path and test for each of PROGNAME-LIST
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 test -z "$as_dir" && as_dir=.
5764 for ac_prog in sed gsed; do
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5767 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5768 # Check for GNU ac_path_SED and select it if it is found.
5769 # Check for GNU $ac_path_SED
5770 case `"$ac_path_SED" --version 2>&1` in
5772 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5775 $as_echo_n 0123456789 >"conftest.in"
5778 cat "conftest.in" "conftest.in" >"conftest.tmp"
5779 mv "conftest.tmp" "conftest.in"
5780 cp "conftest.in" "conftest.nl"
5781 $as_echo '' >> "conftest.nl"
5782 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784 as_fn_arith $ac_count + 1 && ac_count=$as_val
5785 if test $ac_count -gt ${ac_path_SED_max-0}; then
5786 # Best one so far, save it but keep looking for a better one
5787 ac_cv_path_SED="$ac_path_SED"
5788 ac_path_SED_max=$ac_count
5790 # 10*(2^10) chars as input seems more than enough
5791 test $ac_count -gt 10 && break
5793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5796 $ac_path_SED_found && break 3
5801 if test -z "$ac_cv_path_SED"; then
5802 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5810 $as_echo "$ac_cv_path_SED" >&6; }
5811 SED="$ac_cv_path_SED"
5814 test -z "$SED" && SED=sed
5815 Xsed="$SED -e 1s/^X//"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5828 $as_echo_n "checking for fgrep... " >&6; }
5829 if test "${ac_cv_path_FGREP+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5833 then ac_cv_path_FGREP="$GREP -F"
5835 if test -z "$FGREP"; then
5836 ac_path_FGREP_found=false
5837 # Loop through the user's path and test for each of PROGNAME-LIST
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5842 test -z "$as_dir" && as_dir=.
5843 for ac_prog in fgrep; do
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5846 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5847 # Check for GNU ac_path_FGREP and select it if it is found.
5848 # Check for GNU $ac_path_FGREP
5849 case `"$ac_path_FGREP" --version 2>&1` in
5851 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5854 $as_echo_n 0123456789 >"conftest.in"
5857 cat "conftest.in" "conftest.in" >"conftest.tmp"
5858 mv "conftest.tmp" "conftest.in"
5859 cp "conftest.in" "conftest.nl"
5860 $as_echo 'FGREP' >> "conftest.nl"
5861 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5863 as_fn_arith $ac_count + 1 && ac_count=$as_val
5864 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5865 # Best one so far, save it but keep looking for a better one
5866 ac_cv_path_FGREP="$ac_path_FGREP"
5867 ac_path_FGREP_max=$ac_count
5869 # 10*(2^10) chars as input seems more than enough
5870 test $ac_count -gt 10 && break
5872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5875 $ac_path_FGREP_found && break 3
5880 if test -z "$ac_cv_path_FGREP"; then
5881 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5884 ac_cv_path_FGREP=$FGREP
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5890 $as_echo "$ac_cv_path_FGREP" >&6; }
5891 FGREP="$ac_cv_path_FGREP"
5894 test -z "$GREP" && GREP=grep
5914 # Check whether --with-gnu-ld was given.
5915 if test "${with_gnu_ld+set}" = set; then :
5916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5922 if test "$GCC" = yes; then
5923 # Check if gcc -print-prog-name=ld gives a path.
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5925 $as_echo_n "checking for ld used by $CC... " >&6; }
5928 # gcc leaves a trailing carriage return which upsets mingw
5929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5934 # Accept absolute paths.
5936 re_direlt='/[^/][^/]*/\.\./'
5937 # Canonicalize the pathname of ld
5938 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5939 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5940 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5942 test -z "$LD" && LD="$ac_prog"
5945 # If it fails, then pretend we aren't using GCC.
5949 # If it is relative, then search for the first ld in PATH.
5953 elif test "$with_gnu_ld" = yes; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5955 $as_echo_n "checking for GNU ld... " >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5958 $as_echo_n "checking for non-GNU ld... " >&6; }
5960 if test "${lt_cv_path_LD+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5963 if test -z "$LD"; then
5964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5965 for ac_dir in $PATH; do
5967 test -z "$ac_dir" && ac_dir=.
5968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5969 lt_cv_path_LD="$ac_dir/$ac_prog"
5970 # Check to see if the program is GNU ld. I'd rather use --version,
5971 # but apparently some variants of GNU ld only accept -v.
5972 # Break only if it was the GNU/non-GNU ld that we prefer.
5973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5974 *GNU* | *'with BFD'*)
5975 test "$with_gnu_ld" != no && break
5978 test "$with_gnu_ld" != yes && break
5985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5990 if test -n "$LD"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5992 $as_echo "$LD" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5997 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5999 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6000 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6004 case `$LD -v 2>&1 </dev/null` in
6005 *GNU* | *'with BFD'*)
6006 lt_cv_prog_gnu_ld=yes
6009 lt_cv_prog_gnu_ld=no
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6014 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6015 with_gnu_ld=$lt_cv_prog_gnu_ld
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6026 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6027 if test "${lt_cv_path_NM+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$NM"; then
6031 # Let the user override the test.
6034 lt_nm_to_check="${ac_tool_prefix}nm"
6035 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6036 lt_nm_to_check="$lt_nm_to_check nm"
6038 for lt_tmp_nm in $lt_nm_to_check; do
6039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6040 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6042 test -z "$ac_dir" && ac_dir=.
6043 tmp_nm="$ac_dir/$lt_tmp_nm"
6044 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6045 # Check to see if the nm accepts a BSD-compat flag.
6046 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6047 # nm: unknown option "B" ignored
6048 # Tru64's nm complains that /dev/null is an invalid object file
6049 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6050 */dev/null* | *'Invalid file or object type'*)
6051 lt_cv_path_NM="$tmp_nm -B"
6055 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6057 lt_cv_path_NM="$tmp_nm -p"
6061 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6062 continue # so that we can try to find one that supports BSD flags
6071 : ${lt_cv_path_NM=no}
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6075 $as_echo "$lt_cv_path_NM" >&6; }
6076 if test "$lt_cv_path_NM" != "no"; then
6079 # Didn't find any BSD compatible name lister, look for dumpbin.
6080 if test -n "$DUMPBIN"; then :
6081 # Let the user override the test.
6083 if test -n "$ac_tool_prefix"; then
6084 for ac_prog in dumpbin "link -dump"
6086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 if test -n "$DUMPBIN"; then
6094 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 DUMPBIN=$ac_cv_prog_DUMPBIN
6114 if test -n "$DUMPBIN"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6116 $as_echo "$DUMPBIN" >&6; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6123 test -n "$DUMPBIN" && break
6126 if test -z "$DUMPBIN"; then
6127 ac_ct_DUMPBIN=$DUMPBIN
6128 for ac_prog in dumpbin "link -dump"
6130 # Extract the first word of "$ac_prog", so it can be a program name with args.
6131 set dummy $ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6137 if test -n "$ac_ct_DUMPBIN"; then
6138 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6158 if test -n "$ac_ct_DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6160 $as_echo "$ac_ct_DUMPBIN" >&6; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6167 test -n "$ac_ct_DUMPBIN" && break
6170 if test "x$ac_ct_DUMPBIN" = x; then
6173 case $cross_compiling:$ac_tool_warned in
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6179 DUMPBIN=$ac_ct_DUMPBIN
6183 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6185 DUMPBIN="$DUMPBIN -symbols"
6193 if test "$DUMPBIN" != ":"; then
6197 test -z "$NM" && NM=nm
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6205 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6206 if test "${lt_cv_nm_interface+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6209 lt_cv_nm_interface="BSD nm"
6210 echo "int some_variable = 0;" > conftest.$ac_ext
6211 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6212 (eval "$ac_compile" 2>conftest.err)
6213 cat conftest.err >&5
6214 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6215 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6216 cat conftest.err >&5
6217 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6218 cat conftest.out >&5
6219 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6220 lt_cv_nm_interface="MS dumpbin"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6225 $as_echo "$lt_cv_nm_interface" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6228 $as_echo_n "checking whether ln -s works... " >&6; }
6230 if test "$LN_S" = "ln -s"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6232 $as_echo "yes" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6235 $as_echo "no, using $LN_S" >&6; }
6238 # find the maximum length of command line arguments
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6240 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6241 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6249 # On DJGPP, this test can blow up pretty badly due to problems in libc
6250 # (any single argument exceeding 2000 bytes causes a buffer overrun
6251 # during glob expansion). Even if it were fixed, the result of this
6252 # check would be larger than it should be.
6253 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6257 # Under GNU Hurd, this test is not required because there is
6258 # no limit to the length of command line arguments.
6259 # Libtool will interpret -1 as no limit whatsoever
6260 lt_cv_sys_max_cmd_len=-1;
6263 cygwin* | mingw* | cegcc*)
6264 # On Win9x/ME, this test blows up -- it succeeds, but takes
6265 # about 5 minutes as the teststring grows exponentially.
6266 # Worse, since 9x/ME are not pre-emptively multitasking,
6267 # you end up with a "frozen" computer, even though with patience
6268 # the test eventually succeeds (with a max line length of 256k).
6269 # Instead, let's just punt: use the minimum linelength reported by
6270 # all of the supported platforms: 8192 (on NT/2K/XP).
6271 lt_cv_sys_max_cmd_len=8192;
6275 # On MiNT this can take a long time and run out of memory.
6276 lt_cv_sys_max_cmd_len=8192;
6280 # On AmigaOS with pdksh, this test takes hours, literally.
6281 # So we just punt and use a minimum line length of 8192.
6282 lt_cv_sys_max_cmd_len=8192;
6285 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6286 # This has been around since 386BSD, at least. Likely further.
6287 if test -x /sbin/sysctl; then
6288 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6289 elif test -x /usr/sbin/sysctl; then
6290 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6292 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6294 # And add a safety zone
6295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6300 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6301 lt_cv_sys_max_cmd_len=196608
6305 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6306 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6307 # nice to cause kernel panics so lets avoid the loop below.
6308 # First set a reasonable default.
6309 lt_cv_sys_max_cmd_len=16384
6311 if test -x /sbin/sysconfig; then
6312 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6313 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6318 lt_cv_sys_max_cmd_len=102400
6320 sysv5* | sco5v6* | sysv4.2uw2*)
6321 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6322 if test -n "$kargmax"; then
6323 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6325 lt_cv_sys_max_cmd_len=32768
6329 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6330 if test -n "$lt_cv_sys_max_cmd_len"; then
6331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6334 # Make teststring a little bigger before we do anything with it.
6335 # a 1K string should be a reasonable start.
6336 for i in 1 2 3 4 5 6 7 8 ; do
6337 teststring=$teststring$teststring
6339 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6340 # If test is not a shell built-in, we'll probably end up computing a
6341 # maximum length that is only half of the actual maximum length, but
6343 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6344 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6345 test $i != 17 # 1/2 MB should be enough
6348 teststring=$teststring$teststring
6350 # Only check the string length outside the loop.
6351 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6353 # Add a significant safety factor because C++ compilers can tack on
6354 # massive amounts of additional arguments before passing them to the
6355 # linker. It appears as though 1/2 is a usable value.
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6363 if test -n $lt_cv_sys_max_cmd_len ; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6365 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6368 $as_echo "none" >&6; }
6370 max_cmd_len=$lt_cv_sys_max_cmd_len
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6382 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6383 # Try some XSI features
6386 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6388 && eval 'test $(( 1 + 1 )) -eq 2 \
6389 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6392 $as_echo "$xsi_shell" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6396 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6398 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6400 && lt_shell_append=yes
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6402 $as_echo "$lt_shell_append" >&6; }
6405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6415 # test EBCDIC or ASCII
6416 case `echo X|tr X '\101'` in
6417 A) # ASCII based system
6418 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6419 lt_SP2NL='tr \040 \012'
6420 lt_NL2SP='tr \015\012 \040\040'
6422 *) # EBCDIC based system
6423 lt_SP2NL='tr \100 \n'
6424 lt_NL2SP='tr \r\n \100\100'
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6437 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6438 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6441 lt_cv_ld_reload_flag='-r'
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6444 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6445 reload_flag=$lt_cv_ld_reload_flag
6446 case $reload_flag in
6448 *) reload_flag=" $reload_flag" ;;
6450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6453 if test "$GCC" = yes; then
6454 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$OBJDUMP"; then
6478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 OBJDUMP=$ac_cv_prog_OBJDUMP
6498 if test -n "$OBJDUMP"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6500 $as_echo "$OBJDUMP" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6508 if test -z "$ac_cv_prog_OBJDUMP"; then
6509 ac_ct_OBJDUMP=$OBJDUMP
6510 # Extract the first word of "objdump", so it can be a program name with args.
6511 set dummy objdump; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6517 if test -n "$ac_ct_OBJDUMP"; then
6518 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6538 if test -n "$ac_ct_OBJDUMP"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6540 $as_echo "$ac_ct_OBJDUMP" >&6; }
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$ac_ct_OBJDUMP" = x; then
6549 case $cross_compiling:$ac_tool_warned in
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6555 OBJDUMP=$ac_ct_OBJDUMP
6558 OBJDUMP="$ac_cv_prog_OBJDUMP"
6561 test -z "$OBJDUMP" && OBJDUMP=objdump
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6572 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6573 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6576 lt_cv_file_magic_cmd='$MAGIC_CMD'
6577 lt_cv_file_magic_test_file=
6578 lt_cv_deplibs_check_method='unknown'
6579 # Need to set the preceding variable on all platforms that support
6580 # interlibrary dependencies.
6581 # 'none' -- dependencies not supported.
6582 # `unknown' -- same as none, but documents that we really don't know.
6583 # 'pass_all' -- all dependencies passed with no checks.
6584 # 'test_compile' -- check by making test program.
6585 # 'file_magic [[regex]]' -- check by looking for files in library path
6586 # which responds to the $file_magic_cmd with a given extended regex.
6587 # If you have `file' or equivalent on your system and you're not sure
6588 # whether `pass_all' will *always* work, you probably want this one.
6592 lt_cv_deplibs_check_method=pass_all
6596 lt_cv_deplibs_check_method=pass_all
6600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6601 lt_cv_file_magic_cmd='/usr/bin/file -L'
6602 lt_cv_file_magic_test_file=/shlib/libc.so
6606 # func_win32_libid is a shell function defined in ltmain.sh
6607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6608 lt_cv_file_magic_cmd='func_win32_libid'
6612 # Base MSYS/MinGW do not provide the 'file' command needed by
6613 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6614 # unless we find 'file', for example because we are cross-compiling.
6615 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6616 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6618 lt_cv_file_magic_cmd='func_win32_libid'
6620 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6621 lt_cv_file_magic_cmd='$OBJDUMP -f'
6626 # use the weaker test based on 'objdump'. See mingw*.
6627 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6628 lt_cv_file_magic_cmd='$OBJDUMP -f'
6631 darwin* | rhapsody*)
6632 lt_cv_deplibs_check_method=pass_all
6635 freebsd* | dragonfly*)
6636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6639 # Not sure whether the presence of OpenBSD here was a mistake.
6640 # Let's accept both of them until this is cleared up.
6641 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6642 lt_cv_file_magic_cmd=/usr/bin/file
6643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6647 lt_cv_deplibs_check_method=pass_all
6652 lt_cv_deplibs_check_method=pass_all
6656 lt_cv_deplibs_check_method=pass_all
6659 hpux10.20* | hpux11*)
6660 lt_cv_file_magic_cmd=/usr/bin/file
6663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6664 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6667 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]'
6668 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6672 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6678 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6682 irix5* | irix6* | nonstopux*)
6684 *-32|*"-32 ") libmagic=32-bit;;
6685 *-n32|*"-n32 ") libmagic=N32;;
6686 *-64|*"-64 ") libmagic=64-bit;;
6687 *) libmagic=never-match;;
6689 lt_cv_deplibs_check_method=pass_all
6692 # This must be Linux ELF.
6693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6694 lt_cv_deplibs_check_method=pass_all
6698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6707 lt_cv_file_magic_cmd=/usr/bin/file
6708 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6712 lt_cv_deplibs_check_method=pass_all
6716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6723 osf3* | osf4* | osf5*)
6724 lt_cv_deplibs_check_method=pass_all
6728 lt_cv_deplibs_check_method=pass_all
6732 lt_cv_deplibs_check_method=pass_all
6735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6736 lt_cv_deplibs_check_method=pass_all
6740 case $host_vendor in
6742 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]'
6743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6746 lt_cv_deplibs_check_method=pass_all
6749 lt_cv_file_magic_cmd='/bin/file'
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6753 lt_cv_file_magic_cmd='/bin/file'
6754 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6755 lt_cv_file_magic_test_file=/lib/libc.so
6758 lt_cv_deplibs_check_method=pass_all
6761 lt_cv_deplibs_check_method=pass_all
6767 lt_cv_deplibs_check_method=pass_all
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6773 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6774 file_magic_cmd=$lt_cv_file_magic_cmd
6775 deplibs_check_method=$lt_cv_deplibs_check_method
6776 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}ar; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if test "${ac_cv_prog_AR+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6797 if test -n "$AR"; then
6798 ac_cv_prog_AR="$AR" # Let the user override the test.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_AR="${ac_tool_prefix}ar"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 if test -n "$AR"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6820 $as_echo "$AR" >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6828 if test -z "$ac_cv_prog_AR"; then
6830 # Extract the first word of "ar", so it can be a program name with args.
6831 set dummy ar; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6837 if test -n "$ac_ct_AR"; then
6838 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_ac_ct_AR="ar"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6858 if test -n "$ac_ct_AR"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6860 $as_echo "$ac_ct_AR" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6866 if test "x$ac_ct_AR" = x; then
6869 case $cross_compiling:$ac_tool_warned in
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873 ac_tool_warned=yes ;;
6881 test -z "$AR" && AR=ar
6882 test -z "$AR_FLAGS" && AR_FLAGS=cru
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}strip; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_prog_STRIP+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6902 if test -n "$STRIP"; then
6903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 STRIP=$ac_cv_prog_STRIP
6923 if test -n "$STRIP"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6925 $as_echo "$STRIP" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6933 if test -z "$ac_cv_prog_STRIP"; then
6935 # Extract the first word of "strip", so it can be a program name with args.
6936 set dummy strip; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6942 if test -n "$ac_ct_STRIP"; then
6943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_prog_ac_ct_STRIP="strip"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6963 if test -n "$ac_ct_STRIP"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6965 $as_echo "$ac_ct_STRIP" >&6; }
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6971 if test "x$ac_ct_STRIP" = x; then
6974 case $cross_compiling:$ac_tool_warned in
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978 ac_tool_warned=yes ;;
6983 STRIP="$ac_cv_prog_STRIP"
6986 test -z "$STRIP" && STRIP=:
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7001 if test -n "$RANLIB"; then
7002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 RANLIB=$ac_cv_prog_RANLIB
7022 if test -n "$RANLIB"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7024 $as_echo "$RANLIB" >&6; }
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7032 if test -z "$ac_cv_prog_RANLIB"; then
7033 ac_ct_RANLIB=$RANLIB
7034 # Extract the first word of "ranlib", so it can be a program name with args.
7035 set dummy ranlib; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7041 if test -n "$ac_ct_RANLIB"; then
7042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_ac_ct_RANLIB="ranlib"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7062 if test -n "$ac_ct_RANLIB"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7064 $as_echo "$ac_ct_RANLIB" >&6; }
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7070 if test "x$ac_ct_RANLIB" = x; then
7073 case $cross_compiling:$ac_tool_warned in
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7079 RANLIB=$ac_ct_RANLIB
7082 RANLIB="$ac_cv_prog_RANLIB"
7085 test -z "$RANLIB" && RANLIB=:
7092 # Determine commands to create old-style static archives.
7093 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7094 old_postinstall_cmds='chmod 644 $oldlib'
7095 old_postuninstall_cmds=
7097 if test -n "$RANLIB"; then
7100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7111 lock_old_archive_extraction=yes ;;
7113 lock_old_archive_extraction=no ;;
7154 # If no C compiler was specified, use CC.
7157 # If no C compiler flags were specified, use CFLAGS.
7158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7160 # Allow CC to be a program name with arguments.
7164 # Check for command to grab the raw symbol name followed by C symbol from nm.
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7166 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7167 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7171 # These are sane defaults that work on at least a few old systems.
7172 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7174 # Character class describing NM global symbol codes.
7175 symcode='[BCDEGRST]'
7177 # Regexp to match symbols that can be accessed directly from C.
7178 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7180 # Define system-specific variables.
7185 cygwin* | mingw* | pw32* | cegcc*)
7186 symcode='[ABCDGISTW]'
7189 if test "$host_cpu" = ia64; then
7190 symcode='[ABCDEGRST]'
7194 symcode='[BCDEGRST]'
7197 symcode='[BCDEGQRST]'
7208 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7216 # If we're using GNU nm, then use its standard symbol codes.
7217 case `$NM -V 2>&1` in
7218 *GNU* | *'with BFD'*)
7219 symcode='[ABCDGIRSTW]' ;;
7222 # Transform an extracted symbol line into a proper C declaration.
7223 # Some systems (esp. on ia64) link data and code symbols differently,
7224 # so use this general approach.
7225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7227 # Transform an extracted symbol line into symbol name and symbol address
7228 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7229 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'"
7231 # Handle CRLF in mingw tool chain
7235 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7239 # Try without a prefix underscore, then with it.
7240 for ac_symprfx in "" "_"; do
7242 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7243 symxfrm="\\1 $ac_symprfx\\2 \\2"
7245 # Write the raw and C identifiers.
7246 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7247 # Fake it for dumpbin and say T for any non-static function
7248 # and D for any global variable.
7249 # Also find C++ and __fastcall symbols from MSVC++,
7250 # which start with @ or ?.
7251 lt_cv_sys_global_symbol_pipe="$AWK '"\
7252 " {last_section=section; section=\$ 3};"\
7253 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7254 " \$ 0!~/External *\|/{next};"\
7255 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7256 " {if(hide[section]) next};"\
7257 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7258 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7259 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7260 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7261 " ' prfx=^$ac_symprfx"
7263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7266 # Check to see that the pipe works correctly.
7270 cat > conftest.$ac_ext <<_LT_EOF
7275 void nm_test_func(void);
7276 void nm_test_func(void){}
7280 int main(){nm_test_var='a';nm_test_func();return(0);}
7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7284 (eval $ac_compile) 2>&5
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; then
7288 # Now try to grab the symbols.
7290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7291 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; } && test -s "$nlist"; then
7295 # Try sorting and uniquifying the output.
7296 if sort "$nlist" | uniq > "$nlist"T; then
7297 mv -f "$nlist"T "$nlist"
7302 # Make sure that we snagged all the symbols we need.
7303 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7304 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7305 cat <<_LT_EOF > conftest.$ac_ext
7311 # Now generate the symbol file.
7312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7314 cat <<_LT_EOF >> conftest.$ac_ext
7316 /* The mapping between symbol names and symbols. */
7321 lt__PROGRAM__LTX_preloaded_symbols[] =
7323 { "@PROGRAM@", (void *) 0 },
7325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326 cat <<\_LT_EOF >> conftest.$ac_ext
7330 /* This works around a problem in FreeBSD linker */
7331 #ifdef FREEBSD_WORKAROUND
7332 static const void *lt_preloaded_setup() {
7333 return lt__PROGRAM__LTX_preloaded_symbols;
7341 # Now try linking the two files.
7342 mv conftest.$ac_objext conftstm.$ac_objext
7343 lt_save_LIBS="$LIBS"
7344 lt_save_CFLAGS="$CFLAGS"
7345 LIBS="conftstm.$ac_objext"
7346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7348 (eval $ac_link) 2>&5
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7354 LIBS="$lt_save_LIBS"
7355 CFLAGS="$lt_save_CFLAGS"
7357 echo "cannot find nm_test_func in $nlist" >&5
7360 echo "cannot find nm_test_var in $nlist" >&5
7363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7366 echo "$progname: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 rm -rf conftest* conftst*
7371 # Do not use the global_symbol_pipe unless it works.
7372 if test "$pipe_works" = yes; then
7375 lt_cv_sys_global_symbol_pipe=
7381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382 lt_cv_sys_global_symbol_to_cdecl=
7384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386 $as_echo "failed" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389 $as_echo "ok" >&6; }
7413 # Check whether --enable-libtool-lock was given.
7414 if test "${enable_libtool_lock+set}" = set; then :
7415 enableval=$enable_libtool_lock;
7418 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7420 # Some flags need to be propagated to the compiler or linker for good
7424 # Find out which ABI we are using.
7425 echo 'int i;' > conftest.$ac_ext
7426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7427 (eval $ac_compile) 2>&5
7429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430 test $ac_status = 0; }; then
7431 case `/usr/bin/file conftest.$ac_objext` in
7443 # Find out which ABI we are using.
7444 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7450 if test "$lt_cv_prog_gnu_ld" = yes; then
7451 case `/usr/bin/file conftest.$ac_objext` in
7453 LD="${LD-ld} -melf32bsmip"
7456 LD="${LD-ld} -melf32bmipn32"
7459 LD="${LD-ld} -melf64bmip"
7463 case `/usr/bin/file conftest.$ac_objext` in
7479 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7480 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7481 # Find out which ABI we are using.
7482 echo 'int i;' > conftest.$ac_ext
7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7484 (eval $ac_compile) 2>&5
7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; }; then
7488 case `/usr/bin/file conftest.o` in
7491 x86_64-*kfreebsd*-gnu)
7492 LD="${LD-ld} -m elf_i386_fbsd"
7495 case `/usr/bin/file conftest.o` in
7497 LD="${LD-ld} -m elf32_x86_64"
7500 LD="${LD-ld} -m elf_i386"
7504 powerpc64le-*linux*)
7505 LD="${LD-ld} -m elf32lppclinux"
7508 LD="${LD-ld} -m elf32ppclinux"
7511 LD="${LD-ld} -m elf_s390"
7514 LD="${LD-ld} -m elf32_sparc"
7520 x86_64-*kfreebsd*-gnu)
7521 LD="${LD-ld} -m elf_x86_64_fbsd"
7524 LD="${LD-ld} -m elf_x86_64"
7527 LD="${LD-ld} -m elf64lppc"
7530 LD="${LD-ld} -m elf64ppc"
7532 s390*-*linux*|s390*-*tpf*)
7533 LD="${LD-ld} -m elf64_s390"
7536 LD="${LD-ld} -m elf64_sparc"
7546 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7547 SAVE_CFLAGS="$CFLAGS"
7548 CFLAGS="$CFLAGS -belf"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7550 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7551 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7571 if ac_fn_c_try_link "$LINENO"; then :
7572 lt_cv_cc_needs_belf=yes
7574 lt_cv_cc_needs_belf=no
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7579 ac_cpp='$CPP $CPPFLAGS'
7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7586 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7589 CFLAGS="$SAVE_CFLAGS"
7593 # Find out which ABI we are using.
7594 echo 'int i;' > conftest.$ac_ext
7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7596 (eval $ac_compile) 2>&5
7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; then
7600 case `/usr/bin/file conftest.o` in
7602 case $lt_cv_prog_gnu_ld in
7603 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7605 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7617 need_locks="$enable_libtool_lock"
7621 rhapsody* | darwin*)
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
7630 if test -n "$DSYMUTIL"; then
7631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7651 if test -n "$DSYMUTIL"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7653 $as_echo "$DSYMUTIL" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7661 if test -z "$ac_cv_prog_DSYMUTIL"; then
7662 ac_ct_DSYMUTIL=$DSYMUTIL
7663 # Extract the first word of "dsymutil", so it can be a program name with args.
7664 set dummy dsymutil; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
7670 if test -n "$ac_ct_DSYMUTIL"; then
7671 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7691 if test -n "$ac_ct_DSYMUTIL"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7693 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7699 if test "x$ac_ct_DSYMUTIL" = x; then
7702 case $cross_compiling:$ac_tool_warned in
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7708 DSYMUTIL=$ac_ct_DSYMUTIL
7711 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7722 if test -n "$NMEDIT"; then
7723 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 NMEDIT=$ac_cv_prog_NMEDIT
7743 if test -n "$NMEDIT"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7745 $as_echo "$NMEDIT" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7753 if test -z "$ac_cv_prog_NMEDIT"; then
7754 ac_ct_NMEDIT=$NMEDIT
7755 # Extract the first word of "nmedit", so it can be a program name with args.
7756 set dummy nmedit; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 if test -n "$ac_ct_NMEDIT"; then
7763 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7783 if test -n "$ac_ct_NMEDIT"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7785 $as_echo "$ac_ct_NMEDIT" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7791 if test "x$ac_ct_NMEDIT" = x; then
7794 case $cross_compiling:$ac_tool_warned in
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7800 NMEDIT=$ac_ct_NMEDIT
7803 NMEDIT="$ac_cv_prog_NMEDIT"
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if test "${ac_cv_prog_LIPO+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7814 if test -n "$LIPO"; then
7815 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 LIPO=$ac_cv_prog_LIPO
7835 if test -n "$LIPO"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7837 $as_echo "$LIPO" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7845 if test -z "$ac_cv_prog_LIPO"; then
7847 # Extract the first word of "lipo", so it can be a program name with args.
7848 set dummy lipo; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7854 if test -n "$ac_ct_LIPO"; then
7855 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_ac_ct_LIPO="lipo"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7875 if test -n "$ac_ct_LIPO"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7877 $as_echo "$ac_ct_LIPO" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7883 if test "x$ac_ct_LIPO" = x; then
7886 case $cross_compiling:$ac_tool_warned in
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7895 LIPO="$ac_cv_prog_LIPO"
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}otool; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7906 if test -n "$OTOOL"; then
7907 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 OTOOL=$ac_cv_prog_OTOOL
7927 if test -n "$OTOOL"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7929 $as_echo "$OTOOL" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7937 if test -z "$ac_cv_prog_OTOOL"; then
7939 # Extract the first word of "otool", so it can be a program name with args.
7940 set dummy otool; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7946 if test -n "$ac_ct_OTOOL"; then
7947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_ac_ct_OTOOL="otool"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7967 if test -n "$ac_ct_OTOOL"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7969 $as_echo "$ac_ct_OTOOL" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7975 if test "x$ac_ct_OTOOL" = x; then
7978 case $cross_compiling:$ac_tool_warned in
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7987 OTOOL="$ac_cv_prog_OTOOL"
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7998 if test -n "$OTOOL64"; then
7999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 OTOOL64=$ac_cv_prog_OTOOL64
8019 if test -n "$OTOOL64"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8021 $as_echo "$OTOOL64" >&6; }
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8029 if test -z "$ac_cv_prog_OTOOL64"; then
8030 ac_ct_OTOOL64=$OTOOL64
8031 # Extract the first word of "otool64", so it can be a program name with args.
8032 set dummy otool64; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8038 if test -n "$ac_ct_OTOOL64"; then
8039 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_ac_ct_OTOOL64="otool64"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8059 if test -n "$ac_ct_OTOOL64"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8061 $as_echo "$ac_ct_OTOOL64" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8067 if test "x$ac_ct_OTOOL64" = x; then
8070 case $cross_compiling:$ac_tool_warned in
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8076 OTOOL64=$ac_ct_OTOOL64
8079 OTOOL64="$ac_cv_prog_OTOOL64"
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8109 $as_echo_n "checking for -single_module linker flag... " >&6; }
8110 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8113 lt_cv_apple_cc_single_mod=no
8114 if test -z "${LT_MULTI_MODULE}"; then
8115 # By default we will add the -single_module flag. You can override
8116 # by either setting the environment variable LT_MULTI_MODULE
8117 # non-empty at configure time, or by adding -multi_module to the
8119 rm -rf libconftest.dylib*
8120 echo "int foo(void){return 1;}" > conftest.c
8121 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8122 -dynamiclib -Wl,-single_module conftest.c" >&5
8123 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8124 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8126 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8127 lt_cv_apple_cc_single_mod=yes
8129 cat conftest.err >&5
8131 rm -rf libconftest.dylib*
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8136 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8138 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8139 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8142 lt_cv_ld_exported_symbols_list=no
8143 save_LDFLAGS=$LDFLAGS
8144 echo "_main" > conftest.sym
8145 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8157 if ac_fn_c_try_link "$LINENO"; then :
8158 lt_cv_ld_exported_symbols_list=yes
8160 lt_cv_ld_exported_symbols_list=no
8162 rm -f core conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8164 LDFLAGS="$save_LDFLAGS"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8168 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8170 $as_echo_n "checking for -force_load linker flag... " >&6; }
8171 if test "${lt_cv_ld_force_load+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8174 lt_cv_ld_force_load=no
8175 cat > conftest.c << _LT_EOF
8176 int forced_loaded() { return 2;}
8178 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8179 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8180 echo "$AR cru libconftest.a conftest.o" >&5
8181 $AR cru libconftest.a conftest.o 2>&5
8182 cat > conftest.c << _LT_EOF
8183 int main() { return 0;}
8185 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8186 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8188 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8189 lt_cv_ld_force_load=yes
8191 cat conftest.err >&5
8193 rm -f conftest.err libconftest.a conftest conftest.c
8194 rm -rf conftest.dSYM
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8198 $as_echo "$lt_cv_ld_force_load" >&6; }
8200 rhapsody* | darwin1.[012])
8201 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8203 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8204 darwin*) # darwin 5.x on
8205 # if running on 10.5 or later, the deployment target defaults
8206 # to the OS version, if on x86, and 10.4, the deployment
8207 # target defaults to 10.4. Don't you love it?
8208 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8209 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8210 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8212 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8214 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8218 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8219 _lt_dar_single_mod='$single_module'
8221 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8222 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8224 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8226 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8227 _lt_dsymutil='~$DSYMUTIL $lib || :'
8234 for ac_header in dlfcn.h
8236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8238 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8239 cat >>confdefs.h <<_ACEOF
8240 #define HAVE_DLFCN_H 1
8262 # Check whether --enable-shared was given.
8263 if test "${enable_shared+set}" = set; then :
8264 enableval=$enable_shared; p=${PACKAGE-default}
8266 yes) enable_shared=yes ;;
8267 no) enable_shared=no ;;
8270 # Look at the argument we got. We use all the common list separators.
8271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272 for pkg in $enableval; do
8274 if test "X$pkg" = "X$p"; then
8293 # Check whether --enable-static was given.
8294 if test "${enable_static+set}" = set; then :
8295 enableval=$enable_static; p=${PACKAGE-default}
8297 yes) enable_static=yes ;;
8298 no) enable_static=no ;;
8301 # Look at the argument we got. We use all the common list separators.
8302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8303 for pkg in $enableval; do
8305 if test "X$pkg" = "X$p"; then
8325 # Check whether --with-pic was given.
8326 if test "${with_pic+set}" = set; then :
8327 withval=$with_pic; pic_mode="$withval"
8333 test -z "$pic_mode" && pic_mode=default
8341 # Check whether --enable-fast-install was given.
8342 if test "${enable_fast_install+set}" = set; then :
8343 enableval=$enable_fast_install; p=${PACKAGE-default}
8345 yes) enable_fast_install=yes ;;
8346 no) enable_fast_install=no ;;
8348 enable_fast_install=no
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351 for pkg in $enableval; do
8353 if test "X$pkg" = "X$p"; then
8354 enable_fast_install=yes
8361 enable_fast_install=yes
8374 # This can be used to rebuild libtool when needed
8375 LIBTOOL_DEPS="$ltmain"
8377 # Always use our own libtool.
8378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8405 test -z "$LN_S" && LN_S="ln -s"
8420 if test -n "${ZSH_VERSION+set}" ; then
8421 setopt NO_GLOB_SUBST
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8425 $as_echo_n "checking for objdir... " >&6; }
8426 if test "${lt_cv_objdir+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8429 rm -f .libs 2>/dev/null
8430 mkdir .libs 2>/dev/null
8431 if test -d .libs; then
8434 # MS-DOS does not allow filenames that begin with a dot.
8437 rmdir .libs 2>/dev/null
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8440 $as_echo "$lt_cv_objdir" >&6; }
8441 objdir=$lt_cv_objdir
8447 cat >>confdefs.h <<_ACEOF
8448 #define LT_OBJDIR "$lt_cv_objdir/"
8456 # AIX sometimes has problems with the GCC collect2 program. For some
8457 # reason, if we set the COLLECT_NAMES environment variable, the problems
8458 # vanish in a puff of smoke.
8459 if test "X${COLLECT_NAMES+set}" != Xset; then
8461 export COLLECT_NAMES
8468 can_build_shared=yes
8470 # All known linkers require a `.a' archive for static linking (except MSVC,
8471 # which needs '.lib').
8474 with_gnu_ld="$lt_cv_prog_gnu_ld"
8477 old_CFLAGS="$CFLAGS"
8479 # Set sane defaults for various variables
8480 test -z "$CC" && CC=cc
8481 test -z "$LTCC" && LTCC=$CC
8482 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8483 test -z "$LD" && LD=ld
8484 test -z "$ac_objext" && ac_objext=o
8486 for cc_temp in $compiler""; do
8488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8494 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8497 # Only perform the check for file, if the check method requires it
8498 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8499 case $deplibs_check_method in
8501 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8503 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8504 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8512 lt_save_MAGIC_CMD="$MAGIC_CMD"
8513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8515 for ac_dir in $ac_dummy; do
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/${ac_tool_prefix}file; then
8519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8520 if test -n "$file_magic_test_file"; then
8521 case $deplibs_check_method in
8523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8526 $EGREP "$file_magic_regex" > /dev/null; then
8531 *** Warning: the command libtool uses to detect shared libraries,
8532 *** $file_magic_cmd, produces output that libtool cannot recognize.
8533 *** The result is that libtool may fail to recognize shared libraries
8534 *** as such. This will affect the creation of libtool libraries that
8535 *** depend on shared libraries, but programs linked with such libtool
8536 *** libraries will work regardless of this problem. Nevertheless, you
8537 *** may want to report the problem to your system manager and/or to
8538 *** bug-libtool@gnu.org
8548 MAGIC_CMD="$lt_save_MAGIC_CMD"
8553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8554 if test -n "$MAGIC_CMD"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8556 $as_echo "$MAGIC_CMD" >&6; }
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8566 if test -z "$lt_cv_path_MAGIC_CMD"; then
8567 if test -n "$ac_tool_prefix"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8569 $as_echo_n "checking for file... " >&6; }
8570 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
8575 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8578 lt_save_MAGIC_CMD="$MAGIC_CMD"
8579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8581 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/file; then
8585 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8586 if test -n "$file_magic_test_file"; then
8587 case $deplibs_check_method in
8589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8592 $EGREP "$file_magic_regex" > /dev/null; then
8597 *** Warning: the command libtool uses to detect shared libraries,
8598 *** $file_magic_cmd, produces output that libtool cannot recognize.
8599 *** The result is that libtool may fail to recognize shared libraries
8600 *** as such. This will affect the creation of libtool libraries that
8601 *** depend on shared libraries, but programs linked with such libtool
8602 *** libraries will work regardless of this problem. Nevertheless, you
8603 *** may want to report the problem to your system manager and/or to
8604 *** bug-libtool@gnu.org
8614 MAGIC_CMD="$lt_save_MAGIC_CMD"
8619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620 if test -n "$MAGIC_CMD"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8622 $as_echo "$MAGIC_CMD" >&6; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8638 # Use C for the default configuration in the libtool script
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648 # Source file extension for C test sources.
8651 # Object file extension for compiled C test sources.
8655 # Code to be used in simple compile tests
8656 lt_simple_compile_test_code="int some_variable = 0;"
8658 # Code to be used in simple link tests
8659 lt_simple_link_test_code='int main(){return(0);}'
8667 # If no C compiler was specified, use CC.
8670 # If no C compiler flags were specified, use CFLAGS.
8671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8673 # Allow CC to be a program name with arguments.
8676 # Save the default compiler, since it gets overwritten when the other
8677 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8678 compiler_DEFAULT=$CC
8680 # save warnings/boilerplate of simple test code
8681 ac_outfile=conftest.$ac_objext
8682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684 _lt_compiler_boilerplate=`cat conftest.err`
8687 ac_outfile=conftest.$ac_objext
8688 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8690 _lt_linker_boilerplate=`cat conftest.err`
8695 ## There is no encapsulation within the following macros, do not change
8696 ## the running order or otherwise move them around unless you know exactly
8697 ## what you are doing...
8698 if test -n "$compiler"; then
8700 lt_prog_compiler_no_builtin_flag=
8702 if test "$GCC" = yes; then
8703 case $cc_basename in
8705 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8707 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8711 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8712 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8715 lt_cv_prog_compiler_rtti_exceptions=no
8716 ac_outfile=conftest.$ac_objext
8717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718 lt_compiler_flag="-fno-rtti -fno-exceptions"
8719 # Insert the option either (1) after the last *FLAGS variable, or
8720 # (2) before a word containing "conftest.", or (3) at the end.
8721 # Note that $ac_compile itself does not contain backslashes and begins
8722 # with a dollar sign (not a hyphen), so the echo should work correctly.
8723 # The option is referenced via a variable to avoid confusing sed.
8724 lt_compile=`echo "$ac_compile" | $SED \
8725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727 -e 's:$: $lt_compiler_flag:'`
8728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8729 (eval "$lt_compile" 2>conftest.err)
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 if (exit $ac_status) && test -s "$ac_outfile"; then
8734 # The compiler can only warn and ignore the option if not recognized
8735 # So say no if there are warnings other than the usual output.
8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8739 lt_cv_prog_compiler_rtti_exceptions=yes
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8746 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8748 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8749 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8761 lt_prog_compiler_wl=
8762 lt_prog_compiler_pic=
8763 lt_prog_compiler_static=
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8766 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8768 if test "$GCC" = yes; then
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_static='-static'
8774 # All AIX code is PIC.
8775 if test "$host_cpu" = ia64; then
8776 # AIX 5 now supports IA64 processor
8777 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_pic='-fPIC'
8785 # see comment about AmigaOS4 .so support
8786 lt_prog_compiler_pic='-fPIC'
8789 # FIXME: we need at least 68020 code to build shared libraries, but
8790 # adding the `-m68020' flag to GCC prevents building anything better,
8792 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8797 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8798 # PIC is the default for these OSes.
8801 mingw* | cygwin* | pw32* | os2* | cegcc*)
8802 # This hack is so that the source file can tell whether it is being
8803 # built for inclusion in a dll (and should export symbols for example).
8804 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8805 # (--disable-auto-import) libraries
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8809 darwin* | rhapsody*)
8810 # PIC is the default on this platform
8811 # Common symbols not allowed in MH_DYLIB files
8812 lt_prog_compiler_pic='-fno-common'
8816 # PIC is the default for Haiku.
8817 # The "-static" flag exists, but is broken.
8818 lt_prog_compiler_static=
8822 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8823 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8824 # sets the default TLS model and affects inlining.
8830 lt_prog_compiler_pic='-fPIC'
8836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8837 # Instead, we relocate shared libraries at runtime.
8841 # Just because we use GCC doesn't mean we suddenly get shared libraries
8842 # on systems that don't support them.
8843 lt_prog_compiler_can_build_shared=no
8848 # QNX uses GNU C++, but need to define -shared option too, otherwise
8850 lt_prog_compiler_pic='-fPIC -shared'
8854 if test -d /usr/nec; then
8855 lt_prog_compiler_pic=-Kconform_pic
8860 lt_prog_compiler_pic='-fPIC'
8864 case $cc_basename in
8865 nvcc*) # Cuda Compiler Driver 2.2
8866 lt_prog_compiler_wl='-Xlinker '
8867 lt_prog_compiler_pic='-Xcompiler -fPIC'
8871 # PORTME Check for flag to pass linker flags through the system compiler.
8874 lt_prog_compiler_wl='-Wl,'
8875 if test "$host_cpu" = ia64; then
8876 # AIX 5 now supports IA64 processor
8877 lt_prog_compiler_static='-Bstatic'
8879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8883 mingw* | cygwin* | pw32* | os2* | cegcc*)
8884 # This hack is so that the source file can tell whether it is being
8885 # built for inclusion in a dll (and should export symbols for example).
8886 lt_prog_compiler_pic='-DDLL_EXPORT'
8889 hpux9* | hpux10* | hpux11*)
8890 lt_prog_compiler_wl='-Wl,'
8891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8898 lt_prog_compiler_pic='+Z'
8901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8902 lt_prog_compiler_static='${wl}-a ${wl}archive'
8905 irix5* | irix6* | nonstopux*)
8906 lt_prog_compiler_wl='-Wl,'
8907 # PIC (with -KPIC) is the default.
8908 lt_prog_compiler_static='-non_shared'
8911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8912 case $cc_basename in
8913 # old Intel for x86_64 which still supported -KPIC.
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-static'
8919 # icc used to be incompatible with GCC.
8920 # ICC 10 doesn't accept -KPIC any more.
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-fPIC'
8924 lt_prog_compiler_static='-static'
8926 # Lahey Fortran 8.1.
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='--shared'
8930 lt_prog_compiler_static='--static'
8932 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8933 # Portland Group compilers (*not* the Pentium gcc compiler,
8934 # which looks to be a dead project)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-fpic'
8937 lt_prog_compiler_static='-Bstatic'
8940 lt_prog_compiler_wl='-Wl,'
8941 # All Alpha code is PIC.
8942 lt_prog_compiler_static='-non_shared'
8944 xl* | bgxl* | bgf* | mpixl*)
8945 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-qpic'
8948 lt_prog_compiler_static='-qstaticlink'
8951 case `$CC -V 2>&1 | sed 5q` in
8952 *Sun\ F* | *Sun*Fortran*)
8953 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 lt_prog_compiler_wl=''
8960 lt_prog_compiler_pic='-KPIC'
8961 lt_prog_compiler_static='-Bstatic'
8962 lt_prog_compiler_wl='-Wl,'
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8975 # QNX uses GNU C++, but need to define -shared option too, otherwise
8977 lt_prog_compiler_pic='-fPIC -shared'
8980 osf3* | osf4* | osf5*)
8981 lt_prog_compiler_wl='-Wl,'
8982 # All OSF/1 code is PIC.
8983 lt_prog_compiler_static='-non_shared'
8987 lt_prog_compiler_static='-non_shared'
8991 lt_prog_compiler_pic='-KPIC'
8992 lt_prog_compiler_static='-Bstatic'
8993 case $cc_basename in
8995 lt_prog_compiler_wl='-Qoption ld ';;
8997 lt_prog_compiler_wl='-Wl,';;
9002 lt_prog_compiler_wl='-Qoption ld '
9003 lt_prog_compiler_pic='-PIC'
9004 lt_prog_compiler_static='-Bstatic'
9007 sysv4 | sysv4.2uw2* | sysv4.3*)
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='-KPIC'
9010 lt_prog_compiler_static='-Bstatic'
9014 if test -d /usr/nec ;then
9015 lt_prog_compiler_pic='-Kconform_pic'
9016 lt_prog_compiler_static='-Bstatic'
9020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_can_build_shared=no
9032 lt_prog_compiler_pic='-pic'
9033 lt_prog_compiler_static='-Bstatic'
9037 lt_prog_compiler_can_build_shared=no
9043 # For platforms which do not support PIC, -DPIC is meaningless:
9045 lt_prog_compiler_pic=
9048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9052 $as_echo "$lt_prog_compiler_pic" >&6; }
9060 # Check to make sure the PIC flag actually works.
9062 if test -n "$lt_prog_compiler_pic"; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9064 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9065 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9068 lt_cv_prog_compiler_pic_works=no
9069 ac_outfile=conftest.$ac_objext
9070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 # The option is referenced via a variable to avoid confusing sed.
9077 lt_compile=`echo "$ac_compile" | $SED \
9078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080 -e 's:$: $lt_compiler_flag:'`
9081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9082 (eval "$lt_compile" 2>conftest.err)
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 if (exit $ac_status) && test -s "$ac_outfile"; then
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings other than the usual output.
9089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_pic_works=yes
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9099 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9101 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9102 case $lt_prog_compiler_pic in
9104 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9107 lt_prog_compiler_pic=
9108 lt_prog_compiler_can_build_shared=no
9119 # Check to make sure the static flag actually works.
9121 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9123 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9124 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9127 lt_cv_prog_compiler_static_works=no
9128 save_LDFLAGS="$LDFLAGS"
9129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9132 # The linker can only warn and ignore the option if not recognized
9133 # So say no if there are warnings
9134 if test -s conftest.err; then
9135 # Append any errors to the config.log.
9136 cat conftest.err 1>&5
9137 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9139 if diff conftest.exp conftest.er2 >/dev/null; then
9140 lt_cv_prog_compiler_static_works=yes
9143 lt_cv_prog_compiler_static_works=yes
9147 LDFLAGS="$save_LDFLAGS"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9151 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9153 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9156 lt_prog_compiler_static=
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9167 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9170 lt_cv_prog_compiler_c_o=no
9171 $RM -r conftest 2>/dev/null
9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9177 lt_compiler_flag="-o out/conftest2.$ac_objext"
9178 # Insert the option either (1) after the last *FLAGS variable, or
9179 # (2) before a word containing "conftest.", or (3) at the end.
9180 # Note that $ac_compile itself does not contain backslashes and begins
9181 # with a dollar sign (not a hyphen), so the echo should work correctly.
9182 lt_compile=`echo "$ac_compile" | $SED \
9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185 -e 's:$: $lt_compiler_flag:'`
9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9187 (eval "$lt_compile" 2>out/conftest.err)
9189 cat out/conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9193 # The compiler can only warn and ignore the option if not recognized
9194 # So say no if there are warnings
9195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9198 lt_cv_prog_compiler_c_o=yes
9203 # SGI C++ compiler will create directory out/ii_files/ for
9204 # template instantiation
9205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9206 $RM out/* && rmdir out
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9222 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9225 lt_cv_prog_compiler_c_o=no
9226 $RM -r conftest 2>/dev/null
9230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9232 lt_compiler_flag="-o out/conftest2.$ac_objext"
9233 # Insert the option either (1) after the last *FLAGS variable, or
9234 # (2) before a word containing "conftest.", or (3) at the end.
9235 # Note that $ac_compile itself does not contain backslashes and begins
9236 # with a dollar sign (not a hyphen), so the echo should work correctly.
9237 lt_compile=`echo "$ac_compile" | $SED \
9238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9240 -e 's:$: $lt_compiler_flag:'`
9241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9242 (eval "$lt_compile" 2>out/conftest.err)
9244 cat out/conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9248 # The compiler can only warn and ignore the option if not recognized
9249 # So say no if there are warnings
9250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9253 lt_cv_prog_compiler_c_o=yes
9258 # SGI C++ compiler will create directory out/ii_files/ for
9259 # template instantiation
9260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9261 $RM out/* && rmdir out
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9273 hard_links="nottested"
9274 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9275 # do not overwrite the value of need_locks provided by the user
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9277 $as_echo_n "checking if we can lock with hard links... " >&6; }
9280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9282 ln conftest.a conftest.b 2>&5 || hard_links=no
9283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9285 $as_echo "$hard_links" >&6; }
9286 if test "$hard_links" = no; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9288 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9301 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9304 allow_undefined_flag=
9305 always_export_symbols=no
9307 archive_expsym_cmds=
9308 compiler_needs_object=no
9309 enable_shared_with_static_runtimes=no
9310 export_dynamic_flag_spec=
9311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9312 hardcode_automatic=no
9314 hardcode_direct_absolute=no
9315 hardcode_libdir_flag_spec=
9316 hardcode_libdir_flag_spec_ld=
9317 hardcode_libdir_separator=
9319 hardcode_shlibpath_var=unsupported
9321 link_all_deplibs=unknown
9324 old_archive_from_new_cmds=
9325 old_archive_from_expsyms_cmds=
9326 thread_safe_flag_spec=
9327 whole_archive_flag_spec=
9328 # include_expsyms should be a list of space-separated symbols to be *always*
9329 # included in the symbol list
9331 # exclude_expsyms can be an extended regexp of symbols to exclude
9332 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9333 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9334 # as well as any symbol that contains `d'.
9335 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9336 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9337 # platforms (ab)use it in PIC code, but their linkers get confused if
9338 # the symbol is explicitly referenced. Since portable code cannot
9339 # rely on this symbol name, it's probably fine to never include it in
9340 # preloaded symbol tables.
9341 # Exclude shared library initialization/finalization symbols.
9342 extract_expsyms_cmds=
9345 cygwin* | mingw* | pw32* | cegcc*)
9346 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9347 # When not using gcc, we currently assume that we are using
9348 # Microsoft Visual C++.
9349 if test "$GCC" != yes; then
9354 # we just hope/assume this is gcc and not c89 (= MSVC++)
9364 # On some targets, GNU ld is compatible enough with the native linker
9365 # that we're better off using the native interface for both.
9366 lt_use_gnu_ld_interface=no
9367 if test "$with_gnu_ld" = yes; then
9370 # The AIX port of GNU ld has always aspired to compatibility
9371 # with the native linker. However, as the warning in the GNU ld
9372 # block says, versions before 2.19.5* couldn't really create working
9373 # shared libraries, regardless of the interface used.
9374 case `$LD -v 2>&1` in
9375 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9376 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9377 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9379 lt_use_gnu_ld_interface=yes
9384 lt_use_gnu_ld_interface=yes
9389 if test "$lt_use_gnu_ld_interface" = yes; then
9390 # If archive_cmds runs LD, not CC, wlarc should be empty
9393 # Set some defaults for GNU ld with shared library support. These
9394 # are reset later if shared libraries are not supported. Putting them
9395 # here allows them to be overridden if necessary.
9396 runpath_var=LD_RUN_PATH
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 export_dynamic_flag_spec='${wl}--export-dynamic'
9399 # ancient GNU ld didn't support --whole-archive et. al.
9400 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9401 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9403 whole_archive_flag_spec=
9405 supports_anon_versioning=no
9406 case `$LD -v 2>&1` in
9407 *GNU\ gold*) supports_anon_versioning=yes ;;
9408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9411 *\ 2.11.*) ;; # other 2.11 versions
9412 *) supports_anon_versioning=yes ;;
9415 # See if GNU ld supports shared libraries.
9418 # On AIX/PPC, the GNU linker is very broken
9419 if test "$host_cpu" != ia64; then
9423 *** Warning: the GNU linker, at least up to release 2.19, is reported
9424 *** to be unable to reliably create shared libraries on AIX.
9425 *** Therefore, libtool is disabling shared libraries support. If you
9426 *** really care for shared libraries, you may want to install binutils
9427 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9428 *** You will then need to restart the configuration process.
9437 # see comment about AmigaOS4 .so support
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds=''
9442 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)'
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 hardcode_minus_L=yes
9450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451 allow_undefined_flag=unsupported
9452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9453 # support --undefined. This deserves some investigation. FIXME
9454 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9460 cygwin* | mingw* | pw32* | cegcc*)
9461 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9462 # as there is no search path for DLLs.
9463 hardcode_libdir_flag_spec='-L$libdir'
9464 export_dynamic_flag_spec='${wl}--export-all-symbols'
9465 allow_undefined_flag=unsupported
9466 always_export_symbols=no
9467 enable_shared_with_static_runtimes=yes
9468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9470 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472 # If the export-symbols file already is a .def file (1st line
9473 # is EXPORTS), use it as is; otherwise, prepend...
9474 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9475 cp $export_symbols $output_objdir/$soname.def;
9477 echo EXPORTS > $output_objdir/$soname.def;
9478 cat $export_symbols >> $output_objdir/$soname.def;
9480 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 link_all_deplibs=yes
9493 hardcode_shlibpath_var=no
9494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9495 export_dynamic_flag_spec='${wl}-E'
9496 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9497 # Instead, shared libraries are loaded at an image base (0x10000000 by
9498 # default) and relocated if they conflict, which is a slow very memory
9499 # consuming and fragmenting process. To avoid this, we pick a random,
9500 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9501 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9502 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9503 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'
9506 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9508 if test "$host_os" = linux-dietlibc; then
9509 case $cc_basename in
9510 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9513 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9514 && test "$tmp_diet" = no
9516 tmp_addflag=' $pic_flag'
9517 tmp_sharedflag='-shared'
9518 case $cc_basename,$host_cpu in
9519 pgcc*) # Portland Group C compiler
9520 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'
9521 tmp_addflag=' $pic_flag'
9523 pgf77* | pgf90* | pgf95* | pgfortran*)
9524 # Portland Group f77 and f90 compilers
9525 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'
9526 tmp_addflag=' $pic_flag -Mnomain' ;;
9527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9528 tmp_addflag=' -i_dynamic' ;;
9529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9530 tmp_addflag=' -i_dynamic -nofor_main' ;;
9531 ifc* | ifort*) # Intel Fortran compiler
9532 tmp_addflag=' -nofor_main' ;;
9533 lf95*) # Lahey Fortran 8.1
9534 whole_archive_flag_spec=
9535 tmp_sharedflag='--shared' ;;
9536 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9537 tmp_sharedflag='-qmkshrobj'
9539 nvcc*) # Cuda Compiler Driver 2.2
9540 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'
9541 compiler_needs_object=yes
9544 case `$CC -V 2>&1 | sed 5q` in
9545 *Sun\ C*) # Sun C 5.9
9546 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'
9547 compiler_needs_object=yes
9548 tmp_sharedflag='-G' ;;
9549 *Sun\ F*) # Sun Fortran 8.3
9550 tmp_sharedflag='-G' ;;
9552 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 if test "x$supports_anon_versioning" = xyes; then
9555 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9557 echo "local: *; };" >> $output_objdir/$libname.ver~
9558 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9561 case $cc_basename in
9562 xlf* | bgf* | bgxlf* | mpixlf*)
9563 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9564 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9565 hardcode_libdir_flag_spec=
9566 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9567 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9568 if test "x$supports_anon_versioning" = xyes; then
9569 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9571 echo "local: *; };" >> $output_objdir/$libname.ver~
9572 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9583 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9592 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9596 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9597 *** create shared libraries on Solaris systems. Therefore, libtool
9598 *** is disabling shared libraries support. We urge you to upgrade GNU
9599 *** binutils to release 2.9.1 or newer. Another option is to modify
9600 *** your PATH or compiler configuration so that the native linker is
9601 *** used, and then restart.
9604 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9613 case `$LD -v 2>&1` in
9614 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9618 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9619 *** reliably create shared libraries on SCO systems. Therefore, libtool
9620 *** is disabling shared libraries support. We urge you to upgrade GNU
9621 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9622 *** your PATH or compiler configuration so that the native linker is
9623 *** used, and then restart.
9628 # For security reasons, it is highly recommended that you always
9629 # use absolute paths for naming shared libraries, and exclude the
9630 # DT_RUNPATH tag from executables and libraries. But doing so
9631 # requires that you compile everything twice, which is a pain.
9632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9644 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_shlibpath_var=no
9651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9660 if test "$ld_shlibs" = no; then
9662 hardcode_libdir_flag_spec=
9663 export_dynamic_flag_spec=
9664 whole_archive_flag_spec=
9667 # PORTME fill in a description of your system's linker (not GNU ld)
9670 allow_undefined_flag=unsupported
9671 always_export_symbols=yes
9672 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'
9673 # Note: this linker hardcodes the directories in LIBPATH if there
9674 # are no directories specified by -L.
9675 hardcode_minus_L=yes
9676 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9677 # Neither direct hardcoding nor static linking is supported with a
9679 hardcode_direct=unsupported
9684 if test "$host_cpu" = ia64; then
9685 # On IA64, the linker does run time linking by default, so we don't
9686 # have to do anything special.
9687 aix_use_runtimelinking=no
9688 exp_sym_flag='-Bexport'
9691 # If we're using GNU nm, then we don't want the "-C" option.
9692 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9693 # Also, AIX nm treats weak defined symbols like other global
9694 # defined symbols, whereas GNU nm marks them as "W".
9695 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9696 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'
9698 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'
9700 aix_use_runtimelinking=no
9702 # Test if we are trying to use run time linking or normal
9703 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9704 # need to do runtime linking.
9705 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9706 for ld_flag in $LDFLAGS; do
9707 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9708 aix_use_runtimelinking=yes
9715 exp_sym_flag='-bexport'
9716 no_entry_flag='-bnoentry'
9719 # When large executables or shared objects are built, AIX ld can
9720 # have problems creating the table of contents. If linking a library
9721 # or program results in "error TOC overflow" add -mminimal-toc to
9722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9727 hardcode_direct_absolute=yes
9728 hardcode_libdir_separator=':'
9729 link_all_deplibs=yes
9730 file_list_spec='${wl}-f,'
9732 if test "$GCC" = yes; then
9733 case $host_os in aix4.[012]|aix4.[012].*)
9734 # We only want to do this on AIX 4.2 and lower, the check
9735 # below for broken collect2 doesn't work under 4.3+
9736 collect2name=`${CC} -print-prog-name=collect2`
9737 if test -f "$collect2name" &&
9738 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9740 # We have reworked collect2
9743 # We have old collect2
9744 hardcode_direct=unsupported
9745 # It fails to find uninstalled libraries when the uninstalled
9746 # path is not listed in the libpath. Setting hardcode_minus_L
9747 # to unsupported forces relinking
9748 hardcode_minus_L=yes
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_libdir_separator=
9754 shared_flag='-shared'
9755 if test "$aix_use_runtimelinking" = yes; then
9756 shared_flag="$shared_flag "'${wl}-G'
9760 if test "$host_cpu" = ia64; then
9761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9762 # chokes on -Wl,-G. The following line is correct:
9765 if test "$aix_use_runtimelinking" = yes; then
9766 shared_flag='${wl}-G'
9768 shared_flag='${wl}-bM:SRE'
9773 export_dynamic_flag_spec='${wl}-bexpall'
9774 # It seems that -bexpall does not export symbols beginning with
9775 # underscore (_), so it is better to generate a list of symbols to export.
9776 always_export_symbols=yes
9777 if test "$aix_use_runtimelinking" = yes; then
9778 # Warning - without using the other runtime loading flags (-brtl),
9779 # -berok will link without error, but may produce a broken library.
9780 allow_undefined_flag='-berok'
9781 # Determine the default libpath from the value encoded in an
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9794 if ac_fn_c_try_link "$LINENO"; then :
9796 lt_aix_libpath_sed='
9797 /Import File Strings/,/^$/ {
9803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804 # Check for a 64-bit object if we didn't find anything.
9805 if test -z "$aix_libpath"; then
9806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9809 rm -f core conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
9811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9814 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"
9816 if test "$host_cpu" = ia64; then
9817 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9818 allow_undefined_flag="-z nodefs"
9819 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"
9821 # Determine the default libpath from the value encoded in an
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9834 if ac_fn_c_try_link "$LINENO"; then :
9836 lt_aix_libpath_sed='
9837 /Import File Strings/,/^$/ {
9843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844 # Check for a 64-bit object if we didn't find anything.
9845 if test -z "$aix_libpath"; then
9846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9849 rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9854 # Warning - without using the other run time loading flags,
9855 # -berok will link without error, but may produce a broken library.
9856 no_undefined_flag=' ${wl}-bernotok'
9857 allow_undefined_flag=' ${wl}-berok'
9858 if test "$with_gnu_ld" = yes; then
9859 # We only use this code for GNU lds that support --whole-archive.
9860 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9862 # Exported symbols can be pulled into shared objects from archives
9863 whole_archive_flag_spec='$convenience'
9865 archive_cmds_need_lc=yes
9866 # This is similar to how AIX traditionally builds its shared libraries.
9867 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'
9875 # see comment about AmigaOS4 .so support
9876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 archive_expsym_cmds=''
9880 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)'
9881 hardcode_libdir_flag_spec='-L$libdir'
9882 hardcode_minus_L=yes
9888 export_dynamic_flag_spec=-rdynamic
9891 cygwin* | mingw* | pw32* | cegcc*)
9892 # When not using gcc, we currently assume that we are using
9893 # Microsoft Visual C++.
9894 # hardcode_libdir_flag_spec is actually meaningless, as there is
9895 # no search path for DLLs.
9896 hardcode_libdir_flag_spec=' '
9897 allow_undefined_flag=unsupported
9898 # Tell ltmain to make .lib files, not .a files.
9900 # Tell ltmain to make .dll files, not .so files.
9902 # FIXME: Setting linknames here is a bad hack.
9903 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9904 # The linker will automatically build a .lib file if we build a DLL.
9905 old_archive_from_new_cmds='true'
9906 # FIXME: Should let the user specify the lib program.
9907 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9908 fix_srcfile_path='`cygpath -w "$srcfile"`'
9909 enable_shared_with_static_runtimes=yes
9912 darwin* | rhapsody*)
9915 archive_cmds_need_lc=no
9917 hardcode_automatic=yes
9918 hardcode_shlibpath_var=unsupported
9919 if test "$lt_cv_ld_force_load" = "yes"; then
9920 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\"`'
9922 whole_archive_flag_spec=''
9924 link_all_deplibs=yes
9925 allow_undefined_flag="$_lt_dar_allow_undefined"
9926 case $cc_basename in
9927 ifort*) _lt_dar_can_shared=yes ;;
9928 *) _lt_dar_can_shared=$GCC ;;
9930 if test "$_lt_dar_can_shared" = "yes"; then
9931 output_verbose_link_cmd=func_echo_all
9932 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9933 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9934 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}"
9935 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}"
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_shlibpath_var=no
9949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9950 # support. Future versions do this automatically, but an explicit c++rt0.o
9951 # does not break anything, and helps significantly (at the cost of a little
9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9955 hardcode_libdir_flag_spec='-R$libdir'
9957 hardcode_shlibpath_var=no
9960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_minus_L=yes
9965 hardcode_shlibpath_var=no
9968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9969 freebsd* | dragonfly*)
9970 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9971 hardcode_libdir_flag_spec='-R$libdir'
9973 hardcode_shlibpath_var=no
9977 if test "$GCC" = yes; then
9978 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'
9980 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'
9982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9983 hardcode_libdir_separator=:
9986 # hardcode_minus_L: Not really in the search PATH,
9987 # but as the default location of the library.
9988 hardcode_minus_L=yes
9989 export_dynamic_flag_spec='${wl}-E'
9993 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9998 if test "$with_gnu_ld" = no; then
9999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10000 hardcode_libdir_flag_spec_ld='+b $libdir'
10001 hardcode_libdir_separator=:
10002 hardcode_direct=yes
10003 hardcode_direct_absolute=yes
10004 export_dynamic_flag_spec='${wl}-E'
10005 # hardcode_minus_L: Not really in the search PATH,
10006 # but as the default location of the library.
10007 hardcode_minus_L=yes
10012 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10015 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10034 # Older versions of the 11.00 compiler do not understand -b yet
10035 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10037 $as_echo_n "checking if $CC understands -b... " >&6; }
10038 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10041 lt_cv_prog_compiler__b=no
10042 save_LDFLAGS="$LDFLAGS"
10043 LDFLAGS="$LDFLAGS -b"
10044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046 # The linker can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 if test -s conftest.err; then
10049 # Append any errors to the config.log.
10050 cat conftest.err 1>&5
10051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler__b=yes
10057 lt_cv_prog_compiler__b=yes
10061 LDFLAGS="$save_LDFLAGS"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10065 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10067 if test x"$lt_cv_prog_compiler__b" = xyes; then
10068 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10076 if test "$with_gnu_ld" = no; then
10077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10078 hardcode_libdir_separator=:
10083 hardcode_shlibpath_var=no
10086 hardcode_direct=yes
10087 hardcode_direct_absolute=yes
10088 export_dynamic_flag_spec='${wl}-E'
10090 # hardcode_minus_L: Not really in the search PATH,
10091 # but as the default location of the library.
10092 hardcode_minus_L=yes
10098 irix5* | irix6* | nonstopux*)
10099 if test "$GCC" = yes; then
10100 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'
10101 # Try to use the -exported_symbol ld option, if it does not
10102 # work, assume that -exports_file does not work either and
10103 # implicitly export all symbols.
10104 save_LDFLAGS="$LDFLAGS"
10105 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10110 if ac_fn_c_try_link "$LINENO"; then :
10111 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'
10114 rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LDFLAGS="$save_LDFLAGS"
10118 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'
10119 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'
10121 archive_cmds_need_lc='no'
10122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123 hardcode_libdir_separator=:
10125 link_all_deplibs=yes
10129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10132 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10134 hardcode_libdir_flag_spec='-R$libdir'
10135 hardcode_direct=yes
10136 hardcode_shlibpath_var=no
10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 hardcode_direct=yes
10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143 hardcode_libdir_separator=:
10144 hardcode_shlibpath_var=no
10151 if test -f /usr/libexec/ld.so; then
10152 hardcode_direct=yes
10153 hardcode_shlibpath_var=no
10154 hardcode_direct_absolute=yes
10155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10158 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10159 export_dynamic_flag_spec='${wl}-E'
10162 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_libdir_flag_spec='-R$libdir'
10167 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_minus_L=yes
10180 allow_undefined_flag=unsupported
10181 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'
10182 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10186 if test "$GCC" = yes; then
10187 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10188 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'
10190 allow_undefined_flag=' -expect_unresolved \*'
10191 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'
10193 archive_cmds_need_lc='no'
10194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195 hardcode_libdir_separator=:
10198 osf4* | osf5*) # as osf3* with the addition of -msym flag
10199 if test "$GCC" = yes; then
10200 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10201 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'
10202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10204 allow_undefined_flag=' -expect_unresolved \*'
10205 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'
10206 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~
10207 $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'
10209 # Both c and cxx compiler support -rpath directly
10210 hardcode_libdir_flag_spec='-rpath $libdir'
10212 archive_cmds_need_lc='no'
10213 hardcode_libdir_separator=:
10217 no_undefined_flag=' -z defs'
10218 if test "$GCC" = yes; then
10220 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10224 case `$CC -V 2>&1` in
10227 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10233 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10239 hardcode_libdir_flag_spec='-R$libdir'
10240 hardcode_shlibpath_var=no
10242 solaris2.[0-5] | solaris2.[0-5].*) ;;
10244 # The compiler driver will combine and reorder linker options,
10245 # but understands `-z linker_flag'. GCC discards it without `$wl',
10246 # but is careful enough not to reorder.
10247 # Supported since Solaris 2.6 (maybe 2.5.1?)
10248 if test "$GCC" = yes; then
10249 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10251 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10255 link_all_deplibs=yes
10259 if test "x$host_vendor" = xsequent; then
10260 # Use $CC to link under sequent, because it throws in some extra .o
10261 # files that make .init and .fini sections work.
10262 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_direct=yes
10268 hardcode_minus_L=yes
10269 hardcode_shlibpath_var=no
10273 case $host_vendor in
10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_direct=yes # is this really true???
10279 ## LD is ld it makes a PLAMLIB
10280 ## CC just makes a GrossModule.
10281 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10282 reload_cmds='$CC -r -o $output$reload_objs'
10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10290 runpath_var='LD_RUN_PATH'
10291 hardcode_shlibpath_var=no
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_shlibpath_var=no
10297 export_dynamic_flag_spec='-Bexport'
10301 if test -d /usr/nec; then
10302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_shlibpath_var=no
10304 runpath_var=LD_RUN_PATH
10305 hardcode_runpath_var=yes
10310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10311 no_undefined_flag='${wl}-z,text'
10312 archive_cmds_need_lc=no
10313 hardcode_shlibpath_var=no
10314 runpath_var='LD_RUN_PATH'
10316 if test "$GCC" = yes; then
10317 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 sysv5* | sco3.2v5* | sco5v6*)
10326 # Note: We can NOT use -z defs as we might desire, because we do not
10327 # link with -lc, and that would cause any symbols used from libc to
10328 # always be unresolved, which means just about no library would
10329 # ever link correctly. If we're not using GNU ld we use -z text
10330 # though, which does catch some bad symbols but isn't as heavy-handed
10332 no_undefined_flag='${wl}-z,text'
10333 allow_undefined_flag='${wl}-z,nodefs'
10334 archive_cmds_need_lc=no
10335 hardcode_shlibpath_var=no
10336 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10337 hardcode_libdir_separator=':'
10338 link_all_deplibs=yes
10339 export_dynamic_flag_spec='${wl}-Bexport'
10340 runpath_var='LD_RUN_PATH'
10342 if test "$GCC" = yes; then
10343 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_libdir_flag_spec='-L$libdir'
10354 hardcode_shlibpath_var=no
10362 if test x$host_vendor = xsni; then
10364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10365 export_dynamic_flag_spec='${wl}-Blargedynsym'
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10372 $as_echo "$ld_shlibs" >&6; }
10373 test "$ld_shlibs" = no && can_build_shared=no
10375 with_gnu_ld=$with_gnu_ld
10392 # Do we need to explicitly link libc?
10394 case "x$archive_cmds_need_lc" in
10396 # Assume -lc should be added
10397 archive_cmds_need_lc=yes
10399 if test "$enable_shared" = yes && test "$GCC" = yes; then
10400 case $archive_cmds in
10402 # FIXME: we may have to deal with multi-command sequences.
10405 # Test whether the compiler implicitly links with -lc since on some
10406 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10407 # to ld, don't add -lc before -lgcc.
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10409 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10410 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10417 (eval $ac_compile) 2>&5
10419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420 test $ac_status = 0; } 2>conftest.err; then
10423 libobjs=conftest.$ac_objext
10425 wl=$lt_prog_compiler_wl
10426 pic_flag=$lt_prog_compiler_pic
10432 lt_save_allow_undefined_flag=$allow_undefined_flag
10433 allow_undefined_flag=
10434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10435 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438 test $ac_status = 0; }
10440 lt_cv_archive_cmds_need_lc=no
10442 lt_cv_archive_cmds_need_lc=yes
10444 allow_undefined_flag=$lt_save_allow_undefined_flag
10446 cat conftest.err 1>&5
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10452 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10453 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10617 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10619 if test "$GCC" = yes; then
10621 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10622 *) lt_awk_arg="/^libraries:/" ;;
10625 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10626 *) lt_sed_strip_eq="s,=/,/,g" ;;
10628 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10629 case $lt_search_path_spec in
10631 # if the path contains ";" then we assume it to be the separator
10632 # otherwise default to the standard path separator (i.e. ":") - it is
10633 # assumed that no part of a normal pathname contains ";" but that should
10634 # okay in the real world where ";" in dirpaths is itself problematic.
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10638 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10641 # Ok, now we have the path, separated by spaces, we can step through it
10642 # and add multilib dir if necessary.
10643 lt_tmp_lt_search_path_spec=
10644 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10645 for lt_sys_path in $lt_search_path_spec; do
10646 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10649 test -d "$lt_sys_path" && \
10650 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10653 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10654 BEGIN {RS=" "; FS="/|\n";} {
10657 for (lt_i = NF; lt_i > 0; lt_i--) {
10658 if ($lt_i != "" && $lt_i != ".") {
10659 if ($lt_i == "..") {
10662 if (lt_count == 0) {
10663 lt_foo="/" $lt_i lt_foo;
10670 if (lt_foo != "") { lt_freq[lt_foo]++; }
10671 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10673 # AWK program above erroneously prepends '/' to C:/dos/paths
10676 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10677 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10679 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10683 library_names_spec=
10684 libname_spec='lib$name'
10688 postuninstall_cmds=
10692 shlibpath_overrides_runpath=unknown
10694 dynamic_linker="$host_os ld.so"
10695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10696 need_lib_prefix=unknown
10697 hardcode_into_libs=no
10699 # when you set need_version to no, make sure it does not cause -set_version
10700 # flags to be left without arguments
10701 need_version=unknown
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10707 shlibpath_var=LIBPATH
10709 # AIX 3 has no versioning support, so we append a major version to the name.
10710 soname_spec='${libname}${release}${shared_ext}$major'
10717 hardcode_into_libs=yes
10718 if test "$host_cpu" = ia64; then
10719 # AIX 5 supports IA64
10720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10721 shlibpath_var=LD_LIBRARY_PATH
10723 # With GCC up to 2.95.x, collect2 would create an import file
10724 # for dependence libraries. The import file would start with
10725 # the line `#! .'. This would cause the generated library to
10726 # depend on `.', always an invalid library. This was fixed in
10727 # development snapshots of GCC prior to 3.0.
10729 aix4 | aix4.[01] | aix4.[01].*)
10730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10732 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10735 can_build_shared=no
10739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10740 # soname into executable. Probably we can add versioning support to
10741 # collect2, so additional links can be useful in future.
10742 if test "$aix_use_runtimelinking" = yes; then
10743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744 # instead of lib<name>.a to let people know that these are not
10745 # typical AIX shared libraries.
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 # We preserve .a as extension for shared libraries through AIX4.2
10749 # and later when we are not doing run time linking.
10750 library_names_spec='${libname}${release}.a $libname.a'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LIBPATH
10760 # Since July 2007 AmigaOS4 officially supports .so libraries.
10761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 library_names_spec='$libname.ixlibrary $libname.a'
10766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10767 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'
10773 library_names_spec='${libname}${shared_ext}'
10774 dynamic_linker="$host_os ld.so"
10775 shlibpath_var=LIBRARY_PATH
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10787 # the default ld.so.conf also contains /usr/contrib/lib and
10788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10789 # libtool to hard-code these into programs
10792 cygwin* | mingw* | pw32* | cegcc*)
10793 version_type=windows
10798 case $GCC,$host_os in
10799 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10800 library_names_spec='$libname.dll.a'
10801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10802 postinstall_cmds='base_file=`basename \${file}`~
10803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10804 dldir=$destdir/`dirname \$dlpath`~
10805 test -d \$dldir || mkdir -p \$dldir~
10806 $install_prog $dir/$dlname \$dldir/$dlname~
10807 chmod a+x \$dldir/$dlname~
10808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10812 dlpath=$dir/\$dldll~
10814 shlibpath_overrides_runpath=yes
10818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10821 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10824 # MinGW DLLs use traditional 'lib' prefix
10825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828 # pw32 DLLs use 'pw' prefix rather than 'lib'
10829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10838 dynamic_linker='Win32 ld.exe'
10839 # FIXME: first we should search . and the directory the executable is in
10843 darwin* | rhapsody*)
10844 dynamic_linker="$host_os dyld"
10845 version_type=darwin
10848 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10849 soname_spec='${libname}${release}${major}$shared_ext'
10850 shlibpath_overrides_runpath=yes
10851 shlibpath_var=DYLD_LIBRARY_PATH
10852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10854 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 shlibpath_var=LD_LIBRARY_PATH
10867 freebsd* | dragonfly*)
10868 # DragonFly does not have aout. When/if they implement a new
10869 # versioning mechanism, adjust this.
10870 if test -x /usr/bin/objformat; then
10871 objformat=`/usr/bin/objformat`
10874 freebsd[23].*) objformat=aout ;;
10875 *) objformat=elf ;;
10878 version_type=freebsd-$objformat
10879 case $version_type in
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10890 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=yes
10895 freebsd3.[01]* | freebsdelf3.[01]*)
10896 shlibpath_overrides_runpath=yes
10897 hardcode_into_libs=yes
10899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10901 shlibpath_overrides_runpath=no
10902 hardcode_into_libs=yes
10904 *) # from 4.6 on, and DragonFly
10905 shlibpath_overrides_runpath=yes
10906 hardcode_into_libs=yes
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 hardcode_into_libs=yes
10925 dynamic_linker="$host_os runtime_loader"
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 shlibpath_var=LIBRARY_PATH
10929 shlibpath_overrides_runpath=yes
10930 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10931 hardcode_into_libs=yes
10934 hpux9* | hpux10* | hpux11*)
10935 # Give a soname corresponding to the major version so that dld.sl refuses to
10936 # link against other versions.
10943 hardcode_into_libs=yes
10944 dynamic_linker="$host_os dld.so"
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 if test "X$HPUX_IA64_MODE" = X32; then
10950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10958 hardcode_into_libs=yes
10959 dynamic_linker="$host_os dld.sl"
10960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10969 dynamic_linker="$host_os dld.sl"
10970 shlibpath_var=SHLIB_PATH
10971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10976 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10977 postinstall_cmds='chmod 555 $lib'
10978 # or fails outright, so override atomically:
10979 install_override_mode=555
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=no
10991 hardcode_into_libs=yes
10994 irix5* | irix6* | nonstopux*)
10996 nonstopux*) version_type=nonstopux ;;
10998 if test "$lt_cv_prog_gnu_ld" = yes; then
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11009 irix5* | nonstopux*)
11010 libsuff= shlibsuff=
11013 case $LD in # libtool.m4 will add one of these switches to LD
11014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11015 libsuff= shlibsuff= libmagic=32-bit;;
11016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11017 libsuff=32 shlibsuff=N32 libmagic=N32;;
11018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11020 *) libsuff= shlibsuff= libmagic=never-match;;
11024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11025 shlibpath_overrides_runpath=no
11026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11028 hardcode_into_libs=yes
11031 # No shared lib support for Linux oldld, aout, or coff.
11032 linux*oldld* | linux*aout* | linux*coff*)
11036 # This must be Linux ELF.
11037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11047 # Some binutils ld are patched to set DT_RUNPATH
11048 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11051 lt_cv_shlibpath_overrides_runpath=no
11052 save_LDFLAGS=$LDFLAGS
11053 save_libdir=$libdir
11054 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11055 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11067 if ac_fn_c_try_link "$LINENO"; then :
11068 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11069 lt_cv_shlibpath_overrides_runpath=yes
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LDFLAGS=$save_LDFLAGS
11075 libdir=$save_libdir
11079 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11081 # This implies no fast_install, which is unacceptable.
11082 # Some rework will be needed to allow for fast_install
11083 # before this can be enabled.
11084 hardcode_into_libs=yes
11086 # Append ld.so.conf contents to the search path
11087 if test -f /etc/ld.so.conf; then
11088 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' ' '`
11089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11092 # We used to test for /lib/ld.so.1 and disable shared libraries on
11093 # powerpc, because MkLinux only supported shared libraries with the
11094 # GNU dynamic linker. Since this was broken with cross compilers,
11095 # most powerpc-linux boxes support dynamic linking these days and
11096 # people can always --disable-shared, the test was removed, and we
11097 # assume the GNU/Linux dynamic linker is in use.
11098 dynamic_linker='GNU/Linux ld.so'
11105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108 dynamic_linker='NetBSD (a.out) ld.so'
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 dynamic_linker='NetBSD ld.elf_so'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 hardcode_into_libs=yes
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=no
11134 hardcode_into_libs=yes
11135 dynamic_linker='ldqnx.so'
11140 sys_lib_dlsearch_path_spec="/usr/lib"
11142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11144 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11145 *) need_version=no ;;
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11152 openbsd2.[89] | openbsd2.[89].*)
11153 shlibpath_overrides_runpath=no
11156 shlibpath_overrides_runpath=yes
11160 shlibpath_overrides_runpath=yes
11165 libname_spec='$name'
11168 library_names_spec='$libname${shared_ext} $libname.a'
11169 dynamic_linker='OS/2 ld.exe'
11170 shlibpath_var=LIBPATH
11173 osf3* | osf4* | osf5*)
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 hardcode_into_libs=yes
11197 # ldd complains unless libraries are executable
11198 postinstall_cmds='chmod +x $lib'
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=yes
11207 if test "$with_gnu_ld" = yes; then
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 case $host_vendor in
11220 shlibpath_overrides_runpath=no
11222 runpath_var=LD_RUN_PATH
11230 shlibpath_overrides_runpath=no
11231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11237 if test -d /usr/nec ;then
11239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11240 soname_spec='$libname${shared_ext}.$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11246 version_type=freebsd-elf
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=yes
11253 hardcode_into_libs=yes
11254 if test "$with_gnu_ld" = yes; then
11255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11264 sys_lib_dlsearch_path_spec='/usr/lib'
11268 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11290 $as_echo "$dynamic_linker" >&6; }
11291 test "$dynamic_linker" = no && can_build_shared=no
11293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11294 if test "$GCC" = yes; then
11295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11298 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11299 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11301 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11302 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11397 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11399 if test -n "$hardcode_libdir_flag_spec" ||
11400 test -n "$runpath_var" ||
11401 test "X$hardcode_automatic" = "Xyes" ; then
11403 # We can hardcode non-existent directories.
11404 if test "$hardcode_direct" != no &&
11405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11406 # have to relink, otherwise we might link with an installed library
11407 # when we should be linking with a yet-to-be-installed one
11408 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11409 test "$hardcode_minus_L" != no; then
11410 # Linking always hardcodes the temporary library directory.
11411 hardcode_action=relink
11413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11414 hardcode_action=immediate
11417 # We cannot hardcode anything, or else we can only hardcode existing
11419 hardcode_action=unsupported
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11422 $as_echo "$hardcode_action" >&6; }
11424 if test "$hardcode_action" = relink ||
11425 test "$inherit_rpath" = yes; then
11426 # Fast installation is not supported
11427 enable_fast_install=no
11428 elif test "$shlibpath_overrides_runpath" = yes ||
11429 test "$enable_shared" = no; then
11430 # Fast installation is not necessary
11431 enable_fast_install=needless
11439 if test "x$enable_dlopen" != xyes; then
11440 enable_dlopen=unknown
11441 enable_dlopen_self=unknown
11442 enable_dlopen_self_static=unknown
11449 lt_cv_dlopen="load_add_on"
11451 lt_cv_dlopen_self=yes
11454 mingw* | pw32* | cegcc*)
11455 lt_cv_dlopen="LoadLibrary"
11460 lt_cv_dlopen="dlopen"
11465 # if libdl is installed we need to link against it
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11467 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11468 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11469 $as_echo_n "(cached) " >&6
11471 ac_check_lib_save_LIBS=$LIBS
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11476 /* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11491 if ac_fn_c_try_link "$LINENO"; then :
11492 ac_cv_lib_dl_dlopen=yes
11494 ac_cv_lib_dl_dlopen=no
11496 rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498 LIBS=$ac_check_lib_save_LIBS
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11501 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11502 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11506 lt_cv_dlopen="dyld"
11508 lt_cv_dlopen_self=yes
11515 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11516 if test "x$ac_cv_func_shl_load" = x""yes; then :
11517 lt_cv_dlopen="shl_load"
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11520 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11521 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11524 ac_check_lib_save_LIBS=$LIBS
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11539 return shl_load ();
11544 if ac_fn_c_try_link "$LINENO"; then :
11545 ac_cv_lib_dld_shl_load=yes
11547 ac_cv_lib_dld_shl_load=no
11549 rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11554 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11555 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11556 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11559 if test "x$ac_cv_func_dlopen" = x""yes; then :
11560 lt_cv_dlopen="dlopen"
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
11567 ac_check_lib_save_LIBS=$LIBS
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_dl_dlopen=yes
11590 ac_cv_lib_dl_dlopen=no
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11598 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11602 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11606 ac_check_lib_save_LIBS=$LIBS
11607 LIBS="-lsvld $LIBS"
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11626 if ac_fn_c_try_link "$LINENO"; then :
11627 ac_cv_lib_svld_dlopen=yes
11629 ac_cv_lib_svld_dlopen=no
11631 rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11636 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11637 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11641 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11642 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11645 ac_check_lib_save_LIBS=$LIBS
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11660 return dld_link ();
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 ac_cv_lib_dld_dld_link=yes
11668 ac_cv_lib_dld_dld_link=no
11670 rm -f core conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11675 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11676 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11677 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11698 if test "x$lt_cv_dlopen" != xno; then
11704 case $lt_cv_dlopen in
11706 save_CPPFLAGS="$CPPFLAGS"
11707 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11709 save_LDFLAGS="$LDFLAGS"
11710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11713 LIBS="$lt_cv_dlopen_libs $LIBS"
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11716 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11717 if test "${lt_cv_dlopen_self+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
11720 if test "$cross_compiling" = yes; then :
11721 lt_cv_dlopen_self=cross
11723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11724 lt_status=$lt_dlunknown
11725 cat > conftest.$ac_ext <<_LT_EOF
11726 #line 11726 "configure"
11727 #include "confdefs.h"
11736 # define LT_DLGLOBAL RTLD_GLOBAL
11739 # define LT_DLGLOBAL DL_GLOBAL
11741 # define LT_DLGLOBAL 0
11745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11746 find out it does not work in some platform. */
11747 #ifndef LT_DLLAZY_OR_NOW
11749 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11752 # define LT_DLLAZY_OR_NOW DL_LAZY
11755 # define LT_DLLAZY_OR_NOW RTLD_NOW
11758 # define LT_DLLAZY_OR_NOW DL_NOW
11760 # define LT_DLLAZY_OR_NOW 0
11767 /* When -fvisbility=hidden is used, assume the code has been annotated
11768 correspondingly for the symbols needed. */
11769 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11770 void fnord () __attribute__((visibility("default")));
11773 void fnord () { int i=42; }
11776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11777 int status = $lt_dlunknown;
11781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11785 else puts (dlerror ());
11787 /* dlclose (self); */
11795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11796 (eval $ac_link) 2>&5
11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11800 (./conftest; exit; ) >&5 2>/dev/null
11802 case x$lt_status in
11803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11808 # compilation failed
11809 lt_cv_dlopen_self=no
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11817 $as_echo "$lt_cv_dlopen_self" >&6; }
11819 if test "x$lt_cv_dlopen_self" = xyes; then
11820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11822 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11823 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11824 $as_echo_n "(cached) " >&6
11826 if test "$cross_compiling" = yes; then :
11827 lt_cv_dlopen_self_static=cross
11829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11830 lt_status=$lt_dlunknown
11831 cat > conftest.$ac_ext <<_LT_EOF
11832 #line 11832 "configure"
11833 #include "confdefs.h"
11842 # define LT_DLGLOBAL RTLD_GLOBAL
11845 # define LT_DLGLOBAL DL_GLOBAL
11847 # define LT_DLGLOBAL 0
11851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11852 find out it does not work in some platform. */
11853 #ifndef LT_DLLAZY_OR_NOW
11855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11858 # define LT_DLLAZY_OR_NOW DL_LAZY
11861 # define LT_DLLAZY_OR_NOW RTLD_NOW
11864 # define LT_DLLAZY_OR_NOW DL_NOW
11866 # define LT_DLLAZY_OR_NOW 0
11873 /* When -fvisbility=hidden is used, assume the code has been annotated
11874 correspondingly for the symbols needed. */
11875 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11876 void fnord () __attribute__((visibility("default")));
11879 void fnord () { int i=42; }
11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883 int status = $lt_dlunknown;
11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11891 else puts (dlerror ());
11893 /* dlclose (self); */
11901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11902 (eval $ac_link) 2>&5
11904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11906 (./conftest; exit; ) >&5 2>/dev/null
11908 case x$lt_status in
11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11914 # compilation failed
11915 lt_cv_dlopen_self_static=no
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11923 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11926 CPPFLAGS="$save_CPPFLAGS"
11927 LDFLAGS="$save_LDFLAGS"
11932 case $lt_cv_dlopen_self in
11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934 *) enable_dlopen_self=unknown ;;
11937 case $lt_cv_dlopen_self_static in
11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939 *) enable_dlopen_self_static=unknown ;;
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11962 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11963 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11965 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 $as_echo "yes" >&6; }
11969 # FIXME - insert some real tests, host_os isn't really good enough
11972 if test -n "$STRIP" ; then
11973 striplib="$STRIP -x"
11974 old_striplib="$STRIP -S"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976 $as_echo "yes" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
12000 # Report which library types will actually be built
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12002 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12004 $as_echo "$can_build_shared" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12007 $as_echo_n "checking whether to build shared libraries... " >&6; }
12008 test "$can_build_shared" = "no" && enable_shared=no
12010 # On AIX, shared libraries and static libraries use the same namespace, and
12011 # are all built from PIC.
12014 test "$enable_shared" = yes && enable_static=no
12015 if test -n "$RANLIB"; then
12016 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12017 postinstall_cmds='$RANLIB $lib'
12022 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12023 test "$enable_shared" = yes && enable_static=no
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12028 $as_echo "$enable_shared" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12031 $as_echo_n "checking whether to build static libraries... " >&6; }
12032 # Make sure either enable_shared or enable_static is yes.
12033 test "$enable_shared" = yes || enable_static=yes
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12035 $as_echo "$enable_static" >&6; }
12042 ac_cpp='$CPP $CPPFLAGS'
12043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12050 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12051 (test "X$CXX" != "Xg++"))) ; then
12053 ac_cpp='$CXXCPP $CPPFLAGS'
12054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12058 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12059 if test -z "$CXXCPP"; then
12060 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12063 # Double quotes because CXXCPP needs to be expanded
12064 for CXXCPP in "$CXX -E" "/lib/cpp"
12066 ac_preproc_ok=false
12067 for ac_cxx_preproc_warn_flag in '' yes
12069 # Use a header file that comes with gcc, so configuring glibc
12070 # with a fresh cross-compiler works.
12071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 # <limits.h> exists even on freestanding compilers.
12073 # On the NeXT, cc -E runs the code through the compiler's parser,
12074 # not just through cpp. "Syntax error" is here to catch this case.
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12078 # include <limits.h>
12080 # include <assert.h>
12084 if ac_fn_cxx_try_cpp "$LINENO"; then :
12087 # Broken: fails on valid input.
12090 rm -f conftest.err conftest.$ac_ext
12092 # OK, works on sane cases. Now check whether nonexistent headers
12093 # can be detected and how.
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #include <ac_nonexistent.h>
12098 if ac_fn_cxx_try_cpp "$LINENO"; then :
12099 # Broken: success on invalid input.
12102 # Passes both tests.
12106 rm -f conftest.err conftest.$ac_ext
12109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12110 rm -f conftest.err conftest.$ac_ext
12111 if $ac_preproc_ok; then :
12116 ac_cv_prog_CXXCPP=$CXXCPP
12119 CXXCPP=$ac_cv_prog_CXXCPP
12121 ac_cv_prog_CXXCPP=$CXXCPP
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12124 $as_echo "$CXXCPP" >&6; }
12125 ac_preproc_ok=false
12126 for ac_cxx_preproc_warn_flag in '' yes
12128 # Use a header file that comes with gcc, so configuring glibc
12129 # with a fresh cross-compiler works.
12130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 # <limits.h> exists even on freestanding compilers.
12132 # On the NeXT, cc -E runs the code through the compiler's parser,
12133 # not just through cpp. "Syntax error" is here to catch this case.
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12137 # include <limits.h>
12139 # include <assert.h>
12143 if ac_fn_cxx_try_cpp "$LINENO"; then :
12146 # Broken: fails on valid input.
12149 rm -f conftest.err conftest.$ac_ext
12151 # OK, works on sane cases. Now check whether nonexistent headers
12152 # can be detected and how.
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 #include <ac_nonexistent.h>
12157 if ac_fn_cxx_try_cpp "$LINENO"; then :
12158 # Broken: success on invalid input.
12161 # Passes both tests.
12165 rm -f conftest.err conftest.$ac_ext
12168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12169 rm -f conftest.err conftest.$ac_ext
12170 if $ac_preproc_ok; then :
12173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12175 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12176 See \`config.log' for more details." "$LINENO" 5; }
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186 _lt_caught_CXX_error=yes
12190 ac_cpp='$CXXCPP $CPPFLAGS'
12191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12195 archive_cmds_need_lc_CXX=no
12196 allow_undefined_flag_CXX=
12197 always_export_symbols_CXX=no
12198 archive_expsym_cmds_CXX=
12199 compiler_needs_object_CXX=no
12200 export_dynamic_flag_spec_CXX=
12201 hardcode_direct_CXX=no
12202 hardcode_direct_absolute_CXX=no
12203 hardcode_libdir_flag_spec_CXX=
12204 hardcode_libdir_flag_spec_ld_CXX=
12205 hardcode_libdir_separator_CXX=
12206 hardcode_minus_L_CXX=no
12207 hardcode_shlibpath_var_CXX=unsupported
12208 hardcode_automatic_CXX=no
12209 inherit_rpath_CXX=no
12211 module_expsym_cmds_CXX=
12212 link_all_deplibs_CXX=unknown
12213 old_archive_cmds_CXX=$old_archive_cmds
12214 reload_flag_CXX=$reload_flag
12215 reload_cmds_CXX=$reload_cmds
12216 no_undefined_flag_CXX=
12217 whole_archive_flag_spec_CXX=
12218 enable_shared_with_static_runtimes_CXX=no
12220 # Source file extension for C++ test sources.
12223 # Object file extension for compiled C++ test sources.
12227 # No sense in running all these tests if we already determined that
12228 # the CXX compiler isn't working. Some variables (like enable_shared)
12229 # are currently assumed to apply to all compilers on this platform,
12230 # and will be corrupted by setting them based on a non-working compiler.
12231 if test "$_lt_caught_CXX_error" != yes; then
12232 # Code to be used in simple compile tests
12233 lt_simple_compile_test_code="int some_variable = 0;"
12235 # Code to be used in simple link tests
12236 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12238 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12245 # If no C compiler was specified, use CC.
12248 # If no C compiler flags were specified, use CFLAGS.
12249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12251 # Allow CC to be a program name with arguments.
12255 # save warnings/boilerplate of simple test code
12256 ac_outfile=conftest.$ac_objext
12257 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12258 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12259 _lt_compiler_boilerplate=`cat conftest.err`
12262 ac_outfile=conftest.$ac_objext
12263 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12264 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12265 _lt_linker_boilerplate=`cat conftest.err`
12269 # Allow CC to be a program name with arguments.
12274 lt_save_with_gnu_ld=$with_gnu_ld
12275 lt_save_path_LD=$lt_cv_path_LD
12276 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12277 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12279 $as_unset lt_cv_prog_gnu_ld
12281 if test -n "${lt_cv_path_LDCXX+set}"; then
12282 lt_cv_path_LD=$lt_cv_path_LDCXX
12284 $as_unset lt_cv_path_LD
12286 test -z "${LDCXX+set}" || LD=$LDCXX
12290 for cc_temp in $compiler""; do
12292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12298 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12301 if test -n "$compiler"; then
12302 # We don't want -fno-exception when compiling C++ code, so set the
12303 # no_builtin_flag separately
12304 if test "$GXX" = yes; then
12305 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12307 lt_prog_compiler_no_builtin_flag_CXX=
12310 if test "$GXX" = yes; then
12311 # Set up default GNU C++ configuration
12315 # Check whether --with-gnu-ld was given.
12316 if test "${with_gnu_ld+set}" = set; then :
12317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12323 if test "$GCC" = yes; then
12324 # Check if gcc -print-prog-name=ld gives a path.
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12326 $as_echo_n "checking for ld used by $CC... " >&6; }
12329 # gcc leaves a trailing carriage return which upsets mingw
12330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12335 # Accept absolute paths.
12337 re_direlt='/[^/][^/]*/\.\./'
12338 # Canonicalize the pathname of ld
12339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12343 test -z "$LD" && LD="$ac_prog"
12346 # If it fails, then pretend we aren't using GCC.
12350 # If it is relative, then search for the first ld in PATH.
12351 with_gnu_ld=unknown
12354 elif test "$with_gnu_ld" = yes; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12356 $as_echo_n "checking for GNU ld... " >&6; }
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12359 $as_echo_n "checking for non-GNU ld... " >&6; }
12361 if test "${lt_cv_path_LD+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12364 if test -z "$LD"; then
12365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12366 for ac_dir in $PATH; do
12368 test -z "$ac_dir" && ac_dir=.
12369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12370 lt_cv_path_LD="$ac_dir/$ac_prog"
12371 # Check to see if the program is GNU ld. I'd rather use --version,
12372 # but apparently some variants of GNU ld only accept -v.
12373 # Break only if it was the GNU/non-GNU ld that we prefer.
12374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12375 *GNU* | *'with BFD'*)
12376 test "$with_gnu_ld" != no && break
12379 test "$with_gnu_ld" != yes && break
12386 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12390 LD="$lt_cv_path_LD"
12391 if test -n "$LD"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12393 $as_echo "$LD" >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12398 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12400 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12401 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12404 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12405 case `$LD -v 2>&1 </dev/null` in
12406 *GNU* | *'with BFD'*)
12407 lt_cv_prog_gnu_ld=yes
12410 lt_cv_prog_gnu_ld=no
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12415 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12416 with_gnu_ld=$lt_cv_prog_gnu_ld
12424 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12425 # archiving commands below assume that GNU ld is being used.
12426 if test "$with_gnu_ld" = yes; then
12427 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428 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'
12430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12433 # If archive_cmds runs LD, not CC, wlarc should be empty
12434 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12435 # investigate it a little bit more. (MM)
12438 # ancient GNU ld didn't support --whole-archive et. al.
12439 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12440 $GREP 'no-whole-archive' > /dev/null; then
12441 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12443 whole_archive_flag_spec_CXX=
12449 # A generic and very simple default shared library creation
12450 # command for GNU C++ for the case where it uses the native
12451 # linker, instead of GNU ld. If possible, this setting should
12452 # overridden to take advantage of the native linker features on
12453 # the platform it is being used on.
12454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12457 # Commands to make compiler produce verbose output that lists
12458 # what "hidden" libraries, object files and flags are used when
12459 # linking a shared library.
12460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12468 # PORTME: fill in a description of your system's C++ link characteristics
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12470 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12474 # FIXME: insert proper C++ library support
12478 if test "$host_cpu" = ia64; then
12479 # On IA64, the linker does run time linking by default, so we don't
12480 # have to do anything special.
12481 aix_use_runtimelinking=no
12482 exp_sym_flag='-Bexport'
12485 aix_use_runtimelinking=no
12487 # Test if we are trying to use run time linking or normal
12488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489 # need to do runtime linking.
12490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12491 for ld_flag in $LDFLAGS; do
12494 aix_use_runtimelinking=yes
12502 exp_sym_flag='-bexport'
12503 no_entry_flag='-bnoentry'
12506 # When large executables or shared objects are built, AIX ld can
12507 # have problems creating the table of contents. If linking a library
12508 # or program results in "error TOC overflow" add -mminimal-toc to
12509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12512 archive_cmds_CXX=''
12513 hardcode_direct_CXX=yes
12514 hardcode_direct_absolute_CXX=yes
12515 hardcode_libdir_separator_CXX=':'
12516 link_all_deplibs_CXX=yes
12517 file_list_spec_CXX='${wl}-f,'
12519 if test "$GXX" = yes; then
12520 case $host_os in aix4.[012]|aix4.[012].*)
12521 # We only want to do this on AIX 4.2 and lower, the check
12522 # below for broken collect2 doesn't work under 4.3+
12523 collect2name=`${CC} -print-prog-name=collect2`
12524 if test -f "$collect2name" &&
12525 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12527 # We have reworked collect2
12530 # We have old collect2
12531 hardcode_direct_CXX=unsupported
12532 # It fails to find uninstalled libraries when the uninstalled
12533 # path is not listed in the libpath. Setting hardcode_minus_L
12534 # to unsupported forces relinking
12535 hardcode_minus_L_CXX=yes
12536 hardcode_libdir_flag_spec_CXX='-L$libdir'
12537 hardcode_libdir_separator_CXX=
12540 shared_flag='-shared'
12541 if test "$aix_use_runtimelinking" = yes; then
12542 shared_flag="$shared_flag "'${wl}-G'
12546 if test "$host_cpu" = ia64; then
12547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12548 # chokes on -Wl,-G. The following line is correct:
12551 if test "$aix_use_runtimelinking" = yes; then
12552 shared_flag='${wl}-G'
12554 shared_flag='${wl}-bM:SRE'
12559 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12560 # It seems that -bexpall does not export symbols beginning with
12561 # underscore (_), so it is better to generate a list of symbols to
12563 always_export_symbols_CXX=yes
12564 if test "$aix_use_runtimelinking" = yes; then
12565 # Warning - without using the other runtime loading flags (-brtl),
12566 # -berok will link without error, but may produce a broken library.
12567 allow_undefined_flag_CXX='-berok'
12568 # Determine the default libpath from the value encoded in an empty
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12581 if ac_fn_cxx_try_link "$LINENO"; then :
12583 lt_aix_libpath_sed='
12584 /Import File Strings/,/^$/ {
12590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591 # Check for a 64-bit object if we didn't find anything.
12592 if test -z "$aix_libpath"; then
12593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12600 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12602 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"
12604 if test "$host_cpu" = ia64; then
12605 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12606 allow_undefined_flag_CXX="-z nodefs"
12607 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"
12609 # Determine the default libpath from the value encoded in an
12610 # empty executable.
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12622 if ac_fn_cxx_try_link "$LINENO"; then :
12624 lt_aix_libpath_sed='
12625 /Import File Strings/,/^$/ {
12631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632 # Check for a 64-bit object if we didn't find anything.
12633 if test -z "$aix_libpath"; then
12634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12641 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12642 # Warning - without using the other run time loading flags,
12643 # -berok will link without error, but may produce a broken library.
12644 no_undefined_flag_CXX=' ${wl}-bernotok'
12645 allow_undefined_flag_CXX=' ${wl}-berok'
12646 if test "$with_gnu_ld" = yes; then
12647 # We only use this code for GNU lds that support --whole-archive.
12648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12650 # Exported symbols can be pulled into shared objects from archives
12651 whole_archive_flag_spec_CXX='$convenience'
12653 archive_cmds_need_lc_CXX=yes
12654 # This is similar to how AIX traditionally builds its shared
12656 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'
12662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12663 allow_undefined_flag_CXX=unsupported
12664 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12665 # support --undefined. This deserves some investigation. FIXME
12666 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12673 case $cc_basename in
12675 # FIXME: insert proper C++ library support
12681 cygwin* | mingw* | pw32* | cegcc*)
12682 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12683 # as there is no search path for DLLs.
12684 hardcode_libdir_flag_spec_CXX='-L$libdir'
12685 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12686 allow_undefined_flag_CXX=unsupported
12687 always_export_symbols_CXX=no
12688 enable_shared_with_static_runtimes_CXX=yes
12690 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12691 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'
12692 # If the export-symbols file already is a .def file (1st line
12693 # is EXPORTS), use it as is; otherwise, prepend...
12694 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12695 cp $export_symbols $output_objdir/$soname.def;
12697 echo EXPORTS > $output_objdir/$soname.def;
12698 cat $export_symbols >> $output_objdir/$soname.def;
12700 $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'
12705 darwin* | rhapsody*)
12708 archive_cmds_need_lc_CXX=no
12709 hardcode_direct_CXX=no
12710 hardcode_automatic_CXX=yes
12711 hardcode_shlibpath_var_CXX=unsupported
12712 if test "$lt_cv_ld_force_load" = "yes"; then
12713 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\"`'
12715 whole_archive_flag_spec_CXX=''
12717 link_all_deplibs_CXX=yes
12718 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12719 case $cc_basename in
12720 ifort*) _lt_dar_can_shared=yes ;;
12721 *) _lt_dar_can_shared=$GCC ;;
12723 if test "$_lt_dar_can_shared" = "yes"; then
12724 output_verbose_link_cmd=func_echo_all
12725 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}"
12726 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12727 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}"
12728 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}"
12729 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12730 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}"
12731 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}"
12741 case $cc_basename in
12743 # FIXME: insert proper C++ library support
12747 # Green Hills C++ Compiler
12748 # FIXME: insert proper C++ library support
12752 # FIXME: insert proper C++ library support
12759 # C++ shared libraries reported to be fairly broken before
12765 archive_cmds_need_lc_CXX=no
12768 freebsd* | dragonfly*)
12769 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12778 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12779 link_all_deplibs_CXX=yes
12783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12784 hardcode_libdir_separator_CXX=:
12785 export_dynamic_flag_spec_CXX='${wl}-E'
12786 hardcode_direct_CXX=yes
12787 hardcode_minus_L_CXX=yes # Not in the search PATH,
12788 # but as the default
12789 # location of the library.
12791 case $cc_basename in
12793 # FIXME: insert proper C++ library support
12797 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'
12798 # Commands to make compiler produce verbose output that lists
12799 # what "hidden" libraries, object files and flags are used when
12800 # linking a shared library.
12802 # There doesn't appear to be a way to prevent this compiler from
12803 # explicitly linking system object files so we need to strip them
12804 # from the output so that they don't get included in the library
12806 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"'
12809 if test "$GXX" = yes; then
12810 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'
12812 # FIXME: insert proper C++ library support
12820 if test $with_gnu_ld = no; then
12821 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12822 hardcode_libdir_separator_CXX=:
12828 export_dynamic_flag_spec_CXX='${wl}-E'
12834 hardcode_direct_CXX=no
12835 hardcode_shlibpath_var_CXX=no
12838 hardcode_direct_CXX=yes
12839 hardcode_direct_absolute_CXX=yes
12840 hardcode_minus_L_CXX=yes # Not in the search PATH,
12841 # but as the default
12842 # location of the library.
12846 case $cc_basename in
12848 # FIXME: insert proper C++ library support
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12863 # Commands to make compiler produce verbose output that lists
12864 # what "hidden" libraries, object files and flags are used when
12865 # linking a shared library.
12867 # There doesn't appear to be a way to prevent this compiler from
12868 # explicitly linking system object files so we need to strip them
12869 # from the output so that they don't get included in the library
12871 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"'
12874 if test "$GXX" = yes; then
12875 if test $with_gnu_ld = no; then
12878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12881 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12884 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'
12889 # FIXME: insert proper C++ library support
12897 hardcode_direct_CXX=no
12898 hardcode_shlibpath_var_CXX=no
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900 export_dynamic_flag_spec_CXX='${wl}-E'
12901 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12902 # Instead, shared libraries are loaded at an image base (0x10000000 by
12903 # default) and relocated if they conflict, which is a slow very memory
12904 # consuming and fragmenting process. To avoid this, we pick a random,
12905 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12906 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12907 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'
12908 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'
12911 case $cc_basename in
12914 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'
12916 # Archives containing C++ object files must be created using
12917 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12918 # necessary to make sure instantiated templates are included
12920 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12923 if test "$GXX" = yes; then
12924 if test "$with_gnu_ld" = no; then
12925 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'
12927 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'
12930 link_all_deplibs_CXX=yes
12933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934 hardcode_libdir_separator_CXX=:
12935 inherit_rpath_CXX=yes
12938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12939 case $cc_basename in
12941 # Kuck and Associates, Inc. (KAI) C++ Compiler
12943 # KCC will only create a shared library if the output file
12944 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12945 # to its proper name (with version) after linking.
12946 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'
12947 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'
12948 # Commands to make compiler produce verbose output that lists
12949 # what "hidden" libraries, object files and flags are used when
12950 # linking a shared library.
12952 # There doesn't appear to be a way to prevent this compiler from
12953 # explicitly linking system object files so we need to strip them
12954 # from the output so that they don't get included in the library
12956 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"'
12958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12959 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12961 # Archives containing C++ object files must be created using
12962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12968 # version 8.0 and above of icpc choke on multiply defined symbols
12969 # if we add $predep_objects and $postdep_objects, however 7.1 and
12970 # earlier do not add the objects themselves.
12971 case `$CC -V 2>&1` in
12973 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 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'
12976 *) # Version 8.0 or newer
12979 ia64*) tmp_idyn=' -i_dynamic';;
12981 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12982 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'
12985 archive_cmds_need_lc_CXX=no
12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12991 # Portland Group C++ compiler
12993 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12994 prelink_cmds_CXX='tpldir=Template.dir~
12996 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12997 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12998 old_archive_cmds_CXX='tpldir=Template.dir~
13000 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13001 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13003 archive_cmds_CXX='tpldir=Template.dir~
13005 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13006 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007 archive_expsym_cmds_CXX='tpldir=Template.dir~
13009 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13010 $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'
13012 *) # Version 6 and above use weak symbols
13013 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13014 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'
13018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13020 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'
13024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13025 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'
13027 runpath_var=LD_RUN_PATH
13028 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13029 hardcode_libdir_separator_CXX=:
13031 # Commands to make compiler produce verbose output that lists
13032 # what "hidden" libraries, object files and flags are used when
13033 # linking a shared library.
13035 # There doesn't appear to be a way to prevent this compiler from
13036 # explicitly linking system object files so we need to strip them
13037 # from the output so that they don't get included in the library
13039 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'
13041 xl* | mpixl* | bgxl*)
13042 # IBM XL 8.0 on PPC, with GNU ld
13043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13045 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13046 if test "x$supports_anon_versioning" = xyes; then
13047 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13049 echo "local: *; };" >> $output_objdir/$libname.ver~
13050 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13054 case `$CC -V 2>&1 | sed 5q` in
13057 no_undefined_flag_CXX=' -zdefs'
13058 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13059 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'
13060 hardcode_libdir_flag_spec_CXX='-R$libdir'
13061 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'
13062 compiler_needs_object_CXX=yes
13064 # Not sure whether something based on
13065 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13067 output_verbose_link_cmd='func_echo_all'
13069 # Archives containing C++ object files must be created using
13070 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13071 # necessary to make sure instantiated templates are included
13073 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13081 # FIXME: insert proper C++ library support
13086 # FIXME: insert proper C++ library support
13091 case $cc_basename in
13093 # FIXME: insert proper C++ library support
13097 # FIXME: insert proper C++ library support
13104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13105 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13107 hardcode_libdir_flag_spec_CXX='-R$libdir'
13108 hardcode_direct_CXX=yes
13109 hardcode_shlibpath_var_CXX=no
13111 # Workaround some broken pre-1.5 toolchains
13112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13120 # C++ shared libraries are fairly broken
13125 if test -f /usr/libexec/ld.so; then
13126 hardcode_direct_CXX=yes
13127 hardcode_shlibpath_var_CXX=no
13128 hardcode_direct_absolute_CXX=yes
13129 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13130 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13132 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13133 export_dynamic_flag_spec_CXX='${wl}-E'
13134 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13136 output_verbose_link_cmd=func_echo_all
13142 osf3* | osf4* | osf5*)
13143 case $cc_basename in
13145 # Kuck and Associates, Inc. (KAI) C++ Compiler
13147 # KCC will only create a shared library if the output file
13148 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13149 # to its proper name (with version) after linking.
13150 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'
13152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153 hardcode_libdir_separator_CXX=:
13155 # Archives containing C++ object files must be created using
13156 # the KAI C++ compiler.
13158 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13159 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13163 # Rational C++ 2.4.1
13164 # FIXME: insert proper C++ library support
13170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13171 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'
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13175 allow_undefined_flag_CXX=' -expect_unresolved \*'
13176 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'
13177 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13178 echo "-hidden">> $lib.exp~
13179 $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~
13181 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13185 hardcode_libdir_separator_CXX=:
13187 # Commands to make compiler produce verbose output that lists
13188 # what "hidden" libraries, object files and flags are used when
13189 # linking a shared library.
13191 # There doesn't appear to be a way to prevent this compiler from
13192 # explicitly linking system object files so we need to strip them
13193 # from the output so that they don't get included in the library
13195 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"'
13198 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13202 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'
13205 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'
13209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13210 hardcode_libdir_separator_CXX=:
13212 # Commands to make compiler produce verbose output that lists
13213 # what "hidden" libraries, object files and flags are used when
13214 # linking a shared library.
13215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13218 # FIXME: insert proper C++ library support
13226 # FIXME: insert proper C++ library support
13231 case $cc_basename in
13234 # FIXME: insert proper C++ library support
13239 # FIXME: insert proper C++ library support
13243 # FIXME: insert proper C++ library support
13250 case $cc_basename in
13252 # Sun C++ 4.2, 5.x and Centerline C++
13253 archive_cmds_need_lc_CXX=yes
13254 no_undefined_flag_CXX=' -zdefs'
13255 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13257 $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'
13259 hardcode_libdir_flag_spec_CXX='-R$libdir'
13260 hardcode_shlibpath_var_CXX=no
13262 solaris2.[0-5] | solaris2.[0-5].*) ;;
13264 # The compiler driver will combine and reorder linker options,
13265 # but understands `-z linker_flag'.
13266 # Supported since Solaris 2.6 (maybe 2.5.1?)
13267 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13270 link_all_deplibs_CXX=yes
13272 output_verbose_link_cmd='func_echo_all'
13274 # Archives containing C++ object files must be created using
13275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13276 # necessary to make sure instantiated templates are included
13278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13281 # Green Hills C++ Compiler
13282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13284 # The C++ compiler must be used to create the archive.
13285 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13288 # GNU C++ compiler with Solaris linker
13289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13290 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13291 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13292 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13294 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13296 # Commands to make compiler produce verbose output that lists
13297 # what "hidden" libraries, object files and flags are used when
13298 # linking a shared library.
13299 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13301 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13303 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13304 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13305 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13307 # Commands to make compiler produce verbose output that lists
13308 # what "hidden" libraries, object files and flags are used when
13309 # linking a shared library.
13310 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13313 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13315 solaris2.[0-5] | solaris2.[0-5].*) ;;
13317 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13325 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13326 no_undefined_flag_CXX='${wl}-z,text'
13327 archive_cmds_need_lc_CXX=no
13328 hardcode_shlibpath_var_CXX=no
13329 runpath_var='LD_RUN_PATH'
13331 case $cc_basename in
13333 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 sysv5* | sco3.2v5* | sco5v6*)
13344 # Note: We can NOT use -z defs as we might desire, because we do not
13345 # link with -lc, and that would cause any symbols used from libc to
13346 # always be unresolved, which means just about no library would
13347 # ever link correctly. If we're not using GNU ld we use -z text
13348 # though, which does catch some bad symbols but isn't as heavy-handed
13350 no_undefined_flag_CXX='${wl}-z,text'
13351 allow_undefined_flag_CXX='${wl}-z,nodefs'
13352 archive_cmds_need_lc_CXX=no
13353 hardcode_shlibpath_var_CXX=no
13354 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13355 hardcode_libdir_separator_CXX=':'
13356 link_all_deplibs_CXX=yes
13357 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13358 runpath_var='LD_RUN_PATH'
13360 case $cc_basename in
13362 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13365 '"$old_archive_cmds_CXX"
13366 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13367 '"$reload_cmds_CXX"
13370 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13371 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13377 case $cc_basename in
13379 # NonStop-UX NCC 3.20
13380 # FIXME: insert proper C++ library support
13384 # FIXME: insert proper C++ library support
13391 # FIXME: insert proper C++ library support
13396 # FIXME: insert proper C++ library support
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13402 $as_echo "$ld_shlibs_CXX" >&6; }
13403 test "$ld_shlibs_CXX" = no && can_build_shared=no
13409 ## There is no encapsulation within the following macros, do not change
13410 ## the running order or otherwise move them around unless you know exactly
13411 ## what you are doing...
13412 # Dependencies to place before and after the object being linked:
13413 predep_objects_CXX=
13414 postdep_objects_CXX=
13417 compiler_lib_search_path_CXX=
13419 cat > conftest.$ac_ext <<_LT_EOF
13423 Foo (void) { a = 0; }
13429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13430 (eval $ac_compile) 2>&5
13432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433 test $ac_status = 0; }; then
13434 # Parse the compiler output and extract the necessary
13435 # objects, libraries and library flags.
13437 # Sentinel used to keep track of whether or not we are before
13438 # the conftest object file.
13439 pre_test_object_deps_done=no
13441 for p in `eval "$output_verbose_link_cmd"`; do
13445 # Some compilers place space between "-{L,R}" and the path.
13446 # Remove the space.
13447 if test $p = "-L" ||
13448 test $p = "-R"; then
13455 if test "$pre_test_object_deps_done" = no; then
13458 # Internal compiler library paths should come after those
13459 # provided the user. The postdeps already come after the
13460 # user supplied libs so there is no need to process them.
13461 if test -z "$compiler_lib_search_path_CXX"; then
13462 compiler_lib_search_path_CXX="${prev}${p}"
13464 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13467 # The "-l" case would never come before the object being
13468 # linked, so don't bother handling this case.
13471 if test -z "$postdeps_CXX"; then
13472 postdeps_CXX="${prev}${p}"
13474 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13480 # This assumes that the test object file only shows up
13481 # once in the compiler output.
13482 if test "$p" = "conftest.$objext"; then
13483 pre_test_object_deps_done=yes
13487 if test "$pre_test_object_deps_done" = no; then
13488 if test -z "$predep_objects_CXX"; then
13489 predep_objects_CXX="$p"
13491 predep_objects_CXX="$predep_objects_CXX $p"
13494 if test -z "$postdep_objects_CXX"; then
13495 postdep_objects_CXX="$p"
13497 postdep_objects_CXX="$postdep_objects_CXX $p"
13502 *) ;; # Ignore the rest.
13510 echo "libtool.m4: error: problem compiling CXX test program"
13513 $RM -f confest.$objext
13515 # PORTME: override above test on systems where it is broken
13518 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13519 # hack all around it, let's just trust "g++" to DTRT.
13520 predep_objects_CXX=
13521 postdep_objects_CXX=
13526 case `$CC -V 2>&1 | sed 5q` in
13530 # The more standards-conforming stlport4 library is
13531 # incompatible with the Cstd library. Avoid specifying
13532 # it if it's in CXXFLAGS. Ignore libCrun as
13533 # -library=stlport4 depends on it.
13534 case " $CXX $CXXFLAGS " in
13535 *" -library=stlport4 "*)
13536 solaris_use_stlport4=yes
13540 if test "$solaris_use_stlport4" != yes; then
13541 postdeps_CXX='-library=Cstd -library=Crun'
13548 case $cc_basename in
13550 # The more standards-conforming stlport4 library is
13551 # incompatible with the Cstd library. Avoid specifying
13552 # it if it's in CXXFLAGS. Ignore libCrun as
13553 # -library=stlport4 depends on it.
13554 case " $CXX $CXXFLAGS " in
13555 *" -library=stlport4 "*)
13556 solaris_use_stlport4=yes
13560 # Adding this requires a known-good setup of shared libraries for
13561 # Sun compiler versions before 5.6, else PIC objects from an old
13562 # archive will be linked into the output, leading to subtle bugs.
13563 if test "$solaris_use_stlport4" != yes; then
13564 postdeps_CXX='-library=Cstd -library=Crun'
13572 case " $postdeps_CXX " in
13573 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13575 compiler_lib_search_dirs_CXX=
13576 if test -n "${compiler_lib_search_path_CXX}"; then
13577 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13610 lt_prog_compiler_wl_CXX=
13611 lt_prog_compiler_pic_CXX=
13612 lt_prog_compiler_static_CXX=
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13615 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13617 # C++ specific cases for pic, static, wl, etc.
13618 if test "$GXX" = yes; then
13619 lt_prog_compiler_wl_CXX='-Wl,'
13620 lt_prog_compiler_static_CXX='-static'
13624 # All AIX code is PIC.
13625 if test "$host_cpu" = ia64; then
13626 # AIX 5 now supports IA64 processor
13627 lt_prog_compiler_static_CXX='-Bstatic'
13629 lt_prog_compiler_pic_CXX='-fPIC'
13635 # see comment about AmigaOS4 .so support
13636 lt_prog_compiler_pic_CXX='-fPIC'
13639 # FIXME: we need at least 68020 code to build shared libraries, but
13640 # adding the `-m68020' flag to GCC prevents building anything better,
13642 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13648 # PIC is the default for these OSes.
13650 mingw* | cygwin* | os2* | pw32* | cegcc*)
13651 # This hack is so that the source file can tell whether it is being
13652 # built for inclusion in a dll (and should export symbols for example).
13653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13654 # (--disable-auto-import) libraries
13655 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13657 darwin* | rhapsody*)
13658 # PIC is the default on this platform
13659 # Common symbols not allowed in MH_DYLIB files
13660 lt_prog_compiler_pic_CXX='-fno-common'
13663 # DJGPP does not support shared libraries at all
13664 lt_prog_compiler_pic_CXX=
13667 # PIC is the default for Haiku.
13668 # The "-static" flag exists, but is broken.
13669 lt_prog_compiler_static_CXX=
13672 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13673 # Instead, we relocate shared libraries at runtime.
13676 if test -d /usr/nec; then
13677 lt_prog_compiler_pic_CXX=-Kconform_pic
13681 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13682 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13683 # sets the default TLS model and affects inlining.
13688 lt_prog_compiler_pic_CXX='-fPIC'
13693 # QNX uses GNU C++, but need to define -shared option too, otherwise
13694 # it will coredump.
13695 lt_prog_compiler_pic_CXX='-fPIC -shared'
13698 lt_prog_compiler_pic_CXX='-fPIC'
13704 # All AIX code is PIC.
13705 if test "$host_cpu" = ia64; then
13706 # AIX 5 now supports IA64 processor
13707 lt_prog_compiler_static_CXX='-Bstatic'
13709 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13713 case $cc_basename in
13715 # Green Hills C++ Compiler
13716 # _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"
13721 case $cc_basename in
13723 lt_prog_compiler_pic_CXX='-KPIC'
13726 # Green Hills C++ Compiler
13727 lt_prog_compiler_pic_CXX='-pic'
13733 freebsd* | dragonfly*)
13734 # FreeBSD uses GNU C++
13736 hpux9* | hpux10* | hpux11*)
13737 case $cc_basename in
13739 lt_prog_compiler_wl_CXX='-Wl,'
13740 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13741 if test "$host_cpu" != ia64; then
13742 lt_prog_compiler_pic_CXX='+Z'
13746 lt_prog_compiler_wl_CXX='-Wl,'
13747 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13753 lt_prog_compiler_pic_CXX='+Z'
13762 # This is c89, which is MS Visual C++ (no shared libs)
13763 # Anyone wants to do a port?
13765 irix5* | irix6* | nonstopux*)
13766 case $cc_basename in
13768 lt_prog_compiler_wl_CXX='-Wl,'
13769 lt_prog_compiler_static_CXX='-non_shared'
13770 # CC pic flag -KPIC is the default.
13776 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13777 case $cc_basename in
13780 lt_prog_compiler_wl_CXX='--backend -Wl,'
13781 lt_prog_compiler_pic_CXX='-fPIC'
13784 # old Intel C++ for x86_64 which still supported -KPIC.
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_pic_CXX='-KPIC'
13787 lt_prog_compiler_static_CXX='-static'
13790 # Intel C++, used to be incompatible with GCC.
13791 # ICC 10 doesn't accept -KPIC any more.
13792 lt_prog_compiler_wl_CXX='-Wl,'
13793 lt_prog_compiler_pic_CXX='-fPIC'
13794 lt_prog_compiler_static_CXX='-static'
13797 # Portland Group C++ compiler
13798 lt_prog_compiler_wl_CXX='-Wl,'
13799 lt_prog_compiler_pic_CXX='-fpic'
13800 lt_prog_compiler_static_CXX='-Bstatic'
13804 # Make sure the PIC flag is empty. It appears that all Alpha
13805 # Linux and Compaq Tru64 Unix objects are PIC.
13806 lt_prog_compiler_pic_CXX=
13807 lt_prog_compiler_static_CXX='-non_shared'
13809 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13810 # IBM XL 8.0, 9.0 on PPC and BlueGene
13811 lt_prog_compiler_wl_CXX='-Wl,'
13812 lt_prog_compiler_pic_CXX='-qpic'
13813 lt_prog_compiler_static_CXX='-qstaticlink'
13816 case `$CC -V 2>&1 | sed 5q` in
13819 lt_prog_compiler_pic_CXX='-KPIC'
13820 lt_prog_compiler_static_CXX='-Bstatic'
13821 lt_prog_compiler_wl_CXX='-Qoption ld '
13832 case $cc_basename in
13834 lt_prog_compiler_pic_CXX='-W c,exportall'
13843 # QNX uses GNU C++, but need to define -shared option too, otherwise
13844 # it will coredump.
13845 lt_prog_compiler_pic_CXX='-fPIC -shared'
13847 osf3* | osf4* | osf5*)
13848 case $cc_basename in
13850 lt_prog_compiler_wl_CXX='--backend -Wl,'
13853 # Rational C++ 2.4.1
13854 lt_prog_compiler_pic_CXX='-pic'
13857 # Digital/Compaq C++
13858 lt_prog_compiler_wl_CXX='-Wl,'
13859 # Make sure the PIC flag is empty. It appears that all Alpha
13860 # Linux and Compaq Tru64 Unix objects are PIC.
13861 lt_prog_compiler_pic_CXX=
13862 lt_prog_compiler_static_CXX='-non_shared'
13871 case $cc_basename in
13873 # Sun C++ 4.2, 5.x and Centerline C++
13874 lt_prog_compiler_pic_CXX='-KPIC'
13875 lt_prog_compiler_static_CXX='-Bstatic'
13876 lt_prog_compiler_wl_CXX='-Qoption ld '
13879 # Green Hills C++ Compiler
13880 lt_prog_compiler_pic_CXX='-PIC'
13887 case $cc_basename in
13890 lt_prog_compiler_pic_CXX='-pic'
13891 lt_prog_compiler_static_CXX='-Bstatic'
13895 lt_prog_compiler_pic_CXX='-pic'
13901 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13902 case $cc_basename in
13904 lt_prog_compiler_wl_CXX='-Wl,'
13905 lt_prog_compiler_pic_CXX='-KPIC'
13906 lt_prog_compiler_static_CXX='-Bstatic'
13911 case $cc_basename in
13913 # NonStop-UX NCC 3.20
13914 lt_prog_compiler_pic_CXX='-KPIC'
13923 lt_prog_compiler_can_build_shared_CXX=no
13929 # For platforms which do not support PIC, -DPIC is meaningless:
13931 lt_prog_compiler_pic_CXX=
13934 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13938 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13943 # Check to make sure the PIC flag actually works.
13945 if test -n "$lt_prog_compiler_pic_CXX"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13947 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13948 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13951 lt_cv_prog_compiler_pic_works_CXX=no
13952 ac_outfile=conftest.$ac_objext
13953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13955 # Insert the option either (1) after the last *FLAGS variable, or
13956 # (2) before a word containing "conftest.", or (3) at the end.
13957 # Note that $ac_compile itself does not contain backslashes and begins
13958 # with a dollar sign (not a hyphen), so the echo should work correctly.
13959 # The option is referenced via a variable to avoid confusing sed.
13960 lt_compile=`echo "$ac_compile" | $SED \
13961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963 -e 's:$: $lt_compiler_flag:'`
13964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13965 (eval "$lt_compile" 2>conftest.err)
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 if (exit $ac_status) && test -s "$ac_outfile"; then
13970 # The compiler can only warn and ignore the option if not recognized
13971 # So say no if there are warnings other than the usual output.
13972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13975 lt_cv_prog_compiler_pic_works_CXX=yes
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13982 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13984 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13985 case $lt_prog_compiler_pic_CXX in
13987 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13990 lt_prog_compiler_pic_CXX=
13991 lt_prog_compiler_can_build_shared_CXX=no
13999 # Check to make sure the static flag actually works.
14001 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14003 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14004 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14007 lt_cv_prog_compiler_static_works_CXX=no
14008 save_LDFLAGS="$LDFLAGS"
14009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14010 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14012 # The linker can only warn and ignore the option if not recognized
14013 # So say no if there are warnings
14014 if test -s conftest.err; then
14015 # Append any errors to the config.log.
14016 cat conftest.err 1>&5
14017 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14019 if diff conftest.exp conftest.er2 >/dev/null; then
14020 lt_cv_prog_compiler_static_works_CXX=yes
14023 lt_cv_prog_compiler_static_works_CXX=yes
14027 LDFLAGS="$save_LDFLAGS"
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14031 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14033 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14036 lt_prog_compiler_static_CXX=
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14043 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14044 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14045 $as_echo_n "(cached) " >&6
14047 lt_cv_prog_compiler_c_o_CXX=no
14048 $RM -r conftest 2>/dev/null
14052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14054 lt_compiler_flag="-o out/conftest2.$ac_objext"
14055 # Insert the option either (1) after the last *FLAGS variable, or
14056 # (2) before a word containing "conftest.", or (3) at the end.
14057 # Note that $ac_compile itself does not contain backslashes and begins
14058 # with a dollar sign (not a hyphen), so the echo should work correctly.
14059 lt_compile=`echo "$ac_compile" | $SED \
14060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14062 -e 's:$: $lt_compiler_flag:'`
14063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14064 (eval "$lt_compile" 2>out/conftest.err)
14066 cat out/conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14070 # The compiler can only warn and ignore the option if not recognized
14071 # So say no if there are warnings
14072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14075 lt_cv_prog_compiler_c_o_CXX=yes
14080 # SGI C++ compiler will create directory out/ii_files/ for
14081 # template instantiation
14082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14083 $RM out/* && rmdir out
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14090 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14096 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14099 lt_cv_prog_compiler_c_o_CXX=no
14100 $RM -r conftest 2>/dev/null
14104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14106 lt_compiler_flag="-o out/conftest2.$ac_objext"
14107 # Insert the option either (1) after the last *FLAGS variable, or
14108 # (2) before a word containing "conftest.", or (3) at the end.
14109 # Note that $ac_compile itself does not contain backslashes and begins
14110 # with a dollar sign (not a hyphen), so the echo should work correctly.
14111 lt_compile=`echo "$ac_compile" | $SED \
14112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14114 -e 's:$: $lt_compiler_flag:'`
14115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14116 (eval "$lt_compile" 2>out/conftest.err)
14118 cat out/conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14122 # The compiler can only warn and ignore the option if not recognized
14123 # So say no if there are warnings
14124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14127 lt_cv_prog_compiler_c_o_CXX=yes
14132 # SGI C++ compiler will create directory out/ii_files/ for
14133 # template instantiation
14134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14135 $RM out/* && rmdir out
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14142 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14147 hard_links="nottested"
14148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149 # do not overwrite the value of need_locks provided by the user
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14151 $as_echo_n "checking if we can lock with hard links... " >&6; }
14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14156 ln conftest.a conftest.b 2>&5 || hard_links=no
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14159 $as_echo "$hard_links" >&6; }
14160 if test "$hard_links" = no; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14172 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14174 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14177 # If we're using GNU nm, then we don't want the "-C" option.
14178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14179 # Also, AIX nm treats weak defined symbols like other global defined
14180 # symbols, whereas GNU nm marks them as "W".
14181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14182 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'
14184 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'
14188 export_symbols_cmds_CXX="$ltdll_cmds"
14190 cygwin* | mingw* | cegcc*)
14191 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'
14194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14197 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14200 $as_echo "$ld_shlibs_CXX" >&6; }
14201 test "$ld_shlibs_CXX" = no && can_build_shared=no
14203 with_gnu_ld_CXX=$with_gnu_ld
14211 # Do we need to explicitly link libc?
14213 case "x$archive_cmds_need_lc_CXX" in
14215 # Assume -lc should be added
14216 archive_cmds_need_lc_CXX=yes
14218 if test "$enable_shared" = yes && test "$GCC" = yes; then
14219 case $archive_cmds_CXX in
14221 # FIXME: we may have to deal with multi-command sequences.
14224 # Test whether the compiler implicitly links with -lc since on some
14225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14226 # to ld, don't add -lc before -lgcc.
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14228 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14229 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14236 (eval $ac_compile) 2>&5
14238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239 test $ac_status = 0; } 2>conftest.err; then
14242 libobjs=conftest.$ac_objext
14244 wl=$lt_prog_compiler_wl_CXX
14245 pic_flag=$lt_prog_compiler_pic_CXX
14251 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14252 allow_undefined_flag_CXX=
14253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14254 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14257 test $ac_status = 0; }
14259 lt_cv_archive_cmds_need_lc_CXX=no
14261 lt_cv_archive_cmds_need_lc_CXX=yes
14263 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14265 cat conftest.err 1>&5
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14271 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14272 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14343 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14345 library_names_spec=
14346 libname_spec='lib$name'
14350 postuninstall_cmds=
14354 shlibpath_overrides_runpath=unknown
14356 dynamic_linker="$host_os ld.so"
14357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14358 need_lib_prefix=unknown
14359 hardcode_into_libs=no
14361 # when you set need_version to no, make sure it does not cause -set_version
14362 # flags to be left without arguments
14363 need_version=unknown
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14369 shlibpath_var=LIBPATH
14371 # AIX 3 has no versioning support, so we append a major version to the name.
14372 soname_spec='${libname}${release}${shared_ext}$major'
14379 hardcode_into_libs=yes
14380 if test "$host_cpu" = ia64; then
14381 # AIX 5 supports IA64
14382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14383 shlibpath_var=LD_LIBRARY_PATH
14385 # With GCC up to 2.95.x, collect2 would create an import file
14386 # for dependence libraries. The import file would start with
14387 # the line `#! .'. This would cause the generated library to
14388 # depend on `.', always an invalid library. This was fixed in
14389 # development snapshots of GCC prior to 3.0.
14391 aix4 | aix4.[01] | aix4.[01].*)
14392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14397 can_build_shared=no
14401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14402 # soname into executable. Probably we can add versioning support to
14403 # collect2, so additional links can be useful in future.
14404 if test "$aix_use_runtimelinking" = yes; then
14405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14406 # instead of lib<name>.a to let people know that these are not
14407 # typical AIX shared libraries.
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14410 # We preserve .a as extension for shared libraries through AIX4.2
14411 # and later when we are not doing run time linking.
14412 library_names_spec='${libname}${release}.a $libname.a'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14415 shlibpath_var=LIBPATH
14422 # Since July 2007 AmigaOS4 officially supports .so libraries.
14423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427 library_names_spec='$libname.ixlibrary $libname.a'
14428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14429 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'
14435 library_names_spec='${libname}${shared_ext}'
14436 dynamic_linker="$host_os ld.so"
14437 shlibpath_var=LIBRARY_PATH
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14449 # the default ld.so.conf also contains /usr/contrib/lib and
14450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14451 # libtool to hard-code these into programs
14454 cygwin* | mingw* | pw32* | cegcc*)
14455 version_type=windows
14460 case $GCC,$host_os in
14461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14462 library_names_spec='$libname.dll.a'
14463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14464 postinstall_cmds='base_file=`basename \${file}`~
14465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14466 dldir=$destdir/`dirname \$dlpath`~
14467 test -d \$dldir || mkdir -p \$dldir~
14468 $install_prog $dir/$dlname \$dldir/$dlname~
14469 chmod a+x \$dldir/$dlname~
14470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14474 dlpath=$dir/\$dldll~
14476 shlibpath_overrides_runpath=yes
14480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485 # MinGW DLLs use traditional 'lib' prefix
14486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14489 # pw32 DLLs use 'pw' prefix rather than 'lib'
14490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14499 dynamic_linker='Win32 ld.exe'
14500 # FIXME: first we should search . and the directory the executable is in
14504 darwin* | rhapsody*)
14505 dynamic_linker="$host_os dyld"
14506 version_type=darwin
14509 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14510 soname_spec='${libname}${release}${major}$shared_ext'
14511 shlibpath_overrides_runpath=yes
14512 shlibpath_var=DYLD_LIBRARY_PATH
14513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14527 freebsd* | dragonfly*)
14528 # DragonFly does not have aout. When/if they implement a new
14529 # versioning mechanism, adjust this.
14530 if test -x /usr/bin/objformat; then
14531 objformat=`/usr/bin/objformat`
14534 freebsd[23].*) objformat=aout ;;
14535 *) objformat=elf ;;
14538 version_type=freebsd-$objformat
14539 case $version_type in
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14550 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=yes
14555 freebsd3.[01]* | freebsdelf3.[01]*)
14556 shlibpath_overrides_runpath=yes
14557 hardcode_into_libs=yes
14559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14561 shlibpath_overrides_runpath=no
14562 hardcode_into_libs=yes
14564 *) # from 4.6 on, and DragonFly
14565 shlibpath_overrides_runpath=yes
14566 hardcode_into_libs=yes
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 hardcode_into_libs=yes
14585 dynamic_linker="$host_os runtime_loader"
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 shlibpath_var=LIBRARY_PATH
14589 shlibpath_overrides_runpath=yes
14590 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14591 hardcode_into_libs=yes
14594 hpux9* | hpux10* | hpux11*)
14595 # Give a soname corresponding to the major version so that dld.sl refuses to
14596 # link against other versions.
14603 hardcode_into_libs=yes
14604 dynamic_linker="$host_os dld.so"
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 if test "X$HPUX_IA64_MODE" = X32; then
14610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14618 hardcode_into_libs=yes
14619 dynamic_linker="$host_os dld.sl"
14620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14629 dynamic_linker="$host_os dld.sl"
14630 shlibpath_var=SHLIB_PATH
14631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14636 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14637 postinstall_cmds='chmod 555 $lib'
14638 # or fails outright, so override atomically:
14639 install_override_mode=555
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=no
14651 hardcode_into_libs=yes
14654 irix5* | irix6* | nonstopux*)
14656 nonstopux*) version_type=nonstopux ;;
14658 if test "$lt_cv_prog_gnu_ld" = yes; then
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14669 irix5* | nonstopux*)
14670 libsuff= shlibsuff=
14673 case $LD in # libtool.m4 will add one of these switches to LD
14674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14675 libsuff= shlibsuff= libmagic=32-bit;;
14676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14677 libsuff=32 shlibsuff=N32 libmagic=N32;;
14678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14680 *) libsuff= shlibsuff= libmagic=never-match;;
14684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14685 shlibpath_overrides_runpath=no
14686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14688 hardcode_into_libs=yes
14691 # No shared lib support for Linux oldld, aout, or coff.
14692 linux*oldld* | linux*aout* | linux*coff*)
14696 # This must be Linux ELF.
14697 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=no
14707 # Some binutils ld are patched to set DT_RUNPATH
14708 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14709 $as_echo_n "(cached) " >&6
14711 lt_cv_shlibpath_overrides_runpath=no
14712 save_LDFLAGS=$LDFLAGS
14713 save_libdir=$libdir
14714 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14715 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14727 if ac_fn_cxx_try_link "$LINENO"; then :
14728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14729 lt_cv_shlibpath_overrides_runpath=yes
14732 rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14734 LDFLAGS=$save_LDFLAGS
14735 libdir=$save_libdir
14739 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14741 # This implies no fast_install, which is unacceptable.
14742 # Some rework will be needed to allow for fast_install
14743 # before this can be enabled.
14744 hardcode_into_libs=yes
14746 # Append ld.so.conf contents to the search path
14747 if test -f /etc/ld.so.conf; then
14748 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' ' '`
14749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14752 # We used to test for /lib/ld.so.1 and disable shared libraries on
14753 # powerpc, because MkLinux only supported shared libraries with the
14754 # GNU dynamic linker. Since this was broken with cross compilers,
14755 # most powerpc-linux boxes support dynamic linking these days and
14756 # people can always --disable-shared, the test was removed, and we
14757 # assume the GNU/Linux dynamic linker is in use.
14758 dynamic_linker='GNU/Linux ld.so'
14765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768 dynamic_linker='NetBSD (a.out) ld.so'
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 dynamic_linker='NetBSD ld.elf_so'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14776 hardcode_into_libs=yes
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=yes
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 shlibpath_overrides_runpath=no
14794 hardcode_into_libs=yes
14795 dynamic_linker='ldqnx.so'
14800 sys_lib_dlsearch_path_spec="/usr/lib"
14802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14804 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14805 *) need_version=no ;;
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14812 openbsd2.[89] | openbsd2.[89].*)
14813 shlibpath_overrides_runpath=no
14816 shlibpath_overrides_runpath=yes
14820 shlibpath_overrides_runpath=yes
14825 libname_spec='$name'
14828 library_names_spec='$libname${shared_ext} $libname.a'
14829 dynamic_linker='OS/2 ld.exe'
14830 shlibpath_var=LIBPATH
14833 osf3* | osf4* | osf5*)
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14856 hardcode_into_libs=yes
14857 # ldd complains unless libraries are executable
14858 postinstall_cmds='chmod +x $lib'
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 if test "$with_gnu_ld" = yes; then
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 case $host_vendor in
14880 shlibpath_overrides_runpath=no
14882 runpath_var=LD_RUN_PATH
14890 shlibpath_overrides_runpath=no
14891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14897 if test -d /usr/nec ;then
14899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14900 soname_spec='$libname${shared_ext}.$major'
14901 shlibpath_var=LD_LIBRARY_PATH
14905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14906 version_type=freebsd-elf
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 shlibpath_overrides_runpath=yes
14913 hardcode_into_libs=yes
14914 if test "$with_gnu_ld" = yes; then
14915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14924 sys_lib_dlsearch_path_spec='/usr/lib'
14928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=no
14935 hardcode_into_libs=yes
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14950 $as_echo "$dynamic_linker" >&6; }
14951 test "$dynamic_linker" = no && can_build_shared=no
14953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14954 if test "$GCC" = yes; then
14955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14958 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14959 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15003 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15004 hardcode_action_CXX=
15005 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15006 test -n "$runpath_var_CXX" ||
15007 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15009 # We can hardcode non-existent directories.
15010 if test "$hardcode_direct_CXX" != no &&
15011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15012 # have to relink, otherwise we might link with an installed library
15013 # when we should be linking with a yet-to-be-installed one
15014 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15015 test "$hardcode_minus_L_CXX" != no; then
15016 # Linking always hardcodes the temporary library directory.
15017 hardcode_action_CXX=relink
15019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15020 hardcode_action_CXX=immediate
15023 # We cannot hardcode anything, or else we can only hardcode existing
15025 hardcode_action_CXX=unsupported
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15028 $as_echo "$hardcode_action_CXX" >&6; }
15030 if test "$hardcode_action_CXX" = relink ||
15031 test "$inherit_rpath_CXX" = yes; then
15032 # Fast installation is not supported
15033 enable_fast_install=no
15034 elif test "$shlibpath_overrides_runpath" = yes ||
15035 test "$enable_shared" = no; then
15036 # Fast installation is not necessary
15037 enable_fast_install=needless
15046 fi # test -n "$compiler"
15052 with_gnu_ld=$lt_save_with_gnu_ld
15053 lt_cv_path_LDCXX=$lt_cv_path_LD
15054 lt_cv_path_LD=$lt_save_path_LD
15055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15057 fi # test "$_lt_caught_CXX_error" != yes
15060 ac_cpp='$CPP $CPPFLAGS'
15061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15077 ac_config_commands="$ac_config_commands libtool"
15082 # Only expand once:
15086 # The tests for host and target for $enable_largefile require
15091 # As the $enable_largefile decision depends on --enable-plugins we must set it
15092 # even in directories otherwise not depending on the $plugins option.
15096 for ac_header in dlfcn.h
15098 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15100 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15101 cat >>confdefs.h <<_ACEOF
15102 #define HAVE_DLFCN_H 1
15109 for ac_header in windows.h
15111 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15113 if test "x$ac_cv_header_windows_h" = x""yes; then :
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_WINDOWS_H 1
15123 # Check whether --enable-plugins was given.
15124 if test "${enable_plugins+set}" = set; then :
15125 enableval=$enable_plugins; case "${enableval}" in
15128 if test "$maybe_plugins" != "yes" ; then
15129 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15133 plugins=$maybe_plugins
15137 if test "$plugins" = "yes"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15139 $as_echo_n "checking for library containing dlopen... " >&6; }
15140 if test "${ac_cv_search_dlopen+set}" = set; then :
15141 $as_echo_n "(cached) " >&6
15143 ac_func_search_save_LIBS=$LIBS
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15147 /* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15162 for ac_lib in '' dl; do
15163 if test -z "$ac_lib"; then
15164 ac_res="none required"
15167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15169 if ac_fn_c_try_link "$LINENO"; then :
15170 ac_cv_search_dlopen=$ac_res
15172 rm -f core conftest.err conftest.$ac_objext \
15174 if test "${ac_cv_search_dlopen+set}" = set; then :
15178 if test "${ac_cv_search_dlopen+set}" = set; then :
15181 ac_cv_search_dlopen=no
15183 rm conftest.$ac_ext
15184 LIBS=$ac_func_search_save_LIBS
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15187 $as_echo "$ac_cv_search_dlopen" >&6; }
15188 ac_res=$ac_cv_search_dlopen
15189 if test "$ac_res" != no; then :
15190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15198 sparc-*-solaris*|i[3-7]86-*-solaris*)
15199 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15200 # are mutually exclusive; and without procfs support, the bfd/ elf module
15201 # cannot provide certain routines such as elfcore_write_prpsinfo
15202 # or elfcore_write_prstatus. So unless the user explicitly requested
15203 # large-file support through the --enable-largefile switch, disable
15204 # large-file support in favor of procfs support.
15205 test "${target}" = "${host}" -a "x$plugins" = xno \
15206 && : ${enable_largefile="no"}
15210 # Check whether --enable-largefile was given.
15211 if test "${enable_largefile+set}" = set; then :
15212 enableval=$enable_largefile;
15215 if test "$enable_largefile" != no; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15218 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15219 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15222 ac_cv_sys_largefile_CC=no
15223 if test "$GCC" != yes; then
15226 # IRIX 6.2 and later do not support large files by default,
15227 # so use the C compiler's -n32 option if that helps.
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <sys/types.h>
15231 /* Check that off_t can represent 2**63 - 1 correctly.
15232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15233 since some C++ compilers masquerading as C compilers
15234 incorrectly reject 9223372036854775807. */
15235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15237 && LARGE_OFF_T % 2147483647 == 1)
15247 if ac_fn_c_try_compile "$LINENO"; then :
15250 rm -f core conftest.err conftest.$ac_objext
15252 if ac_fn_c_try_compile "$LINENO"; then :
15253 ac_cv_sys_largefile_CC=' -n32'; break
15255 rm -f core conftest.err conftest.$ac_objext
15259 rm -f conftest.$ac_ext
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15263 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15264 if test "$ac_cv_sys_largefile_CC" != no; then
15265 CC=$CC$ac_cv_sys_largefile_CC
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15269 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15270 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 #include <sys/types.h>
15277 /* Check that off_t can represent 2**63 - 1 correctly.
15278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15279 since some C++ compilers masquerading as C compilers
15280 incorrectly reject 9223372036854775807. */
15281 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15283 && LARGE_OFF_T % 2147483647 == 1)
15293 if ac_fn_c_try_compile "$LINENO"; then :
15294 ac_cv_sys_file_offset_bits=no; break
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 #define _FILE_OFFSET_BITS 64
15300 #include <sys/types.h>
15301 /* Check that off_t can represent 2**63 - 1 correctly.
15302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15303 since some C++ compilers masquerading as C compilers
15304 incorrectly reject 9223372036854775807. */
15305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15307 && LARGE_OFF_T % 2147483647 == 1)
15317 if ac_fn_c_try_compile "$LINENO"; then :
15318 ac_cv_sys_file_offset_bits=64; break
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 ac_cv_sys_file_offset_bits=unknown
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15326 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15327 case $ac_cv_sys_file_offset_bits in #(
15330 cat >>confdefs.h <<_ACEOF
15331 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15336 if test $ac_cv_sys_file_offset_bits = unknown; then
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15338 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15339 if test "${ac_cv_sys_large_files+set}" = set; then :
15340 $as_echo_n "(cached) " >&6
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 #include <sys/types.h>
15346 /* Check that off_t can represent 2**63 - 1 correctly.
15347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15348 since some C++ compilers masquerading as C compilers
15349 incorrectly reject 9223372036854775807. */
15350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15352 && LARGE_OFF_T % 2147483647 == 1)
15362 if ac_fn_c_try_compile "$LINENO"; then :
15363 ac_cv_sys_large_files=no; break
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #define _LARGE_FILES 1
15369 #include <sys/types.h>
15370 /* Check that off_t can represent 2**63 - 1 correctly.
15371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15372 since some C++ compilers masquerading as C compilers
15373 incorrectly reject 9223372036854775807. */
15374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15376 && LARGE_OFF_T % 2147483647 == 1)
15386 if ac_fn_c_try_compile "$LINENO"; then :
15387 ac_cv_sys_large_files=1; break
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 ac_cv_sys_large_files=unknown
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15395 $as_echo "$ac_cv_sys_large_files" >&6; }
15396 case $ac_cv_sys_large_files in #(
15399 cat >>confdefs.h <<_ACEOF
15400 #define _LARGE_FILES $ac_cv_sys_large_files
15411 # Check whether --with-lib-path was given.
15412 if test "${with_lib_path+set}" = set; then :
15413 withval=$with_lib_path; LIB_PATH=$withval
15416 # Check whether --enable-targets was given.
15417 if test "${enable_targets+set}" = set; then :
15418 enableval=$enable_targets; case "${enableval}" in
15419 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15421 no) enable_targets= ;;
15422 *) enable_targets=$enableval ;;
15425 # Check whether --enable-64-bit-bfd was given.
15426 if test "${enable_64_bit_bfd+set}" = set; then :
15427 enableval=$enable_64_bit_bfd; case "${enableval}" in
15428 yes) want64=true ;;
15429 no) want64=false ;;
15430 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15437 # Check whether --with-sysroot was given.
15438 if test "${with_sysroot+set}" = set; then :
15439 withval=$with_sysroot;
15440 case ${with_sysroot} in
15441 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15442 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15445 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15448 if test "x$prefix" = xNONE; then
15449 test_prefix=/usr/local
15451 test_prefix=$prefix
15453 if test "x$exec_prefix" = xNONE; then
15454 test_exec_prefix=$test_prefix
15456 test_exec_prefix=$exec_prefix
15458 case ${TARGET_SYSTEM_ROOT} in
15459 "${test_prefix}"|"${test_prefix}/"*|\
15460 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15461 '${prefix}'|'${prefix}/'*|\
15462 '${exec_prefix}'|'${exec_prefix}/'*)
15463 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15464 TARGET_SYSTEM_ROOT_DEFINE="$t"
15471 TARGET_SYSTEM_ROOT=
15472 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15480 # Check whether --enable-gold was given.
15481 if test "${enable_gold+set}" = set; then :
15482 enableval=$enable_gold; case "${enableval}" in
15484 install_as_default=no
15485 installed_linker=ld.bfd
15488 install_as_default=yes
15489 installed_linker=ld.bfd
15492 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15496 install_as_default=yes
15497 installed_linker=ld.bfd
15503 # Check whether --enable-got was given.
15504 if test "${enable_got+set}" = set; then :
15505 enableval=$enable_got; case "${enableval}" in
15506 target | single | negative | multigot) got_handling=$enableval ;;
15507 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15510 got_handling=target
15514 case "${got_handling}" in
15517 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15521 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15525 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15529 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15531 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15535 # Decide the default method for compressing debug sections.
15536 ac_default_compressed_debug_sections=unset
15537 # Provide a configure time option to override our default.
15538 # Check whether --enable-compressed_debug_sections was given.
15539 if test "${enable_compressed_debug_sections+set}" = set; then :
15540 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15541 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15542 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15546 # Decide if -z relro should be enabled in ELF linker by default.
15547 ac_default_ld_z_relro=unset
15548 # Provide a configure time option to override our default.
15549 # Check whether --enable-relro was given.
15550 if test "${enable_relro+set}" = set; then :
15551 enableval=$enable_relro; case "${enableval}" in
15552 yes) ac_default_ld_z_relro=1 ;;
15553 no) ac_default_ld_z_relro=0 ;;
15558 # Set the 'development' global.
15559 . $srcdir/../bfd/development.sh
15561 # Default set of GCC warnings to enable.
15562 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15564 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15570 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15573 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15578 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15584 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15587 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15592 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15593 WARN_WRITE_STRINGS=""
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15602 WARN_WRITE_STRINGS="-Wwrite-strings"
15607 # Check whether --enable-werror was given.
15608 if test "${enable_werror+set}" = set; then :
15609 enableval=$enable_werror; case "${enableval}" in
15610 yes | y) ERROR_ON_WARNING="yes" ;;
15611 no | n) ERROR_ON_WARNING="no" ;;
15612 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15617 # Disable -Wformat by default when using gcc on mingw
15620 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15621 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15627 # Enable -Werror by default when using gcc. Turn it off for releases.
15628 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15629 ERROR_ON_WARNING=yes
15633 if test "${ERROR_ON_WARNING}" = yes ; then
15634 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15635 NO_WERROR="-Wno-error"
15638 if test "${GCC}" = yes ; then
15639 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15642 # Check whether --enable-build-warnings was given.
15643 if test "${enable_build_warnings+set}" = set; then :
15644 enableval=$enable_build_warnings; case "${enableval}" in
15645 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15646 no) if test "${GCC}" = yes ; then
15649 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15650 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15651 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15652 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15653 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15658 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15659 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15669 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15670 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15671 $as_echo_n "(cached) " >&6
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 #include <locale.h>
15684 if ac_fn_c_try_link "$LINENO"; then :
15685 am_cv_val_LC_MESSAGES=yes
15687 am_cv_val_LC_MESSAGES=no
15689 rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15693 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15694 if test $am_cv_val_LC_MESSAGES = yes; then
15696 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15701 ac_config_headers="$ac_config_headers config.h:config.in"
15707 if test -z "$target" ; then
15708 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15710 if test -z "$host" ; then
15711 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15714 # host-specific stuff:
15716 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15717 # If we haven't got the data from the intl directory,
15718 # assume NLS is disabled.
15727 if test -f ../intl/config.intl; then
15728 . ../intl/config.intl
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15731 $as_echo_n "checking whether NLS is requested... " >&6; }
15732 if test x"$USE_NLS" != xyes; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734 $as_echo "no" >&6; }
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737 $as_echo "yes" >&6; }
15739 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15743 $as_echo_n "checking for catalogs to be installed... " >&6; }
15744 # Look for .po and .gmo files in the source directory.
15747 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15748 # If there aren't any .gmo files the shell will give us the
15749 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15751 case "$cat" in *\**)
15754 # The quadruple backslash is collapsed to a double backslash
15755 # by the backticks, then collapsed again by the double quotes,
15756 # leaving us with one backslash in the sed expression (right
15757 # before the dot that mustn't act as a wildcard).
15758 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15759 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15760 # The user is allowed to set LINGUAS to a list of languages to
15761 # install catalogs for. If it's empty that means "all of them."
15762 if test "x$LINGUAS" = x; then
15763 CATALOGS="$CATALOGS $cat"
15764 XLINGUAS="$XLINGUAS $lang"
15766 case "$LINGUAS" in *$lang*)
15767 CATALOGS="$CATALOGS $cat"
15768 XLINGUAS="$XLINGUAS $lang"
15773 LINGUAS="$XLINGUAS"
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15775 $as_echo "$LINGUAS" >&6; }
15789 if test -n "$ac_aux_dir"; then
15790 case "$ac_aux_dir" in
15791 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15792 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15795 if test -z "$MKINSTALLDIRS"; then
15796 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15802 $as_echo_n "checking whether NLS is requested... " >&6; }
15803 # Check whether --enable-nls was given.
15804 if test "${enable_nls+set}" = set; then :
15805 enableval=$enable_nls; USE_NLS=$enableval
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15811 $as_echo "$USE_NLS" >&6; }
15818 # Prepare PATH_SEPARATOR.
15819 # The user is always right.
15820 if test "${PATH_SEPARATOR+set}" != set; then
15821 echo "#! /bin/sh" >conf$$.sh
15822 echo "exit 0" >>conf$$.sh
15824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15832 # Find out how to test for executable files. Don't use a zero-byte file,
15833 # as systems may use methods other than mode bits to determine executability.
15834 cat >conf$$.file <<_ASEOF
15838 chmod +x conf$$.file
15839 if test -x conf$$.file >/dev/null 2>&1; then
15840 ac_executable_p="test -x"
15842 ac_executable_p="test -f"
15846 # Extract the first word of "msgfmt", so it can be a program name with args.
15847 set dummy msgfmt; ac_word=$2
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15849 $as_echo_n "checking for $ac_word... " >&6; }
15850 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15855 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15858 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15859 for ac_dir in $PATH; do
15861 test -z "$ac_dir" && ac_dir=.
15862 for ac_exec_ext in '' $ac_executable_extensions; do
15863 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15864 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15865 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15866 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15873 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15877 MSGFMT="$ac_cv_path_MSGFMT"
15878 if test "$MSGFMT" != ":"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15880 $as_echo "$MSGFMT" >&6; }
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15886 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15887 set dummy gmsgfmt; ac_word=$2
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889 $as_echo_n "checking for $ac_word... " >&6; }
15890 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
15895 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15899 for as_dir in $PATH
15902 test -z "$as_dir" && as_dir=.
15903 for ac_exec_ext in '' $ac_executable_extensions; do
15904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15905 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15917 GMSGFMT=$ac_cv_path_GMSGFMT
15918 if test -n "$GMSGFMT"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15920 $as_echo "$GMSGFMT" >&6; }
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15929 # Prepare PATH_SEPARATOR.
15930 # The user is always right.
15931 if test "${PATH_SEPARATOR+set}" != set; then
15932 echo "#! /bin/sh" >conf$$.sh
15933 echo "exit 0" >>conf$$.sh
15935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15943 # Find out how to test for executable files. Don't use a zero-byte file,
15944 # as systems may use methods other than mode bits to determine executability.
15945 cat >conf$$.file <<_ASEOF
15949 chmod +x conf$$.file
15950 if test -x conf$$.file >/dev/null 2>&1; then
15951 ac_executable_p="test -x"
15953 ac_executable_p="test -f"
15957 # Extract the first word of "xgettext", so it can be a program name with args.
15958 set dummy xgettext; ac_word=$2
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15960 $as_echo_n "checking for $ac_word... " >&6; }
15961 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15962 $as_echo_n "(cached) " >&6
15964 case "$XGETTEXT" in
15966 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15970 for ac_dir in $PATH; do
15972 test -z "$ac_dir" && ac_dir=.
15973 for ac_exec_ext in '' $ac_executable_extensions; do
15974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15975 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15976 (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
15977 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15984 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15988 XGETTEXT="$ac_cv_path_XGETTEXT"
15989 if test "$XGETTEXT" != ":"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15991 $as_echo "$XGETTEXT" >&6; }
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994 $as_echo "no" >&6; }
16000 # Prepare PATH_SEPARATOR.
16001 # The user is always right.
16002 if test "${PATH_SEPARATOR+set}" != set; then
16003 echo "#! /bin/sh" >conf$$.sh
16004 echo "exit 0" >>conf$$.sh
16006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16014 # Find out how to test for executable files. Don't use a zero-byte file,
16015 # as systems may use methods other than mode bits to determine executability.
16016 cat >conf$$.file <<_ASEOF
16020 chmod +x conf$$.file
16021 if test -x conf$$.file >/dev/null 2>&1; then
16022 ac_executable_p="test -x"
16024 ac_executable_p="test -f"
16028 # Extract the first word of "msgmerge", so it can be a program name with args.
16029 set dummy msgmerge; ac_word=$2
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16031 $as_echo_n "checking for $ac_word... " >&6; }
16032 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16033 $as_echo_n "(cached) " >&6
16035 case "$MSGMERGE" in
16037 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16040 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16041 for ac_dir in $PATH; do
16043 test -z "$ac_dir" && ac_dir=.
16044 for ac_exec_ext in '' $ac_executable_extensions; do
16045 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16046 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16047 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16054 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16058 MSGMERGE="$ac_cv_path_MSGMERGE"
16059 if test "$MSGMERGE" != ":"; then
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16061 $as_echo "$MSGMERGE" >&6; }
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16064 $as_echo "no" >&6; }
16068 if test "$GMSGFMT" != ":"; then
16069 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16070 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16073 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16075 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16080 if test "$XGETTEXT" != ":"; then
16081 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16082 (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
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16086 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16092 ac_config_commands="$ac_config_commands default-1"
16098 for ac_prog in 'bison -y' byacc
16100 # Extract the first word of "$ac_prog", so it can be a program name with args.
16101 set dummy $ac_prog; ac_word=$2
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16103 $as_echo_n "checking for $ac_word... " >&6; }
16104 if test "${ac_cv_prog_YACC+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
16107 if test -n "$YACC"; then
16108 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16114 test -z "$as_dir" && as_dir=.
16115 for ac_exec_ext in '' $ac_executable_extensions; do
16116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16117 ac_cv_prog_YACC="$ac_prog"
16118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16127 YACC=$ac_cv_prog_YACC
16128 if test -n "$YACC"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16130 $as_echo "$YACC" >&6; }
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16137 test -n "$YACC" && break
16139 test -n "$YACC" || YACC="yacc"
16141 for ac_prog in flex lex
16143 # Extract the first word of "$ac_prog", so it can be a program name with args.
16144 set dummy $ac_prog; ac_word=$2
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16146 $as_echo_n "checking for $ac_word... " >&6; }
16147 if test "${ac_cv_prog_LEX+set}" = set; then :
16148 $as_echo_n "(cached) " >&6
16150 if test -n "$LEX"; then
16151 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154 for as_dir in $PATH
16157 test -z "$as_dir" && as_dir=.
16158 for ac_exec_ext in '' $ac_executable_extensions; do
16159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16160 ac_cv_prog_LEX="$ac_prog"
16161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16170 LEX=$ac_cv_prog_LEX
16171 if test -n "$LEX"; then
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16173 $as_echo "$LEX" >&6; }
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176 $as_echo "no" >&6; }
16180 test -n "$LEX" && break
16182 test -n "$LEX" || LEX=":"
16186 *) cat >conftest.l <<_ACEOF
16192 e { yyless (input () != 0); }
16193 f { unput (yytext[0]); }
16194 . { BEGIN INITIAL; }
16196 #ifdef YYTEXT_POINTER
16197 extern char *yytext;
16202 return ! yylex () + ! yywrap ();
16205 { { ac_try="$LEX conftest.l"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16211 $as_echo "$ac_try_echo"; } >&5
16212 (eval "$LEX conftest.l") 2>&5
16214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16215 test $ac_status = 0; }
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16217 $as_echo_n "checking lex output file root... " >&6; }
16218 if test "${ac_cv_prog_lex_root+set}" = set; then :
16219 $as_echo_n "(cached) " >&6
16222 if test -f lex.yy.c; then
16223 ac_cv_prog_lex_root=lex.yy
16224 elif test -f lexyy.c; then
16225 ac_cv_prog_lex_root=lexyy
16227 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16231 $as_echo "$ac_cv_prog_lex_root" >&6; }
16232 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16234 if test -z "${LEXLIB+set}"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16236 $as_echo_n "checking lex library... " >&6; }
16237 if test "${ac_cv_lib_lex+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
16242 ac_cv_lib_lex='none needed'
16243 for ac_lib in '' -lfl -ll; do
16244 LIBS="$ac_lib $ac_save_LIBS"
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 `cat $LEX_OUTPUT_ROOT.c`
16249 if ac_fn_c_try_link "$LINENO"; then :
16250 ac_cv_lib_lex=$ac_lib
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 test "$ac_cv_lib_lex" != 'none needed' && break
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16260 $as_echo "$ac_cv_lib_lex" >&6; }
16261 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16266 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16267 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16270 # POSIX says lex can declare yytext either as a pointer or an array; the
16271 # default is implementation-dependent. Figure out which it is, since
16272 # not all implementations provide the %pointer and %array declarations.
16273 ac_cv_prog_lex_yytext_pointer=no
16275 LIBS="$LEXLIB $ac_save_LIBS"
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 #define YYTEXT_POINTER 1
16279 `cat $LEX_OUTPUT_ROOT.c`
16281 if ac_fn_c_try_link "$LINENO"; then :
16282 ac_cv_prog_lex_yytext_pointer=yes
16284 rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16290 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16291 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16293 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16296 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16299 if test "$LEX" = :; then
16300 LEX=${am_missing_run}flex
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16305 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16306 # Check whether --enable-maintainer-mode was given.
16307 if test "${enable_maintainer_mode+set}" = set; then :
16308 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16310 USE_MAINTAINER_MODE=no
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16314 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16315 if test $USE_MAINTAINER_MODE = yes; then
16316 MAINTAINER_MODE_TRUE=
16317 MAINTAINER_MODE_FALSE='#'
16319 MAINTAINER_MODE_TRUE='#'
16320 MAINTAINER_MODE_FALSE=
16323 MAINT=$MAINTAINER_MODE_TRUE
16327 GENINSRC_NEVER_TRUE=
16328 GENINSRC_NEVER_FALSE='#'
16330 GENINSRC_NEVER_TRUE='#'
16331 GENINSRC_NEVER_FALSE=
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16335 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16336 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16341 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16346 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16349 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16350 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16353 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16360 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16361 do_compare="$gcc_cv_prog_cmp_skip"
16365 . ${srcdir}/configure.host
16374 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16378 eval as_val=\$$as_ac_Header
16379 if test "x$as_val" = x""yes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16388 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16391 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16392 eval as_val=\$$as_ac_Header
16393 if test "x$as_val" = x""yes; then :
16394 cat >>confdefs.h <<_ACEOF
16395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16403 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16404 if test "${gcc_cv_header_string+set}" = set; then :
16405 $as_echo_n "(cached) " >&6
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 #include <string.h>
16410 #include <strings.h>
16419 if ac_fn_c_try_compile "$LINENO"; then :
16420 gcc_cv_header_string=yes
16422 gcc_cv_header_string=no
16424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16427 $as_echo "$gcc_cv_header_string" >&6; }
16428 if test $gcc_cv_header_string = yes; then
16430 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16434 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16438 eval as_val=\$$as_ac_var
16439 if test "x$as_val" = x""yes; then :
16440 cat >>confdefs.h <<_ACEOF
16441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16447 for ac_func in open lseek close
16449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16451 eval as_val=\$$as_ac_var
16452 if test "x$as_val" = x""yes; then :
16453 cat >>confdefs.h <<_ACEOF
16454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16460 ac_header_dirent=no
16461 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16462 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16464 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16466 $as_echo_n "(cached) " >&6
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 #include <sys/types.h>
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483 eval "$as_ac_Header=yes"
16485 eval "$as_ac_Header=no"
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16489 eval ac_res=\$$as_ac_Header
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16491 $as_echo "$ac_res" >&6; }
16492 eval as_val=\$$as_ac_Header
16493 if test "x$as_val" = x""yes; then :
16494 cat >>confdefs.h <<_ACEOF
16495 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16498 ac_header_dirent=$ac_hdr; break
16502 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16503 if test $ac_header_dirent = dirent.h; then
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16505 $as_echo_n "checking for library containing opendir... " >&6; }
16506 if test "${ac_cv_search_opendir+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
16509 ac_func_search_save_LIBS=$LIBS
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16513 /* Override any GCC internal prototype to avoid an error.
16514 Use char because int might match the return type of a GCC
16515 builtin and then its argument prototype would still apply. */
16528 for ac_lib in '' dir; do
16529 if test -z "$ac_lib"; then
16530 ac_res="none required"
16533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16535 if ac_fn_c_try_link "$LINENO"; then :
16536 ac_cv_search_opendir=$ac_res
16538 rm -f core conftest.err conftest.$ac_objext \
16540 if test "${ac_cv_search_opendir+set}" = set; then :
16544 if test "${ac_cv_search_opendir+set}" = set; then :
16547 ac_cv_search_opendir=no
16549 rm conftest.$ac_ext
16550 LIBS=$ac_func_search_save_LIBS
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16553 $as_echo "$ac_cv_search_opendir" >&6; }
16554 ac_res=$ac_cv_search_opendir
16555 if test "$ac_res" != no; then :
16556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16562 $as_echo_n "checking for library containing opendir... " >&6; }
16563 if test "${ac_cv_search_opendir+set}" = set; then :
16564 $as_echo_n "(cached) " >&6
16566 ac_func_search_save_LIBS=$LIBS
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16585 for ac_lib in '' x; do
16586 if test -z "$ac_lib"; then
16587 ac_res="none required"
16590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16592 if ac_fn_c_try_link "$LINENO"; then :
16593 ac_cv_search_opendir=$ac_res
16595 rm -f core conftest.err conftest.$ac_objext \
16597 if test "${ac_cv_search_opendir+set}" = set; then :
16601 if test "${ac_cv_search_opendir+set}" = set; then :
16604 ac_cv_search_opendir=no
16606 rm conftest.$ac_ext
16607 LIBS=$ac_func_search_save_LIBS
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16610 $as_echo "$ac_cv_search_opendir" >&6; }
16611 ac_res=$ac_cv_search_opendir
16612 if test "$ac_res" != no; then :
16613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16620 for ac_header in stdlib.h unistd.h
16622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16624 eval as_val=\$$as_ac_Header
16625 if test "x$as_val" = x""yes; then :
16626 cat >>confdefs.h <<_ACEOF
16627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16634 for ac_func in getpagesize
16636 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16637 if test "x$ac_cv_func_getpagesize" = x""yes; then :
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_GETPAGESIZE 1
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16646 $as_echo_n "checking for working mmap... " >&6; }
16647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16650 if test "$cross_compiling" = yes; then :
16651 ac_cv_func_mmap_fixed_mapped=no
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 $ac_includes_default
16656 /* malloc might have been renamed as rpl_malloc. */
16659 /* Thanks to Mike Haertel and Jim Avera for this test.
16660 Here is a matrix of mmap possibilities:
16661 mmap private not fixed
16662 mmap private fixed at somewhere currently unmapped
16663 mmap private fixed at somewhere already mapped
16664 mmap shared not fixed
16665 mmap shared fixed at somewhere currently unmapped
16666 mmap shared fixed at somewhere already mapped
16667 For private mappings, we should verify that changes cannot be read()
16668 back from the file, nor mmap's back from the file at a different
16669 address. (There have been systems where private was not correctly
16670 implemented like the infamous i386 svr4.0, and systems where the
16671 VM page cache was not coherent with the file system buffer cache
16672 like early versions of FreeBSD and possibly contemporary NetBSD.)
16673 For shared mappings, we should conversely verify that changes get
16674 propagated back to all the places they're supposed to be.
16676 Grep wants private fixed already mapped.
16677 The main things grep needs to know about mmap are:
16678 * does it exist and is it safe to write into the mmap'd area
16679 * how to use it (BSD variants) */
16682 #include <sys/mman.h>
16684 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16688 /* This mess was copied from the GNU getpagesize.h. */
16689 #ifndef HAVE_GETPAGESIZE
16690 /* Assume that all systems that can run configure have sys/param.h. */
16691 # ifndef HAVE_SYS_PARAM_H
16692 # define HAVE_SYS_PARAM_H 1
16695 # ifdef _SC_PAGESIZE
16696 # define getpagesize() sysconf(_SC_PAGESIZE)
16697 # else /* no _SC_PAGESIZE */
16698 # ifdef HAVE_SYS_PARAM_H
16699 # include <sys/param.h>
16700 # ifdef EXEC_PAGESIZE
16701 # define getpagesize() EXEC_PAGESIZE
16702 # else /* no EXEC_PAGESIZE */
16704 # define getpagesize() NBPG * CLSIZE
16707 # endif /* no CLSIZE */
16708 # else /* no NBPG */
16710 # define getpagesize() NBPC
16711 # else /* no NBPC */
16713 # define getpagesize() PAGESIZE
16714 # endif /* PAGESIZE */
16715 # endif /* no NBPC */
16716 # endif /* no NBPG */
16717 # endif /* no EXEC_PAGESIZE */
16718 # else /* no HAVE_SYS_PARAM_H */
16719 # define getpagesize() 8192 /* punt totally */
16720 # endif /* no HAVE_SYS_PARAM_H */
16721 # endif /* no _SC_PAGESIZE */
16723 #endif /* no HAVE_GETPAGESIZE */
16728 char *data, *data2, *data3;
16732 pagesize = getpagesize ();
16734 /* First, make a file with some known garbage in it. */
16735 data = (char *) malloc (pagesize);
16738 for (i = 0; i < pagesize; ++i)
16739 *(data + i) = rand ();
16741 fd = creat ("conftest.mmap", 0600);
16744 if (write (fd, data, pagesize) != pagesize)
16748 /* Next, try to mmap the file at a fixed address which already has
16749 something else allocated at it. If we can, also make sure that
16750 we see the same garbage. */
16751 fd = open ("conftest.mmap", O_RDWR);
16754 data2 = (char *) malloc (2 * pagesize);
16757 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16759 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16761 for (i = 0; i < pagesize; ++i)
16762 if (*(data + i) != *(data2 + i))
16765 /* Finally, make sure that changes to the mapped area do not
16766 percolate back to the file as seen by read(). (This is a bug on
16767 some variants of i386 svr4.0.) */
16768 for (i = 0; i < pagesize; ++i)
16769 *(data2 + i) = *(data2 + i) + 1;
16770 data3 = (char *) malloc (pagesize);
16773 if (read (fd, data3, pagesize) != pagesize)
16775 for (i = 0; i < pagesize; ++i)
16776 if (*(data + i) != *(data3 + i))
16782 if ac_fn_c_try_run "$LINENO"; then :
16783 ac_cv_func_mmap_fixed_mapped=yes
16785 ac_cv_func_mmap_fixed_mapped=no
16787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16788 conftest.$ac_objext conftest.beam conftest.$ac_ext
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16793 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16794 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16796 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16799 rm -f conftest.mmap
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16803 $as_echo_n "checking for library containing dlopen... " >&6; }
16804 if test "${ac_cv_search_dlopen+set}" = set; then :
16805 $as_echo_n "(cached) " >&6
16807 ac_func_search_save_LIBS=$LIBS
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16811 /* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
16826 for ac_lib in '' dl; do
16827 if test -z "$ac_lib"; then
16828 ac_res="none required"
16831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16833 if ac_fn_c_try_link "$LINENO"; then :
16834 ac_cv_search_dlopen=$ac_res
16836 rm -f core conftest.err conftest.$ac_objext \
16838 if test "${ac_cv_search_dlopen+set}" = set; then :
16842 if test "${ac_cv_search_dlopen+set}" = set; then :
16845 ac_cv_search_dlopen=no
16847 rm conftest.$ac_ext
16848 LIBS=$ac_func_search_save_LIBS
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16851 $as_echo "$ac_cv_search_dlopen" >&6; }
16852 ac_res=$ac_cv_search_dlopen
16853 if test "$ac_res" != no; then :
16854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16858 if test x$plugins = xyes; then
16859 ENABLE_PLUGINS_TRUE=
16860 ENABLE_PLUGINS_FALSE='#'
16862 ENABLE_PLUGINS_TRUE='#'
16863 ENABLE_PLUGINS_FALSE=
16867 # Check whether --enable-initfini-array was given.
16868 if test "${enable_initfini_array+set}" = set; then :
16869 enableval=$enable_initfini_array; case "${enableval}" in
16871 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16874 enable_initfini_array=yes
16878 if test $enable_initfini_array = yes; then
16880 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16885 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16886 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16887 $as_echo_n "(cached) " >&6
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 #include <unistd.h>
16895 extern int getopt (int, char *const*, const char *);
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901 ld_cv_decl_getopt_unistd_h=yes
16903 ld_cv_decl_getopt_unistd_h=no
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16909 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16910 if test $ld_cv_decl_getopt_unistd_h = yes; then
16912 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16918 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16920 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16924 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16925 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16931 cat >>confdefs.h <<_ACEOF
16932 #define HAVE_DECL_STRSTR $ac_have_decl
16934 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16935 if test "x$ac_cv_have_decl_free" = x""yes; then :
16941 cat >>confdefs.h <<_ACEOF
16942 #define HAVE_DECL_FREE $ac_have_decl
16944 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16945 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_DECL_SBRK $ac_have_decl
16954 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16955 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16961 cat >>confdefs.h <<_ACEOF
16962 #define HAVE_DECL_GETENV $ac_have_decl
16964 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16965 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16971 cat >>confdefs.h <<_ACEOF
16972 #define HAVE_DECL_ENVIRON $ac_have_decl
16976 # When converting linker scripts into strings for use in emulation
16977 # files, use astring.sed if the compiler supports ANSI string
16978 # concatenation, or ostring.sed otherwise. This is to support the
16979 # broken Microsoft MSVC compiler, which limits the length of string
16980 # constants, while still supporting pre-ANSI compilers which do not
16981 # support string concatenation.
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16983 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16984 if test "${ld_cv_string_concatenation+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16998 if ac_fn_c_try_compile "$LINENO"; then :
16999 ld_cv_string_concatenation=yes
17001 ld_cv_string_concatenation=no
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17007 $as_echo "$ld_cv_string_concatenation" >&6; }
17008 if test "$ld_cv_string_concatenation" = "yes"; then
17009 STRINGIFY=astring.sed
17011 STRINGIFY=ostring.sed
17015 # target-specific stuff:
17025 # If the host is 64-bit, then we enable 64-bit targets by default.
17026 # This is consistent with what ../bfd/configure.ac does.
17027 if test x${want64} = xfalse; then
17028 # The cast to long int works around a bug in the HP C Compiler
17029 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17030 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17031 # This bug is HP SR number 8606223364.
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17033 $as_echo_n "checking size of void *... " >&6; }
17034 if test "${ac_cv_sizeof_void_p+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17037 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17040 if test "$ac_cv_type_void_p" = yes; then
17041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17043 { as_fn_set_status 77
17044 as_fn_error "cannot compute sizeof (void *)
17045 See \`config.log' for more details." "$LINENO" 5; }; }
17047 ac_cv_sizeof_void_p=0
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17053 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17057 cat >>confdefs.h <<_ACEOF
17058 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17062 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17067 elf_list_options=FALSE
17068 elf_shlib_list_options=FALSE
17069 elf_plt_unwind_list_options=FALSE
17070 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17072 if test "$targ_alias" = "all"; then
17074 elf_list_options=TRUE
17075 elf_shlib_list_options=TRUE
17076 elf_plt_unwind_list_options=TRUE
17078 # Canonicalize the secondary target names.
17079 result=`$ac_config_sub $targ_alias 2>/dev/null`
17080 if test -n "$result"; then
17086 . ${srcdir}/configure.tgt
17088 if test "$targ" = "$target"; then
17092 if test x${want64} = xfalse; then
17093 . ${srcdir}/../bfd/config.bfd
17096 if test x${want64} = xtrue; then
17097 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17098 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17101 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17102 case " $all_emuls " in
17105 all_emuls="$all_emuls e${i}.o"
17106 eval result=\$tdir_$i
17107 test -z "$result" && result=$targ_alias
17108 echo tdir_$i=$result >> tdirs
17111 elf_list_options=TRUE
17114 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17115 elf_list_options=TRUE
17119 if test "$elf_list_options" = "TRUE"; then
17120 . ${srcdir}/emulparams/${i}.sh
17121 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17122 elf_shlib_list_options=TRUE
17124 if test x${PLT_UNWIND} = xyes; then
17125 elf_plt_unwind_list_options=TRUE
17132 for i in $targ_emul $targ_extra_libpath; do
17133 case " $all_libpath " in
17136 if test -z "$all_libpath"; then
17139 all_libpath="$all_libpath ${i}"
17145 for i in $targ_extra_ofiles; do
17146 case " $all_emul_extras " in
17149 all_emul_extras="$all_emul_extras ${i}"
17157 if test x$ac_default_compressed_debug_sections = xyes ; then
17159 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17163 if test "${ac_default_ld_z_relro}" = unset; then
17164 ac_default_ld_z_relro=0
17167 cat >>confdefs.h <<_ACEOF
17168 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17180 if test x${all_targets} = xtrue; then
17181 if test x${want64} = xtrue; then
17182 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17183 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17185 EMULATION_OFILES='$(ALL_EMULATIONS)'
17186 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17189 EMULATION_OFILES=$all_emuls
17190 EMUL_EXTRA_OFILES=$all_emul_extras
17196 EMULATION_LIBPATH=$all_libpath
17199 if test x${enable_static} = xno; then
17200 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17202 TESTBFDLIB="../bfd/.libs/libbfd.a"
17206 target_vendor=${target_vendor=$host_vendor}
17207 case "$target_vendor" in
17208 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17209 *) EXTRA_SHLIB_EXTENSION= ;;
17212 case "$target_os" in
17213 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17216 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17218 cat >>confdefs.h <<_ACEOF
17219 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17229 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17231 cat >confcache <<\_ACEOF
17232 # This file is a shell script that caches the results of configure
17233 # tests run on this system so they can be shared between configure
17234 # scripts and configure runs, see configure's option --config-cache.
17235 # It is not useful on other systems. If it contains results you don't
17236 # want to keep, you may remove or edit it.
17238 # config.status only pays attention to the cache file if you give it
17239 # the --recheck option to rerun configure.
17241 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17242 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17243 # following values.
17247 # The following way of writing the cache mishandles newlines in values,
17248 # but we know of no workaround that is simple, portable, and efficient.
17249 # So, we kill variables containing newlines.
17250 # Ultrix sh set writes to stderr and can't be redirected directly,
17251 # and sets the high bit in the cache file unless we assign to the vars.
17253 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17254 eval ac_val=\$$ac_var
17258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17259 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17262 _ | IFS | as_nl) ;; #(
17263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17264 *) { eval $ac_var=; unset $ac_var;} ;;
17270 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17271 *${as_nl}ac_space=\ *)
17272 # `set' does not quote correctly, so add quotes: double-quote
17273 # substitution turns \\\\ into \\, and sed turns \\ into \.
17276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17279 # `set' quotes correctly as required by POSIX, so do not add quotes.
17280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17293 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17294 if test -w "$cache_file"; then
17295 test "x$cache_file" != "x/dev/null" &&
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17297 $as_echo "$as_me: updating cache $cache_file" >&6;}
17298 cat confcache >$cache_file
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17301 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17306 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17307 # Let make expand exec_prefix.
17308 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17310 DEFS=-DHAVE_CONFIG_H
17314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17315 # 1. Remove the extension, and $U if already installed.
17316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17319 # will be set to the directory where LIBOBJS objects are built.
17320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17323 LIBOBJS=$ac_libobjs
17325 LTLIBOBJS=$ac_ltlibobjs
17328 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17329 as_fn_error "conditional \"AMDEP\" was never defined.
17330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17333 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17336 if test -n "$EXEEXT"; then
17338 am__EXEEXT_FALSE='#'
17340 am__EXEEXT_TRUE='#'
17344 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17345 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17348 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17349 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17352 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17353 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17356 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17357 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17360 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17361 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17365 : ${CONFIG_STATUS=./config.status}
17367 ac_clean_files_save=$ac_clean_files
17368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17374 # Generated by $as_me.
17375 # Run this file to recreate the current configuration.
17376 # Compiler output produced by configure, useful for debugging
17377 # configure, is in config.log if it exists.
17380 ac_cs_recheck=false
17383 SHELL=\${CONFIG_SHELL-$SHELL}
17386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17387 ## -------------------- ##
17388 ## M4sh Initialization. ##
17389 ## -------------------- ##
17391 # Be more Bourne compatible
17392 DUALCASE=1; export DUALCASE # for MKS sh
17393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17397 # is contrary to our usage. Disable this feature.
17398 alias -g '${1+"$@"}'='"$@"'
17399 setopt NO_GLOB_SUBST
17401 case `(set -o) 2>/dev/null` in #(
17413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17417 # Prefer a ksh shell builtin over an external printf program on Solaris,
17418 # but without wasting forks for bash or zsh.
17419 if test -z "$BASH_VERSION$ZSH_VERSION" \
17420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17421 as_echo='print -r --'
17422 as_echo_n='print -rn --'
17423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17424 as_echo='printf %s\n'
17425 as_echo_n='printf %s'
17427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17429 as_echo_n='/usr/ucb/echo -n'
17431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17432 as_echo_n_body='eval
17436 expr "X$arg" : "X\\(.*\\)$as_nl";
17437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17441 export as_echo_n_body
17442 as_echo_n='sh -c $as_echo_n_body as_echo'
17444 export as_echo_body
17445 as_echo='sh -c $as_echo_body as_echo'
17448 # The user is always right.
17449 if test "${PATH_SEPARATOR+set}" != set; then
17451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17459 # We need space, tab and new line, in precisely that order. Quoting is
17460 # there to prevent editors from complaining about space-tab.
17461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17462 # splitting by setting IFS to empty value.)
17465 # Find who we are. Look in the path if we contain no directory separator.
17467 *[\\/]* ) as_myself=$0 ;;
17468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17469 for as_dir in $PATH
17472 test -z "$as_dir" && as_dir=.
17473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17479 # We did not find ourselves, most probably we were run as `sh COMMAND'
17480 # in which case we are not to be found in the path.
17481 if test "x$as_myself" = x; then
17484 if test ! -f "$as_myself"; then
17485 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17489 # Unset variables that we do not need and which cause bugs (e.g. in
17490 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17491 # suppresses any "Segmentation fault" message there. '((' could
17492 # trigger a bug in pdksh 5.2.14.
17493 for as_var in BASH_ENV ENV MAIL MAILPATH
17494 do eval test x\${$as_var+set} = xset \
17495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17511 # as_fn_error ERROR [LINENO LOG_FD]
17512 # ---------------------------------
17513 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17514 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17515 # script with status $?, using 1 if that was 0.
17518 as_status=$?; test $as_status -eq 0 && as_status=1
17520 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17521 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17523 $as_echo "$as_me: error: $1" >&2
17524 as_fn_exit $as_status
17528 # as_fn_set_status STATUS
17529 # -----------------------
17530 # Set $? to STATUS, without forking.
17531 as_fn_set_status ()
17534 } # as_fn_set_status
17536 # as_fn_exit STATUS
17537 # -----------------
17538 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17542 as_fn_set_status $1
17548 # Portably unset VAR.
17551 { eval $1=; unset $1;}
17553 as_unset=as_fn_unset
17554 # as_fn_append VAR VALUE
17555 # ----------------------
17556 # Append the text in VALUE to the end of the definition contained in VAR. Take
17557 # advantage of any shell optimizations that allow amortized linear growth over
17558 # repeated appends, instead of the typical quadratic growth present in naive
17560 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17561 eval 'as_fn_append ()
17572 # as_fn_arith ARG...
17573 # ------------------
17574 # Perform arithmetic evaluation on the ARGs, and store the result in the
17575 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17576 # must be portable across $(()) and expr.
17577 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17578 eval 'as_fn_arith ()
17585 as_val=`expr "$@" || test $? -eq 1`
17590 if expr a : '\(a\)' >/dev/null 2>&1 &&
17591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17597 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17598 as_basename=basename
17603 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17609 as_me=`$as_basename -- "$0" ||
17610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17611 X"$0" : 'X\(//\)$' \| \
17612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17614 sed '/^.*\/\([^/][^/]*\)\/*$/{
17628 # Avoid depending upon Character Ranges.
17629 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17630 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17631 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17632 as_cr_digits='0123456789'
17633 as_cr_alnum=$as_cr_Letters$as_cr_digits
17635 ECHO_C= ECHO_N= ECHO_T=
17636 case `echo -n x` in #(((((
17638 case `echo 'xy\c'` in
17639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17641 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17648 rm -f conf$$ conf$$.exe conf$$.file
17649 if test -d conf$$.dir; then
17650 rm -f conf$$.dir/conf$$.file
17653 mkdir conf$$.dir 2>/dev/null
17655 if (echo >conf$$.file) 2>/dev/null; then
17656 if ln -s conf$$.file conf$$ 2>/dev/null; then
17658 # ... but there are two gotchas:
17659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17661 # In both cases, we have to default to `cp -p'.
17662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17664 elif ln conf$$.file conf$$ 2>/dev/null; then
17672 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17673 rmdir conf$$.dir 2>/dev/null
17678 # Create "$as_dir" as a directory, including parents if necessary.
17683 -*) as_dir=./$as_dir;;
17685 test -d "$as_dir" || eval $as_mkdir_p || {
17689 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17690 *) as_qdir=$as_dir;;
17692 as_dirs="'$as_qdir' $as_dirs"
17693 as_dir=`$as_dirname -- "$as_dir" ||
17694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695 X"$as_dir" : 'X\(//\)[^/]' \| \
17696 X"$as_dir" : 'X\(//\)$' \| \
17697 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17698 $as_echo X"$as_dir" |
17699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17703 /^X\(\/\/\)[^/].*/{
17716 test -d "$as_dir" && break
17718 test -z "$as_dirs" || eval "mkdir $as_dirs"
17719 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17723 if mkdir -p . 2>/dev/null; then
17724 as_mkdir_p='mkdir -p "$as_dir"'
17726 test -d ./-p && rmdir ./-p
17730 if test -x / >/dev/null 2>&1; then
17731 as_test_x='test -x'
17733 if ls -dL / >/dev/null 2>&1; then
17740 if test -d "$1"; then
17746 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17747 ???[sx]*):;;*)false;;esac;fi
17751 as_executable_p=$as_test_x
17753 # Sed expression to map a string onto a valid CPP name.
17754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17756 # Sed expression to map a string onto a valid variable name.
17757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17761 ## ----------------------------------- ##
17762 ## Main body of $CONFIG_STATUS script. ##
17763 ## ----------------------------------- ##
17765 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768 # Save the log message, to keep $0 and so on meaningful, and to
17769 # report actual input values of CONFIG_FILES etc. instead of their
17770 # values after options handling.
17772 This file was extended by ld $as_me 2.27.51, which was
17773 generated by GNU Autoconf 2.64. Invocation command line was
17775 CONFIG_FILES = $CONFIG_FILES
17776 CONFIG_HEADERS = $CONFIG_HEADERS
17777 CONFIG_LINKS = $CONFIG_LINKS
17778 CONFIG_COMMANDS = $CONFIG_COMMANDS
17781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17786 case $ac_config_files in *"
17787 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17790 case $ac_config_headers in *"
17791 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 # Files that config.status was made for.
17797 config_files="$ac_config_files"
17798 config_headers="$ac_config_headers"
17799 config_commands="$ac_config_commands"
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17805 \`$as_me' instantiates files and other configuration actions
17806 from templates according to the current configuration. Unless the files
17807 and actions are specified as TAGs, all are instantiated by default.
17809 Usage: $0 [OPTION]... [TAG]...
17811 -h, --help print this help, then exit
17812 -V, --version print version number and configuration settings, then exit
17813 -q, --quiet, --silent
17814 do not print progress messages
17815 -d, --debug don't remove temporary files
17816 --recheck update $as_me by reconfiguring in the same conditions
17817 --file=FILE[:TEMPLATE]
17818 instantiate the configuration file FILE
17819 --header=FILE[:TEMPLATE]
17820 instantiate the configuration header FILE
17822 Configuration files:
17825 Configuration headers:
17828 Configuration commands:
17831 Report bugs to the package provider."
17834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17836 ld config.status 2.27.51
17837 configured by $0, generated by GNU Autoconf 2.64,
17838 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17840 Copyright (C) 2009 Free Software Foundation, Inc.
17841 This config.status script is free software; the Free Software Foundation
17842 gives unlimited permission to copy, distribute and modify it."
17849 test -n "\$AWK" || AWK=awk
17852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17853 # The default lists apply if the user does not specify any file.
17859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17871 # Handling of the options.
17872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17875 $as_echo "$ac_cs_version"; exit ;;
17876 --debug | --debu | --deb | --de | --d | -d )
17878 --file | --fil | --fi | --f )
17881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17883 as_fn_append CONFIG_FILES " '$ac_optarg'"
17884 ac_need_defaults=false;;
17885 --header | --heade | --head | --hea )
17888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17890 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17891 ac_need_defaults=false;;
17893 # Conflict between --help and --header
17894 as_fn_error "ambiguous option: \`$1'
17895 Try \`$0 --help' for more information.";;
17896 --help | --hel | -h )
17897 $as_echo "$ac_cs_usage"; exit ;;
17898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17902 # This is an error.
17903 -*) as_fn_error "unrecognized option: \`$1'
17904 Try \`$0 --help' for more information." ;;
17906 *) as_fn_append ac_config_targets " $1"
17907 ac_need_defaults=false ;;
17913 ac_configure_extra_args=
17915 if $ac_cs_silent; then
17917 ac_configure_extra_args="$ac_configure_extra_args --silent"
17921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922 if \$ac_cs_recheck; then
17923 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17925 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17926 CONFIG_SHELL='$SHELL'
17927 export CONFIG_SHELL
17932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17937 ## Running $as_me. ##
17943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17947 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17950 # The HP-UX ksh and POSIX shell print the target directory to stdout
17951 # if CDPATH is set.
17952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17954 sed_quote_subst='$sed_quote_subst'
17955 double_quote_subst='$double_quote_subst'
17956 delay_variable_subst='$delay_variable_subst'
17957 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17958 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17959 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17960 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17961 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17962 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17963 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17964 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17965 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17966 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17967 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17968 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17969 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17970 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17971 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17972 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17973 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17974 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17975 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17976 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17977 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17978 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17979 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17980 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17981 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17982 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17983 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17984 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17985 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17986 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17987 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17988 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17989 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17990 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17992 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17993 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17994 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17995 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17996 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17997 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17998 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17999 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18000 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18001 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18002 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18003 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18004 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18005 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"`'
18006 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18007 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18008 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18009 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18010 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18011 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18012 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18013 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18014 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18015 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18016 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18017 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18018 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18019 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18020 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18021 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18022 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18023 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18024 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18025 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18026 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18027 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18028 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18029 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18030 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18031 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18032 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18033 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18034 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18035 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18036 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18037 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18038 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18039 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18040 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18041 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18042 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18043 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18044 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18045 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18046 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18047 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18048 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18049 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18050 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18051 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18052 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18053 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18054 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18055 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18056 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18057 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18058 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18059 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18060 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18061 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18062 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18063 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18064 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18065 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18066 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18067 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18068 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18069 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18070 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18071 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18072 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18073 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18074 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18075 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18076 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18077 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18078 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18079 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18080 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18081 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18082 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18083 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18084 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18085 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18087 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18088 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18089 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18090 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18091 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18092 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18093 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18094 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18095 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18096 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18097 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18098 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18099 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18100 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18101 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18102 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18103 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18104 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18105 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18106 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18107 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18108 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18109 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18110 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18111 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18112 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18113 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18114 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18115 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18116 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18117 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18118 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18119 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18120 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18121 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18122 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18123 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18124 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18125 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18126 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18127 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18128 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18129 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18130 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18131 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18134 LTCFLAGS='$LTCFLAGS'
18135 compiler='$compiler_DEFAULT'
18137 # A function that is used when there is no print builtin or printf.
18138 func_fallback_echo ()
18140 eval 'cat <<_LTECHO_EOF
18145 # Quote evaled strings.
18159 deplibs_check_method \
18168 lt_cv_sys_global_symbol_pipe \
18169 lt_cv_sys_global_symbol_to_cdecl \
18170 lt_cv_sys_global_symbol_to_c_name_address \
18171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18172 lt_prog_compiler_no_builtin_flag \
18173 lt_prog_compiler_wl \
18174 lt_prog_compiler_pic \
18175 lt_prog_compiler_static \
18176 lt_cv_prog_compiler_c_o \
18184 export_dynamic_flag_spec \
18185 whole_archive_flag_spec \
18186 compiler_needs_object \
18188 allow_undefined_flag \
18189 no_undefined_flag \
18190 hardcode_libdir_flag_spec \
18191 hardcode_libdir_flag_spec_ld \
18192 hardcode_libdir_separator \
18197 variables_saved_for_relink \
18199 library_names_spec \
18201 install_override_mode \
18205 compiler_lib_search_dirs \
18210 compiler_lib_search_path \
18214 lt_prog_compiler_no_builtin_flag_CXX \
18215 lt_prog_compiler_wl_CXX \
18216 lt_prog_compiler_pic_CXX \
18217 lt_prog_compiler_static_CXX \
18218 lt_cv_prog_compiler_c_o_CXX \
18219 export_dynamic_flag_spec_CXX \
18220 whole_archive_flag_spec_CXX \
18221 compiler_needs_object_CXX \
18223 allow_undefined_flag_CXX \
18224 no_undefined_flag_CXX \
18225 hardcode_libdir_flag_spec_CXX \
18226 hardcode_libdir_flag_spec_ld_CXX \
18227 hardcode_libdir_separator_CXX \
18228 fix_srcfile_path_CXX \
18229 exclude_expsyms_CXX \
18230 include_expsyms_CXX \
18231 file_list_spec_CXX \
18232 compiler_lib_search_dirs_CXX \
18233 predep_objects_CXX \
18234 postdep_objects_CXX \
18237 compiler_lib_search_path_CXX; do
18238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18239 *[\\\\\\\`\\"\\\$]*)
18240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18248 # Double-quote double-evaled strings.
18249 for var in reload_cmds \
18250 old_postinstall_cmds \
18251 old_postuninstall_cmds \
18253 extract_expsyms_cmds \
18254 old_archive_from_new_cmds \
18255 old_archive_from_expsyms_cmds \
18257 archive_expsym_cmds \
18259 module_expsym_cmds \
18260 export_symbols_cmds \
18263 postuninstall_cmds \
18265 sys_lib_search_path_spec \
18266 sys_lib_dlsearch_path_spec \
18268 old_archive_cmds_CXX \
18269 old_archive_from_new_cmds_CXX \
18270 old_archive_from_expsyms_cmds_CXX \
18272 archive_expsym_cmds_CXX \
18274 module_expsym_cmds_CXX \
18275 export_symbols_cmds_CXX \
18276 prelink_cmds_CXX; do
18277 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18278 *[\\\\\\\`\\"\\\$]*)
18279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18287 ac_aux_dir='$ac_aux_dir'
18288 xsi_shell='$xsi_shell'
18289 lt_shell_append='$lt_shell_append'
18291 # See if we are running on zsh, and set the options which allow our
18292 # commands through without removal of \ escapes INIT.
18293 if test -n "\${ZSH_VERSION+set}" ; then
18294 setopt NO_GLOB_SUBST
18300 TIMESTAMP='$TIMESTAMP'
18308 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18309 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18311 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18312 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18313 LINGUAS="${LINGUAS-%UNSET%}"
18318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18320 # Handling of arguments.
18321 for ac_config_target in $ac_config_targets
18323 case $ac_config_target in
18324 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18325 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18326 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18327 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18328 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18329 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18331 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18336 # If the user did not use the arguments to specify the items to instantiate,
18337 # then the envvar interface is used. Set only those that are not.
18338 # We use the long form for the default assignment because of an extremely
18339 # bizarre bug on SunOS 4.1.3.
18340 if $ac_need_defaults; then
18341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18346 # Have a temporary directory for convenience. Make it in the build tree
18347 # simply because there is no reason against having it here, and in addition,
18348 # creating and moving files from /tmp can sometimes cause problems.
18349 # Hook for its removal unless debugging.
18350 # Note that there is a small window in which the directory will not be cleaned:
18351 # after its creation but before its name has been assigned to `$tmp'.
18355 trap 'exit_status=$?
18356 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18358 trap 'as_fn_exit 1' 1 2 13 15
18360 # Create a (secure) tmp directory for tmp files.
18363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18364 test -n "$tmp" && test -d "$tmp"
18367 tmp=./conf$$-$RANDOM
18368 (umask 077 && mkdir "$tmp")
18369 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18371 # Set up the scripts for CONFIG_FILES section.
18372 # No need to generate them if there are no CONFIG_FILES.
18373 # This happens for instance with `./config.status config.h'.
18374 if test -n "$CONFIG_FILES"; then
18376 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18377 ac_cs_awk_getline=:
18378 ac_cs_awk_pipe_init=
18379 ac_cs_awk_read_file='
18380 while ((getline aline < (F[key])) > 0)
18383 ac_cs_awk_pipe_fini=
18385 ac_cs_awk_getline=false
18386 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18387 ac_cs_awk_read_file='
18389 print "cat " F[key] " &&"
18390 '$ac_cs_awk_pipe_init
18391 # The final `:' finishes the AND list.
18392 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18394 ac_cr=`echo X | tr X '\015'`
18395 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18396 # But we know of no other shell where ac_cr would be empty at this
18397 # point, so we can use a bashism as a fallback.
18398 if test "x$ac_cr" = x; then
18399 eval ac_cr=\$\'\\r\'
18401 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18402 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18405 ac_cs_awk_cr=$ac_cr
18408 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18411 # Create commands to substitute file output variables.
18413 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18414 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18415 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18418 } >conf$$files.sh &&
18419 . ./conf$$files.sh ||
18420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18421 rm -f conf$$files.sh
18424 echo "cat >conf$$subs.awk <<_ACEOF" &&
18425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18427 } >conf$$subs.sh ||
18428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18431 for ac_last_try in false false false false false :; do
18432 . ./conf$$subs.sh ||
18433 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18436 if test $ac_delim_n = $ac_delim_num; then
18438 elif $ac_last_try; then
18439 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18444 rm -f conf$$subs.sh
18446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18447 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18451 s/^/S["/; s/!.*/"]=/
18461 s/\(.\{148\}\).*/\1/
18463 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18475 s/\(.\{148\}\).*/\1/
18477 s/["\\]/\\&/g; s/^/"/; s/$/"/
18481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18486 ' <conf$$subs.awk | sed '
18491 ' >>$CONFIG_STATUS || ac_write_fail=1
18492 rm -f conf$$subs.awk
18493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18495 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18496 for (key in S) S_is_set[key] = 1
18498 \$ac_cs_awk_pipe_init
18502 nfields = split(line, field, "@")
18504 len = length(field[1])
18505 for (i = 2; i < nfields; i++) {
18507 keylen = length(key)
18508 if (S_is_set[key]) {
18510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18511 len += length(value) + length(field[++i])
18516 if (nfields == 3 && !substed) {
18518 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18519 \$ac_cs_awk_read_file
18525 \$ac_cs_awk_pipe_fini
18528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18533 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18534 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18539 # trailing colons and then remove the whole line if VPATH becomes empty
18540 # (actually we leave an empty line to preserve line numbers).
18541 if test "x$srcdir" = x.; then
18542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18543 s/:*\$(srcdir):*/:/
18544 s/:*\${srcdir}:*/:/
18546 s/^\([^=]*=[ ]*\):*/\1/
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553 fi # test -n "$CONFIG_FILES"
18555 # Set up the scripts for CONFIG_HEADERS section.
18556 # No need to generate them if there are no CONFIG_HEADERS.
18557 # This happens for instance with `./config.status Makefile'.
18558 if test -n "$CONFIG_HEADERS"; then
18559 cat >"$tmp/defines.awk" <<\_ACAWK ||
18563 # Transform confdefs.h into an awk script `defines.awk', embedded as
18564 # here-document in config.status, that substitutes the proper values into
18565 # config.h.in to produce config.h.
18567 # Create a delimiter string that does not exist in confdefs.h, to ease
18568 # handling of long lines.
18570 for ac_last_try in false false :; do
18571 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18572 if test -z "$ac_t"; then
18574 elif $ac_last_try; then
18575 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18581 # For the awk script, D is an array of macro values keyed by name,
18582 # likewise P contains macro parameters if any. Preserve backslash
18583 # newline sequences.
18585 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18587 s/.\{148\}/&'"$ac_delim"'/g
18590 s/^[ ]*#[ ]*define[ ][ ]*/ /
18597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18599 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18604 D["\1"]=" \3\\\\\\n"\\/p
18606 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18611 s/.\{148\}/&'"$ac_delim"'/g
18616 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18619 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18621 ' <confdefs.h | sed '
18622 s/'"$ac_delim"'/"\\\
18623 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18626 for (key in D) D_is_set[key] = 1
18629 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18631 split(line, arg, " ")
18632 if (arg[1] == "#") {
18636 defundef = substr(arg[1], 2)
18639 split(mac1, mac2, "(") #)
18641 prefix = substr(line, 1, index(line, defundef) - 1)
18642 if (D_is_set[macro]) {
18643 # Preserve the white space surrounding the "#".
18644 print prefix "define", macro P[macro] D[macro]
18647 # Replace #undef with comments. This is necessary, for example,
18648 # in the case of _POSIX_SOURCE, which is predefined and required
18649 # on some systems where configure will not decide to define it.
18650 if (defundef == "undef") {
18651 print "/*", prefix defundef, macro, "*/"
18659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18660 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18661 fi # test -n "$CONFIG_HEADERS"
18664 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18669 :[FHLC]) ac_mode=$ac_tag; continue;;
18671 case $ac_mode$ac_tag in
18673 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18674 :[FH]-) ac_tag=-:-;;
18675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18692 -) ac_f="$tmp/stdin";;
18693 *) # Look for the file first in the build tree, then in the source tree
18694 # (if the path is not absolute). The absolute path cannot be DOS-style,
18695 # because $ac_f cannot contain `:'.
18699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18701 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18703 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18704 as_fn_append ac_file_inputs " '$ac_f'"
18707 # Let's still pretend it is `configure' which instantiates (i.e., don't
18708 # use $as_me), people would be surprised to read:
18709 # /* config.h. Generated by config.status. */
18710 configure_input='Generated from '`
18711 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18713 if test x"$ac_file" != x-; then
18714 configure_input="$ac_file. $configure_input"
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18716 $as_echo "$as_me: creating $ac_file" >&6;}
18718 # Neutralize special characters interpreted by sed in replacement strings.
18719 case $configure_input in #(
18720 *\&* | *\|* | *\\* )
18721 ac_sed_conf_input=`$as_echo "$configure_input" |
18722 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18723 *) ac_sed_conf_input=$configure_input;;
18727 *:-:* | *:-) cat >"$tmp/stdin" \
18728 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18733 ac_dir=`$as_dirname -- "$ac_file" ||
18734 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18735 X"$ac_file" : 'X\(//\)[^/]' \| \
18736 X"$ac_file" : 'X\(//\)$' \| \
18737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18738 $as_echo X"$ac_file" |
18739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18743 /^X\(\/\/\)[^/].*/{
18756 as_dir="$ac_dir"; as_fn_mkdir_p
18760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18763 # A ".." for each directory in $ac_dir_suffix.
18764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18765 case $ac_top_builddir_sub in
18766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18770 ac_abs_top_builddir=$ac_pwd
18771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18772 # for backward compatibility:
18773 ac_top_builddir=$ac_top_build_prefix
18776 .) # We are building in place.
18778 ac_top_srcdir=$ac_top_builddir_sub
18779 ac_abs_top_srcdir=$ac_pwd ;;
18780 [\\/]* | ?:[\\/]* ) # Absolute name.
18781 ac_srcdir=$srcdir$ac_dir_suffix;
18782 ac_top_srcdir=$srcdir
18783 ac_abs_top_srcdir=$srcdir ;;
18784 *) # Relative name.
18785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18786 ac_top_srcdir=$ac_top_build_prefix$srcdir
18787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18800 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18802 ac_MKDIR_P=$MKDIR_P
18804 [\\/$]* | ?:[\\/]* ) ;;
18805 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18810 # If the template does not know about datarootdir, expand it.
18811 # FIXME: This hack should be removed a few years after 2.60.
18812 ac_datarootdir_hack=; ac_datarootdir_seen=
18823 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18824 *datarootdir*) ac_datarootdir_seen=yes;;
18825 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18827 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18830 ac_datarootdir_hack='
18831 s&@datadir@&$datadir&g
18832 s&@docdir@&$docdir&g
18833 s&@infodir@&$infodir&g
18834 s&@localedir@&$localedir&g
18835 s&@mandir@&$mandir&g
18836 s&\\\${datarootdir}&$datarootdir&g' ;;
18840 # Neutralize VPATH when `$srcdir' = `.'.
18841 # Shell code in configure.ac might set extrasub.
18842 # FIXME: do we really want to maintain this feature?
18843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18844 ac_sed_extra="$ac_vpsub
18847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18850 s|@configure_input@|$ac_sed_conf_input|;t t
18851 s&@top_builddir@&$ac_top_builddir_sub&;t t
18852 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18853 s&@srcdir@&$ac_srcdir&;t t
18854 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18855 s&@top_srcdir@&$ac_top_srcdir&;t t
18856 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18857 s&@builddir@&$ac_builddir&;t t
18858 s&@abs_builddir@&$ac_abs_builddir&;t t
18859 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18860 s&@INSTALL@&$ac_INSTALL&;t t
18861 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18862 $ac_datarootdir_hack
18864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18865 if $ac_cs_awk_getline; then
18866 $AWK -f "$tmp/subs.awk"
18868 $AWK -f "$tmp/subs.awk" | $SHELL
18870 || as_fn_error "could not create $ac_file" "$LINENO" 5
18872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18873 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18876 which seems to be undefined. Please make sure it is defined." >&5
18877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18878 which seems to be undefined. Please make sure it is defined." >&2;}
18882 -) cat "$tmp/out" && rm -f "$tmp/out";;
18883 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18885 || as_fn_error "could not create $ac_file" "$LINENO" 5
18891 if test x"$ac_file" != x-; then
18893 $as_echo "/* $configure_input */" \
18894 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18895 } >"$tmp/config.h" \
18896 || as_fn_error "could not create $ac_file" "$LINENO" 5
18897 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18902 mv "$tmp/config.h" "$ac_file" \
18903 || as_fn_error "could not create $ac_file" "$LINENO" 5
18906 $as_echo "/* $configure_input */" \
18907 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18908 || as_fn_error "could not create -" "$LINENO" 5
18910 # Compute "$ac_file"'s index in $config_headers.
18913 for _am_header in $config_headers :; do
18914 case $_am_header in
18915 $_am_arg | $_am_arg:* )
18918 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18921 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18922 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18923 X"$_am_arg" : 'X\(//\)[^/]' \| \
18924 X"$_am_arg" : 'X\(//\)$' \| \
18925 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18926 $as_echo X"$_am_arg" |
18927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18931 /^X\(\/\/\)[^/].*/{
18943 s/.*/./; q'`/stamp-h$_am_stamp_count
18946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18947 $as_echo "$as_me: executing $ac_file commands" >&6;}
18952 case $ac_file$ac_mode in
18953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18954 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18955 # are listed without --file. Let's play safe and only enable the eval
18956 # if we detect the quoting.
18957 case $CONFIG_FILES in
18958 *\'*) eval set x "$CONFIG_FILES" ;;
18959 *) set x $CONFIG_FILES ;;
18964 # Strip MF so we end up with the name of the file.
18965 mf=`echo "$mf" | sed -e 's/:.*$//'`
18966 # Check whether this is an Automake generated Makefile or not.
18967 # We used to match only the files named `Makefile.in', but
18968 # some people rename them; so instead we look at the file content.
18969 # Grep'ing the first line is not enough: some people post-process
18970 # each Makefile.in and add a new line on top of each file to say so.
18971 # Grep'ing the whole file is not good either: AIX grep has a line
18972 # limit of 2048, but all sed's we know have understand at least 4000.
18973 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18974 dirpart=`$as_dirname -- "$mf" ||
18975 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18976 X"$mf" : 'X\(//\)[^/]' \| \
18977 X"$mf" : 'X\(//\)$' \| \
18978 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18984 /^X\(\/\/\)[^/].*/{
19000 # Extract the definition of DEPDIR, am__include, and am__quote
19001 # from the Makefile without running `make'.
19002 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19003 test -z "$DEPDIR" && continue
19004 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19005 test -z "am__include" && continue
19006 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19007 # When using ansi2knr, U may be empty or an underscore; expand it
19008 U=`sed -n 's/^U = //p' < "$mf"`
19009 # Find all dependency output files, they are included files with
19010 # $(DEPDIR) in their names. We invoke sed twice because it is the
19011 # simplest approach to changing $(DEPDIR) to its actual value in the
19013 for file in `sed -n "
19014 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19015 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19016 # Make sure the directory exists.
19017 test -f "$dirpart/$file" && continue
19018 fdir=`$as_dirname -- "$file" ||
19019 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19020 X"$file" : 'X\(//\)[^/]' \| \
19021 X"$file" : 'X\(//\)$' \| \
19022 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19023 $as_echo X"$file" |
19024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19028 /^X\(\/\/\)[^/].*/{
19041 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19042 # echo "creating $dirpart/$file"
19043 echo '# dummy' > "$dirpart/$file"
19050 # See if we are running on zsh, and set the options which allow our
19051 # commands through without removal of \ escapes.
19052 if test -n "${ZSH_VERSION+set}" ; then
19053 setopt NO_GLOB_SUBST
19056 cfgfile="${ofile}T"
19057 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19060 cat <<_LT_EOF >> "$cfgfile"
19063 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19064 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19066 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19068 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19069 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19070 # Written by Gordon Matzigkeit, 1996
19072 # This file is part of GNU Libtool.
19074 # GNU Libtool is free software; you can redistribute it and/or
19075 # modify it under the terms of the GNU General Public License as
19076 # published by the Free Software Foundation; either version 2 of
19077 # the License, or (at your option) any later version.
19079 # As a special exception to the GNU General Public License,
19080 # if you distribute this file as part of a program or library that
19081 # is built using GNU Libtool, you may include this file under the
19082 # same distribution terms that you use for the rest of that program.
19084 # GNU Libtool is distributed in the hope that it will be useful,
19085 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19087 # GNU General Public License for more details.
19089 # You should have received a copy of the GNU General Public License
19090 # along with GNU Libtool; see the file COPYING. If not, a copy
19091 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19092 # obtained by writing to the Free Software Foundation, Inc.,
19093 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19096 # The names of the tagged configurations supported by this script.
19097 available_tags="CXX "
19099 # ### BEGIN LIBTOOL CONFIG
19101 # Which release of libtool.m4 was used?
19102 macro_version=$macro_version
19103 macro_revision=$macro_revision
19105 # Whether or not to build shared libraries.
19106 build_libtool_libs=$enable_shared
19108 # Whether or not to build static libraries.
19109 build_old_libs=$enable_static
19111 # What type of objects to build.
19114 # Whether or not to optimize for fast installation.
19115 fast_install=$enable_fast_install
19117 # Shell to use when invoking shell scripts.
19120 # An echo program that protects backslashes.
19124 host_alias=$host_alias
19128 # The build system.
19129 build_alias=$build_alias
19133 # A sed program that does not truncate output.
19136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19137 Xsed="\$SED -e 1s/^X//"
19139 # A grep program that handles long lines.
19145 # A literal string matcher.
19148 # A BSD- or MS-compatible name lister.
19151 # Whether we need soft or hard links.
19154 # What is the maximum length of a command?
19155 max_cmd_len=$max_cmd_len
19157 # Object file suffix (normally "o").
19160 # Executable file suffix (normally "").
19163 # whether the shell understands "unset".
19166 # turn spaces into newlines.
19169 # turn newlines into spaces.
19172 # An object symbol dumper.
19173 OBJDUMP=$lt_OBJDUMP
19175 # Method to check whether dependent libraries are shared objects.
19176 deplibs_check_method=$lt_deplibs_check_method
19178 # Command to use when deplibs_check_method == "file_magic".
19179 file_magic_cmd=$lt_file_magic_cmd
19183 AR_FLAGS=$lt_AR_FLAGS
19185 # A symbol stripping program.
19188 # Commands used to install an old-style archive.
19190 old_postinstall_cmds=$lt_old_postinstall_cmds
19191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19193 # Whether to use a lock for old archive extraction.
19194 lock_old_archive_extraction=$lock_old_archive_extraction
19199 # LTCC compiler flags.
19200 LTCFLAGS=$lt_CFLAGS
19202 # Take the output of nm and produce a listing of raw symbols and C names.
19203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19205 # Transform the output of nm in a proper C declaration.
19206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19208 # Transform the output of nm in a C name address pair.
19209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19211 # Transform the output of nm in a C name address pair when lib prefix is needed.
19212 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19214 # The name of the directory that contains temporary libtool files.
19217 # Used to examine libraries when file_magic_cmd begins with "file".
19218 MAGIC_CMD=$MAGIC_CMD
19220 # Must we lock files when doing compilation?
19221 need_locks=$lt_need_locks
19223 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19224 DSYMUTIL=$lt_DSYMUTIL
19226 # Tool to change global to local symbols on Mac OS X.
19229 # Tool to manipulate fat objects and archives on Mac OS X.
19232 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19235 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19236 OTOOL64=$lt_OTOOL64
19238 # Old archive suffix (normally "a").
19241 # Shared library suffix (normally ".so").
19242 shrext_cmds=$lt_shrext_cmds
19244 # The commands to extract the exported symbol list from a shared archive.
19245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19247 # Variables whose values should be saved in libtool wrapper scripts and
19248 # restored at link time.
19249 variables_saved_for_relink=$lt_variables_saved_for_relink
19251 # Do we need the "lib" prefix for modules?
19252 need_lib_prefix=$need_lib_prefix
19254 # Do we need a version for libraries?
19255 need_version=$need_version
19257 # Library versioning type.
19258 version_type=$version_type
19260 # Shared library runtime path variable.
19261 runpath_var=$runpath_var
19263 # Shared library path variable.
19264 shlibpath_var=$shlibpath_var
19266 # Is shlibpath searched before the hard-coded library search path?
19267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19269 # Format of library name prefix.
19270 libname_spec=$lt_libname_spec
19272 # List of archive names. First name is the real one, the rest are links.
19273 # The last name is the one that the linker finds with -lNAME
19274 library_names_spec=$lt_library_names_spec
19276 # The coded name of the library, if different from the real name.
19277 soname_spec=$lt_soname_spec
19279 # Permission mode override for installation of shared libraries.
19280 install_override_mode=$lt_install_override_mode
19282 # Command to use after installation of a shared archive.
19283 postinstall_cmds=$lt_postinstall_cmds
19285 # Command to use after uninstallation of a shared archive.
19286 postuninstall_cmds=$lt_postuninstall_cmds
19288 # Commands used to finish a libtool library installation in a directory.
19289 finish_cmds=$lt_finish_cmds
19291 # As "finish_cmds", except a single script fragment to be evaled but
19293 finish_eval=$lt_finish_eval
19295 # Whether we should hardcode library paths into libraries.
19296 hardcode_into_libs=$hardcode_into_libs
19298 # Compile-time system search path for libraries.
19299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19301 # Run-time system search path for libraries.
19302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19304 # Whether dlopen is supported.
19305 dlopen_support=$enable_dlopen
19307 # Whether dlopen of programs is supported.
19308 dlopen_self=$enable_dlopen_self
19310 # Whether dlopen of statically linked programs is supported.
19311 dlopen_self_static=$enable_dlopen_self_static
19313 # Commands to strip libraries.
19314 old_striplib=$lt_old_striplib
19315 striplib=$lt_striplib
19318 # The linker used to build libraries.
19321 # How to create reloadable object files.
19322 reload_flag=$lt_reload_flag
19323 reload_cmds=$lt_reload_cmds
19325 # Commands used to build an old-style archive.
19326 old_archive_cmds=$lt_old_archive_cmds
19328 # A language specific compiler.
19331 # Is the compiler the GNU compiler?
19334 # Compiler flag to turn off builtin functions.
19335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19337 # How to pass a linker flag through the compiler.
19338 wl=$lt_lt_prog_compiler_wl
19340 # Additional compiler flags for building library objects.
19341 pic_flag=$lt_lt_prog_compiler_pic
19343 # Compiler flag to prevent dynamic linking.
19344 link_static_flag=$lt_lt_prog_compiler_static
19346 # Does compiler simultaneously support -c and -o options?
19347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19349 # Whether or not to add -lc for building shared libraries.
19350 build_libtool_need_lc=$archive_cmds_need_lc
19352 # Whether or not to disallow shared libs when runtime libs are static.
19353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19355 # Compiler flag to allow reflexive dlopens.
19356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19358 # Compiler flag to generate shared objects directly from archives.
19359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19361 # Whether the compiler copes with passing no objects directly.
19362 compiler_needs_object=$lt_compiler_needs_object
19364 # Create an old-style archive from a shared archive.
19365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19367 # Create a temporary old-style archive to link instead of a shared archive.
19368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19370 # Commands used to build a shared archive.
19371 archive_cmds=$lt_archive_cmds
19372 archive_expsym_cmds=$lt_archive_expsym_cmds
19374 # Commands used to build a loadable module if different from building
19375 # a shared archive.
19376 module_cmds=$lt_module_cmds
19377 module_expsym_cmds=$lt_module_expsym_cmds
19379 # Whether we are building with GNU ld or not.
19380 with_gnu_ld=$lt_with_gnu_ld
19382 # Flag that allows shared libraries with undefined symbols to be built.
19383 allow_undefined_flag=$lt_allow_undefined_flag
19385 # Flag that enforces no undefined symbols.
19386 no_undefined_flag=$lt_no_undefined_flag
19388 # Flag to hardcode \$libdir into a binary during linking.
19389 # This must work even if \$libdir does not exist
19390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19392 # If ld is used when linking, flag to hardcode \$libdir into a binary
19393 # during linking. This must work even if \$libdir does not exist.
19394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19396 # Whether we need a single "-rpath" flag with a separated argument.
19397 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19400 # DIR into the resulting binary.
19401 hardcode_direct=$hardcode_direct
19403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19404 # DIR into the resulting binary and the resulting library dependency is
19405 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19406 # library is relocated.
19407 hardcode_direct_absolute=$hardcode_direct_absolute
19409 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19410 # into the resulting binary.
19411 hardcode_minus_L=$hardcode_minus_L
19413 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19414 # into the resulting binary.
19415 hardcode_shlibpath_var=$hardcode_shlibpath_var
19417 # Set to "yes" if building a shared library automatically hardcodes DIR
19418 # into the library and all subsequent libraries and executables linked
19420 hardcode_automatic=$hardcode_automatic
19422 # Set to yes if linker adds runtime paths of dependent libraries
19423 # to runtime path list.
19424 inherit_rpath=$inherit_rpath
19426 # Whether libtool must link a program against all its dependency libraries.
19427 link_all_deplibs=$link_all_deplibs
19429 # Fix the shell variable \$srcfile for the compiler.
19430 fix_srcfile_path=$lt_fix_srcfile_path
19432 # Set to "yes" if exported symbols are required.
19433 always_export_symbols=$always_export_symbols
19435 # The commands to list exported symbols.
19436 export_symbols_cmds=$lt_export_symbols_cmds
19438 # Symbols that should not be listed in the preloaded symbols.
19439 exclude_expsyms=$lt_exclude_expsyms
19441 # Symbols that must always be exported.
19442 include_expsyms=$lt_include_expsyms
19444 # Commands necessary for linking programs (against libraries) with templates.
19445 prelink_cmds=$lt_prelink_cmds
19447 # Specify filename containing input files.
19448 file_list_spec=$lt_file_list_spec
19450 # How to hardcode a shared library path into an executable.
19451 hardcode_action=$hardcode_action
19453 # The directories searched by this compiler when creating a shared library.
19454 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19456 # Dependencies to place before and after the objects being linked to
19457 # create a shared library.
19458 predep_objects=$lt_predep_objects
19459 postdep_objects=$lt_postdep_objects
19460 predeps=$lt_predeps
19461 postdeps=$lt_postdeps
19463 # The library search path used internally by the compiler when linking
19464 # a shared library.
19465 compiler_lib_search_path=$lt_compiler_lib_search_path
19467 # ### END LIBTOOL CONFIG
19473 cat <<\_LT_EOF >> "$cfgfile"
19474 # AIX sometimes has problems with the GCC collect2 program. For some
19475 # reason, if we set the COLLECT_NAMES environment variable, the problems
19476 # vanish in a puff of smoke.
19477 if test "X${COLLECT_NAMES+set}" != Xset; then
19479 export COLLECT_NAMES
19486 ltmain="$ac_aux_dir/ltmain.sh"
19489 # We use sed instead of cat because bash on DJGPP gets confused if
19490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19491 # text mode, it properly converts lines to CR/LF. This bash problem
19492 # is reportedly fixed, but why not run on old versions too?
19493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19494 || (rm -f "$cfgfile"; exit 1)
19498 cat << \_LT_EOF >> "$cfgfile"
19500 # func_dirname file append nondir_replacement
19501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19502 # otherwise set result to NONDIR_REPLACEMENT.
19506 */*) func_dirname_result="${1%/*}${2}" ;;
19507 * ) func_dirname_result="${3}" ;;
19511 # func_basename file
19514 func_basename_result="${1##*/}"
19517 # func_dirname_and_basename file append nondir_replacement
19518 # perform func_basename and func_dirname in a single function
19520 # dirname: Compute the dirname of FILE. If nonempty,
19521 # add APPEND to the result, otherwise set result
19522 # to NONDIR_REPLACEMENT.
19523 # value returned in "$func_dirname_result"
19524 # basename: Compute filename of FILE.
19525 # value retuned in "$func_basename_result"
19526 # Implementation must be kept synchronized with func_dirname
19527 # and func_basename. For efficiency, we do not delegate to
19528 # those functions but instead duplicate the functionality here.
19529 func_dirname_and_basename ()
19532 */*) func_dirname_result="${1%/*}${2}" ;;
19533 * ) func_dirname_result="${3}" ;;
19535 func_basename_result="${1##*/}"
19538 # func_stripname prefix suffix name
19539 # strip PREFIX and SUFFIX off of NAME.
19540 # PREFIX and SUFFIX must not contain globbing or regex special
19541 # characters, hashes, percent signs, but SUFFIX may contain a leading
19542 # dot (in which case that matches only a dot).
19545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19546 # positional parameters, so assign one to ordinary parameter first.
19547 func_stripname_result=${3}
19548 func_stripname_result=${func_stripname_result#"${1}"}
19549 func_stripname_result=${func_stripname_result%"${2}"}
19555 func_opt_split_opt=${1%%=*}
19556 func_opt_split_arg=${1#*=}
19563 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19564 *) func_lo2o_result=${1} ;;
19568 # func_xform libobj-or-source
19571 func_xform_result=${1%.*}.lo
19574 # func_arith arithmetic-term...
19577 func_arith_result=$(( $* ))
19581 # STRING may not start with a hyphen.
19584 func_len_result=${#1}
19589 *) # Bourne compatible functions.
19590 cat << \_LT_EOF >> "$cfgfile"
19592 # func_dirname file append nondir_replacement
19593 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19594 # otherwise set result to NONDIR_REPLACEMENT.
19597 # Extract subdirectory from the argument.
19598 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19599 if test "X$func_dirname_result" = "X${1}"; then
19600 func_dirname_result="${3}"
19602 func_dirname_result="$func_dirname_result${2}"
19606 # func_basename file
19609 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19613 # func_stripname prefix suffix name
19614 # strip PREFIX and SUFFIX off of NAME.
19615 # PREFIX and SUFFIX must not contain globbing or regex special
19616 # characters, hashes, percent signs, but SUFFIX may contain a leading
19617 # dot (in which case that matches only a dot).
19618 # func_strip_suffix prefix name
19622 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19623 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19628 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19629 my_sed_long_arg='1s/^-[^=]*=//'
19634 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19635 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19641 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19644 # func_xform libobj-or-source
19647 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19650 # func_arith arithmetic-term...
19653 func_arith_result=`expr "$@"`
19657 # STRING may not start with a hyphen.
19660 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19666 case $lt_shell_append in
19668 cat << \_LT_EOF >> "$cfgfile"
19670 # func_append var value
19671 # Append VALUE to the end of shell variable VAR.
19679 cat << \_LT_EOF >> "$cfgfile"
19681 # func_append var value
19682 # Append VALUE to the end of shell variable VAR.
19693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19694 || (rm -f "$cfgfile"; exit 1)
19696 mv -f "$cfgfile" "$ofile" ||
19697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19701 cat <<_LT_EOF >> "$ofile"
19703 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19705 # The linker used to build libraries.
19708 # How to create reloadable object files.
19709 reload_flag=$lt_reload_flag_CXX
19710 reload_cmds=$lt_reload_cmds_CXX
19712 # Commands used to build an old-style archive.
19713 old_archive_cmds=$lt_old_archive_cmds_CXX
19715 # A language specific compiler.
19716 CC=$lt_compiler_CXX
19718 # Is the compiler the GNU compiler?
19721 # Compiler flag to turn off builtin functions.
19722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19724 # How to pass a linker flag through the compiler.
19725 wl=$lt_lt_prog_compiler_wl_CXX
19727 # Additional compiler flags for building library objects.
19728 pic_flag=$lt_lt_prog_compiler_pic_CXX
19730 # Compiler flag to prevent dynamic linking.
19731 link_static_flag=$lt_lt_prog_compiler_static_CXX
19733 # Does compiler simultaneously support -c and -o options?
19734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19736 # Whether or not to add -lc for building shared libraries.
19737 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19739 # Whether or not to disallow shared libs when runtime libs are static.
19740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19742 # Compiler flag to allow reflexive dlopens.
19743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19745 # Compiler flag to generate shared objects directly from archives.
19746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19748 # Whether the compiler copes with passing no objects directly.
19749 compiler_needs_object=$lt_compiler_needs_object_CXX
19751 # Create an old-style archive from a shared archive.
19752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19754 # Create a temporary old-style archive to link instead of a shared archive.
19755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19757 # Commands used to build a shared archive.
19758 archive_cmds=$lt_archive_cmds_CXX
19759 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19761 # Commands used to build a loadable module if different from building
19762 # a shared archive.
19763 module_cmds=$lt_module_cmds_CXX
19764 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19766 # Whether we are building with GNU ld or not.
19767 with_gnu_ld=$lt_with_gnu_ld_CXX
19769 # Flag that allows shared libraries with undefined symbols to be built.
19770 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19772 # Flag that enforces no undefined symbols.
19773 no_undefined_flag=$lt_no_undefined_flag_CXX
19775 # Flag to hardcode \$libdir into a binary during linking.
19776 # This must work even if \$libdir does not exist
19777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19779 # If ld is used when linking, flag to hardcode \$libdir into a binary
19780 # during linking. This must work even if \$libdir does not exist.
19781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19783 # Whether we need a single "-rpath" flag with a separated argument.
19784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19787 # DIR into the resulting binary.
19788 hardcode_direct=$hardcode_direct_CXX
19790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19791 # DIR into the resulting binary and the resulting library dependency is
19792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19793 # library is relocated.
19794 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19797 # into the resulting binary.
19798 hardcode_minus_L=$hardcode_minus_L_CXX
19800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19801 # into the resulting binary.
19802 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19804 # Set to "yes" if building a shared library automatically hardcodes DIR
19805 # into the library and all subsequent libraries and executables linked
19807 hardcode_automatic=$hardcode_automatic_CXX
19809 # Set to yes if linker adds runtime paths of dependent libraries
19810 # to runtime path list.
19811 inherit_rpath=$inherit_rpath_CXX
19813 # Whether libtool must link a program against all its dependency libraries.
19814 link_all_deplibs=$link_all_deplibs_CXX
19816 # Fix the shell variable \$srcfile for the compiler.
19817 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19819 # Set to "yes" if exported symbols are required.
19820 always_export_symbols=$always_export_symbols_CXX
19822 # The commands to list exported symbols.
19823 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19825 # Symbols that should not be listed in the preloaded symbols.
19826 exclude_expsyms=$lt_exclude_expsyms_CXX
19828 # Symbols that must always be exported.
19829 include_expsyms=$lt_include_expsyms_CXX
19831 # Commands necessary for linking programs (against libraries) with templates.
19832 prelink_cmds=$lt_prelink_cmds_CXX
19834 # Specify filename containing input files.
19835 file_list_spec=$lt_file_list_spec_CXX
19837 # How to hardcode a shared library path into an executable.
19838 hardcode_action=$hardcode_action_CXX
19840 # The directories searched by this compiler when creating a shared library.
19841 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19843 # Dependencies to place before and after the objects being linked to
19844 # create a shared library.
19845 predep_objects=$lt_predep_objects_CXX
19846 postdep_objects=$lt_postdep_objects_CXX
19847 predeps=$lt_predeps_CXX
19848 postdeps=$lt_postdeps_CXX
19850 # The library search path used internally by the compiler when linking
19851 # a shared library.
19852 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19854 # ### END LIBTOOL TAG CONFIG: CXX
19859 for ac_file in $CONFIG_FILES; do
19860 # Support "outfile[:infile[:infile...]]"
19862 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19864 # PO directories have a Makefile.in generated from Makefile.in.in.
19865 case "$ac_file" in */Makefile.in)
19866 # Adjust a relative srcdir.
19867 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19868 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19869 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19870 # In autoconf-2.13 it is called $ac_given_srcdir.
19871 # In autoconf-2.50 it is called $srcdir.
19872 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19873 case "$ac_given_srcdir" in
19874 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19875 /*) top_srcdir="$ac_given_srcdir" ;;
19876 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19878 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19879 rm -f "$ac_dir/POTFILES"
19880 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19881 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19882 POMAKEFILEDEPS="POTFILES.in"
19883 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19884 # on $ac_dir but don't depend on user-specified configuration
19886 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19887 # The LINGUAS file contains the set of available languages.
19888 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19889 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19891 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19892 # Hide the ALL_LINGUAS assigment from automake.
19893 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19894 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19896 # The set of available languages was given in configure.ac.
19897 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19899 case "$ac_given_srcdir" in
19901 *) srcdirpre='$(srcdir)/' ;;
19907 for lang in $ALL_LINGUAS; do
19908 POFILES="$POFILES $srcdirpre$lang.po"
19909 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19910 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19911 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19913 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19914 # environment variable.
19916 if test -n "$ALL_LINGUAS"; then
19917 for presentlang in $ALL_LINGUAS; do
19919 if test "%UNSET%" != "$LINGUAS"; then
19920 desiredlanguages="$LINGUAS"
19922 desiredlanguages="$ALL_LINGUAS"
19924 for desiredlang in $desiredlanguages; do
19925 # Use the presentlang catalog if desiredlang is
19926 # a. equal to presentlang, or
19927 # b. a variant of presentlang (because in this case,
19928 # presentlang can be used as a fallback for messages
19929 # which are not translated in the desiredlang catalog).
19930 case "$desiredlang" in
19931 "$presentlang"*) useit=yes;;
19934 if test $useit = yes; then
19935 INST_LINGUAS="$INST_LINGUAS $presentlang"
19940 if test -n "$INST_LINGUAS"; then
19941 for lang in $INST_LINGUAS; do
19942 CATALOGS="$CATALOGS $lang.gmo"
19945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19946 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"
19947 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19948 if test -f "$f"; then
19950 *.orig | *.bak | *~) ;;
19951 *) cat "$f" >> "$ac_dir/Makefile" ;;
19966 ac_clean_files=$ac_clean_files_save
19968 test $ac_write_fail = 0 ||
19969 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19972 # configure is writing to config.log, and then calls config.status.
19973 # config.status does its own redirection, appending to config.log.
19974 # Unfortunately, on DOS this fails, as config.log is still kept open
19975 # by configure, so config.status won't be able to write to it; its
19976 # output is simply discarded. So we exec the FD to /dev/null,
19977 # effectively closing config.log, so it can be properly (re)opened and
19978 # appended to by config.status. When coming back to configure, we
19979 # need to make the FD available again.
19980 if test "$no_create" != yes; then
19982 ac_config_status_args=
19983 test "$silent" = yes &&
19984 ac_config_status_args="$ac_config_status_args --quiet"
19986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19989 # would make configure fail if this is the last instruction.
19990 $ac_cs_success || as_fn_exit $?
19992 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19994 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}