2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libasprintf 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='libasprintf'
589 PACKAGE_TARNAME='libasprintf'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='libasprintf 1.0'
595 ac_unique_file="vasprintf.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars='gltests_LTLIBOBJS
651 GL_GENERATE_ERRNO_H_FALSE
652 GL_GENERATE_ERRNO_H_TRUE
654 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
658 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
660 GL_GENERATE_ALLOCA_H_FALSE
661 GL_GENERATE_ALLOCA_H_TRUE
665 GL_COND_LIBTOOL_FALSE
737 INSTALL_STRIP_PROGRAM
780 program_transform_name
793 enable_option_checking
795 enable_dependency_tracking
805 ac_precious_vars='build_alias
821 # Initialize some variables set by options.
823 ac_init_version=false
824 ac_unrecognized_opts=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 runstatedir='${localstatedir}/run'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
980 -help | --help | --hel | --he | -h)
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1110 -runstatedir | --runstatedir | --runstatedi | --runstated \
1111 | --runstate | --runstat | --runsta | --runst | --runs \
1112 | --run | --ru | --r)
1113 ac_prev=runstatedir ;;
1114 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1115 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1116 | --run=* | --ru=* | --r=*)
1117 runstatedir=$ac_optarg ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1138 -site=* | --site=* | --sit=*)
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir runstatedir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1265 # Be sure to have absolute directory names.
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1369 \`configure' configures libasprintf 1.0 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/libasprintf]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of libasprintf 1.0:";;
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-dependency-tracking
1451 do not reject slow dependency extractors
1452 --disable-dependency-tracking
1453 speeds up one-time build
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1465 --with-aix-soname=aix|svr4|both
1466 shared library versioning (aka "SONAME") variant to
1467 provide on AIX, [default=aix].
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1469 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1470 compiler's sysroot if not specified).
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1484 User-defined run-time library search path.
1485 CXXCPP C++ preprocessor
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1490 Report bugs to the package provider.
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 libasprintf configure 1.0
1554 generated by GNU Autoconf 2.69
1556 Copyright (C) 2012 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1603 } # ac_fn_c_try_compile
1605 # ac_fn_cxx_try_compile LINENO
1606 # ----------------------------
1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_cxx_try_compile ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext
1612 if { { ac_try="$ac_compile"
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_cxx_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext; then :
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1641 } # ac_fn_cxx_try_compile
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } > conftest.i && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_link
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"; then :
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 } # ac_fn_c_check_header_compile
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_link"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 ac_retval=$ac_status
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1799 # ac_fn_c_check_func LINENO FUNC VAR
1800 # ----------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_c_check_func ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1822 # include <limits.h>
1824 # include <assert.h>
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1851 if ac_fn_c_try_link "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 } # ac_fn_c_check_func
1866 # ac_fn_cxx_try_cpp LINENO
1867 # ------------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_cpp ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } > conftest.i && {
1888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1889 test ! -s conftest.err
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_cxx_try_cpp
1903 # ac_fn_cxx_try_link LINENO
1904 # -------------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_cxx_try_link ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 rm -f conftest.$ac_objext conftest$ac_exeext
1910 if { { ac_try="$ac_link"
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>conftest.err
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && {
1926 test -z "$ac_cxx_werror_flag" ||
1927 test ! -s conftest.err
1928 } && test -s conftest$ac_exeext && {
1929 test "$cross_compiling" = yes ||
1930 test -x conftest$ac_exeext
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1939 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1940 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1941 # interfere with the next link command; also delete a directory that is
1942 # left behind by Apple's compiler. We do this before executing the actions.
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1947 } # ac_fn_cxx_try_link
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1954 ac_fn_c_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if eval \${$3+:} false; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 eval "$3=\$ac_header_compiler"
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 } # ac_fn_c_check_header_mongrel
2036 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2037 # -------------------------------------------
2038 # Tests whether TYPE exists after having included INCLUDES, setting cache
2039 # variable VAR accordingly.
2040 ac_fn_c_check_type ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2074 if ac_fn_c_try_compile "$LINENO"; then :
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_type
2090 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2091 # --------------------------------------------
2092 # Tries to find the compile-time value of EXPR in a program that includes
2093 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2095 ac_fn_c_compute_int ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if test "$cross_compiling" = yes; then
2099 # Depending upon the size, compute the lo and hi bounds.
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) >= 0)];
2108 return test_array [0];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2125 return test_array [0];
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=$ac_mid; break
2134 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2135 if test $ac_lo -le $ac_mid; then
2139 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) < 0)];
2152 return test_array [0];
2158 if ac_fn_c_try_compile "$LINENO"; then :
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2169 return test_array [0];
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_lo=$ac_mid; break
2178 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2179 if test $ac_mid -le $ac_hi; then
2183 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 # Binary search between lo and hi bounds.
2194 while test "x$ac_lo" != "x$ac_hi"; do
2195 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2213 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2225 static long int longval () { return $2; }
2226 static unsigned long int ulongval () { return $2; }
2233 FILE *f = fopen ("conftest.val", "w");
2238 long int i = longval ();
2241 fprintf (f, "%ld", i);
2245 unsigned long int i = ulongval ();
2248 fprintf (f, "%lu", i);
2250 /* Do not output a trailing newline, as this causes \r\n confusion
2251 on some platforms. */
2252 return ferror (f) || fclose (f) != 0;
2258 if ac_fn_c_try_run "$LINENO"; then :
2259 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2264 conftest.$ac_objext conftest.beam conftest.$ac_ext
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 as_fn_set_status $ac_retval
2271 } # ac_fn_c_compute_int
2273 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2274 # ---------------------------------------------
2275 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2277 ac_fn_c_check_decl ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 as_decl_name=`echo $2|sed 's/ *(.*//'`
2281 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2283 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2284 if eval \${$3+:} false; then :
2285 $as_echo_n "(cached) " >&6
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 #ifndef $as_decl_name
2295 (void) $as_decl_use;
2297 (void) $as_decl_name;
2305 if ac_fn_c_try_compile "$LINENO"; then :
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_decl
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by libasprintf $as_me 1.0, which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2383 ac_must_keep_next=false
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2412 -* ) ac_must_keep_next=true ;;
2415 as_fn_append ac_configure_args " '$ac_arg'"
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 $as_echo "$ac_var='\''$ac_val'\''"
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 $as_echo "$ac_var='\''$ac_val'\''"
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2602 gl_header_list="$gl_header_list stdlib.h"
2603 gl_header_list="$gl_header_list string.h"
2604 # Check that the precious variables saved in the cache have kept the same
2606 ac_cache_corrupted=false
2607 for ac_var in $ac_precious_vars; do
2608 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2609 eval ac_new_set=\$ac_env_${ac_var}_set
2610 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2611 eval ac_new_val=\$ac_env_${ac_var}_value
2612 case $ac_old_set,$ac_new_set in
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2623 if test "x$ac_old_val" != "x$ac_new_val"; then
2624 # differences in whitespace do not lead to failure.
2625 ac_old_val_w=`echo x $ac_old_val`
2626 ac_new_val_w=`echo x $ac_new_val`
2627 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2629 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2630 ac_cache_corrupted=:
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2633 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2634 eval $ac_var=\$ac_old_val
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2637 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2639 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2642 # Pass precious variables to config.status.
2643 if test "$ac_new_set" = set; then
2645 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2646 *) ac_arg=$ac_var=$ac_new_val ;;
2648 case " $ac_configure_args " in
2649 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2650 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 if $ac_cache_corrupted; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2658 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2659 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2661 ## -------------------- ##
2662 ## Main body of script. ##
2663 ## -------------------- ##
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2675 if test -f "$ac_dir/install-sh"; then
2677 ac_install_sh="$ac_aux_dir/install-sh -c"
2679 elif test -f "$ac_dir/install.sh"; then
2681 ac_install_sh="$ac_aux_dir/install.sh -c"
2683 elif test -f "$ac_dir/shtool"; then
2685 ac_install_sh="$ac_aux_dir/shtool install -c"
2689 if test -z "$ac_aux_dir"; then
2690 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2693 # These three variables are undocumented and unsupported,
2694 # and are intended to be withdrawn in a future Autoconf release.
2695 # They can cause serious problems if a builder's source tree is in a directory
2696 # whose full name contains unusual characters.
2697 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2698 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2699 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2702 am__api_version='1.15'
2704 # Find a good install program. We prefer a C program (faster),
2705 # so one script is as good as another. But avoid the broken or
2706 # incompatible versions:
2707 # SysV /etc/install, /usr/sbin/install
2708 # SunOS /usr/etc/install
2709 # IRIX /sbin/install
2711 # AmigaOS /C/install, which installs bootblocks on floppy discs
2712 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2715 # OS/2's system install, which has a completely different semantic
2716 # ./install, which can be erroneously created by make from ./install.sh.
2717 # Reject install programs that cannot install multiple files.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2719 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2720 if test -z "$INSTALL"; then
2721 if ${ac_cv_path_install+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 # Account for people who put trailing slashes in PATH elements.
2730 case $as_dir/ in #((
2731 ./ | .// | /[cC]/* | \
2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2736 # OSF1 and SCO ODT 3.0 have their own names for install.
2737 # Don't use installbsd from OSF since it installs stuff as root
2739 for ac_prog in ginstall scoinst install; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2742 if test $ac_prog = install &&
2743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2744 # AIX install. It has an incompatible calling convention.
2746 elif test $ac_prog = install &&
2747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # program-specific install script used by HP pwplus--don't use.
2751 rm -rf conftest.one conftest.two conftest.dir
2752 echo one > conftest.one
2753 echo two > conftest.two
2755 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2756 test -s conftest.one && test -s conftest.two &&
2757 test -s conftest.dir/conftest.one &&
2758 test -s conftest.dir/conftest.two
2760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2773 rm -rf conftest.one conftest.two conftest.dir
2776 if test "${ac_cv_path_install+set}" = set; then
2777 INSTALL=$ac_cv_path_install
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for INSTALL within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 INSTALL=$ac_install_sh
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2787 $as_echo "$INSTALL" >&6; }
2789 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2790 # It thinks the first close brace ends the variable substitution.
2791 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2793 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2798 $as_echo_n "checking whether build environment is sane... " >&6; }
2799 # Reject unsafe characters in $srcdir or the absolute working directory
2800 # name. Accept space and tab only in the latter.
2804 *[\\\"\#\$\&\'\`$am_lf]*)
2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2809 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2812 # Do 'set' in a subshell so we don't clobber the current shell's
2813 # arguments. Must try -L first in case configure is actually a
2814 # symlink; some systems play weird games with the mod time of symlinks
2815 # (eg FreeBSD returns the mod time of the symlink's containing
2819 for am_try in 1 2; do
2820 echo "timestamp, slept: $am_has_slept" > conftest.file
2821 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2822 if test "$*" = "X"; then
2824 set X `ls -t "$srcdir/configure" conftest.file`
2826 if test "$*" != "X $srcdir/configure conftest.file" \
2827 && test "$*" != "X conftest.file $srcdir/configure"; then
2829 # If neither matched, then we have a broken ls. This can happen
2830 # if, for instance, CONFIG_SHELL is bash and it inherits a
2831 # broken ls alias from the environment. This has actually
2832 # happened. Such a system could not be considered "sane".
2833 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2834 alias in your environment" "$LINENO" 5
2836 if test "$2" = conftest.file || test $am_try -eq 2; then
2843 test "$2" = conftest.file
2849 as_fn_error $? "newly created file is older than distributed files!
2850 Check your system clock" "$LINENO" 5
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854 # If we didn't sleep, we still need to ensure time stamps of config.status and
2855 # generated files are strictly newer.
2857 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2864 test "$program_prefix" != NONE &&
2865 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2866 # Use a double $ so make ignores it.
2867 test "$program_suffix" != NONE &&
2868 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2869 # Double any \ or $.
2870 # By default was `s,x,x', remove it if useless.
2871 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2872 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2874 # Expand $ac_aux_dir to an absolute path.
2875 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2877 if test x"${MISSING+set}" != xset; then
2880 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2882 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2885 # Use eval to expand $SHELL
2886 if eval "$MISSING --is-lightweight"; then
2887 am_missing_run="$MISSING "
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2891 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2894 if test x"${install_sh+set}" != xset; then
2897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2899 install_sh="\${SHELL} $am_aux_dir/install-sh"
2903 # Installed binaries are usually stripped using 'strip' when the user
2904 # run "make install-strip". However 'strip' might not be the right
2905 # tool to use in cross-compilation environments, therefore Automake
2906 # will honor the 'STRIP' environment variable to overrule this program.
2907 if test "$cross_compiling" != no; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}strip; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_STRIP+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$STRIP"; then
2917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 STRIP=$ac_cv_prog_STRIP
2937 if test -n "$STRIP"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2939 $as_echo "$STRIP" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$ac_cv_prog_STRIP"; then
2949 # Extract the first word of "strip", so it can be a program name with args.
2950 set dummy strip; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$ac_ct_STRIP"; then
2957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_STRIP="strip"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2977 if test -n "$ac_ct_STRIP"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979 $as_echo "$ac_ct_STRIP" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2985 if test "x$ac_ct_STRIP" = x; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2997 STRIP="$ac_cv_prog_STRIP"
3001 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3004 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3005 if test -z "$MKDIR_P"; then
3006 if ${ac_cv_path_mkdir+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3013 test -z "$as_dir" && as_dir=.
3014 for ac_prog in mkdir gmkdir; do
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3017 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3018 'mkdir (GNU coreutils) '* | \
3019 'mkdir (coreutils) '* | \
3020 'mkdir (fileutils) '4.1*)
3021 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3031 test -d ./--version && rmdir ./--version
3032 if test "${ac_cv_path_mkdir+set}" = set; then
3033 MKDIR_P="$ac_cv_path_mkdir -p"
3035 # As a last resort, use the slow shell script. Don't cache a
3036 # value for MKDIR_P within a source directory, because that will
3037 # break other packages using the cache if that directory is
3038 # removed, or if the value is a relative name.
3039 MKDIR_P="$ac_install_sh -d"
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3043 $as_echo "$MKDIR_P" >&6; }
3045 for ac_prog in gawk mawk nawk awk
3047 # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_AWK+:} false; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$AWK"; then
3055 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_AWK="$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$AWK"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077 $as_echo "$AWK" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$AWK" && break
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3088 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3090 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3091 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 cat >conftest.make <<\_ACEOF
3097 @echo '@@@%%%=$(MAKE)=@@@%%%'
3099 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3102 eval ac_cv_prog_make_${ac_make}_set=yes;;
3104 eval ac_cv_prog_make_${ac_make}_set=no;;
3108 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 SET_MAKE="MAKE=${MAKE-make}"
3118 rm -rf .tst 2>/dev/null
3119 mkdir .tst 2>/dev/null
3120 if test -d .tst; then
3125 rmdir .tst 2>/dev/null
3127 # Check whether --enable-silent-rules was given.
3128 if test "${enable_silent_rules+set}" = set; then :
3129 enableval=$enable_silent_rules;
3132 case $enable_silent_rules in # (((
3133 yes) AM_DEFAULT_VERBOSITY=0;;
3134 no) AM_DEFAULT_VERBOSITY=1;;
3135 *) AM_DEFAULT_VERBOSITY=1;;
3137 am_make=${MAKE-make}
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3139 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3140 if ${am_cv_make_support_nested_variables+:} false; then :
3141 $as_echo_n "(cached) " >&6
3143 if $as_echo 'TRUE=$(BAR$(V))
3149 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3150 am_cv_make_support_nested_variables=yes
3152 am_cv_make_support_nested_variables=no
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3156 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3157 if test $am_cv_make_support_nested_variables = yes; then
3159 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3161 AM_V=$AM_DEFAULT_VERBOSITY
3162 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3166 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3168 # is not polluted with repeated "-I."
3169 am__isrc=' -I$(srcdir)'
3170 # test to see if srcdir already configured
3171 if test -f $srcdir/config.status; then
3172 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3176 # test whether we have cygpath
3177 if test -z "$CYGPATH_W"; then
3178 if (cygpath --version) >/dev/null 2>/dev/null; then
3179 CYGPATH_W='cygpath -w'
3186 # Define the identity of the package.
3187 PACKAGE='libasprintf'
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE "$PACKAGE"
3196 cat >>confdefs.h <<_ACEOF
3197 #define VERSION "$VERSION"
3200 # Some tools Automake needs.
3202 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3205 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3208 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3211 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3214 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3216 # For better backward compatibility. To be removed once Automake 1.9.x
3217 # dies out for good. For more background, see:
3218 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3219 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3220 mkdir_p='$(MKDIR_P)'
3222 # We need awk for the "check" target (and possibly the TAP driver). The
3223 # system "awk" is bad on some platforms.
3224 # Always define AMTAR for backward compatibility. Yes, it's still used
3225 # in the wild :-( We should find a proper way to deprecate it ...
3229 # We'll loop over all known methods to create a tar archive until one works.
3230 _am_tools='gnutar pax cpio none'
3232 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3239 # POSIX will say in a future version that running "rm -f" with no argument
3240 # is OK; and we want to be able to make that assumption in our Makefile
3241 # recipes. So use an aggressive probe to check that the usage we want is
3242 # actually supported "in the wild" to an acceptable degree.
3243 # See automake bug#10828.
3244 # To make any issue more visible, cause the running configure to be aborted
3245 # by default if the 'rm' program in use doesn't match our expectations; the
3246 # user can still override this though.
3247 if rm -f && rm -fr && rm -rf; then : OK; else
3251 Your 'rm' program seems unable to run without file operands specified
3252 on the command line, even when the '-f' option is present. This is contrary
3253 to the behaviour of most rm programs out there, and not conforming with
3254 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3256 Please tell bug-automake@gnu.org about your system, including the value
3257 of your $PATH and any error possibly output before this message. This
3258 can help us improve future automake versions.
3261 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3262 echo 'Configuration will proceed anyway, since you have set the' >&2
3263 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3267 Aborting the configuration process, to ensure you take notice of the issue.
3269 You can download and install GNU coreutils to get an 'rm' implementation
3270 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3272 If you want to complete the configuration process using your problematic
3273 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3274 to "yes", and re-run configure.
3277 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3281 ac_config_headers="$ac_config_headers config.h"
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_CC+:} false; then :
3295 $as_echo_n "(cached) " >&6
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3328 if test -z "$ac_cv_prog_CC"; then
3330 # Extract the first word of "gcc", so it can be a program name with args.
3331 set dummy gcc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3337 if test -n "$ac_ct_CC"; then
3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_ac_ct_CC="gcc"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358 if test -n "$ac_ct_CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360 $as_echo "$ac_ct_CC" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3366 if test "x$ac_ct_CC" = x; then
3369 case $cross_compiling:$ac_tool_warned in
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned=yes ;;
3381 if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3384 set dummy ${ac_tool_prefix}cc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3390 if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_CC="${ac_tool_prefix}cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3422 if test -z "$CC"; then
3423 # Extract the first word of "cc", so it can be a program name with args.
3424 set dummy cc; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_CC+:} false; then :
3428 $as_echo_n "(cached) " >&6
3430 if test -n "$CC"; then
3431 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3442 ac_prog_rejected=yes
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 if test $ac_prog_rejected = yes; then
3454 # We found a bogon in the path, so make sure we never use it.
3455 set dummy $ac_cv_prog_CC
3457 if test $# != 0; then
3458 # We chose a different compiler from the bogus one.
3459 # However, it has the same basename, so the bogon will be chosen
3460 # first if we set CC to just the basename; use the full file name.
3462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3468 if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3478 if test -z "$CC"; then
3479 if test -n "$ac_tool_prefix"; then
3480 for ac_prog in cl.exe
3482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3519 test -n "$CC" && break
3522 if test -z "$CC"; then
3524 for ac_prog in cl.exe
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_ac_ct_CC="$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556 $as_echo "$ac_ct_CC" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$ac_ct_CC" && break
3566 if test "x$ac_ct_CC" = x; then
3569 case $cross_compiling:$ac_tool_warned in
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3582 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "no acceptable C compiler found in \$PATH
3585 See \`config.log' for more details" "$LINENO" 5; }
3587 # Provide some information about the compiler.
3588 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3591 for ac_option in --version -v -V -qversion; do
3592 { { ac_try="$ac_compiler $ac_option >&5"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3601 if test -s conftest.err; then
3603 ... rest of stderr output deleted ...
3604 10q' conftest.err >conftest.er1
3605 cat conftest.er1 >&5
3607 rm -f conftest.er1 conftest.err
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 ac_clean_files_save=$ac_clean_files
3624 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3625 # Try to create an executable without -o first, disregard a.out.
3626 # It will help us diagnose broken compilers, and finding out an intuition
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629 $as_echo_n "checking whether the C compiler works... " >&6; }
3630 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3632 # The possible output files:
3633 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3636 for ac_file in $ac_files
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3645 if { { ac_try="$ac_link_default"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_link_default") 2>&5
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }; then :
3656 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3657 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3658 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3659 # so that the user can short-circuit this test for compilers unknown to
3661 for ac_file in $ac_files ''
3663 test -f "$ac_file" || continue
3665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3668 # We found the default executable, but exeext='' is most
3672 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3674 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676 # We set ac_cv_exeext here because the later test for it is not
3677 # safe: cross compilers may not add the suffix if given an `-o'
3678 # argument, so we may need to know it at that point already.
3679 # Even if this section looks crufty: it has the advantage of
3686 test "$ac_cv_exeext" = no && ac_cv_exeext=
3691 if test -z "$ac_file"; then :
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error 77 "C compiler cannot create executables
3700 See \`config.log' for more details" "$LINENO" 5; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3706 $as_echo_n "checking for C compiler default output file name... " >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3708 $as_echo "$ac_file" >&6; }
3709 ac_exeext=$ac_cv_exeext
3711 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3712 ac_clean_files=$ac_clean_files_save
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3714 $as_echo_n "checking for suffix of executables... " >&6; }
3715 if { { ac_try="$ac_link"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link") 2>&5
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then :
3726 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3727 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3728 # work properly (i.e., refer to `conftest.exe'), while it won't with
3730 for ac_file in conftest.exe conftest conftest.*; do
3731 test -f "$ac_file" || continue
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3743 See \`config.log' for more details" "$LINENO" 5; }
3745 rm -f conftest conftest$ac_cv_exeext
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3747 $as_echo "$ac_cv_exeext" >&6; }
3749 rm -f conftest.$ac_ext
3750 EXEEXT=$ac_cv_exeext
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3758 FILE *f = fopen ("conftest.out", "w");
3759 return ferror (f) || fclose (f) != 0;
3765 ac_clean_files="$ac_clean_files conftest.out"
3766 # Check that the compiler produces executables we can run. If not, either
3767 # the compiler is broken, or we cross compile.
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3769 $as_echo_n "checking whether we are cross compiling... " >&6; }
3770 if test "$cross_compiling" != yes; then
3771 { { ac_try="$ac_link"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_link") 2>&5
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }
3782 if { ac_try='./conftest$ac_cv_exeext'
3783 { { case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_try") 2>&5
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }; }; then
3795 if test "$cross_compiling" = maybe; then
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error $? "cannot run C compiled programs.
3801 If you meant to cross compile, use \`--host'.
3802 See \`config.log' for more details" "$LINENO" 5; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3807 $as_echo "$cross_compiling" >&6; }
3809 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3810 ac_clean_files=$ac_clean_files_save
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3812 $as_echo_n "checking for suffix of object files... " >&6; }
3813 if ${ac_cv_objext+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 rm -f conftest.o conftest.obj
3828 if { { ac_try="$ac_compile"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_compile") 2>&5
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 for ac_file in conftest.o conftest.obj conftest.*; do
3840 test -f "$ac_file" || continue;
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3848 $as_echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "cannot compute suffix of object files: cannot compile
3854 See \`config.log' for more details" "$LINENO" 5; }
3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3859 $as_echo "$ac_cv_objext" >&6; }
3860 OBJEXT=$ac_cv_objext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3863 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3864 if ${ac_cv_c_compiler_gnu+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3881 if ac_fn_c_try_compile "$LINENO"; then :
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3891 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3892 if test $ac_compiler_gnu = yes; then
3897 ac_test_CFLAGS=${CFLAGS+set}
3898 ac_save_CFLAGS=$CFLAGS
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3901 if ${ac_cv_prog_cc_g+:} false; then :
3902 $as_echo_n "(cached) " >&6
3904 ac_save_c_werror_flag=$ac_c_werror_flag
3905 ac_c_werror_flag=yes
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3919 if ac_fn_c_try_compile "$LINENO"; then :
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3934 if ac_fn_c_try_compile "$LINENO"; then :
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3950 if ac_fn_c_try_compile "$LINENO"; then :
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3961 $as_echo "$ac_cv_prog_cc_g" >&6; }
3962 if test "$ac_test_CFLAGS" = set; then
3963 CFLAGS=$ac_save_CFLAGS
3964 elif test $ac_cv_prog_cc_g = yes; then
3965 if test "$GCC" = yes; then
3971 if test "$GCC" = yes; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3978 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3979 if ${ac_cv_prog_cc_c89+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_cv_prog_cc_c89=no
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3989 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3990 struct buf { int x; };
3991 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3992 static char *e (p, i)
3998 static char *f (char * (*g) (char **, int), char **p, ...)
4003 s = g (p, va_arg (v,int));
4008 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4009 function prototypes and stuff, but not '\xHH' hex character constants.
4010 These don't provoke an error unfortunately, instead are silently treated
4011 as 'x'. The following induces an error, until -std is added to get
4012 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4013 array size at least. It's necessary to write '\x00'==0 to get something
4014 that's true only with -std. */
4015 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4017 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4018 inside strings and character constants. */
4020 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4022 int test (int i, double x);
4023 struct s1 {int (*f) (int a);};
4024 struct s2 {int (*f) (double a);};
4025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4036 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4037 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4039 CC="$ac_save_CC $ac_arg"
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_cv_prog_cc_c89=$ac_arg
4043 rm -f core conftest.err conftest.$ac_objext
4044 test "x$ac_cv_prog_cc_c89" != "xno" && break
4046 rm -f conftest.$ac_ext
4051 case "x$ac_cv_prog_cc_c89" in
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4054 $as_echo "none needed" >&6; } ;;
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4057 $as_echo "unsupported" >&6; } ;;
4059 CC="$CC $ac_cv_prog_cc_c89"
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4061 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4063 if test "x$ac_cv_prog_cc_c89" != xno; then :
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4079 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4080 if ${am_cv_prog_cc_c_o+:} false; then :
4081 $as_echo_n "(cached) " >&6
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 # Make sure it works both with $CC and with simple cc.
4095 # Following AC_PROG_CC_C_O, we do the test twice because some
4096 # compilers refuse to overwrite an existing .o file with -o,
4097 # though they will create one.
4098 am_cv_prog_cc_c_o=yes
4100 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4101 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } \
4105 && test -f conftest2.$ac_objext; then
4108 am_cv_prog_cc_c_o=no
4112 rm -f core conftest*
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4116 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4117 if test "$am_cv_prog_cc_c_o" != yes; then
4118 # Losing compiler, so override with the script.
4119 # FIXME: It is wrong to rewrite CC.
4120 # But if we don't then we get into trouble of one sort or another.
4121 # A longer-term fix would be to have automake use am__CC in this case,
4122 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4123 CC="$am_aux_dir/compile $CC"
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 DEPDIR="${am__leading_dot}deps"
4133 ac_config_commands="$ac_config_commands depfiles"
4136 am_make=${MAKE-make}
4137 cat > confinc << 'END'
4139 @echo this is the am__doit target
4142 # If we don't find an include directive, just comment out the code.
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4144 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4148 # First try GNU make style include.
4149 echo "include confinc" > confmf
4150 # Ignore all kinds of additional output from 'make'.
4151 case `$am_make -s -f confmf 2> /dev/null` in #(
4152 *the\ am__doit\ target*)
4158 # Now try BSD make style include.
4159 if test "$am__include" = "#"; then
4160 echo '.include "confinc"' > confmf
4161 case `$am_make -s -f confmf 2> /dev/null` in #(
4162 *the\ am__doit\ target*)
4163 am__include=.include
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4172 $as_echo "$_am_result" >&6; }
4173 rm -f confinc confmf
4175 # Check whether --enable-dependency-tracking was given.
4176 if test "${enable_dependency_tracking+set}" = set; then :
4177 enableval=$enable_dependency_tracking;
4180 if test "x$enable_dependency_tracking" != xno; then
4181 am_depcomp="$ac_aux_dir/depcomp"
4185 if test "x$enable_dependency_tracking" != xno; then
4195 depcc="$CC" am_compiler_list=
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
4199 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4200 $as_echo_n "(cached) " >&6
4202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203 # We make a subdir and do the tests there. Otherwise we can end up
4204 # making bogus files that we don't know about and never remove. For
4205 # instance it was reported that on HP-UX the gcc test will end up
4206 # making a dummy file named 'D' -- because '-MD' means "put the output
4210 # Copy depcomp to subdir because otherwise we won't find it if we're
4211 # using a relative directory.
4212 cp "$am_depcomp" conftest.dir
4214 # We will build objects and dependencies in a subdirectory because
4215 # it helps to detect inapplicable dependency modes. For instance
4216 # both Tru64's cc and ICC support -MD to output dependencies as a
4217 # side effect of compilation, but ICC will put the dependencies in
4218 # the current directory while Tru64 will put them in the object
4222 am_cv_CC_dependencies_compiler_type=none
4223 if test "$am_compiler_list" = ""; then
4224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4227 case " $depcc " in #(
4228 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4231 for depmode in $am_compiler_list; do
4232 # Setup a source with many dependencies, because some compilers
4233 # like to wrap large dependency lists on column 80 (with \), and
4234 # we should not choose a depcomp mode which is confused by this.
4236 # We need to recreate these files for each test, as the compiler may
4237 # overwrite some of them when testing with obscure command lines.
4238 # This happens at least with the AIX C compiler.
4240 for i in 1 2 3 4 5 6; do
4241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4242 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4243 # Solaris 10 /bin/sh.
4244 echo '/* dummy */' > sub/conftst$i.h
4246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4248 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4249 # mode. It turns out that the SunPro C++ compiler does not properly
4250 # handle '-M -o', and we need to detect this. Also, some Intel
4251 # versions had trouble with output in subdirs.
4252 am__obj=sub/conftest.${OBJEXT-o}
4253 am__minus_obj="-o $am__obj"
4256 # This depmode causes a compiler race in universal mode.
4257 test "$am__universal" = false || continue
4260 # After this tag, mechanisms are not by side-effect, so they'll
4261 # only be used when explicitly requested.
4262 if test "x$enable_dependency_tracking" = xyes; then
4268 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4269 # This compiler won't grok '-c -o', but also, the minuso test has
4270 # not run yet. These depmodes are late enough in the game, and
4271 # so weak that their functioning should not be impacted.
4272 am__obj=conftest.${OBJEXT-o}
4277 if depmode=$depmode \
4278 source=sub/conftest.c object=$am__obj \
4279 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4280 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4281 >/dev/null 2>conftest.err &&
4282 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4283 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4284 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4285 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4286 # icc doesn't choke on unknown options, it will just issue warnings
4287 # or remarks (even with -Werror). So we grep stderr for any message
4288 # that says an option was ignored or not supported.
4289 # When given -MP, icc 7.0 and 7.1 complain thusly:
4290 # icc: Command line warning: ignoring option '-M'; no argument required
4291 # The diagnosis changed in icc 8.0:
4292 # icc: Command line remark: option '-MP' not supported
4293 if (grep 'ignoring option' conftest.err ||
4294 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4295 am_cv_CC_dependencies_compiler_type=$depmode
4304 am_cv_CC_dependencies_compiler_type=none
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4309 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4310 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4313 test "x$enable_dependency_tracking" != xno \
4314 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4316 am__fastdepCC_FALSE='#'
4318 am__fastdepCC_TRUE='#'
4319 am__fastdepCC_FALSE=
4324 ac_cpp='$CXXCPP $CPPFLAGS'
4325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4328 if test -z "$CXX"; then
4329 if test -n "$CCC"; then
4332 if test -n "$ac_tool_prefix"; then
4333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CXX+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 if test -n "$CXX"; then
4343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 if test -n "$CXX"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4365 $as_echo "$CXX" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4372 test -n "$CXX" && break
4375 if test -z "$CXX"; then
4377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4384 $as_echo_n "(cached) " >&6
4386 if test -n "$ac_ct_CXX"; then
4387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_ac_ct_CXX="$ac_prog"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4407 if test -n "$ac_ct_CXX"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4409 $as_echo "$ac_ct_CXX" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4416 test -n "$ac_ct_CXX" && break
4419 if test "x$ac_ct_CXX" = x; then
4422 case $cross_compiling:$ac_tool_warned in
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426 ac_tool_warned=yes ;;
4434 # Provide some information about the compiler.
4435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4438 for ac_option in --version -v -V -qversion; do
4439 { { ac_try="$ac_compiler $ac_option >&5"
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4448 if test -s conftest.err; then
4450 ... rest of stderr output deleted ...
4451 10q' conftest.err >conftest.er1
4452 cat conftest.er1 >&5
4454 rm -f conftest.er1 conftest.err
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4460 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4461 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4462 $as_echo_n "(cached) " >&6
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4478 if ac_fn_cxx_try_compile "$LINENO"; then :
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4488 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4489 if test $ac_compiler_gnu = yes; then
4494 ac_test_CXXFLAGS=${CXXFLAGS+set}
4495 ac_save_CXXFLAGS=$CXXFLAGS
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4497 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4498 if ${ac_cv_prog_cxx_g+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4502 ac_cxx_werror_flag=yes
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cv_prog_cxx_g=yes
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4547 if ac_fn_cxx_try_compile "$LINENO"; then :
4548 ac_cv_prog_cxx_g=yes
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4558 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4559 if test "$ac_test_CXXFLAGS" = set; then
4560 CXXFLAGS=$ac_save_CXXFLAGS
4561 elif test $ac_cv_prog_cxx_g = yes; then
4562 if test "$GXX" = yes; then
4568 if test "$GXX" = yes; then
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580 depcc="$CXX" am_compiler_list=
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4583 $as_echo_n "checking dependency style of $depcc... " >&6; }
4584 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4588 # We make a subdir and do the tests there. Otherwise we can end up
4589 # making bogus files that we don't know about and never remove. For
4590 # instance it was reported that on HP-UX the gcc test will end up
4591 # making a dummy file named 'D' -- because '-MD' means "put the output
4595 # Copy depcomp to subdir because otherwise we won't find it if we're
4596 # using a relative directory.
4597 cp "$am_depcomp" conftest.dir
4599 # We will build objects and dependencies in a subdirectory because
4600 # it helps to detect inapplicable dependency modes. For instance
4601 # both Tru64's cc and ICC support -MD to output dependencies as a
4602 # side effect of compilation, but ICC will put the dependencies in
4603 # the current directory while Tru64 will put them in the object
4607 am_cv_CXX_dependencies_compiler_type=none
4608 if test "$am_compiler_list" = ""; then
4609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4612 case " $depcc " in #(
4613 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4616 for depmode in $am_compiler_list; do
4617 # Setup a source with many dependencies, because some compilers
4618 # like to wrap large dependency lists on column 80 (with \), and
4619 # we should not choose a depcomp mode which is confused by this.
4621 # We need to recreate these files for each test, as the compiler may
4622 # overwrite some of them when testing with obscure command lines.
4623 # This happens at least with the AIX C compiler.
4625 for i in 1 2 3 4 5 6; do
4626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4627 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4628 # Solaris 10 /bin/sh.
4629 echo '/* dummy */' > sub/conftst$i.h
4631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4633 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4634 # mode. It turns out that the SunPro C++ compiler does not properly
4635 # handle '-M -o', and we need to detect this. Also, some Intel
4636 # versions had trouble with output in subdirs.
4637 am__obj=sub/conftest.${OBJEXT-o}
4638 am__minus_obj="-o $am__obj"
4641 # This depmode causes a compiler race in universal mode.
4642 test "$am__universal" = false || continue
4645 # After this tag, mechanisms are not by side-effect, so they'll
4646 # only be used when explicitly requested.
4647 if test "x$enable_dependency_tracking" = xyes; then
4653 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4654 # This compiler won't grok '-c -o', but also, the minuso test has
4655 # not run yet. These depmodes are late enough in the game, and
4656 # so weak that their functioning should not be impacted.
4657 am__obj=conftest.${OBJEXT-o}
4662 if depmode=$depmode \
4663 source=sub/conftest.c object=$am__obj \
4664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4666 >/dev/null 2>conftest.err &&
4667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4671 # icc doesn't choke on unknown options, it will just issue warnings
4672 # or remarks (even with -Werror). So we grep stderr for any message
4673 # that says an option was ignored or not supported.
4674 # When given -MP, icc 7.0 and 7.1 complain thusly:
4675 # icc: Command line warning: ignoring option '-M'; no argument required
4676 # The diagnosis changed in icc 8.0:
4677 # icc: Command line remark: option '-MP' not supported
4678 if (grep 'ignoring option' conftest.err ||
4679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4680 am_cv_CXX_dependencies_compiler_type=$depmode
4689 am_cv_CXX_dependencies_compiler_type=none
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4694 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4695 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4698 test "x$enable_dependency_tracking" != xno \
4699 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4700 am__fastdepCXX_TRUE=
4701 am__fastdepCXX_FALSE='#'
4703 am__fastdepCXX_TRUE='#'
4704 am__fastdepCXX_FALSE=
4710 # Make sure we can run config.sub.
4711 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4712 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4715 $as_echo_n "checking build system type... " >&6; }
4716 if ${ac_cv_build+:} false; then :
4717 $as_echo_n "(cached) " >&6
4719 ac_build_alias=$build_alias
4720 test "x$ac_build_alias" = x &&
4721 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4722 test "x$ac_build_alias" = x &&
4723 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4724 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4725 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4729 $as_echo "$ac_cv_build" >&6; }
4730 case $ac_cv_build in
4732 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4735 ac_save_IFS=$IFS; IFS='-'
4741 # Remember, the first character of IFS is used to create $*,
4742 # except with old shells:
4745 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4749 $as_echo_n "checking host system type... " >&6; }
4750 if ${ac_cv_host+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 if test "x$host_alias" = x; then
4754 ac_cv_host=$ac_cv_build
4756 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4762 $as_echo "$ac_cv_host" >&6; }
4765 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4768 ac_save_IFS=$IFS; IFS='-'
4774 # Remember, the first character of IFS is used to create $*,
4775 # except with old shells:
4778 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4793 # On Suns, sometimes $CPP names a directory.
4794 if test -n "$CPP" && test -d "$CPP"; then
4797 if test -z "$CPP"; then
4798 if ${ac_cv_prog_CPP+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 # Double quotes because CPP needs to be expanded
4802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4805 for ac_c_preproc_warn_flag in '' yes
4807 # Use a header file that comes with gcc, so configuring glibc
4808 # with a fresh cross-compiler works.
4809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810 # <limits.h> exists even on freestanding compilers.
4811 # On the NeXT, cc -E runs the code through the compiler's parser,
4812 # not just through cpp. "Syntax error" is here to catch this case.
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4816 # include <limits.h>
4818 # include <assert.h>
4822 if ac_fn_c_try_cpp "$LINENO"; then :
4825 # Broken: fails on valid input.
4828 rm -f conftest.err conftest.i conftest.$ac_ext
4830 # OK, works on sane cases. Now check whether nonexistent headers
4831 # can be detected and how.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <ac_nonexistent.h>
4836 if ac_fn_c_try_cpp "$LINENO"; then :
4837 # Broken: success on invalid input.
4840 # Passes both tests.
4844 rm -f conftest.err conftest.i conftest.$ac_ext
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.i conftest.err conftest.$ac_ext
4849 if $ac_preproc_ok; then :
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4862 $as_echo "$CPP" >&6; }
4864 for ac_c_preproc_warn_flag in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # include <limits.h>
4877 # include <assert.h>
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4884 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.i conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: success on invalid input.
4899 # Passes both tests.
4903 rm -f conftest.err conftest.i conftest.$ac_ext
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.i conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details" "$LINENO" 5; }
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4925 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4926 if ${ac_cv_path_GREP+:} false; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -z "$GREP"; then
4930 ac_path_GREP_found=false
4931 # Loop through the user's path and test for each of PROGNAME-LIST
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 test -z "$as_dir" && as_dir=.
4937 for ac_prog in grep ggrep; do
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4940 as_fn_executable_p "$ac_path_GREP" || continue
4941 # Check for GNU ac_path_GREP and select it if it is found.
4942 # Check for GNU $ac_path_GREP
4943 case `"$ac_path_GREP" --version 2>&1` in
4945 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4948 $as_echo_n 0123456789 >"conftest.in"
4951 cat "conftest.in" "conftest.in" >"conftest.tmp"
4952 mv "conftest.tmp" "conftest.in"
4953 cp "conftest.in" "conftest.nl"
4954 $as_echo 'GREP' >> "conftest.nl"
4955 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957 as_fn_arith $ac_count + 1 && ac_count=$as_val
4958 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4959 # Best one so far, save it but keep looking for a better one
4960 ac_cv_path_GREP="$ac_path_GREP"
4961 ac_path_GREP_max=$ac_count
4963 # 10*(2^10) chars as input seems more than enough
4964 test $ac_count -gt 10 && break
4966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969 $ac_path_GREP_found && break 3
4974 if test -z "$ac_cv_path_GREP"; then
4975 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978 ac_cv_path_GREP=$GREP
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4983 $as_echo "$ac_cv_path_GREP" >&6; }
4984 GREP="$ac_cv_path_GREP"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4988 $as_echo_n "checking for egrep... " >&6; }
4989 if ${ac_cv_path_EGREP+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993 then ac_cv_path_EGREP="$GREP -E"
4995 if test -z "$EGREP"; then
4996 ac_path_EGREP_found=false
4997 # Loop through the user's path and test for each of PROGNAME-LIST
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5002 test -z "$as_dir" && as_dir=.
5003 for ac_prog in egrep; do
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5006 as_fn_executable_p "$ac_path_EGREP" || continue
5007 # Check for GNU ac_path_EGREP and select it if it is found.
5008 # Check for GNU $ac_path_EGREP
5009 case `"$ac_path_EGREP" --version 2>&1` in
5011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5014 $as_echo_n 0123456789 >"conftest.in"
5017 cat "conftest.in" "conftest.in" >"conftest.tmp"
5018 mv "conftest.tmp" "conftest.in"
5019 cp "conftest.in" "conftest.nl"
5020 $as_echo 'EGREP' >> "conftest.nl"
5021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023 as_fn_arith $ac_count + 1 && ac_count=$as_val
5024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5025 # Best one so far, save it but keep looking for a better one
5026 ac_cv_path_EGREP="$ac_path_EGREP"
5027 ac_path_EGREP_max=$ac_count
5029 # 10*(2^10) chars as input seems more than enough
5030 test $ac_count -gt 10 && break
5032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5035 $ac_path_EGREP_found && break 3
5040 if test -z "$ac_cv_path_EGREP"; then
5041 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5044 ac_cv_path_EGREP=$EGREP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5050 $as_echo "$ac_cv_path_EGREP" >&6; }
5051 EGREP="$ac_cv_path_EGREP"
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5058 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5059 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5060 $as_echo_n "(cached) " >&6
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5072 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5073 gl_cv_c_amsterdam_compiler=yes
5075 gl_cv_c_amsterdam_compiler=no
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5082 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5084 if test $gl_cv_c_amsterdam_compiler = yes; then
5085 if test -z "$AR"; then
5088 if test -z "$ARFLAGS"; then
5092 if test -n "$ac_tool_prefix"; then
5093 for ac_prog in ar lib "link -lib"
5095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_AR+:} false; then :
5100 $as_echo_n "(cached) " >&6
5102 if test -n "$AR"; then
5103 ac_cv_prog_AR="$AR" # Let the user override the test.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 if test -n "$AR"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5125 $as_echo "$AR" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 test -n "$AR" && break
5135 if test -z "$AR"; then
5137 for ac_prog in ar lib "link -lib"
5139 # Extract the first word of "$ac_prog", so it can be a program name with args.
5140 set dummy $ac_prog; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$ac_ct_AR"; then
5147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_ac_ct_AR="$ac_prog"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5167 if test -n "$ac_ct_AR"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5169 $as_echo "$ac_ct_AR" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5176 test -n "$ac_ct_AR" && break
5179 if test "x$ac_ct_AR" = x; then
5182 case $cross_compiling:$ac_tool_warned in
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5186 ac_tool_warned=yes ;;
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5195 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5196 if ${am_cv_ar_interface+:} false; then :
5197 $as_echo_n "(cached) " >&6
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 am_cv_ar_interface=ar
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 int some_variable = 0;
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5213 (eval $am_ar_try) 2>&5
5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; }
5217 if test "$ac_status" -eq 0; then
5218 am_cv_ar_interface=ar
5220 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5222 (eval $am_ar_try) 2>&5
5224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; }
5226 if test "$ac_status" -eq 0; then
5227 am_cv_ar_interface=lib
5229 am_cv_ar_interface=unknown
5232 rm -f conftest.lib libconftest.a
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5244 $as_echo "$am_cv_ar_interface" >&6; }
5246 case $am_cv_ar_interface in
5250 # Microsoft lib, so override with the ar-lib wrapper script.
5251 # FIXME: It is wrong to rewrite AR.
5252 # But if we don't then we get into trouble of one sort or another.
5253 # A longer-term fix would be to have automake use am__AR in this case,
5254 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5256 AR="$am_aux_dir/ar-lib $AR"
5259 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5265 if test -n "$ac_tool_prefix"; then
5266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5267 set dummy ${ac_tool_prefix}ar; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_AR+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$AR"; then
5274 ac_cv_prog_AR="$AR" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_AR="${ac_tool_prefix}ar"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test -n "$AR"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5296 $as_echo "$AR" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5304 if test -z "$ac_cv_prog_AR"; then
5306 # Extract the first word of "ar", so it can be a program name with args.
5307 set dummy ar; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5311 $as_echo_n "(cached) " >&6
5313 if test -n "$ac_ct_AR"; then
5314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_ac_ct_AR="ar"
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5334 if test -n "$ac_ct_AR"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5336 $as_echo "$ac_ct_AR" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5342 if test "x$ac_ct_AR" = x; then
5345 case $cross_compiling:$ac_tool_warned in
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5349 ac_tool_warned=yes ;;
5357 if test -z "$ARFLAGS"; then
5363 if test -z "$RANLIB"; then
5364 if test $gl_cv_c_amsterdam_compiler = yes; then
5367 if test -n "$ac_tool_prefix"; then
5368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_RANLIB+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 if test -n "$RANLIB"; then
5376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 RANLIB=$ac_cv_prog_RANLIB
5396 if test -n "$RANLIB"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5398 $as_echo "$RANLIB" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5406 if test -z "$ac_cv_prog_RANLIB"; then
5407 ac_ct_RANLIB=$RANLIB
5408 # Extract the first word of "ranlib", so it can be a program name with args.
5409 set dummy ranlib; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5413 $as_echo_n "(cached) " >&6
5415 if test -n "$ac_ct_RANLIB"; then
5416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_ac_ct_RANLIB="ranlib"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5436 if test -n "$ac_ct_RANLIB"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5438 $as_echo "$ac_ct_RANLIB" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5444 if test "x$ac_ct_RANLIB" = x; then
5447 case $cross_compiling:$ac_tool_warned in
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451 ac_tool_warned=yes ;;
5453 RANLIB=$ac_ct_RANLIB
5456 RANLIB="$ac_cv_prog_RANLIB"
5465 # Pre-early section.
5468 # Code from module absolute-header:
5469 # Code from module alloca:
5470 # Code from module alloca-opt:
5471 # Code from module errno:
5472 # Code from module extern-inline:
5473 # Code from module include_next:
5474 # Code from module size_max:
5475 # Code from module verify:
5476 # Code from module xsize:
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
5484 $as_echo_n "checking for auto-import of symbols... " >&6; }
5485 if ${gl_cv_ld_autoimport+:} false; then :
5486 $as_echo_n "(cached) " >&6
5489 gl_save_LDFLAGS="$LDFLAGS"
5490 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5502 if ac_fn_c_try_link "$LINENO"; then :
5503 gl_cv_ld_autoimport=yes
5505 gl_cv_ld_autoimport=no
5507 rm -f core conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext conftest.$ac_ext
5509 LDFLAGS="$gl_save_LDFLAGS"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
5513 $as_echo "$gl_cv_ld_autoimport" >&6; }
5514 if test $gl_cv_ld_autoimport = yes; then
5515 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5523 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5528 macro_version='2.4.6'
5529 macro_revision='2.4.6'
5543 ltmain=$ac_aux_dir/ltmain.sh
5545 # Backslashify metacharacters that are still active within
5546 # double-quoted strings.
5547 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5549 # Same as above, but do not quote variable references.
5550 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5552 # Sed substitution to delay expansion of an escaped shell variable in a
5553 # double_quote_subst'ed string.
5554 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5556 # Sed substitution to delay expansion of an escaped single quote.
5557 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5559 # Sed substitution to avoid accidental globbing in evaled expressions
5560 no_glob_subst='s/\*/\\\*/g'
5562 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5563 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5564 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5567 $as_echo_n "checking how to print strings... " >&6; }
5568 # Test print first, because it will be a builtin if present.
5569 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5570 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5572 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5575 # Use this function as a fallback that always works.
5576 func_fallback_echo ()
5578 eval 'cat <<_LTECHO_EOF
5582 ECHO='func_fallback_echo'
5585 # func_echo_all arg...
5586 # Invoke $ECHO with all args, space-separated.
5593 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5594 $as_echo "printf" >&6; } ;;
5595 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5596 $as_echo "print -r" >&6; } ;;
5597 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5598 $as_echo "cat" >&6; } ;;
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5615 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5616 if ${ac_cv_path_SED+:} false; then :
5617 $as_echo_n "(cached) " >&6
5619 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5620 for ac_i in 1 2 3 4 5 6 7; do
5621 ac_script="$ac_script$as_nl$ac_script"
5623 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5624 { ac_script=; unset ac_script;}
5625 if test -z "$SED"; then
5626 ac_path_SED_found=false
5627 # Loop through the user's path and test for each of PROGNAME-LIST
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_prog in sed gsed; do
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5636 as_fn_executable_p "$ac_path_SED" || continue
5637 # Check for GNU ac_path_SED and select it if it is found.
5638 # Check for GNU $ac_path_SED
5639 case `"$ac_path_SED" --version 2>&1` in
5641 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5644 $as_echo_n 0123456789 >"conftest.in"
5647 cat "conftest.in" "conftest.in" >"conftest.tmp"
5648 mv "conftest.tmp" "conftest.in"
5649 cp "conftest.in" "conftest.nl"
5650 $as_echo '' >> "conftest.nl"
5651 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5653 as_fn_arith $ac_count + 1 && ac_count=$as_val
5654 if test $ac_count -gt ${ac_path_SED_max-0}; then
5655 # Best one so far, save it but keep looking for a better one
5656 ac_cv_path_SED="$ac_path_SED"
5657 ac_path_SED_max=$ac_count
5659 # 10*(2^10) chars as input seems more than enough
5660 test $ac_count -gt 10 && break
5662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 $ac_path_SED_found && break 3
5670 if test -z "$ac_cv_path_SED"; then
5671 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5679 $as_echo "$ac_cv_path_SED" >&6; }
5680 SED="$ac_cv_path_SED"
5683 test -z "$SED" && SED=sed
5684 Xsed="$SED -e 1s/^X//"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5697 $as_echo_n "checking for fgrep... " >&6; }
5698 if ${ac_cv_path_FGREP+:} false; then :
5699 $as_echo_n "(cached) " >&6
5701 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5702 then ac_cv_path_FGREP="$GREP -F"
5704 if test -z "$FGREP"; then
5705 ac_path_FGREP_found=false
5706 # Loop through the user's path and test for each of PROGNAME-LIST
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 test -z "$as_dir" && as_dir=.
5712 for ac_prog in fgrep; do
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5715 as_fn_executable_p "$ac_path_FGREP" || continue
5716 # Check for GNU ac_path_FGREP and select it if it is found.
5717 # Check for GNU $ac_path_FGREP
5718 case `"$ac_path_FGREP" --version 2>&1` in
5720 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5723 $as_echo_n 0123456789 >"conftest.in"
5726 cat "conftest.in" "conftest.in" >"conftest.tmp"
5727 mv "conftest.tmp" "conftest.in"
5728 cp "conftest.in" "conftest.nl"
5729 $as_echo 'FGREP' >> "conftest.nl"
5730 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5732 as_fn_arith $ac_count + 1 && ac_count=$as_val
5733 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5734 # Best one so far, save it but keep looking for a better one
5735 ac_cv_path_FGREP="$ac_path_FGREP"
5736 ac_path_FGREP_max=$ac_count
5738 # 10*(2^10) chars as input seems more than enough
5739 test $ac_count -gt 10 && break
5741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744 $ac_path_FGREP_found && break 3
5749 if test -z "$ac_cv_path_FGREP"; then
5750 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753 ac_cv_path_FGREP=$FGREP
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5759 $as_echo "$ac_cv_path_FGREP" >&6; }
5760 FGREP="$ac_cv_path_FGREP"
5763 test -z "$GREP" && GREP=grep
5783 # Check whether --with-gnu-ld was given.
5784 if test "${with_gnu_ld+set}" = set; then :
5785 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5791 if test yes = "$GCC"; then
5792 # Check if gcc -print-prog-name=ld gives a path.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5794 $as_echo_n "checking for ld used by $CC... " >&6; }
5797 # gcc leaves a trailing carriage return, which upsets mingw
5798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5803 # Accept absolute paths.
5805 re_direlt='/[^/][^/]*/\.\./'
5806 # Canonicalize the pathname of ld
5807 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5808 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5809 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5811 test -z "$LD" && LD=$ac_prog
5814 # If it fails, then pretend we aren't using GCC.
5818 # If it is relative, then search for the first ld in PATH.
5822 elif test yes = "$with_gnu_ld"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5824 $as_echo_n "checking for GNU ld... " >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5827 $as_echo_n "checking for non-GNU ld... " >&6; }
5829 if ${lt_cv_path_LD+:} false; then :
5830 $as_echo_n "(cached) " >&6
5832 if test -z "$LD"; then
5833 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH; do
5836 test -z "$ac_dir" && ac_dir=.
5837 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5838 lt_cv_path_LD=$ac_dir/$ac_prog
5839 # Check to see if the program is GNU ld. I'd rather use --version,
5840 # but apparently some variants of GNU ld only accept -v.
5841 # Break only if it was the GNU/non-GNU ld that we prefer.
5842 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5843 *GNU* | *'with BFD'*)
5844 test no != "$with_gnu_ld" && break
5847 test yes != "$with_gnu_ld" && break
5854 lt_cv_path_LD=$LD # Let the user override the test with a path.
5859 if test -n "$LD"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5861 $as_echo "$LD" >&6; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5866 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5868 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5869 if ${lt_cv_prog_gnu_ld+:} false; then :
5870 $as_echo_n "(cached) " >&6
5872 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5873 case `$LD -v 2>&1 </dev/null` in
5874 *GNU* | *'with BFD'*)
5875 lt_cv_prog_gnu_ld=yes
5878 lt_cv_prog_gnu_ld=no
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5883 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5884 with_gnu_ld=$lt_cv_prog_gnu_ld
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5895 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5896 if ${lt_cv_path_NM+:} false; then :
5897 $as_echo_n "(cached) " >&6
5899 if test -n "$NM"; then
5900 # Let the user override the test.
5903 lt_nm_to_check=${ac_tool_prefix}nm
5904 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5905 lt_nm_to_check="$lt_nm_to_check nm"
5907 for lt_tmp_nm in $lt_nm_to_check; do
5908 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5909 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5911 test -z "$ac_dir" && ac_dir=.
5912 tmp_nm=$ac_dir/$lt_tmp_nm
5913 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5914 # Check to see if the nm accepts a BSD-compat flag.
5915 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5916 # nm: unknown option "B" ignored
5917 # Tru64's nm complains that /dev/null is an invalid object file
5918 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5920 mingw*) lt_bad_file=conftest.nm/nofile ;;
5921 *) lt_bad_file=/dev/null ;;
5923 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5924 *$lt_bad_file* | *'Invalid file or object type'*)
5925 lt_cv_path_NM="$tmp_nm -B"
5929 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5931 lt_cv_path_NM="$tmp_nm -p"
5935 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5936 continue # so that we can try to find one that supports BSD flags
5945 : ${lt_cv_path_NM=no}
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5949 $as_echo "$lt_cv_path_NM" >&6; }
5950 if test no != "$lt_cv_path_NM"; then
5953 # Didn't find any BSD compatible name lister, look for dumpbin.
5954 if test -n "$DUMPBIN"; then :
5955 # Let the user override the test.
5957 if test -n "$ac_tool_prefix"; then
5958 for ac_prog in dumpbin "link -dump"
5960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_DUMPBIN+:} false; then :
5965 $as_echo_n "(cached) " >&6
5967 if test -n "$DUMPBIN"; then
5968 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 DUMPBIN=$ac_cv_prog_DUMPBIN
5988 if test -n "$DUMPBIN"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5990 $as_echo "$DUMPBIN" >&6; }
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5997 test -n "$DUMPBIN" && break
6000 if test -z "$DUMPBIN"; then
6001 ac_ct_DUMPBIN=$DUMPBIN
6002 for ac_prog in dumpbin "link -dump"
6004 # Extract the first word of "$ac_prog", so it can be a program name with args.
6005 set dummy $ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6009 $as_echo_n "(cached) " >&6
6011 if test -n "$ac_ct_DUMPBIN"; then
6012 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6032 if test -n "$ac_ct_DUMPBIN"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6034 $as_echo "$ac_ct_DUMPBIN" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6041 test -n "$ac_ct_DUMPBIN" && break
6044 if test "x$ac_ct_DUMPBIN" = x; then
6047 case $cross_compiling:$ac_tool_warned in
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6053 DUMPBIN=$ac_ct_DUMPBIN
6057 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6059 DUMPBIN="$DUMPBIN -symbols -headers"
6067 if test : != "$DUMPBIN"; then
6071 test -z "$NM" && NM=nm
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6079 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6080 if ${lt_cv_nm_interface+:} false; then :
6081 $as_echo_n "(cached) " >&6
6083 lt_cv_nm_interface="BSD nm"
6084 echo "int some_variable = 0;" > conftest.$ac_ext
6085 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6086 (eval "$ac_compile" 2>conftest.err)
6087 cat conftest.err >&5
6088 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6089 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6090 cat conftest.err >&5
6091 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6092 cat conftest.out >&5
6093 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6094 lt_cv_nm_interface="MS dumpbin"
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6099 $as_echo "$lt_cv_nm_interface" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6102 $as_echo_n "checking whether ln -s works... " >&6; }
6104 if test "$LN_S" = "ln -s"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6106 $as_echo "yes" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6109 $as_echo "no, using $LN_S" >&6; }
6112 # find the maximum length of command line arguments
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6114 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6115 if ${lt_cv_sys_max_cmd_len+:} false; then :
6116 $as_echo_n "(cached) " >&6
6123 # On DJGPP, this test can blow up pretty badly due to problems in libc
6124 # (any single argument exceeding 2000 bytes causes a buffer overrun
6125 # during glob expansion). Even if it were fixed, the result of this
6126 # check would be larger than it should be.
6127 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6131 # Under GNU Hurd, this test is not required because there is
6132 # no limit to the length of command line arguments.
6133 # Libtool will interpret -1 as no limit whatsoever
6134 lt_cv_sys_max_cmd_len=-1;
6137 cygwin* | mingw* | cegcc*)
6138 # On Win9x/ME, this test blows up -- it succeeds, but takes
6139 # about 5 minutes as the teststring grows exponentially.
6140 # Worse, since 9x/ME are not pre-emptively multitasking,
6141 # you end up with a "frozen" computer, even though with patience
6142 # the test eventually succeeds (with a max line length of 256k).
6143 # Instead, let's just punt: use the minimum linelength reported by
6144 # all of the supported platforms: 8192 (on NT/2K/XP).
6145 lt_cv_sys_max_cmd_len=8192;
6149 # On MiNT this can take a long time and run out of memory.
6150 lt_cv_sys_max_cmd_len=8192;
6154 # On AmigaOS with pdksh, this test takes hours, literally.
6155 # So we just punt and use a minimum line length of 8192.
6156 lt_cv_sys_max_cmd_len=8192;
6159 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6160 # This has been around since 386BSD, at least. Likely further.
6161 if test -x /sbin/sysctl; then
6162 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6163 elif test -x /usr/sbin/sysctl; then
6164 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6166 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6168 # And add a safety zone
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6174 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6175 lt_cv_sys_max_cmd_len=196608
6179 # The test takes a long time on OS/2.
6180 lt_cv_sys_max_cmd_len=8192
6184 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6185 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6186 # nice to cause kernel panics so lets avoid the loop below.
6187 # First set a reasonable default.
6188 lt_cv_sys_max_cmd_len=16384
6190 if test -x /sbin/sysconfig; then
6191 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6192 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6197 lt_cv_sys_max_cmd_len=102400
6199 sysv5* | sco5v6* | sysv4.2uw2*)
6200 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6201 if test -n "$kargmax"; then
6202 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6204 lt_cv_sys_max_cmd_len=32768
6208 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6209 if test -n "$lt_cv_sys_max_cmd_len" && \
6210 test undefined != "$lt_cv_sys_max_cmd_len"; then
6211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214 # Make teststring a little bigger before we do anything with it.
6215 # a 1K string should be a reasonable start.
6216 for i in 1 2 3 4 5 6 7 8; do
6217 teststring=$teststring$teststring
6219 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6220 # If test is not a shell built-in, we'll probably end up computing a
6221 # maximum length that is only half of the actual maximum length, but
6223 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6224 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6225 test 17 != "$i" # 1/2 MB should be enough
6228 teststring=$teststring$teststring
6230 # Only check the string length outside the loop.
6231 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6233 # Add a significant safety factor because C++ compilers can tack on
6234 # massive amounts of additional arguments before passing them to the
6235 # linker. It appears as though 1/2 is a usable value.
6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6243 if test -n "$lt_cv_sys_max_cmd_len"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6245 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6248 $as_echo "none" >&6; }
6250 max_cmd_len=$lt_cv_sys_max_cmd_len
6261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6271 # test EBCDIC or ASCII
6272 case `echo X|tr X '\101'` in
6273 A) # ASCII based system
6274 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6275 lt_SP2NL='tr \040 \012'
6276 lt_NL2SP='tr \015\012 \040\040'
6278 *) # EBCDIC based system
6279 lt_SP2NL='tr \100 \n'
6280 lt_NL2SP='tr \r\n \100\100'
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6293 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6294 if ${lt_cv_to_host_file_cmd+:} false; then :
6295 $as_echo_n "(cached) " >&6
6300 *-*-mingw* ) # actually msys
6301 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6304 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6306 * ) # otherwise, assume *nix
6307 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6313 *-*-mingw* ) # actually msys
6314 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6317 lt_cv_to_host_file_cmd=func_convert_file_noop
6319 * ) # otherwise, assume *nix
6320 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6324 * ) # unhandled hosts (and "normal" native builds)
6325 lt_cv_to_host_file_cmd=func_convert_file_noop
6331 to_host_file_cmd=$lt_cv_to_host_file_cmd
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6333 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6340 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6341 if ${lt_cv_to_tool_file_cmd+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 #assume ordinary cross tools, or native build.
6345 lt_cv_to_tool_file_cmd=func_convert_file_noop
6349 *-*-mingw* ) # actually msys
6350 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6360 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6367 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6368 if ${lt_cv_ld_reload_flag+:} false; then :
6369 $as_echo_n "(cached) " >&6
6371 lt_cv_ld_reload_flag='-r'
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6374 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6375 reload_flag=$lt_cv_ld_reload_flag
6376 case $reload_flag in
6378 *) reload_flag=" $reload_flag" ;;
6380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6382 cygwin* | mingw* | pw32* | cegcc*)
6383 if test yes != "$GCC"; then
6388 if test yes = "$GCC"; then
6389 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_OBJDUMP+:} false; then :
6410 $as_echo_n "(cached) " >&6
6412 if test -n "$OBJDUMP"; then
6413 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 OBJDUMP=$ac_cv_prog_OBJDUMP
6433 if test -n "$OBJDUMP"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6435 $as_echo "$OBJDUMP" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6443 if test -z "$ac_cv_prog_OBJDUMP"; then
6444 ac_ct_OBJDUMP=$OBJDUMP
6445 # Extract the first word of "objdump", so it can be a program name with args.
6446 set dummy objdump; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6450 $as_echo_n "(cached) " >&6
6452 if test -n "$ac_ct_OBJDUMP"; then
6453 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6473 if test -n "$ac_ct_OBJDUMP"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6475 $as_echo "$ac_ct_OBJDUMP" >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6481 if test "x$ac_ct_OBJDUMP" = x; then
6484 case $cross_compiling:$ac_tool_warned in
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6490 OBJDUMP=$ac_ct_OBJDUMP
6493 OBJDUMP="$ac_cv_prog_OBJDUMP"
6496 test -z "$OBJDUMP" && OBJDUMP=objdump
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6505 if ${lt_cv_deplibs_check_method+:} false; then :
6506 $as_echo_n "(cached) " >&6
6508 lt_cv_file_magic_cmd='$MAGIC_CMD'
6509 lt_cv_file_magic_test_file=
6510 lt_cv_deplibs_check_method='unknown'
6511 # Need to set the preceding variable on all platforms that support
6512 # interlibrary dependencies.
6513 # 'none' -- dependencies not supported.
6514 # 'unknown' -- same as none, but documents that we really don't know.
6515 # 'pass_all' -- all dependencies passed with no checks.
6516 # 'test_compile' -- check by making test program.
6517 # 'file_magic [[regex]]' -- check by looking for files in library path
6518 # that responds to the $file_magic_cmd with a given extended regex.
6519 # If you have 'file' or equivalent on your system and you're not sure
6520 # whether 'pass_all' will *always* work, you probably want this one.
6524 lt_cv_deplibs_check_method=pass_all
6528 lt_cv_deplibs_check_method=pass_all
6532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6533 lt_cv_file_magic_cmd='/usr/bin/file -L'
6534 lt_cv_file_magic_test_file=/shlib/libc.so
6538 # func_win32_libid is a shell function defined in ltmain.sh
6539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6540 lt_cv_file_magic_cmd='func_win32_libid'
6544 # Base MSYS/MinGW do not provide the 'file' command needed by
6545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6546 # unless we find 'file', for example because we are cross-compiling.
6547 if ( file / ) >/dev/null 2>&1; then
6548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6549 lt_cv_file_magic_cmd='func_win32_libid'
6551 # Keep this pattern in sync with the one in func_win32_libid.
6552 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6553 lt_cv_file_magic_cmd='$OBJDUMP -f'
6558 # use the weaker test based on 'objdump'. See mingw*.
6559 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6560 lt_cv_file_magic_cmd='$OBJDUMP -f'
6563 darwin* | rhapsody*)
6564 lt_cv_deplibs_check_method=pass_all
6567 freebsd* | dragonfly*)
6568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6571 # Not sure whether the presence of OpenBSD here was a mistake.
6572 # Let's accept both of them until this is cleared up.
6573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6574 lt_cv_file_magic_cmd=/usr/bin/file
6575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6579 lt_cv_deplibs_check_method=pass_all
6584 lt_cv_deplibs_check_method=pass_all
6587 hpux10.20* | hpux11*)
6588 lt_cv_file_magic_cmd=/usr/bin/file
6591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6592 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6595 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]'
6596 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6606 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6610 irix5* | irix6* | nonstopux*)
6612 *-32|*"-32 ") libmagic=32-bit;;
6613 *-n32|*"-n32 ") libmagic=N32;;
6614 *-64|*"-64 ") libmagic=64-bit;;
6615 *) libmagic=never-match;;
6617 lt_cv_deplibs_check_method=pass_all
6620 # This must be glibc/ELF.
6621 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6622 lt_cv_deplibs_check_method=pass_all
6626 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6634 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6635 lt_cv_file_magic_cmd=/usr/bin/file
6636 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6640 lt_cv_deplibs_check_method=pass_all
6644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6651 osf3* | osf4* | osf5*)
6652 lt_cv_deplibs_check_method=pass_all
6656 lt_cv_deplibs_check_method=pass_all
6660 lt_cv_deplibs_check_method=pass_all
6663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6664 lt_cv_deplibs_check_method=pass_all
6668 case $host_vendor in
6670 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]'
6671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6674 lt_cv_deplibs_check_method=pass_all
6677 lt_cv_file_magic_cmd='/bin/file'
6678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6681 lt_cv_file_magic_cmd='/bin/file'
6682 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6683 lt_cv_file_magic_test_file=/lib/libc.so
6686 lt_cv_deplibs_check_method=pass_all
6689 lt_cv_deplibs_check_method=pass_all
6695 lt_cv_deplibs_check_method=pass_all
6698 lt_cv_deplibs_check_method=pass_all
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6704 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6708 if test "$build" = "$host"; then
6711 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6714 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6720 file_magic_cmd=$lt_cv_file_magic_cmd
6721 deplibs_check_method=$lt_cv_deplibs_check_method
6722 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6745 if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_DLLTOOL+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$DLLTOOL"; then
6754 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 DLLTOOL=$ac_cv_prog_DLLTOOL
6774 if test -n "$DLLTOOL"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6776 $as_echo "$DLLTOOL" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6784 if test -z "$ac_cv_prog_DLLTOOL"; then
6785 ac_ct_DLLTOOL=$DLLTOOL
6786 # Extract the first word of "dlltool", so it can be a program name with args.
6787 set dummy dlltool; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 if test -n "$ac_ct_DLLTOOL"; then
6794 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6814 if test -n "$ac_ct_DLLTOOL"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6816 $as_echo "$ac_ct_DLLTOOL" >&6; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6822 if test "x$ac_ct_DLLTOOL" = x; then
6825 case $cross_compiling:$ac_tool_warned in
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829 ac_tool_warned=yes ;;
6831 DLLTOOL=$ac_ct_DLLTOOL
6834 DLLTOOL="$ac_cv_prog_DLLTOOL"
6837 test -z "$DLLTOOL" && DLLTOOL=dlltool
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6846 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6847 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6848 $as_echo_n "(cached) " >&6
6850 lt_cv_sharedlib_from_linklib_cmd='unknown'
6853 cygwin* | mingw* | pw32* | cegcc*)
6854 # two different shell functions defined in ltmain.sh;
6855 # decide which one to use based on capabilities of $DLLTOOL
6856 case `$DLLTOOL --help 2>&1` in
6857 *--identify-strict*)
6858 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6861 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6866 # fallback: assume linklib IS sharedlib
6867 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6873 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6874 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6875 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6883 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_AR+:} false; then :
6891 $as_echo_n "(cached) " >&6
6893 if test -n "$AR"; then
6894 ac_cv_prog_AR="$AR" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 if test -n "$AR"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6916 $as_echo "$AR" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6923 test -n "$AR" && break
6926 if test -z "$AR"; then
6930 # Extract the first word of "$ac_prog", so it can be a program name with args.
6931 set dummy $ac_prog; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6935 $as_echo_n "(cached) " >&6
6937 if test -n "$ac_ct_AR"; then
6938 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_ac_ct_AR="$ac_prog"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6958 if test -n "$ac_ct_AR"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6960 $as_echo "$ac_ct_AR" >&6; }
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6967 test -n "$ac_ct_AR" && break
6970 if test "x$ac_ct_AR" = x; then
6973 case $cross_compiling:$ac_tool_warned in
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned=yes ;;
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6997 $as_echo_n "checking for archiver @FILE support... " >&6; }
6998 if ${lt_cv_ar_at_file+:} false; then :
6999 $as_echo_n "(cached) " >&6
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7013 if ac_fn_c_try_compile "$LINENO"; then :
7014 echo conftest.$ac_objext > conftest.lst
7015 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7017 (eval $lt_ar_try) 2>&5
7019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7020 test $ac_status = 0; }
7021 if test 0 -eq "$ac_status"; then
7022 # Ensure the archiver fails upon bogus file names.
7023 rm -f conftest.$ac_objext libconftest.a
7024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7025 (eval $lt_ar_try) 2>&5
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; }
7029 if test 0 -ne "$ac_status"; then
7033 rm -f conftest.* libconftest.a
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7040 $as_echo "$lt_cv_ar_at_file" >&6; }
7042 if test no = "$lt_cv_ar_at_file"; then
7045 archiver_list_spec=$lt_cv_ar_at_file
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}strip; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_STRIP+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 if test -n "$STRIP"; then
7063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 STRIP=$ac_cv_prog_STRIP
7083 if test -n "$STRIP"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7085 $as_echo "$STRIP" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7093 if test -z "$ac_cv_prog_STRIP"; then
7095 # Extract the first word of "strip", so it can be a program name with args.
7096 set dummy strip; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$ac_ct_STRIP"; then
7103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_ac_ct_STRIP="strip"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7123 if test -n "$ac_ct_STRIP"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7125 $as_echo "$ac_ct_STRIP" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7131 if test "x$ac_ct_STRIP" = x; then
7134 case $cross_compiling:$ac_tool_warned in
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7143 STRIP="$ac_cv_prog_STRIP"
7146 test -z "$STRIP" && STRIP=:
7153 if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_RANLIB+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 if test -n "$RANLIB"; then
7162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 RANLIB=$ac_cv_prog_RANLIB
7182 if test -n "$RANLIB"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7184 $as_echo "$RANLIB" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7192 if test -z "$ac_cv_prog_RANLIB"; then
7193 ac_ct_RANLIB=$RANLIB
7194 # Extract the first word of "ranlib", so it can be a program name with args.
7195 set dummy ranlib; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7199 $as_echo_n "(cached) " >&6
7201 if test -n "$ac_ct_RANLIB"; then
7202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_ac_ct_RANLIB="ranlib"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7222 if test -n "$ac_ct_RANLIB"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7224 $as_echo "$ac_ct_RANLIB" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7230 if test "x$ac_ct_RANLIB" = x; then
7233 case $cross_compiling:$ac_tool_warned in
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237 ac_tool_warned=yes ;;
7239 RANLIB=$ac_ct_RANLIB
7242 RANLIB="$ac_cv_prog_RANLIB"
7245 test -z "$RANLIB" && RANLIB=:
7252 # Determine commands to create old-style static archives.
7253 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7254 old_postinstall_cmds='chmod 644 $oldlib'
7255 old_postuninstall_cmds=
7257 if test -n "$RANLIB"; then
7260 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7263 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7266 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7271 lock_old_archive_extraction=yes ;;
7273 lock_old_archive_extraction=no ;;
7314 # If no C compiler was specified, use CC.
7317 # If no C compiler flags were specified, use CFLAGS.
7318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7320 # Allow CC to be a program name with arguments.
7324 # Check for command to grab the raw symbol name followed by C symbol from nm.
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7326 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7327 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7328 $as_echo_n "(cached) " >&6
7331 # These are sane defaults that work on at least a few old systems.
7332 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7334 # Character class describing NM global symbol codes.
7335 symcode='[BCDEGRST]'
7337 # Regexp to match symbols that can be accessed directly from C.
7338 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7340 # Define system-specific variables.
7345 cygwin* | mingw* | pw32* | cegcc*)
7346 symcode='[ABCDGISTW]'
7349 if test ia64 = "$host_cpu"; then
7350 symcode='[ABCDEGRST]'
7354 symcode='[BCDEGRST]'
7357 symcode='[BCDEGQRST]'
7368 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7376 # If we're using GNU nm, then use its standard symbol codes.
7377 case `$NM -V 2>&1` in
7378 *GNU* | *'with BFD'*)
7379 symcode='[ABCDGIRSTW]' ;;
7382 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7383 # Gets list of data symbols to import.
7384 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7385 # Adjust the below global symbol transforms to fixup imported variables.
7386 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7387 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7388 lt_c_name_lib_hook="\
7389 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7390 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7392 # Disable hooks by default.
7393 lt_cv_sys_global_symbol_to_import=
7399 # Transform an extracted symbol line into a proper C declaration.
7400 # Some systems (esp. on ia64) link data and code symbols differently,
7401 # so use this general approach.
7402 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7404 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7405 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7407 # Transform an extracted symbol line into symbol name and symbol address
7408 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7410 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7411 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7413 # Transform an extracted symbol line into symbol name with lib prefix and
7415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7416 $lt_c_name_lib_hook\
7417 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7418 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7419 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7421 # Handle CRLF in mingw tool chain
7425 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7429 # Try without a prefix underscore, then with it.
7430 for ac_symprfx in "" "_"; do
7432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7433 symxfrm="\\1 $ac_symprfx\\2 \\2"
7435 # Write the raw and C identifiers.
7436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7437 # Fake it for dumpbin and say T for any non-static function,
7438 # D for any global variable and I for any imported variable.
7439 # Also find C++ and __fastcall symbols from MSVC++,
7440 # which start with @ or ?.
7441 lt_cv_sys_global_symbol_pipe="$AWK '"\
7442 " {last_section=section; section=\$ 3};"\
7443 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7444 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7445 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7446 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7447 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7448 " \$ 0!~/External *\|/{next};"\
7449 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7450 " {if(hide[section]) next};"\
7451 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7452 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7453 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7454 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7455 " ' prfx=^$ac_symprfx"
7457 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7459 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7461 # Check to see that the pipe works correctly.
7465 cat > conftest.$ac_ext <<_LT_EOF
7470 void nm_test_func(void);
7471 void nm_test_func(void){}
7475 int main(){nm_test_var='a';nm_test_func();return(0);}
7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479 (eval $ac_compile) 2>&5
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 # Now try to grab the symbols.
7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7486 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; } && test -s "$nlist"; then
7490 # Try sorting and uniquifying the output.
7491 if sort "$nlist" | uniq > "$nlist"T; then
7492 mv -f "$nlist"T "$nlist"
7497 # Make sure that we snagged all the symbols we need.
7498 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7499 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7500 cat <<_LT_EOF > conftest.$ac_ext
7501 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7502 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7503 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7504 relocations are performed -- see ld's documentation on pseudo-relocs. */
7505 # define LT_DLSYM_CONST
7506 #elif defined __osf__
7507 /* This system does not cope well with relocations in const data. */
7508 # define LT_DLSYM_CONST
7510 # define LT_DLSYM_CONST const
7518 # Now generate the symbol file.
7519 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7521 cat <<_LT_EOF >> conftest.$ac_ext
7523 /* The mapping between symbol names and symbols. */
7524 LT_DLSYM_CONST struct {
7528 lt__PROGRAM__LTX_preloaded_symbols[] =
7530 { "@PROGRAM@", (void *) 0 },
7532 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7533 cat <<\_LT_EOF >> conftest.$ac_ext
7537 /* This works around a problem in FreeBSD linker */
7538 #ifdef FREEBSD_WORKAROUND
7539 static const void *lt_preloaded_setup() {
7540 return lt__PROGRAM__LTX_preloaded_symbols;
7548 # Now try linking the two files.
7549 mv conftest.$ac_objext conftstm.$ac_objext
7550 lt_globsym_save_LIBS=$LIBS
7551 lt_globsym_save_CFLAGS=$CFLAGS
7552 LIBS=conftstm.$ac_objext
7553 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7555 (eval $ac_link) 2>&5
7557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7558 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7561 LIBS=$lt_globsym_save_LIBS
7562 CFLAGS=$lt_globsym_save_CFLAGS
7564 echo "cannot find nm_test_func in $nlist" >&5
7567 echo "cannot find nm_test_var in $nlist" >&5
7570 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7573 echo "$progname: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7576 rm -rf conftest* conftst*
7578 # Do not use the global_symbol_pipe unless it works.
7579 if test yes = "$pipe_works"; then
7582 lt_cv_sys_global_symbol_pipe=
7588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7589 lt_cv_sys_global_symbol_to_cdecl=
7591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7593 $as_echo "failed" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7596 $as_echo "ok" >&6; }
7599 # Response file support.
7600 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7601 nm_file_list_spec='@'
7602 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7603 nm_file_list_spec='@'
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7643 $as_echo_n "checking for sysroot... " >&6; }
7645 # Check whether --with-sysroot was given.
7646 if test "${with_sysroot+set}" = set; then :
7647 withval=$with_sysroot;
7654 case $with_sysroot in #(
7656 if test yes = "$GCC"; then
7657 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7661 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7667 $as_echo "$with_sysroot" >&6; }
7668 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7673 $as_echo "${lt_sysroot:-no}" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7680 $as_echo_n "checking for a working dd... " >&6; }
7681 if ${ac_cv_path_lt_DD+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 printf 0123456789abcdef0123456789abcdef >conftest.i
7685 cat conftest.i conftest.i >conftest2.i
7687 if test -z "$lt_DD"; then
7688 ac_path_lt_DD_found=false
7689 # Loop through the user's path and test for each of PROGNAME-LIST
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_prog in dd; do
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7698 as_fn_executable_p "$ac_path_lt_DD" || continue
7699 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7700 cmp -s conftest.i conftest.out \
7701 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7703 $ac_path_lt_DD_found && break 3
7708 if test -z "$ac_cv_path_lt_DD"; then
7712 ac_cv_path_lt_DD=$lt_DD
7715 rm -f conftest.i conftest2.i conftest.out
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7718 $as_echo "$ac_cv_path_lt_DD" >&6; }
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7722 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7723 if ${lt_cv_truncate_bin+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 printf 0123456789abcdef0123456789abcdef >conftest.i
7727 cat conftest.i conftest.i >conftest2.i
7729 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7730 cmp -s conftest.i conftest.out \
7731 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7733 rm -f conftest.i conftest2.i conftest.out
7734 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7737 $as_echo "$lt_cv_truncate_bin" >&6; }
7745 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7748 for cc_temp in $*""; do
7750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7756 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7759 # Check whether --enable-libtool-lock was given.
7760 if test "${enable_libtool_lock+set}" = set; then :
7761 enableval=$enable_libtool_lock;
7764 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7766 # Some flags need to be propagated to the compiler or linker for good
7770 # Find out what ABI is being produced by ac_compile, and set mode
7771 # options accordingly.
7772 echo 'int i;' > conftest.$ac_ext
7773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7774 (eval $ac_compile) 2>&5
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; }; then
7778 case `/usr/bin/file conftest.$ac_objext` in
7790 # Find out what ABI is being produced by ac_compile, and set linker
7791 # options accordingly.
7792 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7794 (eval $ac_compile) 2>&5
7796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797 test $ac_status = 0; }; then
7798 if test yes = "$lt_cv_prog_gnu_ld"; then
7799 case `/usr/bin/file conftest.$ac_objext` in
7801 LD="${LD-ld} -melf32bsmip"
7804 LD="${LD-ld} -melf32bmipn32"
7807 LD="${LD-ld} -melf64bmip"
7811 case `/usr/bin/file conftest.$ac_objext` in
7828 # Find out what ABI is being produced by ac_compile, and set linker
7829 # options accordingly.
7830 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832 (eval $ac_compile) 2>&5
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; then
7837 case `/usr/bin/file conftest.$ac_objext` in
7845 case `/usr/bin/file conftest.$ac_objext` in
7847 emul="${emul}btsmip"
7850 emul="${emul}ltsmip"
7853 case `/usr/bin/file conftest.$ac_objext` in
7858 LD="${LD-ld} -m $emul"
7863 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7864 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7865 # Find out what ABI is being produced by ac_compile, and set linker
7866 # options accordingly. Note that the listed cases only cover the
7867 # situations where additional linker options are needed (such as when
7868 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7869 # vice versa); the common cases where no linker options are needed do
7870 # not appear in the list.
7871 echo 'int i;' > conftest.$ac_ext
7872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873 (eval $ac_compile) 2>&5
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; }; then
7877 case `/usr/bin/file conftest.o` in
7880 x86_64-*kfreebsd*-gnu)
7881 LD="${LD-ld} -m elf_i386_fbsd"
7884 case `/usr/bin/file conftest.o` in
7886 LD="${LD-ld} -m elf32_x86_64"
7889 LD="${LD-ld} -m elf_i386"
7893 powerpc64le-*linux*)
7894 LD="${LD-ld} -m elf32lppclinux"
7897 LD="${LD-ld} -m elf32ppclinux"
7900 LD="${LD-ld} -m elf_s390"
7903 LD="${LD-ld} -m elf32_sparc"
7909 x86_64-*kfreebsd*-gnu)
7910 LD="${LD-ld} -m elf_x86_64_fbsd"
7913 LD="${LD-ld} -m elf_x86_64"
7916 LD="${LD-ld} -m elf64lppc"
7919 LD="${LD-ld} -m elf64ppc"
7921 s390*-*linux*|s390*-*tpf*)
7922 LD="${LD-ld} -m elf64_s390"
7925 LD="${LD-ld} -m elf64_sparc"
7935 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7937 CFLAGS="$CFLAGS -belf"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7939 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7940 if ${lt_cv_cc_needs_belf+:} false; then :
7941 $as_echo_n "(cached) " >&6
7944 ac_cpp='$CPP $CPPFLAGS'
7945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7960 if ac_fn_c_try_link "$LINENO"; then :
7961 lt_cv_cc_needs_belf=yes
7963 lt_cv_cc_needs_belf=no
7965 rm -f core conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7975 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7976 if test yes != "$lt_cv_cc_needs_belf"; then
7977 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7982 # Find out what ABI is being produced by ac_compile, and set linker
7983 # options accordingly.
7984 echo 'int i;' > conftest.$ac_ext
7985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7986 (eval $ac_compile) 2>&5
7988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }; then
7990 case `/usr/bin/file conftest.o` in
7992 case $lt_cv_prog_gnu_ld in
7995 i?86-*-solaris*|x86_64-*-solaris*)
7996 LD="${LD-ld} -m elf_x86_64"
7999 LD="${LD-ld} -m elf64_sparc"
8002 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8003 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8008 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8020 need_locks=$enable_libtool_lock
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}mt; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 if test -n "$MANIFEST_TOOL"; then
8031 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8051 if test -n "$MANIFEST_TOOL"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8053 $as_echo "$MANIFEST_TOOL" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8061 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8062 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8063 # Extract the first word of "mt", so it can be a program name with args.
8064 set dummy mt; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8068 $as_echo_n "(cached) " >&6
8070 if test -n "$ac_ct_MANIFEST_TOOL"; then
8071 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8091 if test -n "$ac_ct_MANIFEST_TOOL"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8093 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8099 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8102 case $cross_compiling:$ac_tool_warned in
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106 ac_tool_warned=yes ;;
8108 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8111 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8114 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8116 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8117 if ${lt_cv_path_mainfest_tool+:} false; then :
8118 $as_echo_n "(cached) " >&6
8120 lt_cv_path_mainfest_tool=no
8121 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8122 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8123 cat conftest.err >&5
8124 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8125 lt_cv_path_mainfest_tool=yes
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8130 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8131 if test yes != "$lt_cv_path_mainfest_tool"; then
8141 rhapsody* | darwin*)
8142 if test -n "$ac_tool_prefix"; then
8143 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8144 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 $as_echo_n "checking for $ac_word... " >&6; }
8147 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8148 $as_echo_n "(cached) " >&6
8150 if test -n "$DSYMUTIL"; then
8151 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8171 if test -n "$DSYMUTIL"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8173 $as_echo "$DSYMUTIL" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8181 if test -z "$ac_cv_prog_DSYMUTIL"; then
8182 ac_ct_DSYMUTIL=$DSYMUTIL
8183 # Extract the first word of "dsymutil", so it can be a program name with args.
8184 set dummy dsymutil; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8188 $as_echo_n "(cached) " >&6
8190 if test -n "$ac_ct_DSYMUTIL"; then
8191 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8211 if test -n "$ac_ct_DSYMUTIL"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8213 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8219 if test "x$ac_ct_DSYMUTIL" = x; then
8222 case $cross_compiling:$ac_tool_warned in
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8226 ac_tool_warned=yes ;;
8228 DSYMUTIL=$ac_ct_DSYMUTIL
8231 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8234 if test -n "$ac_tool_prefix"; then
8235 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8236 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_prog_NMEDIT+:} false; then :
8240 $as_echo_n "(cached) " >&6
8242 if test -n "$NMEDIT"; then
8243 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 test -z "$as_dir" && as_dir=.
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 NMEDIT=$ac_cv_prog_NMEDIT
8263 if test -n "$NMEDIT"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8265 $as_echo "$NMEDIT" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8273 if test -z "$ac_cv_prog_NMEDIT"; then
8274 ac_ct_NMEDIT=$NMEDIT
8275 # Extract the first word of "nmedit", so it can be a program name with args.
8276 set dummy nmedit; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 if test -n "$ac_ct_NMEDIT"; then
8283 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8303 if test -n "$ac_ct_NMEDIT"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8305 $as_echo "$ac_ct_NMEDIT" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8311 if test "x$ac_ct_NMEDIT" = x; then
8314 case $cross_compiling:$ac_tool_warned in
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8318 ac_tool_warned=yes ;;
8320 NMEDIT=$ac_ct_NMEDIT
8323 NMEDIT="$ac_cv_prog_NMEDIT"
8326 if test -n "$ac_tool_prefix"; then
8327 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8328 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if ${ac_cv_prog_LIPO+:} false; then :
8332 $as_echo_n "(cached) " >&6
8334 if test -n "$LIPO"; then
8335 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 LIPO=$ac_cv_prog_LIPO
8355 if test -n "$LIPO"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8357 $as_echo "$LIPO" >&6; }
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8365 if test -z "$ac_cv_prog_LIPO"; then
8367 # Extract the first word of "lipo", so it can be a program name with args.
8368 set dummy lipo; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8372 $as_echo_n "(cached) " >&6
8374 if test -n "$ac_ct_LIPO"; then
8375 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8384 ac_cv_prog_ac_ct_LIPO="lipo"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8395 if test -n "$ac_ct_LIPO"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8397 $as_echo "$ac_ct_LIPO" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8403 if test "x$ac_ct_LIPO" = x; then
8406 case $cross_compiling:$ac_tool_warned in
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8410 ac_tool_warned=yes ;;
8415 LIPO="$ac_cv_prog_LIPO"
8418 if test -n "$ac_tool_prefix"; then
8419 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8420 set dummy ${ac_tool_prefix}otool; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_OTOOL+:} false; then :
8424 $as_echo_n "(cached) " >&6
8426 if test -n "$OTOOL"; then
8427 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 OTOOL=$ac_cv_prog_OTOOL
8447 if test -n "$OTOOL"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8449 $as_echo "$OTOOL" >&6; }
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8457 if test -z "$ac_cv_prog_OTOOL"; then
8459 # Extract the first word of "otool", so it can be a program name with args.
8460 set dummy otool; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8464 $as_echo_n "(cached) " >&6
8466 if test -n "$ac_ct_OTOOL"; then
8467 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_ac_ct_OTOOL="otool"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8487 if test -n "$ac_ct_OTOOL"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8489 $as_echo "$ac_ct_OTOOL" >&6; }
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8495 if test "x$ac_ct_OTOOL" = x; then
8498 case $cross_compiling:$ac_tool_warned in
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8502 ac_tool_warned=yes ;;
8507 OTOOL="$ac_cv_prog_OTOOL"
8510 if test -n "$ac_tool_prefix"; then
8511 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8512 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if ${ac_cv_prog_OTOOL64+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 if test -n "$OTOOL64"; then
8519 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 OTOOL64=$ac_cv_prog_OTOOL64
8539 if test -n "$OTOOL64"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8541 $as_echo "$OTOOL64" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8549 if test -z "$ac_cv_prog_OTOOL64"; then
8550 ac_ct_OTOOL64=$OTOOL64
8551 # Extract the first word of "otool64", so it can be a program name with args.
8552 set dummy otool64; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8556 $as_echo_n "(cached) " >&6
8558 if test -n "$ac_ct_OTOOL64"; then
8559 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_ac_ct_OTOOL64="otool64"
8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8579 if test -n "$ac_ct_OTOOL64"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8581 $as_echo "$ac_ct_OTOOL64" >&6; }
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8587 if test "x$ac_ct_OTOOL64" = x; then
8590 case $cross_compiling:$ac_tool_warned in
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8594 ac_tool_warned=yes ;;
8596 OTOOL64=$ac_ct_OTOOL64
8599 OTOOL64="$ac_cv_prog_OTOOL64"
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8629 $as_echo_n "checking for -single_module linker flag... " >&6; }
8630 if ${lt_cv_apple_cc_single_mod+:} false; then :
8631 $as_echo_n "(cached) " >&6
8633 lt_cv_apple_cc_single_mod=no
8634 if test -z "$LT_MULTI_MODULE"; then
8635 # By default we will add the -single_module flag. You can override
8636 # by either setting the environment variable LT_MULTI_MODULE
8637 # non-empty at configure time, or by adding -multi_module to the
8639 rm -rf libconftest.dylib*
8640 echo "int foo(void){return 1;}" > conftest.c
8641 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8642 -dynamiclib -Wl,-single_module conftest.c" >&5
8643 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8644 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8646 # If there is a non-empty error log, and "single_module"
8647 # appears in it, assume the flag caused a linker warning
8648 if test -s conftest.err && $GREP single_module conftest.err; then
8649 cat conftest.err >&5
8650 # Otherwise, if the output was created with a 0 exit code from
8651 # the compiler, it worked.
8652 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8653 lt_cv_apple_cc_single_mod=yes
8655 cat conftest.err >&5
8657 rm -rf libconftest.dylib*
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8662 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8665 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8666 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8667 $as_echo_n "(cached) " >&6
8669 lt_cv_ld_exported_symbols_list=no
8670 save_LDFLAGS=$LDFLAGS
8671 echo "_main" > conftest.sym
8672 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8684 if ac_fn_c_try_link "$LINENO"; then :
8685 lt_cv_ld_exported_symbols_list=yes
8687 lt_cv_ld_exported_symbols_list=no
8689 rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 LDFLAGS=$save_LDFLAGS
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8695 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8698 $as_echo_n "checking for -force_load linker flag... " >&6; }
8699 if ${lt_cv_ld_force_load+:} false; then :
8700 $as_echo_n "(cached) " >&6
8702 lt_cv_ld_force_load=no
8703 cat > conftest.c << _LT_EOF
8704 int forced_loaded() { return 2;}
8706 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8707 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8708 echo "$AR cru libconftest.a conftest.o" >&5
8709 $AR cru libconftest.a conftest.o 2>&5
8710 echo "$RANLIB libconftest.a" >&5
8711 $RANLIB libconftest.a 2>&5
8712 cat > conftest.c << _LT_EOF
8713 int main() { return 0;}
8715 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8716 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8718 if test -s conftest.err && $GREP force_load conftest.err; then
8719 cat conftest.err >&5
8720 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8721 lt_cv_ld_force_load=yes
8723 cat conftest.err >&5
8725 rm -f conftest.err libconftest.a conftest conftest.c
8726 rm -rf conftest.dSYM
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8730 $as_echo "$lt_cv_ld_force_load" >&6; }
8732 rhapsody* | darwin1.[012])
8733 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8735 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8736 darwin*) # darwin 5.x on
8737 # if running on 10.5 or later, the deployment target defaults
8738 # to the OS version, if on x86, and 10.4, the deployment
8739 # target defaults to 10.4. Don't you love it?
8740 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8741 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8742 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8744 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8746 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8750 if test yes = "$lt_cv_apple_cc_single_mod"; then
8751 _lt_dar_single_mod='$single_module'
8753 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8754 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8756 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8758 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8759 _lt_dsymutil='~$DSYMUTIL $lib || :'
8766 # func_munge_path_list VARIABLE PATH
8767 # -----------------------------------
8768 # VARIABLE is name of variable containing _space_ separated list of
8769 # directories to be munged by the contents of PATH, which is string
8772 # string "DIR[ DIR]" will be prepended to VARIABLE
8774 # string "DIR[ DIR]" will be appended to VARIABLE
8775 # "DIRP[:DIRP]::[DIRA:]DIRA"
8776 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8777 # "DIRA[ DIRA]" will be appended to VARIABLE
8779 # VARIABLE will be replaced by "DIR[ DIR]"
8780 func_munge_path_list ()
8786 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8789 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8792 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8793 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8796 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8802 $as_echo_n "checking for ANSI C header files... " >&6; }
8803 if ${ac_cv_header_stdc+:} false; then :
8804 $as_echo_n "(cached) " >&6
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822 ac_cv_header_stdc=yes
8824 ac_cv_header_stdc=no
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 if test $ac_cv_header_stdc = yes; then
8829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836 $EGREP "memchr" >/dev/null 2>&1; then :
8839 ac_cv_header_stdc=no
8845 if test $ac_cv_header_stdc = yes; then
8846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8853 $EGREP "free" >/dev/null 2>&1; then :
8856 ac_cv_header_stdc=no
8862 if test $ac_cv_header_stdc = yes; then
8863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8864 if test "$cross_compiling" = yes; then :
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8871 #if ((' ' & 0x0FF) == 0x020)
8872 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8873 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8875 # define ISLOWER(c) \
8876 (('a' <= (c) && (c) <= 'i') \
8877 || ('j' <= (c) && (c) <= 'r') \
8878 || ('s' <= (c) && (c) <= 'z'))
8879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8887 for (i = 0; i < 256; i++)
8888 if (XOR (islower (i), ISLOWER (i))
8889 || toupper (i) != TOUPPER (i))
8894 if ac_fn_c_try_run "$LINENO"; then :
8897 ac_cv_header_stdc=no
8899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8900 conftest.$ac_objext conftest.beam conftest.$ac_ext
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8906 $as_echo "$ac_cv_header_stdc" >&6; }
8907 if test $ac_cv_header_stdc = yes; then
8909 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8913 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8915 inttypes.h stdint.h unistd.h
8917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8921 cat >>confdefs.h <<_ACEOF
8922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 for ac_header in dlfcn.h
8932 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8934 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8935 cat >>confdefs.h <<_ACEOF
8936 #define HAVE_DLFCN_H 1
8946 func_stripname_cnf ()
8949 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8950 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8952 } # func_stripname_cnf
8959 enable_win32_dll=yes
8962 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8963 if test -n "$ac_tool_prefix"; then
8964 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8965 set dummy ${ac_tool_prefix}as; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if ${ac_cv_prog_AS+:} false; then :
8969 $as_echo_n "(cached) " >&6
8971 if test -n "$AS"; then
8972 ac_cv_prog_AS="$AS" # Let the user override the test.
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 ac_cv_prog_AS="${ac_tool_prefix}as"
8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 if test -n "$AS"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8994 $as_echo "$AS" >&6; }
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9002 if test -z "$ac_cv_prog_AS"; then
9004 # Extract the first word of "as", so it can be a program name with args.
9005 set dummy as; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9009 $as_echo_n "(cached) " >&6
9011 if test -n "$ac_ct_AS"; then
9012 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021 ac_cv_prog_ac_ct_AS="as"
9022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9032 if test -n "$ac_ct_AS"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9034 $as_echo "$ac_ct_AS" >&6; }
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9040 if test "x$ac_ct_AS" = x; then
9043 case $cross_compiling:$ac_tool_warned in
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9047 ac_tool_warned=yes ;;
9055 if test -n "$ac_tool_prefix"; then
9056 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_prog_DLLTOOL+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 if test -n "$DLLTOOL"; then
9064 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 DLLTOOL=$ac_cv_prog_DLLTOOL
9084 if test -n "$DLLTOOL"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9086 $as_echo "$DLLTOOL" >&6; }
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9094 if test -z "$ac_cv_prog_DLLTOOL"; then
9095 ac_ct_DLLTOOL=$DLLTOOL
9096 # Extract the first word of "dlltool", so it can be a program name with args.
9097 set dummy dlltool; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9101 $as_echo_n "(cached) " >&6
9103 if test -n "$ac_ct_DLLTOOL"; then
9104 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9124 if test -n "$ac_ct_DLLTOOL"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9126 $as_echo "$ac_ct_DLLTOOL" >&6; }
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9132 if test "x$ac_ct_DLLTOOL" = x; then
9135 case $cross_compiling:$ac_tool_warned in
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9139 ac_tool_warned=yes ;;
9141 DLLTOOL=$ac_ct_DLLTOOL
9144 DLLTOOL="$ac_cv_prog_DLLTOOL"
9147 if test -n "$ac_tool_prefix"; then
9148 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9149 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_prog_OBJDUMP+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 if test -n "$OBJDUMP"; then
9156 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9165 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 OBJDUMP=$ac_cv_prog_OBJDUMP
9176 if test -n "$OBJDUMP"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9178 $as_echo "$OBJDUMP" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test -z "$ac_cv_prog_OBJDUMP"; then
9187 ac_ct_OBJDUMP=$OBJDUMP
9188 # Extract the first word of "objdump", so it can be a program name with args.
9189 set dummy objdump; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9193 $as_echo_n "(cached) " >&6
9195 if test -n "$ac_ct_OBJDUMP"; then
9196 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9216 if test -n "$ac_ct_OBJDUMP"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9218 $as_echo "$ac_ct_OBJDUMP" >&6; }
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9224 if test "x$ac_ct_OBJDUMP" = x; then
9227 case $cross_compiling:$ac_tool_warned in
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231 ac_tool_warned=yes ;;
9233 OBJDUMP=$ac_ct_OBJDUMP
9236 OBJDUMP="$ac_cv_prog_OBJDUMP"
9242 test -z "$AS" && AS=as
9248 test -z "$DLLTOOL" && DLLTOOL=dlltool
9254 test -z "$OBJDUMP" && OBJDUMP=objdump
9266 # Check whether --enable-shared was given.
9267 if test "${enable_shared+set}" = set; then :
9268 enableval=$enable_shared; p=${PACKAGE-default}
9270 yes) enable_shared=yes ;;
9271 no) enable_shared=no ;;
9274 # Look at the argument we got. We use all the common list separators.
9275 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9276 for pkg in $enableval; do
9278 if test "X$pkg" = "X$p"; then
9297 # Check whether --enable-static was given.
9298 if test "${enable_static+set}" = set; then :
9299 enableval=$enable_static; p=${PACKAGE-default}
9301 yes) enable_static=yes ;;
9302 no) enable_static=no ;;
9305 # Look at the argument we got. We use all the common list separators.
9306 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9307 for pkg in $enableval; do
9309 if test "X$pkg" = "X$p"; then
9329 # Check whether --with-pic was given.
9330 if test "${with_pic+set}" = set; then :
9331 withval=$with_pic; lt_p=${PACKAGE-default}
9333 yes|no) pic_mode=$withval ;;
9336 # Look at the argument we got. We use all the common list separators.
9337 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9338 for lt_pkg in $withval; do
9340 if test "X$lt_pkg" = "X$lt_p"; then
9358 # Check whether --enable-fast-install was given.
9359 if test "${enable_fast_install+set}" = set; then :
9360 enableval=$enable_fast_install; p=${PACKAGE-default}
9362 yes) enable_fast_install=yes ;;
9363 no) enable_fast_install=no ;;
9365 enable_fast_install=no
9366 # Look at the argument we got. We use all the common list separators.
9367 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9368 for pkg in $enableval; do
9370 if test "X$pkg" = "X$p"; then
9371 enable_fast_install=yes
9378 enable_fast_install=yes
9388 shared_archive_member_spec=
9389 case $host,$enable_shared in
9390 power*-*-aix[5-9]*,yes)
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9392 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9394 # Check whether --with-aix-soname was given.
9395 if test "${with_aix_soname+set}" = set; then :
9396 withval=$with_aix_soname; case $withval in
9400 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9403 lt_cv_with_aix_soname=$with_aix_soname
9405 if ${lt_cv_with_aix_soname+:} false; then :
9406 $as_echo_n "(cached) " >&6
9408 lt_cv_with_aix_soname=aix
9411 with_aix_soname=$lt_cv_with_aix_soname
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9415 $as_echo "$with_aix_soname" >&6; }
9416 if test aix != "$with_aix_soname"; then
9417 # For the AIX way of multilib, we name the shared archive member
9418 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9419 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9420 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9421 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9422 if test 64 = "${OBJECT_MODE-32}"; then
9423 shared_archive_member_spec=shr_64
9425 shared_archive_member_spec=shr
9443 # This can be used to rebuild libtool when needed
9444 LIBTOOL_DEPS=$ltmain
9446 # Always use our own libtool.
9447 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9478 test -z "$LN_S" && LN_S="ln -s"
9493 if test -n "${ZSH_VERSION+set}"; then
9494 setopt NO_GLOB_SUBST
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9498 $as_echo_n "checking for objdir... " >&6; }
9499 if ${lt_cv_objdir+:} false; then :
9500 $as_echo_n "(cached) " >&6
9502 rm -f .libs 2>/dev/null
9503 mkdir .libs 2>/dev/null
9504 if test -d .libs; then
9507 # MS-DOS does not allow filenames that begin with a dot.
9510 rmdir .libs 2>/dev/null
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9513 $as_echo "$lt_cv_objdir" >&6; }
9514 objdir=$lt_cv_objdir
9520 cat >>confdefs.h <<_ACEOF
9521 #define LT_OBJDIR "$lt_cv_objdir/"
9529 # AIX sometimes has problems with the GCC collect2 program. For some
9530 # reason, if we set the COLLECT_NAMES environment variable, the problems
9531 # vanish in a puff of smoke.
9532 if test set != "${COLLECT_NAMES+set}"; then
9534 export COLLECT_NAMES
9541 can_build_shared=yes
9543 # All known linkers require a '.a' archive for static linking (except MSVC,
9544 # which needs '.lib').
9547 with_gnu_ld=$lt_cv_prog_gnu_ld
9552 # Set sane defaults for various variables
9553 test -z "$CC" && CC=cc
9554 test -z "$LTCC" && LTCC=$CC
9555 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9556 test -z "$LD" && LD=ld
9557 test -z "$ac_objext" && ac_objext=o
9559 func_cc_basename $compiler
9560 cc_basename=$func_cc_basename_result
9563 # Only perform the check for file, if the check method requires it
9564 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9565 case $deplibs_check_method in
9567 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9569 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9570 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9571 $as_echo_n "(cached) " >&6
9575 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9578 lt_save_MAGIC_CMD=$MAGIC_CMD
9579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9581 for ac_dir in $ac_dummy; do
9583 test -z "$ac_dir" && ac_dir=.
9584 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9585 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9586 if test -n "$file_magic_test_file"; then
9587 case $deplibs_check_method in
9589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9590 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9592 $EGREP "$file_magic_regex" > /dev/null; then
9597 *** Warning: the command libtool uses to detect shared libraries,
9598 *** $file_magic_cmd, produces output that libtool cannot recognize.
9599 *** The result is that libtool may fail to recognize shared libraries
9600 *** as such. This will affect the creation of libtool libraries that
9601 *** depend on shared libraries, but programs linked with such libtool
9602 *** libraries will work regardless of this problem. Nevertheless, you
9603 *** may want to report the problem to your system manager and/or to
9604 *** bug-libtool@gnu.org
9614 MAGIC_CMD=$lt_save_MAGIC_CMD
9619 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9620 if test -n "$MAGIC_CMD"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9622 $as_echo "$MAGIC_CMD" >&6; }
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9632 if test -z "$lt_cv_path_MAGIC_CMD"; then
9633 if test -n "$ac_tool_prefix"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9635 $as_echo_n "checking for file... " >&6; }
9636 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9637 $as_echo_n "(cached) " >&6
9641 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9644 lt_save_MAGIC_CMD=$MAGIC_CMD
9645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9647 for ac_dir in $ac_dummy; do
9649 test -z "$ac_dir" && ac_dir=.
9650 if test -f "$ac_dir/file"; then
9651 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9652 if test -n "$file_magic_test_file"; then
9653 case $deplibs_check_method in
9655 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9656 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9658 $EGREP "$file_magic_regex" > /dev/null; then
9663 *** Warning: the command libtool uses to detect shared libraries,
9664 *** $file_magic_cmd, produces output that libtool cannot recognize.
9665 *** The result is that libtool may fail to recognize shared libraries
9666 *** as such. This will affect the creation of libtool libraries that
9667 *** depend on shared libraries, but programs linked with such libtool
9668 *** libraries will work regardless of this problem. Nevertheless, you
9669 *** may want to report the problem to your system manager and/or to
9670 *** bug-libtool@gnu.org
9680 MAGIC_CMD=$lt_save_MAGIC_CMD
9685 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9686 if test -n "$MAGIC_CMD"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9688 $as_echo "$MAGIC_CMD" >&6; }
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9704 # Use C for the default configuration in the libtool script
9708 ac_cpp='$CPP $CPPFLAGS'
9709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9714 # Source file extension for C test sources.
9717 # Object file extension for compiled C test sources.
9721 # Code to be used in simple compile tests
9722 lt_simple_compile_test_code="int some_variable = 0;"
9724 # Code to be used in simple link tests
9725 lt_simple_link_test_code='int main(){return(0);}'
9733 # If no C compiler was specified, use CC.
9736 # If no C compiler flags were specified, use CFLAGS.
9737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9739 # Allow CC to be a program name with arguments.
9742 # Save the default compiler, since it gets overwritten when the other
9743 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9744 compiler_DEFAULT=$CC
9746 # save warnings/boilerplate of simple test code
9747 ac_outfile=conftest.$ac_objext
9748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9750 _lt_compiler_boilerplate=`cat conftest.err`
9753 ac_outfile=conftest.$ac_objext
9754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9756 _lt_linker_boilerplate=`cat conftest.err`
9761 ## There is no encapsulation within the following macros, do not change
9762 ## the running order or otherwise move them around unless you know exactly
9763 ## what you are doing...
9764 if test -n "$compiler"; then
9766 lt_prog_compiler_no_builtin_flag=
9768 if test yes = "$GCC"; then
9769 case $cc_basename in
9771 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9773 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9777 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9778 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9779 $as_echo_n "(cached) " >&6
9781 lt_cv_prog_compiler_rtti_exceptions=no
9782 ac_outfile=conftest.$ac_objext
9783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9784 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9785 # Insert the option either (1) after the last *FLAGS variable, or
9786 # (2) before a word containing "conftest.", or (3) at the end.
9787 # Note that $ac_compile itself does not contain backslashes and begins
9788 # with a dollar sign (not a hyphen), so the echo should work correctly.
9789 # The option is referenced via a variable to avoid confusing sed.
9790 lt_compile=`echo "$ac_compile" | $SED \
9791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9793 -e 's:$: $lt_compiler_flag:'`
9794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9795 (eval "$lt_compile" 2>conftest.err)
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 if (exit $ac_status) && test -s "$ac_outfile"; then
9800 # The compiler can only warn and ignore the option if not recognized
9801 # So say no if there are warnings other than the usual output.
9802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9805 lt_cv_prog_compiler_rtti_exceptions=yes
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9812 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9814 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9815 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9827 lt_prog_compiler_wl=
9828 lt_prog_compiler_pic=
9829 lt_prog_compiler_static=
9832 if test yes = "$GCC"; then
9833 lt_prog_compiler_wl='-Wl,'
9834 lt_prog_compiler_static='-static'
9838 # All AIX code is PIC.
9839 if test ia64 = "$host_cpu"; then
9840 # AIX 5 now supports IA64 processor
9841 lt_prog_compiler_static='-Bstatic'
9843 lt_prog_compiler_pic='-fPIC'
9849 # see comment about AmigaOS4 .so support
9850 lt_prog_compiler_pic='-fPIC'
9853 # FIXME: we need at least 68020 code to build shared libraries, but
9854 # adding the '-m68020' flag to GCC prevents building anything better,
9856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9862 # PIC is the default for these OSes.
9865 mingw* | cygwin* | pw32* | os2* | cegcc*)
9866 # This hack is so that the source file can tell whether it is being
9867 # built for inclusion in a dll (and should export symbols for example).
9868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9869 # (--disable-auto-import) libraries
9870 lt_prog_compiler_pic='-DDLL_EXPORT'
9873 lt_prog_compiler_static='$wl-static'
9878 darwin* | rhapsody*)
9879 # PIC is the default on this platform
9880 # Common symbols not allowed in MH_DYLIB files
9881 lt_prog_compiler_pic='-fno-common'
9885 # PIC is the default for Haiku.
9886 # The "-static" flag exists, but is broken.
9887 lt_prog_compiler_static=
9891 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9892 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9893 # sets the default TLS model and affects inlining.
9899 lt_prog_compiler_pic='-fPIC'
9905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9906 # Instead, we relocate shared libraries at runtime.
9910 # Just because we use GCC doesn't mean we suddenly get shared libraries
9911 # on systems that don't support them.
9912 lt_prog_compiler_can_build_shared=no
9917 # QNX uses GNU C++, but need to define -shared option too, otherwise
9919 lt_prog_compiler_pic='-fPIC -shared'
9923 if test -d /usr/nec; then
9924 lt_prog_compiler_pic=-Kconform_pic
9929 lt_prog_compiler_pic='-fPIC'
9933 case $cc_basename in
9934 nvcc*) # Cuda Compiler Driver 2.2
9935 lt_prog_compiler_wl='-Xlinker '
9936 if test -n "$lt_prog_compiler_pic"; then
9937 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9942 # PORTME Check for flag to pass linker flags through the system compiler.
9945 lt_prog_compiler_wl='-Wl,'
9946 if test ia64 = "$host_cpu"; then
9947 # AIX 5 now supports IA64 processor
9948 lt_prog_compiler_static='-Bstatic'
9950 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9954 darwin* | rhapsody*)
9955 # PIC is the default on this platform
9956 # Common symbols not allowed in MH_DYLIB files
9957 lt_prog_compiler_pic='-fno-common'
9958 case $cc_basename in
9960 # NAG Fortran compiler
9961 lt_prog_compiler_wl='-Wl,-Wl,,'
9962 lt_prog_compiler_pic='-PIC'
9963 lt_prog_compiler_static='-Bstatic'
9968 mingw* | cygwin* | pw32* | os2* | cegcc*)
9969 # This hack is so that the source file can tell whether it is being
9970 # built for inclusion in a dll (and should export symbols for example).
9971 lt_prog_compiler_pic='-DDLL_EXPORT'
9974 lt_prog_compiler_static='$wl-static'
9979 hpux9* | hpux10* | hpux11*)
9980 lt_prog_compiler_wl='-Wl,'
9981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9988 lt_prog_compiler_pic='+Z'
9991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9992 lt_prog_compiler_static='$wl-a ${wl}archive'
9995 irix5* | irix6* | nonstopux*)
9996 lt_prog_compiler_wl='-Wl,'
9997 # PIC (with -KPIC) is the default.
9998 lt_prog_compiler_static='-non_shared'
10001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10002 case $cc_basename in
10003 # old Intel for x86_64, which still supported -KPIC.
10005 lt_prog_compiler_wl='-Wl,'
10006 lt_prog_compiler_pic='-KPIC'
10007 lt_prog_compiler_static='-static'
10009 # icc used to be incompatible with GCC.
10010 # ICC 10 doesn't accept -KPIC any more.
10012 lt_prog_compiler_wl='-Wl,'
10013 lt_prog_compiler_pic='-fPIC'
10014 lt_prog_compiler_static='-static'
10016 # Lahey Fortran 8.1.
10018 lt_prog_compiler_wl='-Wl,'
10019 lt_prog_compiler_pic='--shared'
10020 lt_prog_compiler_static='--static'
10023 # NAG Fortran compiler
10024 lt_prog_compiler_wl='-Wl,-Wl,,'
10025 lt_prog_compiler_pic='-PIC'
10026 lt_prog_compiler_static='-Bstatic'
10029 # Fabrice Bellard et al's Tiny C Compiler
10030 lt_prog_compiler_wl='-Wl,'
10031 lt_prog_compiler_pic='-fPIC'
10032 lt_prog_compiler_static='-static'
10034 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10035 # Portland Group compilers (*not* the Pentium gcc compiler,
10036 # which looks to be a dead project)
10037 lt_prog_compiler_wl='-Wl,'
10038 lt_prog_compiler_pic='-fpic'
10039 lt_prog_compiler_static='-Bstatic'
10042 lt_prog_compiler_wl='-Wl,'
10043 # All Alpha code is PIC.
10044 lt_prog_compiler_static='-non_shared'
10046 xl* | bgxl* | bgf* | mpixl*)
10047 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_pic='-qpic'
10050 lt_prog_compiler_static='-qstaticlink'
10053 case `$CC -V 2>&1 | sed 5q` in
10054 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10056 lt_prog_compiler_pic='-KPIC'
10057 lt_prog_compiler_static='-Bstatic'
10058 lt_prog_compiler_wl=''
10060 *Sun\ F* | *Sun*Fortran*)
10061 lt_prog_compiler_pic='-KPIC'
10062 lt_prog_compiler_static='-Bstatic'
10063 lt_prog_compiler_wl='-Qoption ld '
10067 lt_prog_compiler_pic='-KPIC'
10068 lt_prog_compiler_static='-Bstatic'
10069 lt_prog_compiler_wl='-Wl,'
10071 *Intel*\ [CF]*Compiler*)
10072 lt_prog_compiler_wl='-Wl,'
10073 lt_prog_compiler_pic='-fPIC'
10074 lt_prog_compiler_static='-static'
10077 lt_prog_compiler_wl='-Wl,'
10078 lt_prog_compiler_pic='-fpic'
10079 lt_prog_compiler_static='-Bstatic'
10087 lt_prog_compiler_pic='-KPIC'
10088 lt_prog_compiler_static='-Bstatic'
10092 # QNX uses GNU C++, but need to define -shared option too, otherwise
10093 # it will coredump.
10094 lt_prog_compiler_pic='-fPIC -shared'
10097 osf3* | osf4* | osf5*)
10098 lt_prog_compiler_wl='-Wl,'
10099 # All OSF/1 code is PIC.
10100 lt_prog_compiler_static='-non_shared'
10104 lt_prog_compiler_static='-non_shared'
10108 lt_prog_compiler_pic='-KPIC'
10109 lt_prog_compiler_static='-Bstatic'
10110 case $cc_basename in
10111 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10112 lt_prog_compiler_wl='-Qoption ld ';;
10114 lt_prog_compiler_wl='-Wl,';;
10119 lt_prog_compiler_wl='-Qoption ld '
10120 lt_prog_compiler_pic='-PIC'
10121 lt_prog_compiler_static='-Bstatic'
10124 sysv4 | sysv4.2uw2* | sysv4.3*)
10125 lt_prog_compiler_wl='-Wl,'
10126 lt_prog_compiler_pic='-KPIC'
10127 lt_prog_compiler_static='-Bstatic'
10131 if test -d /usr/nec; then
10132 lt_prog_compiler_pic='-Kconform_pic'
10133 lt_prog_compiler_static='-Bstatic'
10137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10138 lt_prog_compiler_wl='-Wl,'
10139 lt_prog_compiler_pic='-KPIC'
10140 lt_prog_compiler_static='-Bstatic'
10144 lt_prog_compiler_wl='-Wl,'
10145 lt_prog_compiler_can_build_shared=no
10149 lt_prog_compiler_pic='-pic'
10150 lt_prog_compiler_static='-Bstatic'
10154 lt_prog_compiler_can_build_shared=no
10160 # For platforms that do not support PIC, -DPIC is meaningless:
10162 lt_prog_compiler_pic=
10165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10171 if ${lt_cv_prog_compiler_pic+:} false; then :
10172 $as_echo_n "(cached) " >&6
10174 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10177 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10181 # Check to make sure the PIC flag actually works.
10183 if test -n "$lt_prog_compiler_pic"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10185 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10186 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10187 $as_echo_n "(cached) " >&6
10189 lt_cv_prog_compiler_pic_works=no
10190 ac_outfile=conftest.$ac_objext
10191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10193 # Insert the option either (1) after the last *FLAGS variable, or
10194 # (2) before a word containing "conftest.", or (3) at the end.
10195 # Note that $ac_compile itself does not contain backslashes and begins
10196 # with a dollar sign (not a hyphen), so the echo should work correctly.
10197 # The option is referenced via a variable to avoid confusing sed.
10198 lt_compile=`echo "$ac_compile" | $SED \
10199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10201 -e 's:$: $lt_compiler_flag:'`
10202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10203 (eval "$lt_compile" 2>conftest.err)
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 if (exit $ac_status) && test -s "$ac_outfile"; then
10208 # The compiler can only warn and ignore the option if not recognized
10209 # So say no if there are warnings other than the usual output.
10210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10213 lt_cv_prog_compiler_pic_works=yes
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10220 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10222 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10223 case $lt_prog_compiler_pic in
10225 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10228 lt_prog_compiler_pic=
10229 lt_prog_compiler_can_build_shared=no
10245 # Check to make sure the static flag actually works.
10247 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10250 if ${lt_cv_prog_compiler_static_works+:} false; then :
10251 $as_echo_n "(cached) " >&6
10253 lt_cv_prog_compiler_static_works=no
10254 save_LDFLAGS=$LDFLAGS
10255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10258 # The linker can only warn and ignore the option if not recognized
10259 # So say no if there are warnings
10260 if test -s conftest.err; then
10261 # Append any errors to the config.log.
10262 cat conftest.err 1>&5
10263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10265 if diff conftest.exp conftest.er2 >/dev/null; then
10266 lt_cv_prog_compiler_static_works=yes
10269 lt_cv_prog_compiler_static_works=yes
10273 LDFLAGS=$save_LDFLAGS
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10277 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10279 if test yes = "$lt_cv_prog_compiler_static_works"; then
10282 lt_prog_compiler_static=
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10293 if ${lt_cv_prog_compiler_c_o+:} false; then :
10294 $as_echo_n "(cached) " >&6
10296 lt_cv_prog_compiler_c_o=no
10297 $RM -r conftest 2>/dev/null
10301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10303 lt_compiler_flag="-o out/conftest2.$ac_objext"
10304 # Insert the option either (1) after the last *FLAGS variable, or
10305 # (2) before a word containing "conftest.", or (3) at the end.
10306 # Note that $ac_compile itself does not contain backslashes and begins
10307 # with a dollar sign (not a hyphen), so the echo should work correctly.
10308 lt_compile=`echo "$ac_compile" | $SED \
10309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10311 -e 's:$: $lt_compiler_flag:'`
10312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10313 (eval "$lt_compile" 2>out/conftest.err)
10315 cat out/conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10319 # The compiler can only warn and ignore the option if not recognized
10320 # So say no if there are warnings
10321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10324 lt_cv_prog_compiler_c_o=yes
10329 # SGI C++ compiler will create directory out/ii_files/ for
10330 # template instantiation
10331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10332 $RM out/* && rmdir out
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10339 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10348 if ${lt_cv_prog_compiler_c_o+:} false; then :
10349 $as_echo_n "(cached) " >&6
10351 lt_cv_prog_compiler_c_o=no
10352 $RM -r conftest 2>/dev/null
10356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10358 lt_compiler_flag="-o out/conftest2.$ac_objext"
10359 # Insert the option either (1) after the last *FLAGS variable, or
10360 # (2) before a word containing "conftest.", or (3) at the end.
10361 # Note that $ac_compile itself does not contain backslashes and begins
10362 # with a dollar sign (not a hyphen), so the echo should work correctly.
10363 lt_compile=`echo "$ac_compile" | $SED \
10364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10366 -e 's:$: $lt_compiler_flag:'`
10367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10368 (eval "$lt_compile" 2>out/conftest.err)
10370 cat out/conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10374 # The compiler can only warn and ignore the option if not recognized
10375 # So say no if there are warnings
10376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10379 lt_cv_prog_compiler_c_o=yes
10384 # SGI C++ compiler will create directory out/ii_files/ for
10385 # template instantiation
10386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10387 $RM out/* && rmdir out
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10394 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10399 hard_links=nottested
10400 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10401 # do not overwrite the value of need_locks provided by the user
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10403 $as_echo_n "checking if we can lock with hard links... " >&6; }
10406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10408 ln conftest.a conftest.b 2>&5 || hard_links=no
10409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10411 $as_echo "$hard_links" >&6; }
10412 if test no = "$hard_links"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10414 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10427 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10430 allow_undefined_flag=
10431 always_export_symbols=no
10433 archive_expsym_cmds=
10434 compiler_needs_object=no
10435 enable_shared_with_static_runtimes=no
10436 export_dynamic_flag_spec=
10437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10438 hardcode_automatic=no
10440 hardcode_direct_absolute=no
10441 hardcode_libdir_flag_spec=
10442 hardcode_libdir_separator=
10443 hardcode_minus_L=no
10444 hardcode_shlibpath_var=unsupported
10446 link_all_deplibs=unknown
10448 module_expsym_cmds=
10449 old_archive_from_new_cmds=
10450 old_archive_from_expsyms_cmds=
10451 thread_safe_flag_spec=
10452 whole_archive_flag_spec=
10453 # include_expsyms should be a list of space-separated symbols to be *always*
10454 # included in the symbol list
10456 # exclude_expsyms can be an extended regexp of symbols to exclude
10457 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10458 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10459 # as well as any symbol that contains 'd'.
10460 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10461 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10462 # platforms (ab)use it in PIC code, but their linkers get confused if
10463 # the symbol is explicitly referenced. Since portable code cannot
10464 # rely on this symbol name, it's probably fine to never include it in
10465 # preloaded symbol tables.
10466 # Exclude shared library initialization/finalization symbols.
10467 extract_expsyms_cmds=
10470 cygwin* | mingw* | pw32* | cegcc*)
10471 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10472 # When not using gcc, we currently assume that we are using
10473 # Microsoft Visual C++.
10474 if test yes != "$GCC"; then
10479 # we just hope/assume this is gcc and not c89 (= MSVC++)
10482 openbsd* | bitrig*)
10489 # On some targets, GNU ld is compatible enough with the native linker
10490 # that we're better off using the native interface for both.
10491 lt_use_gnu_ld_interface=no
10492 if test yes = "$with_gnu_ld"; then
10495 # The AIX port of GNU ld has always aspired to compatibility
10496 # with the native linker. However, as the warning in the GNU ld
10497 # block says, versions before 2.19.5* couldn't really create working
10498 # shared libraries, regardless of the interface used.
10499 case `$LD -v 2>&1` in
10500 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10501 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10502 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10504 lt_use_gnu_ld_interface=yes
10509 lt_use_gnu_ld_interface=yes
10514 if test yes = "$lt_use_gnu_ld_interface"; then
10515 # If archive_cmds runs LD, not CC, wlarc should be empty
10518 # Set some defaults for GNU ld with shared library support. These
10519 # are reset later if shared libraries are not supported. Putting them
10520 # here allows them to be overridden if necessary.
10521 runpath_var=LD_RUN_PATH
10522 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10523 export_dynamic_flag_spec='$wl--export-dynamic'
10524 # ancient GNU ld didn't support --whole-archive et. al.
10525 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10526 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10528 whole_archive_flag_spec=
10530 supports_anon_versioning=no
10531 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10532 *GNU\ gold*) supports_anon_versioning=yes ;;
10533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10536 *\ 2.11.*) ;; # other 2.11 versions
10537 *) supports_anon_versioning=yes ;;
10540 # See if GNU ld supports shared libraries.
10543 # On AIX/PPC, the GNU linker is very broken
10544 if test ia64 != "$host_cpu"; then
10548 *** Warning: the GNU linker, at least up to release 2.19, is reported
10549 *** to be unable to reliably create shared libraries on AIX.
10550 *** Therefore, libtool is disabling shared libraries support. If you
10551 *** really care for shared libraries, you may want to install binutils
10552 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10553 *** You will then need to restart the configuration process.
10562 # see comment about AmigaOS4 .so support
10563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564 archive_expsym_cmds=''
10567 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)'
10568 hardcode_libdir_flag_spec='-L$libdir'
10569 hardcode_minus_L=yes
10575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10576 allow_undefined_flag=unsupported
10577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10578 # support --undefined. This deserves some investigation. FIXME
10579 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10585 cygwin* | mingw* | pw32* | cegcc*)
10586 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10587 # as there is no search path for DLLs.
10588 hardcode_libdir_flag_spec='-L$libdir'
10589 export_dynamic_flag_spec='$wl--export-all-symbols'
10590 allow_undefined_flag=unsupported
10591 always_export_symbols=no
10592 enable_shared_with_static_runtimes=yes
10593 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10594 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10596 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10598 # If the export-symbols file already is a .def file, use it as
10599 # is; otherwise, prepend EXPORTS...
10600 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10601 cp $export_symbols $output_objdir/$soname.def;
10603 echo EXPORTS > $output_objdir/$soname.def;
10604 cat $export_symbols >> $output_objdir/$soname.def;
10606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10614 link_all_deplibs=yes
10618 hardcode_libdir_flag_spec='-L$libdir'
10619 hardcode_minus_L=yes
10620 allow_undefined_flag=unsupported
10622 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10625 $ECHO EXPORTS >> $output_objdir/$libname.def~
10626 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10627 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10628 emximp -o $lib $output_objdir/$libname.def'
10629 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10632 $ECHO EXPORTS >> $output_objdir/$libname.def~
10633 prefix_cmds="$SED"~
10634 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10635 prefix_cmds="$prefix_cmds -e 1d";
10637 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10638 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10639 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10640 emximp -o $lib $output_objdir/$libname.def'
10641 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10642 enable_shared_with_static_runtimes=yes
10647 hardcode_shlibpath_var=no
10648 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10649 export_dynamic_flag_spec='$wl-E'
10650 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10651 # Instead, shared libraries are loaded at an image base (0x10000000 by
10652 # default) and relocated if they conflict, which is a slow very memory
10653 # consuming and fragmenting process. To avoid this, we pick a random,
10654 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10655 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10657 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'
10660 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10662 if test linux-dietlibc = "$host_os"; then
10663 case $cc_basename in
10664 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10667 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10668 && test no = "$tmp_diet"
10670 tmp_addflag=' $pic_flag'
10671 tmp_sharedflag='-shared'
10672 case $cc_basename,$host_cpu in
10673 pgcc*) # Portland Group C compiler
10674 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'
10675 tmp_addflag=' $pic_flag'
10677 pgf77* | pgf90* | pgf95* | pgfortran*)
10678 # Portland Group f77 and f90 compilers
10679 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'
10680 tmp_addflag=' $pic_flag -Mnomain' ;;
10681 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10682 tmp_addflag=' -i_dynamic' ;;
10683 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10684 tmp_addflag=' -i_dynamic -nofor_main' ;;
10685 ifc* | ifort*) # Intel Fortran compiler
10686 tmp_addflag=' -nofor_main' ;;
10687 lf95*) # Lahey Fortran 8.1
10688 whole_archive_flag_spec=
10689 tmp_sharedflag='--shared' ;;
10690 nagfor*) # NAGFOR 5.3
10691 tmp_sharedflag='-Wl,-shared' ;;
10692 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10693 tmp_sharedflag='-qmkshrobj'
10695 nvcc*) # Cuda Compiler Driver 2.2
10696 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'
10697 compiler_needs_object=yes
10700 case `$CC -V 2>&1 | sed 5q` in
10701 *Sun\ C*) # Sun C 5.9
10702 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'
10703 compiler_needs_object=yes
10704 tmp_sharedflag='-G' ;;
10705 *Sun\ F*) # Sun Fortran 8.3
10706 tmp_sharedflag='-G' ;;
10708 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10710 if test yes = "$supports_anon_versioning"; then
10711 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10713 echo "local: *; };" >> $output_objdir/$libname.ver~
10714 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10717 case $cc_basename in
10719 export_dynamic_flag_spec='-rdynamic'
10721 xlf* | bgf* | bgxlf* | mpixlf*)
10722 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10723 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10725 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10726 if test yes = "$supports_anon_versioning"; then
10727 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10728 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10729 echo "local: *; };" >> $output_objdir/$libname.ver~
10730 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10741 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10744 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10745 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10750 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10755 *** create shared libraries on Solaris systems. Therefore, libtool
10756 *** is disabling shared libraries support. We urge you to upgrade GNU
10757 *** binutils to release 2.9.1 or newer. Another option is to modify
10758 *** your PATH or compiler configuration so that the native linker is
10759 *** used, and then restart.
10762 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10764 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10771 case `$LD -v 2>&1` in
10772 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10776 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10777 *** reliably create shared libraries on SCO systems. Therefore, libtool
10778 *** is disabling shared libraries support. We urge you to upgrade GNU
10779 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10780 *** your PATH or compiler configuration so that the native linker is
10781 *** used, and then restart.
10786 # For security reasons, it is highly recommended that you always
10787 # use absolute paths for naming shared libraries, and exclude the
10788 # DT_RUNPATH tag from executables and libraries. But doing so
10789 # requires that you compile everything twice, which is a pain.
10790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10791 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10802 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_direct=yes
10805 hardcode_shlibpath_var=no
10809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10811 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10818 if test no = "$ld_shlibs"; then
10820 hardcode_libdir_flag_spec=
10821 export_dynamic_flag_spec=
10822 whole_archive_flag_spec=
10825 # PORTME fill in a description of your system's linker (not GNU ld)
10828 allow_undefined_flag=unsupported
10829 always_export_symbols=yes
10830 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'
10831 # Note: this linker hardcodes the directories in LIBPATH if there
10832 # are no directories specified by -L.
10833 hardcode_minus_L=yes
10834 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10835 # Neither direct hardcoding nor static linking is supported with a
10837 hardcode_direct=unsupported
10842 if test ia64 = "$host_cpu"; then
10843 # On IA64, the linker does run time linking by default, so we don't
10844 # have to do anything special.
10845 aix_use_runtimelinking=no
10846 exp_sym_flag='-Bexport'
10849 # If we're using GNU nm, then we don't want the "-C" option.
10850 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10851 # Without the "-l" option, or with the "-B" option, AIX nm treats
10852 # weak defined symbols like other global defined symbols, whereas
10853 # GNU nm marks them as "W".
10854 # While the 'weak' keyword is ignored in the Export File, we need
10855 # it in the Import File for the 'aix-soname' feature, so we have
10856 # to replace the "-B" option with "-P" for AIX nm.
10857 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10858 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10860 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10862 aix_use_runtimelinking=no
10864 # Test if we are trying to use run time linking or normal
10865 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10866 # have runtime linking enabled, and use it for executables.
10867 # For shared libraries, we enable/disable runtime linking
10868 # depending on the kind of the shared library created -
10869 # when "with_aix_soname,aix_use_runtimelinking" is:
10870 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10871 # "aix,yes" lib.so shared, rtl:yes, for executables
10872 # lib.a static archive
10873 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10874 # lib.a(lib.so.V) shared, rtl:no, for executables
10875 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10876 # lib.a(lib.so.V) shared, rtl:no
10877 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10878 # lib.a static archive
10879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10880 for ld_flag in $LDFLAGS; do
10881 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10882 aix_use_runtimelinking=yes
10886 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10887 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10888 # so we don't have lib.a shared libs to link our executables.
10889 # We have to force runtime linking in this case.
10890 aix_use_runtimelinking=yes
10891 LDFLAGS="$LDFLAGS -Wl,-brtl"
10896 exp_sym_flag='-bexport'
10897 no_entry_flag='-bnoentry'
10900 # When large executables or shared objects are built, AIX ld can
10901 # have problems creating the table of contents. If linking a library
10902 # or program results in "error TOC overflow" add -mminimal-toc to
10903 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10904 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10907 hardcode_direct=yes
10908 hardcode_direct_absolute=yes
10909 hardcode_libdir_separator=':'
10910 link_all_deplibs=yes
10911 file_list_spec='$wl-f,'
10912 case $with_aix_soname,$aix_use_runtimelinking in
10913 aix,*) ;; # traditional, no import file
10914 svr4,* | *,yes) # use import file
10915 # The Import File defines what to hardcode.
10917 hardcode_direct_absolute=no
10921 if test yes = "$GCC"; then
10922 case $host_os in aix4.[012]|aix4.[012].*)
10923 # We only want to do this on AIX 4.2 and lower, the check
10924 # below for broken collect2 doesn't work under 4.3+
10925 collect2name=`$CC -print-prog-name=collect2`
10926 if test -f "$collect2name" &&
10927 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10929 # We have reworked collect2
10932 # We have old collect2
10933 hardcode_direct=unsupported
10934 # It fails to find uninstalled libraries when the uninstalled
10935 # path is not listed in the libpath. Setting hardcode_minus_L
10936 # to unsupported forces relinking
10937 hardcode_minus_L=yes
10938 hardcode_libdir_flag_spec='-L$libdir'
10939 hardcode_libdir_separator=
10943 shared_flag='-shared'
10944 if test yes = "$aix_use_runtimelinking"; then
10945 shared_flag="$shared_flag "'$wl-G'
10947 # Need to ensure runtime linking is disabled for the traditional
10948 # shared library, or the linker may eventually find shared libraries
10949 # /with/ Import File - we do not want to mix them.
10950 shared_flag_aix='-shared'
10951 shared_flag_svr4='-shared $wl-G'
10954 if test ia64 = "$host_cpu"; then
10955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10956 # chokes on -Wl,-G. The following line is correct:
10959 if test yes = "$aix_use_runtimelinking"; then
10960 shared_flag='$wl-G'
10962 shared_flag='$wl-bM:SRE'
10964 shared_flag_aix='$wl-bM:SRE'
10965 shared_flag_svr4='$wl-G'
10969 export_dynamic_flag_spec='$wl-bexpall'
10970 # It seems that -bexpall does not export symbols beginning with
10971 # underscore (_), so it is better to generate a list of symbols to export.
10972 always_export_symbols=yes
10973 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10974 # Warning - without using the other runtime loading flags (-brtl),
10975 # -berok will link without error, but may produce a broken library.
10976 allow_undefined_flag='-berok'
10977 # Determine the default libpath from the value encoded in an
10978 # empty executable.
10979 if test set = "${lt_cv_aix_libpath+set}"; then
10980 aix_libpath=$lt_cv_aix_libpath
10982 if ${lt_cv_aix_libpath_+:} false; then :
10983 $as_echo_n "(cached) " >&6
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10996 if ac_fn_c_try_link "$LINENO"; then :
10998 lt_aix_libpath_sed='
10999 /Import File Strings/,/^$/ {
11001 s/^0 *\([^ ]*\) *$/\1/
11005 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11006 # Check for a 64-bit object if we didn't find anything.
11007 if test -z "$lt_cv_aix_libpath_"; then
11008 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013 if test -z "$lt_cv_aix_libpath_"; then
11014 lt_cv_aix_libpath_=/usr/lib:/lib
11019 aix_libpath=$lt_cv_aix_libpath_
11022 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11023 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11025 if test ia64 = "$host_cpu"; then
11026 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11027 allow_undefined_flag="-z nodefs"
11028 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"
11030 # Determine the default libpath from the value encoded in an
11031 # empty executable.
11032 if test set = "${lt_cv_aix_libpath+set}"; then
11033 aix_libpath=$lt_cv_aix_libpath
11035 if ${lt_cv_aix_libpath_+:} false; then :
11036 $as_echo_n "(cached) " >&6
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11049 if ac_fn_c_try_link "$LINENO"; then :
11051 lt_aix_libpath_sed='
11052 /Import File Strings/,/^$/ {
11054 s/^0 *\([^ ]*\) *$/\1/
11058 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11059 # Check for a 64-bit object if we didn't find anything.
11060 if test -z "$lt_cv_aix_libpath_"; then
11061 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 if test -z "$lt_cv_aix_libpath_"; then
11067 lt_cv_aix_libpath_=/usr/lib:/lib
11072 aix_libpath=$lt_cv_aix_libpath_
11075 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11076 # Warning - without using the other run time loading flags,
11077 # -berok will link without error, but may produce a broken library.
11078 no_undefined_flag=' $wl-bernotok'
11079 allow_undefined_flag=' $wl-berok'
11080 if test yes = "$with_gnu_ld"; then
11081 # We only use this code for GNU lds that support --whole-archive.
11082 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11084 # Exported symbols can be pulled into shared objects from archives
11085 whole_archive_flag_spec='$convenience'
11087 archive_cmds_need_lc=yes
11088 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11089 # -brtl affects multiple linker settings, -berok does not and is overridden later
11090 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11091 if test svr4 != "$with_aix_soname"; then
11092 # This is similar to how AIX traditionally builds its shared libraries.
11093 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11095 if test aix != "$with_aix_soname"; then
11096 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11098 # used by -dlpreopen to get the symbols
11099 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11101 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11109 # see comment about AmigaOS4 .so support
11110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11111 archive_expsym_cmds=''
11114 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)'
11115 hardcode_libdir_flag_spec='-L$libdir'
11116 hardcode_minus_L=yes
11122 export_dynamic_flag_spec=-rdynamic
11125 cygwin* | mingw* | pw32* | cegcc*)
11126 # When not using gcc, we currently assume that we are using
11127 # Microsoft Visual C++.
11128 # hardcode_libdir_flag_spec is actually meaningless, as there is
11129 # no search path for DLLs.
11130 case $cc_basename in
11133 hardcode_libdir_flag_spec=' '
11134 allow_undefined_flag=unsupported
11135 always_export_symbols=yes
11137 # Tell ltmain to make .lib files, not .a files.
11139 # Tell ltmain to make .dll files, not .so files.
11141 # FIXME: Setting linknames here is a bad hack.
11142 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11143 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11144 cp "$export_symbols" "$output_objdir/$soname.def";
11145 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11147 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11149 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11151 # The linker will not automatically build a static lib if we build a DLL.
11152 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11153 enable_shared_with_static_runtimes=yes
11154 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11157 old_postinstall_cmds='chmod 644 $oldlib'
11158 postlink_cmds='lt_outputfile="@OUTPUT@"~
11159 lt_tool_outputfile="@TOOL_OUTPUT@"~
11160 case $lt_outputfile in
11163 lt_outputfile=$lt_outputfile.exe
11164 lt_tool_outputfile=$lt_tool_outputfile.exe
11167 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11168 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11169 $RM "$lt_outputfile.manifest";
11173 # Assume MSVC wrapper
11174 hardcode_libdir_flag_spec=' '
11175 allow_undefined_flag=unsupported
11176 # Tell ltmain to make .lib files, not .a files.
11178 # Tell ltmain to make .dll files, not .so files.
11180 # FIXME: Setting linknames here is a bad hack.
11181 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11182 # The linker will automatically build a .lib file if we build a DLL.
11183 old_archive_from_new_cmds='true'
11184 # FIXME: Should let the user specify the lib program.
11185 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11186 enable_shared_with_static_runtimes=yes
11191 darwin* | rhapsody*)
11194 archive_cmds_need_lc=no
11196 hardcode_automatic=yes
11197 hardcode_shlibpath_var=unsupported
11198 if test yes = "$lt_cv_ld_force_load"; then
11199 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\"`'
11202 whole_archive_flag_spec=''
11204 link_all_deplibs=yes
11205 allow_undefined_flag=$_lt_dar_allow_undefined
11206 case $cc_basename in
11207 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11208 *) _lt_dar_can_shared=$GCC ;;
11210 if test yes = "$_lt_dar_can_shared"; then
11211 output_verbose_link_cmd=func_echo_all
11212 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11213 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11214 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"
11215 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"
11224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11225 hardcode_libdir_flag_spec='-L$libdir'
11226 hardcode_shlibpath_var=no
11229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11230 # support. Future versions do this automatically, but an explicit c++rt0.o
11231 # does not break anything, and helps significantly (at the cost of a little
11234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11235 hardcode_libdir_flag_spec='-R$libdir'
11236 hardcode_direct=yes
11237 hardcode_shlibpath_var=no
11240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11243 hardcode_direct=yes
11244 hardcode_minus_L=yes
11245 hardcode_shlibpath_var=no
11248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11249 freebsd* | dragonfly*)
11250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11251 hardcode_libdir_flag_spec='-R$libdir'
11252 hardcode_direct=yes
11253 hardcode_shlibpath_var=no
11257 if test yes = "$GCC"; then
11258 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11260 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11262 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11263 hardcode_libdir_separator=:
11264 hardcode_direct=yes
11266 # hardcode_minus_L: Not really in the search PATH,
11267 # but as the default location of the library.
11268 hardcode_minus_L=yes
11269 export_dynamic_flag_spec='$wl-E'
11273 if test yes,no = "$GCC,$with_gnu_ld"; then
11274 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11276 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11278 if test no = "$with_gnu_ld"; then
11279 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11280 hardcode_libdir_separator=:
11281 hardcode_direct=yes
11282 hardcode_direct_absolute=yes
11283 export_dynamic_flag_spec='$wl-E'
11284 # hardcode_minus_L: Not really in the search PATH,
11285 # but as the default location of the library.
11286 hardcode_minus_L=yes
11291 if test yes,no = "$GCC,$with_gnu_ld"; then
11294 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11313 # Older versions of the 11.00 compiler do not understand -b yet
11314 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11316 $as_echo_n "checking if $CC understands -b... " >&6; }
11317 if ${lt_cv_prog_compiler__b+:} false; then :
11318 $as_echo_n "(cached) " >&6
11320 lt_cv_prog_compiler__b=no
11321 save_LDFLAGS=$LDFLAGS
11322 LDFLAGS="$LDFLAGS -b"
11323 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11325 # The linker can only warn and ignore the option if not recognized
11326 # So say no if there are warnings
11327 if test -s conftest.err; then
11328 # Append any errors to the config.log.
11329 cat conftest.err 1>&5
11330 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11332 if diff conftest.exp conftest.er2 >/dev/null; then
11333 lt_cv_prog_compiler__b=yes
11336 lt_cv_prog_compiler__b=yes
11340 LDFLAGS=$save_LDFLAGS
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11344 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11346 if test yes = "$lt_cv_prog_compiler__b"; then
11347 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11355 if test no = "$with_gnu_ld"; then
11356 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11357 hardcode_libdir_separator=:
11362 hardcode_shlibpath_var=no
11365 hardcode_direct=yes
11366 hardcode_direct_absolute=yes
11367 export_dynamic_flag_spec='$wl-E'
11369 # hardcode_minus_L: Not really in the search PATH,
11370 # but as the default location of the library.
11371 hardcode_minus_L=yes
11377 irix5* | irix6* | nonstopux*)
11378 if test yes = "$GCC"; then
11379 archive_cmds='$CC -shared $pic_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'
11380 # Try to use the -exported_symbol ld option, if it does not
11381 # work, assume that -exports_file does not work either and
11382 # implicitly export all symbols.
11383 # This should be the same for all languages, so no per-tag cache variable.
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11385 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11386 if ${lt_cv_irix_exported_symbol+:} false; then :
11387 $as_echo_n "(cached) " >&6
11389 save_LDFLAGS=$LDFLAGS
11390 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393 int foo (void) { return 0; }
11395 if ac_fn_c_try_link "$LINENO"; then :
11396 lt_cv_irix_exported_symbol=yes
11398 lt_cv_irix_exported_symbol=no
11400 rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11402 LDFLAGS=$save_LDFLAGS
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11405 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11406 if test yes = "$lt_cv_irix_exported_symbol"; then
11407 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
11410 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'
11411 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'
11413 archive_cmds_need_lc='no'
11414 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11415 hardcode_libdir_separator=:
11417 link_all_deplibs=yes
11421 case $cc_basename in
11423 # Fabrice Bellard et al's Tiny C Compiler
11425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11434 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11436 hardcode_libdir_flag_spec='-R$libdir'
11437 hardcode_direct=yes
11438 hardcode_shlibpath_var=no
11442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11443 hardcode_direct=yes
11444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11445 hardcode_libdir_separator=:
11446 hardcode_shlibpath_var=no
11452 openbsd* | bitrig*)
11453 if test -f /usr/libexec/ld.so; then
11454 hardcode_direct=yes
11455 hardcode_shlibpath_var=no
11456 hardcode_direct_absolute=yes
11457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11459 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11460 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11461 export_dynamic_flag_spec='$wl-E'
11463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11464 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11472 hardcode_libdir_flag_spec='-L$libdir'
11473 hardcode_minus_L=yes
11474 allow_undefined_flag=unsupported
11476 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11477 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11478 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11479 $ECHO EXPORTS >> $output_objdir/$libname.def~
11480 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11481 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11482 emximp -o $lib $output_objdir/$libname.def'
11483 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11484 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11485 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11486 $ECHO EXPORTS >> $output_objdir/$libname.def~
11487 prefix_cmds="$SED"~
11488 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11489 prefix_cmds="$prefix_cmds -e 1d";
11491 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11492 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11493 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11494 emximp -o $lib $output_objdir/$libname.def'
11495 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11496 enable_shared_with_static_runtimes=yes
11500 if test yes = "$GCC"; then
11501 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11502 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'
11504 allow_undefined_flag=' -expect_unresolved \*'
11505 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'
11507 archive_cmds_need_lc='no'
11508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11509 hardcode_libdir_separator=:
11512 osf4* | osf5*) # as osf3* with the addition of -msym flag
11513 if test yes = "$GCC"; then
11514 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11515 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
11516 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11518 allow_undefined_flag=' -expect_unresolved \*'
11519 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'
11520 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~
11521 $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'
11523 # Both c and cxx compiler support -rpath directly
11524 hardcode_libdir_flag_spec='-rpath $libdir'
11526 archive_cmds_need_lc='no'
11527 hardcode_libdir_separator=:
11531 no_undefined_flag=' -z defs'
11532 if test yes = "$GCC"; then
11534 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11536 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11538 case `$CC -V 2>&1` in
11541 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11543 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11547 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11549 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11553 hardcode_libdir_flag_spec='-R$libdir'
11554 hardcode_shlibpath_var=no
11556 solaris2.[0-5] | solaris2.[0-5].*) ;;
11558 # The compiler driver will combine and reorder linker options,
11559 # but understands '-z linker_flag'. GCC discards it without '$wl',
11560 # but is careful enough not to reorder.
11561 # Supported since Solaris 2.6 (maybe 2.5.1?)
11562 if test yes = "$GCC"; then
11563 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11569 link_all_deplibs=yes
11573 if test sequent = "$host_vendor"; then
11574 # Use $CC to link under sequent, because it throws in some extra .o
11575 # files that make .init and .fini sections work.
11576 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11580 hardcode_libdir_flag_spec='-L$libdir'
11581 hardcode_direct=yes
11582 hardcode_minus_L=yes
11583 hardcode_shlibpath_var=no
11587 case $host_vendor in
11589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11590 hardcode_direct=yes # is this really true???
11593 ## LD is ld it makes a PLAMLIB
11594 ## CC just makes a GrossModule.
11595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11596 reload_cmds='$CC -r -o $output$reload_objs'
11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11604 runpath_var='LD_RUN_PATH'
11605 hardcode_shlibpath_var=no
11609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11610 hardcode_shlibpath_var=no
11611 export_dynamic_flag_spec='-Bexport'
11615 if test -d /usr/nec; then
11616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11617 hardcode_shlibpath_var=no
11618 runpath_var=LD_RUN_PATH
11619 hardcode_runpath_var=yes
11624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11625 no_undefined_flag='$wl-z,text'
11626 archive_cmds_need_lc=no
11627 hardcode_shlibpath_var=no
11628 runpath_var='LD_RUN_PATH'
11630 if test yes = "$GCC"; then
11631 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11634 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11639 sysv5* | sco3.2v5* | sco5v6*)
11640 # Note: We CANNOT use -z defs as we might desire, because we do not
11641 # link with -lc, and that would cause any symbols used from libc to
11642 # always be unresolved, which means just about no library would
11643 # ever link correctly. If we're not using GNU ld we use -z text
11644 # though, which does catch some bad symbols but isn't as heavy-handed
11646 no_undefined_flag='$wl-z,text'
11647 allow_undefined_flag='$wl-z,nodefs'
11648 archive_cmds_need_lc=no
11649 hardcode_shlibpath_var=no
11650 hardcode_libdir_flag_spec='$wl-R,$libdir'
11651 hardcode_libdir_separator=':'
11652 link_all_deplibs=yes
11653 export_dynamic_flag_spec='$wl-Bexport'
11654 runpath_var='LD_RUN_PATH'
11656 if test yes = "$GCC"; then
11657 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11658 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11660 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11667 hardcode_libdir_flag_spec='-L$libdir'
11668 hardcode_shlibpath_var=no
11676 if test sni = "$host_vendor"; then
11678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11679 export_dynamic_flag_spec='$wl-Blargedynsym'
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11686 $as_echo "$ld_shlibs" >&6; }
11687 test no = "$ld_shlibs" && can_build_shared=no
11689 with_gnu_ld=$with_gnu_ld
11706 # Do we need to explicitly link libc?
11708 case "x$archive_cmds_need_lc" in
11710 # Assume -lc should be added
11711 archive_cmds_need_lc=yes
11713 if test yes,yes = "$GCC,$enable_shared"; then
11714 case $archive_cmds in
11716 # FIXME: we may have to deal with multi-command sequences.
11719 # Test whether the compiler implicitly links with -lc since on some
11720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11721 # to ld, don't add -lc before -lgcc.
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11723 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11724 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11725 $as_echo_n "(cached) " >&6
11728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11731 (eval $ac_compile) 2>&5
11733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734 test $ac_status = 0; } 2>conftest.err; then
11737 libobjs=conftest.$ac_objext
11739 wl=$lt_prog_compiler_wl
11740 pic_flag=$lt_prog_compiler_pic
11746 lt_save_allow_undefined_flag=$allow_undefined_flag
11747 allow_undefined_flag=
11748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11749 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11752 test $ac_status = 0; }
11754 lt_cv_archive_cmds_need_lc=no
11756 lt_cv_archive_cmds_need_lc=yes
11758 allow_undefined_flag=$lt_save_allow_undefined_flag
11760 cat conftest.err 1>&5
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11766 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11767 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11926 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11928 if test yes = "$GCC"; then
11930 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11931 *) lt_awk_arg='/^libraries:/' ;;
11934 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11935 *) lt_sed_strip_eq='s|=/|/|g' ;;
11937 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11938 case $lt_search_path_spec in
11940 # if the path contains ";" then we assume it to be the separator
11941 # otherwise default to the standard path separator (i.e. ":") - it is
11942 # assumed that no part of a normal pathname contains ";" but that should
11943 # okay in the real world where ";" in dirpaths is itself problematic.
11944 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11950 # Ok, now we have the path, separated by spaces, we can step through it
11951 # and add multilib dir if necessary...
11952 lt_tmp_lt_search_path_spec=
11953 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11954 # ...but if some path component already ends with the multilib dir we assume
11955 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11956 case "$lt_multi_os_dir; $lt_search_path_spec " in
11957 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11961 for lt_sys_path in $lt_search_path_spec; do
11962 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11964 elif test -n "$lt_multi_os_dir"; then
11965 test -d "$lt_sys_path" && \
11966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11969 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11970 BEGIN {RS = " "; FS = "/|\n";} {
11973 for (lt_i = NF; lt_i > 0; lt_i--) {
11974 if ($lt_i != "" && $lt_i != ".") {
11975 if ($lt_i == "..") {
11978 if (lt_count == 0) {
11979 lt_foo = "/" $lt_i lt_foo;
11986 if (lt_foo != "") { lt_freq[lt_foo]++; }
11987 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11989 # AWK program above erroneously prepends '/' to C:/dos/paths
11992 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11993 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11995 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11999 library_names_spec=
12000 libname_spec='lib$name'
12004 postuninstall_cmds=
12008 shlibpath_overrides_runpath=unknown
12010 dynamic_linker="$host_os ld.so"
12011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12012 need_lib_prefix=unknown
12013 hardcode_into_libs=no
12015 # when you set need_version to no, make sure it does not cause -set_version
12016 # flags to be left without arguments
12017 need_version=unknown
12023 version_type=linux # correct to gnu/linux during the next big refactor
12024 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12025 shlibpath_var=LIBPATH
12027 # AIX 3 has no versioning support, so we append a major version to the name.
12028 soname_spec='$libname$release$shared_ext$major'
12032 version_type=linux # correct to gnu/linux during the next big refactor
12035 hardcode_into_libs=yes
12036 if test ia64 = "$host_cpu"; then
12037 # AIX 5 supports IA64
12038 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12039 shlibpath_var=LD_LIBRARY_PATH
12041 # With GCC up to 2.95.x, collect2 would create an import file
12042 # for dependence libraries. The import file would start with
12043 # the line '#! .'. This would cause the generated library to
12044 # depend on '.', always an invalid library. This was fixed in
12045 # development snapshots of GCC prior to 3.0.
12047 aix4 | aix4.[01] | aix4.[01].*)
12048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12050 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12053 can_build_shared=no
12057 # Using Import Files as archive members, it is possible to support
12058 # filename-based versioning of shared library archives on AIX. While
12059 # this would work for both with and without runtime linking, it will
12060 # prevent static linking of such archives. So we do filename-based
12061 # shared library versioning with .so extension only, which is used
12062 # when both runtime linking and shared linking is enabled.
12063 # Unfortunately, runtime linking may impact performance, so we do
12064 # not want this to be the default eventually. Also, we use the
12065 # versioned .so libs for executables only if there is the -brtl
12066 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12067 # To allow for filename-based versioning support, we need to create
12068 # libNAME.so.V as an archive file, containing:
12069 # *) an Import File, referring to the versioned filename of the
12070 # archive as well as the shared archive member, telling the
12071 # bitwidth (32 or 64) of that shared object, and providing the
12072 # list of exported symbols of that shared object, eventually
12073 # decorated with the 'weak' keyword
12074 # *) the shared object with the F_LOADONLY flag set, to really avoid
12075 # it being seen by the linker.
12076 # At run time we better use the real file rather than another symlink,
12077 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12079 case $with_aix_soname,$aix_use_runtimelinking in
12080 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12081 # soname into executable. Probably we can add versioning support to
12082 # collect2, so additional links can be useful in future.
12083 aix,yes) # traditional libtool
12084 dynamic_linker='AIX unversionable lib.so'
12085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12086 # instead of lib<name>.a to let people know that these are not
12087 # typical AIX shared libraries.
12088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12090 aix,no) # traditional AIX only
12091 dynamic_linker='AIX lib.a(lib.so.V)'
12092 # We preserve .a as extension for shared libraries through AIX4.2
12093 # and later when we are not doing run time linking.
12094 library_names_spec='$libname$release.a $libname.a'
12095 soname_spec='$libname$release$shared_ext$major'
12097 svr4,*) # full svr4 only
12098 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12099 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12100 # We do not specify a path in Import Files, so LIBPATH fires.
12101 shlibpath_overrides_runpath=yes
12103 *,yes) # both, prefer svr4
12104 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12105 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12106 # unpreferred sharedlib libNAME.a needs extra handling
12107 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12108 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12109 # We do not specify a path in Import Files, so LIBPATH fires.
12110 shlibpath_overrides_runpath=yes
12112 *,no) # both, prefer aix
12113 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12114 library_names_spec='$libname$release.a $libname.a'
12115 soname_spec='$libname$release$shared_ext$major'
12116 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12117 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12118 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12121 shlibpath_var=LIBPATH
12128 # Since July 2007 AmigaOS4 officially supports .so libraries.
12129 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133 library_names_spec='$libname.ixlibrary $libname.a'
12134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12135 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12141 library_names_spec='$libname$shared_ext'
12142 dynamic_linker="$host_os ld.so"
12143 shlibpath_var=LIBRARY_PATH
12147 version_type=linux # correct to gnu/linux during the next big refactor
12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150 soname_spec='$libname$release$shared_ext$major'
12151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12155 # the default ld.so.conf also contains /usr/contrib/lib and
12156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12157 # libtool to hard-code these into programs
12160 cygwin* | mingw* | pw32* | cegcc*)
12161 version_type=windows
12166 case $GCC,$cc_basename in
12169 library_names_spec='$libname.dll.a'
12170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12171 postinstall_cmds='base_file=`basename \$file`~
12172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12173 dldir=$destdir/`dirname \$dlpath`~
12174 test -d \$dldir || mkdir -p \$dldir~
12175 $install_prog $dir/$dlname \$dldir/$dlname~
12176 chmod a+x \$dldir/$dlname~
12177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12181 dlpath=$dir/\$dldll~
12183 shlibpath_overrides_runpath=yes
12187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12188 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12193 # MinGW DLLs use traditional 'lib' prefix
12194 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12197 # pw32 DLLs use 'pw' prefix rather than 'lib'
12198 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12201 dynamic_linker='Win32 ld.exe'
12206 libname_spec='$name'
12207 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12208 library_names_spec='$libname.dll.lib'
12212 sys_lib_search_path_spec=
12215 for lt_path in $LIB
12218 # Let DOS variable expansion print the short 8.3 style file name.
12219 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12220 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12223 # Convert to MSYS style.
12224 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12227 # Convert to unix form, then to dos form, then back to unix form
12228 # but this time dos style (no spaces!) so that the unix form looks
12229 # like /cygdrive/c/PROGRA~1:/cygdr...
12230 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12231 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12232 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12235 sys_lib_search_path_spec=$LIB
12236 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12237 # It is most probably a Windows format PATH.
12238 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12242 # FIXME: find the short name or the path components, as spaces are
12243 # common. (e.g. "Program Files" -> "PROGRA~1")
12247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12248 postinstall_cmds='base_file=`basename \$file`~
12249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12250 dldir=$destdir/`dirname \$dlpath`~
12251 test -d \$dldir || mkdir -p \$dldir~
12252 $install_prog $dir/$dlname \$dldir/$dlname'
12253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12254 dlpath=$dir/\$dldll~
12256 shlibpath_overrides_runpath=yes
12257 dynamic_linker='Win32 link.exe'
12261 # Assume MSVC wrapper
12262 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12263 dynamic_linker='Win32 ld.exe'
12266 # FIXME: first we should search . and the directory the executable is in
12270 darwin* | rhapsody*)
12271 dynamic_linker="$host_os dyld"
12272 version_type=darwin
12275 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12276 soname_spec='$libname$release$major$shared_ext'
12277 shlibpath_overrides_runpath=yes
12278 shlibpath_var=DYLD_LIBRARY_PATH
12279 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12286 version_type=linux # correct to gnu/linux during the next big refactor
12289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12290 soname_spec='$libname$release$shared_ext$major'
12291 shlibpath_var=LD_LIBRARY_PATH
12294 freebsd* | dragonfly*)
12295 # DragonFly does not have aout. When/if they implement a new
12296 # versioning mechanism, adjust this.
12297 if test -x /usr/bin/objformat; then
12298 objformat=`/usr/bin/objformat`
12301 freebsd[23].*) objformat=aout ;;
12302 *) objformat=elf ;;
12305 version_type=freebsd-$objformat
12306 case $version_type in
12308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12309 soname_spec='$libname$release$shared_ext$major'
12314 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12318 shlibpath_var=LD_LIBRARY_PATH
12321 shlibpath_overrides_runpath=yes
12323 freebsd3.[01]* | freebsdelf3.[01]*)
12324 shlibpath_overrides_runpath=yes
12325 hardcode_into_libs=yes
12327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12329 shlibpath_overrides_runpath=no
12330 hardcode_into_libs=yes
12332 *) # from 4.6 on, and DragonFly
12333 shlibpath_overrides_runpath=yes
12334 hardcode_into_libs=yes
12340 version_type=linux # correct to gnu/linux during the next big refactor
12343 dynamic_linker="$host_os runtime_loader"
12344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345 soname_spec='$libname$release$shared_ext$major'
12346 shlibpath_var=LIBRARY_PATH
12347 shlibpath_overrides_runpath=no
12348 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12349 hardcode_into_libs=yes
12352 hpux9* | hpux10* | hpux11*)
12353 # Give a soname corresponding to the major version so that dld.sl refuses to
12354 # link against other versions.
12361 hardcode_into_libs=yes
12362 dynamic_linker="$host_os dld.so"
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366 soname_spec='$libname$release$shared_ext$major'
12367 if test 32 = "$HPUX_IA64_MODE"; then
12368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12369 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12372 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12377 hardcode_into_libs=yes
12378 dynamic_linker="$host_os dld.sl"
12379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382 soname_spec='$libname$release$shared_ext$major'
12383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12388 dynamic_linker="$host_os dld.sl"
12389 shlibpath_var=SHLIB_PATH
12390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12392 soname_spec='$libname$release$shared_ext$major'
12395 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12396 postinstall_cmds='chmod 555 $lib'
12397 # or fails outright, so override atomically:
12398 install_override_mode=555
12402 version_type=linux # correct to gnu/linux during the next big refactor
12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12406 soname_spec='$libname$release$shared_ext$major'
12407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=no
12410 hardcode_into_libs=yes
12413 irix5* | irix6* | nonstopux*)
12415 nonstopux*) version_type=nonstopux ;;
12417 if test yes = "$lt_cv_prog_gnu_ld"; then
12418 version_type=linux # correct to gnu/linux during the next big refactor
12425 soname_spec='$libname$release$shared_ext$major'
12426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12428 irix5* | nonstopux*)
12429 libsuff= shlibsuff=
12432 case $LD in # libtool.m4 will add one of these switches to LD
12433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12434 libsuff= shlibsuff= libmagic=32-bit;;
12435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12436 libsuff=32 shlibsuff=N32 libmagic=N32;;
12437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12439 *) libsuff= shlibsuff= libmagic=never-match;;
12443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12444 shlibpath_overrides_runpath=no
12445 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12446 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12447 hardcode_into_libs=yes
12450 # No shared lib support for Linux oldld, aout, or coff.
12451 linux*oldld* | linux*aout* | linux*coff*)
12456 version_type=none # Android doesn't support versioned libraries.
12459 library_names_spec='$libname$release$shared_ext'
12460 soname_spec='$libname$release$shared_ext'
12462 shlibpath_var=LD_LIBRARY_PATH
12463 shlibpath_overrides_runpath=yes
12465 # This implies no fast_install, which is unacceptable.
12466 # Some rework will be needed to allow for fast_install
12467 # before this can be enabled.
12468 hardcode_into_libs=yes
12470 dynamic_linker='Android linker'
12471 # Don't embed -rpath directories since the linker doesn't support them.
12472 hardcode_libdir_flag_spec='-L$libdir'
12475 # This must be glibc/ELF.
12476 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12477 version_type=linux # correct to gnu/linux during the next big refactor
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481 soname_spec='$libname$release$shared_ext$major'
12482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12483 shlibpath_var=LD_LIBRARY_PATH
12484 shlibpath_overrides_runpath=no
12486 # Some binutils ld are patched to set DT_RUNPATH
12487 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12488 $as_echo_n "(cached) " >&6
12490 lt_cv_shlibpath_overrides_runpath=no
12491 save_LDFLAGS=$LDFLAGS
12492 save_libdir=$libdir
12493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12506 if ac_fn_c_try_link "$LINENO"; then :
12507 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12508 lt_cv_shlibpath_overrides_runpath=yes
12511 rm -f core conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LDFLAGS=$save_LDFLAGS
12514 libdir=$save_libdir
12518 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12520 # This implies no fast_install, which is unacceptable.
12521 # Some rework will be needed to allow for fast_install
12522 # before this can be enabled.
12523 hardcode_into_libs=yes
12525 # Ideally, we could use ldconfig to report *all* directores which are
12526 # searched for libraries, however this is still not possible. Aside from not
12527 # being certain /sbin/ldconfig is available, command
12528 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12529 # even though it is searched at run-time. Try to do the best guess by
12530 # appending ld.so.conf contents (and includes) to the search path.
12531 if test -f /etc/ld.so.conf; then
12532 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' ' '`
12533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12536 # We used to test for /lib/ld.so.1 and disable shared libraries on
12537 # powerpc, because MkLinux only supported shared libraries with the
12538 # GNU dynamic linker. Since this was broken with cross compilers,
12539 # most powerpc-linux boxes support dynamic linking these days and
12540 # people can always --disable-shared, the test was removed, and we
12541 # assume the GNU/Linux dynamic linker is in use.
12542 dynamic_linker='GNU/Linux ld.so'
12549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12550 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12552 dynamic_linker='NetBSD (a.out) ld.so'
12554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12555 soname_spec='$libname$release$shared_ext$major'
12556 dynamic_linker='NetBSD ld.elf_so'
12558 shlibpath_var=LD_LIBRARY_PATH
12559 shlibpath_overrides_runpath=yes
12560 hardcode_into_libs=yes
12564 version_type=linux # correct to gnu/linux during the next big refactor
12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 shlibpath_overrides_runpath=yes
12574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12575 soname_spec='$libname$release$shared_ext$major'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 shlibpath_overrides_runpath=no
12578 hardcode_into_libs=yes
12579 dynamic_linker='ldqnx.so'
12582 openbsd* | bitrig*)
12584 sys_lib_dlsearch_path_spec=/usr/lib
12586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12591 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 shlibpath_overrides_runpath=yes
12598 libname_spec='$name'
12599 version_type=windows
12603 # OS/2 can only load a DLL with a base name of 8 characters or less.
12604 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12605 v=$($ECHO $release$versuffix | tr -d .-);
12606 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12607 $ECHO $n$v`$shared_ext'
12608 library_names_spec='${libname}_dll.$libext'
12609 dynamic_linker='OS/2 ld.exe'
12610 shlibpath_var=BEGINLIBPATH
12611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12613 postinstall_cmds='base_file=`basename \$file`~
12614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12615 dldir=$destdir/`dirname \$dlpath`~
12616 test -d \$dldir || mkdir -p \$dldir~
12617 $install_prog $dir/$dlname \$dldir/$dlname~
12618 chmod a+x \$dldir/$dlname~
12619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12623 dlpath=$dir/\$dldll~
12627 osf3* | osf4* | osf5*)
12631 soname_spec='$libname$release$shared_ext$major'
12632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12633 shlibpath_var=LD_LIBRARY_PATH
12634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12643 version_type=linux # correct to gnu/linux during the next big refactor
12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647 soname_spec='$libname$release$shared_ext$major'
12648 shlibpath_var=LD_LIBRARY_PATH
12649 shlibpath_overrides_runpath=yes
12650 hardcode_into_libs=yes
12651 # ldd complains unless libraries are executable
12652 postinstall_cmds='chmod +x $lib'
12657 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12658 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12659 shlibpath_var=LD_LIBRARY_PATH
12660 shlibpath_overrides_runpath=yes
12661 if test yes = "$with_gnu_ld"; then
12668 version_type=linux # correct to gnu/linux during the next big refactor
12669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12670 soname_spec='$libname$release$shared_ext$major'
12671 shlibpath_var=LD_LIBRARY_PATH
12672 case $host_vendor in
12674 shlibpath_overrides_runpath=no
12676 runpath_var=LD_RUN_PATH
12684 shlibpath_overrides_runpath=no
12685 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12691 if test -d /usr/nec; then
12692 version_type=linux # correct to gnu/linux during the next big refactor
12693 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12694 soname_spec='$libname$shared_ext.$major'
12695 shlibpath_var=LD_LIBRARY_PATH
12699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12704 soname_spec='$libname$release$shared_ext$major'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 shlibpath_overrides_runpath=yes
12707 hardcode_into_libs=yes
12708 if test yes = "$with_gnu_ld"; then
12709 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12711 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12714 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12718 sys_lib_dlsearch_path_spec='/usr/lib'
12722 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12723 version_type=linux # correct to gnu/linux during the next big refactor
12726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12727 shlibpath_var=LD_LIBRARY_PATH
12728 shlibpath_overrides_runpath=no
12729 hardcode_into_libs=yes
12733 version_type=linux # correct to gnu/linux during the next big refactor
12734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12735 soname_spec='$libname$release$shared_ext$major'
12736 shlibpath_var=LD_LIBRARY_PATH
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12744 $as_echo "$dynamic_linker" >&6; }
12745 test no = "$dynamic_linker" && can_build_shared=no
12747 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12748 if test yes = "$GCC"; then
12749 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12752 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12753 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12756 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12757 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12760 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12761 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12763 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12764 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12766 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12767 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12866 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12868 if test -n "$hardcode_libdir_flag_spec" ||
12869 test -n "$runpath_var" ||
12870 test yes = "$hardcode_automatic"; then
12872 # We can hardcode non-existent directories.
12873 if test no != "$hardcode_direct" &&
12874 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12875 # have to relink, otherwise we might link with an installed library
12876 # when we should be linking with a yet-to-be-installed one
12877 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12878 test no != "$hardcode_minus_L"; then
12879 # Linking always hardcodes the temporary library directory.
12880 hardcode_action=relink
12882 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12883 hardcode_action=immediate
12886 # We cannot hardcode anything, or else we can only hardcode existing
12888 hardcode_action=unsupported
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12891 $as_echo "$hardcode_action" >&6; }
12893 if test relink = "$hardcode_action" ||
12894 test yes = "$inherit_rpath"; then
12895 # Fast installation is not supported
12896 enable_fast_install=no
12897 elif test yes = "$shlibpath_overrides_runpath" ||
12898 test no = "$enable_shared"; then
12899 # Fast installation is not necessary
12900 enable_fast_install=needless
12908 if test yes != "$enable_dlopen"; then
12909 enable_dlopen=unknown
12910 enable_dlopen_self=unknown
12911 enable_dlopen_self_static=unknown
12918 lt_cv_dlopen=load_add_on
12920 lt_cv_dlopen_self=yes
12923 mingw* | pw32* | cegcc*)
12924 lt_cv_dlopen=LoadLibrary
12929 lt_cv_dlopen=dlopen
12934 # if libdl is installed we need to link against it
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12937 if ${ac_cv_lib_dl_dlopen+:} false; then :
12938 $as_echo_n "(cached) " >&6
12940 ac_check_lib_save_LIBS=$LIBS
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_lib_dl_dlopen=yes
12963 ac_cv_lib_dl_dlopen=no
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12972 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12977 lt_cv_dlopen_self=yes
12984 # Don't try to run any link tests for TPF. We know it's impossible
12985 # because TPF is a cross-compiler, and we know how we open DSOs.
12986 lt_cv_dlopen=dlopen
12988 lt_cv_dlopen_self=no
12992 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12993 if test "x$ac_cv_func_shl_load" = xyes; then :
12994 lt_cv_dlopen=shl_load
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12997 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12998 if ${ac_cv_lib_dld_shl_load+:} false; then :
12999 $as_echo_n "(cached) " >&6
13001 ac_check_lib_save_LIBS=$LIBS
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13016 return shl_load ();
13021 if ac_fn_c_try_link "$LINENO"; then :
13022 ac_cv_lib_dld_shl_load=yes
13024 ac_cv_lib_dld_shl_load=no
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13031 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13032 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13033 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13035 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13036 if test "x$ac_cv_func_dlopen" = xyes; then :
13037 lt_cv_dlopen=dlopen
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13041 if ${ac_cv_lib_dl_dlopen+:} false; then :
13042 $as_echo_n "(cached) " >&6
13044 ac_check_lib_save_LIBS=$LIBS
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13064 if ac_fn_c_try_link "$LINENO"; then :
13065 ac_cv_lib_dl_dlopen=yes
13067 ac_cv_lib_dl_dlopen=no
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13071 LIBS=$ac_check_lib_save_LIBS
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13075 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13076 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13079 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13080 if ${ac_cv_lib_svld_dlopen+:} false; then :
13081 $as_echo_n "(cached) " >&6
13083 ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lsvld $LIBS"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13103 if ac_fn_c_try_link "$LINENO"; then :
13104 ac_cv_lib_svld_dlopen=yes
13106 ac_cv_lib_svld_dlopen=no
13108 rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13113 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13114 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13115 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13118 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13119 if ${ac_cv_lib_dld_dld_link+:} false; then :
13120 $as_echo_n "(cached) " >&6
13122 ac_check_lib_save_LIBS=$LIBS
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13137 return dld_link ();
13142 if ac_fn_c_try_link "$LINENO"; then :
13143 ac_cv_lib_dld_dld_link=yes
13145 ac_cv_lib_dld_dld_link=no
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13152 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13153 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13154 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13175 if test no = "$lt_cv_dlopen"; then
13181 case $lt_cv_dlopen in
13183 save_CPPFLAGS=$CPPFLAGS
13184 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13186 save_LDFLAGS=$LDFLAGS
13187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13190 LIBS="$lt_cv_dlopen_libs $LIBS"
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13193 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13194 if ${lt_cv_dlopen_self+:} false; then :
13195 $as_echo_n "(cached) " >&6
13197 if test yes = "$cross_compiling"; then :
13198 lt_cv_dlopen_self=cross
13200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13201 lt_status=$lt_dlunknown
13202 cat > conftest.$ac_ext <<_LT_EOF
13203 #line $LINENO "configure"
13204 #include "confdefs.h"
13213 # define LT_DLGLOBAL RTLD_GLOBAL
13216 # define LT_DLGLOBAL DL_GLOBAL
13218 # define LT_DLGLOBAL 0
13222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13223 find out it does not work in some platform. */
13224 #ifndef LT_DLLAZY_OR_NOW
13226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13229 # define LT_DLLAZY_OR_NOW DL_LAZY
13232 # define LT_DLLAZY_OR_NOW RTLD_NOW
13235 # define LT_DLLAZY_OR_NOW DL_NOW
13237 # define LT_DLLAZY_OR_NOW 0
13244 /* When -fvisibility=hidden is used, assume the code has been annotated
13245 correspondingly for the symbols needed. */
13246 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13247 int fnord () __attribute__((visibility("default")));
13250 int fnord () { return 42; }
13253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13254 int status = $lt_dlunknown;
13258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13262 else puts (dlerror ());
13264 /* dlclose (self); */
13272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13273 (eval $ac_link) 2>&5
13275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13276 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13277 (./conftest; exit; ) >&5 2>/dev/null
13279 case x$lt_status in
13280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13282 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13285 # compilation failed
13286 lt_cv_dlopen_self=no
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13294 $as_echo "$lt_cv_dlopen_self" >&6; }
13296 if test yes = "$lt_cv_dlopen_self"; then
13297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13299 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13300 if ${lt_cv_dlopen_self_static+:} false; then :
13301 $as_echo_n "(cached) " >&6
13303 if test yes = "$cross_compiling"; then :
13304 lt_cv_dlopen_self_static=cross
13306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13307 lt_status=$lt_dlunknown
13308 cat > conftest.$ac_ext <<_LT_EOF
13309 #line $LINENO "configure"
13310 #include "confdefs.h"
13319 # define LT_DLGLOBAL RTLD_GLOBAL
13322 # define LT_DLGLOBAL DL_GLOBAL
13324 # define LT_DLGLOBAL 0
13328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13329 find out it does not work in some platform. */
13330 #ifndef LT_DLLAZY_OR_NOW
13332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13335 # define LT_DLLAZY_OR_NOW DL_LAZY
13338 # define LT_DLLAZY_OR_NOW RTLD_NOW
13341 # define LT_DLLAZY_OR_NOW DL_NOW
13343 # define LT_DLLAZY_OR_NOW 0
13350 /* When -fvisibility=hidden is used, assume the code has been annotated
13351 correspondingly for the symbols needed. */
13352 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13353 int fnord () __attribute__((visibility("default")));
13356 int fnord () { return 42; }
13359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13360 int status = $lt_dlunknown;
13364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13368 else puts (dlerror ());
13370 /* dlclose (self); */
13378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13379 (eval $ac_link) 2>&5
13381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13383 (./conftest; exit; ) >&5 2>/dev/null
13385 case x$lt_status in
13386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13391 # compilation failed
13392 lt_cv_dlopen_self_static=no
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13400 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13403 CPPFLAGS=$save_CPPFLAGS
13404 LDFLAGS=$save_LDFLAGS
13409 case $lt_cv_dlopen_self in
13410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13411 *) enable_dlopen_self=unknown ;;
13414 case $lt_cv_dlopen_self_static in
13415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13416 *) enable_dlopen_self_static=unknown ;;
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13439 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13440 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13441 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13442 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13444 $as_echo "yes" >&6; }
13446 # FIXME - insert some real tests, host_os isn't really good enough
13449 if test -n "$STRIP"; then
13450 striplib="$STRIP -x"
13451 old_striplib="$STRIP -S"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13477 # Report what library types will actually be built
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13479 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13481 $as_echo "$can_build_shared" >&6; }
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13484 $as_echo_n "checking whether to build shared libraries... " >&6; }
13485 test no = "$can_build_shared" && enable_shared=no
13487 # On AIX, shared libraries and static libraries use the same namespace, and
13488 # are all built from PIC.
13491 test yes = "$enable_shared" && enable_static=no
13492 if test -n "$RANLIB"; then
13493 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13494 postinstall_cmds='$RANLIB $lib'
13499 if test ia64 != "$host_cpu"; then
13500 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13501 yes,aix,yes) ;; # shared object as lib.so file only
13502 yes,svr4,*) ;; # shared object as lib.so archive member only
13503 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13509 $as_echo "$enable_shared" >&6; }
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13512 $as_echo_n "checking whether to build static libraries... " >&6; }
13513 # Make sure either enable_shared or enable_static is yes.
13514 test yes = "$enable_shared" || enable_static=yes
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13516 $as_echo "$enable_static" >&6; }
13523 ac_cpp='$CPP $CPPFLAGS'
13524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13530 if test -n "$CXX" && ( test no != "$CXX" &&
13531 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13532 (test g++ != "$CXX"))); then
13534 ac_cpp='$CXXCPP $CPPFLAGS'
13535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13539 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13540 if test -z "$CXXCPP"; then
13541 if ${ac_cv_prog_CXXCPP+:} false; then :
13542 $as_echo_n "(cached) " >&6
13544 # Double quotes because CXXCPP needs to be expanded
13545 for CXXCPP in "$CXX -E" "/lib/cpp"
13547 ac_preproc_ok=false
13548 for ac_cxx_preproc_warn_flag in '' yes
13550 # Use a header file that comes with gcc, so configuring glibc
13551 # with a fresh cross-compiler works.
13552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13553 # <limits.h> exists even on freestanding compilers.
13554 # On the NeXT, cc -E runs the code through the compiler's parser,
13555 # not just through cpp. "Syntax error" is here to catch this case.
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13559 # include <limits.h>
13561 # include <assert.h>
13565 if ac_fn_cxx_try_cpp "$LINENO"; then :
13568 # Broken: fails on valid input.
13571 rm -f conftest.err conftest.i conftest.$ac_ext
13573 # OK, works on sane cases. Now check whether nonexistent headers
13574 # can be detected and how.
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 #include <ac_nonexistent.h>
13579 if ac_fn_cxx_try_cpp "$LINENO"; then :
13580 # Broken: success on invalid input.
13583 # Passes both tests.
13587 rm -f conftest.err conftest.i conftest.$ac_ext
13590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13591 rm -f conftest.i conftest.err conftest.$ac_ext
13592 if $ac_preproc_ok; then :
13597 ac_cv_prog_CXXCPP=$CXXCPP
13600 CXXCPP=$ac_cv_prog_CXXCPP
13602 ac_cv_prog_CXXCPP=$CXXCPP
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13605 $as_echo "$CXXCPP" >&6; }
13606 ac_preproc_ok=false
13607 for ac_cxx_preproc_warn_flag in '' yes
13609 # Use a header file that comes with gcc, so configuring glibc
13610 # with a fresh cross-compiler works.
13611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13612 # <limits.h> exists even on freestanding compilers.
13613 # On the NeXT, cc -E runs the code through the compiler's parser,
13614 # not just through cpp. "Syntax error" is here to catch this case.
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13618 # include <limits.h>
13620 # include <assert.h>
13624 if ac_fn_cxx_try_cpp "$LINENO"; then :
13627 # Broken: fails on valid input.
13630 rm -f conftest.err conftest.i conftest.$ac_ext
13632 # OK, works on sane cases. Now check whether nonexistent headers
13633 # can be detected and how.
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 #include <ac_nonexistent.h>
13638 if ac_fn_cxx_try_cpp "$LINENO"; then :
13639 # Broken: success on invalid input.
13642 # Passes both tests.
13646 rm -f conftest.err conftest.i conftest.$ac_ext
13649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13650 rm -f conftest.i conftest.err conftest.$ac_ext
13651 if $ac_preproc_ok; then :
13654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13656 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13657 See \`config.log' for more details" "$LINENO" 5; }
13661 ac_cpp='$CPP $CPPFLAGS'
13662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667 _lt_caught_CXX_error=yes
13671 ac_cpp='$CXXCPP $CPPFLAGS'
13672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13676 archive_cmds_need_lc_CXX=no
13677 allow_undefined_flag_CXX=
13678 always_export_symbols_CXX=no
13679 archive_expsym_cmds_CXX=
13680 compiler_needs_object_CXX=no
13681 export_dynamic_flag_spec_CXX=
13682 hardcode_direct_CXX=no
13683 hardcode_direct_absolute_CXX=no
13684 hardcode_libdir_flag_spec_CXX=
13685 hardcode_libdir_separator_CXX=
13686 hardcode_minus_L_CXX=no
13687 hardcode_shlibpath_var_CXX=unsupported
13688 hardcode_automatic_CXX=no
13689 inherit_rpath_CXX=no
13691 module_expsym_cmds_CXX=
13692 link_all_deplibs_CXX=unknown
13693 old_archive_cmds_CXX=$old_archive_cmds
13694 reload_flag_CXX=$reload_flag
13695 reload_cmds_CXX=$reload_cmds
13696 no_undefined_flag_CXX=
13697 whole_archive_flag_spec_CXX=
13698 enable_shared_with_static_runtimes_CXX=no
13700 # Source file extension for C++ test sources.
13703 # Object file extension for compiled C++ test sources.
13707 # No sense in running all these tests if we already determined that
13708 # the CXX compiler isn't working. Some variables (like enable_shared)
13709 # are currently assumed to apply to all compilers on this platform,
13710 # and will be corrupted by setting them based on a non-working compiler.
13711 if test yes != "$_lt_caught_CXX_error"; then
13712 # Code to be used in simple compile tests
13713 lt_simple_compile_test_code="int some_variable = 0;"
13715 # Code to be used in simple link tests
13716 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13725 # If no C compiler was specified, use CC.
13728 # If no C compiler flags were specified, use CFLAGS.
13729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13731 # Allow CC to be a program name with arguments.
13735 # save warnings/boilerplate of simple test code
13736 ac_outfile=conftest.$ac_objext
13737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13739 _lt_compiler_boilerplate=`cat conftest.err`
13742 ac_outfile=conftest.$ac_objext
13743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13745 _lt_linker_boilerplate=`cat conftest.err`
13749 # Allow CC to be a program name with arguments.
13751 lt_save_CFLAGS=$CFLAGS
13755 lt_save_with_gnu_ld=$with_gnu_ld
13756 lt_save_path_LD=$lt_cv_path_LD
13757 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13758 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13760 $as_unset lt_cv_prog_gnu_ld
13762 if test -n "${lt_cv_path_LDCXX+set}"; then
13763 lt_cv_path_LD=$lt_cv_path_LDCXX
13765 $as_unset lt_cv_path_LD
13767 test -z "${LDCXX+set}" || LD=$LDCXX
13772 func_cc_basename $compiler
13773 cc_basename=$func_cc_basename_result
13776 if test -n "$compiler"; then
13777 # We don't want -fno-exception when compiling C++ code, so set the
13778 # no_builtin_flag separately
13779 if test yes = "$GXX"; then
13780 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13782 lt_prog_compiler_no_builtin_flag_CXX=
13785 if test yes = "$GXX"; then
13786 # Set up default GNU C++ configuration
13790 # Check whether --with-gnu-ld was given.
13791 if test "${with_gnu_ld+set}" = set; then :
13792 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13798 if test yes = "$GCC"; then
13799 # Check if gcc -print-prog-name=ld gives a path.
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13801 $as_echo_n "checking for ld used by $CC... " >&6; }
13804 # gcc leaves a trailing carriage return, which upsets mingw
13805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13810 # Accept absolute paths.
13812 re_direlt='/[^/][^/]*/\.\./'
13813 # Canonicalize the pathname of ld
13814 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13815 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13816 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13818 test -z "$LD" && LD=$ac_prog
13821 # If it fails, then pretend we aren't using GCC.
13825 # If it is relative, then search for the first ld in PATH.
13826 with_gnu_ld=unknown
13829 elif test yes = "$with_gnu_ld"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13831 $as_echo_n "checking for GNU ld... " >&6; }
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13834 $as_echo_n "checking for non-GNU ld... " >&6; }
13836 if ${lt_cv_path_LD+:} false; then :
13837 $as_echo_n "(cached) " >&6
13839 if test -z "$LD"; then
13840 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13841 for ac_dir in $PATH; do
13843 test -z "$ac_dir" && ac_dir=.
13844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13845 lt_cv_path_LD=$ac_dir/$ac_prog
13846 # Check to see if the program is GNU ld. I'd rather use --version,
13847 # but apparently some variants of GNU ld only accept -v.
13848 # Break only if it was the GNU/non-GNU ld that we prefer.
13849 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13850 *GNU* | *'with BFD'*)
13851 test no != "$with_gnu_ld" && break
13854 test yes != "$with_gnu_ld" && break
13861 lt_cv_path_LD=$LD # Let the user override the test with a path.
13866 if test -n "$LD"; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13868 $as_echo "$LD" >&6; }
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13873 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13875 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13876 if ${lt_cv_prog_gnu_ld+:} false; then :
13877 $as_echo_n "(cached) " >&6
13879 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13880 case `$LD -v 2>&1 </dev/null` in
13881 *GNU* | *'with BFD'*)
13882 lt_cv_prog_gnu_ld=yes
13885 lt_cv_prog_gnu_ld=no
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13890 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13891 with_gnu_ld=$lt_cv_prog_gnu_ld
13899 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13900 # archiving commands below assume that GNU ld is being used.
13901 if test yes = "$with_gnu_ld"; then
13902 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13903 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'
13905 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13906 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13908 # If archive_cmds runs LD, not CC, wlarc should be empty
13909 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13910 # investigate it a little bit more. (MM)
13913 # ancient GNU ld didn't support --whole-archive et. al.
13914 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13915 $GREP 'no-whole-archive' > /dev/null; then
13916 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13918 whole_archive_flag_spec_CXX=
13924 # A generic and very simple default shared library creation
13925 # command for GNU C++ for the case where it uses the native
13926 # linker, instead of GNU ld. If possible, this setting should
13927 # overridden to take advantage of the native linker features on
13928 # the platform it is being used on.
13929 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13932 # Commands to make compiler produce verbose output that lists
13933 # what "hidden" libraries, object files and flags are used when
13934 # linking a shared library.
13935 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13943 # PORTME: fill in a description of your system's C++ link characteristics
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13945 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13949 # FIXME: insert proper C++ library support
13953 if test ia64 = "$host_cpu"; then
13954 # On IA64, the linker does run time linking by default, so we don't
13955 # have to do anything special.
13956 aix_use_runtimelinking=no
13957 exp_sym_flag='-Bexport'
13960 aix_use_runtimelinking=no
13962 # Test if we are trying to use run time linking or normal
13963 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13964 # have runtime linking enabled, and use it for executables.
13965 # For shared libraries, we enable/disable runtime linking
13966 # depending on the kind of the shared library created -
13967 # when "with_aix_soname,aix_use_runtimelinking" is:
13968 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13969 # "aix,yes" lib.so shared, rtl:yes, for executables
13970 # lib.a static archive
13971 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13972 # lib.a(lib.so.V) shared, rtl:no, for executables
13973 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13974 # lib.a(lib.so.V) shared, rtl:no
13975 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13976 # lib.a static archive
13977 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13978 for ld_flag in $LDFLAGS; do
13981 aix_use_runtimelinking=yes
13986 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13987 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13988 # so we don't have lib.a shared libs to link our executables.
13989 # We have to force runtime linking in this case.
13990 aix_use_runtimelinking=yes
13991 LDFLAGS="$LDFLAGS -Wl,-brtl"
13996 exp_sym_flag='-bexport'
13997 no_entry_flag='-bnoentry'
14000 # When large executables or shared objects are built, AIX ld can
14001 # have problems creating the table of contents. If linking a library
14002 # or program results in "error TOC overflow" add -mminimal-toc to
14003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14006 archive_cmds_CXX=''
14007 hardcode_direct_CXX=yes
14008 hardcode_direct_absolute_CXX=yes
14009 hardcode_libdir_separator_CXX=':'
14010 link_all_deplibs_CXX=yes
14011 file_list_spec_CXX='$wl-f,'
14012 case $with_aix_soname,$aix_use_runtimelinking in
14013 aix,*) ;; # no import file
14014 svr4,* | *,yes) # use import file
14015 # The Import File defines what to hardcode.
14016 hardcode_direct_CXX=no
14017 hardcode_direct_absolute_CXX=no
14021 if test yes = "$GXX"; then
14022 case $host_os in aix4.[012]|aix4.[012].*)
14023 # We only want to do this on AIX 4.2 and lower, the check
14024 # below for broken collect2 doesn't work under 4.3+
14025 collect2name=`$CC -print-prog-name=collect2`
14026 if test -f "$collect2name" &&
14027 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14029 # We have reworked collect2
14032 # We have old collect2
14033 hardcode_direct_CXX=unsupported
14034 # It fails to find uninstalled libraries when the uninstalled
14035 # path is not listed in the libpath. Setting hardcode_minus_L
14036 # to unsupported forces relinking
14037 hardcode_minus_L_CXX=yes
14038 hardcode_libdir_flag_spec_CXX='-L$libdir'
14039 hardcode_libdir_separator_CXX=
14042 shared_flag='-shared'
14043 if test yes = "$aix_use_runtimelinking"; then
14044 shared_flag=$shared_flag' $wl-G'
14046 # Need to ensure runtime linking is disabled for the traditional
14047 # shared library, or the linker may eventually find shared libraries
14048 # /with/ Import File - we do not want to mix them.
14049 shared_flag_aix='-shared'
14050 shared_flag_svr4='-shared $wl-G'
14053 if test ia64 = "$host_cpu"; then
14054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14055 # chokes on -Wl,-G. The following line is correct:
14058 if test yes = "$aix_use_runtimelinking"; then
14059 shared_flag='$wl-G'
14061 shared_flag='$wl-bM:SRE'
14063 shared_flag_aix='$wl-bM:SRE'
14064 shared_flag_svr4='$wl-G'
14068 export_dynamic_flag_spec_CXX='$wl-bexpall'
14069 # It seems that -bexpall does not export symbols beginning with
14070 # underscore (_), so it is better to generate a list of symbols to
14072 always_export_symbols_CXX=yes
14073 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14074 # Warning - without using the other runtime loading flags (-brtl),
14075 # -berok will link without error, but may produce a broken library.
14076 # The "-G" linker flag allows undefined symbols.
14077 no_undefined_flag_CXX='-bernotok'
14078 # Determine the default libpath from the value encoded in an empty
14080 if test set = "${lt_cv_aix_libpath+set}"; then
14081 aix_libpath=$lt_cv_aix_libpath
14083 if ${lt_cv_aix_libpath__CXX+:} false; then :
14084 $as_echo_n "(cached) " >&6
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14097 if ac_fn_cxx_try_link "$LINENO"; then :
14099 lt_aix_libpath_sed='
14100 /Import File Strings/,/^$/ {
14102 s/^0 *\([^ ]*\) *$/\1/
14106 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14107 # Check for a 64-bit object if we didn't find anything.
14108 if test -z "$lt_cv_aix_libpath__CXX"; then
14109 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14112 rm -f core conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
14114 if test -z "$lt_cv_aix_libpath__CXX"; then
14115 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14120 aix_libpath=$lt_cv_aix_libpath__CXX
14123 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14125 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14127 if test ia64 = "$host_cpu"; then
14128 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14129 allow_undefined_flag_CXX="-z nodefs"
14130 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"
14132 # Determine the default libpath from the value encoded in an
14133 # empty executable.
14134 if test set = "${lt_cv_aix_libpath+set}"; then
14135 aix_libpath=$lt_cv_aix_libpath
14137 if ${lt_cv_aix_libpath__CXX+:} false; then :
14138 $as_echo_n "(cached) " >&6
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14151 if ac_fn_cxx_try_link "$LINENO"; then :
14153 lt_aix_libpath_sed='
14154 /Import File Strings/,/^$/ {
14156 s/^0 *\([^ ]*\) *$/\1/
14160 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14161 # Check for a 64-bit object if we didn't find anything.
14162 if test -z "$lt_cv_aix_libpath__CXX"; then
14163 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 if test -z "$lt_cv_aix_libpath__CXX"; then
14169 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14174 aix_libpath=$lt_cv_aix_libpath__CXX
14177 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14178 # Warning - without using the other run time loading flags,
14179 # -berok will link without error, but may produce a broken library.
14180 no_undefined_flag_CXX=' $wl-bernotok'
14181 allow_undefined_flag_CXX=' $wl-berok'
14182 if test yes = "$with_gnu_ld"; then
14183 # We only use this code for GNU lds that support --whole-archive.
14184 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14186 # Exported symbols can be pulled into shared objects from archives
14187 whole_archive_flag_spec_CXX='$convenience'
14189 archive_cmds_need_lc_CXX=yes
14190 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14191 # -brtl affects multiple linker settings, -berok does not and is overridden later
14192 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14193 if test svr4 != "$with_aix_soname"; then
14194 # This is similar to how AIX traditionally builds its shared
14195 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14196 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14198 if test aix != "$with_aix_soname"; then
14199 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14201 # used by -dlpreopen to get the symbols
14202 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14204 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14211 allow_undefined_flag_CXX=unsupported
14212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14213 # support --undefined. This deserves some investigation. FIXME
14214 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14221 case $cc_basename in
14223 # FIXME: insert proper C++ library support
14229 cygwin* | mingw* | pw32* | cegcc*)
14230 case $GXX,$cc_basename in
14233 # hardcode_libdir_flag_spec is actually meaningless, as there is
14234 # no search path for DLLs.
14235 hardcode_libdir_flag_spec_CXX=' '
14236 allow_undefined_flag_CXX=unsupported
14237 always_export_symbols_CXX=yes
14238 file_list_spec_CXX='@'
14239 # Tell ltmain to make .lib files, not .a files.
14241 # Tell ltmain to make .dll files, not .so files.
14243 # FIXME: Setting linknames here is a bad hack.
14244 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14245 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14246 cp "$export_symbols" "$output_objdir/$soname.def";
14247 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14249 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14251 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14253 # The linker will not automatically build a static lib if we build a DLL.
14254 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14255 enable_shared_with_static_runtimes_CXX=yes
14257 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14258 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14259 lt_tool_outputfile="@TOOL_OUTPUT@"~
14260 case $lt_outputfile in
14263 lt_outputfile=$lt_outputfile.exe
14264 lt_tool_outputfile=$lt_tool_outputfile.exe
14267 func_to_tool_file "$lt_outputfile"~
14268 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14269 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14270 $RM "$lt_outputfile.manifest";
14275 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14276 # as there is no search path for DLLs.
14277 hardcode_libdir_flag_spec_CXX='-L$libdir'
14278 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14279 allow_undefined_flag_CXX=unsupported
14280 always_export_symbols_CXX=no
14281 enable_shared_with_static_runtimes_CXX=yes
14283 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14284 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'
14285 # If the export-symbols file already is a .def file, use it as
14286 # is; otherwise, prepend EXPORTS...
14287 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14288 cp $export_symbols $output_objdir/$soname.def;
14290 echo EXPORTS > $output_objdir/$soname.def;
14291 cat $export_symbols >> $output_objdir/$soname.def;
14293 $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'
14300 darwin* | rhapsody*)
14303 archive_cmds_need_lc_CXX=no
14304 hardcode_direct_CXX=no
14305 hardcode_automatic_CXX=yes
14306 hardcode_shlibpath_var_CXX=unsupported
14307 if test yes = "$lt_cv_ld_force_load"; then
14308 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\"`'
14311 whole_archive_flag_spec_CXX=''
14313 link_all_deplibs_CXX=yes
14314 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14315 case $cc_basename in
14316 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14317 *) _lt_dar_can_shared=$GCC ;;
14319 if test yes = "$_lt_dar_can_shared"; then
14320 output_verbose_link_cmd=func_echo_all
14321 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"
14322 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14323 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"
14324 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"
14325 if test yes != "$lt_cv_apple_cc_single_mod"; then
14326 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"
14327 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"
14337 hardcode_libdir_flag_spec_CXX='-L$libdir'
14338 hardcode_minus_L_CXX=yes
14339 allow_undefined_flag_CXX=unsupported
14341 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14342 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14343 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14344 $ECHO EXPORTS >> $output_objdir/$libname.def~
14345 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14346 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14347 emximp -o $lib $output_objdir/$libname.def'
14348 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14349 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14350 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14351 $ECHO EXPORTS >> $output_objdir/$libname.def~
14352 prefix_cmds="$SED"~
14353 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14354 prefix_cmds="$prefix_cmds -e 1d";
14356 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14357 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14359 emximp -o $lib $output_objdir/$libname.def'
14360 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14361 enable_shared_with_static_runtimes_CXX=yes
14365 case $cc_basename in
14367 # FIXME: insert proper C++ library support
14371 # Green Hills C++ Compiler
14372 # FIXME: insert proper C++ library support
14376 # FIXME: insert proper C++ library support
14383 # C++ shared libraries reported to be fairly broken before
14389 archive_cmds_need_lc_CXX=no
14392 freebsd* | dragonfly*)
14393 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14399 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14400 link_all_deplibs_CXX=yes
14404 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14405 hardcode_libdir_separator_CXX=:
14406 export_dynamic_flag_spec_CXX='$wl-E'
14407 hardcode_direct_CXX=yes
14408 hardcode_minus_L_CXX=yes # Not in the search PATH,
14409 # but as the default
14410 # location of the library.
14412 case $cc_basename in
14414 # FIXME: insert proper C++ library support
14418 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14419 # Commands to make compiler produce verbose output that lists
14420 # what "hidden" libraries, object files and flags are used when
14421 # linking a shared library.
14423 # There doesn't appear to be a way to prevent this compiler from
14424 # explicitly linking system object files so we need to strip them
14425 # from the output so that they don't get included in the library
14427 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"'
14430 if test yes = "$GXX"; then
14431 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14433 # FIXME: insert proper C++ library support
14441 if test no = "$with_gnu_ld"; then
14442 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14443 hardcode_libdir_separator_CXX=:
14449 export_dynamic_flag_spec_CXX='$wl-E'
14455 hardcode_direct_CXX=no
14456 hardcode_shlibpath_var_CXX=no
14459 hardcode_direct_CXX=yes
14460 hardcode_direct_absolute_CXX=yes
14461 hardcode_minus_L_CXX=yes # Not in the search PATH,
14462 # but as the default
14463 # location of the library.
14467 case $cc_basename in
14469 # FIXME: insert proper C++ library support
14475 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14478 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14481 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14484 # Commands to make compiler produce verbose output that lists
14485 # what "hidden" libraries, object files and flags are used when
14486 # linking a shared library.
14488 # There doesn't appear to be a way to prevent this compiler from
14489 # explicitly linking system object files so we need to strip them
14490 # from the output so that they don't get included in the library
14492 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"'
14495 if test yes = "$GXX"; then
14496 if test no = "$with_gnu_ld"; then
14499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14502 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14505 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14510 # FIXME: insert proper C++ library support
14518 hardcode_direct_CXX=no
14519 hardcode_shlibpath_var_CXX=no
14520 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14521 export_dynamic_flag_spec_CXX='$wl-E'
14522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523 # Instead, shared libraries are loaded at an image base (0x10000000 by
14524 # default) and relocated if they conflict, which is a slow very memory
14525 # consuming and fragmenting process. To avoid this, we pick a random,
14526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14528 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'
14529 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'
14532 case $cc_basename in
14535 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'
14537 # Archives containing C++ object files must be created using
14538 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14539 # necessary to make sure instantiated templates are included
14541 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14544 if test yes = "$GXX"; then
14545 if test no = "$with_gnu_ld"; then
14546 archive_cmds_CXX='$CC -shared $pic_flag -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'
14548 archive_cmds_CXX='$CC -shared $pic_flag -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'
14551 link_all_deplibs_CXX=yes
14554 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14555 hardcode_libdir_separator_CXX=:
14556 inherit_rpath_CXX=yes
14559 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14560 case $cc_basename in
14562 # Kuck and Associates, Inc. (KAI) C++ Compiler
14564 # KCC will only create a shared library if the output file
14565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14566 # to its proper name (with version) after linking.
14567 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'
14568 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'
14569 # Commands to make compiler produce verbose output that lists
14570 # what "hidden" libraries, object files and flags are used when
14571 # linking a shared library.
14573 # There doesn't appear to be a way to prevent this compiler from
14574 # explicitly linking system object files so we need to strip them
14575 # from the output so that they don't get included in the library
14577 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"'
14579 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14580 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14582 # Archives containing C++ object files must be created using
14583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14589 # version 8.0 and above of icpc choke on multiply defined symbols
14590 # if we add $predep_objects and $postdep_objects, however 7.1 and
14591 # earlier do not add the objects themselves.
14592 case `$CC -V 2>&1` in
14594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14595 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'
14597 *) # Version 8.0 or newer
14600 ia64*) tmp_idyn=' -i_dynamic';;
14602 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14603 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'
14606 archive_cmds_need_lc_CXX=no
14607 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14608 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14609 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14612 # Portland Group C++ compiler
14614 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14615 prelink_cmds_CXX='tpldir=Template.dir~
14617 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14618 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14619 old_archive_cmds_CXX='tpldir=Template.dir~
14621 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14622 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14624 archive_cmds_CXX='tpldir=Template.dir~
14626 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14627 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14628 archive_expsym_cmds_CXX='tpldir=Template.dir~
14630 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14631 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14633 *) # Version 6 and above use weak symbols
14634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14635 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'
14639 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14640 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14641 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'
14645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14646 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'
14648 runpath_var=LD_RUN_PATH
14649 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14650 hardcode_libdir_separator_CXX=:
14652 # Commands to make compiler produce verbose output that lists
14653 # what "hidden" libraries, object files and flags are used when
14654 # linking a shared library.
14656 # There doesn't appear to be a way to prevent this compiler from
14657 # explicitly linking system object files so we need to strip them
14658 # from the output so that they don't get included in the library
14660 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'
14662 xl* | mpixl* | bgxl*)
14663 # IBM XL 8.0 on PPC, with GNU ld
14664 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14665 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14666 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14667 if test yes = "$supports_anon_versioning"; then
14668 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14670 echo "local: *; };" >> $output_objdir/$libname.ver~
14671 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14675 case `$CC -V 2>&1 | sed 5q` in
14678 no_undefined_flag_CXX=' -zdefs'
14679 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680 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'
14681 hardcode_libdir_flag_spec_CXX='-R$libdir'
14682 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'
14683 compiler_needs_object_CXX=yes
14685 # Not sure whether something based on
14686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14688 output_verbose_link_cmd='func_echo_all'
14690 # Archives containing C++ object files must be created using
14691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14692 # necessary to make sure instantiated templates are included
14694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14702 # FIXME: insert proper C++ library support
14707 # FIXME: insert proper C++ library support
14712 case $cc_basename in
14714 # FIXME: insert proper C++ library support
14718 # FIXME: insert proper C++ library support
14725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14728 hardcode_libdir_flag_spec_CXX='-R$libdir'
14729 hardcode_direct_CXX=yes
14730 hardcode_shlibpath_var_CXX=no
14732 # Workaround some broken pre-1.5 toolchains
14733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14740 openbsd* | bitrig*)
14741 if test -f /usr/libexec/ld.so; then
14742 hardcode_direct_CXX=yes
14743 hardcode_shlibpath_var_CXX=no
14744 hardcode_direct_absolute_CXX=yes
14745 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14746 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14748 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14749 export_dynamic_flag_spec_CXX='$wl-E'
14750 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14752 output_verbose_link_cmd=func_echo_all
14758 osf3* | osf4* | osf5*)
14759 case $cc_basename in
14761 # Kuck and Associates, Inc. (KAI) C++ Compiler
14763 # KCC will only create a shared library if the output file
14764 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14765 # to its proper name (with version) after linking.
14766 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'
14768 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14769 hardcode_libdir_separator_CXX=:
14771 # Archives containing C++ object files must be created using
14772 # the KAI C++ compiler.
14774 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14775 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14779 # Rational C++ 2.4.1
14780 # FIXME: insert proper C++ library support
14786 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14787 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'
14788 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14791 allow_undefined_flag_CXX=' -expect_unresolved \*'
14792 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'
14793 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14794 echo "-hidden">> $lib.exp~
14795 $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~
14797 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14801 hardcode_libdir_separator_CXX=:
14803 # Commands to make compiler produce verbose output that lists
14804 # what "hidden" libraries, object files and flags are used when
14805 # linking a shared library.
14807 # There doesn't appear to be a way to prevent this compiler from
14808 # explicitly linking system object files so we need to strip them
14809 # from the output so that they don't get included in the library
14811 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"'
14814 if test yes,no = "$GXX,$with_gnu_ld"; then
14815 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14818 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'
14821 archive_cmds_CXX='$CC -shared $pic_flag -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'
14825 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14826 hardcode_libdir_separator_CXX=:
14828 # Commands to make compiler produce verbose output that lists
14829 # what "hidden" libraries, object files and flags are used when
14830 # linking a shared library.
14831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14834 # FIXME: insert proper C++ library support
14842 # FIXME: insert proper C++ library support
14847 case $cc_basename in
14850 # FIXME: insert proper C++ library support
14855 # FIXME: insert proper C++ library support
14859 # FIXME: insert proper C++ library support
14866 case $cc_basename in
14868 # Sun C++ 4.2, 5.x and Centerline C++
14869 archive_cmds_need_lc_CXX=yes
14870 no_undefined_flag_CXX=' -zdefs'
14871 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14872 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14873 $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'
14875 hardcode_libdir_flag_spec_CXX='-R$libdir'
14876 hardcode_shlibpath_var_CXX=no
14878 solaris2.[0-5] | solaris2.[0-5].*) ;;
14880 # The compiler driver will combine and reorder linker options,
14881 # but understands '-z linker_flag'.
14882 # Supported since Solaris 2.6 (maybe 2.5.1?)
14883 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14886 link_all_deplibs_CXX=yes
14888 output_verbose_link_cmd='func_echo_all'
14890 # Archives containing C++ object files must be created using
14891 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14892 # necessary to make sure instantiated templates are included
14894 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14897 # Green Hills C++ Compiler
14898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14900 # The C++ compiler must be used to create the archive.
14901 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14904 # GNU C++ compiler with Solaris linker
14905 if test yes,no = "$GXX,$with_gnu_ld"; then
14906 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14907 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14908 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14909 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14910 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14912 # Commands to make compiler produce verbose output that lists
14913 # what "hidden" libraries, object files and flags are used when
14914 # linking a shared library.
14915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14917 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14919 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14920 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14921 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14923 # Commands to make compiler produce verbose output that lists
14924 # what "hidden" libraries, object files and flags are used when
14925 # linking a shared library.
14926 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14929 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14931 solaris2.[0-5] | solaris2.[0-5].*) ;;
14933 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14942 no_undefined_flag_CXX='$wl-z,text'
14943 archive_cmds_need_lc_CXX=no
14944 hardcode_shlibpath_var_CXX=no
14945 runpath_var='LD_RUN_PATH'
14947 case $cc_basename in
14949 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 sysv5* | sco3.2v5* | sco5v6*)
14960 # Note: We CANNOT use -z defs as we might desire, because we do not
14961 # link with -lc, and that would cause any symbols used from libc to
14962 # always be unresolved, which means just about no library would
14963 # ever link correctly. If we're not using GNU ld we use -z text
14964 # though, which does catch some bad symbols but isn't as heavy-handed
14966 no_undefined_flag_CXX='$wl-z,text'
14967 allow_undefined_flag_CXX='$wl-z,nodefs'
14968 archive_cmds_need_lc_CXX=no
14969 hardcode_shlibpath_var_CXX=no
14970 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14971 hardcode_libdir_separator_CXX=':'
14972 link_all_deplibs_CXX=yes
14973 export_dynamic_flag_spec_CXX='$wl-Bexport'
14974 runpath_var='LD_RUN_PATH'
14976 case $cc_basename in
14978 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14981 '"$old_archive_cmds_CXX"
14982 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14983 '"$reload_cmds_CXX"
14986 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 case $cc_basename in
14995 # NonStop-UX NCC 3.20
14996 # FIXME: insert proper C++ library support
15000 # FIXME: insert proper C++ library support
15007 # FIXME: insert proper C++ library support
15012 # FIXME: insert proper C++ library support
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15018 $as_echo "$ld_shlibs_CXX" >&6; }
15019 test no = "$ld_shlibs_CXX" && can_build_shared=no
15025 ## There is no encapsulation within the following macros, do not change
15026 ## the running order or otherwise move them around unless you know exactly
15027 ## what you are doing...
15028 # Dependencies to place before and after the object being linked:
15029 predep_objects_CXX=
15030 postdep_objects_CXX=
15033 compiler_lib_search_path_CXX=
15035 cat > conftest.$ac_ext <<_LT_EOF
15039 Foo (void) { a = 0; }
15046 _lt_libdeps_save_CFLAGS=$CFLAGS
15047 case "$CC $CFLAGS " in #(
15048 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15049 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15050 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15054 (eval $ac_compile) 2>&5
15056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15057 test $ac_status = 0; }; then
15058 # Parse the compiler output and extract the necessary
15059 # objects, libraries and library flags.
15061 # Sentinel used to keep track of whether or not we are before
15062 # the conftest object file.
15063 pre_test_object_deps_done=no
15065 for p in `eval "$output_verbose_link_cmd"`; do
15069 # Some compilers place space between "-{L,R}" and the path.
15070 # Remove the space.
15071 if test x-L = "$p" ||
15072 test x-R = "$p"; then
15077 # Expand the sysroot to ease extracting the directories later.
15078 if test -z "$prev"; then
15080 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15081 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15082 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15086 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15088 if test no = "$pre_test_object_deps_done"; then
15091 # Internal compiler library paths should come after those
15092 # provided the user. The postdeps already come after the
15093 # user supplied libs so there is no need to process them.
15094 if test -z "$compiler_lib_search_path_CXX"; then
15095 compiler_lib_search_path_CXX=$prev$p
15097 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15100 # The "-l" case would never come before the object being
15101 # linked, so don't bother handling this case.
15104 if test -z "$postdeps_CXX"; then
15105 postdeps_CXX=$prev$p
15107 postdeps_CXX="${postdeps_CXX} $prev$p"
15113 *.lto.$objext) ;; # Ignore GCC LTO objects
15115 # This assumes that the test object file only shows up
15116 # once in the compiler output.
15117 if test "$p" = "conftest.$objext"; then
15118 pre_test_object_deps_done=yes
15122 if test no = "$pre_test_object_deps_done"; then
15123 if test -z "$predep_objects_CXX"; then
15124 predep_objects_CXX=$p
15126 predep_objects_CXX="$predep_objects_CXX $p"
15129 if test -z "$postdep_objects_CXX"; then
15130 postdep_objects_CXX=$p
15132 postdep_objects_CXX="$postdep_objects_CXX $p"
15137 *) ;; # Ignore the rest.
15145 echo "libtool.m4: error: problem compiling CXX test program"
15148 $RM -f confest.$objext
15149 CFLAGS=$_lt_libdeps_save_CFLAGS
15151 # PORTME: override above test on systems where it is broken
15154 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15155 # hack all around it, let's just trust "g++" to DTRT.
15156 predep_objects_CXX=
15157 postdep_objects_CXX=
15163 case " $postdeps_CXX " in
15164 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15166 compiler_lib_search_dirs_CXX=
15167 if test -n "${compiler_lib_search_path_CXX}"; then
15168 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15201 lt_prog_compiler_wl_CXX=
15202 lt_prog_compiler_pic_CXX=
15203 lt_prog_compiler_static_CXX=
15206 # C++ specific cases for pic, static, wl, etc.
15207 if test yes = "$GXX"; then
15208 lt_prog_compiler_wl_CXX='-Wl,'
15209 lt_prog_compiler_static_CXX='-static'
15213 # All AIX code is PIC.
15214 if test ia64 = "$host_cpu"; then
15215 # AIX 5 now supports IA64 processor
15216 lt_prog_compiler_static_CXX='-Bstatic'
15218 lt_prog_compiler_pic_CXX='-fPIC'
15224 # see comment about AmigaOS4 .so support
15225 lt_prog_compiler_pic_CXX='-fPIC'
15228 # FIXME: we need at least 68020 code to build shared libraries, but
15229 # adding the '-m68020' flag to GCC prevents building anything better,
15231 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15236 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15237 # PIC is the default for these OSes.
15239 mingw* | cygwin* | os2* | pw32* | cegcc*)
15240 # This hack is so that the source file can tell whether it is being
15241 # built for inclusion in a dll (and should export symbols for example).
15242 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15243 # (--disable-auto-import) libraries
15244 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15247 lt_prog_compiler_static_CXX='$wl-static'
15251 darwin* | rhapsody*)
15252 # PIC is the default on this platform
15253 # Common symbols not allowed in MH_DYLIB files
15254 lt_prog_compiler_pic_CXX='-fno-common'
15257 # DJGPP does not support shared libraries at all
15258 lt_prog_compiler_pic_CXX=
15261 # PIC is the default for Haiku.
15262 # The "-static" flag exists, but is broken.
15263 lt_prog_compiler_static_CXX=
15266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15267 # Instead, we relocate shared libraries at runtime.
15270 if test -d /usr/nec; then
15271 lt_prog_compiler_pic_CXX=-Kconform_pic
15275 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15276 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15277 # sets the default TLS model and affects inlining.
15282 lt_prog_compiler_pic_CXX='-fPIC'
15287 # QNX uses GNU C++, but need to define -shared option too, otherwise
15288 # it will coredump.
15289 lt_prog_compiler_pic_CXX='-fPIC -shared'
15292 lt_prog_compiler_pic_CXX='-fPIC'
15298 # All AIX code is PIC.
15299 if test ia64 = "$host_cpu"; then
15300 # AIX 5 now supports IA64 processor
15301 lt_prog_compiler_static_CXX='-Bstatic'
15303 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15307 case $cc_basename in
15309 # Green Hills C++ Compiler
15310 # _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"
15314 mingw* | cygwin* | os2* | pw32* | cegcc*)
15315 # This hack is so that the source file can tell whether it is being
15316 # built for inclusion in a dll (and should export symbols for example).
15317 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15320 case $cc_basename in
15322 lt_prog_compiler_pic_CXX='-KPIC'
15325 # Green Hills C++ Compiler
15326 lt_prog_compiler_pic_CXX='-pic'
15332 freebsd* | dragonfly*)
15333 # FreeBSD uses GNU C++
15335 hpux9* | hpux10* | hpux11*)
15336 case $cc_basename in
15338 lt_prog_compiler_wl_CXX='-Wl,'
15339 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15340 if test ia64 != "$host_cpu"; then
15341 lt_prog_compiler_pic_CXX='+Z'
15345 lt_prog_compiler_wl_CXX='-Wl,'
15346 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15352 lt_prog_compiler_pic_CXX='+Z'
15361 # This is c89, which is MS Visual C++ (no shared libs)
15362 # Anyone wants to do a port?
15364 irix5* | irix6* | nonstopux*)
15365 case $cc_basename in
15367 lt_prog_compiler_wl_CXX='-Wl,'
15368 lt_prog_compiler_static_CXX='-non_shared'
15369 # CC pic flag -KPIC is the default.
15375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15376 case $cc_basename in
15379 lt_prog_compiler_wl_CXX='--backend -Wl,'
15380 lt_prog_compiler_pic_CXX='-fPIC'
15383 # old Intel C++ for x86_64, which still supported -KPIC.
15384 lt_prog_compiler_wl_CXX='-Wl,'
15385 lt_prog_compiler_pic_CXX='-KPIC'
15386 lt_prog_compiler_static_CXX='-static'
15389 # Intel C++, used to be incompatible with GCC.
15390 # ICC 10 doesn't accept -KPIC any more.
15391 lt_prog_compiler_wl_CXX='-Wl,'
15392 lt_prog_compiler_pic_CXX='-fPIC'
15393 lt_prog_compiler_static_CXX='-static'
15396 # Portland Group C++ compiler
15397 lt_prog_compiler_wl_CXX='-Wl,'
15398 lt_prog_compiler_pic_CXX='-fpic'
15399 lt_prog_compiler_static_CXX='-Bstatic'
15403 # Make sure the PIC flag is empty. It appears that all Alpha
15404 # Linux and Compaq Tru64 Unix objects are PIC.
15405 lt_prog_compiler_pic_CXX=
15406 lt_prog_compiler_static_CXX='-non_shared'
15408 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15409 # IBM XL 8.0, 9.0 on PPC and BlueGene
15410 lt_prog_compiler_wl_CXX='-Wl,'
15411 lt_prog_compiler_pic_CXX='-qpic'
15412 lt_prog_compiler_static_CXX='-qstaticlink'
15415 case `$CC -V 2>&1 | sed 5q` in
15418 lt_prog_compiler_pic_CXX='-KPIC'
15419 lt_prog_compiler_static_CXX='-Bstatic'
15420 lt_prog_compiler_wl_CXX='-Qoption ld '
15431 case $cc_basename in
15433 lt_prog_compiler_pic_CXX='-W c,exportall'
15442 # QNX uses GNU C++, but need to define -shared option too, otherwise
15443 # it will coredump.
15444 lt_prog_compiler_pic_CXX='-fPIC -shared'
15446 osf3* | osf4* | osf5*)
15447 case $cc_basename in
15449 lt_prog_compiler_wl_CXX='--backend -Wl,'
15452 # Rational C++ 2.4.1
15453 lt_prog_compiler_pic_CXX='-pic'
15456 # Digital/Compaq C++
15457 lt_prog_compiler_wl_CXX='-Wl,'
15458 # Make sure the PIC flag is empty. It appears that all Alpha
15459 # Linux and Compaq Tru64 Unix objects are PIC.
15460 lt_prog_compiler_pic_CXX=
15461 lt_prog_compiler_static_CXX='-non_shared'
15470 case $cc_basename in
15472 # Sun C++ 4.2, 5.x and Centerline C++
15473 lt_prog_compiler_pic_CXX='-KPIC'
15474 lt_prog_compiler_static_CXX='-Bstatic'
15475 lt_prog_compiler_wl_CXX='-Qoption ld '
15478 # Green Hills C++ Compiler
15479 lt_prog_compiler_pic_CXX='-PIC'
15486 case $cc_basename in
15489 lt_prog_compiler_pic_CXX='-pic'
15490 lt_prog_compiler_static_CXX='-Bstatic'
15494 lt_prog_compiler_pic_CXX='-pic'
15500 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15501 case $cc_basename in
15503 lt_prog_compiler_wl_CXX='-Wl,'
15504 lt_prog_compiler_pic_CXX='-KPIC'
15505 lt_prog_compiler_static_CXX='-Bstatic'
15510 case $cc_basename in
15512 # NonStop-UX NCC 3.20
15513 lt_prog_compiler_pic_CXX='-KPIC'
15522 lt_prog_compiler_can_build_shared_CXX=no
15528 # For platforms that do not support PIC, -DPIC is meaningless:
15530 lt_prog_compiler_pic_CXX=
15533 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15539 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15540 $as_echo_n "(cached) " >&6
15542 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15545 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15546 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15549 # Check to make sure the PIC flag actually works.
15551 if test -n "$lt_prog_compiler_pic_CXX"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15553 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15554 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15555 $as_echo_n "(cached) " >&6
15557 lt_cv_prog_compiler_pic_works_CXX=no
15558 ac_outfile=conftest.$ac_objext
15559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15560 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15561 # Insert the option either (1) after the last *FLAGS variable, or
15562 # (2) before a word containing "conftest.", or (3) at the end.
15563 # Note that $ac_compile itself does not contain backslashes and begins
15564 # with a dollar sign (not a hyphen), so the echo should work correctly.
15565 # The option is referenced via a variable to avoid confusing sed.
15566 lt_compile=`echo "$ac_compile" | $SED \
15567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15569 -e 's:$: $lt_compiler_flag:'`
15570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15571 (eval "$lt_compile" 2>conftest.err)
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 if (exit $ac_status) && test -s "$ac_outfile"; then
15576 # The compiler can only warn and ignore the option if not recognized
15577 # So say no if there are warnings other than the usual output.
15578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15581 lt_cv_prog_compiler_pic_works_CXX=yes
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15588 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15590 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15591 case $lt_prog_compiler_pic_CXX in
15593 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15596 lt_prog_compiler_pic_CXX=
15597 lt_prog_compiler_can_build_shared_CXX=no
15607 # Check to make sure the static flag actually works.
15609 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15611 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15612 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15613 $as_echo_n "(cached) " >&6
15615 lt_cv_prog_compiler_static_works_CXX=no
15616 save_LDFLAGS=$LDFLAGS
15617 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15618 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15620 # The linker can only warn and ignore the option if not recognized
15621 # So say no if there are warnings
15622 if test -s conftest.err; then
15623 # Append any errors to the config.log.
15624 cat conftest.err 1>&5
15625 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15627 if diff conftest.exp conftest.er2 >/dev/null; then
15628 lt_cv_prog_compiler_static_works_CXX=yes
15631 lt_cv_prog_compiler_static_works_CXX=yes
15635 LDFLAGS=$save_LDFLAGS
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15639 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15641 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15644 lt_prog_compiler_static_CXX=
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15652 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15653 $as_echo_n "(cached) " >&6
15655 lt_cv_prog_compiler_c_o_CXX=no
15656 $RM -r conftest 2>/dev/null
15660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15662 lt_compiler_flag="-o out/conftest2.$ac_objext"
15663 # Insert the option either (1) after the last *FLAGS variable, or
15664 # (2) before a word containing "conftest.", or (3) at the end.
15665 # Note that $ac_compile itself does not contain backslashes and begins
15666 # with a dollar sign (not a hyphen), so the echo should work correctly.
15667 lt_compile=`echo "$ac_compile" | $SED \
15668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15670 -e 's:$: $lt_compiler_flag:'`
15671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15672 (eval "$lt_compile" 2>out/conftest.err)
15674 cat out/conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15678 # The compiler can only warn and ignore the option if not recognized
15679 # So say no if there are warnings
15680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15683 lt_cv_prog_compiler_c_o_CXX=yes
15688 # SGI C++ compiler will create directory out/ii_files/ for
15689 # template instantiation
15690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15691 $RM out/* && rmdir out
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15698 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15704 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15705 $as_echo_n "(cached) " >&6
15707 lt_cv_prog_compiler_c_o_CXX=no
15708 $RM -r conftest 2>/dev/null
15712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15714 lt_compiler_flag="-o out/conftest2.$ac_objext"
15715 # Insert the option either (1) after the last *FLAGS variable, or
15716 # (2) before a word containing "conftest.", or (3) at the end.
15717 # Note that $ac_compile itself does not contain backslashes and begins
15718 # with a dollar sign (not a hyphen), so the echo should work correctly.
15719 lt_compile=`echo "$ac_compile" | $SED \
15720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15722 -e 's:$: $lt_compiler_flag:'`
15723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15724 (eval "$lt_compile" 2>out/conftest.err)
15726 cat out/conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15730 # The compiler can only warn and ignore the option if not recognized
15731 # So say no if there are warnings
15732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15735 lt_cv_prog_compiler_c_o_CXX=yes
15740 # SGI C++ compiler will create directory out/ii_files/ for
15741 # template instantiation
15742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15743 $RM out/* && rmdir out
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15750 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15755 hard_links=nottested
15756 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15757 # do not overwrite the value of need_locks provided by the user
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15759 $as_echo_n "checking if we can lock with hard links... " >&6; }
15762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15764 ln conftest.a conftest.b 2>&5 || hard_links=no
15765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15767 $as_echo "$hard_links" >&6; }
15768 if test no = "$hard_links"; then
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15770 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15780 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15782 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15783 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15786 # If we're using GNU nm, then we don't want the "-C" option.
15787 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15788 # Without the "-l" option, or with the "-B" option, AIX nm treats
15789 # weak defined symbols like other global defined symbols, whereas
15790 # GNU nm marks them as "W".
15791 # While the 'weak' keyword is ignored in the Export File, we need
15792 # it in the Import File for the 'aix-soname' feature, so we have
15793 # to replace the "-B" option with "-P" for AIX nm.
15794 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15795 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15797 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15801 export_symbols_cmds_CXX=$ltdll_cmds
15803 cygwin* | mingw* | cegcc*)
15804 case $cc_basename in
15806 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15810 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15820 $as_echo "$ld_shlibs_CXX" >&6; }
15821 test no = "$ld_shlibs_CXX" && can_build_shared=no
15823 with_gnu_ld_CXX=$with_gnu_ld
15831 # Do we need to explicitly link libc?
15833 case "x$archive_cmds_need_lc_CXX" in
15835 # Assume -lc should be added
15836 archive_cmds_need_lc_CXX=yes
15838 if test yes,yes = "$GCC,$enable_shared"; then
15839 case $archive_cmds_CXX in
15841 # FIXME: we may have to deal with multi-command sequences.
15844 # Test whether the compiler implicitly links with -lc since on some
15845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846 # to ld, don't add -lc before -lgcc.
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15849 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15850 $as_echo_n "(cached) " >&6
15853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15856 (eval $ac_compile) 2>&5
15858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859 test $ac_status = 0; } 2>conftest.err; then
15862 libobjs=conftest.$ac_objext
15864 wl=$lt_prog_compiler_wl_CXX
15865 pic_flag=$lt_prog_compiler_pic_CXX
15871 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15872 allow_undefined_flag_CXX=
15873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15874 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877 test $ac_status = 0; }
15879 lt_cv_archive_cmds_need_lc_CXX=no
15881 lt_cv_archive_cmds_need_lc_CXX=yes
15883 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15885 cat conftest.err 1>&5
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15891 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15892 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15963 library_names_spec=
15964 libname_spec='lib$name'
15968 postuninstall_cmds=
15972 shlibpath_overrides_runpath=unknown
15974 dynamic_linker="$host_os ld.so"
15975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15976 need_lib_prefix=unknown
15977 hardcode_into_libs=no
15979 # when you set need_version to no, make sure it does not cause -set_version
15980 # flags to be left without arguments
15981 need_version=unknown
15987 version_type=linux # correct to gnu/linux during the next big refactor
15988 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15989 shlibpath_var=LIBPATH
15991 # AIX 3 has no versioning support, so we append a major version to the name.
15992 soname_spec='$libname$release$shared_ext$major'
15996 version_type=linux # correct to gnu/linux during the next big refactor
15999 hardcode_into_libs=yes
16000 if test ia64 = "$host_cpu"; then
16001 # AIX 5 supports IA64
16002 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16003 shlibpath_var=LD_LIBRARY_PATH
16005 # With GCC up to 2.95.x, collect2 would create an import file
16006 # for dependence libraries. The import file would start with
16007 # the line '#! .'. This would cause the generated library to
16008 # depend on '.', always an invalid library. This was fixed in
16009 # development snapshots of GCC prior to 3.0.
16011 aix4 | aix4.[01] | aix4.[01].*)
16012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16014 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16017 can_build_shared=no
16021 # Using Import Files as archive members, it is possible to support
16022 # filename-based versioning of shared library archives on AIX. While
16023 # this would work for both with and without runtime linking, it will
16024 # prevent static linking of such archives. So we do filename-based
16025 # shared library versioning with .so extension only, which is used
16026 # when both runtime linking and shared linking is enabled.
16027 # Unfortunately, runtime linking may impact performance, so we do
16028 # not want this to be the default eventually. Also, we use the
16029 # versioned .so libs for executables only if there is the -brtl
16030 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16031 # To allow for filename-based versioning support, we need to create
16032 # libNAME.so.V as an archive file, containing:
16033 # *) an Import File, referring to the versioned filename of the
16034 # archive as well as the shared archive member, telling the
16035 # bitwidth (32 or 64) of that shared object, and providing the
16036 # list of exported symbols of that shared object, eventually
16037 # decorated with the 'weak' keyword
16038 # *) the shared object with the F_LOADONLY flag set, to really avoid
16039 # it being seen by the linker.
16040 # At run time we better use the real file rather than another symlink,
16041 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16043 case $with_aix_soname,$aix_use_runtimelinking in
16044 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16045 # soname into executable. Probably we can add versioning support to
16046 # collect2, so additional links can be useful in future.
16047 aix,yes) # traditional libtool
16048 dynamic_linker='AIX unversionable lib.so'
16049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16050 # instead of lib<name>.a to let people know that these are not
16051 # typical AIX shared libraries.
16052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16054 aix,no) # traditional AIX only
16055 dynamic_linker='AIX lib.a(lib.so.V)'
16056 # We preserve .a as extension for shared libraries through AIX4.2
16057 # and later when we are not doing run time linking.
16058 library_names_spec='$libname$release.a $libname.a'
16059 soname_spec='$libname$release$shared_ext$major'
16061 svr4,*) # full svr4 only
16062 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16063 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16064 # We do not specify a path in Import Files, so LIBPATH fires.
16065 shlibpath_overrides_runpath=yes
16067 *,yes) # both, prefer svr4
16068 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16069 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16070 # unpreferred sharedlib libNAME.a needs extra handling
16071 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16072 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16073 # We do not specify a path in Import Files, so LIBPATH fires.
16074 shlibpath_overrides_runpath=yes
16076 *,no) # both, prefer aix
16077 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16078 library_names_spec='$libname$release.a $libname.a'
16079 soname_spec='$libname$release$shared_ext$major'
16080 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16081 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16082 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16085 shlibpath_var=LIBPATH
16092 # Since July 2007 AmigaOS4 officially supports .so libraries.
16093 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16097 library_names_spec='$libname.ixlibrary $libname.a'
16098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16099 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16105 library_names_spec='$libname$shared_ext'
16106 dynamic_linker="$host_os ld.so"
16107 shlibpath_var=LIBRARY_PATH
16111 version_type=linux # correct to gnu/linux during the next big refactor
16113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16114 soname_spec='$libname$release$shared_ext$major'
16115 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16118 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16119 # the default ld.so.conf also contains /usr/contrib/lib and
16120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16121 # libtool to hard-code these into programs
16124 cygwin* | mingw* | pw32* | cegcc*)
16125 version_type=windows
16130 case $GCC,$cc_basename in
16133 library_names_spec='$libname.dll.a'
16134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16135 postinstall_cmds='base_file=`basename \$file`~
16136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16137 dldir=$destdir/`dirname \$dlpath`~
16138 test -d \$dldir || mkdir -p \$dldir~
16139 $install_prog $dir/$dlname \$dldir/$dlname~
16140 chmod a+x \$dldir/$dlname~
16141 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16142 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16145 dlpath=$dir/\$dldll~
16147 shlibpath_overrides_runpath=yes
16151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16152 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16156 # MinGW DLLs use traditional 'lib' prefix
16157 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16160 # pw32 DLLs use 'pw' prefix rather than 'lib'
16161 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16164 dynamic_linker='Win32 ld.exe'
16169 libname_spec='$name'
16170 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16171 library_names_spec='$libname.dll.lib'
16175 sys_lib_search_path_spec=
16178 for lt_path in $LIB
16181 # Let DOS variable expansion print the short 8.3 style file name.
16182 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16183 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16186 # Convert to MSYS style.
16187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16190 # Convert to unix form, then to dos form, then back to unix form
16191 # but this time dos style (no spaces!) so that the unix form looks
16192 # like /cygdrive/c/PROGRA~1:/cygdr...
16193 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16194 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16195 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16198 sys_lib_search_path_spec=$LIB
16199 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16200 # It is most probably a Windows format PATH.
16201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16205 # FIXME: find the short name or the path components, as spaces are
16206 # common. (e.g. "Program Files" -> "PROGRA~1")
16210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16211 postinstall_cmds='base_file=`basename \$file`~
16212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16213 dldir=$destdir/`dirname \$dlpath`~
16214 test -d \$dldir || mkdir -p \$dldir~
16215 $install_prog $dir/$dlname \$dldir/$dlname'
16216 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16217 dlpath=$dir/\$dldll~
16219 shlibpath_overrides_runpath=yes
16220 dynamic_linker='Win32 link.exe'
16224 # Assume MSVC wrapper
16225 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16226 dynamic_linker='Win32 ld.exe'
16229 # FIXME: first we should search . and the directory the executable is in
16233 darwin* | rhapsody*)
16234 dynamic_linker="$host_os dyld"
16235 version_type=darwin
16238 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16239 soname_spec='$libname$release$major$shared_ext'
16240 shlibpath_overrides_runpath=yes
16241 shlibpath_var=DYLD_LIBRARY_PATH
16242 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16248 version_type=linux # correct to gnu/linux during the next big refactor
16251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16252 soname_spec='$libname$release$shared_ext$major'
16253 shlibpath_var=LD_LIBRARY_PATH
16256 freebsd* | dragonfly*)
16257 # DragonFly does not have aout. When/if they implement a new
16258 # versioning mechanism, adjust this.
16259 if test -x /usr/bin/objformat; then
16260 objformat=`/usr/bin/objformat`
16263 freebsd[23].*) objformat=aout ;;
16264 *) objformat=elf ;;
16267 version_type=freebsd-$objformat
16268 case $version_type in
16270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16271 soname_spec='$libname$release$shared_ext$major'
16276 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16280 shlibpath_var=LD_LIBRARY_PATH
16283 shlibpath_overrides_runpath=yes
16285 freebsd3.[01]* | freebsdelf3.[01]*)
16286 shlibpath_overrides_runpath=yes
16287 hardcode_into_libs=yes
16289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16291 shlibpath_overrides_runpath=no
16292 hardcode_into_libs=yes
16294 *) # from 4.6 on, and DragonFly
16295 shlibpath_overrides_runpath=yes
16296 hardcode_into_libs=yes
16302 version_type=linux # correct to gnu/linux during the next big refactor
16305 dynamic_linker="$host_os runtime_loader"
16306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16307 soname_spec='$libname$release$shared_ext$major'
16308 shlibpath_var=LIBRARY_PATH
16309 shlibpath_overrides_runpath=no
16310 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16311 hardcode_into_libs=yes
16314 hpux9* | hpux10* | hpux11*)
16315 # Give a soname corresponding to the major version so that dld.sl refuses to
16316 # link against other versions.
16323 hardcode_into_libs=yes
16324 dynamic_linker="$host_os dld.so"
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16328 soname_spec='$libname$release$shared_ext$major'
16329 if test 32 = "$HPUX_IA64_MODE"; then
16330 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16331 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16334 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16339 hardcode_into_libs=yes
16340 dynamic_linker="$host_os dld.sl"
16341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16344 soname_spec='$libname$release$shared_ext$major'
16345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16350 dynamic_linker="$host_os dld.sl"
16351 shlibpath_var=SHLIB_PATH
16352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16354 soname_spec='$libname$release$shared_ext$major'
16357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16358 postinstall_cmds='chmod 555 $lib'
16359 # or fails outright, so override atomically:
16360 install_override_mode=555
16364 version_type=linux # correct to gnu/linux during the next big refactor
16367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16368 soname_spec='$libname$release$shared_ext$major'
16369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=no
16372 hardcode_into_libs=yes
16375 irix5* | irix6* | nonstopux*)
16377 nonstopux*) version_type=nonstopux ;;
16379 if test yes = "$lt_cv_prog_gnu_ld"; then
16380 version_type=linux # correct to gnu/linux during the next big refactor
16387 soname_spec='$libname$release$shared_ext$major'
16388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16390 irix5* | nonstopux*)
16391 libsuff= shlibsuff=
16394 case $LD in # libtool.m4 will add one of these switches to LD
16395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16396 libsuff= shlibsuff= libmagic=32-bit;;
16397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16398 libsuff=32 shlibsuff=N32 libmagic=N32;;
16399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16401 *) libsuff= shlibsuff= libmagic=never-match;;
16405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16406 shlibpath_overrides_runpath=no
16407 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16408 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16409 hardcode_into_libs=yes
16412 # No shared lib support for Linux oldld, aout, or coff.
16413 linux*oldld* | linux*aout* | linux*coff*)
16418 version_type=none # Android doesn't support versioned libraries.
16421 library_names_spec='$libname$release$shared_ext'
16422 soname_spec='$libname$release$shared_ext'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16427 # This implies no fast_install, which is unacceptable.
16428 # Some rework will be needed to allow for fast_install
16429 # before this can be enabled.
16430 hardcode_into_libs=yes
16432 dynamic_linker='Android linker'
16433 # Don't embed -rpath directories since the linker doesn't support them.
16434 hardcode_libdir_flag_spec_CXX='-L$libdir'
16437 # This must be glibc/ELF.
16438 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16439 version_type=linux # correct to gnu/linux during the next big refactor
16442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16443 soname_spec='$libname$release$shared_ext$major'
16444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 shlibpath_overrides_runpath=no
16448 # Some binutils ld are patched to set DT_RUNPATH
16449 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16450 $as_echo_n "(cached) " >&6
16452 lt_cv_shlibpath_overrides_runpath=no
16453 save_LDFLAGS=$LDFLAGS
16454 save_libdir=$libdir
16455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16468 if ac_fn_cxx_try_link "$LINENO"; then :
16469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16470 lt_cv_shlibpath_overrides_runpath=yes
16473 rm -f core conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
16475 LDFLAGS=$save_LDFLAGS
16476 libdir=$save_libdir
16480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16482 # This implies no fast_install, which is unacceptable.
16483 # Some rework will be needed to allow for fast_install
16484 # before this can be enabled.
16485 hardcode_into_libs=yes
16487 # Ideally, we could use ldconfig to report *all* directores which are
16488 # searched for libraries, however this is still not possible. Aside from not
16489 # being certain /sbin/ldconfig is available, command
16490 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16491 # even though it is searched at run-time. Try to do the best guess by
16492 # appending ld.so.conf contents (and includes) to the search path.
16493 if test -f /etc/ld.so.conf; then
16494 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' ' '`
16495 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16498 # We used to test for /lib/ld.so.1 and disable shared libraries on
16499 # powerpc, because MkLinux only supported shared libraries with the
16500 # GNU dynamic linker. Since this was broken with cross compilers,
16501 # most powerpc-linux boxes support dynamic linking these days and
16502 # people can always --disable-shared, the test was removed, and we
16503 # assume the GNU/Linux dynamic linker is in use.
16504 dynamic_linker='GNU/Linux ld.so'
16511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16512 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16514 dynamic_linker='NetBSD (a.out) ld.so'
16516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16517 soname_spec='$libname$release$shared_ext$major'
16518 dynamic_linker='NetBSD ld.elf_so'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 shlibpath_overrides_runpath=yes
16522 hardcode_into_libs=yes
16526 version_type=linux # correct to gnu/linux during the next big refactor
16527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes
16536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16537 soname_spec='$libname$release$shared_ext$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath=no
16540 hardcode_into_libs=yes
16541 dynamic_linker='ldqnx.so'
16544 openbsd* | bitrig*)
16546 sys_lib_dlsearch_path_spec=/usr/lib
16548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=yes
16560 libname_spec='$name'
16561 version_type=windows
16565 # OS/2 can only load a DLL with a base name of 8 characters or less.
16566 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16567 v=$($ECHO $release$versuffix | tr -d .-);
16568 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16569 $ECHO $n$v`$shared_ext'
16570 library_names_spec='${libname}_dll.$libext'
16571 dynamic_linker='OS/2 ld.exe'
16572 shlibpath_var=BEGINLIBPATH
16573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16575 postinstall_cmds='base_file=`basename \$file`~
16576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16577 dldir=$destdir/`dirname \$dlpath`~
16578 test -d \$dldir || mkdir -p \$dldir~
16579 $install_prog $dir/$dlname \$dldir/$dlname~
16580 chmod a+x \$dldir/$dlname~
16581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16585 dlpath=$dir/\$dldll~
16589 osf3* | osf4* | osf5*)
16593 soname_spec='$libname$release$shared_ext$major'
16594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16595 shlibpath_var=LD_LIBRARY_PATH
16596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16605 version_type=linux # correct to gnu/linux during the next big refactor
16608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16609 soname_spec='$libname$release$shared_ext$major'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath=yes
16612 hardcode_into_libs=yes
16613 # ldd complains unless libraries are executable
16614 postinstall_cmds='chmod +x $lib'
16619 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=yes
16623 if test yes = "$with_gnu_ld"; then
16630 version_type=linux # correct to gnu/linux during the next big refactor
16631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16632 soname_spec='$libname$release$shared_ext$major'
16633 shlibpath_var=LD_LIBRARY_PATH
16634 case $host_vendor in
16636 shlibpath_overrides_runpath=no
16638 runpath_var=LD_RUN_PATH
16646 shlibpath_overrides_runpath=no
16647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16653 if test -d /usr/nec; then
16654 version_type=linux # correct to gnu/linux during the next big refactor
16655 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16656 soname_spec='$libname$shared_ext.$major'
16657 shlibpath_var=LD_LIBRARY_PATH
16661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16666 soname_spec='$libname$release$shared_ext$major'
16667 shlibpath_var=LD_LIBRARY_PATH
16668 shlibpath_overrides_runpath=yes
16669 hardcode_into_libs=yes
16670 if test yes = "$with_gnu_ld"; then
16671 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16680 sys_lib_dlsearch_path_spec='/usr/lib'
16684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16685 version_type=linux # correct to gnu/linux during the next big refactor
16688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=no
16691 hardcode_into_libs=yes
16695 version_type=linux # correct to gnu/linux during the next big refactor
16696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16697 soname_spec='$libname$release$shared_ext$major'
16698 shlibpath_var=LD_LIBRARY_PATH
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16706 $as_echo "$dynamic_linker" >&6; }
16707 test no = "$dynamic_linker" && can_build_shared=no
16709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16710 if test yes = "$GCC"; then
16711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16714 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16715 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16718 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16719 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16722 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16723 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16725 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16726 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16728 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16729 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16772 hardcode_action_CXX=
16773 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16774 test -n "$runpath_var_CXX" ||
16775 test yes = "$hardcode_automatic_CXX"; then
16777 # We can hardcode non-existent directories.
16778 if test no != "$hardcode_direct_CXX" &&
16779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16780 # have to relink, otherwise we might link with an installed library
16781 # when we should be linking with a yet-to-be-installed one
16782 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16783 test no != "$hardcode_minus_L_CXX"; then
16784 # Linking always hardcodes the temporary library directory.
16785 hardcode_action_CXX=relink
16787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16788 hardcode_action_CXX=immediate
16791 # We cannot hardcode anything, or else we can only hardcode existing
16793 hardcode_action_CXX=unsupported
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16796 $as_echo "$hardcode_action_CXX" >&6; }
16798 if test relink = "$hardcode_action_CXX" ||
16799 test yes = "$inherit_rpath_CXX"; then
16800 # Fast installation is not supported
16801 enable_fast_install=no
16802 elif test yes = "$shlibpath_overrides_runpath" ||
16803 test no = "$enable_shared"; then
16804 # Fast installation is not necessary
16805 enable_fast_install=needless
16814 fi # test -n "$compiler"
16817 CFLAGS=$lt_save_CFLAGS
16821 with_gnu_ld=$lt_save_with_gnu_ld
16822 lt_cv_path_LDCXX=$lt_cv_path_LD
16823 lt_cv_path_LD=$lt_save_path_LD
16824 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16825 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16826 fi # test yes != "$_lt_caught_CXX_error"
16829 ac_cpp='$CPP $CPPFLAGS'
16830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16848 ac_config_commands="$ac_config_commands libtool"
16853 # Only expand once:
16857 # On Cygwin, without -no-undefined, a warning is emitted and only a static
16858 # library is built.
16859 beos* | mingw* | cygwin* | os2*) LTNOUNDEF='-no-undefined' ;;
16865 for ac_header in features.h
16867 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
16868 if test "x$ac_cv_header_features_h" = xyes; then :
16869 cat >>confdefs.h <<_ACEOF
16870 #define HAVE_FEATURES_H 1
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16879 $as_echo_n "checking for inline... " >&6; }
16880 if ${ac_cv_c_inline+:} false; then :
16881 $as_echo_n "(cached) " >&6
16884 for ac_kw in inline __inline__ __inline; do
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887 #ifndef __cplusplus
16889 static $ac_kw foo_t static_foo () {return 0; }
16890 $ac_kw foo_t foo () {return 0; }
16894 if ac_fn_c_try_compile "$LINENO"; then :
16895 ac_cv_c_inline=$ac_kw
16897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898 test "$ac_cv_c_inline" != no && break
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16903 $as_echo "$ac_cv_c_inline" >&6; }
16905 case $ac_cv_c_inline in
16908 case $ac_cv_c_inline in
16910 *) ac_val=$ac_cv_c_inline;;
16912 cat >>confdefs.h <<_ACEOF
16913 #ifndef __cplusplus
16914 #define inline $ac_val
16920 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16921 if test "x$ac_cv_type_size_t" = xyes; then :
16925 cat >>confdefs.h <<_ACEOF
16926 #define size_t unsigned int
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16933 $as_echo_n "checking for unsigned long long int... " >&6; }
16934 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16935 $as_echo_n "(cached) " >&6
16937 ac_cv_type_unsigned_long_long_int=yes
16938 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h. */
16942 /* For now, do not test the preprocessor; as of 2007 there are too many
16943 implementations with broken preprocessors. Perhaps this can
16944 be revisited in 2012. In the meantime, code should not expect
16945 #if to work with literals wider than 32 bits. */
16946 /* Test literals. */
16947 long long int ll = 9223372036854775807ll;
16948 long long int nll = -9223372036854775807LL;
16949 unsigned long long int ull = 18446744073709551615ULL;
16950 /* Test constant expressions. */
16951 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16953 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16959 /* Test availability of runtime routines for shift and division. */
16960 long long int llmax = 9223372036854775807ll;
16961 unsigned long long int ullmax = 18446744073709551615ull;
16962 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16963 | (llmax / ll) | (llmax % ll)
16964 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16965 | (ullmax / ull) | (ullmax % ull));
16971 if ac_fn_c_try_link "$LINENO"; then :
16974 ac_cv_type_unsigned_long_long_int=no
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16981 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16982 if test $ac_cv_type_unsigned_long_long_int = yes; then
16984 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16991 $as_echo_n "checking for long long int... " >&6; }
16992 if ${ac_cv_type_long_long_int+:} false; then :
16993 $as_echo_n "(cached) " >&6
16995 ac_cv_type_long_long_int=yes
16996 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16997 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16998 if test $ac_cv_type_long_long_int = yes; then
16999 if test "$cross_compiling" = yes; then :
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 #include <limits.h>
17007 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17008 # define LLONG_MAX (HALF - 1 + HALF)
17013 long long int n = 1;
17017 long long int m = n << i;
17020 if (LLONG_MAX / 2 < m)
17028 if ac_fn_c_try_run "$LINENO"; then :
17031 ac_cv_type_long_long_int=no
17033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17034 conftest.$ac_objext conftest.beam conftest.$ac_ext
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17041 $as_echo "$ac_cv_type_long_long_int" >&6; }
17042 if test $ac_cv_type_long_long_int = yes; then
17044 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17050 $as_echo_n "checking for wchar_t... " >&6; }
17051 if ${gt_cv_c_wchar_t+:} false; then :
17052 $as_echo_n "(cached) " >&6
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17056 #include <stddef.h>
17057 wchar_t foo = (wchar_t)'\0';
17066 if ac_fn_c_try_compile "$LINENO"; then :
17067 gt_cv_c_wchar_t=yes
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17074 $as_echo "$gt_cv_c_wchar_t" >&6; }
17075 if test $gt_cv_c_wchar_t = yes; then
17077 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17083 $as_echo_n "checking for wint_t... " >&6; }
17084 if ${gt_cv_c_wint_t+:} false; then :
17085 $as_echo_n "(cached) " >&6
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17090 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17092 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17093 before <wchar.h>. */
17094 #include <stddef.h>
17098 wint_t foo = (wchar_t)'\0';
17107 if ac_fn_c_try_compile "$LINENO"; then :
17112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17115 $as_echo "$gt_cv_c_wint_t" >&6; }
17116 if test $gt_cv_c_wint_t = yes; then
17118 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17123 $as_echo_n "checking for mbstate_t... " >&6; }
17124 if ${ac_cv_type_mbstate_t+:} false; then :
17125 $as_echo_n "(cached) " >&6
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 $ac_includes_default
17130 # include <wchar.h>
17134 mbstate_t x; return sizeof x;
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140 ac_cv_type_mbstate_t=yes
17142 ac_cv_type_mbstate_t=no
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17147 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17148 if test $ac_cv_type_mbstate_t = yes; then
17150 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17154 $as_echo "#define mbstate_t int" >>confdefs.h
17157 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17158 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17162 $as_echo "#define ptrdiff_t long" >>confdefs.h
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
17169 $as_echo_n "checking for inttypes.h... " >&6; }
17170 if ${gl_cv_header_inttypes_h+:} false; then :
17171 $as_echo_n "(cached) " >&6
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17176 #include <sys/types.h>
17177 #include <inttypes.h>
17182 uintmax_t i = (uintmax_t) -1; return !i;
17187 if ac_fn_c_try_compile "$LINENO"; then :
17188 gl_cv_header_inttypes_h=yes
17190 gl_cv_header_inttypes_h=no
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
17195 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17196 if test $gl_cv_header_inttypes_h = yes; then
17198 cat >>confdefs.h <<_ACEOF
17199 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
17206 $as_echo_n "checking for stdint.h... " >&6; }
17207 if ${gl_cv_header_stdint_h+:} false; then :
17208 $as_echo_n "(cached) " >&6
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17212 #include <sys/types.h>
17213 #include <stdint.h>
17217 uintmax_t i = (uintmax_t) -1; return !i;
17222 if ac_fn_c_try_compile "$LINENO"; then :
17223 gl_cv_header_stdint_h=yes
17225 gl_cv_header_stdint_h=no
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
17230 $as_echo "$gl_cv_header_stdint_h" >&6; }
17231 if test $gl_cv_header_stdint_h = yes; then
17233 cat >>confdefs.h <<_ACEOF
17234 #define HAVE_STDINT_H_WITH_UINTMAX 1
17242 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
17244 test $ac_cv_type_long_long_int = yes \
17245 && ac_type='long long' \
17248 cat >>confdefs.h <<_ACEOF
17249 #define intmax_t $ac_type
17254 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17259 for ac_header in stdint.h
17261 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17262 if test "x$ac_cv_header_stdint_h" = xyes; then :
17263 cat >>confdefs.h <<_ACEOF
17264 #define HAVE_STDINT_H 1
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
17272 $as_echo_n "checking for SIZE_MAX... " >&6; }
17273 if ${gl_cv_size_max+:} false; then :
17274 $as_echo_n "(cached) " >&6
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17281 #include <limits.h>
17283 #include <stdint.h>
17290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17291 $EGREP "Found it" >/dev/null 2>&1; then :
17296 if test -z "$gl_cv_size_max"; then
17297 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
17298 #include <limits.h>"; then :
17301 size_t_bits_minus_1=
17304 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
17310 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17311 if test $fits_in_uint = 1; then
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17314 #include <stddef.h>
17316 extern unsigned long foo;
17326 if ac_fn_c_try_compile "$LINENO"; then :
17329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331 if test $fits_in_uint = 1; then
17332 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17334 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17337 gl_cv_size_max='((size_t)~(size_t)0)'
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
17343 $as_echo "$gl_cv_size_max" >&6; }
17344 if test "$gl_cv_size_max" != yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define SIZE_MAX $gl_cv_size_max
17355 for ac_header in stdint.h
17357 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17358 if test "x$ac_cv_header_stdint_h" = xyes; then :
17359 cat >>confdefs.h <<_ACEOF
17360 #define HAVE_STDINT_H 1
17375 LIBC_FATAL_STDERR_=1
17376 export LIBC_FATAL_STDERR_
17378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17379 # for constant arguments. Useless!
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17381 $as_echo_n "checking for working alloca.h... " >&6; }
17382 if ${ac_cv_working_alloca_h+:} false; then :
17383 $as_echo_n "(cached) " >&6
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 #include <alloca.h>
17391 char *p = (char *) alloca (2 * sizeof (int));
17397 if ac_fn_c_try_link "$LINENO"; then :
17398 ac_cv_working_alloca_h=yes
17400 ac_cv_working_alloca_h=no
17402 rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17406 $as_echo "$ac_cv_working_alloca_h" >&6; }
17407 if test $ac_cv_working_alloca_h = yes; then
17409 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17414 $as_echo_n "checking for alloca... " >&6; }
17415 if ${ac_cv_func_alloca_works+:} false; then :
17416 $as_echo_n "(cached) " >&6
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17421 # define alloca __builtin_alloca
17424 # include <malloc.h>
17425 # define alloca _alloca
17427 # ifdef HAVE_ALLOCA_H
17428 # include <alloca.h>
17433 # ifndef alloca /* predefined by HP cc +Olibcalls */
17434 void *alloca (size_t);
17444 char *p = (char *) alloca (1);
17450 if ac_fn_c_try_link "$LINENO"; then :
17451 ac_cv_func_alloca_works=yes
17453 ac_cv_func_alloca_works=no
17455 rm -f core conftest.err conftest.$ac_objext \
17456 conftest$ac_exeext conftest.$ac_ext
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17459 $as_echo "$ac_cv_func_alloca_works" >&6; }
17461 if test $ac_cv_func_alloca_works = yes; then
17463 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17466 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17467 # that cause trouble. Some versions do not even contain alloca or
17468 # contain a buggy version. If you still want to use their alloca,
17469 # use ar to extract alloca.o from them instead of compiling alloca.c.
17475 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17477 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17481 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17482 if ${ac_cv_os_cray+:} false; then :
17483 $as_echo_n "(cached) " >&6
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487 #if defined CRAY && ! defined CRAY2
17494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17495 $EGREP "webecray" >/dev/null 2>&1; then :
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17504 $as_echo "$ac_cv_os_cray" >&6; }
17505 if test $ac_cv_os_cray = yes; then
17506 for ac_func in _getb67 GETB67 getb67; do
17507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17511 cat >>confdefs.h <<_ACEOF
17512 #define CRAY_STACKSEG_END $ac_func
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17522 $as_echo_n "checking stack direction for C alloca... " >&6; }
17523 if ${ac_cv_c_stack_direction+:} false; then :
17524 $as_echo_n "(cached) " >&6
17526 if test "$cross_compiling" = yes; then :
17527 ac_cv_c_stack_direction=0
17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531 $ac_includes_default
17533 find_stack_direction (int *addr, int depth)
17535 int dir, dummy = 0;
17538 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17539 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17540 return dir + dummy;
17544 main (int argc, char **argv)
17546 return find_stack_direction (0, argc + !argv + 20) < 0;
17549 if ac_fn_c_try_run "$LINENO"; then :
17550 ac_cv_c_stack_direction=1
17552 ac_cv_c_stack_direction=-1
17554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17555 conftest.$ac_objext conftest.beam conftest.$ac_ext
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17560 $as_echo "$ac_cv_c_stack_direction" >&6; }
17561 cat >>confdefs.h <<_ACEOF
17562 #define STACK_DIRECTION $ac_cv_c_stack_direction
17572 for ac_header in $gl_header_list
17574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17575 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17577 cat >>confdefs.h <<_ACEOF
17578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17597 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17598 if ${gl_cv_have_include_next+:} false; then :
17599 $as_echo_n "(cached) " >&6
17601 rm -rf conftestd1a conftestd1b conftestd2
17602 mkdir conftestd1a conftestd1b conftestd2
17603 cat <<EOF > conftestd1a/conftest.h
17604 #define DEFINED_IN_CONFTESTD1
17605 #include_next <conftest.h>
17606 #ifdef DEFINED_IN_CONFTESTD2
17609 #error "include_next doesn't work"
17612 cat <<EOF > conftestd1b/conftest.h
17613 #define DEFINED_IN_CONFTESTD1
17615 #include_next <conftest.h>
17616 #ifdef DEFINED_IN_CONFTESTD2
17619 #error "include_next doesn't work"
17622 cat <<EOF > conftestd2/conftest.h
17623 #ifndef DEFINED_IN_CONFTESTD1
17624 #error "include_next test doesn't work"
17626 #define DEFINED_IN_CONFTESTD2
17628 gl_save_CPPFLAGS="$CPPFLAGS"
17629 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632 #include <conftest.h>
17634 if ac_fn_c_try_compile "$LINENO"; then :
17635 gl_cv_have_include_next=yes
17637 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h. */
17640 #include <conftest.h>
17642 if ac_fn_c_try_compile "$LINENO"; then :
17643 gl_cv_have_include_next=buggy
17645 gl_cv_have_include_next=no
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651 CPPFLAGS="$gl_save_CPPFLAGS"
17652 rm -rf conftestd1a conftestd1b conftestd2
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17656 $as_echo "$gl_cv_have_include_next" >&6; }
17657 PRAGMA_SYSTEM_HEADER=
17658 if test $gl_cv_have_include_next = yes; then
17659 INCLUDE_NEXT=include_next
17660 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17661 if test -n "$GCC"; then
17662 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17665 if test $gl_cv_have_include_next = buggy; then
17666 INCLUDE_NEXT=include
17667 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17669 INCLUDE_NEXT=include
17670 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17677 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17678 if ${gl_cv_pragma_columns+:} false; then :
17679 $as_echo_n "(cached) " >&6
17681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h. */
17689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17690 $EGREP "choke me" >/dev/null 2>&1; then :
17691 gl_cv_pragma_columns=yes
17693 gl_cv_pragma_columns=no
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17700 $as_echo "$gl_cv_pragma_columns" >&6; }
17701 if test $gl_cv_pragma_columns = yes; then
17702 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17711 $as_echo_n "checking for complete errno.h... " >&6; }
17712 if ${gl_cv_header_errno_h_complete+:} false; then :
17713 $as_echo_n "(cached) " >&6
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17720 #if !defined ETXTBSY
17723 #if !defined ENOMSG
17729 #if !defined ENOLINK
17732 #if !defined EPROTO
17735 #if !defined EMULTIHOP
17738 #if !defined EBADMSG
17741 #if !defined EOVERFLOW
17744 #if !defined ENOTSUP
17747 #if !defined ENETRESET
17750 #if !defined ECONNABORTED
17753 #if !defined ESTALE
17756 #if !defined EDQUOT
17759 #if !defined ECANCELED
17762 #if !defined EOWNERDEAD
17765 #if !defined ENOTRECOVERABLE
17768 #if !defined EILSEQ
17773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17774 $EGREP "booboo" >/dev/null 2>&1; then :
17775 gl_cv_header_errno_h_complete=no
17777 gl_cv_header_errno_h_complete=yes
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17784 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
17785 if test $gl_cv_header_errno_h_complete = yes; then
17796 if test $gl_cv_have_include_next = yes; then
17797 gl_cv_next_errno_h='<'errno.h'>'
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17800 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
17801 if ${gl_cv_next_errno_h+:} false; then :
17802 $as_echo_n "(cached) " >&6
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17813 *) gl_absname_cpp="$ac_cpp" ;;
17818 gl_dirsep_regex='[/\\]'
17821 gl_dirsep_regex='\/'
17824 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17825 gl_header_literal_regex=`echo 'errno.h' \
17826 | sed -e "$gl_make_literal_regex_sed"`
17827 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17828 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17834 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17835 sed -n "$gl_absolute_header_sed"`
17837 gl_header=$gl_cv_absolute_errno_h
17838 gl_cv_next_errno_h='"'$gl_header'"'
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17843 $as_echo "$gl_cv_next_errno_h" >&6; }
17845 NEXT_ERRNO_H=$gl_cv_next_errno_h
17847 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17849 gl_next_as_first_directive='<'errno.h'>'
17851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17852 gl_next_as_first_directive=$gl_cv_next_errno_h
17854 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
17862 if test -n "$ERRNO_H"; then
17863 GL_GENERATE_ERRNO_H_TRUE=
17864 GL_GENERATE_ERRNO_H_FALSE='#'
17866 GL_GENERATE_ERRNO_H_TRUE='#'
17867 GL_GENERATE_ERRNO_H_FALSE=
17871 if test -n "$ERRNO_H"; then
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17873 $as_echo_n "checking for EMULTIHOP value... " >&6; }
17874 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
17875 $as_echo_n "(cached) " >&6
17878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h. */
17887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17888 $EGREP "yes" >/dev/null 2>&1; then :
17889 gl_cv_header_errno_h_EMULTIHOP=yes
17891 gl_cv_header_errno_h_EMULTIHOP=no
17895 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17899 #define _XOPEN_SOURCE_EXTENDED 1
17906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17907 $EGREP "yes" >/dev/null 2>&1; then :
17908 gl_cv_header_errno_h_EMULTIHOP=hidden
17912 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
17913 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
17914 #define _XOPEN_SOURCE_EXTENDED 1
17916 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17918 #include <stdlib.h>
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17928 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17929 case $gl_cv_header_errno_h_EMULTIHOP in
17931 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
17934 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
17942 if test -n "$ERRNO_H"; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17944 $as_echo_n "checking for ENOLINK value... " >&6; }
17945 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
17946 $as_echo_n "(cached) " >&6
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17959 $EGREP "yes" >/dev/null 2>&1; then :
17960 gl_cv_header_errno_h_ENOLINK=yes
17962 gl_cv_header_errno_h_ENOLINK=no
17966 if test $gl_cv_header_errno_h_ENOLINK = no; then
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17970 #define _XOPEN_SOURCE_EXTENDED 1
17977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17978 $EGREP "yes" >/dev/null 2>&1; then :
17979 gl_cv_header_errno_h_ENOLINK=hidden
17983 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17984 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
17985 #define _XOPEN_SOURCE_EXTENDED 1
17987 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17989 #include <stdlib.h>
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17999 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18000 case $gl_cv_header_errno_h_ENOLINK in
18002 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18005 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18013 if test -n "$ERRNO_H"; then
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18015 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18016 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
18017 $as_echo_n "(cached) " >&6
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18030 $EGREP "yes" >/dev/null 2>&1; then :
18031 gl_cv_header_errno_h_EOVERFLOW=yes
18033 gl_cv_header_errno_h_EOVERFLOW=no
18037 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18041 #define _XOPEN_SOURCE_EXTENDED 1
18048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18049 $EGREP "yes" >/dev/null 2>&1; then :
18050 gl_cv_header_errno_h_EOVERFLOW=hidden
18054 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18055 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18056 #define _XOPEN_SOURCE_EXTENDED 1
18058 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18060 #include <stdlib.h>
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18070 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18071 case $gl_cv_header_errno_h_EOVERFLOW in
18073 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18076 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18089 GL_COND_LIBTOOL_TRUE=
18090 GL_COND_LIBTOOL_FALSE='#'
18092 GL_COND_LIBTOOL_TRUE='#'
18093 GL_COND_LIBTOOL_FALSE=
18096 gl_cond_libtool=true
18097 gl_m4_base='gnulib-m4'
18108 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
18115 if test $ac_cv_func_alloca_works = no; then
18131 # Define an additional variable used in the Makefile substitution.
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18136 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
18141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18142 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18150 if test -n "$ALLOCA_H"; then
18151 GL_GENERATE_ALLOCA_H_TRUE=
18152 GL_GENERATE_ALLOCA_H_FALSE='#'
18154 GL_GENERATE_ALLOCA_H_TRUE='#'
18155 GL_GENERATE_ALLOCA_H_FALSE=
18162 for ac_header in stdint.h
18164 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18165 if test "x$ac_cv_header_stdint_h" = xyes; then :
18166 cat >>confdefs.h <<_ACEOF
18167 #define HAVE_STDINT_H 1
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18175 $as_echo_n "checking for SIZE_MAX... " >&6; }
18176 if ${gl_cv_size_max+:} false; then :
18177 $as_echo_n "(cached) " >&6
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18184 #include <limits.h>
18186 #include <stdint.h>
18193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18194 $EGREP "Found it" >/dev/null 2>&1; then :
18199 if test -z "$gl_cv_size_max"; then
18200 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
18201 #include <limits.h>"; then :
18204 size_t_bits_minus_1=
18207 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
18213 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18214 if test $fits_in_uint = 1; then
18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h. */
18217 #include <stddef.h>
18219 extern unsigned long foo;
18229 if ac_fn_c_try_compile "$LINENO"; then :
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 if test $fits_in_uint = 1; then
18235 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18237 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18240 gl_cv_size_max='((size_t)~(size_t)0)'
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18246 $as_echo "$gl_cv_size_max" >&6; }
18247 if test "$gl_cv_size_max" != yes; then
18249 cat >>confdefs.h <<_ACEOF
18250 #define SIZE_MAX $gl_cv_size_max
18258 for ac_header in stdint.h
18260 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18261 if test "x$ac_cv_header_stdint_h" = xyes; then :
18262 cat >>confdefs.h <<_ACEOF
18263 #define HAVE_STDINT_H 1
18271 # End of code from modules
18290 gl_source_base='tests'
18291 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
18293 gl_module_indicator_condition=$gltests_WITNESS
18304 for ac_func in snprintf vasprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18309 cat >>confdefs.h <<_ACEOF
18310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18316 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18318 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
18324 cat >>confdefs.h <<_ACEOF
18325 #define HAVE_DECL__SNPRINTF $ac_have_decl
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18331 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18332 if ${gt_cv_func_printf_posix+:} false; then :
18333 $as_echo_n "(cached) " >&6
18336 if test "$cross_compiling" = yes; then :
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18347 $EGREP "notposix" >/dev/null 2>&1; then :
18348 gt_cv_func_printf_posix="guessing no"
18350 gt_cv_func_printf_posix="guessing yes"
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18360 #include <string.h>
18361 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18362 dollar expansion (possibly an autoconf bug). */
18363 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18364 static char buf[100];
18367 sprintf (buf, format, 33, 55);
18368 return (strcmp (buf, "55 33") != 0);
18371 if ac_fn_c_try_run "$LINENO"; then :
18372 gt_cv_func_printf_posix=yes
18374 gt_cv_func_printf_posix=no
18376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18377 conftest.$ac_objext conftest.beam conftest.$ac_ext
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18383 $as_echo "$gt_cv_func_printf_posix" >&6; }
18384 case $gt_cv_func_printf_posix in
18387 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18393 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
18394 # Extract the first word of "dvips", so it can be a program name with args.
18395 set dummy dvips; ac_word=$2
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18397 $as_echo_n "checking for $ac_word... " >&6; }
18398 if ${ac_cv_path_DVIPS+:} false; then :
18399 $as_echo_n "(cached) " >&6
18403 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
18406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18407 for as_dir in $PATH
18410 test -z "$as_dir" && as_dir=.
18411 for ac_exec_ext in '' $ac_executable_extensions; do
18412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18413 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
18414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18421 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
18425 DVIPS=$ac_cv_path_DVIPS
18426 if test -n "$DVIPS"; then
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
18428 $as_echo "$DVIPS" >&6; }
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18431 $as_echo "no" >&6; }
18435 # Extract the first word of "texi2pdf", so it can be a program name with args.
18436 set dummy texi2pdf; ac_word=$2
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18438 $as_echo_n "checking for $ac_word... " >&6; }
18439 if ${ac_cv_path_TEXI2PDF+:} false; then :
18440 $as_echo_n "(cached) " >&6
18444 ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
18447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18448 for as_dir in $PATH
18451 test -z "$as_dir" && as_dir=.
18452 for ac_exec_ext in '' $ac_executable_extensions; do
18453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18454 ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
18455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18462 test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
18466 TEXI2PDF=$ac_cv_path_TEXI2PDF
18467 if test -n "$TEXI2PDF"; then
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
18469 $as_echo "$TEXI2PDF" >&6; }
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18472 $as_echo "no" >&6; }
18476 # Extract the first word of "perl", so it can be a program name with args.
18477 set dummy perl; ac_word=$2
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18479 $as_echo_n "checking for $ac_word... " >&6; }
18480 if ${ac_cv_path_PERL+:} false; then :
18481 $as_echo_n "(cached) " >&6
18485 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18492 test -z "$as_dir" && as_dir=.
18493 for ac_exec_ext in '' $ac_executable_extensions; do
18494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18503 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
18507 PERL=$ac_cv_path_PERL
18508 if test -n "$PERL"; then
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18510 $as_echo "$PERL" >&6; }
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18513 $as_echo "no" >&6; }
18518 ac_config_files="$ac_config_files Makefile"
18521 cat >confcache <<\_ACEOF
18522 # This file is a shell script that caches the results of configure
18523 # tests run on this system so they can be shared between configure
18524 # scripts and configure runs, see configure's option --config-cache.
18525 # It is not useful on other systems. If it contains results you don't
18526 # want to keep, you may remove or edit it.
18528 # config.status only pays attention to the cache file if you give it
18529 # the --recheck option to rerun configure.
18531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18533 # following values.
18537 # The following way of writing the cache mishandles newlines in values,
18538 # but we know of no workaround that is simple, portable, and efficient.
18539 # So, we kill variables containing newlines.
18540 # Ultrix sh set writes to stderr and can't be redirected directly,
18541 # and sets the high bit in the cache file unless we assign to the vars.
18543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18544 eval ac_val=\$$ac_var
18548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18552 _ | IFS | as_nl) ;; #(
18553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18554 *) { eval $ac_var=; unset $ac_var;} ;;
18560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18561 *${as_nl}ac_space=\ *)
18562 # `set' does not quote correctly, so add quotes: double-quote
18563 # substitution turns \\\\ into \\, and sed turns \\ into \.
18566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18569 # `set' quotes correctly as required by POSIX, so do not add quotes.
18570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18584 if test -w "$cache_file"; then
18585 if test "x$cache_file" != "x/dev/null"; then
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18587 $as_echo "$as_me: updating cache $cache_file" >&6;}
18588 if test ! -f "$cache_file" || test -h "$cache_file"; then
18589 cat confcache >"$cache_file"
18591 case $cache_file in #(
18593 mv -f confcache "$cache_file"$$ &&
18594 mv -f "$cache_file"$$ "$cache_file" ;; #(
18596 mv -f confcache "$cache_file" ;;
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18608 # Let make expand exec_prefix.
18609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18611 DEFS=-DHAVE_CONFIG_H
18616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18617 # 1. Remove the extension, and $U if already installed.
18618 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18619 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18621 # will be set to the directory where LIBOBJS objects are built.
18622 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18623 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18625 LIBOBJS=$ac_libobjs
18627 LTLIBOBJS=$ac_ltlibobjs
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18631 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18632 if test -n "$am_sleep_pid"; then
18633 # Hide warnings about reused PIDs.
18634 wait $am_sleep_pid 2>/dev/null
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18637 $as_echo "done" >&6; }
18638 if test -n "$EXEEXT"; then
18640 am__EXEEXT_FALSE='#'
18642 am__EXEEXT_TRUE='#'
18646 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18647 as_fn_error $? "conditional \"AMDEP\" was never defined.
18648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18651 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18654 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18655 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18658 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18659 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18662 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18663 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18666 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18667 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18673 if test -n "$gl_LIBOBJS"; then
18674 # Remove the extension.
18675 sed_drop_objext='s/\.o$//;s/\.obj$//'
18676 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18677 gl_libobjs="$gl_libobjs $i.$ac_objext"
18678 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18681 gl_LIBOBJS=$gl_libobjs
18683 gl_LTLIBOBJS=$gl_ltlibobjs
18689 if test -n "$gltests_LIBOBJS"; then
18690 # Remove the extension.
18691 sed_drop_objext='s/\.o$//;s/\.obj$//'
18692 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18693 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18694 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18697 gltests_LIBOBJS=$gltests_libobjs
18699 gltests_LTLIBOBJS=$gltests_ltlibobjs
18703 : "${CONFIG_STATUS=./config.status}"
18705 ac_clean_files_save=$ac_clean_files
18706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18712 # Generated by $as_me.
18713 # Run this file to recreate the current configuration.
18714 # Compiler output produced by configure, useful for debugging
18715 # configure, is in config.log if it exists.
18718 ac_cs_recheck=false
18721 SHELL=\${CONFIG_SHELL-$SHELL}
18724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18725 ## -------------------- ##
18726 ## M4sh Initialization. ##
18727 ## -------------------- ##
18729 # Be more Bourne compatible
18730 DUALCASE=1; export DUALCASE # for MKS sh
18731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18735 # is contrary to our usage. Disable this feature.
18736 alias -g '${1+"$@"}'='"$@"'
18737 setopt NO_GLOB_SUBST
18739 case `(set -o) 2>/dev/null` in #(
18751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18755 # Prefer a ksh shell builtin over an external printf program on Solaris,
18756 # but without wasting forks for bash or zsh.
18757 if test -z "$BASH_VERSION$ZSH_VERSION" \
18758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18759 as_echo='print -r --'
18760 as_echo_n='print -rn --'
18761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18762 as_echo='printf %s\n'
18763 as_echo_n='printf %s'
18765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18767 as_echo_n='/usr/ucb/echo -n'
18769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18770 as_echo_n_body='eval
18774 expr "X$arg" : "X\\(.*\\)$as_nl";
18775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18779 export as_echo_n_body
18780 as_echo_n='sh -c $as_echo_n_body as_echo'
18782 export as_echo_body
18783 as_echo='sh -c $as_echo_body as_echo'
18786 # The user is always right.
18787 if test "${PATH_SEPARATOR+set}" != set; then
18789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18797 # We need space, tab and new line, in precisely that order. Quoting is
18798 # there to prevent editors from complaining about space-tab.
18799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18800 # splitting by setting IFS to empty value.)
18803 # Find who we are. Look in the path if we contain no directory separator.
18806 *[\\/]* ) as_myself=$0 ;;
18807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18811 test -z "$as_dir" && as_dir=.
18812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18818 # We did not find ourselves, most probably we were run as `sh COMMAND'
18819 # in which case we are not to be found in the path.
18820 if test "x$as_myself" = x; then
18823 if test ! -f "$as_myself"; then
18824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18828 # Unset variables that we do not need and which cause bugs (e.g. in
18829 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18830 # suppresses any "Segmentation fault" message there. '((' could
18831 # trigger a bug in pdksh 5.2.14.
18832 for as_var in BASH_ENV ENV MAIL MAILPATH
18833 do eval test x\${$as_var+set} = xset \
18834 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18851 # ----------------------------------------
18852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18854 # script with STATUS, using 1 if that was 0.
18857 as_status=$1; test $as_status -eq 0 && as_status=1
18859 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18860 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18862 $as_echo "$as_me: error: $2" >&2
18863 as_fn_exit $as_status
18867 # as_fn_set_status STATUS
18868 # -----------------------
18869 # Set $? to STATUS, without forking.
18870 as_fn_set_status ()
18873 } # as_fn_set_status
18875 # as_fn_exit STATUS
18876 # -----------------
18877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18881 as_fn_set_status $1
18887 # Portably unset VAR.
18890 { eval $1=; unset $1;}
18892 as_unset=as_fn_unset
18893 # as_fn_append VAR VALUE
18894 # ----------------------
18895 # Append the text in VALUE to the end of the definition contained in VAR. Take
18896 # advantage of any shell optimizations that allow amortized linear growth over
18897 # repeated appends, instead of the typical quadratic growth present in naive
18899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18900 eval 'as_fn_append ()
18911 # as_fn_arith ARG...
18912 # ------------------
18913 # Perform arithmetic evaluation on the ARGs, and store the result in the
18914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18915 # must be portable across $(()) and expr.
18916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18917 eval 'as_fn_arith ()
18924 as_val=`expr "$@" || test $? -eq 1`
18929 if expr a : '\(a\)' >/dev/null 2>&1 &&
18930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18937 as_basename=basename
18942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18948 as_me=`$as_basename -- "$0" ||
18949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18950 X"$0" : 'X\(//\)$' \| \
18951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18953 sed '/^.*\/\([^/][^/]*\)\/*$/{
18967 # Avoid depending upon Character Ranges.
18968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18971 as_cr_digits='0123456789'
18972 as_cr_alnum=$as_cr_Letters$as_cr_digits
18974 ECHO_C= ECHO_N= ECHO_T=
18975 case `echo -n x` in #(((((
18977 case `echo 'xy\c'` in
18978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18980 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18987 rm -f conf$$ conf$$.exe conf$$.file
18988 if test -d conf$$.dir; then
18989 rm -f conf$$.dir/conf$$.file
18992 mkdir conf$$.dir 2>/dev/null
18994 if (echo >conf$$.file) 2>/dev/null; then
18995 if ln -s conf$$.file conf$$ 2>/dev/null; then
18997 # ... but there are two gotchas:
18998 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18999 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19000 # In both cases, we have to default to `cp -pR'.
19001 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19003 elif ln conf$$.file conf$$ 2>/dev/null; then
19011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19012 rmdir conf$$.dir 2>/dev/null
19017 # Create "$as_dir" as a directory, including parents if necessary.
19022 -*) as_dir=./$as_dir;;
19024 test -d "$as_dir" || eval $as_mkdir_p || {
19028 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19029 *) as_qdir=$as_dir;;
19031 as_dirs="'$as_qdir' $as_dirs"
19032 as_dir=`$as_dirname -- "$as_dir" ||
19033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034 X"$as_dir" : 'X\(//\)[^/]' \| \
19035 X"$as_dir" : 'X\(//\)$' \| \
19036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19037 $as_echo X"$as_dir" |
19038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19042 /^X\(\/\/\)[^/].*/{
19055 test -d "$as_dir" && break
19057 test -z "$as_dirs" || eval "mkdir $as_dirs"
19058 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19062 if mkdir -p . 2>/dev/null; then
19063 as_mkdir_p='mkdir -p "$as_dir"'
19065 test -d ./-p && rmdir ./-p
19070 # as_fn_executable_p FILE
19071 # -----------------------
19072 # Test if FILE is an executable regular file.
19073 as_fn_executable_p ()
19075 test -f "$1" && test -x "$1"
19076 } # as_fn_executable_p
19077 as_test_x='test -x'
19078 as_executable_p=as_fn_executable_p
19080 # Sed expression to map a string onto a valid CPP name.
19081 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19083 # Sed expression to map a string onto a valid variable name.
19084 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19088 ## ----------------------------------- ##
19089 ## Main body of $CONFIG_STATUS script. ##
19090 ## ----------------------------------- ##
19092 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19095 # Save the log message, to keep $0 and so on meaningful, and to
19096 # report actual input values of CONFIG_FILES etc. instead of their
19097 # values after options handling.
19099 This file was extended by libasprintf $as_me 1.0, which was
19100 generated by GNU Autoconf 2.69. Invocation command line was
19102 CONFIG_FILES = $CONFIG_FILES
19103 CONFIG_HEADERS = $CONFIG_HEADERS
19104 CONFIG_LINKS = $CONFIG_LINKS
19105 CONFIG_COMMANDS = $CONFIG_COMMANDS
19108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19113 case $ac_config_files in *"
19114 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19117 case $ac_config_headers in *"
19118 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19123 # Files that config.status was made for.
19124 config_files="$ac_config_files"
19125 config_headers="$ac_config_headers"
19126 config_commands="$ac_config_commands"
19130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132 \`$as_me' instantiates files and other configuration actions
19133 from templates according to the current configuration. Unless the files
19134 and actions are specified as TAGs, all are instantiated by default.
19136 Usage: $0 [OPTION]... [TAG]...
19138 -h, --help print this help, then exit
19139 -V, --version print version number and configuration settings, then exit
19140 --config print configuration, then exit
19141 -q, --quiet, --silent
19142 do not print progress messages
19143 -d, --debug don't remove temporary files
19144 --recheck update $as_me by reconfiguring in the same conditions
19145 --file=FILE[:TEMPLATE]
19146 instantiate the configuration file FILE
19147 --header=FILE[:TEMPLATE]
19148 instantiate the configuration header FILE
19150 Configuration files:
19153 Configuration headers:
19156 Configuration commands:
19159 Report bugs to the package provider."
19162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19163 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19165 libasprintf config.status 1.0
19166 configured by $0, generated by GNU Autoconf 2.69,
19167 with options \\"\$ac_cs_config\\"
19169 Copyright (C) 2012 Free Software Foundation, Inc.
19170 This config.status script is free software; the Free Software Foundation
19171 gives unlimited permission to copy, distribute and modify it."
19178 test -n "\$AWK" || AWK=awk
19181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19182 # The default lists apply if the user does not specify any file.
19188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19205 # Handling of the options.
19206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19208 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19209 $as_echo "$ac_cs_version"; exit ;;
19210 --config | --confi | --conf | --con | --co | --c )
19211 $as_echo "$ac_cs_config"; exit ;;
19212 --debug | --debu | --deb | --de | --d | -d )
19214 --file | --fil | --fi | --f )
19217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19218 '') as_fn_error $? "missing file argument" ;;
19220 as_fn_append CONFIG_FILES " '$ac_optarg'"
19221 ac_need_defaults=false;;
19222 --header | --heade | --head | --hea )
19225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19227 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19228 ac_need_defaults=false;;
19230 # Conflict between --help and --header
19231 as_fn_error $? "ambiguous option: \`$1'
19232 Try \`$0 --help' for more information.";;
19233 --help | --hel | -h )
19234 $as_echo "$ac_cs_usage"; exit ;;
19235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19239 # This is an error.
19240 -*) as_fn_error $? "unrecognized option: \`$1'
19241 Try \`$0 --help' for more information." ;;
19243 *) as_fn_append ac_config_targets " $1"
19244 ac_need_defaults=false ;;
19250 ac_configure_extra_args=
19252 if $ac_cs_silent; then
19254 ac_configure_extra_args="$ac_configure_extra_args --silent"
19258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19259 if \$ac_cs_recheck; then
19260 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19262 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19263 CONFIG_SHELL='$SHELL'
19264 export CONFIG_SHELL
19269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19274 ## Running $as_me. ##
19280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19287 # The HP-UX ksh and POSIX shell print the target directory to stdout
19288 # if CDPATH is set.
19289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19291 sed_quote_subst='$sed_quote_subst'
19292 double_quote_subst='$double_quote_subst'
19293 delay_variable_subst='$delay_variable_subst'
19294 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19295 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19296 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19297 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19298 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19299 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19300 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19301 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19302 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19303 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19304 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19305 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19306 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19307 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19308 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19309 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19310 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19311 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19312 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19313 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19314 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19315 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19316 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19317 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19318 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19319 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19320 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19321 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19322 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19323 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19324 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19325 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19326 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19327 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19328 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19329 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19330 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19331 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19332 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19333 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19334 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19335 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19336 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19337 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19338 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19339 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19340 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19341 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19342 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19343 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19344 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19345 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19346 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19347 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19348 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19349 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19350 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19351 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19352 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19353 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"`'
19354 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19355 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19356 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19357 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19358 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19359 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19360 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19361 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19362 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19363 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19364 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19365 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19366 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19367 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19368 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19369 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19370 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19371 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19372 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19373 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19374 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19375 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19376 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19377 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19378 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19379 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19380 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19381 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19382 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19383 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19384 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19385 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19386 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19387 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19388 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19389 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19390 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19391 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19392 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19393 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19394 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19395 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19396 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19397 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19398 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19399 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19400 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19401 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19402 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19403 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19404 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19405 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19406 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19407 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19408 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19409 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19410 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19411 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19412 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19413 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19414 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19415 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19416 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19417 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19418 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19419 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19420 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19421 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19422 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19423 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19424 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19425 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19426 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19427 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19428 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19429 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19430 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19431 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19432 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19433 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19434 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19435 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19436 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19437 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19438 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19439 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19440 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19441 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19442 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19443 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19444 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19445 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19446 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19447 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19448 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19449 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19450 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19451 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19452 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19453 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19454 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19455 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19456 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19457 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19458 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19459 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19460 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19461 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19462 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19463 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19464 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19465 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19466 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19467 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19468 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19469 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19470 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19471 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19472 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19473 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19474 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19475 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19476 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19477 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19478 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19479 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19480 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19481 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19482 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19483 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19486 LTCFLAGS='$LTCFLAGS'
19487 compiler='$compiler_DEFAULT'
19489 # A function that is used when there is no print builtin or printf.
19490 func_fallback_echo ()
19492 eval 'cat <<_LTECHO_EOF
19497 # Quote evaled strings.
19514 deplibs_check_method \
19518 sharedlib_from_linklib_cmd \
19521 archiver_list_spec \
19527 lt_cv_sys_global_symbol_pipe \
19528 lt_cv_sys_global_symbol_to_cdecl \
19529 lt_cv_sys_global_symbol_to_import \
19530 lt_cv_sys_global_symbol_to_c_name_address \
19531 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19532 lt_cv_nm_interface \
19533 nm_file_list_spec \
19534 lt_cv_truncate_bin \
19535 lt_prog_compiler_no_builtin_flag \
19536 lt_prog_compiler_pic \
19537 lt_prog_compiler_wl \
19538 lt_prog_compiler_static \
19539 lt_cv_prog_compiler_c_o \
19548 export_dynamic_flag_spec \
19549 whole_archive_flag_spec \
19550 compiler_needs_object \
19552 allow_undefined_flag \
19553 no_undefined_flag \
19554 hardcode_libdir_flag_spec \
19555 hardcode_libdir_separator \
19559 variables_saved_for_relink \
19561 library_names_spec \
19563 install_override_mode \
19567 compiler_lib_search_dirs \
19572 compiler_lib_search_path \
19576 lt_prog_compiler_no_builtin_flag_CXX \
19577 lt_prog_compiler_pic_CXX \
19578 lt_prog_compiler_wl_CXX \
19579 lt_prog_compiler_static_CXX \
19580 lt_cv_prog_compiler_c_o_CXX \
19581 export_dynamic_flag_spec_CXX \
19582 whole_archive_flag_spec_CXX \
19583 compiler_needs_object_CXX \
19585 allow_undefined_flag_CXX \
19586 no_undefined_flag_CXX \
19587 hardcode_libdir_flag_spec_CXX \
19588 hardcode_libdir_separator_CXX \
19589 exclude_expsyms_CXX \
19590 include_expsyms_CXX \
19591 file_list_spec_CXX \
19592 compiler_lib_search_dirs_CXX \
19593 predep_objects_CXX \
19594 postdep_objects_CXX \
19597 compiler_lib_search_path_CXX; do
19598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19599 *[\\\\\\\`\\"\\\$]*)
19600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19608 # Double-quote double-evaled strings.
19609 for var in reload_cmds \
19610 old_postinstall_cmds \
19611 old_postuninstall_cmds \
19613 extract_expsyms_cmds \
19614 old_archive_from_new_cmds \
19615 old_archive_from_expsyms_cmds \
19617 archive_expsym_cmds \
19619 module_expsym_cmds \
19620 export_symbols_cmds \
19624 postuninstall_cmds \
19626 sys_lib_search_path_spec \
19627 configure_time_dlsearch_path \
19628 configure_time_lt_sys_library_path \
19630 old_archive_cmds_CXX \
19631 old_archive_from_new_cmds_CXX \
19632 old_archive_from_expsyms_cmds_CXX \
19634 archive_expsym_cmds_CXX \
19636 module_expsym_cmds_CXX \
19637 export_symbols_cmds_CXX \
19639 postlink_cmds_CXX; do
19640 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19641 *[\\\\\\\`\\"\\\$]*)
19642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19650 ac_aux_dir='$ac_aux_dir'
19652 # See if we are running on zsh, and set the options that allow our
19653 # commands through without removal of \ escapes INIT.
19654 if test -n "\${ZSH_VERSION+set}"; then
19655 setopt NO_GLOB_SUBST
19671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 # Handling of arguments.
19674 for ac_config_target in $ac_config_targets
19676 case $ac_config_target in
19677 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19678 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19679 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19682 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19687 # If the user did not use the arguments to specify the items to instantiate,
19688 # then the envvar interface is used. Set only those that are not.
19689 # We use the long form for the default assignment because of an extremely
19690 # bizarre bug on SunOS 4.1.3.
19691 if $ac_need_defaults; then
19692 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19693 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19694 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19697 # Have a temporary directory for convenience. Make it in the build tree
19698 # simply because there is no reason against having it here, and in addition,
19699 # creating and moving files from /tmp can sometimes cause problems.
19700 # Hook for its removal unless debugging.
19701 # Note that there is a small window in which the directory will not be cleaned:
19702 # after its creation but before its name has been assigned to `$tmp'.
19706 trap 'exit_status=$?
19707 : "${ac_tmp:=$tmp}"
19708 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19710 trap 'as_fn_exit 1' 1 2 13 15
19712 # Create a (secure) tmp directory for tmp files.
19715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19719 tmp=./conf$$-$RANDOM
19720 (umask 077 && mkdir "$tmp")
19721 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19724 # Set up the scripts for CONFIG_FILES section.
19725 # No need to generate them if there are no CONFIG_FILES.
19726 # This happens for instance with `./config.status config.h'.
19727 if test -n "$CONFIG_FILES"; then
19730 ac_cr=`echo X | tr X '\015'`
19731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19732 # But we know of no other shell where ac_cr would be empty at this
19733 # point, so we can use a bashism as a fallback.
19734 if test "x$ac_cr" = x; then
19735 eval ac_cr=\$\'\\r\'
19737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19741 ac_cs_awk_cr=$ac_cr
19744 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19749 echo "cat >conf$$subs.awk <<_ACEOF" &&
19750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19752 } >conf$$subs.sh ||
19753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19754 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19756 for ac_last_try in false false false false false :; do
19757 . ./conf$$subs.sh ||
19758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19761 if test $ac_delim_n = $ac_delim_num; then
19763 elif $ac_last_try; then
19764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19769 rm -f conf$$subs.sh
19771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19772 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19776 s/^/S["/; s/!.*/"]=/
19786 s/\(.\{148\}\)..*/\1/
19788 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19800 s/\(.\{148\}\)..*/\1/
19802 s/["\\]/\\&/g; s/^/"/; s/$/"/
19806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19811 ' <conf$$subs.awk | sed '
19816 ' >>$CONFIG_STATUS || ac_write_fail=1
19817 rm -f conf$$subs.awk
19818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19820 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19821 for (key in S) S_is_set[key] = 1
19827 nfields = split(line, field, "@")
19829 len = length(field[1])
19830 for (i = 2; i < nfields; i++) {
19832 keylen = length(key)
19833 if (S_is_set[key]) {
19835 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19836 len += length(value) + length(field[++i])
19847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19848 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19849 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19852 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19853 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19856 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19857 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19858 # trailing colons and then remove the whole line if VPATH becomes empty
19859 # (actually we leave an empty line to preserve line numbers).
19860 if test "x$srcdir" = x.; then
19861 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19880 fi # test -n "$CONFIG_FILES"
19882 # Set up the scripts for CONFIG_HEADERS section.
19883 # No need to generate them if there are no CONFIG_HEADERS.
19884 # This happens for instance with `./config.status Makefile'.
19885 if test -n "$CONFIG_HEADERS"; then
19886 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19890 # Transform confdefs.h into an awk script `defines.awk', embedded as
19891 # here-document in config.status, that substitutes the proper values into
19892 # config.h.in to produce config.h.
19894 # Create a delimiter string that does not exist in confdefs.h, to ease
19895 # handling of long lines.
19897 for ac_last_try in false false :; do
19898 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19899 if test -z "$ac_tt"; then
19901 elif $ac_last_try; then
19902 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19908 # For the awk script, D is an array of macro values keyed by name,
19909 # likewise P contains macro parameters if any. Preserve backslash
19910 # newline sequences.
19912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19914 s/.\{148\}/&'"$ac_delim"'/g
19917 s/^[ ]*#[ ]*define[ ][ ]*/ /
19924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19926 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19931 D["\1"]=" \3\\\\\\n"\\/p
19933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19938 s/.\{148\}/&'"$ac_delim"'/g
19943 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19946 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19948 ' <confdefs.h | sed '
19949 s/'"$ac_delim"'/"\\\
19950 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19953 for (key in D) D_is_set[key] = 1
19956 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19958 split(line, arg, " ")
19959 if (arg[1] == "#") {
19963 defundef = substr(arg[1], 2)
19966 split(mac1, mac2, "(") #)
19968 prefix = substr(line, 1, index(line, defundef) - 1)
19969 if (D_is_set[macro]) {
19970 # Preserve the white space surrounding the "#".
19971 print prefix "define", macro P[macro] D[macro]
19974 # Replace #undef with comments. This is necessary, for example,
19975 # in the case of _POSIX_SOURCE, which is predefined and required
19976 # on some systems where configure will not decide to define it.
19977 if (defundef == "undef") {
19978 print "/*", prefix defundef, macro, "*/"
19986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19987 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19988 fi # test -n "$CONFIG_HEADERS"
19991 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19996 :[FHLC]) ac_mode=$ac_tag; continue;;
19998 case $ac_mode$ac_tag in
20000 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20001 :[FH]-) ac_tag=-:-;;
20002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20019 -) ac_f="$ac_tmp/stdin";;
20020 *) # Look for the file first in the build tree, then in the source tree
20021 # (if the path is not absolute). The absolute path cannot be DOS-style,
20022 # because $ac_f cannot contain `:'.
20026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20028 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20030 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20031 as_fn_append ac_file_inputs " '$ac_f'"
20034 # Let's still pretend it is `configure' which instantiates (i.e., don't
20035 # use $as_me), people would be surprised to read:
20036 # /* config.h. Generated by config.status. */
20037 configure_input='Generated from '`
20038 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20040 if test x"$ac_file" != x-; then
20041 configure_input="$ac_file. $configure_input"
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20043 $as_echo "$as_me: creating $ac_file" >&6;}
20045 # Neutralize special characters interpreted by sed in replacement strings.
20046 case $configure_input in #(
20047 *\&* | *\|* | *\\* )
20048 ac_sed_conf_input=`$as_echo "$configure_input" |
20049 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20050 *) ac_sed_conf_input=$configure_input;;
20054 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20060 ac_dir=`$as_dirname -- "$ac_file" ||
20061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062 X"$ac_file" : 'X\(//\)[^/]' \| \
20063 X"$ac_file" : 'X\(//\)$' \| \
20064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20065 $as_echo X"$ac_file" |
20066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20070 /^X\(\/\/\)[^/].*/{
20083 as_dir="$ac_dir"; as_fn_mkdir_p
20087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20089 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20090 # A ".." for each directory in $ac_dir_suffix.
20091 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20092 case $ac_top_builddir_sub in
20093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20097 ac_abs_top_builddir=$ac_pwd
20098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20099 # for backward compatibility:
20100 ac_top_builddir=$ac_top_build_prefix
20103 .) # We are building in place.
20105 ac_top_srcdir=$ac_top_builddir_sub
20106 ac_abs_top_srcdir=$ac_pwd ;;
20107 [\\/]* | ?:[\\/]* ) # Absolute name.
20108 ac_srcdir=$srcdir$ac_dir_suffix;
20109 ac_top_srcdir=$srcdir
20110 ac_abs_top_srcdir=$srcdir ;;
20111 *) # Relative name.
20112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20113 ac_top_srcdir=$ac_top_build_prefix$srcdir
20114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20127 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20129 ac_MKDIR_P=$MKDIR_P
20131 [\\/$]* | ?:[\\/]* ) ;;
20132 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20137 # If the template does not know about datarootdir, expand it.
20138 # FIXME: This hack should be removed a few years after 2.60.
20139 ac_datarootdir_hack=; ac_datarootdir_seen=
20150 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20151 *datarootdir*) ac_datarootdir_seen=yes;;
20152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20154 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20157 ac_datarootdir_hack='
20158 s&@datadir@&$datadir&g
20159 s&@docdir@&$docdir&g
20160 s&@infodir@&$infodir&g
20161 s&@localedir@&$localedir&g
20162 s&@mandir@&$mandir&g
20163 s&\\\${datarootdir}&$datarootdir&g' ;;
20167 # Neutralize VPATH when `$srcdir' = `.'.
20168 # Shell code in configure.ac might set extrasub.
20169 # FIXME: do we really want to maintain this feature?
20170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20171 ac_sed_extra="$ac_vpsub
20174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20177 s|@configure_input@|$ac_sed_conf_input|;t t
20178 s&@top_builddir@&$ac_top_builddir_sub&;t t
20179 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20180 s&@srcdir@&$ac_srcdir&;t t
20181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20182 s&@top_srcdir@&$ac_top_srcdir&;t t
20183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20184 s&@builddir@&$ac_builddir&;t t
20185 s&@abs_builddir@&$ac_abs_builddir&;t t
20186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20187 s&@INSTALL@&$ac_INSTALL&;t t
20188 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20189 $ac_datarootdir_hack
20191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20192 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20194 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20195 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20197 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20199 which seems to be undefined. Please make sure it is defined" >&5
20200 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20201 which seems to be undefined. Please make sure it is defined" >&2;}
20203 rm -f "$ac_tmp/stdin"
20205 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20206 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20214 if test x"$ac_file" != x-; then
20216 $as_echo "/* $configure_input */" \
20217 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20218 } >"$ac_tmp/config.h" \
20219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20220 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20222 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20225 mv "$ac_tmp/config.h" "$ac_file" \
20226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20229 $as_echo "/* $configure_input */" \
20230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20231 || as_fn_error $? "could not create -" "$LINENO" 5
20233 # Compute "$ac_file"'s index in $config_headers.
20236 for _am_header in $config_headers :; do
20237 case $_am_header in
20238 $_am_arg | $_am_arg:* )
20241 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20244 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20245 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20246 X"$_am_arg" : 'X\(//\)[^/]' \| \
20247 X"$_am_arg" : 'X\(//\)$' \| \
20248 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20249 $as_echo X"$_am_arg" |
20250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20254 /^X\(\/\/\)[^/].*/{
20266 s/.*/./; q'`/stamp-h$_am_stamp_count
20269 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20270 $as_echo "$as_me: executing $ac_file commands" >&6;}
20275 case $ac_file$ac_mode in
20276 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20277 # Older Autoconf quotes --file arguments for eval, but not when files
20278 # are listed without --file. Let's play safe and only enable the eval
20279 # if we detect the quoting.
20280 case $CONFIG_FILES in
20281 *\'*) eval set x "$CONFIG_FILES" ;;
20282 *) set x $CONFIG_FILES ;;
20287 # Strip MF so we end up with the name of the file.
20288 mf=`echo "$mf" | sed -e 's/:.*$//'`
20289 # Check whether this is an Automake generated Makefile or not.
20290 # We used to match only the files named 'Makefile.in', but
20291 # some people rename them; so instead we look at the file content.
20292 # Grep'ing the first line is not enough: some people post-process
20293 # each Makefile.in and add a new line on top of each file to say so.
20294 # Grep'ing the whole file is not good either: AIX grep has a line
20295 # limit of 2048, but all sed's we know have understand at least 4000.
20296 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20297 dirpart=`$as_dirname -- "$mf" ||
20298 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299 X"$mf" : 'X\(//\)[^/]' \| \
20300 X"$mf" : 'X\(//\)$' \| \
20301 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20307 /^X\(\/\/\)[^/].*/{
20323 # Extract the definition of DEPDIR, am__include, and am__quote
20324 # from the Makefile without running 'make'.
20325 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20326 test -z "$DEPDIR" && continue
20327 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20328 test -z "$am__include" && continue
20329 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20330 # Find all dependency output files, they are included files with
20331 # $(DEPDIR) in their names. We invoke sed twice because it is the
20332 # simplest approach to changing $(DEPDIR) to its actual value in the
20334 for file in `sed -n "
20335 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20336 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20337 # Make sure the directory exists.
20338 test -f "$dirpart/$file" && continue
20339 fdir=`$as_dirname -- "$file" ||
20340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20341 X"$file" : 'X\(//\)[^/]' \| \
20342 X"$file" : 'X\(//\)$' \| \
20343 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20344 $as_echo X"$file" |
20345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20349 /^X\(\/\/\)[^/].*/{
20362 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20363 # echo "creating $dirpart/$file"
20364 echo '# dummy' > "$dirpart/$file"
20371 # See if we are running on zsh, and set the options that allow our
20372 # commands through without removal of \ escapes.
20373 if test -n "${ZSH_VERSION+set}"; then
20374 setopt NO_GLOB_SUBST
20378 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20381 cat <<_LT_EOF >> "$cfgfile"
20383 # Generated automatically by $as_me ($PACKAGE) $VERSION
20384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20387 # Provide generalized library-building support services.
20388 # Written by Gordon Matzigkeit, 1996
20390 # Copyright (C) 2014 Free Software Foundation, Inc.
20391 # This is free software; see the source for copying conditions. There is NO
20392 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20394 # GNU Libtool is free software; you can redistribute it and/or modify
20395 # it under the terms of the GNU General Public License as published by
20396 # the Free Software Foundation; either version 2 of of the License, or
20397 # (at your option) any later version.
20399 # As a special exception to the GNU General Public License, if you
20400 # distribute this file as part of a program or library that is built
20401 # using GNU Libtool, you may include this file under the same
20402 # distribution terms that you use for the rest of that program.
20404 # GNU Libtool is distributed in the hope that it will be useful, but
20405 # WITHOUT ANY WARRANTY; without even the implied warranty of
20406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20407 # GNU General Public License for more details.
20409 # You should have received a copy of the GNU General Public License
20410 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20413 # The names of the tagged configurations supported by this script.
20414 available_tags='CXX '
20416 # Configured defaults for sys_lib_dlsearch_path munging.
20417 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20419 # ### BEGIN LIBTOOL CONFIG
20421 # Which release of libtool.m4 was used?
20422 macro_version=$macro_version
20423 macro_revision=$macro_revision
20425 # Assembler program.
20428 # DLL creation program.
20429 DLLTOOL=$lt_DLLTOOL
20431 # Object dumper program.
20432 OBJDUMP=$lt_OBJDUMP
20434 # Whether or not to build shared libraries.
20435 build_libtool_libs=$enable_shared
20437 # Whether or not to build static libraries.
20438 build_old_libs=$enable_static
20440 # What type of objects to build.
20443 # Whether or not to optimize for fast installation.
20444 fast_install=$enable_fast_install
20446 # Shared archive member basename,for filename based shared library versioning on AIX.
20447 shared_archive_member_spec=$shared_archive_member_spec
20449 # Shell to use when invoking shell scripts.
20452 # An echo program that protects backslashes.
20455 # The PATH separator for the build system.
20456 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20459 host_alias=$host_alias
20463 # The build system.
20464 build_alias=$build_alias
20468 # A sed program that does not truncate output.
20471 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20472 Xsed="\$SED -e 1s/^X//"
20474 # A grep program that handles long lines.
20480 # A literal string matcher.
20483 # A BSD- or MS-compatible name lister.
20486 # Whether we need soft or hard links.
20489 # What is the maximum length of a command?
20490 max_cmd_len=$max_cmd_len
20492 # Object file suffix (normally "o").
20495 # Executable file suffix (normally "").
20498 # whether the shell understands "unset".
20501 # turn spaces into newlines.
20504 # turn newlines into spaces.
20507 # convert \$build file names to \$host format.
20508 to_host_file_cmd=$lt_cv_to_host_file_cmd
20510 # convert \$build files to toolchain format.
20511 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20513 # Method to check whether dependent libraries are shared objects.
20514 deplibs_check_method=$lt_deplibs_check_method
20516 # Command to use when deplibs_check_method = "file_magic".
20517 file_magic_cmd=$lt_file_magic_cmd
20519 # How to find potential files when deplibs_check_method = "file_magic".
20520 file_magic_glob=$lt_file_magic_glob
20522 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20523 want_nocaseglob=$lt_want_nocaseglob
20525 # Command to associate shared and link libraries.
20526 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20531 # Flags to create an archive.
20532 AR_FLAGS=$lt_AR_FLAGS
20534 # How to feed a file listing to the archiver.
20535 archiver_list_spec=$lt_archiver_list_spec
20537 # A symbol stripping program.
20540 # Commands used to install an old-style archive.
20542 old_postinstall_cmds=$lt_old_postinstall_cmds
20543 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20545 # Whether to use a lock for old archive extraction.
20546 lock_old_archive_extraction=$lock_old_archive_extraction
20551 # LTCC compiler flags.
20552 LTCFLAGS=$lt_CFLAGS
20554 # Take the output of nm and produce a listing of raw symbols and C names.
20555 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20557 # Transform the output of nm in a proper C declaration.
20558 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20560 # Transform the output of nm into a list of symbols to manually relocate.
20561 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20563 # Transform the output of nm in a C name address pair.
20564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20566 # Transform the output of nm in a C name address pair when lib prefix is needed.
20567 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20569 # The name lister interface.
20570 nm_interface=$lt_lt_cv_nm_interface
20572 # Specify filename containing input files for \$NM.
20573 nm_file_list_spec=$lt_nm_file_list_spec
20575 # The root where to search for dependent libraries,and where our libraries should be installed.
20576 lt_sysroot=$lt_sysroot
20578 # Command to truncate a binary pipe.
20579 lt_truncate_bin=$lt_lt_cv_truncate_bin
20581 # The name of the directory that contains temporary libtool files.
20584 # Used to examine libraries when file_magic_cmd begins with "file".
20585 MAGIC_CMD=$MAGIC_CMD
20587 # Must we lock files when doing compilation?
20588 need_locks=$lt_need_locks
20591 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20593 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20594 DSYMUTIL=$lt_DSYMUTIL
20596 # Tool to change global to local symbols on Mac OS X.
20599 # Tool to manipulate fat objects and archives on Mac OS X.
20602 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20605 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20606 OTOOL64=$lt_OTOOL64
20608 # Old archive suffix (normally "a").
20611 # Shared library suffix (normally ".so").
20612 shrext_cmds=$lt_shrext_cmds
20614 # The commands to extract the exported symbol list from a shared archive.
20615 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20617 # Variables whose values should be saved in libtool wrapper scripts and
20618 # restored at link time.
20619 variables_saved_for_relink=$lt_variables_saved_for_relink
20621 # Do we need the "lib" prefix for modules?
20622 need_lib_prefix=$need_lib_prefix
20624 # Do we need a version for libraries?
20625 need_version=$need_version
20627 # Library versioning type.
20628 version_type=$version_type
20630 # Shared library runtime path variable.
20631 runpath_var=$runpath_var
20633 # Shared library path variable.
20634 shlibpath_var=$shlibpath_var
20636 # Is shlibpath searched before the hard-coded library search path?
20637 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20639 # Format of library name prefix.
20640 libname_spec=$lt_libname_spec
20642 # List of archive names. First name is the real one, the rest are links.
20643 # The last name is the one that the linker finds with -lNAME
20644 library_names_spec=$lt_library_names_spec
20646 # The coded name of the library, if different from the real name.
20647 soname_spec=$lt_soname_spec
20649 # Permission mode override for installation of shared libraries.
20650 install_override_mode=$lt_install_override_mode
20652 # Command to use after installation of a shared archive.
20653 postinstall_cmds=$lt_postinstall_cmds
20655 # Command to use after uninstallation of a shared archive.
20656 postuninstall_cmds=$lt_postuninstall_cmds
20658 # Commands used to finish a libtool library installation in a directory.
20659 finish_cmds=$lt_finish_cmds
20661 # As "finish_cmds", except a single script fragment to be evaled but
20663 finish_eval=$lt_finish_eval
20665 # Whether we should hardcode library paths into libraries.
20666 hardcode_into_libs=$hardcode_into_libs
20668 # Compile-time system search path for libraries.
20669 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20671 # Detected run-time system search path for libraries.
20672 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20674 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20675 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20677 # Whether dlopen is supported.
20678 dlopen_support=$enable_dlopen
20680 # Whether dlopen of programs is supported.
20681 dlopen_self=$enable_dlopen_self
20683 # Whether dlopen of statically linked programs is supported.
20684 dlopen_self_static=$enable_dlopen_self_static
20686 # Commands to strip libraries.
20687 old_striplib=$lt_old_striplib
20688 striplib=$lt_striplib
20691 # The linker used to build libraries.
20694 # How to create reloadable object files.
20695 reload_flag=$lt_reload_flag
20696 reload_cmds=$lt_reload_cmds
20698 # Commands used to build an old-style archive.
20699 old_archive_cmds=$lt_old_archive_cmds
20701 # A language specific compiler.
20704 # Is the compiler the GNU compiler?
20707 # Compiler flag to turn off builtin functions.
20708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20710 # Additional compiler flags for building library objects.
20711 pic_flag=$lt_lt_prog_compiler_pic
20713 # How to pass a linker flag through the compiler.
20714 wl=$lt_lt_prog_compiler_wl
20716 # Compiler flag to prevent dynamic linking.
20717 link_static_flag=$lt_lt_prog_compiler_static
20719 # Does compiler simultaneously support -c and -o options?
20720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20722 # Whether or not to add -lc for building shared libraries.
20723 build_libtool_need_lc=$archive_cmds_need_lc
20725 # Whether or not to disallow shared libs when runtime libs are static.
20726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20728 # Compiler flag to allow reflexive dlopens.
20729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20731 # Compiler flag to generate shared objects directly from archives.
20732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20734 # Whether the compiler copes with passing no objects directly.
20735 compiler_needs_object=$lt_compiler_needs_object
20737 # Create an old-style archive from a shared archive.
20738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20740 # Create a temporary old-style archive to link instead of a shared archive.
20741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20743 # Commands used to build a shared archive.
20744 archive_cmds=$lt_archive_cmds
20745 archive_expsym_cmds=$lt_archive_expsym_cmds
20747 # Commands used to build a loadable module if different from building
20748 # a shared archive.
20749 module_cmds=$lt_module_cmds
20750 module_expsym_cmds=$lt_module_expsym_cmds
20752 # Whether we are building with GNU ld or not.
20753 with_gnu_ld=$lt_with_gnu_ld
20755 # Flag that allows shared libraries with undefined symbols to be built.
20756 allow_undefined_flag=$lt_allow_undefined_flag
20758 # Flag that enforces no undefined symbols.
20759 no_undefined_flag=$lt_no_undefined_flag
20761 # Flag to hardcode \$libdir into a binary during linking.
20762 # This must work even if \$libdir does not exist
20763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20765 # Whether we need a single "-rpath" flag with a separated argument.
20766 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20768 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20769 # DIR into the resulting binary.
20770 hardcode_direct=$hardcode_direct
20772 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20773 # DIR into the resulting binary and the resulting library dependency is
20774 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20775 # library is relocated.
20776 hardcode_direct_absolute=$hardcode_direct_absolute
20778 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20779 # into the resulting binary.
20780 hardcode_minus_L=$hardcode_minus_L
20782 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20783 # into the resulting binary.
20784 hardcode_shlibpath_var=$hardcode_shlibpath_var
20786 # Set to "yes" if building a shared library automatically hardcodes DIR
20787 # into the library and all subsequent libraries and executables linked
20789 hardcode_automatic=$hardcode_automatic
20791 # Set to yes if linker adds runtime paths of dependent libraries
20792 # to runtime path list.
20793 inherit_rpath=$inherit_rpath
20795 # Whether libtool must link a program against all its dependency libraries.
20796 link_all_deplibs=$link_all_deplibs
20798 # Set to "yes" if exported symbols are required.
20799 always_export_symbols=$always_export_symbols
20801 # The commands to list exported symbols.
20802 export_symbols_cmds=$lt_export_symbols_cmds
20804 # Symbols that should not be listed in the preloaded symbols.
20805 exclude_expsyms=$lt_exclude_expsyms
20807 # Symbols that must always be exported.
20808 include_expsyms=$lt_include_expsyms
20810 # Commands necessary for linking programs (against libraries) with templates.
20811 prelink_cmds=$lt_prelink_cmds
20813 # Commands necessary for finishing linking programs.
20814 postlink_cmds=$lt_postlink_cmds
20816 # Specify filename containing input files.
20817 file_list_spec=$lt_file_list_spec
20819 # How to hardcode a shared library path into an executable.
20820 hardcode_action=$hardcode_action
20822 # The directories searched by this compiler when creating a shared library.
20823 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20825 # Dependencies to place before and after the objects being linked to
20826 # create a shared library.
20827 predep_objects=$lt_predep_objects
20828 postdep_objects=$lt_postdep_objects
20829 predeps=$lt_predeps
20830 postdeps=$lt_postdeps
20832 # The library search path used internally by the compiler when linking
20833 # a shared library.
20834 compiler_lib_search_path=$lt_compiler_lib_search_path
20836 # ### END LIBTOOL CONFIG
20840 cat <<'_LT_EOF' >> "$cfgfile"
20842 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20844 # func_munge_path_list VARIABLE PATH
20845 # -----------------------------------
20846 # VARIABLE is name of variable containing _space_ separated list of
20847 # directories to be munged by the contents of PATH, which is string
20850 # string "DIR[ DIR]" will be prepended to VARIABLE
20852 # string "DIR[ DIR]" will be appended to VARIABLE
20853 # "DIRP[:DIRP]::[DIRA:]DIRA"
20854 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20855 # "DIRA[ DIRA]" will be appended to VARIABLE
20857 # VARIABLE will be replaced by "DIR[ DIR]"
20858 func_munge_path_list ()
20864 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20867 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20870 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20871 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20874 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20880 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20881 func_cc_basename ()
20883 for cc_temp in $*""; do
20885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20891 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20895 # ### END FUNCTIONS SHARED WITH CONFIGURE
20901 cat <<\_LT_EOF >> "$cfgfile"
20902 # AIX sometimes has problems with the GCC collect2 program. For some
20903 # reason, if we set the COLLECT_NAMES environment variable, the problems
20904 # vanish in a puff of smoke.
20905 if test set != "${COLLECT_NAMES+set}"; then
20907 export COLLECT_NAMES
20914 ltmain=$ac_aux_dir/ltmain.sh
20917 # We use sed instead of cat because bash on DJGPP gets confused if
20918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20919 # text mode, it properly converts lines to CR/LF. This bash problem
20920 # is reportedly fixed, but why not run on old versions too?
20921 sed '$q' "$ltmain" >> "$cfgfile" \
20922 || (rm -f "$cfgfile"; exit 1)
20924 mv -f "$cfgfile" "$ofile" ||
20925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20929 cat <<_LT_EOF >> "$ofile"
20931 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20933 # The linker used to build libraries.
20936 # How to create reloadable object files.
20937 reload_flag=$lt_reload_flag_CXX
20938 reload_cmds=$lt_reload_cmds_CXX
20940 # Commands used to build an old-style archive.
20941 old_archive_cmds=$lt_old_archive_cmds_CXX
20943 # A language specific compiler.
20944 CC=$lt_compiler_CXX
20946 # Is the compiler the GNU compiler?
20949 # Compiler flag to turn off builtin functions.
20950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20952 # Additional compiler flags for building library objects.
20953 pic_flag=$lt_lt_prog_compiler_pic_CXX
20955 # How to pass a linker flag through the compiler.
20956 wl=$lt_lt_prog_compiler_wl_CXX
20958 # Compiler flag to prevent dynamic linking.
20959 link_static_flag=$lt_lt_prog_compiler_static_CXX
20961 # Does compiler simultaneously support -c and -o options?
20962 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20964 # Whether or not to add -lc for building shared libraries.
20965 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20967 # Whether or not to disallow shared libs when runtime libs are static.
20968 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20970 # Compiler flag to allow reflexive dlopens.
20971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20973 # Compiler flag to generate shared objects directly from archives.
20974 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20976 # Whether the compiler copes with passing no objects directly.
20977 compiler_needs_object=$lt_compiler_needs_object_CXX
20979 # Create an old-style archive from a shared archive.
20980 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20982 # Create a temporary old-style archive to link instead of a shared archive.
20983 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20985 # Commands used to build a shared archive.
20986 archive_cmds=$lt_archive_cmds_CXX
20987 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20989 # Commands used to build a loadable module if different from building
20990 # a shared archive.
20991 module_cmds=$lt_module_cmds_CXX
20992 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20994 # Whether we are building with GNU ld or not.
20995 with_gnu_ld=$lt_with_gnu_ld_CXX
20997 # Flag that allows shared libraries with undefined symbols to be built.
20998 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21000 # Flag that enforces no undefined symbols.
21001 no_undefined_flag=$lt_no_undefined_flag_CXX
21003 # Flag to hardcode \$libdir into a binary during linking.
21004 # This must work even if \$libdir does not exist
21005 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21007 # Whether we need a single "-rpath" flag with a separated argument.
21008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21010 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21011 # DIR into the resulting binary.
21012 hardcode_direct=$hardcode_direct_CXX
21014 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21015 # DIR into the resulting binary and the resulting library dependency is
21016 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21017 # library is relocated.
21018 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21020 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21021 # into the resulting binary.
21022 hardcode_minus_L=$hardcode_minus_L_CXX
21024 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21025 # into the resulting binary.
21026 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21028 # Set to "yes" if building a shared library automatically hardcodes DIR
21029 # into the library and all subsequent libraries and executables linked
21031 hardcode_automatic=$hardcode_automatic_CXX
21033 # Set to yes if linker adds runtime paths of dependent libraries
21034 # to runtime path list.
21035 inherit_rpath=$inherit_rpath_CXX
21037 # Whether libtool must link a program against all its dependency libraries.
21038 link_all_deplibs=$link_all_deplibs_CXX
21040 # Set to "yes" if exported symbols are required.
21041 always_export_symbols=$always_export_symbols_CXX
21043 # The commands to list exported symbols.
21044 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21046 # Symbols that should not be listed in the preloaded symbols.
21047 exclude_expsyms=$lt_exclude_expsyms_CXX
21049 # Symbols that must always be exported.
21050 include_expsyms=$lt_include_expsyms_CXX
21052 # Commands necessary for linking programs (against libraries) with templates.
21053 prelink_cmds=$lt_prelink_cmds_CXX
21055 # Commands necessary for finishing linking programs.
21056 postlink_cmds=$lt_postlink_cmds_CXX
21058 # Specify filename containing input files.
21059 file_list_spec=$lt_file_list_spec_CXX
21061 # How to hardcode a shared library path into an executable.
21062 hardcode_action=$hardcode_action_CXX
21064 # The directories searched by this compiler when creating a shared library.
21065 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21067 # Dependencies to place before and after the objects being linked to
21068 # create a shared library.
21069 predep_objects=$lt_predep_objects_CXX
21070 postdep_objects=$lt_postdep_objects_CXX
21071 predeps=$lt_predeps_CXX
21072 postdeps=$lt_postdeps_CXX
21074 # The library search path used internally by the compiler when linking
21075 # a shared library.
21076 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21078 # ### END LIBTOOL TAG CONFIG: CXX
21089 ac_clean_files=$ac_clean_files_save
21091 test $ac_write_fail = 0 ||
21092 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21095 # configure is writing to config.log, and then calls config.status.
21096 # config.status does its own redirection, appending to config.log.
21097 # Unfortunately, on DOS this fails, as config.log is still kept open
21098 # by configure, so config.status won't be able to write to it; its
21099 # output is simply discarded. So we exec the FD to /dev/null,
21100 # effectively closing config.log, so it can be properly (re)opened and
21101 # appended to by config.status. When coming back to configure, we
21102 # need to make the FD available again.
21103 if test "$no_create" != yes; then
21105 ac_config_status_args=
21106 test "$silent" = yes &&
21107 ac_config_status_args="$ac_config_status_args --quiet"
21109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21112 # would make configure fail if this is the last instruction.
21113 $ac_cs_success || as_fn_exit 1
21115 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21117 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}