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
779 program_transform_name
792 enable_option_checking
794 enable_dependency_tracking
804 ac_precious_vars='build_alias
820 # Initialize some variables set by options.
822 ac_init_version=false
823 ac_unrecognized_opts=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
978 -help | --help | --hel | --he | -h)
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1127 -site=* | --site=* | --sit=*)
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=no ;;
1186 # Obsolete; use --with-x.
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1254 # Be sure to have absolute directory names.
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $? "pwd does not report name of working directory"
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1324 ac_srcdir_defaulted=no
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1358 \`configure' configures libasprintf 1.0 to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/libasprintf]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of libasprintf 1.0:";;
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-silent-rules less verbose build output (undo: "make V=1")
1437 --disable-silent-rules verbose build output (undo: "make V=0")
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --enable-shared[=PKGS] build shared libraries [default=yes]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1453 --with-aix-soname=aix|svr4|both
1454 shared library versioning (aka "SONAME") variant to
1455 provide on AIX, [default=aix].
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1458 compiler's sysroot if not specified).
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1472 User-defined run-time library search path.
1473 CXXCPP C++ preprocessor
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to the package provider.
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1541 libasprintf configure 1.0
1542 generated by GNU Autoconf 2.69
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_cxx_try_compile LINENO
1594 # ----------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_cxx_try_compile ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_cxx_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1629 } # ac_fn_cxx_try_compile
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 test -x conftest$ac_exeext
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706 # interfere with the next link command; also delete a directory that is
1707 # left behind by Apple's compiler. We do this before executing the actions.
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1712 } # ac_fn_c_try_link
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1731 if ac_fn_c_try_compile "$LINENO"; then :
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 } # ac_fn_c_check_header_compile
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=$ac_status
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1802 #define $2 innocuous_$2
1804 /* System header to define __stub macros and hopefully few prototypes,
1805 which can conflict with char $2 (); below.
1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1807 <limits.h> exists even on freestanding compilers. */
1810 # include <limits.h>
1812 # include <assert.h>
1817 /* Override any GCC internal prototype to avoid an error.
1818 Use char because int might match the return type of a GCC
1819 builtin and then its argument prototype would still apply. */
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined __stub_$2 || defined __stub___$2
1839 if ac_fn_c_try_link "$LINENO"; then :
1844 rm -f core conftest.err conftest.$ac_objext \
1845 conftest$ac_exeext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 } # ac_fn_c_check_func
1854 # ac_fn_cxx_try_cpp LINENO
1855 # ------------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_cxx_try_cpp ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } > conftest.i && {
1876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_cxx_try_cpp
1891 # ac_fn_cxx_try_link LINENO
1892 # -------------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_link ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_cxx_try_link
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1942 ac_fn_c_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if eval \${$3+:} false; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.i conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 eval "$3=\$ac_header_compiler"
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_header_mongrel
2024 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2025 # -------------------------------------------
2026 # Tests whether TYPE exists after having included INCLUDES, setting cache
2027 # variable VAR accordingly.
2028 ac_fn_c_check_type ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2062 if ac_fn_c_try_compile "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_type
2078 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2079 # --------------------------------------------
2080 # Tries to find the compile-time value of EXPR in a program that includes
2081 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2083 ac_fn_c_compute_int ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if test "$cross_compiling" = yes; then
2087 # Depending upon the size, compute the lo and hi bounds.
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) >= 0)];
2096 return test_array [0];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 return test_array [0];
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid; break
2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123 if test $ac_lo -le $ac_mid; then
2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) < 0)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2157 return test_array [0];
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_lo=$ac_mid; break
2166 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2167 if test $ac_mid -le $ac_hi; then
2171 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 # Binary search between lo and hi bounds.
2182 while test "x$ac_lo" != "x$ac_hi"; do
2183 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 return test_array [0];
2198 if ac_fn_c_try_compile "$LINENO"; then :
2201 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2213 static long int longval () { return $2; }
2214 static unsigned long int ulongval () { return $2; }
2221 FILE *f = fopen ("conftest.val", "w");
2226 long int i = longval ();
2229 fprintf (f, "%ld", i);
2233 unsigned long int i = ulongval ();
2236 fprintf (f, "%lu", i);
2238 /* Do not output a trailing newline, as this causes \r\n confusion
2239 on some platforms. */
2240 return ferror (f) || fclose (f) != 0;
2246 if ac_fn_c_try_run "$LINENO"; then :
2247 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2252 conftest.$ac_objext conftest.beam conftest.$ac_ext
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2259 } # ac_fn_c_compute_int
2261 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2262 # ---------------------------------------------
2263 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2265 ac_fn_c_check_decl ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 as_decl_name=`echo $2|sed 's/ *(.*//'`
2269 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2271 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2272 if eval \${$3+:} false; then :
2273 $as_echo_n "(cached) " >&6
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 #ifndef $as_decl_name
2283 (void) $as_decl_use;
2285 (void) $as_decl_name;
2293 if ac_fn_c_try_compile "$LINENO"; then :
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 } # ac_fn_c_check_decl
2306 cat >config.log <<_ACEOF
2307 This file contains any messages produced by compilers while
2308 running configure, to aid debugging if configure makes a mistake.
2310 It was created by libasprintf $as_me 1.0, which was
2311 generated by GNU Autoconf 2.69. Invocation command line was
2323 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2324 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2325 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2326 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2327 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2330 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2332 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2333 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2334 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2335 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2336 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2337 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2338 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 $as_echo "PATH: $as_dir"
2363 # Keep a trace of the command line.
2364 # Strip out --no-create and --no-recursion so they do not pile up.
2365 # Strip out --silent because we don't want to record it for future runs.
2366 # Also quote any args containing shell meta-characters.
2367 # Make two passes to allow for proper duplicate-argument suppression.
2371 ac_must_keep_next=false
2377 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2379 | -silent | --silent | --silen | --sile | --sil)
2382 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387 as_fn_append ac_configure_args1 " '$ac_arg'"
2388 if test $ac_must_keep_next = true; then
2389 ac_must_keep_next=false # Got value, back to normal.
2392 *=* | --config-cache | -C | -disable-* | --disable-* \
2393 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2394 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2395 | -with-* | --with-* | -without-* | --without-* | --x)
2396 case "$ac_configure_args0 " in
2397 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400 -* ) ac_must_keep_next=true ;;
2403 as_fn_append ac_configure_args " '$ac_arg'"
2408 { ac_configure_args0=; unset ac_configure_args0;}
2409 { ac_configure_args1=; unset ac_configure_args1;}
2411 # When interrupted or exit'd, cleanup temporary files, and complete
2412 # config.log. We remove comments because anyway the quotes in there
2413 # would cause problems or look ugly.
2414 # WARNING: Use '\'' to represent an apostrophe within the trap.
2415 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2416 trap 'exit_status=$?
2417 # Save into config.log some information that might help in debugging.
2421 $as_echo "## ---------------- ##
2422 ## Cache variables. ##
2423 ## ---------------- ##"
2425 # The following way of writing the cache mishandles newlines in values,
2427 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2428 eval ac_val=\$$ac_var
2432 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2433 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2436 _ | IFS | as_nl) ;; #(
2437 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2438 *) { eval $ac_var=; unset $ac_var;} ;;
2443 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2444 *${as_nl}ac_space=\ *)
2446 "s/'\''/'\''\\\\'\'''\''/g;
2447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2457 $as_echo "## ----------------- ##
2458 ## Output variables. ##
2459 ## ----------------- ##"
2461 for ac_var in $ac_subst_vars
2463 eval ac_val=\$$ac_var
2465 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 $as_echo "$ac_var='\''$ac_val'\''"
2471 if test -n "$ac_subst_files"; then
2472 $as_echo "## ------------------- ##
2473 ## File substitutions. ##
2474 ## ------------------- ##"
2476 for ac_var in $ac_subst_files
2478 eval ac_val=\$$ac_var
2480 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 $as_echo "$ac_var='\''$ac_val'\''"
2487 if test -s confdefs.h; then
2488 $as_echo "## ----------- ##
2495 test "$ac_signal" != 0 &&
2496 $as_echo "$as_me: caught signal $ac_signal"
2497 $as_echo "$as_me: exit $exit_status"
2499 rm -f core *.core core.conftest.* &&
2500 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2503 for ac_signal in 1 2 13 15; do
2504 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2509 rm -f -r conftest* confdefs.h
2511 $as_echo "/* confdefs.h */" > confdefs.h
2513 # Predefined preprocessor variables.
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_NAME "$PACKAGE_NAME"
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_STRING "$PACKAGE_STRING"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_URL "$PACKAGE_URL"
2540 # Let the site file select an alternate cache file if it wants to.
2541 # Prefer an explicitly selected file to automatically selected ones.
2544 if test -n "$CONFIG_SITE"; then
2545 # We do not want a PATH search for config.site.
2546 case $CONFIG_SITE in #((
2547 -*) ac_site_file1=./$CONFIG_SITE;;
2548 */*) ac_site_file1=$CONFIG_SITE;;
2549 *) ac_site_file1=./$CONFIG_SITE;;
2551 elif test "x$prefix" != xNONE; then
2552 ac_site_file1=$prefix/share/config.site
2553 ac_site_file2=$prefix/etc/config.site
2555 ac_site_file1=$ac_default_prefix/share/config.site
2556 ac_site_file2=$ac_default_prefix/etc/config.site
2558 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560 test "x$ac_site_file" = xNONE && continue
2561 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2563 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2564 sed 's/^/| /' "$ac_site_file" >&5
2566 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 as_fn_error $? "failed to load site script $ac_site_file
2569 See \`config.log' for more details" "$LINENO" 5; }
2573 if test -r "$cache_file"; then
2574 # Some versions of bash will fail to source /dev/null (special files
2575 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2576 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2578 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2581 *) . "./$cache_file";;
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2586 $as_echo "$as_me: creating cache $cache_file" >&6;}
2590 gl_header_list="$gl_header_list stdlib.h"
2591 gl_header_list="$gl_header_list string.h"
2592 # Check that the precious variables saved in the cache have kept the same
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2607 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2617 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2621 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2625 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2627 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2633 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 if $ac_cache_corrupted; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2649 ## -------------------- ##
2650 ## Main body of script. ##
2651 ## -------------------- ##
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2663 if test -f "$ac_dir/install-sh"; then
2665 ac_install_sh="$ac_aux_dir/install-sh -c"
2667 elif test -f "$ac_dir/install.sh"; then
2669 ac_install_sh="$ac_aux_dir/install.sh -c"
2671 elif test -f "$ac_dir/shtool"; then
2673 ac_install_sh="$ac_aux_dir/shtool install -c"
2677 if test -z "$ac_aux_dir"; then
2678 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2686 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2687 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690 am__api_version='1.15'
2692 # Find a good install program. We prefer a C program (faster),
2693 # so one script is as good as another. But avoid the broken or
2694 # incompatible versions:
2695 # SysV /etc/install, /usr/sbin/install
2696 # SunOS /usr/etc/install
2697 # IRIX /sbin/install
2699 # AmigaOS /C/install, which installs bootblocks on floppy discs
2700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703 # OS/2's system install, which has a completely different semantic
2704 # ./install, which can be erroneously created by make from ./install.sh.
2705 # Reject install programs that cannot install multiple files.
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2707 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2708 if test -z "$INSTALL"; then
2709 if ${ac_cv_path_install+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir=.
2717 # Account for people who put trailing slashes in PATH elements.
2718 case $as_dir/ in #((
2719 ./ | .// | /[cC]/* | \
2720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2721 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2724 # OSF1 and SCO ODT 3.0 have their own names for install.
2725 # Don't use installbsd from OSF since it installs stuff as root
2727 for ac_prog in ginstall scoinst install; do
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2730 if test $ac_prog = install &&
2731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732 # AIX install. It has an incompatible calling convention.
2734 elif test $ac_prog = install &&
2735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2736 # program-specific install script used by HP pwplus--don't use.
2739 rm -rf conftest.one conftest.two conftest.dir
2740 echo one > conftest.one
2741 echo two > conftest.two
2743 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2744 test -s conftest.one && test -s conftest.two &&
2745 test -s conftest.dir/conftest.one &&
2746 test -s conftest.dir/conftest.two
2748 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2761 rm -rf conftest.one conftest.two conftest.dir
2764 if test "${ac_cv_path_install+set}" = set; then
2765 INSTALL=$ac_cv_path_install
2767 # As a last resort, use the slow shell script. Don't cache a
2768 # value for INSTALL within a source directory, because that will
2769 # break other packages using the cache if that directory is
2770 # removed, or if the value is a relative name.
2771 INSTALL=$ac_install_sh
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2775 $as_echo "$INSTALL" >&6; }
2777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2778 # It thinks the first close brace ends the variable substitution.
2779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2786 $as_echo_n "checking whether build environment is sane... " >&6; }
2787 # Reject unsafe characters in $srcdir or the absolute working directory
2788 # name. Accept space and tab only in the latter.
2792 *[\\\"\#\$\&\'\`$am_lf]*)
2793 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2796 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2797 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2800 # Do 'set' in a subshell so we don't clobber the current shell's
2801 # arguments. Must try -L first in case configure is actually a
2802 # symlink; some systems play weird games with the mod time of symlinks
2803 # (eg FreeBSD returns the mod time of the symlink's containing
2807 for am_try in 1 2; do
2808 echo "timestamp, slept: $am_has_slept" > conftest.file
2809 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2810 if test "$*" = "X"; then
2812 set X `ls -t "$srcdir/configure" conftest.file`
2814 if test "$*" != "X $srcdir/configure conftest.file" \
2815 && test "$*" != "X conftest.file $srcdir/configure"; then
2817 # If neither matched, then we have a broken ls. This can happen
2818 # if, for instance, CONFIG_SHELL is bash and it inherits a
2819 # broken ls alias from the environment. This has actually
2820 # happened. Such a system could not be considered "sane".
2821 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2822 alias in your environment" "$LINENO" 5
2824 if test "$2" = conftest.file || test $am_try -eq 2; then
2831 test "$2" = conftest.file
2837 as_fn_error $? "newly created file is older than distributed files!
2838 Check your system clock" "$LINENO" 5
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841 $as_echo "yes" >&6; }
2842 # If we didn't sleep, we still need to ensure time stamps of config.status and
2843 # generated files are strictly newer.
2845 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2852 test "$program_prefix" != NONE &&
2853 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2854 # Use a double $ so make ignores it.
2855 test "$program_suffix" != NONE &&
2856 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2857 # Double any \ or $.
2858 # By default was `s,x,x', remove it if useless.
2859 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2860 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862 # Expand $ac_aux_dir to an absolute path.
2863 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2865 if test x"${MISSING+set}" != xset; then
2868 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2873 # Use eval to expand $SHELL
2874 if eval "$MISSING --is-lightweight"; then
2875 am_missing_run="$MISSING "
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2879 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2882 if test x"${install_sh+set}" != xset; then
2885 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887 install_sh="\${SHELL} $am_aux_dir/install-sh"
2891 # Installed binaries are usually stripped using 'strip' when the user
2892 # run "make install-strip". However 'strip' might not be the right
2893 # tool to use in cross-compilation environments, therefore Automake
2894 # will honor the 'STRIP' environment variable to overrule this program.
2895 if test "$cross_compiling" != no; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}strip; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_STRIP+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$STRIP"; then
2905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 STRIP=$ac_cv_prog_STRIP
2925 if test -n "$STRIP"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2927 $as_echo "$STRIP" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test -z "$ac_cv_prog_STRIP"; then
2937 # Extract the first word of "strip", so it can be a program name with args.
2938 set dummy strip; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$ac_ct_STRIP"; then
2945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_ac_ct_STRIP="strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2965 if test -n "$ac_ct_STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2967 $as_echo "$ac_ct_STRIP" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2973 if test "x$ac_ct_STRIP" = x; then
2976 case $cross_compiling:$ac_tool_warned in
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2985 STRIP="$ac_cv_prog_STRIP"
2989 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2992 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2993 if test -z "$MKDIR_P"; then
2994 if ${ac_cv_path_mkdir+:} false; then :
2995 $as_echo_n "(cached) " >&6
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3001 test -z "$as_dir" && as_dir=.
3002 for ac_prog in mkdir gmkdir; do
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3005 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3006 'mkdir (GNU coreutils) '* | \
3007 'mkdir (coreutils) '* | \
3008 'mkdir (fileutils) '4.1*)
3009 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3019 test -d ./--version && rmdir ./--version
3020 if test "${ac_cv_path_mkdir+set}" = set; then
3021 MKDIR_P="$ac_cv_path_mkdir -p"
3023 # As a last resort, use the slow shell script. Don't cache a
3024 # value for MKDIR_P within a source directory, because that will
3025 # break other packages using the cache if that directory is
3026 # removed, or if the value is a relative name.
3027 MKDIR_P="$ac_install_sh -d"
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3031 $as_echo "$MKDIR_P" >&6; }
3033 for ac_prog in gawk mawk nawk awk
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_AWK+:} false; then :
3040 $as_echo_n "(cached) " >&6
3042 if test -n "$AWK"; then
3043 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_AWK="$ac_prog"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 if test -n "$AWK"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3065 $as_echo "$AWK" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3072 test -n "$AWK" && break
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3076 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3078 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3079 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 cat >conftest.make <<\_ACEOF
3085 @echo '@@@%%%=$(MAKE)=@@@%%%'
3087 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3088 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090 eval ac_cv_prog_make_${ac_make}_set=yes;;
3092 eval ac_cv_prog_make_${ac_make}_set=no;;
3096 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 SET_MAKE="MAKE=${MAKE-make}"
3106 rm -rf .tst 2>/dev/null
3107 mkdir .tst 2>/dev/null
3108 if test -d .tst; then
3113 rmdir .tst 2>/dev/null
3115 # Check whether --enable-silent-rules was given.
3116 if test "${enable_silent_rules+set}" = set; then :
3117 enableval=$enable_silent_rules;
3120 case $enable_silent_rules in # (((
3121 yes) AM_DEFAULT_VERBOSITY=0;;
3122 no) AM_DEFAULT_VERBOSITY=1;;
3123 *) AM_DEFAULT_VERBOSITY=1;;
3125 am_make=${MAKE-make}
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3127 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3128 if ${am_cv_make_support_nested_variables+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if $as_echo 'TRUE=$(BAR$(V))
3137 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3138 am_cv_make_support_nested_variables=yes
3140 am_cv_make_support_nested_variables=no
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3144 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3145 if test $am_cv_make_support_nested_variables = yes; then
3147 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3149 AM_V=$AM_DEFAULT_VERBOSITY
3150 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3154 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3156 # is not polluted with repeated "-I."
3157 am__isrc=' -I$(srcdir)'
3158 # test to see if srcdir already configured
3159 if test -f $srcdir/config.status; then
3160 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3164 # test whether we have cygpath
3165 if test -z "$CYGPATH_W"; then
3166 if (cygpath --version) >/dev/null 2>/dev/null; then
3167 CYGPATH_W='cygpath -w'
3174 # Define the identity of the package.
3175 PACKAGE='libasprintf'
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE "$PACKAGE"
3184 cat >>confdefs.h <<_ACEOF
3185 #define VERSION "$VERSION"
3188 # Some tools Automake needs.
3190 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3193 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3196 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3199 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3202 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3204 # For better backward compatibility. To be removed once Automake 1.9.x
3205 # dies out for good. For more background, see:
3206 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3207 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3208 mkdir_p='$(MKDIR_P)'
3210 # We need awk for the "check" target (and possibly the TAP driver). The
3211 # system "awk" is bad on some platforms.
3212 # Always define AMTAR for backward compatibility. Yes, it's still used
3213 # in the wild :-( We should find a proper way to deprecate it ...
3217 # We'll loop over all known methods to create a tar archive until one works.
3218 _am_tools='gnutar pax cpio none'
3220 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3227 # POSIX will say in a future version that running "rm -f" with no argument
3228 # is OK; and we want to be able to make that assumption in our Makefile
3229 # recipes. So use an aggressive probe to check that the usage we want is
3230 # actually supported "in the wild" to an acceptable degree.
3231 # See automake bug#10828.
3232 # To make any issue more visible, cause the running configure to be aborted
3233 # by default if the 'rm' program in use doesn't match our expectations; the
3234 # user can still override this though.
3235 if rm -f && rm -fr && rm -rf; then : OK; else
3239 Your 'rm' program seems unable to run without file operands specified
3240 on the command line, even when the '-f' option is present. This is contrary
3241 to the behaviour of most rm programs out there, and not conforming with
3242 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3244 Please tell bug-automake@gnu.org about your system, including the value
3245 of your $PATH and any error possibly output before this message. This
3246 can help us improve future automake versions.
3249 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3250 echo 'Configuration will proceed anyway, since you have set the' >&2
3251 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3255 Aborting the configuration process, to ensure you take notice of the issue.
3257 You can download and install GNU coreutils to get an 'rm' implementation
3258 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3260 If you want to complete the configuration process using your problematic
3261 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3262 to "yes", and re-run configure.
3265 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3269 ac_config_headers="$ac_config_headers config.h"
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3316 if test -z "$ac_cv_prog_CC"; then
3318 # Extract the first word of "gcc", so it can be a program name with args.
3319 set dummy gcc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_CC="gcc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3354 if test "x$ac_ct_CC" = x; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}cc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CC="${ac_tool_prefix}cc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test -n "$CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 $as_echo "$CC" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3410 if test -z "$CC"; then
3411 # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430 ac_prog_rejected=yes
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test $ac_prog_rejected = yes; then
3442 # We found a bogon in the path, so make sure we never use it.
3443 set dummy $ac_cv_prog_CC
3445 if test $# != 0; then
3446 # We chose a different compiler from the bogus one.
3447 # However, it has the same basename, so the bogon will be chosen
3448 # first if we set CC to just the basename; use the full file name.
3450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 for ac_prog in cl.exe
3470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_CC+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3507 test -n "$CC" && break
3510 if test -z "$CC"; then
3512 for ac_prog in cl.exe
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$ac_ct_CC"; then
3522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_ac_ct_CC="$ac_prog"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 $as_echo "$ac_ct_CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3551 test -n "$ac_ct_CC" && break
3554 if test "x$ac_ct_CC" = x; then
3557 case $cross_compiling:$ac_tool_warned in
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details" "$LINENO" 5; }
3575 # Provide some information about the compiler.
3576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3579 for ac_option in --version -v -V -qversion; do
3580 { { ac_try="$ac_compiler $ac_option >&5"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3589 if test -s conftest.err; then
3591 ... rest of stderr output deleted ...
3592 10q' conftest.err >conftest.er1
3593 cat conftest.er1 >&5
3595 rm -f conftest.er1 conftest.err
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3617 $as_echo_n "checking whether the C compiler works... " >&6; }
3618 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3620 # The possible output files:
3621 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3624 for ac_file in $ac_files
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3633 if { { ac_try="$ac_link_default"
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link_default") 2>&5
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }; then :
3644 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3645 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3646 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3647 # so that the user can short-circuit this test for compilers unknown to
3649 for ac_file in $ac_files ''
3651 test -f "$ac_file" || continue
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3656 # We found the default executable, but exeext='' is most
3660 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3662 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 # We set ac_cv_exeext here because the later test for it is not
3665 # safe: cross compilers may not add the suffix if given an `-o'
3666 # argument, so we may need to know it at that point already.
3667 # Even if this section looks crufty: it has the advantage of
3674 test "$ac_cv_exeext" = no && ac_cv_exeext=
3679 if test -z "$ac_file"; then :
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error 77 "C compiler cannot create executables
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3691 $as_echo "yes" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3694 $as_echo_n "checking for C compiler default output file name... " >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3696 $as_echo "$ac_file" >&6; }
3697 ac_exeext=$ac_cv_exeext
3699 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3700 ac_clean_files=$ac_clean_files_save
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3702 $as_echo_n "checking for suffix of executables... " >&6; }
3703 if { { ac_try="$ac_link"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_link") 2>&5
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3715 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3716 # work properly (i.e., refer to `conftest.exe'), while it won't with
3718 for ac_file in conftest.exe conftest conftest.*; do
3719 test -f "$ac_file" || continue
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3722 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3731 See \`config.log' for more details" "$LINENO" 5; }
3733 rm -f conftest conftest$ac_cv_exeext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3735 $as_echo "$ac_cv_exeext" >&6; }
3737 rm -f conftest.$ac_ext
3738 EXEEXT=$ac_cv_exeext
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3746 FILE *f = fopen ("conftest.out", "w");
3747 return ferror (f) || fclose (f) != 0;
3753 ac_clean_files="$ac_clean_files conftest.out"
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 if test "$cross_compiling" != yes; then
3759 { { ac_try="$ac_link"
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_link") 2>&5
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 if { ac_try='./conftest$ac_cv_exeext'
3771 { { case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_try") 2>&5
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; }; then
3783 if test "$cross_compiling" = maybe; then
3786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "cannot run C compiled programs.
3789 If you meant to cross compile, use \`--host'.
3790 See \`config.log' for more details" "$LINENO" 5; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3795 $as_echo "$cross_compiling" >&6; }
3797 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3798 ac_clean_files=$ac_clean_files_save
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3800 $as_echo_n "checking for suffix of object files... " >&6; }
3801 if ${ac_cv_objext+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 rm -f conftest.o conftest.obj
3816 if { { ac_try="$ac_compile"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compile") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 for ac_file in conftest.o conftest.obj conftest.*; do
3828 test -f "$ac_file" || continue;
3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot compute suffix of object files: cannot compile
3842 See \`config.log' for more details" "$LINENO" 5; }
3844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3847 $as_echo "$ac_cv_objext" >&6; }
3848 OBJEXT=$ac_cv_objext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3852 if ${ac_cv_c_compiler_gnu+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3880 if test $ac_compiler_gnu = yes; then
3885 ac_test_CFLAGS=${CFLAGS+set}
3886 ac_save_CFLAGS=$CFLAGS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3889 if ${ac_cv_prog_cc_g+:} false; then :
3890 $as_echo_n "(cached) " >&6
3892 ac_save_c_werror_flag=$ac_c_werror_flag
3893 ac_c_werror_flag=yes
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 if ac_fn_c_try_compile "$LINENO"; then :
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 if ac_fn_c_try_compile "$LINENO"; then :
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3949 $as_echo "$ac_cv_prog_cc_g" >&6; }
3950 if test "$ac_test_CFLAGS" = set; then
3951 CFLAGS=$ac_save_CFLAGS
3952 elif test $ac_cv_prog_cc_g = yes; then
3953 if test "$GCC" = yes; then
3959 if test "$GCC" = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3967 if ${ac_cv_prog_cc_c89+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_cv_prog_cc_c89=no
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3978 struct buf { int x; };
3979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3980 static char *e (p, i)
3986 static char *f (char * (*g) (char **, int), char **p, ...)
3991 s = g (p, va_arg (v,int));
3996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3997 function prototypes and stuff, but not '\xHH' hex character constants.
3998 These don't provoke an error unfortunately, instead are silently treated
3999 as 'x'. The following induces an error, until -std is added to get
4000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4001 array size at least. It's necessary to write '\x00'==0 to get something
4002 that's true only with -std. */
4003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4006 inside strings and character constants. */
4008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010 int test (int i, double x);
4011 struct s1 {int (*f) (int a);};
4012 struct s2 {int (*f) (double a);};
4013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4027 CC="$ac_save_CC $ac_arg"
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_c89=$ac_arg
4031 rm -f core conftest.err conftest.$ac_objext
4032 test "x$ac_cv_prog_cc_c89" != "xno" && break
4034 rm -f conftest.$ac_ext
4039 case "x$ac_cv_prog_cc_c89" in
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042 $as_echo "none needed" >&6; } ;;
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045 $as_echo "unsupported" >&6; } ;;
4047 CC="$CC $ac_cv_prog_cc_c89"
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4049 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4051 if test "x$ac_cv_prog_cc_c89" != xno; then :
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4067 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4068 if ${am_cv_prog_cc_c_o+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 # Make sure it works both with $CC and with simple cc.
4083 # Following AC_PROG_CC_C_O, we do the test twice because some
4084 # compilers refuse to overwrite an existing .o file with -o,
4085 # though they will create one.
4086 am_cv_prog_cc_c_o=yes
4088 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4089 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } \
4093 && test -f conftest2.$ac_objext; then
4096 am_cv_prog_cc_c_o=no
4100 rm -f core conftest*
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4104 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4105 if test "$am_cv_prog_cc_c_o" != yes; then
4106 # Losing compiler, so override with the script.
4107 # FIXME: It is wrong to rewrite CC.
4108 # But if we don't then we get into trouble of one sort or another.
4109 # A longer-term fix would be to have automake use am__CC in this case,
4110 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4111 CC="$am_aux_dir/compile $CC"
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 DEPDIR="${am__leading_dot}deps"
4121 ac_config_commands="$ac_config_commands depfiles"
4124 am_make=${MAKE-make}
4125 cat > confinc << 'END'
4127 @echo this is the am__doit target
4130 # If we don't find an include directive, just comment out the code.
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4132 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4136 # First try GNU make style include.
4137 echo "include confinc" > confmf
4138 # Ignore all kinds of additional output from 'make'.
4139 case `$am_make -s -f confmf 2> /dev/null` in #(
4140 *the\ am__doit\ target*)
4146 # Now try BSD make style include.
4147 if test "$am__include" = "#"; then
4148 echo '.include "confinc"' > confmf
4149 case `$am_make -s -f confmf 2> /dev/null` in #(
4150 *the\ am__doit\ target*)
4151 am__include=.include
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4160 $as_echo "$_am_result" >&6; }
4161 rm -f confinc confmf
4163 # Check whether --enable-dependency-tracking was given.
4164 if test "${enable_dependency_tracking+set}" = set; then :
4165 enableval=$enable_dependency_tracking;
4168 if test "x$enable_dependency_tracking" != xno; then
4169 am_depcomp="$ac_aux_dir/depcomp"
4173 if test "x$enable_dependency_tracking" != xno; then
4183 depcc="$CC" am_compiler_list=
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186 $as_echo_n "checking dependency style of $depcc... " >&6; }
4187 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191 # We make a subdir and do the tests there. Otherwise we can end up
4192 # making bogus files that we don't know about and never remove. For
4193 # instance it was reported that on HP-UX the gcc test will end up
4194 # making a dummy file named 'D' -- because '-MD' means "put the output
4198 # Copy depcomp to subdir because otherwise we won't find it if we're
4199 # using a relative directory.
4200 cp "$am_depcomp" conftest.dir
4202 # We will build objects and dependencies in a subdirectory because
4203 # it helps to detect inapplicable dependency modes. For instance
4204 # both Tru64's cc and ICC support -MD to output dependencies as a
4205 # side effect of compilation, but ICC will put the dependencies in
4206 # the current directory while Tru64 will put them in the object
4210 am_cv_CC_dependencies_compiler_type=none
4211 if test "$am_compiler_list" = ""; then
4212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215 case " $depcc " in #(
4216 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4219 for depmode in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4228 for i in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4231 # Solaris 10 /bin/sh.
4232 echo '/* dummy */' > sub/conftst$i.h
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle '-M -o', and we need to detect this. Also, some Intel
4239 # versions had trouble with output in subdirs.
4240 am__obj=sub/conftest.${OBJEXT-o}
4241 am__minus_obj="-o $am__obj"
4244 # This depmode causes a compiler race in universal mode.
4245 test "$am__universal" = false || continue
4248 # After this tag, mechanisms are not by side-effect, so they'll
4249 # only be used when explicitly requested.
4250 if test "x$enable_dependency_tracking" = xyes; then
4256 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4257 # This compiler won't grok '-c -o', but also, the minuso test has
4258 # not run yet. These depmodes are late enough in the game, and
4259 # so weak that their functioning should not be impacted.
4260 am__obj=conftest.${OBJEXT-o}
4265 if depmode=$depmode \
4266 source=sub/conftest.c object=$am__obj \
4267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269 >/dev/null 2>conftest.err &&
4270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274 # icc doesn't choke on unknown options, it will just issue warnings
4275 # or remarks (even with -Werror). So we grep stderr for any message
4276 # that says an option was ignored or not supported.
4277 # When given -MP, icc 7.0 and 7.1 complain thusly:
4278 # icc: Command line warning: ignoring option '-M'; no argument required
4279 # The diagnosis changed in icc 8.0:
4280 # icc: Command line remark: option '-MP' not supported
4281 if (grep 'ignoring option' conftest.err ||
4282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283 am_cv_CC_dependencies_compiler_type=$depmode
4292 am_cv_CC_dependencies_compiler_type=none
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4298 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4301 test "x$enable_dependency_tracking" != xno \
4302 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4304 am__fastdepCC_FALSE='#'
4306 am__fastdepCC_TRUE='#'
4307 am__fastdepCC_FALSE=
4312 ac_cpp='$CXXCPP $CPPFLAGS'
4313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4316 if test -z "$CXX"; then
4317 if test -n "$CCC"; then
4320 if test -n "$ac_tool_prefix"; then
4321 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_prog_CXX+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 if test -n "$CXX"; then
4331 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 if test -n "$CXX"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4353 $as_echo "$CXX" >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4360 test -n "$CXX" && break
4363 if test -z "$CXX"; then
4365 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4367 # Extract the first word of "$ac_prog", so it can be a program name with args.
4368 set dummy $ac_prog; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 if test -n "$ac_ct_CXX"; then
4375 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_ac_ct_CXX="$ac_prog"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4395 if test -n "$ac_ct_CXX"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4397 $as_echo "$ac_ct_CXX" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4404 test -n "$ac_ct_CXX" && break
4407 if test "x$ac_ct_CXX" = x; then
4410 case $cross_compiling:$ac_tool_warned in
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4414 ac_tool_warned=yes ;;
4422 # Provide some information about the compiler.
4423 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4426 for ac_option in --version -v -V -qversion; do
4427 { { ac_try="$ac_compiler $ac_option >&5"
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4436 if test -s conftest.err; then
4438 ... rest of stderr output deleted ...
4439 10q' conftest.err >conftest.er1
4440 cat conftest.er1 >&5
4442 rm -f conftest.er1 conftest.err
4443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444 test $ac_status = 0; }
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4448 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4449 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4450 $as_echo_n "(cached) " >&6
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4466 if ac_fn_cxx_try_compile "$LINENO"; then :
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4476 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4477 if test $ac_compiler_gnu = yes; then
4482 ac_test_CXXFLAGS=${CXXFLAGS+set}
4483 ac_save_CXXFLAGS=$CXXFLAGS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4485 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4486 if ${ac_cv_prog_cxx_g+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4490 ac_cxx_werror_flag=yes
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4504 if ac_fn_cxx_try_compile "$LINENO"; then :
4505 ac_cv_prog_cxx_g=yes
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4519 if ac_fn_cxx_try_compile "$LINENO"; then :
4522 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 ac_cv_prog_cxx_g=yes
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4546 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4547 if test "$ac_test_CXXFLAGS" = set; then
4548 CXXFLAGS=$ac_save_CXXFLAGS
4549 elif test $ac_cv_prog_cxx_g = yes; then
4550 if test "$GXX" = yes; then
4556 if test "$GXX" = yes; then
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 depcc="$CXX" am_compiler_list=
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571 $as_echo_n "checking dependency style of $depcc... " >&6; }
4572 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4573 $as_echo_n "(cached) " >&6
4575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4576 # We make a subdir and do the tests there. Otherwise we can end up
4577 # making bogus files that we don't know about and never remove. For
4578 # instance it was reported that on HP-UX the gcc test will end up
4579 # making a dummy file named 'D' -- because '-MD' means "put the output
4583 # Copy depcomp to subdir because otherwise we won't find it if we're
4584 # using a relative directory.
4585 cp "$am_depcomp" conftest.dir
4587 # We will build objects and dependencies in a subdirectory because
4588 # it helps to detect inapplicable dependency modes. For instance
4589 # both Tru64's cc and ICC support -MD to output dependencies as a
4590 # side effect of compilation, but ICC will put the dependencies in
4591 # the current directory while Tru64 will put them in the object
4595 am_cv_CXX_dependencies_compiler_type=none
4596 if test "$am_compiler_list" = ""; then
4597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4600 case " $depcc " in #(
4601 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4604 for depmode in $am_compiler_list; do
4605 # Setup a source with many dependencies, because some compilers
4606 # like to wrap large dependency lists on column 80 (with \), and
4607 # we should not choose a depcomp mode which is confused by this.
4609 # We need to recreate these files for each test, as the compiler may
4610 # overwrite some of them when testing with obscure command lines.
4611 # This happens at least with the AIX C compiler.
4613 for i in 1 2 3 4 5 6; do
4614 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4615 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4616 # Solaris 10 /bin/sh.
4617 echo '/* dummy */' > sub/conftst$i.h
4619 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4621 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4622 # mode. It turns out that the SunPro C++ compiler does not properly
4623 # handle '-M -o', and we need to detect this. Also, some Intel
4624 # versions had trouble with output in subdirs.
4625 am__obj=sub/conftest.${OBJEXT-o}
4626 am__minus_obj="-o $am__obj"
4629 # This depmode causes a compiler race in universal mode.
4630 test "$am__universal" = false || continue
4633 # After this tag, mechanisms are not by side-effect, so they'll
4634 # only be used when explicitly requested.
4635 if test "x$enable_dependency_tracking" = xyes; then
4641 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4642 # This compiler won't grok '-c -o', but also, the minuso test has
4643 # not run yet. These depmodes are late enough in the game, and
4644 # so weak that their functioning should not be impacted.
4645 am__obj=conftest.${OBJEXT-o}
4650 if depmode=$depmode \
4651 source=sub/conftest.c object=$am__obj \
4652 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4654 >/dev/null 2>conftest.err &&
4655 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4657 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4659 # icc doesn't choke on unknown options, it will just issue warnings
4660 # or remarks (even with -Werror). So we grep stderr for any message
4661 # that says an option was ignored or not supported.
4662 # When given -MP, icc 7.0 and 7.1 complain thusly:
4663 # icc: Command line warning: ignoring option '-M'; no argument required
4664 # The diagnosis changed in icc 8.0:
4665 # icc: Command line remark: option '-MP' not supported
4666 if (grep 'ignoring option' conftest.err ||
4667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4668 am_cv_CXX_dependencies_compiler_type=$depmode
4677 am_cv_CXX_dependencies_compiler_type=none
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4682 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4683 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4686 test "x$enable_dependency_tracking" != xno \
4687 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4688 am__fastdepCXX_TRUE=
4689 am__fastdepCXX_FALSE='#'
4691 am__fastdepCXX_TRUE='#'
4692 am__fastdepCXX_FALSE=
4698 # Make sure we can run config.sub.
4699 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4700 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4703 $as_echo_n "checking build system type... " >&6; }
4704 if ${ac_cv_build+:} false; then :
4705 $as_echo_n "(cached) " >&6
4707 ac_build_alias=$build_alias
4708 test "x$ac_build_alias" = x &&
4709 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4710 test "x$ac_build_alias" = x &&
4711 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4712 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4717 $as_echo "$ac_cv_build" >&6; }
4718 case $ac_cv_build in
4720 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4723 ac_save_IFS=$IFS; IFS='-'
4729 # Remember, the first character of IFS is used to create $*,
4730 # except with old shells:
4733 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4737 $as_echo_n "checking host system type... " >&6; }
4738 if ${ac_cv_host+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test "x$host_alias" = x; then
4742 ac_cv_host=$ac_cv_build
4744 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4750 $as_echo "$ac_cv_host" >&6; }
4753 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4756 ac_save_IFS=$IFS; IFS='-'
4762 # Remember, the first character of IFS is used to create $*,
4763 # except with old shells:
4766 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4781 # On Suns, sometimes $CPP names a directory.
4782 if test -n "$CPP" && test -d "$CPP"; then
4785 if test -z "$CPP"; then
4786 if ${ac_cv_prog_CPP+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 # Double quotes because CPP needs to be expanded
4790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4793 for ac_c_preproc_warn_flag in '' yes
4795 # Use a header file that comes with gcc, so configuring glibc
4796 # with a fresh cross-compiler works.
4797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 # <limits.h> exists even on freestanding compilers.
4799 # On the NeXT, cc -E runs the code through the compiler's parser,
4800 # not just through cpp. "Syntax error" is here to catch this case.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4804 # include <limits.h>
4806 # include <assert.h>
4810 if ac_fn_c_try_cpp "$LINENO"; then :
4813 # Broken: fails on valid input.
4816 rm -f conftest.err conftest.i conftest.$ac_ext
4818 # OK, works on sane cases. Now check whether nonexistent headers
4819 # can be detected and how.
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <ac_nonexistent.h>
4824 if ac_fn_c_try_cpp "$LINENO"; then :
4825 # Broken: success on invalid input.
4828 # Passes both tests.
4832 rm -f conftest.err conftest.i conftest.$ac_ext
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.i conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4850 $as_echo "$CPP" >&6; }
4852 for ac_c_preproc_warn_flag in '' yes
4854 # Use a header file that comes with gcc, so configuring glibc
4855 # with a fresh cross-compiler works.
4856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857 # <limits.h> exists even on freestanding compilers.
4858 # On the NeXT, cc -E runs the code through the compiler's parser,
4859 # not just through cpp. "Syntax error" is here to catch this case.
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4863 # include <limits.h>
4865 # include <assert.h>
4869 if ac_fn_c_try_cpp "$LINENO"; then :
4872 # Broken: fails on valid input.
4875 rm -f conftest.err conftest.i conftest.$ac_ext
4877 # OK, works on sane cases. Now check whether nonexistent headers
4878 # can be detected and how.
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <ac_nonexistent.h>
4883 if ac_fn_c_try_cpp "$LINENO"; then :
4884 # Broken: success on invalid input.
4887 # Passes both tests.
4891 rm -f conftest.err conftest.i conftest.$ac_ext
4894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4895 rm -f conftest.i conftest.err conftest.$ac_ext
4896 if $ac_preproc_ok; then :
4899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4901 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4902 See \`config.log' for more details" "$LINENO" 5; }
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4914 if ${ac_cv_path_GREP+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 if test -z "$GREP"; then
4918 ac_path_GREP_found=false
4919 # Loop through the user's path and test for each of PROGNAME-LIST
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4924 test -z "$as_dir" && as_dir=.
4925 for ac_prog in grep ggrep; do
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4928 as_fn_executable_p "$ac_path_GREP" || continue
4929 # Check for GNU ac_path_GREP and select it if it is found.
4930 # Check for GNU $ac_path_GREP
4931 case `"$ac_path_GREP" --version 2>&1` in
4933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4936 $as_echo_n 0123456789 >"conftest.in"
4939 cat "conftest.in" "conftest.in" >"conftest.tmp"
4940 mv "conftest.tmp" "conftest.in"
4941 cp "conftest.in" "conftest.nl"
4942 $as_echo 'GREP' >> "conftest.nl"
4943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4945 as_fn_arith $ac_count + 1 && ac_count=$as_val
4946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4947 # Best one so far, save it but keep looking for a better one
4948 ac_cv_path_GREP="$ac_path_GREP"
4949 ac_path_GREP_max=$ac_count
4951 # 10*(2^10) chars as input seems more than enough
4952 test $ac_count -gt 10 && break
4954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4957 $ac_path_GREP_found && break 3
4962 if test -z "$ac_cv_path_GREP"; then
4963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4966 ac_cv_path_GREP=$GREP
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4971 $as_echo "$ac_cv_path_GREP" >&6; }
4972 GREP="$ac_cv_path_GREP"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4976 $as_echo_n "checking for egrep... " >&6; }
4977 if ${ac_cv_path_EGREP+:} false; then :
4978 $as_echo_n "(cached) " >&6
4980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4981 then ac_cv_path_EGREP="$GREP -E"
4983 if test -z "$EGREP"; then
4984 ac_path_EGREP_found=false
4985 # Loop through the user's path and test for each of PROGNAME-LIST
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4990 test -z "$as_dir" && as_dir=.
4991 for ac_prog in egrep; do
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4994 as_fn_executable_p "$ac_path_EGREP" || continue
4995 # Check for GNU ac_path_EGREP and select it if it is found.
4996 # Check for GNU $ac_path_EGREP
4997 case `"$ac_path_EGREP" --version 2>&1` in
4999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5002 $as_echo_n 0123456789 >"conftest.in"
5005 cat "conftest.in" "conftest.in" >"conftest.tmp"
5006 mv "conftest.tmp" "conftest.in"
5007 cp "conftest.in" "conftest.nl"
5008 $as_echo 'EGREP' >> "conftest.nl"
5009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5011 as_fn_arith $ac_count + 1 && ac_count=$as_val
5012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5013 # Best one so far, save it but keep looking for a better one
5014 ac_cv_path_EGREP="$ac_path_EGREP"
5015 ac_path_EGREP_max=$ac_count
5017 # 10*(2^10) chars as input seems more than enough
5018 test $ac_count -gt 10 && break
5020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5023 $ac_path_EGREP_found && break 3
5028 if test -z "$ac_cv_path_EGREP"; then
5029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5032 ac_cv_path_EGREP=$EGREP
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5038 $as_echo "$ac_cv_path_EGREP" >&6; }
5039 EGREP="$ac_cv_path_EGREP"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5046 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5047 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5048 $as_echo_n "(cached) " >&6
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5061 gl_cv_c_amsterdam_compiler=yes
5063 gl_cv_c_amsterdam_compiler=no
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5070 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5072 if test $gl_cv_c_amsterdam_compiler = yes; then
5073 if test -z "$AR"; then
5076 if test -z "$ARFLAGS"; then
5080 if test -n "$ac_tool_prefix"; then
5081 for ac_prog in ar lib "link -lib"
5083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_AR+:} false; then :
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$AR"; then
5091 ac_cv_prog_AR="$AR" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 if test -n "$AR"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5113 $as_echo "$AR" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 test -n "$AR" && break
5123 if test -z "$AR"; then
5125 for ac_prog in ar lib "link -lib"
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$ac_ct_AR"; then
5135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_ac_ct_AR="$ac_prog"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5155 if test -n "$ac_ct_AR"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5157 $as_echo "$ac_ct_AR" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 test -n "$ac_ct_AR" && break
5167 if test "x$ac_ct_AR" = x; then
5170 case $cross_compiling:$ac_tool_warned in
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5174 ac_tool_warned=yes ;;
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5183 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5184 if ${am_cv_ar_interface+:} false; then :
5185 $as_echo_n "(cached) " >&6
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193 am_cv_ar_interface=ar
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 int some_variable = 0;
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5201 (eval $am_ar_try) 2>&5
5203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5204 test $ac_status = 0; }
5205 if test "$ac_status" -eq 0; then
5206 am_cv_ar_interface=ar
5208 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5210 (eval $am_ar_try) 2>&5
5212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5213 test $ac_status = 0; }
5214 if test "$ac_status" -eq 0; then
5215 am_cv_ar_interface=lib
5217 am_cv_ar_interface=unknown
5220 rm -f conftest.lib libconftest.a
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5232 $as_echo "$am_cv_ar_interface" >&6; }
5234 case $am_cv_ar_interface in
5238 # Microsoft lib, so override with the ar-lib wrapper script.
5239 # FIXME: It is wrong to rewrite AR.
5240 # But if we don't then we get into trouble of one sort or another.
5241 # A longer-term fix would be to have automake use am__AR in this case,
5242 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5244 AR="$am_aux_dir/ar-lib $AR"
5247 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5253 if test -n "$ac_tool_prefix"; then
5254 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5255 set dummy ${ac_tool_prefix}ar; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_AR+:} false; then :
5259 $as_echo_n "(cached) " >&6
5261 if test -n "$AR"; then
5262 ac_cv_prog_AR="$AR" # Let the user override the test.
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_AR="${ac_tool_prefix}ar"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 if test -n "$AR"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5284 $as_echo "$AR" >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5292 if test -z "$ac_cv_prog_AR"; then
5294 # Extract the first word of "ar", so it can be a program name with args.
5295 set dummy ar; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$ac_ct_AR"; then
5302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_ac_ct_AR="ar"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5322 if test -n "$ac_ct_AR"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5324 $as_echo "$ac_ct_AR" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5330 if test "x$ac_ct_AR" = x; then
5333 case $cross_compiling:$ac_tool_warned in
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5345 if test -z "$ARFLAGS"; then
5351 if test -z "$RANLIB"; then
5352 if test $gl_cv_c_amsterdam_compiler = yes; then
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_RANLIB+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 if test -n "$RANLIB"; then
5364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 RANLIB=$ac_cv_prog_RANLIB
5384 if test -n "$RANLIB"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5386 $as_echo "$RANLIB" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5394 if test -z "$ac_cv_prog_RANLIB"; then
5395 ac_ct_RANLIB=$RANLIB
5396 # Extract the first word of "ranlib", so it can be a program name with args.
5397 set dummy ranlib; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5401 $as_echo_n "(cached) " >&6
5403 if test -n "$ac_ct_RANLIB"; then
5404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_ac_ct_RANLIB="ranlib"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5424 if test -n "$ac_ct_RANLIB"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5426 $as_echo "$ac_ct_RANLIB" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5432 if test "x$ac_ct_RANLIB" = x; then
5435 case $cross_compiling:$ac_tool_warned in
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5441 RANLIB=$ac_ct_RANLIB
5444 RANLIB="$ac_cv_prog_RANLIB"
5453 # Pre-early section.
5456 # Code from module absolute-header:
5457 # Code from module alloca:
5458 # Code from module alloca-opt:
5459 # Code from module errno:
5460 # Code from module extern-inline:
5461 # Code from module include_next:
5462 # Code from module size_max:
5463 # Code from module verify:
5464 # Code from module xsize:
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
5472 $as_echo_n "checking for auto-import of symbols... " >&6; }
5473 if ${gl_cv_ld_autoimport+:} false; then :
5474 $as_echo_n "(cached) " >&6
5477 gl_save_LDFLAGS="$LDFLAGS"
5478 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5490 if ac_fn_c_try_link "$LINENO"; then :
5491 gl_cv_ld_autoimport=yes
5493 gl_cv_ld_autoimport=no
5495 rm -f core conftest.err conftest.$ac_objext \
5496 conftest$ac_exeext conftest.$ac_ext
5497 LDFLAGS="$gl_save_LDFLAGS"
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
5501 $as_echo "$gl_cv_ld_autoimport" >&6; }
5502 if test $gl_cv_ld_autoimport = yes; then
5503 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5511 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5516 macro_version='2.4.6'
5517 macro_revision='2.4.6'
5531 ltmain=$ac_aux_dir/ltmain.sh
5533 # Backslashify metacharacters that are still active within
5534 # double-quoted strings.
5535 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5537 # Same as above, but do not quote variable references.
5538 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5540 # Sed substitution to delay expansion of an escaped shell variable in a
5541 # double_quote_subst'ed string.
5542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5544 # Sed substitution to delay expansion of an escaped single quote.
5545 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5547 # Sed substitution to avoid accidental globbing in evaled expressions
5548 no_glob_subst='s/\*/\\\*/g'
5550 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5552 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5555 $as_echo_n "checking how to print strings... " >&6; }
5556 # Test print first, because it will be a builtin if present.
5557 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5558 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5560 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5563 # Use this function as a fallback that always works.
5564 func_fallback_echo ()
5566 eval 'cat <<_LTECHO_EOF
5570 ECHO='func_fallback_echo'
5573 # func_echo_all arg...
5574 # Invoke $ECHO with all args, space-separated.
5581 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5582 $as_echo "printf" >&6; } ;;
5583 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5584 $as_echo "print -r" >&6; } ;;
5585 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5586 $as_echo "cat" >&6; } ;;
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5603 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5604 if ${ac_cv_path_SED+:} false; then :
5605 $as_echo_n "(cached) " >&6
5607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5608 for ac_i in 1 2 3 4 5 6 7; do
5609 ac_script="$ac_script$as_nl$ac_script"
5611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5612 { ac_script=; unset ac_script;}
5613 if test -z "$SED"; then
5614 ac_path_SED_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir=.
5621 for ac_prog in sed gsed; do
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5624 as_fn_executable_p "$ac_path_SED" || continue
5625 # Check for GNU ac_path_SED and select it if it is found.
5626 # Check for GNU $ac_path_SED
5627 case `"$ac_path_SED" --version 2>&1` in
5629 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5632 $as_echo_n 0123456789 >"conftest.in"
5635 cat "conftest.in" "conftest.in" >"conftest.tmp"
5636 mv "conftest.tmp" "conftest.in"
5637 cp "conftest.in" "conftest.nl"
5638 $as_echo '' >> "conftest.nl"
5639 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641 as_fn_arith $ac_count + 1 && ac_count=$as_val
5642 if test $ac_count -gt ${ac_path_SED_max-0}; then
5643 # Best one so far, save it but keep looking for a better one
5644 ac_cv_path_SED="$ac_path_SED"
5645 ac_path_SED_max=$ac_count
5647 # 10*(2^10) chars as input seems more than enough
5648 test $ac_count -gt 10 && break
5650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5653 $ac_path_SED_found && break 3
5658 if test -z "$ac_cv_path_SED"; then
5659 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5667 $as_echo "$ac_cv_path_SED" >&6; }
5668 SED="$ac_cv_path_SED"
5671 test -z "$SED" && SED=sed
5672 Xsed="$SED -e 1s/^X//"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5685 $as_echo_n "checking for fgrep... " >&6; }
5686 if ${ac_cv_path_FGREP+:} false; then :
5687 $as_echo_n "(cached) " >&6
5689 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5690 then ac_cv_path_FGREP="$GREP -F"
5692 if test -z "$FGREP"; then
5693 ac_path_FGREP_found=false
5694 # Loop through the user's path and test for each of PROGNAME-LIST
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5699 test -z "$as_dir" && as_dir=.
5700 for ac_prog in fgrep; do
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5703 as_fn_executable_p "$ac_path_FGREP" || continue
5704 # Check for GNU ac_path_FGREP and select it if it is found.
5705 # Check for GNU $ac_path_FGREP
5706 case `"$ac_path_FGREP" --version 2>&1` in
5708 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5711 $as_echo_n 0123456789 >"conftest.in"
5714 cat "conftest.in" "conftest.in" >"conftest.tmp"
5715 mv "conftest.tmp" "conftest.in"
5716 cp "conftest.in" "conftest.nl"
5717 $as_echo 'FGREP' >> "conftest.nl"
5718 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5720 as_fn_arith $ac_count + 1 && ac_count=$as_val
5721 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5722 # Best one so far, save it but keep looking for a better one
5723 ac_cv_path_FGREP="$ac_path_FGREP"
5724 ac_path_FGREP_max=$ac_count
5726 # 10*(2^10) chars as input seems more than enough
5727 test $ac_count -gt 10 && break
5729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5732 $ac_path_FGREP_found && break 3
5737 if test -z "$ac_cv_path_FGREP"; then
5738 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5741 ac_cv_path_FGREP=$FGREP
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5747 $as_echo "$ac_cv_path_FGREP" >&6; }
5748 FGREP="$ac_cv_path_FGREP"
5751 test -z "$GREP" && GREP=grep
5771 # Check whether --with-gnu-ld was given.
5772 if test "${with_gnu_ld+set}" = set; then :
5773 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5779 if test yes = "$GCC"; then
5780 # Check if gcc -print-prog-name=ld gives a path.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5782 $as_echo_n "checking for ld used by $CC... " >&6; }
5785 # gcc leaves a trailing carriage return, which upsets mingw
5786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5791 # Accept absolute paths.
5793 re_direlt='/[^/][^/]*/\.\./'
5794 # Canonicalize the pathname of ld
5795 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5796 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5797 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5799 test -z "$LD" && LD=$ac_prog
5802 # If it fails, then pretend we aren't using GCC.
5806 # If it is relative, then search for the first ld in PATH.
5810 elif test yes = "$with_gnu_ld"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5812 $as_echo_n "checking for GNU ld... " >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5815 $as_echo_n "checking for non-GNU ld... " >&6; }
5817 if ${lt_cv_path_LD+:} false; then :
5818 $as_echo_n "(cached) " >&6
5820 if test -z "$LD"; then
5821 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5822 for ac_dir in $PATH; do
5824 test -z "$ac_dir" && ac_dir=.
5825 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5826 lt_cv_path_LD=$ac_dir/$ac_prog
5827 # Check to see if the program is GNU ld. I'd rather use --version,
5828 # but apparently some variants of GNU ld only accept -v.
5829 # Break only if it was the GNU/non-GNU ld that we prefer.
5830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5831 *GNU* | *'with BFD'*)
5832 test no != "$with_gnu_ld" && break
5835 test yes != "$with_gnu_ld" && break
5842 lt_cv_path_LD=$LD # Let the user override the test with a path.
5847 if test -n "$LD"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5849 $as_echo "$LD" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5854 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5857 if ${lt_cv_prog_gnu_ld+:} false; then :
5858 $as_echo_n "(cached) " >&6
5860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5861 case `$LD -v 2>&1 </dev/null` in
5862 *GNU* | *'with BFD'*)
5863 lt_cv_prog_gnu_ld=yes
5866 lt_cv_prog_gnu_ld=no
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5871 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5872 with_gnu_ld=$lt_cv_prog_gnu_ld
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5883 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5884 if ${lt_cv_path_NM+:} false; then :
5885 $as_echo_n "(cached) " >&6
5887 if test -n "$NM"; then
5888 # Let the user override the test.
5891 lt_nm_to_check=${ac_tool_prefix}nm
5892 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5893 lt_nm_to_check="$lt_nm_to_check nm"
5895 for lt_tmp_nm in $lt_nm_to_check; do
5896 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5897 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5899 test -z "$ac_dir" && ac_dir=.
5900 tmp_nm=$ac_dir/$lt_tmp_nm
5901 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5902 # Check to see if the nm accepts a BSD-compat flag.
5903 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5904 # nm: unknown option "B" ignored
5905 # Tru64's nm complains that /dev/null is an invalid object file
5906 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5908 mingw*) lt_bad_file=conftest.nm/nofile ;;
5909 *) lt_bad_file=/dev/null ;;
5911 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5912 *$lt_bad_file* | *'Invalid file or object type'*)
5913 lt_cv_path_NM="$tmp_nm -B"
5917 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5919 lt_cv_path_NM="$tmp_nm -p"
5923 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5924 continue # so that we can try to find one that supports BSD flags
5933 : ${lt_cv_path_NM=no}
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5937 $as_echo "$lt_cv_path_NM" >&6; }
5938 if test no != "$lt_cv_path_NM"; then
5941 # Didn't find any BSD compatible name lister, look for dumpbin.
5942 if test -n "$DUMPBIN"; then :
5943 # Let the user override the test.
5945 if test -n "$ac_tool_prefix"; then
5946 for ac_prog in dumpbin "link -dump"
5948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_DUMPBIN+:} false; then :
5953 $as_echo_n "(cached) " >&6
5955 if test -n "$DUMPBIN"; then
5956 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 DUMPBIN=$ac_cv_prog_DUMPBIN
5976 if test -n "$DUMPBIN"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5978 $as_echo "$DUMPBIN" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5985 test -n "$DUMPBIN" && break
5988 if test -z "$DUMPBIN"; then
5989 ac_ct_DUMPBIN=$DUMPBIN
5990 for ac_prog in dumpbin "link -dump"
5992 # Extract the first word of "$ac_prog", so it can be a program name with args.
5993 set dummy $ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5997 $as_echo_n "(cached) " >&6
5999 if test -n "$ac_ct_DUMPBIN"; then
6000 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6020 if test -n "$ac_ct_DUMPBIN"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6022 $as_echo "$ac_ct_DUMPBIN" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6029 test -n "$ac_ct_DUMPBIN" && break
6032 if test "x$ac_ct_DUMPBIN" = x; then
6035 case $cross_compiling:$ac_tool_warned in
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6041 DUMPBIN=$ac_ct_DUMPBIN
6045 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6047 DUMPBIN="$DUMPBIN -symbols -headers"
6055 if test : != "$DUMPBIN"; then
6059 test -z "$NM" && NM=nm
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6067 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6068 if ${lt_cv_nm_interface+:} false; then :
6069 $as_echo_n "(cached) " >&6
6071 lt_cv_nm_interface="BSD nm"
6072 echo "int some_variable = 0;" > conftest.$ac_ext
6073 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6074 (eval "$ac_compile" 2>conftest.err)
6075 cat conftest.err >&5
6076 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6077 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6078 cat conftest.err >&5
6079 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6080 cat conftest.out >&5
6081 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6082 lt_cv_nm_interface="MS dumpbin"
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6087 $as_echo "$lt_cv_nm_interface" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6090 $as_echo_n "checking whether ln -s works... " >&6; }
6092 if test "$LN_S" = "ln -s"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6094 $as_echo "yes" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6097 $as_echo "no, using $LN_S" >&6; }
6100 # find the maximum length of command line arguments
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6102 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6103 if ${lt_cv_sys_max_cmd_len+:} false; then :
6104 $as_echo_n "(cached) " >&6
6111 # On DJGPP, this test can blow up pretty badly due to problems in libc
6112 # (any single argument exceeding 2000 bytes causes a buffer overrun
6113 # during glob expansion). Even if it were fixed, the result of this
6114 # check would be larger than it should be.
6115 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6119 # Under GNU Hurd, this test is not required because there is
6120 # no limit to the length of command line arguments.
6121 # Libtool will interpret -1 as no limit whatsoever
6122 lt_cv_sys_max_cmd_len=-1;
6125 cygwin* | mingw* | cegcc*)
6126 # On Win9x/ME, this test blows up -- it succeeds, but takes
6127 # about 5 minutes as the teststring grows exponentially.
6128 # Worse, since 9x/ME are not pre-emptively multitasking,
6129 # you end up with a "frozen" computer, even though with patience
6130 # the test eventually succeeds (with a max line length of 256k).
6131 # Instead, let's just punt: use the minimum linelength reported by
6132 # all of the supported platforms: 8192 (on NT/2K/XP).
6133 lt_cv_sys_max_cmd_len=8192;
6137 # On MiNT this can take a long time and run out of memory.
6138 lt_cv_sys_max_cmd_len=8192;
6142 # On AmigaOS with pdksh, this test takes hours, literally.
6143 # So we just punt and use a minimum line length of 8192.
6144 lt_cv_sys_max_cmd_len=8192;
6147 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6148 # This has been around since 386BSD, at least. Likely further.
6149 if test -x /sbin/sysctl; then
6150 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6151 elif test -x /usr/sbin/sysctl; then
6152 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6154 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6156 # And add a safety zone
6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6162 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6163 lt_cv_sys_max_cmd_len=196608
6167 # The test takes a long time on OS/2.
6168 lt_cv_sys_max_cmd_len=8192
6172 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6173 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6174 # nice to cause kernel panics so lets avoid the loop below.
6175 # First set a reasonable default.
6176 lt_cv_sys_max_cmd_len=16384
6178 if test -x /sbin/sysconfig; then
6179 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6180 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6185 lt_cv_sys_max_cmd_len=102400
6187 sysv5* | sco5v6* | sysv4.2uw2*)
6188 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6189 if test -n "$kargmax"; then
6190 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6192 lt_cv_sys_max_cmd_len=32768
6196 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6197 if test -n "$lt_cv_sys_max_cmd_len" && \
6198 test undefined != "$lt_cv_sys_max_cmd_len"; then
6199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6202 # Make teststring a little bigger before we do anything with it.
6203 # a 1K string should be a reasonable start.
6204 for i in 1 2 3 4 5 6 7 8; do
6205 teststring=$teststring$teststring
6207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6208 # If test is not a shell built-in, we'll probably end up computing a
6209 # maximum length that is only half of the actual maximum length, but
6211 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6212 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6213 test 17 != "$i" # 1/2 MB should be enough
6216 teststring=$teststring$teststring
6218 # Only check the string length outside the loop.
6219 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6221 # Add a significant safety factor because C++ compilers can tack on
6222 # massive amounts of additional arguments before passing them to the
6223 # linker. It appears as though 1/2 is a usable value.
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6231 if test -n "$lt_cv_sys_max_cmd_len"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6233 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6236 $as_echo "none" >&6; }
6238 max_cmd_len=$lt_cv_sys_max_cmd_len
6249 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6259 # test EBCDIC or ASCII
6260 case `echo X|tr X '\101'` in
6261 A) # ASCII based system
6262 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6263 lt_SP2NL='tr \040 \012'
6264 lt_NL2SP='tr \015\012 \040\040'
6266 *) # EBCDIC based system
6267 lt_SP2NL='tr \100 \n'
6268 lt_NL2SP='tr \r\n \100\100'
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6281 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6282 if ${lt_cv_to_host_file_cmd+:} false; then :
6283 $as_echo_n "(cached) " >&6
6288 *-*-mingw* ) # actually msys
6289 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6292 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6294 * ) # otherwise, assume *nix
6295 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6301 *-*-mingw* ) # actually msys
6302 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6305 lt_cv_to_host_file_cmd=func_convert_file_noop
6307 * ) # otherwise, assume *nix
6308 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6312 * ) # unhandled hosts (and "normal" native builds)
6313 lt_cv_to_host_file_cmd=func_convert_file_noop
6319 to_host_file_cmd=$lt_cv_to_host_file_cmd
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6321 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6328 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6329 if ${lt_cv_to_tool_file_cmd+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 #assume ordinary cross tools, or native build.
6333 lt_cv_to_tool_file_cmd=func_convert_file_noop
6337 *-*-mingw* ) # actually msys
6338 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6346 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6348 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6355 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6356 if ${lt_cv_ld_reload_flag+:} false; then :
6357 $as_echo_n "(cached) " >&6
6359 lt_cv_ld_reload_flag='-r'
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6363 reload_flag=$lt_cv_ld_reload_flag
6364 case $reload_flag in
6366 *) reload_flag=" $reload_flag" ;;
6368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370 cygwin* | mingw* | pw32* | cegcc*)
6371 if test yes != "$GCC"; then
6376 if test yes = "$GCC"; then
6377 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6379 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_OBJDUMP+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$OBJDUMP"; then
6401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 OBJDUMP=$ac_cv_prog_OBJDUMP
6421 if test -n "$OBJDUMP"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6423 $as_echo "$OBJDUMP" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6431 if test -z "$ac_cv_prog_OBJDUMP"; then
6432 ac_ct_OBJDUMP=$OBJDUMP
6433 # Extract the first word of "objdump", so it can be a program name with args.
6434 set dummy objdump; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 if test -n "$ac_ct_OBJDUMP"; then
6441 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6461 if test -n "$ac_ct_OBJDUMP"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6463 $as_echo "$ac_ct_OBJDUMP" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6469 if test "x$ac_ct_OBJDUMP" = x; then
6472 case $cross_compiling:$ac_tool_warned in
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6478 OBJDUMP=$ac_ct_OBJDUMP
6481 OBJDUMP="$ac_cv_prog_OBJDUMP"
6484 test -z "$OBJDUMP" && OBJDUMP=objdump
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6492 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6493 if ${lt_cv_deplibs_check_method+:} false; then :
6494 $as_echo_n "(cached) " >&6
6496 lt_cv_file_magic_cmd='$MAGIC_CMD'
6497 lt_cv_file_magic_test_file=
6498 lt_cv_deplibs_check_method='unknown'
6499 # Need to set the preceding variable on all platforms that support
6500 # interlibrary dependencies.
6501 # 'none' -- dependencies not supported.
6502 # 'unknown' -- same as none, but documents that we really don't know.
6503 # 'pass_all' -- all dependencies passed with no checks.
6504 # 'test_compile' -- check by making test program.
6505 # 'file_magic [[regex]]' -- check by looking for files in library path
6506 # that responds to the $file_magic_cmd with a given extended regex.
6507 # If you have 'file' or equivalent on your system and you're not sure
6508 # whether 'pass_all' will *always* work, you probably want this one.
6512 lt_cv_deplibs_check_method=pass_all
6516 lt_cv_deplibs_check_method=pass_all
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6521 lt_cv_file_magic_cmd='/usr/bin/file -L'
6522 lt_cv_file_magic_test_file=/shlib/libc.so
6526 # func_win32_libid is a shell function defined in ltmain.sh
6527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6528 lt_cv_file_magic_cmd='func_win32_libid'
6532 # Base MSYS/MinGW do not provide the 'file' command needed by
6533 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6534 # unless we find 'file', for example because we are cross-compiling.
6535 if ( file / ) >/dev/null 2>&1; then
6536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537 lt_cv_file_magic_cmd='func_win32_libid'
6539 # Keep this pattern in sync with the one in func_win32_libid.
6540 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6541 lt_cv_file_magic_cmd='$OBJDUMP -f'
6546 # use the weaker test based on 'objdump'. See mingw*.
6547 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6548 lt_cv_file_magic_cmd='$OBJDUMP -f'
6551 darwin* | rhapsody*)
6552 lt_cv_deplibs_check_method=pass_all
6555 freebsd* | dragonfly*)
6556 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6559 # Not sure whether the presence of OpenBSD here was a mistake.
6560 # Let's accept both of them until this is cleared up.
6561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6562 lt_cv_file_magic_cmd=/usr/bin/file
6563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6567 lt_cv_deplibs_check_method=pass_all
6572 lt_cv_deplibs_check_method=pass_all
6575 hpux10.20* | hpux11*)
6576 lt_cv_file_magic_cmd=/usr/bin/file
6579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6583 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]'
6584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6594 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6598 irix5* | irix6* | nonstopux*)
6600 *-32|*"-32 ") libmagic=32-bit;;
6601 *-n32|*"-n32 ") libmagic=N32;;
6602 *-64|*"-64 ") libmagic=64-bit;;
6603 *) libmagic=never-match;;
6605 lt_cv_deplibs_check_method=pass_all
6608 # This must be glibc/ELF.
6609 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6610 lt_cv_deplibs_check_method=pass_all
6614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6623 lt_cv_file_magic_cmd=/usr/bin/file
6624 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6628 lt_cv_deplibs_check_method=pass_all
6632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6639 osf3* | osf4* | osf5*)
6640 lt_cv_deplibs_check_method=pass_all
6644 lt_cv_deplibs_check_method=pass_all
6648 lt_cv_deplibs_check_method=pass_all
6651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6652 lt_cv_deplibs_check_method=pass_all
6656 case $host_vendor in
6658 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]'
6659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6662 lt_cv_deplibs_check_method=pass_all
6665 lt_cv_file_magic_cmd='/bin/file'
6666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6669 lt_cv_file_magic_cmd='/bin/file'
6670 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6671 lt_cv_file_magic_test_file=/lib/libc.so
6674 lt_cv_deplibs_check_method=pass_all
6677 lt_cv_deplibs_check_method=pass_all
6683 lt_cv_deplibs_check_method=pass_all
6686 lt_cv_deplibs_check_method=pass_all
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6696 if test "$build" = "$host"; then
6699 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6702 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6708 file_magic_cmd=$lt_cv_file_magic_cmd
6709 deplibs_check_method=$lt_cv_deplibs_check_method
6710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_DLLTOOL+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$DLLTOOL"; then
6742 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 DLLTOOL=$ac_cv_prog_DLLTOOL
6762 if test -n "$DLLTOOL"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6764 $as_echo "$DLLTOOL" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6772 if test -z "$ac_cv_prog_DLLTOOL"; then
6773 ac_ct_DLLTOOL=$DLLTOOL
6774 # Extract the first word of "dlltool", so it can be a program name with args.
6775 set dummy dlltool; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 if test -n "$ac_ct_DLLTOOL"; then
6782 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6802 if test -n "$ac_ct_DLLTOOL"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6804 $as_echo "$ac_ct_DLLTOOL" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6810 if test "x$ac_ct_DLLTOOL" = x; then
6813 case $cross_compiling:$ac_tool_warned in
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6819 DLLTOOL=$ac_ct_DLLTOOL
6822 DLLTOOL="$ac_cv_prog_DLLTOOL"
6825 test -z "$DLLTOOL" && DLLTOOL=dlltool
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6834 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6835 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 lt_cv_sharedlib_from_linklib_cmd='unknown'
6841 cygwin* | mingw* | pw32* | cegcc*)
6842 # two different shell functions defined in ltmain.sh;
6843 # decide which one to use based on capabilities of $DLLTOOL
6844 case `$DLLTOOL --help 2>&1` in
6845 *--identify-strict*)
6846 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6849 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6854 # fallback: assume linklib IS sharedlib
6855 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6861 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6862 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6863 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6871 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_AR+:} false; then :
6879 $as_echo_n "(cached) " >&6
6881 if test -n "$AR"; then
6882 ac_cv_prog_AR="$AR" # Let the user override the test.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 if test -n "$AR"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6904 $as_echo "$AR" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6911 test -n "$AR" && break
6914 if test -z "$AR"; then
6918 # Extract the first word of "$ac_prog", so it can be a program name with args.
6919 set dummy $ac_prog; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$ac_ct_AR"; then
6926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_ac_ct_AR="$ac_prog"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6946 if test -n "$ac_ct_AR"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6948 $as_echo "$ac_ct_AR" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6955 test -n "$ac_ct_AR" && break
6958 if test "x$ac_ct_AR" = x; then
6961 case $cross_compiling:$ac_tool_warned in
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965 ac_tool_warned=yes ;;
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6985 $as_echo_n "checking for archiver @FILE support... " >&6; }
6986 if ${lt_cv_ar_at_file+:} false; then :
6987 $as_echo_n "(cached) " >&6
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002 echo conftest.$ac_objext > conftest.lst
7003 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7005 (eval $lt_ar_try) 2>&5
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }
7009 if test 0 -eq "$ac_status"; then
7010 # Ensure the archiver fails upon bogus file names.
7011 rm -f conftest.$ac_objext libconftest.a
7012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7013 (eval $lt_ar_try) 2>&5
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; }
7017 if test 0 -ne "$ac_status"; then
7021 rm -f conftest.* libconftest.a
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7028 $as_echo "$lt_cv_ar_at_file" >&6; }
7030 if test no = "$lt_cv_ar_at_file"; then
7033 archiver_list_spec=$lt_cv_ar_at_file
7042 if test -n "$ac_tool_prefix"; then
7043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}strip; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_STRIP+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 if test -n "$STRIP"; then
7051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 STRIP=$ac_cv_prog_STRIP
7071 if test -n "$STRIP"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7073 $as_echo "$STRIP" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7081 if test -z "$ac_cv_prog_STRIP"; then
7083 # Extract the first word of "strip", so it can be a program name with args.
7084 set dummy strip; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 if test -n "$ac_ct_STRIP"; then
7091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_ac_ct_STRIP="strip"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7111 if test -n "$ac_ct_STRIP"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7113 $as_echo "$ac_ct_STRIP" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7119 if test "x$ac_ct_STRIP" = x; then
7122 case $cross_compiling:$ac_tool_warned in
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7131 STRIP="$ac_cv_prog_STRIP"
7134 test -z "$STRIP" && STRIP=:
7141 if test -n "$ac_tool_prefix"; then
7142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_RANLIB+:} false; then :
7147 $as_echo_n "(cached) " >&6
7149 if test -n "$RANLIB"; then
7150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 RANLIB=$ac_cv_prog_RANLIB
7170 if test -n "$RANLIB"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7172 $as_echo "$RANLIB" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7180 if test -z "$ac_cv_prog_RANLIB"; then
7181 ac_ct_RANLIB=$RANLIB
7182 # Extract the first word of "ranlib", so it can be a program name with args.
7183 set dummy ranlib; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 if test -n "$ac_ct_RANLIB"; then
7190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_ac_ct_RANLIB="ranlib"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7210 if test -n "$ac_ct_RANLIB"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7212 $as_echo "$ac_ct_RANLIB" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7218 if test "x$ac_ct_RANLIB" = x; then
7221 case $cross_compiling:$ac_tool_warned in
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7225 ac_tool_warned=yes ;;
7227 RANLIB=$ac_ct_RANLIB
7230 RANLIB="$ac_cv_prog_RANLIB"
7233 test -z "$RANLIB" && RANLIB=:
7240 # Determine commands to create old-style static archives.
7241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7242 old_postinstall_cmds='chmod 644 $oldlib'
7243 old_postuninstall_cmds=
7245 if test -n "$RANLIB"; then
7248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7254 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7259 lock_old_archive_extraction=yes ;;
7261 lock_old_archive_extraction=no ;;
7302 # If no C compiler was specified, use CC.
7305 # If no C compiler flags were specified, use CFLAGS.
7306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7308 # Allow CC to be a program name with arguments.
7312 # Check for command to grab the raw symbol name followed by C symbol from nm.
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7314 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7315 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7316 $as_echo_n "(cached) " >&6
7319 # These are sane defaults that work on at least a few old systems.
7320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7322 # Character class describing NM global symbol codes.
7323 symcode='[BCDEGRST]'
7325 # Regexp to match symbols that can be accessed directly from C.
7326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7328 # Define system-specific variables.
7333 cygwin* | mingw* | pw32* | cegcc*)
7334 symcode='[ABCDGISTW]'
7337 if test ia64 = "$host_cpu"; then
7338 symcode='[ABCDEGRST]'
7342 symcode='[BCDEGRST]'
7345 symcode='[BCDEGQRST]'
7356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7364 # If we're using GNU nm, then use its standard symbol codes.
7365 case `$NM -V 2>&1` in
7366 *GNU* | *'with BFD'*)
7367 symcode='[ABCDGIRSTW]' ;;
7370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7371 # Gets list of data symbols to import.
7372 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7373 # Adjust the below global symbol transforms to fixup imported variables.
7374 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7375 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7376 lt_c_name_lib_hook="\
7377 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7378 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7380 # Disable hooks by default.
7381 lt_cv_sys_global_symbol_to_import=
7387 # Transform an extracted symbol line into a proper C declaration.
7388 # Some systems (esp. on ia64) link data and code symbols differently,
7389 # so use this general approach.
7390 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7392 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7393 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7395 # Transform an extracted symbol line into symbol name and symbol address
7396 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7398 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7399 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7401 # Transform an extracted symbol line into symbol name with lib prefix and
7403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7404 $lt_c_name_lib_hook\
7405 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7406 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7407 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7409 # Handle CRLF in mingw tool chain
7413 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7417 # Try without a prefix underscore, then with it.
7418 for ac_symprfx in "" "_"; do
7420 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7421 symxfrm="\\1 $ac_symprfx\\2 \\2"
7423 # Write the raw and C identifiers.
7424 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7425 # Fake it for dumpbin and say T for any non-static function,
7426 # D for any global variable and I for any imported variable.
7427 # Also find C++ and __fastcall symbols from MSVC++,
7428 # which start with @ or ?.
7429 lt_cv_sys_global_symbol_pipe="$AWK '"\
7430 " {last_section=section; section=\$ 3};"\
7431 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7432 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7433 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7434 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7435 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7436 " \$ 0!~/External *\|/{next};"\
7437 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7438 " {if(hide[section]) next};"\
7439 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7440 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7441 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7442 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7443 " ' prfx=^$ac_symprfx"
7445 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7447 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7449 # Check to see that the pipe works correctly.
7453 cat > conftest.$ac_ext <<_LT_EOF
7458 void nm_test_func(void);
7459 void nm_test_func(void){}
7463 int main(){nm_test_var='a';nm_test_func();return(0);}
7466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7467 (eval $ac_compile) 2>&5
7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7470 test $ac_status = 0; }; then
7471 # Now try to grab the symbols.
7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7474 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477 test $ac_status = 0; } && test -s "$nlist"; then
7478 # Try sorting and uniquifying the output.
7479 if sort "$nlist" | uniq > "$nlist"T; then
7480 mv -f "$nlist"T "$nlist"
7485 # Make sure that we snagged all the symbols we need.
7486 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7487 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7488 cat <<_LT_EOF > conftest.$ac_ext
7489 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7490 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7491 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7492 relocations are performed -- see ld's documentation on pseudo-relocs. */
7493 # define LT_DLSYM_CONST
7494 #elif defined __osf__
7495 /* This system does not cope well with relocations in const data. */
7496 # define LT_DLSYM_CONST
7498 # define LT_DLSYM_CONST const
7506 # Now generate the symbol file.
7507 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7509 cat <<_LT_EOF >> conftest.$ac_ext
7511 /* The mapping between symbol names and symbols. */
7512 LT_DLSYM_CONST struct {
7516 lt__PROGRAM__LTX_preloaded_symbols[] =
7518 { "@PROGRAM@", (void *) 0 },
7520 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7521 cat <<\_LT_EOF >> conftest.$ac_ext
7525 /* This works around a problem in FreeBSD linker */
7526 #ifdef FREEBSD_WORKAROUND
7527 static const void *lt_preloaded_setup() {
7528 return lt__PROGRAM__LTX_preloaded_symbols;
7536 # Now try linking the two files.
7537 mv conftest.$ac_objext conftstm.$ac_objext
7538 lt_globsym_save_LIBS=$LIBS
7539 lt_globsym_save_CFLAGS=$CFLAGS
7540 LIBS=conftstm.$ac_objext
7541 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7543 (eval $ac_link) 2>&5
7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7549 LIBS=$lt_globsym_save_LIBS
7550 CFLAGS=$lt_globsym_save_CFLAGS
7552 echo "cannot find nm_test_func in $nlist" >&5
7555 echo "cannot find nm_test_var in $nlist" >&5
7558 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7561 echo "$progname: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7564 rm -rf conftest* conftst*
7566 # Do not use the global_symbol_pipe unless it works.
7567 if test yes = "$pipe_works"; then
7570 lt_cv_sys_global_symbol_pipe=
7576 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7577 lt_cv_sys_global_symbol_to_cdecl=
7579 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7581 $as_echo "failed" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7584 $as_echo "ok" >&6; }
7587 # Response file support.
7588 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7589 nm_file_list_spec='@'
7590 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7591 nm_file_list_spec='@'
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7631 $as_echo_n "checking for sysroot... " >&6; }
7633 # Check whether --with-sysroot was given.
7634 if test "${with_sysroot+set}" = set; then :
7635 withval=$with_sysroot;
7642 case $with_sysroot in #(
7644 if test yes = "$GCC"; then
7645 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7649 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7655 $as_echo "$with_sysroot" >&6; }
7656 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7661 $as_echo "${lt_sysroot:-no}" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7668 $as_echo_n "checking for a working dd... " >&6; }
7669 if ${ac_cv_path_lt_DD+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 printf 0123456789abcdef0123456789abcdef >conftest.i
7673 cat conftest.i conftest.i >conftest2.i
7675 if test -z "$lt_DD"; then
7676 ac_path_lt_DD_found=false
7677 # Loop through the user's path and test for each of PROGNAME-LIST
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_prog in dd; do
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7686 as_fn_executable_p "$ac_path_lt_DD" || continue
7687 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7688 cmp -s conftest.i conftest.out \
7689 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7691 $ac_path_lt_DD_found && break 3
7696 if test -z "$ac_cv_path_lt_DD"; then
7700 ac_cv_path_lt_DD=$lt_DD
7703 rm -f conftest.i conftest2.i conftest.out
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7706 $as_echo "$ac_cv_path_lt_DD" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7710 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7711 if ${lt_cv_truncate_bin+:} false; then :
7712 $as_echo_n "(cached) " >&6
7714 printf 0123456789abcdef0123456789abcdef >conftest.i
7715 cat conftest.i conftest.i >conftest2.i
7717 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7718 cmp -s conftest.i conftest.out \
7719 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7721 rm -f conftest.i conftest2.i conftest.out
7722 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7725 $as_echo "$lt_cv_truncate_bin" >&6; }
7733 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7736 for cc_temp in $*""; do
7738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7744 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7747 # Check whether --enable-libtool-lock was given.
7748 if test "${enable_libtool_lock+set}" = set; then :
7749 enableval=$enable_libtool_lock;
7752 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7754 # Some flags need to be propagated to the compiler or linker for good
7758 # Find out what ABI is being produced by ac_compile, and set mode
7759 # options accordingly.
7760 echo 'int i;' > conftest.$ac_ext
7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762 (eval $ac_compile) 2>&5
7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; }; then
7766 case `/usr/bin/file conftest.$ac_objext` in
7778 # Find out what ABI is being produced by ac_compile, and set linker
7779 # options accordingly.
7780 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782 (eval $ac_compile) 2>&5
7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 if test yes = "$lt_cv_prog_gnu_ld"; then
7787 case `/usr/bin/file conftest.$ac_objext` in
7789 LD="${LD-ld} -melf32bsmip"
7792 LD="${LD-ld} -melf32bmipn32"
7795 LD="${LD-ld} -melf64bmip"
7799 case `/usr/bin/file conftest.$ac_objext` in
7816 # Find out what ABI is being produced by ac_compile, and set linker
7817 # options accordingly.
7818 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820 (eval $ac_compile) 2>&5
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; }; then
7825 case `/usr/bin/file conftest.$ac_objext` in
7833 case `/usr/bin/file conftest.$ac_objext` in
7835 emul="${emul}btsmip"
7838 emul="${emul}ltsmip"
7841 case `/usr/bin/file conftest.$ac_objext` in
7846 LD="${LD-ld} -m $emul"
7851 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7852 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7853 # Find out what ABI is being produced by ac_compile, and set linker
7854 # options accordingly. Note that the listed cases only cover the
7855 # situations where additional linker options are needed (such as when
7856 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7857 # vice versa); the common cases where no linker options are needed do
7858 # not appear in the list.
7859 echo 'int i;' > conftest.$ac_ext
7860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861 (eval $ac_compile) 2>&5
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; }; then
7865 case `/usr/bin/file conftest.o` in
7868 x86_64-*kfreebsd*-gnu)
7869 LD="${LD-ld} -m elf_i386_fbsd"
7872 case `/usr/bin/file conftest.o` in
7874 LD="${LD-ld} -m elf32_x86_64"
7877 LD="${LD-ld} -m elf_i386"
7881 powerpc64le-*linux*)
7882 LD="${LD-ld} -m elf32lppclinux"
7885 LD="${LD-ld} -m elf32ppclinux"
7888 LD="${LD-ld} -m elf_s390"
7891 LD="${LD-ld} -m elf32_sparc"
7897 x86_64-*kfreebsd*-gnu)
7898 LD="${LD-ld} -m elf_x86_64_fbsd"
7901 LD="${LD-ld} -m elf_x86_64"
7904 LD="${LD-ld} -m elf64lppc"
7907 LD="${LD-ld} -m elf64ppc"
7909 s390*-*linux*|s390*-*tpf*)
7910 LD="${LD-ld} -m elf64_s390"
7913 LD="${LD-ld} -m elf64_sparc"
7923 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7925 CFLAGS="$CFLAGS -belf"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7927 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7928 if ${lt_cv_cc_needs_belf+:} false; then :
7929 $as_echo_n "(cached) " >&6
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7948 if ac_fn_c_try_link "$LINENO"; then :
7949 lt_cv_cc_needs_belf=yes
7951 lt_cv_cc_needs_belf=no
7953 rm -f core conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7963 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7964 if test yes != "$lt_cv_cc_needs_belf"; then
7965 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7970 # Find out what ABI is being produced by ac_compile, and set linker
7971 # options accordingly.
7972 echo 'int i;' > conftest.$ac_ext
7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7974 (eval $ac_compile) 2>&5
7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }; then
7978 case `/usr/bin/file conftest.o` in
7980 case $lt_cv_prog_gnu_ld in
7983 i?86-*-solaris*|x86_64-*-solaris*)
7984 LD="${LD-ld} -m elf_x86_64"
7987 LD="${LD-ld} -m elf64_sparc"
7990 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7991 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7996 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8008 need_locks=$enable_libtool_lock
8010 if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}mt; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8016 $as_echo_n "(cached) " >&6
8018 if test -n "$MANIFEST_TOOL"; then
8019 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8039 if test -n "$MANIFEST_TOOL"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8041 $as_echo "$MANIFEST_TOOL" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8049 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8050 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8051 # Extract the first word of "mt", so it can be a program name with args.
8052 set dummy mt; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8056 $as_echo_n "(cached) " >&6
8058 if test -n "$ac_ct_MANIFEST_TOOL"; then
8059 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8079 if test -n "$ac_ct_MANIFEST_TOOL"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8081 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8087 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8090 case $cross_compiling:$ac_tool_warned in
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094 ac_tool_warned=yes ;;
8096 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8099 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8102 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8104 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8105 if ${lt_cv_path_mainfest_tool+:} false; then :
8106 $as_echo_n "(cached) " >&6
8108 lt_cv_path_mainfest_tool=no
8109 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8110 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8111 cat conftest.err >&5
8112 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8113 lt_cv_path_mainfest_tool=yes
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8118 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8119 if test yes != "$lt_cv_path_mainfest_tool"; then
8129 rhapsody* | darwin*)
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8136 $as_echo_n "(cached) " >&6
8138 if test -n "$DSYMUTIL"; then
8139 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8159 if test -n "$DSYMUTIL"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8161 $as_echo "$DSYMUTIL" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8169 if test -z "$ac_cv_prog_DSYMUTIL"; then
8170 ac_ct_DSYMUTIL=$DSYMUTIL
8171 # Extract the first word of "dsymutil", so it can be a program name with args.
8172 set dummy dsymutil; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8176 $as_echo_n "(cached) " >&6
8178 if test -n "$ac_ct_DSYMUTIL"; then
8179 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8199 if test -n "$ac_ct_DSYMUTIL"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8201 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8207 if test "x$ac_ct_DSYMUTIL" = x; then
8210 case $cross_compiling:$ac_tool_warned in
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8216 DSYMUTIL=$ac_ct_DSYMUTIL
8219 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_prog_NMEDIT+:} false; then :
8228 $as_echo_n "(cached) " >&6
8230 if test -n "$NMEDIT"; then
8231 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 NMEDIT=$ac_cv_prog_NMEDIT
8251 if test -n "$NMEDIT"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8253 $as_echo "$NMEDIT" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8261 if test -z "$ac_cv_prog_NMEDIT"; then
8262 ac_ct_NMEDIT=$NMEDIT
8263 # Extract the first word of "nmedit", so it can be a program name with args.
8264 set dummy nmedit; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8268 $as_echo_n "(cached) " >&6
8270 if test -n "$ac_ct_NMEDIT"; then
8271 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8291 if test -n "$ac_ct_NMEDIT"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8293 $as_echo "$ac_ct_NMEDIT" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8299 if test "x$ac_ct_NMEDIT" = x; then
8302 case $cross_compiling:$ac_tool_warned in
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8308 NMEDIT=$ac_ct_NMEDIT
8311 NMEDIT="$ac_cv_prog_NMEDIT"
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_LIPO+:} false; then :
8320 $as_echo_n "(cached) " >&6
8322 if test -n "$LIPO"; then
8323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 LIPO=$ac_cv_prog_LIPO
8343 if test -n "$LIPO"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8345 $as_echo "$LIPO" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 if test -z "$ac_cv_prog_LIPO"; then
8355 # Extract the first word of "lipo", so it can be a program name with args.
8356 set dummy lipo; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8360 $as_echo_n "(cached) " >&6
8362 if test -n "$ac_ct_LIPO"; then
8363 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_ac_ct_LIPO="lipo"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8383 if test -n "$ac_ct_LIPO"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8385 $as_echo "$ac_ct_LIPO" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8391 if test "x$ac_ct_LIPO" = x; then
8394 case $cross_compiling:$ac_tool_warned in
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8403 LIPO="$ac_cv_prog_LIPO"
8406 if test -n "$ac_tool_prefix"; then
8407 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8408 set dummy ${ac_tool_prefix}otool; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if ${ac_cv_prog_OTOOL+:} false; then :
8412 $as_echo_n "(cached) " >&6
8414 if test -n "$OTOOL"; then
8415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 OTOOL=$ac_cv_prog_OTOOL
8435 if test -n "$OTOOL"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8437 $as_echo "$OTOOL" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8445 if test -z "$ac_cv_prog_OTOOL"; then
8447 # Extract the first word of "otool", so it can be a program name with args.
8448 set dummy otool; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 if test -n "$ac_ct_OTOOL"; then
8455 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_ac_ct_OTOOL="otool"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8475 if test -n "$ac_ct_OTOOL"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8477 $as_echo "$ac_ct_OTOOL" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8483 if test "x$ac_ct_OTOOL" = x; then
8486 case $cross_compiling:$ac_tool_warned in
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8495 OTOOL="$ac_cv_prog_OTOOL"
8498 if test -n "$ac_tool_prefix"; then
8499 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8500 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_prog_OTOOL64+:} false; then :
8504 $as_echo_n "(cached) " >&6
8506 if test -n "$OTOOL64"; then
8507 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 OTOOL64=$ac_cv_prog_OTOOL64
8527 if test -n "$OTOOL64"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8529 $as_echo "$OTOOL64" >&6; }
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8537 if test -z "$ac_cv_prog_OTOOL64"; then
8538 ac_ct_OTOOL64=$OTOOL64
8539 # Extract the first word of "otool64", so it can be a program name with args.
8540 set dummy otool64; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8544 $as_echo_n "(cached) " >&6
8546 if test -n "$ac_ct_OTOOL64"; then
8547 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556 ac_cv_prog_ac_ct_OTOOL64="otool64"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8567 if test -n "$ac_ct_OTOOL64"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8569 $as_echo "$ac_ct_OTOOL64" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8575 if test "x$ac_ct_OTOOL64" = x; then
8578 case $cross_compiling:$ac_tool_warned in
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582 ac_tool_warned=yes ;;
8584 OTOOL64=$ac_ct_OTOOL64
8587 OTOOL64="$ac_cv_prog_OTOOL64"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8617 $as_echo_n "checking for -single_module linker flag... " >&6; }
8618 if ${lt_cv_apple_cc_single_mod+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 lt_cv_apple_cc_single_mod=no
8622 if test -z "$LT_MULTI_MODULE"; then
8623 # By default we will add the -single_module flag. You can override
8624 # by either setting the environment variable LT_MULTI_MODULE
8625 # non-empty at configure time, or by adding -multi_module to the
8627 rm -rf libconftest.dylib*
8628 echo "int foo(void){return 1;}" > conftest.c
8629 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8630 -dynamiclib -Wl,-single_module conftest.c" >&5
8631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8632 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8634 # If there is a non-empty error log, and "single_module"
8635 # appears in it, assume the flag caused a linker warning
8636 if test -s conftest.err && $GREP single_module conftest.err; then
8637 cat conftest.err >&5
8638 # Otherwise, if the output was created with a 0 exit code from
8639 # the compiler, it worked.
8640 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8641 lt_cv_apple_cc_single_mod=yes
8643 cat conftest.err >&5
8645 rm -rf libconftest.dylib*
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8650 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8653 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8654 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8655 $as_echo_n "(cached) " >&6
8657 lt_cv_ld_exported_symbols_list=no
8658 save_LDFLAGS=$LDFLAGS
8659 echo "_main" > conftest.sym
8660 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8672 if ac_fn_c_try_link "$LINENO"; then :
8673 lt_cv_ld_exported_symbols_list=yes
8675 lt_cv_ld_exported_symbols_list=no
8677 rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 LDFLAGS=$save_LDFLAGS
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8683 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8686 $as_echo_n "checking for -force_load linker flag... " >&6; }
8687 if ${lt_cv_ld_force_load+:} false; then :
8688 $as_echo_n "(cached) " >&6
8690 lt_cv_ld_force_load=no
8691 cat > conftest.c << _LT_EOF
8692 int forced_loaded() { return 2;}
8694 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8695 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8696 echo "$AR cru libconftest.a conftest.o" >&5
8697 $AR cru libconftest.a conftest.o 2>&5
8698 echo "$RANLIB libconftest.a" >&5
8699 $RANLIB libconftest.a 2>&5
8700 cat > conftest.c << _LT_EOF
8701 int main() { return 0;}
8703 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8704 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8706 if test -s conftest.err && $GREP force_load conftest.err; then
8707 cat conftest.err >&5
8708 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8709 lt_cv_ld_force_load=yes
8711 cat conftest.err >&5
8713 rm -f conftest.err libconftest.a conftest conftest.c
8714 rm -rf conftest.dSYM
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8718 $as_echo "$lt_cv_ld_force_load" >&6; }
8720 rhapsody* | darwin1.[012])
8721 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8723 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8724 darwin*) # darwin 5.x on
8725 # if running on 10.5 or later, the deployment target defaults
8726 # to the OS version, if on x86, and 10.4, the deployment
8727 # target defaults to 10.4. Don't you love it?
8728 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8729 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8730 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8732 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8734 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8738 if test yes = "$lt_cv_apple_cc_single_mod"; then
8739 _lt_dar_single_mod='$single_module'
8741 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8742 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8744 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8746 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8747 _lt_dsymutil='~$DSYMUTIL $lib || :'
8754 # func_munge_path_list VARIABLE PATH
8755 # -----------------------------------
8756 # VARIABLE is name of variable containing _space_ separated list of
8757 # directories to be munged by the contents of PATH, which is string
8760 # string "DIR[ DIR]" will be prepended to VARIABLE
8762 # string "DIR[ DIR]" will be appended to VARIABLE
8763 # "DIRP[:DIRP]::[DIRA:]DIRA"
8764 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8765 # "DIRA[ DIRA]" will be appended to VARIABLE
8767 # VARIABLE will be replaced by "DIR[ DIR]"
8768 func_munge_path_list ()
8774 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8777 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8780 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8781 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8784 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8790 $as_echo_n "checking for ANSI C header files... " >&6; }
8791 if ${ac_cv_header_stdc+:} false; then :
8792 $as_echo_n "(cached) " >&6
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8809 if ac_fn_c_try_compile "$LINENO"; then :
8810 ac_cv_header_stdc=yes
8812 ac_cv_header_stdc=no
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 if test $ac_cv_header_stdc = yes; then
8817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8824 $EGREP "memchr" >/dev/null 2>&1; then :
8827 ac_cv_header_stdc=no
8833 if test $ac_cv_header_stdc = yes; then
8834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8841 $EGREP "free" >/dev/null 2>&1; then :
8844 ac_cv_header_stdc=no
8850 if test $ac_cv_header_stdc = yes; then
8851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8852 if test "$cross_compiling" = yes; then :
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8859 #if ((' ' & 0x0FF) == 0x020)
8860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8863 # define ISLOWER(c) \
8864 (('a' <= (c) && (c) <= 'i') \
8865 || ('j' <= (c) && (c) <= 'r') \
8866 || ('s' <= (c) && (c) <= 'z'))
8867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8875 for (i = 0; i < 256; i++)
8876 if (XOR (islower (i), ISLOWER (i))
8877 || toupper (i) != TOUPPER (i))
8882 if ac_fn_c_try_run "$LINENO"; then :
8885 ac_cv_header_stdc=no
8887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8888 conftest.$ac_objext conftest.beam conftest.$ac_ext
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8894 $as_echo "$ac_cv_header_stdc" >&6; }
8895 if test $ac_cv_header_stdc = yes; then
8897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8901 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8903 inttypes.h stdint.h unistd.h
8905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8909 cat >>confdefs.h <<_ACEOF
8910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8918 for ac_header in dlfcn.h
8920 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8922 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8923 cat >>confdefs.h <<_ACEOF
8924 #define HAVE_DLFCN_H 1
8934 func_stripname_cnf ()
8937 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8938 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8940 } # func_stripname_cnf
8947 enable_win32_dll=yes
8950 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8951 if test -n "$ac_tool_prefix"; then
8952 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8953 set dummy ${ac_tool_prefix}as; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if ${ac_cv_prog_AS+:} false; then :
8957 $as_echo_n "(cached) " >&6
8959 if test -n "$AS"; then
8960 ac_cv_prog_AS="$AS" # Let the user override the test.
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8969 ac_cv_prog_AS="${ac_tool_prefix}as"
8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 if test -n "$AS"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8982 $as_echo "$AS" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8990 if test -z "$ac_cv_prog_AS"; then
8992 # Extract the first word of "as", so it can be a program name with args.
8993 set dummy as; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8997 $as_echo_n "(cached) " >&6
8999 if test -n "$ac_ct_AS"; then
9000 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 test -z "$as_dir" && as_dir=.
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9009 ac_cv_prog_ac_ct_AS="as"
9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9020 if test -n "$ac_ct_AS"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9022 $as_echo "$ac_ct_AS" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9028 if test "x$ac_ct_AS" = x; then
9031 case $cross_compiling:$ac_tool_warned in
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9035 ac_tool_warned=yes ;;
9043 if test -n "$ac_tool_prefix"; then
9044 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9045 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if ${ac_cv_prog_DLLTOOL+:} false; then :
9049 $as_echo_n "(cached) " >&6
9051 if test -n "$DLLTOOL"; then
9052 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058 test -z "$as_dir" && as_dir=.
9059 for ac_exec_ext in '' $ac_executable_extensions; do
9060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 DLLTOOL=$ac_cv_prog_DLLTOOL
9072 if test -n "$DLLTOOL"; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9074 $as_echo "$DLLTOOL" >&6; }
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9082 if test -z "$ac_cv_prog_DLLTOOL"; then
9083 ac_ct_DLLTOOL=$DLLTOOL
9084 # Extract the first word of "dlltool", so it can be a program name with args.
9085 set dummy dlltool; ac_word=$2
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087 $as_echo_n "checking for $ac_word... " >&6; }
9088 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9089 $as_echo_n "(cached) " >&6
9091 if test -n "$ac_ct_DLLTOOL"; then
9092 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 test -z "$as_dir" && as_dir=.
9099 for ac_exec_ext in '' $ac_executable_extensions; do
9100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9101 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9111 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9112 if test -n "$ac_ct_DLLTOOL"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9114 $as_echo "$ac_ct_DLLTOOL" >&6; }
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9120 if test "x$ac_ct_DLLTOOL" = x; then
9123 case $cross_compiling:$ac_tool_warned in
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9127 ac_tool_warned=yes ;;
9129 DLLTOOL=$ac_ct_DLLTOOL
9132 DLLTOOL="$ac_cv_prog_DLLTOOL"
9135 if test -n "$ac_tool_prefix"; then
9136 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9137 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_prog_OBJDUMP+:} false; then :
9141 $as_echo_n "(cached) " >&6
9143 if test -n "$OBJDUMP"; then
9144 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 test -z "$as_dir" && as_dir=.
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 OBJDUMP=$ac_cv_prog_OBJDUMP
9164 if test -n "$OBJDUMP"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9166 $as_echo "$OBJDUMP" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9174 if test -z "$ac_cv_prog_OBJDUMP"; then
9175 ac_ct_OBJDUMP=$OBJDUMP
9176 # Extract the first word of "objdump", so it can be a program name with args.
9177 set dummy objdump; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9181 $as_echo_n "(cached) " >&6
9183 if test -n "$ac_ct_OBJDUMP"; then
9184 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9204 if test -n "$ac_ct_OBJDUMP"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9206 $as_echo "$ac_ct_OBJDUMP" >&6; }
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9212 if test "x$ac_ct_OBJDUMP" = x; then
9215 case $cross_compiling:$ac_tool_warned in
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9219 ac_tool_warned=yes ;;
9221 OBJDUMP=$ac_ct_OBJDUMP
9224 OBJDUMP="$ac_cv_prog_OBJDUMP"
9230 test -z "$AS" && AS=as
9236 test -z "$DLLTOOL" && DLLTOOL=dlltool
9242 test -z "$OBJDUMP" && OBJDUMP=objdump
9254 # Check whether --enable-shared was given.
9255 if test "${enable_shared+set}" = set; then :
9256 enableval=$enable_shared; p=${PACKAGE-default}
9258 yes) enable_shared=yes ;;
9259 no) enable_shared=no ;;
9262 # Look at the argument we got. We use all the common list separators.
9263 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9264 for pkg in $enableval; do
9266 if test "X$pkg" = "X$p"; then
9285 # Check whether --enable-static was given.
9286 if test "${enable_static+set}" = set; then :
9287 enableval=$enable_static; p=${PACKAGE-default}
9289 yes) enable_static=yes ;;
9290 no) enable_static=no ;;
9293 # Look at the argument we got. We use all the common list separators.
9294 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9295 for pkg in $enableval; do
9297 if test "X$pkg" = "X$p"; then
9317 # Check whether --with-pic was given.
9318 if test "${with_pic+set}" = set; then :
9319 withval=$with_pic; lt_p=${PACKAGE-default}
9321 yes|no) pic_mode=$withval ;;
9324 # Look at the argument we got. We use all the common list separators.
9325 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9326 for lt_pkg in $withval; do
9328 if test "X$lt_pkg" = "X$lt_p"; then
9346 # Check whether --enable-fast-install was given.
9347 if test "${enable_fast_install+set}" = set; then :
9348 enableval=$enable_fast_install; p=${PACKAGE-default}
9350 yes) enable_fast_install=yes ;;
9351 no) enable_fast_install=no ;;
9353 enable_fast_install=no
9354 # Look at the argument we got. We use all the common list separators.
9355 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9356 for pkg in $enableval; do
9358 if test "X$pkg" = "X$p"; then
9359 enable_fast_install=yes
9366 enable_fast_install=yes
9376 shared_archive_member_spec=
9377 case $host,$enable_shared in
9378 power*-*-aix[5-9]*,yes)
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9380 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9382 # Check whether --with-aix-soname was given.
9383 if test "${with_aix_soname+set}" = set; then :
9384 withval=$with_aix_soname; case $withval in
9388 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9391 lt_cv_with_aix_soname=$with_aix_soname
9393 if ${lt_cv_with_aix_soname+:} false; then :
9394 $as_echo_n "(cached) " >&6
9396 lt_cv_with_aix_soname=aix
9399 with_aix_soname=$lt_cv_with_aix_soname
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9403 $as_echo "$with_aix_soname" >&6; }
9404 if test aix != "$with_aix_soname"; then
9405 # For the AIX way of multilib, we name the shared archive member
9406 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9407 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9408 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9409 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9410 if test 64 = "${OBJECT_MODE-32}"; then
9411 shared_archive_member_spec=shr_64
9413 shared_archive_member_spec=shr
9431 # This can be used to rebuild libtool when needed
9432 LIBTOOL_DEPS=$ltmain
9434 # Always use our own libtool.
9435 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9466 test -z "$LN_S" && LN_S="ln -s"
9481 if test -n "${ZSH_VERSION+set}"; then
9482 setopt NO_GLOB_SUBST
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9486 $as_echo_n "checking for objdir... " >&6; }
9487 if ${lt_cv_objdir+:} false; then :
9488 $as_echo_n "(cached) " >&6
9490 rm -f .libs 2>/dev/null
9491 mkdir .libs 2>/dev/null
9492 if test -d .libs; then
9495 # MS-DOS does not allow filenames that begin with a dot.
9498 rmdir .libs 2>/dev/null
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9501 $as_echo "$lt_cv_objdir" >&6; }
9502 objdir=$lt_cv_objdir
9508 cat >>confdefs.h <<_ACEOF
9509 #define LT_OBJDIR "$lt_cv_objdir/"
9517 # AIX sometimes has problems with the GCC collect2 program. For some
9518 # reason, if we set the COLLECT_NAMES environment variable, the problems
9519 # vanish in a puff of smoke.
9520 if test set != "${COLLECT_NAMES+set}"; then
9522 export COLLECT_NAMES
9529 can_build_shared=yes
9531 # All known linkers require a '.a' archive for static linking (except MSVC,
9532 # which needs '.lib').
9535 with_gnu_ld=$lt_cv_prog_gnu_ld
9540 # Set sane defaults for various variables
9541 test -z "$CC" && CC=cc
9542 test -z "$LTCC" && LTCC=$CC
9543 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9544 test -z "$LD" && LD=ld
9545 test -z "$ac_objext" && ac_objext=o
9547 func_cc_basename $compiler
9548 cc_basename=$func_cc_basename_result
9551 # Only perform the check for file, if the check method requires it
9552 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9553 case $deplibs_check_method in
9555 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9557 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9558 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9559 $as_echo_n "(cached) " >&6
9563 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9566 lt_save_MAGIC_CMD=$MAGIC_CMD
9567 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9569 for ac_dir in $ac_dummy; do
9571 test -z "$ac_dir" && ac_dir=.
9572 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9573 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9574 if test -n "$file_magic_test_file"; then
9575 case $deplibs_check_method in
9577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9578 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9580 $EGREP "$file_magic_regex" > /dev/null; then
9585 *** Warning: the command libtool uses to detect shared libraries,
9586 *** $file_magic_cmd, produces output that libtool cannot recognize.
9587 *** The result is that libtool may fail to recognize shared libraries
9588 *** as such. This will affect the creation of libtool libraries that
9589 *** depend on shared libraries, but programs linked with such libtool
9590 *** libraries will work regardless of this problem. Nevertheless, you
9591 *** may want to report the problem to your system manager and/or to
9592 *** bug-libtool@gnu.org
9602 MAGIC_CMD=$lt_save_MAGIC_CMD
9607 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9608 if test -n "$MAGIC_CMD"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9610 $as_echo "$MAGIC_CMD" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9620 if test -z "$lt_cv_path_MAGIC_CMD"; then
9621 if test -n "$ac_tool_prefix"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9623 $as_echo_n "checking for file... " >&6; }
9624 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9625 $as_echo_n "(cached) " >&6
9629 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9632 lt_save_MAGIC_CMD=$MAGIC_CMD
9633 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9634 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9635 for ac_dir in $ac_dummy; do
9637 test -z "$ac_dir" && ac_dir=.
9638 if test -f "$ac_dir/file"; then
9639 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9640 if test -n "$file_magic_test_file"; then
9641 case $deplibs_check_method in
9643 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9644 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9645 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9646 $EGREP "$file_magic_regex" > /dev/null; then
9651 *** Warning: the command libtool uses to detect shared libraries,
9652 *** $file_magic_cmd, produces output that libtool cannot recognize.
9653 *** The result is that libtool may fail to recognize shared libraries
9654 *** as such. This will affect the creation of libtool libraries that
9655 *** depend on shared libraries, but programs linked with such libtool
9656 *** libraries will work regardless of this problem. Nevertheless, you
9657 *** may want to report the problem to your system manager and/or to
9658 *** bug-libtool@gnu.org
9668 MAGIC_CMD=$lt_save_MAGIC_CMD
9673 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9674 if test -n "$MAGIC_CMD"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9676 $as_echo "$MAGIC_CMD" >&6; }
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9692 # Use C for the default configuration in the libtool script
9696 ac_cpp='$CPP $CPPFLAGS'
9697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9702 # Source file extension for C test sources.
9705 # Object file extension for compiled C test sources.
9709 # Code to be used in simple compile tests
9710 lt_simple_compile_test_code="int some_variable = 0;"
9712 # Code to be used in simple link tests
9713 lt_simple_link_test_code='int main(){return(0);}'
9721 # If no C compiler was specified, use CC.
9724 # If no C compiler flags were specified, use CFLAGS.
9725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9727 # Allow CC to be a program name with arguments.
9730 # Save the default compiler, since it gets overwritten when the other
9731 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9732 compiler_DEFAULT=$CC
9734 # save warnings/boilerplate of simple test code
9735 ac_outfile=conftest.$ac_objext
9736 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9738 _lt_compiler_boilerplate=`cat conftest.err`
9741 ac_outfile=conftest.$ac_objext
9742 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9744 _lt_linker_boilerplate=`cat conftest.err`
9749 ## There is no encapsulation within the following macros, do not change
9750 ## the running order or otherwise move them around unless you know exactly
9751 ## what you are doing...
9752 if test -n "$compiler"; then
9754 lt_prog_compiler_no_builtin_flag=
9756 if test yes = "$GCC"; then
9757 case $cc_basename in
9759 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9761 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9765 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9766 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9767 $as_echo_n "(cached) " >&6
9769 lt_cv_prog_compiler_rtti_exceptions=no
9770 ac_outfile=conftest.$ac_objext
9771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9773 # Insert the option either (1) after the last *FLAGS variable, or
9774 # (2) before a word containing "conftest.", or (3) at the end.
9775 # Note that $ac_compile itself does not contain backslashes and begins
9776 # with a dollar sign (not a hyphen), so the echo should work correctly.
9777 # The option is referenced via a variable to avoid confusing sed.
9778 lt_compile=`echo "$ac_compile" | $SED \
9779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9781 -e 's:$: $lt_compiler_flag:'`
9782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9783 (eval "$lt_compile" 2>conftest.err)
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 if (exit $ac_status) && test -s "$ac_outfile"; then
9788 # The compiler can only warn and ignore the option if not recognized
9789 # So say no if there are warnings other than the usual output.
9790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9793 lt_cv_prog_compiler_rtti_exceptions=yes
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9800 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9802 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9803 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9815 lt_prog_compiler_wl=
9816 lt_prog_compiler_pic=
9817 lt_prog_compiler_static=
9820 if test yes = "$GCC"; then
9821 lt_prog_compiler_wl='-Wl,'
9822 lt_prog_compiler_static='-static'
9826 # All AIX code is PIC.
9827 if test ia64 = "$host_cpu"; then
9828 # AIX 5 now supports IA64 processor
9829 lt_prog_compiler_static='-Bstatic'
9831 lt_prog_compiler_pic='-fPIC'
9837 # see comment about AmigaOS4 .so support
9838 lt_prog_compiler_pic='-fPIC'
9841 # FIXME: we need at least 68020 code to build shared libraries, but
9842 # adding the '-m68020' flag to GCC prevents building anything better,
9844 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9850 # PIC is the default for these OSes.
9853 mingw* | cygwin* | pw32* | os2* | cegcc*)
9854 # This hack is so that the source file can tell whether it is being
9855 # built for inclusion in a dll (and should export symbols for example).
9856 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9857 # (--disable-auto-import) libraries
9858 lt_prog_compiler_pic='-DDLL_EXPORT'
9861 lt_prog_compiler_static='$wl-static'
9866 darwin* | rhapsody*)
9867 # PIC is the default on this platform
9868 # Common symbols not allowed in MH_DYLIB files
9869 lt_prog_compiler_pic='-fno-common'
9873 # PIC is the default for Haiku.
9874 # The "-static" flag exists, but is broken.
9875 lt_prog_compiler_static=
9879 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9880 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9881 # sets the default TLS model and affects inlining.
9887 lt_prog_compiler_pic='-fPIC'
9893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9894 # Instead, we relocate shared libraries at runtime.
9898 # Just because we use GCC doesn't mean we suddenly get shared libraries
9899 # on systems that don't support them.
9900 lt_prog_compiler_can_build_shared=no
9905 # QNX uses GNU C++, but need to define -shared option too, otherwise
9907 lt_prog_compiler_pic='-fPIC -shared'
9911 if test -d /usr/nec; then
9912 lt_prog_compiler_pic=-Kconform_pic
9917 lt_prog_compiler_pic='-fPIC'
9921 case $cc_basename in
9922 nvcc*) # Cuda Compiler Driver 2.2
9923 lt_prog_compiler_wl='-Xlinker '
9924 if test -n "$lt_prog_compiler_pic"; then
9925 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9930 # PORTME Check for flag to pass linker flags through the system compiler.
9933 lt_prog_compiler_wl='-Wl,'
9934 if test ia64 = "$host_cpu"; then
9935 # AIX 5 now supports IA64 processor
9936 lt_prog_compiler_static='-Bstatic'
9938 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9942 darwin* | rhapsody*)
9943 # PIC is the default on this platform
9944 # Common symbols not allowed in MH_DYLIB files
9945 lt_prog_compiler_pic='-fno-common'
9946 case $cc_basename in
9948 # NAG Fortran compiler
9949 lt_prog_compiler_wl='-Wl,-Wl,,'
9950 lt_prog_compiler_pic='-PIC'
9951 lt_prog_compiler_static='-Bstatic'
9956 mingw* | cygwin* | pw32* | os2* | cegcc*)
9957 # This hack is so that the source file can tell whether it is being
9958 # built for inclusion in a dll (and should export symbols for example).
9959 lt_prog_compiler_pic='-DDLL_EXPORT'
9962 lt_prog_compiler_static='$wl-static'
9967 hpux9* | hpux10* | hpux11*)
9968 lt_prog_compiler_wl='-Wl,'
9969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9976 lt_prog_compiler_pic='+Z'
9979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9980 lt_prog_compiler_static='$wl-a ${wl}archive'
9983 irix5* | irix6* | nonstopux*)
9984 lt_prog_compiler_wl='-Wl,'
9985 # PIC (with -KPIC) is the default.
9986 lt_prog_compiler_static='-non_shared'
9989 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9990 case $cc_basename in
9991 # old Intel for x86_64, which still supported -KPIC.
9993 lt_prog_compiler_wl='-Wl,'
9994 lt_prog_compiler_pic='-KPIC'
9995 lt_prog_compiler_static='-static'
9997 # icc used to be incompatible with GCC.
9998 # ICC 10 doesn't accept -KPIC any more.
10000 lt_prog_compiler_wl='-Wl,'
10001 lt_prog_compiler_pic='-fPIC'
10002 lt_prog_compiler_static='-static'
10004 # Lahey Fortran 8.1.
10006 lt_prog_compiler_wl='-Wl,'
10007 lt_prog_compiler_pic='--shared'
10008 lt_prog_compiler_static='--static'
10011 # NAG Fortran compiler
10012 lt_prog_compiler_wl='-Wl,-Wl,,'
10013 lt_prog_compiler_pic='-PIC'
10014 lt_prog_compiler_static='-Bstatic'
10017 # Fabrice Bellard et al's Tiny C Compiler
10018 lt_prog_compiler_wl='-Wl,'
10019 lt_prog_compiler_pic='-fPIC'
10020 lt_prog_compiler_static='-static'
10022 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10023 # Portland Group compilers (*not* the Pentium gcc compiler,
10024 # which looks to be a dead project)
10025 lt_prog_compiler_wl='-Wl,'
10026 lt_prog_compiler_pic='-fpic'
10027 lt_prog_compiler_static='-Bstatic'
10030 lt_prog_compiler_wl='-Wl,'
10031 # All Alpha code is PIC.
10032 lt_prog_compiler_static='-non_shared'
10034 xl* | bgxl* | bgf* | mpixl*)
10035 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10036 lt_prog_compiler_wl='-Wl,'
10037 lt_prog_compiler_pic='-qpic'
10038 lt_prog_compiler_static='-qstaticlink'
10041 case `$CC -V 2>&1 | sed 5q` in
10042 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10043 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10044 lt_prog_compiler_pic='-KPIC'
10045 lt_prog_compiler_static='-Bstatic'
10046 lt_prog_compiler_wl=''
10048 *Sun\ F* | *Sun*Fortran*)
10049 lt_prog_compiler_pic='-KPIC'
10050 lt_prog_compiler_static='-Bstatic'
10051 lt_prog_compiler_wl='-Qoption ld '
10055 lt_prog_compiler_pic='-KPIC'
10056 lt_prog_compiler_static='-Bstatic'
10057 lt_prog_compiler_wl='-Wl,'
10059 *Intel*\ [CF]*Compiler*)
10060 lt_prog_compiler_wl='-Wl,'
10061 lt_prog_compiler_pic='-fPIC'
10062 lt_prog_compiler_static='-static'
10065 lt_prog_compiler_wl='-Wl,'
10066 lt_prog_compiler_pic='-fpic'
10067 lt_prog_compiler_static='-Bstatic'
10075 lt_prog_compiler_pic='-KPIC'
10076 lt_prog_compiler_static='-Bstatic'
10080 # QNX uses GNU C++, but need to define -shared option too, otherwise
10081 # it will coredump.
10082 lt_prog_compiler_pic='-fPIC -shared'
10085 osf3* | osf4* | osf5*)
10086 lt_prog_compiler_wl='-Wl,'
10087 # All OSF/1 code is PIC.
10088 lt_prog_compiler_static='-non_shared'
10092 lt_prog_compiler_static='-non_shared'
10096 lt_prog_compiler_pic='-KPIC'
10097 lt_prog_compiler_static='-Bstatic'
10098 case $cc_basename in
10099 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10100 lt_prog_compiler_wl='-Qoption ld ';;
10102 lt_prog_compiler_wl='-Wl,';;
10107 lt_prog_compiler_wl='-Qoption ld '
10108 lt_prog_compiler_pic='-PIC'
10109 lt_prog_compiler_static='-Bstatic'
10112 sysv4 | sysv4.2uw2* | sysv4.3*)
10113 lt_prog_compiler_wl='-Wl,'
10114 lt_prog_compiler_pic='-KPIC'
10115 lt_prog_compiler_static='-Bstatic'
10119 if test -d /usr/nec; then
10120 lt_prog_compiler_pic='-Kconform_pic'
10121 lt_prog_compiler_static='-Bstatic'
10125 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10126 lt_prog_compiler_wl='-Wl,'
10127 lt_prog_compiler_pic='-KPIC'
10128 lt_prog_compiler_static='-Bstatic'
10132 lt_prog_compiler_wl='-Wl,'
10133 lt_prog_compiler_can_build_shared=no
10137 lt_prog_compiler_pic='-pic'
10138 lt_prog_compiler_static='-Bstatic'
10142 lt_prog_compiler_can_build_shared=no
10148 # For platforms that do not support PIC, -DPIC is meaningless:
10150 lt_prog_compiler_pic=
10153 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10158 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10159 if ${lt_cv_prog_compiler_pic+:} false; then :
10160 $as_echo_n "(cached) " >&6
10162 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10165 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10166 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10169 # Check to make sure the PIC flag actually works.
10171 if test -n "$lt_prog_compiler_pic"; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10173 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10174 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10175 $as_echo_n "(cached) " >&6
10177 lt_cv_prog_compiler_pic_works=no
10178 ac_outfile=conftest.$ac_objext
10179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10181 # Insert the option either (1) after the last *FLAGS variable, or
10182 # (2) before a word containing "conftest.", or (3) at the end.
10183 # Note that $ac_compile itself does not contain backslashes and begins
10184 # with a dollar sign (not a hyphen), so the echo should work correctly.
10185 # The option is referenced via a variable to avoid confusing sed.
10186 lt_compile=`echo "$ac_compile" | $SED \
10187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10189 -e 's:$: $lt_compiler_flag:'`
10190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10191 (eval "$lt_compile" 2>conftest.err)
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 if (exit $ac_status) && test -s "$ac_outfile"; then
10196 # The compiler can only warn and ignore the option if not recognized
10197 # So say no if there are warnings other than the usual output.
10198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10201 lt_cv_prog_compiler_pic_works=yes
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10208 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10210 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10211 case $lt_prog_compiler_pic in
10213 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10216 lt_prog_compiler_pic=
10217 lt_prog_compiler_can_build_shared=no
10233 # Check to make sure the static flag actually works.
10235 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10237 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10238 if ${lt_cv_prog_compiler_static_works+:} false; then :
10239 $as_echo_n "(cached) " >&6
10241 lt_cv_prog_compiler_static_works=no
10242 save_LDFLAGS=$LDFLAGS
10243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10246 # The linker can only warn and ignore the option if not recognized
10247 # So say no if there are warnings
10248 if test -s conftest.err; then
10249 # Append any errors to the config.log.
10250 cat conftest.err 1>&5
10251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10253 if diff conftest.exp conftest.er2 >/dev/null; then
10254 lt_cv_prog_compiler_static_works=yes
10257 lt_cv_prog_compiler_static_works=yes
10261 LDFLAGS=$save_LDFLAGS
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10265 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10267 if test yes = "$lt_cv_prog_compiler_static_works"; then
10270 lt_prog_compiler_static=
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10280 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10281 if ${lt_cv_prog_compiler_c_o+:} false; then :
10282 $as_echo_n "(cached) " >&6
10284 lt_cv_prog_compiler_c_o=no
10285 $RM -r conftest 2>/dev/null
10289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10291 lt_compiler_flag="-o out/conftest2.$ac_objext"
10292 # Insert the option either (1) after the last *FLAGS variable, or
10293 # (2) before a word containing "conftest.", or (3) at the end.
10294 # Note that $ac_compile itself does not contain backslashes and begins
10295 # with a dollar sign (not a hyphen), so the echo should work correctly.
10296 lt_compile=`echo "$ac_compile" | $SED \
10297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10299 -e 's:$: $lt_compiler_flag:'`
10300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10301 (eval "$lt_compile" 2>out/conftest.err)
10303 cat out/conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10307 # The compiler can only warn and ignore the option if not recognized
10308 # So say no if there are warnings
10309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10312 lt_cv_prog_compiler_c_o=yes
10317 # SGI C++ compiler will create directory out/ii_files/ for
10318 # template instantiation
10319 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10320 $RM out/* && rmdir out
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10327 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10335 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10336 if ${lt_cv_prog_compiler_c_o+:} false; then :
10337 $as_echo_n "(cached) " >&6
10339 lt_cv_prog_compiler_c_o=no
10340 $RM -r conftest 2>/dev/null
10344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10346 lt_compiler_flag="-o out/conftest2.$ac_objext"
10347 # Insert the option either (1) after the last *FLAGS variable, or
10348 # (2) before a word containing "conftest.", or (3) at the end.
10349 # Note that $ac_compile itself does not contain backslashes and begins
10350 # with a dollar sign (not a hyphen), so the echo should work correctly.
10351 lt_compile=`echo "$ac_compile" | $SED \
10352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10354 -e 's:$: $lt_compiler_flag:'`
10355 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10356 (eval "$lt_compile" 2>out/conftest.err)
10358 cat out/conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10362 # The compiler can only warn and ignore the option if not recognized
10363 # So say no if there are warnings
10364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10365 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10366 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10367 lt_cv_prog_compiler_c_o=yes
10372 # SGI C++ compiler will create directory out/ii_files/ for
10373 # template instantiation
10374 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10375 $RM out/* && rmdir out
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10382 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10387 hard_links=nottested
10388 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10389 # do not overwrite the value of need_locks provided by the user
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10391 $as_echo_n "checking if we can lock with hard links... " >&6; }
10394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10396 ln conftest.a conftest.b 2>&5 || hard_links=no
10397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10399 $as_echo "$hard_links" >&6; }
10400 if test no = "$hard_links"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10402 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10418 allow_undefined_flag=
10419 always_export_symbols=no
10421 archive_expsym_cmds=
10422 compiler_needs_object=no
10423 enable_shared_with_static_runtimes=no
10424 export_dynamic_flag_spec=
10425 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10426 hardcode_automatic=no
10428 hardcode_direct_absolute=no
10429 hardcode_libdir_flag_spec=
10430 hardcode_libdir_separator=
10431 hardcode_minus_L=no
10432 hardcode_shlibpath_var=unsupported
10434 link_all_deplibs=unknown
10436 module_expsym_cmds=
10437 old_archive_from_new_cmds=
10438 old_archive_from_expsyms_cmds=
10439 thread_safe_flag_spec=
10440 whole_archive_flag_spec=
10441 # include_expsyms should be a list of space-separated symbols to be *always*
10442 # included in the symbol list
10444 # exclude_expsyms can be an extended regexp of symbols to exclude
10445 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10446 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10447 # as well as any symbol that contains 'd'.
10448 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10450 # platforms (ab)use it in PIC code, but their linkers get confused if
10451 # the symbol is explicitly referenced. Since portable code cannot
10452 # rely on this symbol name, it's probably fine to never include it in
10453 # preloaded symbol tables.
10454 # Exclude shared library initialization/finalization symbols.
10455 extract_expsyms_cmds=
10458 cygwin* | mingw* | pw32* | cegcc*)
10459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10460 # When not using gcc, we currently assume that we are using
10461 # Microsoft Visual C++.
10462 if test yes != "$GCC"; then
10467 # we just hope/assume this is gcc and not c89 (= MSVC++)
10470 openbsd* | bitrig*)
10477 # On some targets, GNU ld is compatible enough with the native linker
10478 # that we're better off using the native interface for both.
10479 lt_use_gnu_ld_interface=no
10480 if test yes = "$with_gnu_ld"; then
10483 # The AIX port of GNU ld has always aspired to compatibility
10484 # with the native linker. However, as the warning in the GNU ld
10485 # block says, versions before 2.19.5* couldn't really create working
10486 # shared libraries, regardless of the interface used.
10487 case `$LD -v 2>&1` in
10488 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10489 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10490 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10492 lt_use_gnu_ld_interface=yes
10497 lt_use_gnu_ld_interface=yes
10502 if test yes = "$lt_use_gnu_ld_interface"; then
10503 # If archive_cmds runs LD, not CC, wlarc should be empty
10506 # Set some defaults for GNU ld with shared library support. These
10507 # are reset later if shared libraries are not supported. Putting them
10508 # here allows them to be overridden if necessary.
10509 runpath_var=LD_RUN_PATH
10510 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10511 export_dynamic_flag_spec='$wl--export-dynamic'
10512 # ancient GNU ld didn't support --whole-archive et. al.
10513 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10514 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10516 whole_archive_flag_spec=
10518 supports_anon_versioning=no
10519 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10520 *GNU\ gold*) supports_anon_versioning=yes ;;
10521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10524 *\ 2.11.*) ;; # other 2.11 versions
10525 *) supports_anon_versioning=yes ;;
10528 # See if GNU ld supports shared libraries.
10531 # On AIX/PPC, the GNU linker is very broken
10532 if test ia64 != "$host_cpu"; then
10536 *** Warning: the GNU linker, at least up to release 2.19, is reported
10537 *** to be unable to reliably create shared libraries on AIX.
10538 *** Therefore, libtool is disabling shared libraries support. If you
10539 *** really care for shared libraries, you may want to install binutils
10540 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10541 *** You will then need to restart the configuration process.
10550 # see comment about AmigaOS4 .so support
10551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10552 archive_expsym_cmds=''
10555 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)'
10556 hardcode_libdir_flag_spec='-L$libdir'
10557 hardcode_minus_L=yes
10563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10564 allow_undefined_flag=unsupported
10565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10566 # support --undefined. This deserves some investigation. FIXME
10567 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10573 cygwin* | mingw* | pw32* | cegcc*)
10574 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10575 # as there is no search path for DLLs.
10576 hardcode_libdir_flag_spec='-L$libdir'
10577 export_dynamic_flag_spec='$wl--export-all-symbols'
10578 allow_undefined_flag=unsupported
10579 always_export_symbols=no
10580 enable_shared_with_static_runtimes=yes
10581 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'
10582 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10584 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10586 # If the export-symbols file already is a .def file, use it as
10587 # is; otherwise, prepend EXPORTS...
10588 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10589 cp $export_symbols $output_objdir/$soname.def;
10591 echo EXPORTS > $output_objdir/$soname.def;
10592 cat $export_symbols >> $output_objdir/$soname.def;
10594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10602 link_all_deplibs=yes
10606 hardcode_libdir_flag_spec='-L$libdir'
10607 hardcode_minus_L=yes
10608 allow_undefined_flag=unsupported
10610 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10611 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10612 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10613 $ECHO EXPORTS >> $output_objdir/$libname.def~
10614 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10615 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10616 emximp -o $lib $output_objdir/$libname.def'
10617 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10618 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10619 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10620 $ECHO EXPORTS >> $output_objdir/$libname.def~
10621 prefix_cmds="$SED"~
10622 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10623 prefix_cmds="$prefix_cmds -e 1d";
10625 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10626 cat $export_symbols | $prefix_cmds >> $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 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10630 enable_shared_with_static_runtimes=yes
10635 hardcode_shlibpath_var=no
10636 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10637 export_dynamic_flag_spec='$wl-E'
10638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10639 # Instead, shared libraries are loaded at an image base (0x10000000 by
10640 # default) and relocated if they conflict, which is a slow very memory
10641 # consuming and fragmenting process. To avoid this, we pick a random,
10642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10645 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'
10648 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10650 if test linux-dietlibc = "$host_os"; then
10651 case $cc_basename in
10652 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10655 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10656 && test no = "$tmp_diet"
10658 tmp_addflag=' $pic_flag'
10659 tmp_sharedflag='-shared'
10660 case $cc_basename,$host_cpu in
10661 pgcc*) # Portland Group C compiler
10662 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'
10663 tmp_addflag=' $pic_flag'
10665 pgf77* | pgf90* | pgf95* | pgfortran*)
10666 # Portland Group f77 and f90 compilers
10667 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'
10668 tmp_addflag=' $pic_flag -Mnomain' ;;
10669 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10670 tmp_addflag=' -i_dynamic' ;;
10671 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10672 tmp_addflag=' -i_dynamic -nofor_main' ;;
10673 ifc* | ifort*) # Intel Fortran compiler
10674 tmp_addflag=' -nofor_main' ;;
10675 lf95*) # Lahey Fortran 8.1
10676 whole_archive_flag_spec=
10677 tmp_sharedflag='--shared' ;;
10678 nagfor*) # NAGFOR 5.3
10679 tmp_sharedflag='-Wl,-shared' ;;
10680 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10681 tmp_sharedflag='-qmkshrobj'
10683 nvcc*) # Cuda Compiler Driver 2.2
10684 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'
10685 compiler_needs_object=yes
10688 case `$CC -V 2>&1 | sed 5q` in
10689 *Sun\ C*) # Sun C 5.9
10690 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'
10691 compiler_needs_object=yes
10692 tmp_sharedflag='-G' ;;
10693 *Sun\ F*) # Sun Fortran 8.3
10694 tmp_sharedflag='-G' ;;
10696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10698 if test yes = "$supports_anon_versioning"; then
10699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10701 echo "local: *; };" >> $output_objdir/$libname.ver~
10702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10705 case $cc_basename in
10707 export_dynamic_flag_spec='-rdynamic'
10709 xlf* | bgf* | bgxlf* | mpixlf*)
10710 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10711 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10713 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10714 if test yes = "$supports_anon_versioning"; then
10715 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10717 echo "local: *; };" >> $output_objdir/$libname.ver~
10718 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10729 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10733 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10738 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10743 *** create shared libraries on Solaris systems. Therefore, libtool
10744 *** is disabling shared libraries support. We urge you to upgrade GNU
10745 *** binutils to release 2.9.1 or newer. Another option is to modify
10746 *** your PATH or compiler configuration so that the native linker is
10747 *** used, and then restart.
10750 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10759 case `$LD -v 2>&1` in
10760 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10764 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10765 *** reliably create shared libraries on SCO systems. Therefore, libtool
10766 *** is disabling shared libraries support. We urge you to upgrade GNU
10767 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10768 *** your PATH or compiler configuration so that the native linker is
10769 *** used, and then restart.
10774 # For security reasons, it is highly recommended that you always
10775 # use absolute paths for naming shared libraries, and exclude the
10776 # DT_RUNPATH tag from executables and libraries. But doing so
10777 # requires that you compile everything twice, which is a pain.
10778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10779 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10792 hardcode_direct=yes
10793 hardcode_shlibpath_var=no
10797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10799 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10806 if test no = "$ld_shlibs"; then
10808 hardcode_libdir_flag_spec=
10809 export_dynamic_flag_spec=
10810 whole_archive_flag_spec=
10813 # PORTME fill in a description of your system's linker (not GNU ld)
10816 allow_undefined_flag=unsupported
10817 always_export_symbols=yes
10818 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'
10819 # Note: this linker hardcodes the directories in LIBPATH if there
10820 # are no directories specified by -L.
10821 hardcode_minus_L=yes
10822 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10823 # Neither direct hardcoding nor static linking is supported with a
10825 hardcode_direct=unsupported
10830 if test ia64 = "$host_cpu"; then
10831 # On IA64, the linker does run time linking by default, so we don't
10832 # have to do anything special.
10833 aix_use_runtimelinking=no
10834 exp_sym_flag='-Bexport'
10837 # If we're using GNU nm, then we don't want the "-C" option.
10838 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10839 # Without the "-l" option, or with the "-B" option, AIX nm treats
10840 # weak defined symbols like other global defined symbols, whereas
10841 # GNU nm marks them as "W".
10842 # While the 'weak' keyword is ignored in the Export File, we need
10843 # it in the Import File for the 'aix-soname' feature, so we have
10844 # to replace the "-B" option with "-P" for AIX nm.
10845 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10846 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'
10848 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'
10850 aix_use_runtimelinking=no
10852 # Test if we are trying to use run time linking or normal
10853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10854 # have runtime linking enabled, and use it for executables.
10855 # For shared libraries, we enable/disable runtime linking
10856 # depending on the kind of the shared library created -
10857 # when "with_aix_soname,aix_use_runtimelinking" is:
10858 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10859 # "aix,yes" lib.so shared, rtl:yes, for executables
10860 # lib.a static archive
10861 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10862 # lib.a(lib.so.V) shared, rtl:no, for executables
10863 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10864 # lib.a(lib.so.V) shared, rtl:no
10865 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10866 # lib.a static archive
10867 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10868 for ld_flag in $LDFLAGS; do
10869 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10870 aix_use_runtimelinking=yes
10874 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10875 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10876 # so we don't have lib.a shared libs to link our executables.
10877 # We have to force runtime linking in this case.
10878 aix_use_runtimelinking=yes
10879 LDFLAGS="$LDFLAGS -Wl,-brtl"
10884 exp_sym_flag='-bexport'
10885 no_entry_flag='-bnoentry'
10888 # When large executables or shared objects are built, AIX ld can
10889 # have problems creating the table of contents. If linking a library
10890 # or program results in "error TOC overflow" add -mminimal-toc to
10891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10895 hardcode_direct=yes
10896 hardcode_direct_absolute=yes
10897 hardcode_libdir_separator=':'
10898 link_all_deplibs=yes
10899 file_list_spec='$wl-f,'
10900 case $with_aix_soname,$aix_use_runtimelinking in
10901 aix,*) ;; # traditional, no import file
10902 svr4,* | *,yes) # use import file
10903 # The Import File defines what to hardcode.
10905 hardcode_direct_absolute=no
10909 if test yes = "$GCC"; then
10910 case $host_os in aix4.[012]|aix4.[012].*)
10911 # We only want to do this on AIX 4.2 and lower, the check
10912 # below for broken collect2 doesn't work under 4.3+
10913 collect2name=`$CC -print-prog-name=collect2`
10914 if test -f "$collect2name" &&
10915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10917 # We have reworked collect2
10920 # We have old collect2
10921 hardcode_direct=unsupported
10922 # It fails to find uninstalled libraries when the uninstalled
10923 # path is not listed in the libpath. Setting hardcode_minus_L
10924 # to unsupported forces relinking
10925 hardcode_minus_L=yes
10926 hardcode_libdir_flag_spec='-L$libdir'
10927 hardcode_libdir_separator=
10931 shared_flag='-shared'
10932 if test yes = "$aix_use_runtimelinking"; then
10933 shared_flag="$shared_flag "'$wl-G'
10935 # Need to ensure runtime linking is disabled for the traditional
10936 # shared library, or the linker may eventually find shared libraries
10937 # /with/ Import File - we do not want to mix them.
10938 shared_flag_aix='-shared'
10939 shared_flag_svr4='-shared $wl-G'
10942 if test ia64 = "$host_cpu"; then
10943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10944 # chokes on -Wl,-G. The following line is correct:
10947 if test yes = "$aix_use_runtimelinking"; then
10948 shared_flag='$wl-G'
10950 shared_flag='$wl-bM:SRE'
10952 shared_flag_aix='$wl-bM:SRE'
10953 shared_flag_svr4='$wl-G'
10957 export_dynamic_flag_spec='$wl-bexpall'
10958 # It seems that -bexpall does not export symbols beginning with
10959 # underscore (_), so it is better to generate a list of symbols to export.
10960 always_export_symbols=yes
10961 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10962 # Warning - without using the other runtime loading flags (-brtl),
10963 # -berok will link without error, but may produce a broken library.
10964 allow_undefined_flag='-berok'
10965 # Determine the default libpath from the value encoded in an
10966 # empty executable.
10967 if test set = "${lt_cv_aix_libpath+set}"; then
10968 aix_libpath=$lt_cv_aix_libpath
10970 if ${lt_cv_aix_libpath_+:} false; then :
10971 $as_echo_n "(cached) " >&6
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10984 if ac_fn_c_try_link "$LINENO"; then :
10986 lt_aix_libpath_sed='
10987 /Import File Strings/,/^$/ {
10989 s/^0 *\([^ ]*\) *$/\1/
10993 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10994 # Check for a 64-bit object if we didn't find anything.
10995 if test -z "$lt_cv_aix_libpath_"; then
10996 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 if test -z "$lt_cv_aix_libpath_"; then
11002 lt_cv_aix_libpath_=/usr/lib:/lib
11007 aix_libpath=$lt_cv_aix_libpath_
11010 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11011 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
11013 if test ia64 = "$host_cpu"; then
11014 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11015 allow_undefined_flag="-z nodefs"
11016 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"
11018 # Determine the default libpath from the value encoded in an
11019 # empty executable.
11020 if test set = "${lt_cv_aix_libpath+set}"; then
11021 aix_libpath=$lt_cv_aix_libpath
11023 if ${lt_cv_aix_libpath_+:} false; then :
11024 $as_echo_n "(cached) " >&6
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11037 if ac_fn_c_try_link "$LINENO"; then :
11039 lt_aix_libpath_sed='
11040 /Import File Strings/,/^$/ {
11042 s/^0 *\([^ ]*\) *$/\1/
11046 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11047 # Check for a 64-bit object if we didn't find anything.
11048 if test -z "$lt_cv_aix_libpath_"; then
11049 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 if test -z "$lt_cv_aix_libpath_"; then
11055 lt_cv_aix_libpath_=/usr/lib:/lib
11060 aix_libpath=$lt_cv_aix_libpath_
11063 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11064 # Warning - without using the other run time loading flags,
11065 # -berok will link without error, but may produce a broken library.
11066 no_undefined_flag=' $wl-bernotok'
11067 allow_undefined_flag=' $wl-berok'
11068 if test yes = "$with_gnu_ld"; then
11069 # We only use this code for GNU lds that support --whole-archive.
11070 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11072 # Exported symbols can be pulled into shared objects from archives
11073 whole_archive_flag_spec='$convenience'
11075 archive_cmds_need_lc=yes
11076 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11077 # -brtl affects multiple linker settings, -berok does not and is overridden later
11078 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11079 if test svr4 != "$with_aix_soname"; then
11080 # This is similar to how AIX traditionally builds its shared libraries.
11081 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'
11083 if test aix != "$with_aix_soname"; then
11084 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'
11086 # used by -dlpreopen to get the symbols
11087 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11089 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11097 # see comment about AmigaOS4 .so support
11098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11099 archive_expsym_cmds=''
11102 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)'
11103 hardcode_libdir_flag_spec='-L$libdir'
11104 hardcode_minus_L=yes
11110 export_dynamic_flag_spec=-rdynamic
11113 cygwin* | mingw* | pw32* | cegcc*)
11114 # When not using gcc, we currently assume that we are using
11115 # Microsoft Visual C++.
11116 # hardcode_libdir_flag_spec is actually meaningless, as there is
11117 # no search path for DLLs.
11118 case $cc_basename in
11121 hardcode_libdir_flag_spec=' '
11122 allow_undefined_flag=unsupported
11123 always_export_symbols=yes
11125 # Tell ltmain to make .lib files, not .a files.
11127 # Tell ltmain to make .dll files, not .so files.
11129 # FIXME: Setting linknames here is a bad hack.
11130 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11131 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11132 cp "$export_symbols" "$output_objdir/$soname.def";
11133 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11135 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11137 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11139 # The linker will not automatically build a static lib if we build a DLL.
11140 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11141 enable_shared_with_static_runtimes=yes
11142 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11145 old_postinstall_cmds='chmod 644 $oldlib'
11146 postlink_cmds='lt_outputfile="@OUTPUT@"~
11147 lt_tool_outputfile="@TOOL_OUTPUT@"~
11148 case $lt_outputfile in
11151 lt_outputfile=$lt_outputfile.exe
11152 lt_tool_outputfile=$lt_tool_outputfile.exe
11155 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11156 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11157 $RM "$lt_outputfile.manifest";
11161 # Assume MSVC wrapper
11162 hardcode_libdir_flag_spec=' '
11163 allow_undefined_flag=unsupported
11164 # Tell ltmain to make .lib files, not .a files.
11166 # Tell ltmain to make .dll files, not .so files.
11168 # FIXME: Setting linknames here is a bad hack.
11169 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11170 # The linker will automatically build a .lib file if we build a DLL.
11171 old_archive_from_new_cmds='true'
11172 # FIXME: Should let the user specify the lib program.
11173 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11174 enable_shared_with_static_runtimes=yes
11179 darwin* | rhapsody*)
11182 archive_cmds_need_lc=no
11184 hardcode_automatic=yes
11185 hardcode_shlibpath_var=unsupported
11186 if test yes = "$lt_cv_ld_force_load"; then
11187 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\"`'
11190 whole_archive_flag_spec=''
11192 link_all_deplibs=yes
11193 allow_undefined_flag=$_lt_dar_allow_undefined
11194 case $cc_basename in
11195 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11196 *) _lt_dar_can_shared=$GCC ;;
11198 if test yes = "$_lt_dar_can_shared"; then
11199 output_verbose_link_cmd=func_echo_all
11200 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11201 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11202 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"
11203 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"
11212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213 hardcode_libdir_flag_spec='-L$libdir'
11214 hardcode_shlibpath_var=no
11217 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11218 # support. Future versions do this automatically, but an explicit c++rt0.o
11219 # does not break anything, and helps significantly (at the cost of a little
11222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11223 hardcode_libdir_flag_spec='-R$libdir'
11224 hardcode_direct=yes
11225 hardcode_shlibpath_var=no
11228 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11231 hardcode_direct=yes
11232 hardcode_minus_L=yes
11233 hardcode_shlibpath_var=no
11236 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11237 freebsd* | dragonfly*)
11238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11239 hardcode_libdir_flag_spec='-R$libdir'
11240 hardcode_direct=yes
11241 hardcode_shlibpath_var=no
11245 if test yes = "$GCC"; then
11246 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'
11248 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'
11250 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11251 hardcode_libdir_separator=:
11252 hardcode_direct=yes
11254 # hardcode_minus_L: Not really in the search PATH,
11255 # but as the default location of the library.
11256 hardcode_minus_L=yes
11257 export_dynamic_flag_spec='$wl-E'
11261 if test yes,no = "$GCC,$with_gnu_ld"; then
11262 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11264 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11266 if test no = "$with_gnu_ld"; then
11267 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11268 hardcode_libdir_separator=:
11269 hardcode_direct=yes
11270 hardcode_direct_absolute=yes
11271 export_dynamic_flag_spec='$wl-E'
11272 # hardcode_minus_L: Not really in the search PATH,
11273 # but as the default location of the library.
11274 hardcode_minus_L=yes
11279 if test yes,no = "$GCC,$with_gnu_ld"; then
11282 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11285 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11288 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11301 # Older versions of the 11.00 compiler do not understand -b yet
11302 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11304 $as_echo_n "checking if $CC understands -b... " >&6; }
11305 if ${lt_cv_prog_compiler__b+:} false; then :
11306 $as_echo_n "(cached) " >&6
11308 lt_cv_prog_compiler__b=no
11309 save_LDFLAGS=$LDFLAGS
11310 LDFLAGS="$LDFLAGS -b"
11311 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11313 # The linker can only warn and ignore the option if not recognized
11314 # So say no if there are warnings
11315 if test -s conftest.err; then
11316 # Append any errors to the config.log.
11317 cat conftest.err 1>&5
11318 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11320 if diff conftest.exp conftest.er2 >/dev/null; then
11321 lt_cv_prog_compiler__b=yes
11324 lt_cv_prog_compiler__b=yes
11328 LDFLAGS=$save_LDFLAGS
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11332 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11334 if test yes = "$lt_cv_prog_compiler__b"; then
11335 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11337 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11343 if test no = "$with_gnu_ld"; then
11344 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11345 hardcode_libdir_separator=:
11350 hardcode_shlibpath_var=no
11353 hardcode_direct=yes
11354 hardcode_direct_absolute=yes
11355 export_dynamic_flag_spec='$wl-E'
11357 # hardcode_minus_L: Not really in the search PATH,
11358 # but as the default location of the library.
11359 hardcode_minus_L=yes
11365 irix5* | irix6* | nonstopux*)
11366 if test yes = "$GCC"; then
11367 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'
11368 # Try to use the -exported_symbol ld option, if it does not
11369 # work, assume that -exports_file does not work either and
11370 # implicitly export all symbols.
11371 # This should be the same for all languages, so no per-tag cache variable.
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11373 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11374 if ${lt_cv_irix_exported_symbol+:} false; then :
11375 $as_echo_n "(cached) " >&6
11377 save_LDFLAGS=$LDFLAGS
11378 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381 int foo (void) { return 0; }
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 lt_cv_irix_exported_symbol=yes
11386 lt_cv_irix_exported_symbol=no
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LDFLAGS=$save_LDFLAGS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11393 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11394 if test yes = "$lt_cv_irix_exported_symbol"; then
11395 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'
11398 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'
11399 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'
11401 archive_cmds_need_lc='no'
11402 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11403 hardcode_libdir_separator=:
11405 link_all_deplibs=yes
11409 case $cc_basename in
11411 # Fabrice Bellard et al's Tiny C Compiler
11413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11422 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11424 hardcode_libdir_flag_spec='-R$libdir'
11425 hardcode_direct=yes
11426 hardcode_shlibpath_var=no
11430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431 hardcode_direct=yes
11432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11433 hardcode_libdir_separator=:
11434 hardcode_shlibpath_var=no
11440 openbsd* | bitrig*)
11441 if test -f /usr/libexec/ld.so; then
11442 hardcode_direct=yes
11443 hardcode_shlibpath_var=no
11444 hardcode_direct_absolute=yes
11445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11447 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11448 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11449 export_dynamic_flag_spec='$wl-E'
11451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11452 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11460 hardcode_libdir_flag_spec='-L$libdir'
11461 hardcode_minus_L=yes
11462 allow_undefined_flag=unsupported
11464 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11465 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11466 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11467 $ECHO EXPORTS >> $output_objdir/$libname.def~
11468 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11469 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11470 emximp -o $lib $output_objdir/$libname.def'
11471 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11472 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11473 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11474 $ECHO EXPORTS >> $output_objdir/$libname.def~
11475 prefix_cmds="$SED"~
11476 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11477 prefix_cmds="$prefix_cmds -e 1d";
11479 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11480 cat $export_symbols | $prefix_cmds >> $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 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11484 enable_shared_with_static_runtimes=yes
11488 if test yes = "$GCC"; then
11489 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11490 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'
11492 allow_undefined_flag=' -expect_unresolved \*'
11493 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'
11495 archive_cmds_need_lc='no'
11496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11497 hardcode_libdir_separator=:
11500 osf4* | osf5*) # as osf3* with the addition of -msym flag
11501 if test yes = "$GCC"; then
11502 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11503 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'
11504 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11506 allow_undefined_flag=' -expect_unresolved \*'
11507 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'
11508 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~
11509 $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'
11511 # Both c and cxx compiler support -rpath directly
11512 hardcode_libdir_flag_spec='-rpath $libdir'
11514 archive_cmds_need_lc='no'
11515 hardcode_libdir_separator=:
11519 no_undefined_flag=' -z defs'
11520 if test yes = "$GCC"; then
11522 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11524 $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'
11526 case `$CC -V 2>&1` in
11529 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11531 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11535 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11536 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11537 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11541 hardcode_libdir_flag_spec='-R$libdir'
11542 hardcode_shlibpath_var=no
11544 solaris2.[0-5] | solaris2.[0-5].*) ;;
11546 # The compiler driver will combine and reorder linker options,
11547 # but understands '-z linker_flag'. GCC discards it without '$wl',
11548 # but is careful enough not to reorder.
11549 # Supported since Solaris 2.6 (maybe 2.5.1?)
11550 if test yes = "$GCC"; then
11551 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11553 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11557 link_all_deplibs=yes
11561 if test sequent = "$host_vendor"; then
11562 # Use $CC to link under sequent, because it throws in some extra .o
11563 # files that make .init and .fini sections work.
11564 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11566 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11568 hardcode_libdir_flag_spec='-L$libdir'
11569 hardcode_direct=yes
11570 hardcode_minus_L=yes
11571 hardcode_shlibpath_var=no
11575 case $host_vendor in
11577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11578 hardcode_direct=yes # is this really true???
11581 ## LD is ld it makes a PLAMLIB
11582 ## CC just makes a GrossModule.
11583 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11584 reload_cmds='$CC -r -o $output$reload_objs'
11588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11589 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11592 runpath_var='LD_RUN_PATH'
11593 hardcode_shlibpath_var=no
11597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11598 hardcode_shlibpath_var=no
11599 export_dynamic_flag_spec='-Bexport'
11603 if test -d /usr/nec; then
11604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11605 hardcode_shlibpath_var=no
11606 runpath_var=LD_RUN_PATH
11607 hardcode_runpath_var=yes
11612 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11613 no_undefined_flag='$wl-z,text'
11614 archive_cmds_need_lc=no
11615 hardcode_shlibpath_var=no
11616 runpath_var='LD_RUN_PATH'
11618 if test yes = "$GCC"; then
11619 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11620 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11623 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11627 sysv5* | sco3.2v5* | sco5v6*)
11628 # Note: We CANNOT use -z defs as we might desire, because we do not
11629 # link with -lc, and that would cause any symbols used from libc to
11630 # always be unresolved, which means just about no library would
11631 # ever link correctly. If we're not using GNU ld we use -z text
11632 # though, which does catch some bad symbols but isn't as heavy-handed
11634 no_undefined_flag='$wl-z,text'
11635 allow_undefined_flag='$wl-z,nodefs'
11636 archive_cmds_need_lc=no
11637 hardcode_shlibpath_var=no
11638 hardcode_libdir_flag_spec='$wl-R,$libdir'
11639 hardcode_libdir_separator=':'
11640 link_all_deplibs=yes
11641 export_dynamic_flag_spec='$wl-Bexport'
11642 runpath_var='LD_RUN_PATH'
11644 if test yes = "$GCC"; then
11645 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11646 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11649 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11655 hardcode_libdir_flag_spec='-L$libdir'
11656 hardcode_shlibpath_var=no
11664 if test sni = "$host_vendor"; then
11666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11667 export_dynamic_flag_spec='$wl-Blargedynsym'
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11674 $as_echo "$ld_shlibs" >&6; }
11675 test no = "$ld_shlibs" && can_build_shared=no
11677 with_gnu_ld=$with_gnu_ld
11694 # Do we need to explicitly link libc?
11696 case "x$archive_cmds_need_lc" in
11698 # Assume -lc should be added
11699 archive_cmds_need_lc=yes
11701 if test yes,yes = "$GCC,$enable_shared"; then
11702 case $archive_cmds in
11704 # FIXME: we may have to deal with multi-command sequences.
11707 # Test whether the compiler implicitly links with -lc since on some
11708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11709 # to ld, don't add -lc before -lgcc.
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11711 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11712 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11713 $as_echo_n "(cached) " >&6
11716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11719 (eval $ac_compile) 2>&5
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; } 2>conftest.err; then
11725 libobjs=conftest.$ac_objext
11727 wl=$lt_prog_compiler_wl
11728 pic_flag=$lt_prog_compiler_pic
11734 lt_save_allow_undefined_flag=$allow_undefined_flag
11735 allow_undefined_flag=
11736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11737 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740 test $ac_status = 0; }
11742 lt_cv_archive_cmds_need_lc=no
11744 lt_cv_archive_cmds_need_lc=yes
11746 allow_undefined_flag=$lt_save_allow_undefined_flag
11748 cat conftest.err 1>&5
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11754 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11755 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11916 if test yes = "$GCC"; then
11918 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11919 *) lt_awk_arg='/^libraries:/' ;;
11922 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11923 *) lt_sed_strip_eq='s|=/|/|g' ;;
11925 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11926 case $lt_search_path_spec in
11928 # if the path contains ";" then we assume it to be the separator
11929 # otherwise default to the standard path separator (i.e. ":") - it is
11930 # assumed that no part of a normal pathname contains ";" but that should
11931 # okay in the real world where ";" in dirpaths is itself problematic.
11932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11938 # Ok, now we have the path, separated by spaces, we can step through it
11939 # and add multilib dir if necessary...
11940 lt_tmp_lt_search_path_spec=
11941 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11942 # ...but if some path component already ends with the multilib dir we assume
11943 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11944 case "$lt_multi_os_dir; $lt_search_path_spec " in
11945 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11949 for lt_sys_path in $lt_search_path_spec; do
11950 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11952 elif test -n "$lt_multi_os_dir"; then
11953 test -d "$lt_sys_path" && \
11954 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11957 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11958 BEGIN {RS = " "; FS = "/|\n";} {
11961 for (lt_i = NF; lt_i > 0; lt_i--) {
11962 if ($lt_i != "" && $lt_i != ".") {
11963 if ($lt_i == "..") {
11966 if (lt_count == 0) {
11967 lt_foo = "/" $lt_i lt_foo;
11974 if (lt_foo != "") { lt_freq[lt_foo]++; }
11975 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11977 # AWK program above erroneously prepends '/' to C:/dos/paths
11980 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11981 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11983 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11985 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11987 library_names_spec=
11988 libname_spec='lib$name'
11992 postuninstall_cmds=
11996 shlibpath_overrides_runpath=unknown
11998 dynamic_linker="$host_os ld.so"
11999 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12000 need_lib_prefix=unknown
12001 hardcode_into_libs=no
12003 # when you set need_version to no, make sure it does not cause -set_version
12004 # flags to be left without arguments
12005 need_version=unknown
12011 version_type=linux # correct to gnu/linux during the next big refactor
12012 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12013 shlibpath_var=LIBPATH
12015 # AIX 3 has no versioning support, so we append a major version to the name.
12016 soname_spec='$libname$release$shared_ext$major'
12020 version_type=linux # correct to gnu/linux during the next big refactor
12023 hardcode_into_libs=yes
12024 if test ia64 = "$host_cpu"; then
12025 # AIX 5 supports IA64
12026 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12027 shlibpath_var=LD_LIBRARY_PATH
12029 # With GCC up to 2.95.x, collect2 would create an import file
12030 # for dependence libraries. The import file would start with
12031 # the line '#! .'. This would cause the generated library to
12032 # depend on '.', always an invalid library. This was fixed in
12033 # development snapshots of GCC prior to 3.0.
12035 aix4 | aix4.[01] | aix4.[01].*)
12036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12038 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12041 can_build_shared=no
12045 # Using Import Files as archive members, it is possible to support
12046 # filename-based versioning of shared library archives on AIX. While
12047 # this would work for both with and without runtime linking, it will
12048 # prevent static linking of such archives. So we do filename-based
12049 # shared library versioning with .so extension only, which is used
12050 # when both runtime linking and shared linking is enabled.
12051 # Unfortunately, runtime linking may impact performance, so we do
12052 # not want this to be the default eventually. Also, we use the
12053 # versioned .so libs for executables only if there is the -brtl
12054 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12055 # To allow for filename-based versioning support, we need to create
12056 # libNAME.so.V as an archive file, containing:
12057 # *) an Import File, referring to the versioned filename of the
12058 # archive as well as the shared archive member, telling the
12059 # bitwidth (32 or 64) of that shared object, and providing the
12060 # list of exported symbols of that shared object, eventually
12061 # decorated with the 'weak' keyword
12062 # *) the shared object with the F_LOADONLY flag set, to really avoid
12063 # it being seen by the linker.
12064 # At run time we better use the real file rather than another symlink,
12065 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12067 case $with_aix_soname,$aix_use_runtimelinking in
12068 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12069 # soname into executable. Probably we can add versioning support to
12070 # collect2, so additional links can be useful in future.
12071 aix,yes) # traditional libtool
12072 dynamic_linker='AIX unversionable lib.so'
12073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12074 # instead of lib<name>.a to let people know that these are not
12075 # typical AIX shared libraries.
12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12078 aix,no) # traditional AIX only
12079 dynamic_linker='AIX lib.a(lib.so.V)'
12080 # We preserve .a as extension for shared libraries through AIX4.2
12081 # and later when we are not doing run time linking.
12082 library_names_spec='$libname$release.a $libname.a'
12083 soname_spec='$libname$release$shared_ext$major'
12085 svr4,*) # full svr4 only
12086 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12087 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12088 # We do not specify a path in Import Files, so LIBPATH fires.
12089 shlibpath_overrides_runpath=yes
12091 *,yes) # both, prefer svr4
12092 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12093 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12094 # unpreferred sharedlib libNAME.a needs extra handling
12095 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"'
12096 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"'
12097 # We do not specify a path in Import Files, so LIBPATH fires.
12098 shlibpath_overrides_runpath=yes
12100 *,no) # both, prefer aix
12101 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12102 library_names_spec='$libname$release.a $libname.a'
12103 soname_spec='$libname$release$shared_ext$major'
12104 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12105 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)'
12106 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"'
12109 shlibpath_var=LIBPATH
12116 # Since July 2007 AmigaOS4 officially supports .so libraries.
12117 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12121 library_names_spec='$libname.ixlibrary $libname.a'
12122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12123 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'
12129 library_names_spec='$libname$shared_ext'
12130 dynamic_linker="$host_os ld.so"
12131 shlibpath_var=LIBRARY_PATH
12135 version_type=linux # correct to gnu/linux during the next big refactor
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 soname_spec='$libname$release$shared_ext$major'
12139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12143 # the default ld.so.conf also contains /usr/contrib/lib and
12144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12145 # libtool to hard-code these into programs
12148 cygwin* | mingw* | pw32* | cegcc*)
12149 version_type=windows
12154 case $GCC,$cc_basename in
12157 library_names_spec='$libname.dll.a'
12158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12159 postinstall_cmds='base_file=`basename \$file`~
12160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12161 dldir=$destdir/`dirname \$dlpath`~
12162 test -d \$dldir || mkdir -p \$dldir~
12163 $install_prog $dir/$dlname \$dldir/$dlname~
12164 chmod a+x \$dldir/$dlname~
12165 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12166 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12169 dlpath=$dir/\$dldll~
12171 shlibpath_overrides_runpath=yes
12175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12176 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12178 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12181 # MinGW DLLs use traditional 'lib' prefix
12182 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12185 # pw32 DLLs use 'pw' prefix rather than 'lib'
12186 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12189 dynamic_linker='Win32 ld.exe'
12194 libname_spec='$name'
12195 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12196 library_names_spec='$libname.dll.lib'
12200 sys_lib_search_path_spec=
12203 for lt_path in $LIB
12206 # Let DOS variable expansion print the short 8.3 style file name.
12207 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12208 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12211 # Convert to MSYS style.
12212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12215 # Convert to unix form, then to dos form, then back to unix form
12216 # but this time dos style (no spaces!) so that the unix form looks
12217 # like /cygdrive/c/PROGRA~1:/cygdr...
12218 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12219 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12220 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12223 sys_lib_search_path_spec=$LIB
12224 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12225 # It is most probably a Windows format PATH.
12226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12230 # FIXME: find the short name or the path components, as spaces are
12231 # common. (e.g. "Program Files" -> "PROGRA~1")
12235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12236 postinstall_cmds='base_file=`basename \$file`~
12237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12238 dldir=$destdir/`dirname \$dlpath`~
12239 test -d \$dldir || mkdir -p \$dldir~
12240 $install_prog $dir/$dlname \$dldir/$dlname'
12241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12242 dlpath=$dir/\$dldll~
12244 shlibpath_overrides_runpath=yes
12245 dynamic_linker='Win32 link.exe'
12249 # Assume MSVC wrapper
12250 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12251 dynamic_linker='Win32 ld.exe'
12254 # FIXME: first we should search . and the directory the executable is in
12258 darwin* | rhapsody*)
12259 dynamic_linker="$host_os dyld"
12260 version_type=darwin
12263 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12264 soname_spec='$libname$release$major$shared_ext'
12265 shlibpath_overrides_runpath=yes
12266 shlibpath_var=DYLD_LIBRARY_PATH
12267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12274 version_type=linux # correct to gnu/linux during the next big refactor
12277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12278 soname_spec='$libname$release$shared_ext$major'
12279 shlibpath_var=LD_LIBRARY_PATH
12282 freebsd* | dragonfly*)
12283 # DragonFly does not have aout. When/if they implement a new
12284 # versioning mechanism, adjust this.
12285 if test -x /usr/bin/objformat; then
12286 objformat=`/usr/bin/objformat`
12289 freebsd[23].*) objformat=aout ;;
12290 *) objformat=elf ;;
12293 version_type=freebsd-$objformat
12294 case $version_type in
12296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12297 soname_spec='$libname$release$shared_ext$major'
12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12306 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12311 freebsd3.[01]* | freebsdelf3.[01]*)
12312 shlibpath_overrides_runpath=yes
12313 hardcode_into_libs=yes
12315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12317 shlibpath_overrides_runpath=no
12318 hardcode_into_libs=yes
12320 *) # from 4.6 on, and DragonFly
12321 shlibpath_overrides_runpath=yes
12322 hardcode_into_libs=yes
12328 version_type=linux # correct to gnu/linux during the next big refactor
12331 dynamic_linker="$host_os runtime_loader"
12332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12333 soname_spec='$libname$release$shared_ext$major'
12334 shlibpath_var=LIBRARY_PATH
12335 shlibpath_overrides_runpath=no
12336 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12337 hardcode_into_libs=yes
12340 hpux9* | hpux10* | hpux11*)
12341 # Give a soname corresponding to the major version so that dld.sl refuses to
12342 # link against other versions.
12349 hardcode_into_libs=yes
12350 dynamic_linker="$host_os dld.so"
12351 shlibpath_var=LD_LIBRARY_PATH
12352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12354 soname_spec='$libname$release$shared_ext$major'
12355 if test 32 = "$HPUX_IA64_MODE"; then
12356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12357 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12360 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12365 hardcode_into_libs=yes
12366 dynamic_linker="$host_os dld.sl"
12367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12370 soname_spec='$libname$release$shared_ext$major'
12371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12376 dynamic_linker="$host_os dld.sl"
12377 shlibpath_var=SHLIB_PATH
12378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12380 soname_spec='$libname$release$shared_ext$major'
12383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12384 postinstall_cmds='chmod 555 $lib'
12385 # or fails outright, so override atomically:
12386 install_override_mode=555
12390 version_type=linux # correct to gnu/linux during the next big refactor
12393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12394 soname_spec='$libname$release$shared_ext$major'
12395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=no
12398 hardcode_into_libs=yes
12401 irix5* | irix6* | nonstopux*)
12403 nonstopux*) version_type=nonstopux ;;
12405 if test yes = "$lt_cv_prog_gnu_ld"; then
12406 version_type=linux # correct to gnu/linux during the next big refactor
12413 soname_spec='$libname$release$shared_ext$major'
12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12416 irix5* | nonstopux*)
12417 libsuff= shlibsuff=
12420 case $LD in # libtool.m4 will add one of these switches to LD
12421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12422 libsuff= shlibsuff= libmagic=32-bit;;
12423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12424 libsuff=32 shlibsuff=N32 libmagic=N32;;
12425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12427 *) libsuff= shlibsuff= libmagic=never-match;;
12431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12432 shlibpath_overrides_runpath=no
12433 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12434 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12435 hardcode_into_libs=yes
12438 # No shared lib support for Linux oldld, aout, or coff.
12439 linux*oldld* | linux*aout* | linux*coff*)
12444 version_type=none # Android doesn't support versioned libraries.
12447 library_names_spec='$libname$release$shared_ext'
12448 soname_spec='$libname$release$shared_ext'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 shlibpath_overrides_runpath=yes
12453 # This implies no fast_install, which is unacceptable.
12454 # Some rework will be needed to allow for fast_install
12455 # before this can be enabled.
12456 hardcode_into_libs=yes
12458 dynamic_linker='Android linker'
12459 # Don't embed -rpath directories since the linker doesn't support them.
12460 hardcode_libdir_flag_spec='-L$libdir'
12463 # This must be glibc/ELF.
12464 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12465 version_type=linux # correct to gnu/linux during the next big refactor
12468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12469 soname_spec='$libname$release$shared_ext$major'
12470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12471 shlibpath_var=LD_LIBRARY_PATH
12472 shlibpath_overrides_runpath=no
12474 # Some binutils ld are patched to set DT_RUNPATH
12475 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12476 $as_echo_n "(cached) " >&6
12478 lt_cv_shlibpath_overrides_runpath=no
12479 save_LDFLAGS=$LDFLAGS
12480 save_libdir=$libdir
12481 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12482 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12494 if ac_fn_c_try_link "$LINENO"; then :
12495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12496 lt_cv_shlibpath_overrides_runpath=yes
12499 rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LDFLAGS=$save_LDFLAGS
12502 libdir=$save_libdir
12506 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12508 # This implies no fast_install, which is unacceptable.
12509 # Some rework will be needed to allow for fast_install
12510 # before this can be enabled.
12511 hardcode_into_libs=yes
12513 # Ideally, we could use ldconfig to report *all* directores which are
12514 # searched for libraries, however this is still not possible. Aside from not
12515 # being certain /sbin/ldconfig is available, command
12516 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12517 # even though it is searched at run-time. Try to do the best guess by
12518 # appending ld.so.conf contents (and includes) to the search path.
12519 if test -f /etc/ld.so.conf; then
12520 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' ' '`
12521 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12524 # We used to test for /lib/ld.so.1 and disable shared libraries on
12525 # powerpc, because MkLinux only supported shared libraries with the
12526 # GNU dynamic linker. Since this was broken with cross compilers,
12527 # most powerpc-linux boxes support dynamic linking these days and
12528 # people can always --disable-shared, the test was removed, and we
12529 # assume the GNU/Linux dynamic linker is in use.
12530 dynamic_linker='GNU/Linux ld.so'
12537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12540 dynamic_linker='NetBSD (a.out) ld.so'
12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543 soname_spec='$libname$release$shared_ext$major'
12544 dynamic_linker='NetBSD ld.elf_so'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 shlibpath_overrides_runpath=yes
12548 hardcode_into_libs=yes
12552 version_type=linux # correct to gnu/linux during the next big refactor
12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=yes
12562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12563 soname_spec='$libname$release$shared_ext$major'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 shlibpath_overrides_runpath=no
12566 hardcode_into_libs=yes
12567 dynamic_linker='ldqnx.so'
12570 openbsd* | bitrig*)
12572 sys_lib_dlsearch_path_spec=/usr/lib
12574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 shlibpath_overrides_runpath=yes
12586 libname_spec='$name'
12587 version_type=windows
12591 # OS/2 can only load a DLL with a base name of 8 characters or less.
12592 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12593 v=$($ECHO $release$versuffix | tr -d .-);
12594 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12595 $ECHO $n$v`$shared_ext'
12596 library_names_spec='${libname}_dll.$libext'
12597 dynamic_linker='OS/2 ld.exe'
12598 shlibpath_var=BEGINLIBPATH
12599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12601 postinstall_cmds='base_file=`basename \$file`~
12602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12603 dldir=$destdir/`dirname \$dlpath`~
12604 test -d \$dldir || mkdir -p \$dldir~
12605 $install_prog $dir/$dlname \$dldir/$dlname~
12606 chmod a+x \$dldir/$dlname~
12607 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12608 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12611 dlpath=$dir/\$dldll~
12615 osf3* | osf4* | osf5*)
12619 soname_spec='$libname$release$shared_ext$major'
12620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12621 shlibpath_var=LD_LIBRARY_PATH
12622 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12631 version_type=linux # correct to gnu/linux during the next big refactor
12634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12635 soname_spec='$libname$release$shared_ext$major'
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=yes
12638 hardcode_into_libs=yes
12639 # ldd complains unless libraries are executable
12640 postinstall_cmds='chmod +x $lib'
12645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 shlibpath_overrides_runpath=yes
12649 if test yes = "$with_gnu_ld"; then
12656 version_type=linux # correct to gnu/linux during the next big refactor
12657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12658 soname_spec='$libname$release$shared_ext$major'
12659 shlibpath_var=LD_LIBRARY_PATH
12660 case $host_vendor in
12662 shlibpath_overrides_runpath=no
12664 runpath_var=LD_RUN_PATH
12672 shlibpath_overrides_runpath=no
12673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12679 if test -d /usr/nec; then
12680 version_type=linux # correct to gnu/linux during the next big refactor
12681 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12682 soname_spec='$libname$shared_ext.$major'
12683 shlibpath_var=LD_LIBRARY_PATH
12687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12692 soname_spec='$libname$release$shared_ext$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 shlibpath_overrides_runpath=yes
12695 hardcode_into_libs=yes
12696 if test yes = "$with_gnu_ld"; then
12697 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12702 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12706 sys_lib_dlsearch_path_spec='/usr/lib'
12710 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12711 version_type=linux # correct to gnu/linux during the next big refactor
12714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12715 shlibpath_var=LD_LIBRARY_PATH
12716 shlibpath_overrides_runpath=no
12717 hardcode_into_libs=yes
12721 version_type=linux # correct to gnu/linux during the next big refactor
12722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12723 soname_spec='$libname$release$shared_ext$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12732 $as_echo "$dynamic_linker" >&6; }
12733 test no = "$dynamic_linker" && can_build_shared=no
12735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12736 if test yes = "$GCC"; then
12737 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12740 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12741 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12744 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12745 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12748 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12749 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12751 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12752 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12754 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12755 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12854 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12856 if test -n "$hardcode_libdir_flag_spec" ||
12857 test -n "$runpath_var" ||
12858 test yes = "$hardcode_automatic"; then
12860 # We can hardcode non-existent directories.
12861 if test no != "$hardcode_direct" &&
12862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12863 # have to relink, otherwise we might link with an installed library
12864 # when we should be linking with a yet-to-be-installed one
12865 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12866 test no != "$hardcode_minus_L"; then
12867 # Linking always hardcodes the temporary library directory.
12868 hardcode_action=relink
12870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12871 hardcode_action=immediate
12874 # We cannot hardcode anything, or else we can only hardcode existing
12876 hardcode_action=unsupported
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12879 $as_echo "$hardcode_action" >&6; }
12881 if test relink = "$hardcode_action" ||
12882 test yes = "$inherit_rpath"; then
12883 # Fast installation is not supported
12884 enable_fast_install=no
12885 elif test yes = "$shlibpath_overrides_runpath" ||
12886 test no = "$enable_shared"; then
12887 # Fast installation is not necessary
12888 enable_fast_install=needless
12896 if test yes != "$enable_dlopen"; then
12897 enable_dlopen=unknown
12898 enable_dlopen_self=unknown
12899 enable_dlopen_self_static=unknown
12906 lt_cv_dlopen=load_add_on
12908 lt_cv_dlopen_self=yes
12911 mingw* | pw32* | cegcc*)
12912 lt_cv_dlopen=LoadLibrary
12917 lt_cv_dlopen=dlopen
12922 # if libdl is installed we need to link against it
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12925 if ${ac_cv_lib_dl_dlopen+:} false; then :
12926 $as_echo_n "(cached) " >&6
12928 ac_check_lib_save_LIBS=$LIBS
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12933 /* Override any GCC internal prototype to avoid an error.
12934 Use char because int might match the return type of a GCC
12935 builtin and then its argument prototype would still apply. */
12948 if ac_fn_c_try_link "$LINENO"; then :
12949 ac_cv_lib_dl_dlopen=yes
12951 ac_cv_lib_dl_dlopen=no
12953 rm -f core conftest.err conftest.$ac_objext \
12954 conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12959 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12960 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12965 lt_cv_dlopen_self=yes
12972 # Don't try to run any link tests for TPF. We know it's impossible
12973 # because TPF is a cross-compiler, and we know how we open DSOs.
12974 lt_cv_dlopen=dlopen
12976 lt_cv_dlopen_self=no
12980 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12981 if test "x$ac_cv_func_shl_load" = xyes; then :
12982 lt_cv_dlopen=shl_load
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12985 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12986 if ${ac_cv_lib_dld_shl_load+:} false; then :
12987 $as_echo_n "(cached) " >&6
12989 ac_check_lib_save_LIBS=$LIBS
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
13004 return shl_load ();
13009 if ac_fn_c_try_link "$LINENO"; then :
13010 ac_cv_lib_dld_shl_load=yes
13012 ac_cv_lib_dld_shl_load=no
13014 rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13019 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13020 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13021 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13023 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13024 if test "x$ac_cv_func_dlopen" = xyes; then :
13025 lt_cv_dlopen=dlopen
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13028 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13029 if ${ac_cv_lib_dl_dlopen+:} false; then :
13030 $as_echo_n "(cached) " >&6
13032 ac_check_lib_save_LIBS=$LIBS
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13052 if ac_fn_c_try_link "$LINENO"; then :
13053 ac_cv_lib_dl_dlopen=yes
13055 ac_cv_lib_dl_dlopen=no
13057 rm -f core conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext conftest.$ac_ext
13059 LIBS=$ac_check_lib_save_LIBS
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13062 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13063 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13064 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13067 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13068 if ${ac_cv_lib_svld_dlopen+:} false; then :
13069 $as_echo_n "(cached) " >&6
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lsvld $LIBS"
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13091 if ac_fn_c_try_link "$LINENO"; then :
13092 ac_cv_lib_svld_dlopen=yes
13094 ac_cv_lib_svld_dlopen=no
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13101 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13102 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13103 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13106 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13107 if ${ac_cv_lib_dld_dld_link+:} false; then :
13108 $as_echo_n "(cached) " >&6
13110 ac_check_lib_save_LIBS=$LIBS
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13125 return dld_link ();
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_lib_dld_dld_link=yes
13133 ac_cv_lib_dld_dld_link=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13140 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13141 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13142 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13163 if test no = "$lt_cv_dlopen"; then
13169 case $lt_cv_dlopen in
13171 save_CPPFLAGS=$CPPFLAGS
13172 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13174 save_LDFLAGS=$LDFLAGS
13175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13178 LIBS="$lt_cv_dlopen_libs $LIBS"
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13181 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13182 if ${lt_cv_dlopen_self+:} false; then :
13183 $as_echo_n "(cached) " >&6
13185 if test yes = "$cross_compiling"; then :
13186 lt_cv_dlopen_self=cross
13188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13189 lt_status=$lt_dlunknown
13190 cat > conftest.$ac_ext <<_LT_EOF
13191 #line $LINENO "configure"
13192 #include "confdefs.h"
13201 # define LT_DLGLOBAL RTLD_GLOBAL
13204 # define LT_DLGLOBAL DL_GLOBAL
13206 # define LT_DLGLOBAL 0
13210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13211 find out it does not work in some platform. */
13212 #ifndef LT_DLLAZY_OR_NOW
13214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13217 # define LT_DLLAZY_OR_NOW DL_LAZY
13220 # define LT_DLLAZY_OR_NOW RTLD_NOW
13223 # define LT_DLLAZY_OR_NOW DL_NOW
13225 # define LT_DLLAZY_OR_NOW 0
13232 /* When -fvisibility=hidden is used, assume the code has been annotated
13233 correspondingly for the symbols needed. */
13234 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13235 int fnord () __attribute__((visibility("default")));
13238 int fnord () { return 42; }
13241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13242 int status = $lt_dlunknown;
13246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13250 else puts (dlerror ());
13252 /* dlclose (self); */
13260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13261 (eval $ac_link) 2>&5
13263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13265 (./conftest; exit; ) >&5 2>/dev/null
13267 case x$lt_status in
13268 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13269 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13270 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13273 # compilation failed
13274 lt_cv_dlopen_self=no
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13282 $as_echo "$lt_cv_dlopen_self" >&6; }
13284 if test yes = "$lt_cv_dlopen_self"; then
13285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13287 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13288 if ${lt_cv_dlopen_self_static+:} false; then :
13289 $as_echo_n "(cached) " >&6
13291 if test yes = "$cross_compiling"; then :
13292 lt_cv_dlopen_self_static=cross
13294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13295 lt_status=$lt_dlunknown
13296 cat > conftest.$ac_ext <<_LT_EOF
13297 #line $LINENO "configure"
13298 #include "confdefs.h"
13307 # define LT_DLGLOBAL RTLD_GLOBAL
13310 # define LT_DLGLOBAL DL_GLOBAL
13312 # define LT_DLGLOBAL 0
13316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13317 find out it does not work in some platform. */
13318 #ifndef LT_DLLAZY_OR_NOW
13320 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13323 # define LT_DLLAZY_OR_NOW DL_LAZY
13326 # define LT_DLLAZY_OR_NOW RTLD_NOW
13329 # define LT_DLLAZY_OR_NOW DL_NOW
13331 # define LT_DLLAZY_OR_NOW 0
13338 /* When -fvisibility=hidden is used, assume the code has been annotated
13339 correspondingly for the symbols needed. */
13340 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13341 int fnord () __attribute__((visibility("default")));
13344 int fnord () { return 42; }
13347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13348 int status = $lt_dlunknown;
13352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13355 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13356 else puts (dlerror ());
13358 /* dlclose (self); */
13366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13367 (eval $ac_link) 2>&5
13369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13371 (./conftest; exit; ) >&5 2>/dev/null
13373 case x$lt_status in
13374 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13375 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13376 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13379 # compilation failed
13380 lt_cv_dlopen_self_static=no
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13391 CPPFLAGS=$save_CPPFLAGS
13392 LDFLAGS=$save_LDFLAGS
13397 case $lt_cv_dlopen_self in
13398 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13399 *) enable_dlopen_self=unknown ;;
13402 case $lt_cv_dlopen_self_static in
13403 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13404 *) enable_dlopen_self_static=unknown ;;
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13428 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13429 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13430 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13432 $as_echo "yes" >&6; }
13434 # FIXME - insert some real tests, host_os isn't really good enough
13437 if test -n "$STRIP"; then
13438 striplib="$STRIP -x"
13439 old_striplib="$STRIP -S"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13441 $as_echo "yes" >&6; }
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 $as_echo "no" >&6; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13465 # Report what library types will actually be built
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13469 $as_echo "$can_build_shared" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13472 $as_echo_n "checking whether to build shared libraries... " >&6; }
13473 test no = "$can_build_shared" && enable_shared=no
13475 # On AIX, shared libraries and static libraries use the same namespace, and
13476 # are all built from PIC.
13479 test yes = "$enable_shared" && enable_static=no
13480 if test -n "$RANLIB"; then
13481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13482 postinstall_cmds='$RANLIB $lib'
13487 if test ia64 != "$host_cpu"; then
13488 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13489 yes,aix,yes) ;; # shared object as lib.so file only
13490 yes,svr4,*) ;; # shared object as lib.so archive member only
13491 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13497 $as_echo "$enable_shared" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13500 $as_echo_n "checking whether to build static libraries... " >&6; }
13501 # Make sure either enable_shared or enable_static is yes.
13502 test yes = "$enable_shared" || enable_static=yes
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13504 $as_echo "$enable_static" >&6; }
13511 ac_cpp='$CPP $CPPFLAGS'
13512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13518 if test -n "$CXX" && ( test no != "$CXX" &&
13519 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13520 (test g++ != "$CXX"))); then
13522 ac_cpp='$CXXCPP $CPPFLAGS'
13523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13527 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13528 if test -z "$CXXCPP"; then
13529 if ${ac_cv_prog_CXXCPP+:} false; then :
13530 $as_echo_n "(cached) " >&6
13532 # Double quotes because CXXCPP needs to be expanded
13533 for CXXCPP in "$CXX -E" "/lib/cpp"
13535 ac_preproc_ok=false
13536 for ac_cxx_preproc_warn_flag in '' yes
13538 # Use a header file that comes with gcc, so configuring glibc
13539 # with a fresh cross-compiler works.
13540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13541 # <limits.h> exists even on freestanding compilers.
13542 # On the NeXT, cc -E runs the code through the compiler's parser,
13543 # not just through cpp. "Syntax error" is here to catch this case.
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13547 # include <limits.h>
13549 # include <assert.h>
13553 if ac_fn_cxx_try_cpp "$LINENO"; then :
13556 # Broken: fails on valid input.
13559 rm -f conftest.err conftest.i conftest.$ac_ext
13561 # OK, works on sane cases. Now check whether nonexistent headers
13562 # can be detected and how.
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 #include <ac_nonexistent.h>
13567 if ac_fn_cxx_try_cpp "$LINENO"; then :
13568 # Broken: success on invalid input.
13571 # Passes both tests.
13575 rm -f conftest.err conftest.i conftest.$ac_ext
13578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13579 rm -f conftest.i conftest.err conftest.$ac_ext
13580 if $ac_preproc_ok; then :
13585 ac_cv_prog_CXXCPP=$CXXCPP
13588 CXXCPP=$ac_cv_prog_CXXCPP
13590 ac_cv_prog_CXXCPP=$CXXCPP
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13593 $as_echo "$CXXCPP" >&6; }
13594 ac_preproc_ok=false
13595 for ac_cxx_preproc_warn_flag in '' yes
13597 # Use a header file that comes with gcc, so configuring glibc
13598 # with a fresh cross-compiler works.
13599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13600 # <limits.h> exists even on freestanding compilers.
13601 # On the NeXT, cc -E runs the code through the compiler's parser,
13602 # not just through cpp. "Syntax error" is here to catch this case.
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13606 # include <limits.h>
13608 # include <assert.h>
13612 if ac_fn_cxx_try_cpp "$LINENO"; then :
13615 # Broken: fails on valid input.
13618 rm -f conftest.err conftest.i conftest.$ac_ext
13620 # OK, works on sane cases. Now check whether nonexistent headers
13621 # can be detected and how.
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624 #include <ac_nonexistent.h>
13626 if ac_fn_cxx_try_cpp "$LINENO"; then :
13627 # Broken: success on invalid input.
13630 # Passes both tests.
13634 rm -f conftest.err conftest.i conftest.$ac_ext
13637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13638 rm -f conftest.i conftest.err conftest.$ac_ext
13639 if $ac_preproc_ok; then :
13642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13644 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13645 See \`config.log' for more details" "$LINENO" 5; }
13649 ac_cpp='$CPP $CPPFLAGS'
13650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13655 _lt_caught_CXX_error=yes
13659 ac_cpp='$CXXCPP $CPPFLAGS'
13660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13664 archive_cmds_need_lc_CXX=no
13665 allow_undefined_flag_CXX=
13666 always_export_symbols_CXX=no
13667 archive_expsym_cmds_CXX=
13668 compiler_needs_object_CXX=no
13669 export_dynamic_flag_spec_CXX=
13670 hardcode_direct_CXX=no
13671 hardcode_direct_absolute_CXX=no
13672 hardcode_libdir_flag_spec_CXX=
13673 hardcode_libdir_separator_CXX=
13674 hardcode_minus_L_CXX=no
13675 hardcode_shlibpath_var_CXX=unsupported
13676 hardcode_automatic_CXX=no
13677 inherit_rpath_CXX=no
13679 module_expsym_cmds_CXX=
13680 link_all_deplibs_CXX=unknown
13681 old_archive_cmds_CXX=$old_archive_cmds
13682 reload_flag_CXX=$reload_flag
13683 reload_cmds_CXX=$reload_cmds
13684 no_undefined_flag_CXX=
13685 whole_archive_flag_spec_CXX=
13686 enable_shared_with_static_runtimes_CXX=no
13688 # Source file extension for C++ test sources.
13691 # Object file extension for compiled C++ test sources.
13695 # No sense in running all these tests if we already determined that
13696 # the CXX compiler isn't working. Some variables (like enable_shared)
13697 # are currently assumed to apply to all compilers on this platform,
13698 # and will be corrupted by setting them based on a non-working compiler.
13699 if test yes != "$_lt_caught_CXX_error"; then
13700 # Code to be used in simple compile tests
13701 lt_simple_compile_test_code="int some_variable = 0;"
13703 # Code to be used in simple link tests
13704 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13706 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13713 # If no C compiler was specified, use CC.
13716 # If no C compiler flags were specified, use CFLAGS.
13717 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13719 # Allow CC to be a program name with arguments.
13723 # save warnings/boilerplate of simple test code
13724 ac_outfile=conftest.$ac_objext
13725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13727 _lt_compiler_boilerplate=`cat conftest.err`
13730 ac_outfile=conftest.$ac_objext
13731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13733 _lt_linker_boilerplate=`cat conftest.err`
13737 # Allow CC to be a program name with arguments.
13739 lt_save_CFLAGS=$CFLAGS
13743 lt_save_with_gnu_ld=$with_gnu_ld
13744 lt_save_path_LD=$lt_cv_path_LD
13745 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13746 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13748 $as_unset lt_cv_prog_gnu_ld
13750 if test -n "${lt_cv_path_LDCXX+set}"; then
13751 lt_cv_path_LD=$lt_cv_path_LDCXX
13753 $as_unset lt_cv_path_LD
13755 test -z "${LDCXX+set}" || LD=$LDCXX
13760 func_cc_basename $compiler
13761 cc_basename=$func_cc_basename_result
13764 if test -n "$compiler"; then
13765 # We don't want -fno-exception when compiling C++ code, so set the
13766 # no_builtin_flag separately
13767 if test yes = "$GXX"; then
13768 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13770 lt_prog_compiler_no_builtin_flag_CXX=
13773 if test yes = "$GXX"; then
13774 # Set up default GNU C++ configuration
13778 # Check whether --with-gnu-ld was given.
13779 if test "${with_gnu_ld+set}" = set; then :
13780 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13786 if test yes = "$GCC"; then
13787 # Check if gcc -print-prog-name=ld gives a path.
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13789 $as_echo_n "checking for ld used by $CC... " >&6; }
13792 # gcc leaves a trailing carriage return, which upsets mingw
13793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13798 # Accept absolute paths.
13800 re_direlt='/[^/][^/]*/\.\./'
13801 # Canonicalize the pathname of ld
13802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13806 test -z "$LD" && LD=$ac_prog
13809 # If it fails, then pretend we aren't using GCC.
13813 # If it is relative, then search for the first ld in PATH.
13814 with_gnu_ld=unknown
13817 elif test yes = "$with_gnu_ld"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13819 $as_echo_n "checking for GNU ld... " >&6; }
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13822 $as_echo_n "checking for non-GNU ld... " >&6; }
13824 if ${lt_cv_path_LD+:} false; then :
13825 $as_echo_n "(cached) " >&6
13827 if test -z "$LD"; then
13828 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13829 for ac_dir in $PATH; do
13831 test -z "$ac_dir" && ac_dir=.
13832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13833 lt_cv_path_LD=$ac_dir/$ac_prog
13834 # Check to see if the program is GNU ld. I'd rather use --version,
13835 # but apparently some variants of GNU ld only accept -v.
13836 # Break only if it was the GNU/non-GNU ld that we prefer.
13837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13838 *GNU* | *'with BFD'*)
13839 test no != "$with_gnu_ld" && break
13842 test yes != "$with_gnu_ld" && break
13849 lt_cv_path_LD=$LD # Let the user override the test with a path.
13854 if test -n "$LD"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13856 $as_echo "$LD" >&6; }
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13864 if ${lt_cv_prog_gnu_ld+:} false; then :
13865 $as_echo_n "(cached) " >&6
13867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13868 case `$LD -v 2>&1 </dev/null` in
13869 *GNU* | *'with BFD'*)
13870 lt_cv_prog_gnu_ld=yes
13873 lt_cv_prog_gnu_ld=no
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13879 with_gnu_ld=$lt_cv_prog_gnu_ld
13887 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13888 # archiving commands below assume that GNU ld is being used.
13889 if test yes = "$with_gnu_ld"; then
13890 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13891 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'
13893 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13894 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13896 # If archive_cmds runs LD, not CC, wlarc should be empty
13897 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13898 # investigate it a little bit more. (MM)
13901 # ancient GNU ld didn't support --whole-archive et. al.
13902 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13903 $GREP 'no-whole-archive' > /dev/null; then
13904 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13906 whole_archive_flag_spec_CXX=
13912 # A generic and very simple default shared library creation
13913 # command for GNU C++ for the case where it uses the native
13914 # linker, instead of GNU ld. If possible, this setting should
13915 # overridden to take advantage of the native linker features on
13916 # the platform it is being used on.
13917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13920 # Commands to make compiler produce verbose output that lists
13921 # what "hidden" libraries, object files and flags are used when
13922 # linking a shared library.
13923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13931 # PORTME: fill in a description of your system's C++ link characteristics
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13937 # FIXME: insert proper C++ library support
13941 if test ia64 = "$host_cpu"; then
13942 # On IA64, the linker does run time linking by default, so we don't
13943 # have to do anything special.
13944 aix_use_runtimelinking=no
13945 exp_sym_flag='-Bexport'
13948 aix_use_runtimelinking=no
13950 # Test if we are trying to use run time linking or normal
13951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13952 # have runtime linking enabled, and use it for executables.
13953 # For shared libraries, we enable/disable runtime linking
13954 # depending on the kind of the shared library created -
13955 # when "with_aix_soname,aix_use_runtimelinking" is:
13956 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13957 # "aix,yes" lib.so shared, rtl:yes, for executables
13958 # lib.a static archive
13959 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13960 # lib.a(lib.so.V) shared, rtl:no, for executables
13961 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13962 # lib.a(lib.so.V) shared, rtl:no
13963 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13964 # lib.a static archive
13965 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13966 for ld_flag in $LDFLAGS; do
13969 aix_use_runtimelinking=yes
13974 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13975 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13976 # so we don't have lib.a shared libs to link our executables.
13977 # We have to force runtime linking in this case.
13978 aix_use_runtimelinking=yes
13979 LDFLAGS="$LDFLAGS -Wl,-brtl"
13984 exp_sym_flag='-bexport'
13985 no_entry_flag='-bnoentry'
13988 # When large executables or shared objects are built, AIX ld can
13989 # have problems creating the table of contents. If linking a library
13990 # or program results in "error TOC overflow" add -mminimal-toc to
13991 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13992 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13994 archive_cmds_CXX=''
13995 hardcode_direct_CXX=yes
13996 hardcode_direct_absolute_CXX=yes
13997 hardcode_libdir_separator_CXX=':'
13998 link_all_deplibs_CXX=yes
13999 file_list_spec_CXX='$wl-f,'
14000 case $with_aix_soname,$aix_use_runtimelinking in
14001 aix,*) ;; # no import file
14002 svr4,* | *,yes) # use import file
14003 # The Import File defines what to hardcode.
14004 hardcode_direct_CXX=no
14005 hardcode_direct_absolute_CXX=no
14009 if test yes = "$GXX"; then
14010 case $host_os in aix4.[012]|aix4.[012].*)
14011 # We only want to do this on AIX 4.2 and lower, the check
14012 # below for broken collect2 doesn't work under 4.3+
14013 collect2name=`$CC -print-prog-name=collect2`
14014 if test -f "$collect2name" &&
14015 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14017 # We have reworked collect2
14020 # We have old collect2
14021 hardcode_direct_CXX=unsupported
14022 # It fails to find uninstalled libraries when the uninstalled
14023 # path is not listed in the libpath. Setting hardcode_minus_L
14024 # to unsupported forces relinking
14025 hardcode_minus_L_CXX=yes
14026 hardcode_libdir_flag_spec_CXX='-L$libdir'
14027 hardcode_libdir_separator_CXX=
14030 shared_flag='-shared'
14031 if test yes = "$aix_use_runtimelinking"; then
14032 shared_flag=$shared_flag' $wl-G'
14034 # Need to ensure runtime linking is disabled for the traditional
14035 # shared library, or the linker may eventually find shared libraries
14036 # /with/ Import File - we do not want to mix them.
14037 shared_flag_aix='-shared'
14038 shared_flag_svr4='-shared $wl-G'
14041 if test ia64 = "$host_cpu"; then
14042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14043 # chokes on -Wl,-G. The following line is correct:
14046 if test yes = "$aix_use_runtimelinking"; then
14047 shared_flag='$wl-G'
14049 shared_flag='$wl-bM:SRE'
14051 shared_flag_aix='$wl-bM:SRE'
14052 shared_flag_svr4='$wl-G'
14056 export_dynamic_flag_spec_CXX='$wl-bexpall'
14057 # It seems that -bexpall does not export symbols beginning with
14058 # underscore (_), so it is better to generate a list of symbols to
14060 always_export_symbols_CXX=yes
14061 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14062 # Warning - without using the other runtime loading flags (-brtl),
14063 # -berok will link without error, but may produce a broken library.
14064 # The "-G" linker flag allows undefined symbols.
14065 no_undefined_flag_CXX='-bernotok'
14066 # Determine the default libpath from the value encoded in an empty
14068 if test set = "${lt_cv_aix_libpath+set}"; then
14069 aix_libpath=$lt_cv_aix_libpath
14071 if ${lt_cv_aix_libpath__CXX+:} false; then :
14072 $as_echo_n "(cached) " >&6
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14085 if ac_fn_cxx_try_link "$LINENO"; then :
14087 lt_aix_libpath_sed='
14088 /Import File Strings/,/^$/ {
14090 s/^0 *\([^ ]*\) *$/\1/
14094 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14095 # Check for a 64-bit object if we didn't find anything.
14096 if test -z "$lt_cv_aix_libpath__CXX"; then
14097 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14102 if test -z "$lt_cv_aix_libpath__CXX"; then
14103 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14108 aix_libpath=$lt_cv_aix_libpath__CXX
14111 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14113 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
14115 if test ia64 = "$host_cpu"; then
14116 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14117 allow_undefined_flag_CXX="-z nodefs"
14118 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"
14120 # Determine the default libpath from the value encoded in an
14121 # empty executable.
14122 if test set = "${lt_cv_aix_libpath+set}"; then
14123 aix_libpath=$lt_cv_aix_libpath
14125 if ${lt_cv_aix_libpath__CXX+:} false; then :
14126 $as_echo_n "(cached) " >&6
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14139 if ac_fn_cxx_try_link "$LINENO"; then :
14141 lt_aix_libpath_sed='
14142 /Import File Strings/,/^$/ {
14144 s/^0 *\([^ ]*\) *$/\1/
14148 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14149 # Check for a 64-bit object if we didn't find anything.
14150 if test -z "$lt_cv_aix_libpath__CXX"; then
14151 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156 if test -z "$lt_cv_aix_libpath__CXX"; then
14157 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14162 aix_libpath=$lt_cv_aix_libpath__CXX
14165 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14166 # Warning - without using the other run time loading flags,
14167 # -berok will link without error, but may produce a broken library.
14168 no_undefined_flag_CXX=' $wl-bernotok'
14169 allow_undefined_flag_CXX=' $wl-berok'
14170 if test yes = "$with_gnu_ld"; then
14171 # We only use this code for GNU lds that support --whole-archive.
14172 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14174 # Exported symbols can be pulled into shared objects from archives
14175 whole_archive_flag_spec_CXX='$convenience'
14177 archive_cmds_need_lc_CXX=yes
14178 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14179 # -brtl affects multiple linker settings, -berok does not and is overridden later
14180 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14181 if test svr4 != "$with_aix_soname"; then
14182 # This is similar to how AIX traditionally builds its shared
14183 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14184 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'
14186 if test aix != "$with_aix_soname"; then
14187 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'
14189 # used by -dlpreopen to get the symbols
14190 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14192 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14199 allow_undefined_flag_CXX=unsupported
14200 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14201 # support --undefined. This deserves some investigation. FIXME
14202 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14209 case $cc_basename in
14211 # FIXME: insert proper C++ library support
14217 cygwin* | mingw* | pw32* | cegcc*)
14218 case $GXX,$cc_basename in
14221 # hardcode_libdir_flag_spec is actually meaningless, as there is
14222 # no search path for DLLs.
14223 hardcode_libdir_flag_spec_CXX=' '
14224 allow_undefined_flag_CXX=unsupported
14225 always_export_symbols_CXX=yes
14226 file_list_spec_CXX='@'
14227 # Tell ltmain to make .lib files, not .a files.
14229 # Tell ltmain to make .dll files, not .so files.
14231 # FIXME: Setting linknames here is a bad hack.
14232 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14233 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14234 cp "$export_symbols" "$output_objdir/$soname.def";
14235 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14237 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14239 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14241 # The linker will not automatically build a static lib if we build a DLL.
14242 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14243 enable_shared_with_static_runtimes_CXX=yes
14245 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14246 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14247 lt_tool_outputfile="@TOOL_OUTPUT@"~
14248 case $lt_outputfile in
14251 lt_outputfile=$lt_outputfile.exe
14252 lt_tool_outputfile=$lt_tool_outputfile.exe
14255 func_to_tool_file "$lt_outputfile"~
14256 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14257 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14258 $RM "$lt_outputfile.manifest";
14263 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14264 # as there is no search path for DLLs.
14265 hardcode_libdir_flag_spec_CXX='-L$libdir'
14266 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14267 allow_undefined_flag_CXX=unsupported
14268 always_export_symbols_CXX=no
14269 enable_shared_with_static_runtimes_CXX=yes
14271 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14272 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'
14273 # If the export-symbols file already is a .def file, use it as
14274 # is; otherwise, prepend EXPORTS...
14275 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14276 cp $export_symbols $output_objdir/$soname.def;
14278 echo EXPORTS > $output_objdir/$soname.def;
14279 cat $export_symbols >> $output_objdir/$soname.def;
14281 $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'
14288 darwin* | rhapsody*)
14291 archive_cmds_need_lc_CXX=no
14292 hardcode_direct_CXX=no
14293 hardcode_automatic_CXX=yes
14294 hardcode_shlibpath_var_CXX=unsupported
14295 if test yes = "$lt_cv_ld_force_load"; then
14296 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\"`'
14299 whole_archive_flag_spec_CXX=''
14301 link_all_deplibs_CXX=yes
14302 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14303 case $cc_basename in
14304 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14305 *) _lt_dar_can_shared=$GCC ;;
14307 if test yes = "$_lt_dar_can_shared"; then
14308 output_verbose_link_cmd=func_echo_all
14309 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"
14310 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14311 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"
14312 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"
14313 if test yes != "$lt_cv_apple_cc_single_mod"; then
14314 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"
14315 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"
14325 hardcode_libdir_flag_spec_CXX='-L$libdir'
14326 hardcode_minus_L_CXX=yes
14327 allow_undefined_flag_CXX=unsupported
14329 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14330 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14331 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14332 $ECHO EXPORTS >> $output_objdir/$libname.def~
14333 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14334 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14335 emximp -o $lib $output_objdir/$libname.def'
14336 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14337 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14338 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14339 $ECHO EXPORTS >> $output_objdir/$libname.def~
14340 prefix_cmds="$SED"~
14341 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14342 prefix_cmds="$prefix_cmds -e 1d";
14344 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14345 cat $export_symbols | $prefix_cmds >> $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 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14349 enable_shared_with_static_runtimes_CXX=yes
14353 case $cc_basename in
14355 # FIXME: insert proper C++ library support
14359 # Green Hills C++ Compiler
14360 # FIXME: insert proper C++ library support
14364 # FIXME: insert proper C++ library support
14371 # C++ shared libraries reported to be fairly broken before
14377 archive_cmds_need_lc_CXX=no
14380 freebsd* | dragonfly*)
14381 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14387 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14388 link_all_deplibs_CXX=yes
14392 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14393 hardcode_libdir_separator_CXX=:
14394 export_dynamic_flag_spec_CXX='$wl-E'
14395 hardcode_direct_CXX=yes
14396 hardcode_minus_L_CXX=yes # Not in the search PATH,
14397 # but as the default
14398 # location of the library.
14400 case $cc_basename in
14402 # FIXME: insert proper C++ library support
14406 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'
14407 # Commands to make compiler produce verbose output that lists
14408 # what "hidden" libraries, object files and flags are used when
14409 # linking a shared library.
14411 # There doesn't appear to be a way to prevent this compiler from
14412 # explicitly linking system object files so we need to strip them
14413 # from the output so that they don't get included in the library
14415 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"'
14418 if test yes = "$GXX"; then
14419 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'
14421 # FIXME: insert proper C++ library support
14429 if test no = "$with_gnu_ld"; then
14430 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14431 hardcode_libdir_separator_CXX=:
14437 export_dynamic_flag_spec_CXX='$wl-E'
14443 hardcode_direct_CXX=no
14444 hardcode_shlibpath_var_CXX=no
14447 hardcode_direct_CXX=yes
14448 hardcode_direct_absolute_CXX=yes
14449 hardcode_minus_L_CXX=yes # Not in the search PATH,
14450 # but as the default
14451 # location of the library.
14455 case $cc_basename in
14457 # FIXME: insert proper C++ library support
14463 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14466 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14469 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14472 # Commands to make compiler produce verbose output that lists
14473 # what "hidden" libraries, object files and flags are used when
14474 # linking a shared library.
14476 # There doesn't appear to be a way to prevent this compiler from
14477 # explicitly linking system object files so we need to strip them
14478 # from the output so that they don't get included in the library
14480 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"'
14483 if test yes = "$GXX"; then
14484 if test no = "$with_gnu_ld"; then
14487 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14490 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14493 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'
14498 # FIXME: insert proper C++ library support
14506 hardcode_direct_CXX=no
14507 hardcode_shlibpath_var_CXX=no
14508 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14509 export_dynamic_flag_spec_CXX='$wl-E'
14510 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14511 # Instead, shared libraries are loaded at an image base (0x10000000 by
14512 # default) and relocated if they conflict, which is a slow very memory
14513 # consuming and fragmenting process. To avoid this, we pick a random,
14514 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14515 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14516 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'
14517 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'
14520 case $cc_basename in
14523 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'
14525 # Archives containing C++ object files must be created using
14526 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14527 # necessary to make sure instantiated templates are included
14529 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14532 if test yes = "$GXX"; then
14533 if test no = "$with_gnu_ld"; then
14534 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'
14536 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'
14539 link_all_deplibs_CXX=yes
14542 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14543 hardcode_libdir_separator_CXX=:
14544 inherit_rpath_CXX=yes
14547 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14548 case $cc_basename in
14550 # Kuck and Associates, Inc. (KAI) C++ Compiler
14552 # KCC will only create a shared library if the output file
14553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14554 # to its proper name (with version) after linking.
14555 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'
14556 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'
14557 # Commands to make compiler produce verbose output that lists
14558 # what "hidden" libraries, object files and flags are used when
14559 # linking a shared library.
14561 # There doesn't appear to be a way to prevent this compiler from
14562 # explicitly linking system object files so we need to strip them
14563 # from the output so that they don't get included in the library
14565 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"'
14567 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14568 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14570 # Archives containing C++ object files must be created using
14571 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14572 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14577 # version 8.0 and above of icpc choke on multiply defined symbols
14578 # if we add $predep_objects and $postdep_objects, however 7.1 and
14579 # earlier do not add the objects themselves.
14580 case `$CC -V 2>&1` in
14582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14583 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'
14585 *) # Version 8.0 or newer
14588 ia64*) tmp_idyn=' -i_dynamic';;
14590 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14591 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'
14594 archive_cmds_need_lc_CXX=no
14595 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14596 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14597 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14600 # Portland Group C++ compiler
14602 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14603 prelink_cmds_CXX='tpldir=Template.dir~
14605 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14606 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14607 old_archive_cmds_CXX='tpldir=Template.dir~
14609 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14610 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14612 archive_cmds_CXX='tpldir=Template.dir~
14614 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14615 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14616 archive_expsym_cmds_CXX='tpldir=Template.dir~
14618 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14619 $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'
14621 *) # Version 6 and above use weak symbols
14622 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14623 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'
14627 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14628 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14629 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'
14633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14634 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'
14636 runpath_var=LD_RUN_PATH
14637 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14638 hardcode_libdir_separator_CXX=:
14640 # Commands to make compiler produce verbose output that lists
14641 # what "hidden" libraries, object files and flags are used when
14642 # linking a shared library.
14644 # There doesn't appear to be a way to prevent this compiler from
14645 # explicitly linking system object files so we need to strip them
14646 # from the output so that they don't get included in the library
14648 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'
14650 xl* | mpixl* | bgxl*)
14651 # IBM XL 8.0 on PPC, with GNU ld
14652 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14653 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14654 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14655 if test yes = "$supports_anon_versioning"; then
14656 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14658 echo "local: *; };" >> $output_objdir/$libname.ver~
14659 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14663 case `$CC -V 2>&1 | sed 5q` in
14666 no_undefined_flag_CXX=' -zdefs'
14667 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14668 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'
14669 hardcode_libdir_flag_spec_CXX='-R$libdir'
14670 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'
14671 compiler_needs_object_CXX=yes
14673 # Not sure whether something based on
14674 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14676 output_verbose_link_cmd='func_echo_all'
14678 # Archives containing C++ object files must be created using
14679 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14680 # necessary to make sure instantiated templates are included
14682 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14690 # FIXME: insert proper C++ library support
14695 # FIXME: insert proper C++ library support
14700 case $cc_basename in
14702 # FIXME: insert proper C++ library support
14706 # FIXME: insert proper C++ library support
14713 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14714 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14716 hardcode_libdir_flag_spec_CXX='-R$libdir'
14717 hardcode_direct_CXX=yes
14718 hardcode_shlibpath_var_CXX=no
14720 # Workaround some broken pre-1.5 toolchains
14721 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14728 openbsd* | bitrig*)
14729 if test -f /usr/libexec/ld.so; then
14730 hardcode_direct_CXX=yes
14731 hardcode_shlibpath_var_CXX=no
14732 hardcode_direct_absolute_CXX=yes
14733 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14734 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14736 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14737 export_dynamic_flag_spec_CXX='$wl-E'
14738 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14740 output_verbose_link_cmd=func_echo_all
14746 osf3* | osf4* | osf5*)
14747 case $cc_basename in
14749 # Kuck and Associates, Inc. (KAI) C++ Compiler
14751 # KCC will only create a shared library if the output file
14752 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14753 # to its proper name (with version) after linking.
14754 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'
14756 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14757 hardcode_libdir_separator_CXX=:
14759 # Archives containing C++ object files must be created using
14760 # the KAI C++ compiler.
14762 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14763 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14767 # Rational C++ 2.4.1
14768 # FIXME: insert proper C++ library support
14774 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14775 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'
14776 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14779 allow_undefined_flag_CXX=' -expect_unresolved \*'
14780 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'
14781 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14782 echo "-hidden">> $lib.exp~
14783 $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~
14785 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14789 hardcode_libdir_separator_CXX=:
14791 # Commands to make compiler produce verbose output that lists
14792 # what "hidden" libraries, object files and flags are used when
14793 # linking a shared library.
14795 # There doesn't appear to be a way to prevent this compiler from
14796 # explicitly linking system object files so we need to strip them
14797 # from the output so that they don't get included in the library
14799 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"'
14802 if test yes,no = "$GXX,$with_gnu_ld"; then
14803 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14806 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'
14809 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'
14813 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14814 hardcode_libdir_separator_CXX=:
14816 # Commands to make compiler produce verbose output that lists
14817 # what "hidden" libraries, object files and flags are used when
14818 # linking a shared library.
14819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14822 # FIXME: insert proper C++ library support
14830 # FIXME: insert proper C++ library support
14835 case $cc_basename in
14838 # FIXME: insert proper C++ library support
14843 # FIXME: insert proper C++ library support
14847 # FIXME: insert proper C++ library support
14854 case $cc_basename in
14856 # Sun C++ 4.2, 5.x and Centerline C++
14857 archive_cmds_need_lc_CXX=yes
14858 no_undefined_flag_CXX=' -zdefs'
14859 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14860 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14861 $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'
14863 hardcode_libdir_flag_spec_CXX='-R$libdir'
14864 hardcode_shlibpath_var_CXX=no
14866 solaris2.[0-5] | solaris2.[0-5].*) ;;
14868 # The compiler driver will combine and reorder linker options,
14869 # but understands '-z linker_flag'.
14870 # Supported since Solaris 2.6 (maybe 2.5.1?)
14871 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14874 link_all_deplibs_CXX=yes
14876 output_verbose_link_cmd='func_echo_all'
14878 # Archives containing C++ object files must be created using
14879 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14880 # necessary to make sure instantiated templates are included
14882 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14885 # Green Hills C++ Compiler
14886 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14888 # The C++ compiler must be used to create the archive.
14889 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14892 # GNU C++ compiler with Solaris linker
14893 if test yes,no = "$GXX,$with_gnu_ld"; then
14894 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14895 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14896 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14898 $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'
14900 # Commands to make compiler produce verbose output that lists
14901 # what "hidden" libraries, object files and flags are used when
14902 # linking a shared library.
14903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14905 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14907 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14908 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14909 $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'
14911 # Commands to make compiler produce verbose output that lists
14912 # what "hidden" libraries, object files and flags are used when
14913 # linking a shared library.
14914 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14917 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14919 solaris2.[0-5] | solaris2.[0-5].*) ;;
14921 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14929 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14930 no_undefined_flag_CXX='$wl-z,text'
14931 archive_cmds_need_lc_CXX=no
14932 hardcode_shlibpath_var_CXX=no
14933 runpath_var='LD_RUN_PATH'
14935 case $cc_basename in
14937 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14947 sysv5* | sco3.2v5* | sco5v6*)
14948 # Note: We CANNOT use -z defs as we might desire, because we do not
14949 # link with -lc, and that would cause any symbols used from libc to
14950 # always be unresolved, which means just about no library would
14951 # ever link correctly. If we're not using GNU ld we use -z text
14952 # though, which does catch some bad symbols but isn't as heavy-handed
14954 no_undefined_flag_CXX='$wl-z,text'
14955 allow_undefined_flag_CXX='$wl-z,nodefs'
14956 archive_cmds_need_lc_CXX=no
14957 hardcode_shlibpath_var_CXX=no
14958 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14959 hardcode_libdir_separator_CXX=':'
14960 link_all_deplibs_CXX=yes
14961 export_dynamic_flag_spec_CXX='$wl-Bexport'
14962 runpath_var='LD_RUN_PATH'
14964 case $cc_basename in
14966 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14969 '"$old_archive_cmds_CXX"
14970 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14971 '"$reload_cmds_CXX"
14974 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 case $cc_basename in
14983 # NonStop-UX NCC 3.20
14984 # FIXME: insert proper C++ library support
14988 # FIXME: insert proper C++ library support
14995 # FIXME: insert proper C++ library support
15000 # FIXME: insert proper C++ library support
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15006 $as_echo "$ld_shlibs_CXX" >&6; }
15007 test no = "$ld_shlibs_CXX" && can_build_shared=no
15013 ## There is no encapsulation within the following macros, do not change
15014 ## the running order or otherwise move them around unless you know exactly
15015 ## what you are doing...
15016 # Dependencies to place before and after the object being linked:
15017 predep_objects_CXX=
15018 postdep_objects_CXX=
15021 compiler_lib_search_path_CXX=
15023 cat > conftest.$ac_ext <<_LT_EOF
15027 Foo (void) { a = 0; }
15034 _lt_libdeps_save_CFLAGS=$CFLAGS
15035 case "$CC $CFLAGS " in #(
15036 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15037 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15038 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15042 (eval $ac_compile) 2>&5
15044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045 test $ac_status = 0; }; then
15046 # Parse the compiler output and extract the necessary
15047 # objects, libraries and library flags.
15049 # Sentinel used to keep track of whether or not we are before
15050 # the conftest object file.
15051 pre_test_object_deps_done=no
15053 for p in `eval "$output_verbose_link_cmd"`; do
15057 # Some compilers place space between "-{L,R}" and the path.
15058 # Remove the space.
15059 if test x-L = "$p" ||
15060 test x-R = "$p"; then
15065 # Expand the sysroot to ease extracting the directories later.
15066 if test -z "$prev"; then
15068 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15069 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15070 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15074 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15076 if test no = "$pre_test_object_deps_done"; then
15079 # Internal compiler library paths should come after those
15080 # provided the user. The postdeps already come after the
15081 # user supplied libs so there is no need to process them.
15082 if test -z "$compiler_lib_search_path_CXX"; then
15083 compiler_lib_search_path_CXX=$prev$p
15085 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15088 # The "-l" case would never come before the object being
15089 # linked, so don't bother handling this case.
15092 if test -z "$postdeps_CXX"; then
15093 postdeps_CXX=$prev$p
15095 postdeps_CXX="${postdeps_CXX} $prev$p"
15101 *.lto.$objext) ;; # Ignore GCC LTO objects
15103 # This assumes that the test object file only shows up
15104 # once in the compiler output.
15105 if test "$p" = "conftest.$objext"; then
15106 pre_test_object_deps_done=yes
15110 if test no = "$pre_test_object_deps_done"; then
15111 if test -z "$predep_objects_CXX"; then
15112 predep_objects_CXX=$p
15114 predep_objects_CXX="$predep_objects_CXX $p"
15117 if test -z "$postdep_objects_CXX"; then
15118 postdep_objects_CXX=$p
15120 postdep_objects_CXX="$postdep_objects_CXX $p"
15125 *) ;; # Ignore the rest.
15133 echo "libtool.m4: error: problem compiling CXX test program"
15136 $RM -f confest.$objext
15137 CFLAGS=$_lt_libdeps_save_CFLAGS
15139 # PORTME: override above test on systems where it is broken
15142 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15143 # hack all around it, let's just trust "g++" to DTRT.
15144 predep_objects_CXX=
15145 postdep_objects_CXX=
15151 case " $postdeps_CXX " in
15152 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15154 compiler_lib_search_dirs_CXX=
15155 if test -n "${compiler_lib_search_path_CXX}"; then
15156 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15189 lt_prog_compiler_wl_CXX=
15190 lt_prog_compiler_pic_CXX=
15191 lt_prog_compiler_static_CXX=
15194 # C++ specific cases for pic, static, wl, etc.
15195 if test yes = "$GXX"; then
15196 lt_prog_compiler_wl_CXX='-Wl,'
15197 lt_prog_compiler_static_CXX='-static'
15201 # All AIX code is PIC.
15202 if test ia64 = "$host_cpu"; then
15203 # AIX 5 now supports IA64 processor
15204 lt_prog_compiler_static_CXX='-Bstatic'
15206 lt_prog_compiler_pic_CXX='-fPIC'
15212 # see comment about AmigaOS4 .so support
15213 lt_prog_compiler_pic_CXX='-fPIC'
15216 # FIXME: we need at least 68020 code to build shared libraries, but
15217 # adding the '-m68020' flag to GCC prevents building anything better,
15219 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15224 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15225 # PIC is the default for these OSes.
15227 mingw* | cygwin* | os2* | pw32* | cegcc*)
15228 # This hack is so that the source file can tell whether it is being
15229 # built for inclusion in a dll (and should export symbols for example).
15230 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15231 # (--disable-auto-import) libraries
15232 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15235 lt_prog_compiler_static_CXX='$wl-static'
15239 darwin* | rhapsody*)
15240 # PIC is the default on this platform
15241 # Common symbols not allowed in MH_DYLIB files
15242 lt_prog_compiler_pic_CXX='-fno-common'
15245 # DJGPP does not support shared libraries at all
15246 lt_prog_compiler_pic_CXX=
15249 # PIC is the default for Haiku.
15250 # The "-static" flag exists, but is broken.
15251 lt_prog_compiler_static_CXX=
15254 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15255 # Instead, we relocate shared libraries at runtime.
15258 if test -d /usr/nec; then
15259 lt_prog_compiler_pic_CXX=-Kconform_pic
15263 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15264 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15265 # sets the default TLS model and affects inlining.
15270 lt_prog_compiler_pic_CXX='-fPIC'
15275 # QNX uses GNU C++, but need to define -shared option too, otherwise
15276 # it will coredump.
15277 lt_prog_compiler_pic_CXX='-fPIC -shared'
15280 lt_prog_compiler_pic_CXX='-fPIC'
15286 # All AIX code is PIC.
15287 if test ia64 = "$host_cpu"; then
15288 # AIX 5 now supports IA64 processor
15289 lt_prog_compiler_static_CXX='-Bstatic'
15291 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15295 case $cc_basename in
15297 # Green Hills C++ Compiler
15298 # _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"
15302 mingw* | cygwin* | os2* | pw32* | cegcc*)
15303 # This hack is so that the source file can tell whether it is being
15304 # built for inclusion in a dll (and should export symbols for example).
15305 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15308 case $cc_basename in
15310 lt_prog_compiler_pic_CXX='-KPIC'
15313 # Green Hills C++ Compiler
15314 lt_prog_compiler_pic_CXX='-pic'
15320 freebsd* | dragonfly*)
15321 # FreeBSD uses GNU C++
15323 hpux9* | hpux10* | hpux11*)
15324 case $cc_basename in
15326 lt_prog_compiler_wl_CXX='-Wl,'
15327 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15328 if test ia64 != "$host_cpu"; then
15329 lt_prog_compiler_pic_CXX='+Z'
15333 lt_prog_compiler_wl_CXX='-Wl,'
15334 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15340 lt_prog_compiler_pic_CXX='+Z'
15349 # This is c89, which is MS Visual C++ (no shared libs)
15350 # Anyone wants to do a port?
15352 irix5* | irix6* | nonstopux*)
15353 case $cc_basename in
15355 lt_prog_compiler_wl_CXX='-Wl,'
15356 lt_prog_compiler_static_CXX='-non_shared'
15357 # CC pic flag -KPIC is the default.
15363 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15364 case $cc_basename in
15367 lt_prog_compiler_wl_CXX='--backend -Wl,'
15368 lt_prog_compiler_pic_CXX='-fPIC'
15371 # old Intel C++ for x86_64, which still supported -KPIC.
15372 lt_prog_compiler_wl_CXX='-Wl,'
15373 lt_prog_compiler_pic_CXX='-KPIC'
15374 lt_prog_compiler_static_CXX='-static'
15377 # Intel C++, used to be incompatible with GCC.
15378 # ICC 10 doesn't accept -KPIC any more.
15379 lt_prog_compiler_wl_CXX='-Wl,'
15380 lt_prog_compiler_pic_CXX='-fPIC'
15381 lt_prog_compiler_static_CXX='-static'
15384 # Portland Group C++ compiler
15385 lt_prog_compiler_wl_CXX='-Wl,'
15386 lt_prog_compiler_pic_CXX='-fpic'
15387 lt_prog_compiler_static_CXX='-Bstatic'
15391 # Make sure the PIC flag is empty. It appears that all Alpha
15392 # Linux and Compaq Tru64 Unix objects are PIC.
15393 lt_prog_compiler_pic_CXX=
15394 lt_prog_compiler_static_CXX='-non_shared'
15396 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15397 # IBM XL 8.0, 9.0 on PPC and BlueGene
15398 lt_prog_compiler_wl_CXX='-Wl,'
15399 lt_prog_compiler_pic_CXX='-qpic'
15400 lt_prog_compiler_static_CXX='-qstaticlink'
15403 case `$CC -V 2>&1 | sed 5q` in
15406 lt_prog_compiler_pic_CXX='-KPIC'
15407 lt_prog_compiler_static_CXX='-Bstatic'
15408 lt_prog_compiler_wl_CXX='-Qoption ld '
15419 case $cc_basename in
15421 lt_prog_compiler_pic_CXX='-W c,exportall'
15430 # QNX uses GNU C++, but need to define -shared option too, otherwise
15431 # it will coredump.
15432 lt_prog_compiler_pic_CXX='-fPIC -shared'
15434 osf3* | osf4* | osf5*)
15435 case $cc_basename in
15437 lt_prog_compiler_wl_CXX='--backend -Wl,'
15440 # Rational C++ 2.4.1
15441 lt_prog_compiler_pic_CXX='-pic'
15444 # Digital/Compaq C++
15445 lt_prog_compiler_wl_CXX='-Wl,'
15446 # Make sure the PIC flag is empty. It appears that all Alpha
15447 # Linux and Compaq Tru64 Unix objects are PIC.
15448 lt_prog_compiler_pic_CXX=
15449 lt_prog_compiler_static_CXX='-non_shared'
15458 case $cc_basename in
15460 # Sun C++ 4.2, 5.x and Centerline C++
15461 lt_prog_compiler_pic_CXX='-KPIC'
15462 lt_prog_compiler_static_CXX='-Bstatic'
15463 lt_prog_compiler_wl_CXX='-Qoption ld '
15466 # Green Hills C++ Compiler
15467 lt_prog_compiler_pic_CXX='-PIC'
15474 case $cc_basename in
15477 lt_prog_compiler_pic_CXX='-pic'
15478 lt_prog_compiler_static_CXX='-Bstatic'
15482 lt_prog_compiler_pic_CXX='-pic'
15488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15489 case $cc_basename in
15491 lt_prog_compiler_wl_CXX='-Wl,'
15492 lt_prog_compiler_pic_CXX='-KPIC'
15493 lt_prog_compiler_static_CXX='-Bstatic'
15498 case $cc_basename in
15500 # NonStop-UX NCC 3.20
15501 lt_prog_compiler_pic_CXX='-KPIC'
15510 lt_prog_compiler_can_build_shared_CXX=no
15516 # For platforms that do not support PIC, -DPIC is meaningless:
15518 lt_prog_compiler_pic_CXX=
15521 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15526 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15527 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15528 $as_echo_n "(cached) " >&6
15530 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15533 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15534 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15537 # Check to make sure the PIC flag actually works.
15539 if test -n "$lt_prog_compiler_pic_CXX"; then
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15541 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15542 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15543 $as_echo_n "(cached) " >&6
15545 lt_cv_prog_compiler_pic_works_CXX=no
15546 ac_outfile=conftest.$ac_objext
15547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15549 # Insert the option either (1) after the last *FLAGS variable, or
15550 # (2) before a word containing "conftest.", or (3) at the end.
15551 # Note that $ac_compile itself does not contain backslashes and begins
15552 # with a dollar sign (not a hyphen), so the echo should work correctly.
15553 # The option is referenced via a variable to avoid confusing sed.
15554 lt_compile=`echo "$ac_compile" | $SED \
15555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15557 -e 's:$: $lt_compiler_flag:'`
15558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15559 (eval "$lt_compile" 2>conftest.err)
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 if (exit $ac_status) && test -s "$ac_outfile"; then
15564 # The compiler can only warn and ignore the option if not recognized
15565 # So say no if there are warnings other than the usual output.
15566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15569 lt_cv_prog_compiler_pic_works_CXX=yes
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15576 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15578 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15579 case $lt_prog_compiler_pic_CXX in
15581 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15584 lt_prog_compiler_pic_CXX=
15585 lt_prog_compiler_can_build_shared_CXX=no
15595 # Check to make sure the static flag actually works.
15597 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15599 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15600 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15601 $as_echo_n "(cached) " >&6
15603 lt_cv_prog_compiler_static_works_CXX=no
15604 save_LDFLAGS=$LDFLAGS
15605 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15606 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15608 # The linker can only warn and ignore the option if not recognized
15609 # So say no if there are warnings
15610 if test -s conftest.err; then
15611 # Append any errors to the config.log.
15612 cat conftest.err 1>&5
15613 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15615 if diff conftest.exp conftest.er2 >/dev/null; then
15616 lt_cv_prog_compiler_static_works_CXX=yes
15619 lt_cv_prog_compiler_static_works_CXX=yes
15623 LDFLAGS=$save_LDFLAGS
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15627 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15629 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15632 lt_prog_compiler_static_CXX=
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15640 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15641 $as_echo_n "(cached) " >&6
15643 lt_cv_prog_compiler_c_o_CXX=no
15644 $RM -r conftest 2>/dev/null
15648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15650 lt_compiler_flag="-o out/conftest2.$ac_objext"
15651 # Insert the option either (1) after the last *FLAGS variable, or
15652 # (2) before a word containing "conftest.", or (3) at the end.
15653 # Note that $ac_compile itself does not contain backslashes and begins
15654 # with a dollar sign (not a hyphen), so the echo should work correctly.
15655 lt_compile=`echo "$ac_compile" | $SED \
15656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15658 -e 's:$: $lt_compiler_flag:'`
15659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15660 (eval "$lt_compile" 2>out/conftest.err)
15662 cat out/conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15666 # The compiler can only warn and ignore the option if not recognized
15667 # So say no if there are warnings
15668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15671 lt_cv_prog_compiler_c_o_CXX=yes
15676 # SGI C++ compiler will create directory out/ii_files/ for
15677 # template instantiation
15678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15679 $RM out/* && rmdir out
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15686 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15692 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15693 $as_echo_n "(cached) " >&6
15695 lt_cv_prog_compiler_c_o_CXX=no
15696 $RM -r conftest 2>/dev/null
15700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15702 lt_compiler_flag="-o out/conftest2.$ac_objext"
15703 # Insert the option either (1) after the last *FLAGS variable, or
15704 # (2) before a word containing "conftest.", or (3) at the end.
15705 # Note that $ac_compile itself does not contain backslashes and begins
15706 # with a dollar sign (not a hyphen), so the echo should work correctly.
15707 lt_compile=`echo "$ac_compile" | $SED \
15708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15710 -e 's:$: $lt_compiler_flag:'`
15711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15712 (eval "$lt_compile" 2>out/conftest.err)
15714 cat out/conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15718 # The compiler can only warn and ignore the option if not recognized
15719 # So say no if there are warnings
15720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15723 lt_cv_prog_compiler_c_o_CXX=yes
15728 # SGI C++ compiler will create directory out/ii_files/ for
15729 # template instantiation
15730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15731 $RM out/* && rmdir out
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15738 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15743 hard_links=nottested
15744 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15745 # do not overwrite the value of need_locks provided by the user
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15747 $as_echo_n "checking if we can lock with hard links... " >&6; }
15750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15752 ln conftest.a conftest.b 2>&5 || hard_links=no
15753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15755 $as_echo "$hard_links" >&6; }
15756 if test no = "$hard_links"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15758 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15768 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15770 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15771 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15774 # If we're using GNU nm, then we don't want the "-C" option.
15775 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15776 # Without the "-l" option, or with the "-B" option, AIX nm treats
15777 # weak defined symbols like other global defined symbols, whereas
15778 # GNU nm marks them as "W".
15779 # While the 'weak' keyword is ignored in the Export File, we need
15780 # it in the Import File for the 'aix-soname' feature, so we have
15781 # to replace the "-B" option with "-P" for AIX nm.
15782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15783 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'
15785 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'
15789 export_symbols_cmds_CXX=$ltdll_cmds
15791 cygwin* | mingw* | cegcc*)
15792 case $cc_basename in
15794 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15797 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'
15798 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15803 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15808 $as_echo "$ld_shlibs_CXX" >&6; }
15809 test no = "$ld_shlibs_CXX" && can_build_shared=no
15811 with_gnu_ld_CXX=$with_gnu_ld
15819 # Do we need to explicitly link libc?
15821 case "x$archive_cmds_need_lc_CXX" in
15823 # Assume -lc should be added
15824 archive_cmds_need_lc_CXX=yes
15826 if test yes,yes = "$GCC,$enable_shared"; then
15827 case $archive_cmds_CXX in
15829 # FIXME: we may have to deal with multi-command sequences.
15832 # Test whether the compiler implicitly links with -lc since on some
15833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15834 # to ld, don't add -lc before -lgcc.
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15836 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15837 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15838 $as_echo_n "(cached) " >&6
15841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15844 (eval $ac_compile) 2>&5
15846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15847 test $ac_status = 0; } 2>conftest.err; then
15850 libobjs=conftest.$ac_objext
15852 wl=$lt_prog_compiler_wl_CXX
15853 pic_flag=$lt_prog_compiler_pic_CXX
15859 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15860 allow_undefined_flag_CXX=
15861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15862 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15865 test $ac_status = 0; }
15867 lt_cv_archive_cmds_need_lc_CXX=no
15869 lt_cv_archive_cmds_need_lc_CXX=yes
15871 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15873 cat conftest.err 1>&5
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15879 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15880 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15949 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15951 library_names_spec=
15952 libname_spec='lib$name'
15956 postuninstall_cmds=
15960 shlibpath_overrides_runpath=unknown
15962 dynamic_linker="$host_os ld.so"
15963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15964 need_lib_prefix=unknown
15965 hardcode_into_libs=no
15967 # when you set need_version to no, make sure it does not cause -set_version
15968 # flags to be left without arguments
15969 need_version=unknown
15975 version_type=linux # correct to gnu/linux during the next big refactor
15976 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15977 shlibpath_var=LIBPATH
15979 # AIX 3 has no versioning support, so we append a major version to the name.
15980 soname_spec='$libname$release$shared_ext$major'
15984 version_type=linux # correct to gnu/linux during the next big refactor
15987 hardcode_into_libs=yes
15988 if test ia64 = "$host_cpu"; then
15989 # AIX 5 supports IA64
15990 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15991 shlibpath_var=LD_LIBRARY_PATH
15993 # With GCC up to 2.95.x, collect2 would create an import file
15994 # for dependence libraries. The import file would start with
15995 # the line '#! .'. This would cause the generated library to
15996 # depend on '.', always an invalid library. This was fixed in
15997 # development snapshots of GCC prior to 3.0.
15999 aix4 | aix4.[01] | aix4.[01].*)
16000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16002 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16005 can_build_shared=no
16009 # Using Import Files as archive members, it is possible to support
16010 # filename-based versioning of shared library archives on AIX. While
16011 # this would work for both with and without runtime linking, it will
16012 # prevent static linking of such archives. So we do filename-based
16013 # shared library versioning with .so extension only, which is used
16014 # when both runtime linking and shared linking is enabled.
16015 # Unfortunately, runtime linking may impact performance, so we do
16016 # not want this to be the default eventually. Also, we use the
16017 # versioned .so libs for executables only if there is the -brtl
16018 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16019 # To allow for filename-based versioning support, we need to create
16020 # libNAME.so.V as an archive file, containing:
16021 # *) an Import File, referring to the versioned filename of the
16022 # archive as well as the shared archive member, telling the
16023 # bitwidth (32 or 64) of that shared object, and providing the
16024 # list of exported symbols of that shared object, eventually
16025 # decorated with the 'weak' keyword
16026 # *) the shared object with the F_LOADONLY flag set, to really avoid
16027 # it being seen by the linker.
16028 # At run time we better use the real file rather than another symlink,
16029 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16031 case $with_aix_soname,$aix_use_runtimelinking in
16032 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16033 # soname into executable. Probably we can add versioning support to
16034 # collect2, so additional links can be useful in future.
16035 aix,yes) # traditional libtool
16036 dynamic_linker='AIX unversionable lib.so'
16037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16038 # instead of lib<name>.a to let people know that these are not
16039 # typical AIX shared libraries.
16040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16042 aix,no) # traditional AIX only
16043 dynamic_linker='AIX lib.a(lib.so.V)'
16044 # We preserve .a as extension for shared libraries through AIX4.2
16045 # and later when we are not doing run time linking.
16046 library_names_spec='$libname$release.a $libname.a'
16047 soname_spec='$libname$release$shared_ext$major'
16049 svr4,*) # full svr4 only
16050 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16051 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16052 # We do not specify a path in Import Files, so LIBPATH fires.
16053 shlibpath_overrides_runpath=yes
16055 *,yes) # both, prefer svr4
16056 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16057 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16058 # unpreferred sharedlib libNAME.a needs extra handling
16059 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"'
16060 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"'
16061 # We do not specify a path in Import Files, so LIBPATH fires.
16062 shlibpath_overrides_runpath=yes
16064 *,no) # both, prefer aix
16065 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16066 library_names_spec='$libname$release.a $libname.a'
16067 soname_spec='$libname$release$shared_ext$major'
16068 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16069 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)'
16070 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"'
16073 shlibpath_var=LIBPATH
16080 # Since July 2007 AmigaOS4 officially supports .so libraries.
16081 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16085 library_names_spec='$libname.ixlibrary $libname.a'
16086 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16087 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'
16093 library_names_spec='$libname$shared_ext'
16094 dynamic_linker="$host_os ld.so"
16095 shlibpath_var=LIBRARY_PATH
16099 version_type=linux # correct to gnu/linux during the next big refactor
16101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16102 soname_spec='$libname$release$shared_ext$major'
16103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16104 shlibpath_var=LD_LIBRARY_PATH
16105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16107 # the default ld.so.conf also contains /usr/contrib/lib and
16108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16109 # libtool to hard-code these into programs
16112 cygwin* | mingw* | pw32* | cegcc*)
16113 version_type=windows
16118 case $GCC,$cc_basename in
16121 library_names_spec='$libname.dll.a'
16122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16123 postinstall_cmds='base_file=`basename \$file`~
16124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16125 dldir=$destdir/`dirname \$dlpath`~
16126 test -d \$dldir || mkdir -p \$dldir~
16127 $install_prog $dir/$dlname \$dldir/$dlname~
16128 chmod a+x \$dldir/$dlname~
16129 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16130 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16133 dlpath=$dir/\$dldll~
16135 shlibpath_overrides_runpath=yes
16139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16140 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16144 # MinGW DLLs use traditional 'lib' prefix
16145 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16148 # pw32 DLLs use 'pw' prefix rather than 'lib'
16149 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16152 dynamic_linker='Win32 ld.exe'
16157 libname_spec='$name'
16158 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16159 library_names_spec='$libname.dll.lib'
16163 sys_lib_search_path_spec=
16166 for lt_path in $LIB
16169 # Let DOS variable expansion print the short 8.3 style file name.
16170 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16171 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16174 # Convert to MSYS style.
16175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16178 # Convert to unix form, then to dos form, then back to unix form
16179 # but this time dos style (no spaces!) so that the unix form looks
16180 # like /cygdrive/c/PROGRA~1:/cygdr...
16181 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16182 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16183 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16186 sys_lib_search_path_spec=$LIB
16187 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16188 # It is most probably a Windows format PATH.
16189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16191 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16193 # FIXME: find the short name or the path components, as spaces are
16194 # common. (e.g. "Program Files" -> "PROGRA~1")
16198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16199 postinstall_cmds='base_file=`basename \$file`~
16200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16201 dldir=$destdir/`dirname \$dlpath`~
16202 test -d \$dldir || mkdir -p \$dldir~
16203 $install_prog $dir/$dlname \$dldir/$dlname'
16204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16205 dlpath=$dir/\$dldll~
16207 shlibpath_overrides_runpath=yes
16208 dynamic_linker='Win32 link.exe'
16212 # Assume MSVC wrapper
16213 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16214 dynamic_linker='Win32 ld.exe'
16217 # FIXME: first we should search . and the directory the executable is in
16221 darwin* | rhapsody*)
16222 dynamic_linker="$host_os dyld"
16223 version_type=darwin
16226 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16227 soname_spec='$libname$release$major$shared_ext'
16228 shlibpath_overrides_runpath=yes
16229 shlibpath_var=DYLD_LIBRARY_PATH
16230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16236 version_type=linux # correct to gnu/linux during the next big refactor
16239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16240 soname_spec='$libname$release$shared_ext$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16244 freebsd* | dragonfly*)
16245 # DragonFly does not have aout. When/if they implement a new
16246 # versioning mechanism, adjust this.
16247 if test -x /usr/bin/objformat; then
16248 objformat=`/usr/bin/objformat`
16251 freebsd[23].*) objformat=aout ;;
16252 *) objformat=elf ;;
16255 version_type=freebsd-$objformat
16256 case $version_type in
16258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16259 soname_spec='$libname$release$shared_ext$major'
16264 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16268 shlibpath_var=LD_LIBRARY_PATH
16271 shlibpath_overrides_runpath=yes
16273 freebsd3.[01]* | freebsdelf3.[01]*)
16274 shlibpath_overrides_runpath=yes
16275 hardcode_into_libs=yes
16277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16279 shlibpath_overrides_runpath=no
16280 hardcode_into_libs=yes
16282 *) # from 4.6 on, and DragonFly
16283 shlibpath_overrides_runpath=yes
16284 hardcode_into_libs=yes
16290 version_type=linux # correct to gnu/linux during the next big refactor
16293 dynamic_linker="$host_os runtime_loader"
16294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16295 soname_spec='$libname$release$shared_ext$major'
16296 shlibpath_var=LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16299 hardcode_into_libs=yes
16302 hpux9* | hpux10* | hpux11*)
16303 # Give a soname corresponding to the major version so that dld.sl refuses to
16304 # link against other versions.
16311 hardcode_into_libs=yes
16312 dynamic_linker="$host_os dld.so"
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16316 soname_spec='$libname$release$shared_ext$major'
16317 if test 32 = "$HPUX_IA64_MODE"; then
16318 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16319 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16322 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16327 hardcode_into_libs=yes
16328 dynamic_linker="$host_os dld.sl"
16329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16332 soname_spec='$libname$release$shared_ext$major'
16333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16338 dynamic_linker="$host_os dld.sl"
16339 shlibpath_var=SHLIB_PATH
16340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16342 soname_spec='$libname$release$shared_ext$major'
16345 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16346 postinstall_cmds='chmod 555 $lib'
16347 # or fails outright, so override atomically:
16348 install_override_mode=555
16352 version_type=linux # correct to gnu/linux during the next big refactor
16355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16356 soname_spec='$libname$release$shared_ext$major'
16357 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 shlibpath_overrides_runpath=no
16360 hardcode_into_libs=yes
16363 irix5* | irix6* | nonstopux*)
16365 nonstopux*) version_type=nonstopux ;;
16367 if test yes = "$lt_cv_prog_gnu_ld"; then
16368 version_type=linux # correct to gnu/linux during the next big refactor
16375 soname_spec='$libname$release$shared_ext$major'
16376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16378 irix5* | nonstopux*)
16379 libsuff= shlibsuff=
16382 case $LD in # libtool.m4 will add one of these switches to LD
16383 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16384 libsuff= shlibsuff= libmagic=32-bit;;
16385 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16386 libsuff=32 shlibsuff=N32 libmagic=N32;;
16387 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16388 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16389 *) libsuff= shlibsuff= libmagic=never-match;;
16393 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16394 shlibpath_overrides_runpath=no
16395 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16396 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16397 hardcode_into_libs=yes
16400 # No shared lib support for Linux oldld, aout, or coff.
16401 linux*oldld* | linux*aout* | linux*coff*)
16406 version_type=none # Android doesn't support versioned libraries.
16409 library_names_spec='$libname$release$shared_ext'
16410 soname_spec='$libname$release$shared_ext'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16415 # This implies no fast_install, which is unacceptable.
16416 # Some rework will be needed to allow for fast_install
16417 # before this can be enabled.
16418 hardcode_into_libs=yes
16420 dynamic_linker='Android linker'
16421 # Don't embed -rpath directories since the linker doesn't support them.
16422 hardcode_libdir_flag_spec_CXX='-L$libdir'
16425 # This must be glibc/ELF.
16426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16427 version_type=linux # correct to gnu/linux during the next big refactor
16430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16431 soname_spec='$libname$release$shared_ext$major'
16432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 shlibpath_overrides_runpath=no
16436 # Some binutils ld are patched to set DT_RUNPATH
16437 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16438 $as_echo_n "(cached) " >&6
16440 lt_cv_shlibpath_overrides_runpath=no
16441 save_LDFLAGS=$LDFLAGS
16442 save_libdir=$libdir
16443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16456 if ac_fn_cxx_try_link "$LINENO"; then :
16457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16458 lt_cv_shlibpath_overrides_runpath=yes
16461 rm -f core conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463 LDFLAGS=$save_LDFLAGS
16464 libdir=$save_libdir
16468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16470 # This implies no fast_install, which is unacceptable.
16471 # Some rework will be needed to allow for fast_install
16472 # before this can be enabled.
16473 hardcode_into_libs=yes
16475 # Ideally, we could use ldconfig to report *all* directores which are
16476 # searched for libraries, however this is still not possible. Aside from not
16477 # being certain /sbin/ldconfig is available, command
16478 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16479 # even though it is searched at run-time. Try to do the best guess by
16480 # appending ld.so.conf contents (and includes) to the search path.
16481 if test -f /etc/ld.so.conf; then
16482 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' ' '`
16483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16486 # We used to test for /lib/ld.so.1 and disable shared libraries on
16487 # powerpc, because MkLinux only supported shared libraries with the
16488 # GNU dynamic linker. Since this was broken with cross compilers,
16489 # most powerpc-linux boxes support dynamic linking these days and
16490 # people can always --disable-shared, the test was removed, and we
16491 # assume the GNU/Linux dynamic linker is in use.
16492 dynamic_linker='GNU/Linux ld.so'
16499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16500 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16502 dynamic_linker='NetBSD (a.out) ld.so'
16504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16505 soname_spec='$libname$release$shared_ext$major'
16506 dynamic_linker='NetBSD ld.elf_so'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 shlibpath_overrides_runpath=yes
16510 hardcode_into_libs=yes
16514 version_type=linux # correct to gnu/linux during the next big refactor
16515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath=yes
16524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16525 soname_spec='$libname$release$shared_ext$major'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=no
16528 hardcode_into_libs=yes
16529 dynamic_linker='ldqnx.so'
16532 openbsd* | bitrig*)
16534 sys_lib_dlsearch_path_spec=/usr/lib
16536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16541 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=yes
16548 libname_spec='$name'
16549 version_type=windows
16553 # OS/2 can only load a DLL with a base name of 8 characters or less.
16554 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16555 v=$($ECHO $release$versuffix | tr -d .-);
16556 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16557 $ECHO $n$v`$shared_ext'
16558 library_names_spec='${libname}_dll.$libext'
16559 dynamic_linker='OS/2 ld.exe'
16560 shlibpath_var=BEGINLIBPATH
16561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16563 postinstall_cmds='base_file=`basename \$file`~
16564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16565 dldir=$destdir/`dirname \$dlpath`~
16566 test -d \$dldir || mkdir -p \$dldir~
16567 $install_prog $dir/$dlname \$dldir/$dlname~
16568 chmod a+x \$dldir/$dlname~
16569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16573 dlpath=$dir/\$dldll~
16577 osf3* | osf4* | osf5*)
16581 soname_spec='$libname$release$shared_ext$major'
16582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16593 version_type=linux # correct to gnu/linux during the next big refactor
16596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16597 soname_spec='$libname$release$shared_ext$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=yes
16600 hardcode_into_libs=yes
16601 # ldd complains unless libraries are executable
16602 postinstall_cmds='chmod +x $lib'
16607 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16609 shlibpath_var=LD_LIBRARY_PATH
16610 shlibpath_overrides_runpath=yes
16611 if test yes = "$with_gnu_ld"; then
16618 version_type=linux # correct to gnu/linux during the next big refactor
16619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16620 soname_spec='$libname$release$shared_ext$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 case $host_vendor in
16624 shlibpath_overrides_runpath=no
16626 runpath_var=LD_RUN_PATH
16634 shlibpath_overrides_runpath=no
16635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16641 if test -d /usr/nec; then
16642 version_type=linux # correct to gnu/linux during the next big refactor
16643 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16644 soname_spec='$libname$shared_ext.$major'
16645 shlibpath_var=LD_LIBRARY_PATH
16649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16654 soname_spec='$libname$release$shared_ext$major'
16655 shlibpath_var=LD_LIBRARY_PATH
16656 shlibpath_overrides_runpath=yes
16657 hardcode_into_libs=yes
16658 if test yes = "$with_gnu_ld"; then
16659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16668 sys_lib_dlsearch_path_spec='/usr/lib'
16672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16673 version_type=linux # correct to gnu/linux during the next big refactor
16676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=no
16679 hardcode_into_libs=yes
16683 version_type=linux # correct to gnu/linux during the next big refactor
16684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16685 soname_spec='$libname$release$shared_ext$major'
16686 shlibpath_var=LD_LIBRARY_PATH
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16694 $as_echo "$dynamic_linker" >&6; }
16695 test no = "$dynamic_linker" && can_build_shared=no
16697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16698 if test yes = "$GCC"; then
16699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16702 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16703 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16706 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16707 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16710 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16711 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16713 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16714 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16716 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16717 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16759 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16760 hardcode_action_CXX=
16761 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16762 test -n "$runpath_var_CXX" ||
16763 test yes = "$hardcode_automatic_CXX"; then
16765 # We can hardcode non-existent directories.
16766 if test no != "$hardcode_direct_CXX" &&
16767 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16768 # have to relink, otherwise we might link with an installed library
16769 # when we should be linking with a yet-to-be-installed one
16770 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16771 test no != "$hardcode_minus_L_CXX"; then
16772 # Linking always hardcodes the temporary library directory.
16773 hardcode_action_CXX=relink
16775 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16776 hardcode_action_CXX=immediate
16779 # We cannot hardcode anything, or else we can only hardcode existing
16781 hardcode_action_CXX=unsupported
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16784 $as_echo "$hardcode_action_CXX" >&6; }
16786 if test relink = "$hardcode_action_CXX" ||
16787 test yes = "$inherit_rpath_CXX"; then
16788 # Fast installation is not supported
16789 enable_fast_install=no
16790 elif test yes = "$shlibpath_overrides_runpath" ||
16791 test no = "$enable_shared"; then
16792 # Fast installation is not necessary
16793 enable_fast_install=needless
16802 fi # test -n "$compiler"
16805 CFLAGS=$lt_save_CFLAGS
16809 with_gnu_ld=$lt_save_with_gnu_ld
16810 lt_cv_path_LDCXX=$lt_cv_path_LD
16811 lt_cv_path_LD=$lt_save_path_LD
16812 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16813 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16814 fi # test yes != "$_lt_caught_CXX_error"
16817 ac_cpp='$CPP $CPPFLAGS'
16818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16836 ac_config_commands="$ac_config_commands libtool"
16841 # Only expand once:
16845 # On Cygwin, without -no-undefined, a warning is emitted and only a static
16846 # library is built.
16847 beos* | mingw* | cygwin* | os2*) LTNOUNDEF='-no-undefined' ;;
16853 for ac_header in features.h
16855 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
16856 if test "x$ac_cv_header_features_h" = xyes; then :
16857 cat >>confdefs.h <<_ACEOF
16858 #define HAVE_FEATURES_H 1
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16867 $as_echo_n "checking for inline... " >&6; }
16868 if ${ac_cv_c_inline+:} false; then :
16869 $as_echo_n "(cached) " >&6
16872 for ac_kw in inline __inline__ __inline; do
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 #ifndef __cplusplus
16877 static $ac_kw foo_t static_foo () {return 0; }
16878 $ac_kw foo_t foo () {return 0; }
16882 if ac_fn_c_try_compile "$LINENO"; then :
16883 ac_cv_c_inline=$ac_kw
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 test "$ac_cv_c_inline" != no && break
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16891 $as_echo "$ac_cv_c_inline" >&6; }
16893 case $ac_cv_c_inline in
16896 case $ac_cv_c_inline in
16898 *) ac_val=$ac_cv_c_inline;;
16900 cat >>confdefs.h <<_ACEOF
16901 #ifndef __cplusplus
16902 #define inline $ac_val
16908 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16909 if test "x$ac_cv_type_size_t" = xyes; then :
16913 cat >>confdefs.h <<_ACEOF
16914 #define size_t unsigned int
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16921 $as_echo_n "checking for unsigned long long int... " >&6; }
16922 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16923 $as_echo_n "(cached) " >&6
16925 ac_cv_type_unsigned_long_long_int=yes
16926 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16930 /* For now, do not test the preprocessor; as of 2007 there are too many
16931 implementations with broken preprocessors. Perhaps this can
16932 be revisited in 2012. In the meantime, code should not expect
16933 #if to work with literals wider than 32 bits. */
16934 /* Test literals. */
16935 long long int ll = 9223372036854775807ll;
16936 long long int nll = -9223372036854775807LL;
16937 unsigned long long int ull = 18446744073709551615ULL;
16938 /* Test constant expressions. */
16939 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16941 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16947 /* Test availability of runtime routines for shift and division. */
16948 long long int llmax = 9223372036854775807ll;
16949 unsigned long long int ullmax = 18446744073709551615ull;
16950 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16951 | (llmax / ll) | (llmax % ll)
16952 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16953 | (ullmax / ull) | (ullmax % ull));
16959 if ac_fn_c_try_link "$LINENO"; then :
16962 ac_cv_type_unsigned_long_long_int=no
16964 rm -f core conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16969 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16970 if test $ac_cv_type_unsigned_long_long_int = yes; then
16972 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16979 $as_echo_n "checking for long long int... " >&6; }
16980 if ${ac_cv_type_long_long_int+:} false; then :
16981 $as_echo_n "(cached) " >&6
16983 ac_cv_type_long_long_int=yes
16984 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16985 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16986 if test $ac_cv_type_long_long_int = yes; then
16987 if test "$cross_compiling" = yes; then :
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16992 #include <limits.h>
16995 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16996 # define LLONG_MAX (HALF - 1 + HALF)
17001 long long int n = 1;
17005 long long int m = n << i;
17008 if (LLONG_MAX / 2 < m)
17016 if ac_fn_c_try_run "$LINENO"; then :
17019 ac_cv_type_long_long_int=no
17021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17022 conftest.$ac_objext conftest.beam conftest.$ac_ext
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17029 $as_echo "$ac_cv_type_long_long_int" >&6; }
17030 if test $ac_cv_type_long_long_int = yes; then
17032 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17038 $as_echo_n "checking for wchar_t... " >&6; }
17039 if ${gt_cv_c_wchar_t+:} false; then :
17040 $as_echo_n "(cached) " >&6
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044 #include <stddef.h>
17045 wchar_t foo = (wchar_t)'\0';
17054 if ac_fn_c_try_compile "$LINENO"; then :
17055 gt_cv_c_wchar_t=yes
17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17062 $as_echo "$gt_cv_c_wchar_t" >&6; }
17063 if test $gt_cv_c_wchar_t = yes; then
17065 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17071 $as_echo_n "checking for wint_t... " >&6; }
17072 if ${gt_cv_c_wint_t+:} false; then :
17073 $as_echo_n "(cached) " >&6
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17078 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17080 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17081 before <wchar.h>. */
17082 #include <stddef.h>
17086 wint_t foo = (wchar_t)'\0';
17095 if ac_fn_c_try_compile "$LINENO"; then :
17100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17103 $as_echo "$gt_cv_c_wint_t" >&6; }
17104 if test $gt_cv_c_wint_t = yes; then
17106 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17111 $as_echo_n "checking for mbstate_t... " >&6; }
17112 if ${ac_cv_type_mbstate_t+:} false; then :
17113 $as_echo_n "(cached) " >&6
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17117 $ac_includes_default
17118 # include <wchar.h>
17122 mbstate_t x; return sizeof x;
17127 if ac_fn_c_try_compile "$LINENO"; then :
17128 ac_cv_type_mbstate_t=yes
17130 ac_cv_type_mbstate_t=no
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17135 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17136 if test $ac_cv_type_mbstate_t = yes; then
17138 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17142 $as_echo "#define mbstate_t int" >>confdefs.h
17145 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17146 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17150 $as_echo "#define ptrdiff_t long" >>confdefs.h
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
17157 $as_echo_n "checking for inttypes.h... " >&6; }
17158 if ${gl_cv_header_inttypes_h+:} false; then :
17159 $as_echo_n "(cached) " >&6
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17164 #include <sys/types.h>
17165 #include <inttypes.h>
17170 uintmax_t i = (uintmax_t) -1; return !i;
17175 if ac_fn_c_try_compile "$LINENO"; then :
17176 gl_cv_header_inttypes_h=yes
17178 gl_cv_header_inttypes_h=no
17180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
17183 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17184 if test $gl_cv_header_inttypes_h = yes; then
17186 cat >>confdefs.h <<_ACEOF
17187 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
17194 $as_echo_n "checking for stdint.h... " >&6; }
17195 if ${gl_cv_header_stdint_h+:} false; then :
17196 $as_echo_n "(cached) " >&6
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17200 #include <sys/types.h>
17201 #include <stdint.h>
17205 uintmax_t i = (uintmax_t) -1; return !i;
17210 if ac_fn_c_try_compile "$LINENO"; then :
17211 gl_cv_header_stdint_h=yes
17213 gl_cv_header_stdint_h=no
17215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
17218 $as_echo "$gl_cv_header_stdint_h" >&6; }
17219 if test $gl_cv_header_stdint_h = yes; then
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_STDINT_H_WITH_UINTMAX 1
17230 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
17232 test $ac_cv_type_long_long_int = yes \
17233 && ac_type='long long' \
17236 cat >>confdefs.h <<_ACEOF
17237 #define intmax_t $ac_type
17242 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17247 for ac_header in stdint.h
17249 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17250 if test "x$ac_cv_header_stdint_h" = xyes; then :
17251 cat >>confdefs.h <<_ACEOF
17252 #define HAVE_STDINT_H 1
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
17260 $as_echo_n "checking for SIZE_MAX... " >&6; }
17261 if ${gl_cv_size_max+:} false; then :
17262 $as_echo_n "(cached) " >&6
17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h. */
17269 #include <limits.h>
17271 #include <stdint.h>
17278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17279 $EGREP "Found it" >/dev/null 2>&1; then :
17284 if test -z "$gl_cv_size_max"; then
17285 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
17286 #include <limits.h>"; then :
17289 size_t_bits_minus_1=
17292 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
17298 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17299 if test $fits_in_uint = 1; then
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 #include <stddef.h>
17304 extern unsigned long foo;
17314 if ac_fn_c_try_compile "$LINENO"; then :
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 if test $fits_in_uint = 1; then
17320 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17322 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17325 gl_cv_size_max='((size_t)~(size_t)0)'
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
17331 $as_echo "$gl_cv_size_max" >&6; }
17332 if test "$gl_cv_size_max" != yes; then
17334 cat >>confdefs.h <<_ACEOF
17335 #define SIZE_MAX $gl_cv_size_max
17343 for ac_header in stdint.h
17345 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17346 if test "x$ac_cv_header_stdint_h" = xyes; then :
17347 cat >>confdefs.h <<_ACEOF
17348 #define HAVE_STDINT_H 1
17363 LIBC_FATAL_STDERR_=1
17364 export LIBC_FATAL_STDERR_
17366 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17367 # for constant arguments. Useless!
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17369 $as_echo_n "checking for working alloca.h... " >&6; }
17370 if ${ac_cv_working_alloca_h+:} false; then :
17371 $as_echo_n "(cached) " >&6
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17375 #include <alloca.h>
17379 char *p = (char *) alloca (2 * sizeof (int));
17385 if ac_fn_c_try_link "$LINENO"; then :
17386 ac_cv_working_alloca_h=yes
17388 ac_cv_working_alloca_h=no
17390 rm -f core conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17394 $as_echo "$ac_cv_working_alloca_h" >&6; }
17395 if test $ac_cv_working_alloca_h = yes; then
17397 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17402 $as_echo_n "checking for alloca... " >&6; }
17403 if ${ac_cv_func_alloca_works+:} false; then :
17404 $as_echo_n "(cached) " >&6
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17409 # define alloca __builtin_alloca
17412 # include <malloc.h>
17413 # define alloca _alloca
17415 # ifdef HAVE_ALLOCA_H
17416 # include <alloca.h>
17421 # ifndef alloca /* predefined by HP cc +Olibcalls */
17422 void *alloca (size_t);
17432 char *p = (char *) alloca (1);
17438 if ac_fn_c_try_link "$LINENO"; then :
17439 ac_cv_func_alloca_works=yes
17441 ac_cv_func_alloca_works=no
17443 rm -f core conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17447 $as_echo "$ac_cv_func_alloca_works" >&6; }
17449 if test $ac_cv_func_alloca_works = yes; then
17451 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17454 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17455 # that cause trouble. Some versions do not even contain alloca or
17456 # contain a buggy version. If you still want to use their alloca,
17457 # use ar to extract alloca.o from them instead of compiling alloca.c.
17463 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17465 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17469 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17470 if ${ac_cv_os_cray+:} false; then :
17471 $as_echo_n "(cached) " >&6
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17475 #if defined CRAY && ! defined CRAY2
17482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17483 $EGREP "webecray" >/dev/null 2>&1; then :
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17492 $as_echo "$ac_cv_os_cray" >&6; }
17493 if test $ac_cv_os_cray = yes; then
17494 for ac_func in _getb67 GETB67 getb67; do
17495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17499 cat >>confdefs.h <<_ACEOF
17500 #define CRAY_STACKSEG_END $ac_func
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17510 $as_echo_n "checking stack direction for C alloca... " >&6; }
17511 if ${ac_cv_c_stack_direction+:} false; then :
17512 $as_echo_n "(cached) " >&6
17514 if test "$cross_compiling" = yes; then :
17515 ac_cv_c_stack_direction=0
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 $ac_includes_default
17521 find_stack_direction (int *addr, int depth)
17523 int dir, dummy = 0;
17526 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17527 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17528 return dir + dummy;
17532 main (int argc, char **argv)
17534 return find_stack_direction (0, argc + !argv + 20) < 0;
17537 if ac_fn_c_try_run "$LINENO"; then :
17538 ac_cv_c_stack_direction=1
17540 ac_cv_c_stack_direction=-1
17542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17543 conftest.$ac_objext conftest.beam conftest.$ac_ext
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17548 $as_echo "$ac_cv_c_stack_direction" >&6; }
17549 cat >>confdefs.h <<_ACEOF
17550 #define STACK_DIRECTION $ac_cv_c_stack_direction
17560 for ac_header in $gl_header_list
17562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17563 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17565 cat >>confdefs.h <<_ACEOF
17566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17585 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17586 if ${gl_cv_have_include_next+:} false; then :
17587 $as_echo_n "(cached) " >&6
17589 rm -rf conftestd1a conftestd1b conftestd2
17590 mkdir conftestd1a conftestd1b conftestd2
17591 cat <<EOF > conftestd1a/conftest.h
17592 #define DEFINED_IN_CONFTESTD1
17593 #include_next <conftest.h>
17594 #ifdef DEFINED_IN_CONFTESTD2
17597 #error "include_next doesn't work"
17600 cat <<EOF > conftestd1b/conftest.h
17601 #define DEFINED_IN_CONFTESTD1
17603 #include_next <conftest.h>
17604 #ifdef DEFINED_IN_CONFTESTD2
17607 #error "include_next doesn't work"
17610 cat <<EOF > conftestd2/conftest.h
17611 #ifndef DEFINED_IN_CONFTESTD1
17612 #error "include_next test doesn't work"
17614 #define DEFINED_IN_CONFTESTD2
17616 gl_save_CPPFLAGS="$CPPFLAGS"
17617 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 #include <conftest.h>
17622 if ac_fn_c_try_compile "$LINENO"; then :
17623 gl_cv_have_include_next=yes
17625 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17628 #include <conftest.h>
17630 if ac_fn_c_try_compile "$LINENO"; then :
17631 gl_cv_have_include_next=buggy
17633 gl_cv_have_include_next=no
17635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639 CPPFLAGS="$gl_save_CPPFLAGS"
17640 rm -rf conftestd1a conftestd1b conftestd2
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17644 $as_echo "$gl_cv_have_include_next" >&6; }
17645 PRAGMA_SYSTEM_HEADER=
17646 if test $gl_cv_have_include_next = yes; then
17647 INCLUDE_NEXT=include_next
17648 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17649 if test -n "$GCC"; then
17650 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17653 if test $gl_cv_have_include_next = buggy; then
17654 INCLUDE_NEXT=include
17655 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17657 INCLUDE_NEXT=include
17658 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17665 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17666 if ${gl_cv_pragma_columns+:} false; then :
17667 $as_echo_n "(cached) " >&6
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17678 $EGREP "choke me" >/dev/null 2>&1; then :
17679 gl_cv_pragma_columns=yes
17681 gl_cv_pragma_columns=no
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17688 $as_echo "$gl_cv_pragma_columns" >&6; }
17689 if test $gl_cv_pragma_columns = yes; then
17690 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17699 $as_echo_n "checking for complete errno.h... " >&6; }
17700 if ${gl_cv_header_errno_h_complete+:} false; then :
17701 $as_echo_n "(cached) " >&6
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17708 #if !defined ETXTBSY
17711 #if !defined ENOMSG
17717 #if !defined ENOLINK
17720 #if !defined EPROTO
17723 #if !defined EMULTIHOP
17726 #if !defined EBADMSG
17729 #if !defined EOVERFLOW
17732 #if !defined ENOTSUP
17735 #if !defined ENETRESET
17738 #if !defined ECONNABORTED
17741 #if !defined ESTALE
17744 #if !defined EDQUOT
17747 #if !defined ECANCELED
17750 #if !defined EOWNERDEAD
17753 #if !defined ENOTRECOVERABLE
17756 #if !defined EILSEQ
17761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17762 $EGREP "booboo" >/dev/null 2>&1; then :
17763 gl_cv_header_errno_h_complete=no
17765 gl_cv_header_errno_h_complete=yes
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17772 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
17773 if test $gl_cv_header_errno_h_complete = yes; then
17784 if test $gl_cv_have_include_next = yes; then
17785 gl_cv_next_errno_h='<'errno.h'>'
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17788 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
17789 if ${gl_cv_next_errno_h+:} false; then :
17790 $as_echo_n "(cached) " >&6
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17800 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17801 *) gl_absname_cpp="$ac_cpp" ;;
17806 gl_dirsep_regex='[/\\]'
17809 gl_dirsep_regex='\/'
17812 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17813 gl_header_literal_regex=`echo 'errno.h' \
17814 | sed -e "$gl_make_literal_regex_sed"`
17815 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17816 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17822 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17823 sed -n "$gl_absolute_header_sed"`
17825 gl_header=$gl_cv_absolute_errno_h
17826 gl_cv_next_errno_h='"'$gl_header'"'
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17831 $as_echo "$gl_cv_next_errno_h" >&6; }
17833 NEXT_ERRNO_H=$gl_cv_next_errno_h
17835 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17836 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17837 gl_next_as_first_directive='<'errno.h'>'
17839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17840 gl_next_as_first_directive=$gl_cv_next_errno_h
17842 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
17850 if test -n "$ERRNO_H"; then
17851 GL_GENERATE_ERRNO_H_TRUE=
17852 GL_GENERATE_ERRNO_H_FALSE='#'
17854 GL_GENERATE_ERRNO_H_TRUE='#'
17855 GL_GENERATE_ERRNO_H_FALSE=
17859 if test -n "$ERRNO_H"; then
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17861 $as_echo_n "checking for EMULTIHOP value... " >&6; }
17862 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
17863 $as_echo_n "(cached) " >&6
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17876 $EGREP "yes" >/dev/null 2>&1; then :
17877 gl_cv_header_errno_h_EMULTIHOP=yes
17879 gl_cv_header_errno_h_EMULTIHOP=no
17883 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17887 #define _XOPEN_SOURCE_EXTENDED 1
17894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17895 $EGREP "yes" >/dev/null 2>&1; then :
17896 gl_cv_header_errno_h_EMULTIHOP=hidden
17900 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
17901 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
17902 #define _XOPEN_SOURCE_EXTENDED 1
17904 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17906 #include <stdlib.h>
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17916 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17917 case $gl_cv_header_errno_h_EMULTIHOP in
17919 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
17922 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
17930 if test -n "$ERRNO_H"; then
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17932 $as_echo_n "checking for ENOLINK value... " >&6; }
17933 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
17934 $as_echo_n "(cached) " >&6
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17947 $EGREP "yes" >/dev/null 2>&1; then :
17948 gl_cv_header_errno_h_ENOLINK=yes
17950 gl_cv_header_errno_h_ENOLINK=no
17954 if test $gl_cv_header_errno_h_ENOLINK = no; then
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17958 #define _XOPEN_SOURCE_EXTENDED 1
17965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17966 $EGREP "yes" >/dev/null 2>&1; then :
17967 gl_cv_header_errno_h_ENOLINK=hidden
17971 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17972 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
17973 #define _XOPEN_SOURCE_EXTENDED 1
17975 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17977 #include <stdlib.h>
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17987 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
17988 case $gl_cv_header_errno_h_ENOLINK in
17990 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
17993 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18001 if test -n "$ERRNO_H"; then
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18003 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18004 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
18005 $as_echo_n "(cached) " >&6
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18018 $EGREP "yes" >/dev/null 2>&1; then :
18019 gl_cv_header_errno_h_EOVERFLOW=yes
18021 gl_cv_header_errno_h_EOVERFLOW=no
18025 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h. */
18029 #define _XOPEN_SOURCE_EXTENDED 1
18036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18037 $EGREP "yes" >/dev/null 2>&1; then :
18038 gl_cv_header_errno_h_EOVERFLOW=hidden
18042 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18043 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18044 #define _XOPEN_SOURCE_EXTENDED 1
18046 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18048 #include <stdlib.h>
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18058 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18059 case $gl_cv_header_errno_h_EOVERFLOW in
18061 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18064 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18077 GL_COND_LIBTOOL_TRUE=
18078 GL_COND_LIBTOOL_FALSE='#'
18080 GL_COND_LIBTOOL_TRUE='#'
18081 GL_COND_LIBTOOL_FALSE=
18084 gl_cond_libtool=true
18085 gl_m4_base='gnulib-m4'
18096 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
18103 if test $ac_cv_func_alloca_works = no; then
18119 # Define an additional variable used in the Makefile substitution.
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18124 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
18129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18130 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18138 if test -n "$ALLOCA_H"; then
18139 GL_GENERATE_ALLOCA_H_TRUE=
18140 GL_GENERATE_ALLOCA_H_FALSE='#'
18142 GL_GENERATE_ALLOCA_H_TRUE='#'
18143 GL_GENERATE_ALLOCA_H_FALSE=
18150 for ac_header in stdint.h
18152 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18153 if test "x$ac_cv_header_stdint_h" = xyes; then :
18154 cat >>confdefs.h <<_ACEOF
18155 #define HAVE_STDINT_H 1
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18163 $as_echo_n "checking for SIZE_MAX... " >&6; }
18164 if ${gl_cv_size_max+:} false; then :
18165 $as_echo_n "(cached) " >&6
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18172 #include <limits.h>
18174 #include <stdint.h>
18181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18182 $EGREP "Found it" >/dev/null 2>&1; then :
18187 if test -z "$gl_cv_size_max"; then
18188 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
18189 #include <limits.h>"; then :
18192 size_t_bits_minus_1=
18195 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
18201 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18202 if test $fits_in_uint = 1; then
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18205 #include <stddef.h>
18207 extern unsigned long foo;
18217 if ac_fn_c_try_compile "$LINENO"; then :
18220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222 if test $fits_in_uint = 1; then
18223 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18225 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18228 gl_cv_size_max='((size_t)~(size_t)0)'
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18234 $as_echo "$gl_cv_size_max" >&6; }
18235 if test "$gl_cv_size_max" != yes; then
18237 cat >>confdefs.h <<_ACEOF
18238 #define SIZE_MAX $gl_cv_size_max
18246 for ac_header in stdint.h
18248 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18249 if test "x$ac_cv_header_stdint_h" = xyes; then :
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_STDINT_H 1
18259 # End of code from modules
18278 gl_source_base='tests'
18279 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
18281 gl_module_indicator_condition=$gltests_WITNESS
18292 for ac_func in snprintf vasprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18297 cat >>confdefs.h <<_ACEOF
18298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18304 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18306 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
18312 cat >>confdefs.h <<_ACEOF
18313 #define HAVE_DECL__SNPRINTF $ac_have_decl
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18319 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18320 if ${gt_cv_func_printf_posix+:} false; then :
18321 $as_echo_n "(cached) " >&6
18324 if test "$cross_compiling" = yes; then :
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18329 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18335 $EGREP "notposix" >/dev/null 2>&1; then :
18336 gt_cv_func_printf_posix="guessing no"
18338 gt_cv_func_printf_posix="guessing yes"
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18348 #include <string.h>
18349 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18350 dollar expansion (possibly an autoconf bug). */
18351 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18352 static char buf[100];
18355 sprintf (buf, format, 33, 55);
18356 return (strcmp (buf, "55 33") != 0);
18359 if ac_fn_c_try_run "$LINENO"; then :
18360 gt_cv_func_printf_posix=yes
18362 gt_cv_func_printf_posix=no
18364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18365 conftest.$ac_objext conftest.beam conftest.$ac_ext
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18371 $as_echo "$gt_cv_func_printf_posix" >&6; }
18372 case $gt_cv_func_printf_posix in
18375 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18381 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
18382 # Extract the first word of "dvips", so it can be a program name with args.
18383 set dummy dvips; ac_word=$2
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18385 $as_echo_n "checking for $ac_word... " >&6; }
18386 if ${ac_cv_path_DVIPS+:} false; then :
18387 $as_echo_n "(cached) " >&6
18391 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
18394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18398 test -z "$as_dir" && as_dir=.
18399 for ac_exec_ext in '' $ac_executable_extensions; do
18400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18401 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
18402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18409 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
18413 DVIPS=$ac_cv_path_DVIPS
18414 if test -n "$DVIPS"; then
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
18416 $as_echo "$DVIPS" >&6; }
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18423 # Extract the first word of "texi2pdf", so it can be a program name with args.
18424 set dummy texi2pdf; ac_word=$2
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426 $as_echo_n "checking for $ac_word... " >&6; }
18427 if ${ac_cv_path_TEXI2PDF+:} false; then :
18428 $as_echo_n "(cached) " >&6
18432 ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
18435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18436 for as_dir in $PATH
18439 test -z "$as_dir" && as_dir=.
18440 for ac_exec_ext in '' $ac_executable_extensions; do
18441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18442 ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
18443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18450 test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
18454 TEXI2PDF=$ac_cv_path_TEXI2PDF
18455 if test -n "$TEXI2PDF"; then
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
18457 $as_echo "$TEXI2PDF" >&6; }
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 $as_echo "no" >&6; }
18464 # Extract the first word of "perl", so it can be a program name with args.
18465 set dummy perl; ac_word=$2
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467 $as_echo_n "checking for $ac_word... " >&6; }
18468 if ${ac_cv_path_PERL+:} false; then :
18469 $as_echo_n "(cached) " >&6
18473 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18477 for as_dir in $PATH
18480 test -z "$as_dir" && as_dir=.
18481 for ac_exec_ext in '' $ac_executable_extensions; do
18482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18483 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18491 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
18495 PERL=$ac_cv_path_PERL
18496 if test -n "$PERL"; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18498 $as_echo "$PERL" >&6; }
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18506 ac_config_files="$ac_config_files Makefile"
18509 cat >confcache <<\_ACEOF
18510 # This file is a shell script that caches the results of configure
18511 # tests run on this system so they can be shared between configure
18512 # scripts and configure runs, see configure's option --config-cache.
18513 # It is not useful on other systems. If it contains results you don't
18514 # want to keep, you may remove or edit it.
18516 # config.status only pays attention to the cache file if you give it
18517 # the --recheck option to rerun configure.
18519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18521 # following values.
18525 # The following way of writing the cache mishandles newlines in values,
18526 # but we know of no workaround that is simple, portable, and efficient.
18527 # So, we kill variables containing newlines.
18528 # Ultrix sh set writes to stderr and can't be redirected directly,
18529 # and sets the high bit in the cache file unless we assign to the vars.
18531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18532 eval ac_val=\$$ac_var
18536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18540 _ | IFS | as_nl) ;; #(
18541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18542 *) { eval $ac_var=; unset $ac_var;} ;;
18548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18549 *${as_nl}ac_space=\ *)
18550 # `set' does not quote correctly, so add quotes: double-quote
18551 # substitution turns \\\\ into \\, and sed turns \\ into \.
18554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18557 # `set' quotes correctly as required by POSIX, so do not add quotes.
18558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18572 if test -w "$cache_file"; then
18573 if test "x$cache_file" != "x/dev/null"; then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18575 $as_echo "$as_me: updating cache $cache_file" >&6;}
18576 if test ! -f "$cache_file" || test -h "$cache_file"; then
18577 cat confcache >"$cache_file"
18579 case $cache_file in #(
18581 mv -f confcache "$cache_file"$$ &&
18582 mv -f "$cache_file"$$ "$cache_file" ;; #(
18584 mv -f confcache "$cache_file" ;;
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18590 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18596 # Let make expand exec_prefix.
18597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18599 DEFS=-DHAVE_CONFIG_H
18604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18605 # 1. Remove the extension, and $U if already installed.
18606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18609 # will be set to the directory where LIBOBJS objects are built.
18610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18613 LIBOBJS=$ac_libobjs
18615 LTLIBOBJS=$ac_ltlibobjs
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18619 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18620 if test -n "$am_sleep_pid"; then
18621 # Hide warnings about reused PIDs.
18622 wait $am_sleep_pid 2>/dev/null
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18625 $as_echo "done" >&6; }
18626 if test -n "$EXEEXT"; then
18628 am__EXEEXT_FALSE='#'
18630 am__EXEEXT_TRUE='#'
18634 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18635 as_fn_error $? "conditional \"AMDEP\" was never defined.
18636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18638 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18639 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18642 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18643 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18646 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18647 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18650 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18651 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18654 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18655 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18661 if test -n "$gl_LIBOBJS"; then
18662 # Remove the extension.
18663 sed_drop_objext='s/\.o$//;s/\.obj$//'
18664 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18665 gl_libobjs="$gl_libobjs $i.$ac_objext"
18666 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18669 gl_LIBOBJS=$gl_libobjs
18671 gl_LTLIBOBJS=$gl_ltlibobjs
18677 if test -n "$gltests_LIBOBJS"; then
18678 # Remove the extension.
18679 sed_drop_objext='s/\.o$//;s/\.obj$//'
18680 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18681 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18682 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18685 gltests_LIBOBJS=$gltests_libobjs
18687 gltests_LTLIBOBJS=$gltests_ltlibobjs
18691 : "${CONFIG_STATUS=./config.status}"
18693 ac_clean_files_save=$ac_clean_files
18694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18696 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18700 # Generated by $as_me.
18701 # Run this file to recreate the current configuration.
18702 # Compiler output produced by configure, useful for debugging
18703 # configure, is in config.log if it exists.
18706 ac_cs_recheck=false
18709 SHELL=\${CONFIG_SHELL-$SHELL}
18712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18713 ## -------------------- ##
18714 ## M4sh Initialization. ##
18715 ## -------------------- ##
18717 # Be more Bourne compatible
18718 DUALCASE=1; export DUALCASE # for MKS sh
18719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18723 # is contrary to our usage. Disable this feature.
18724 alias -g '${1+"$@"}'='"$@"'
18725 setopt NO_GLOB_SUBST
18727 case `(set -o) 2>/dev/null` in #(
18739 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18740 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18743 # Prefer a ksh shell builtin over an external printf program on Solaris,
18744 # but without wasting forks for bash or zsh.
18745 if test -z "$BASH_VERSION$ZSH_VERSION" \
18746 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18747 as_echo='print -r --'
18748 as_echo_n='print -rn --'
18749 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18750 as_echo='printf %s\n'
18751 as_echo_n='printf %s'
18753 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18754 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18755 as_echo_n='/usr/ucb/echo -n'
18757 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18758 as_echo_n_body='eval
18762 expr "X$arg" : "X\\(.*\\)$as_nl";
18763 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18765 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18767 export as_echo_n_body
18768 as_echo_n='sh -c $as_echo_n_body as_echo'
18770 export as_echo_body
18771 as_echo='sh -c $as_echo_body as_echo'
18774 # The user is always right.
18775 if test "${PATH_SEPARATOR+set}" != set; then
18777 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18778 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18785 # We need space, tab and new line, in precisely that order. Quoting is
18786 # there to prevent editors from complaining about space-tab.
18787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18788 # splitting by setting IFS to empty value.)
18791 # Find who we are. Look in the path if we contain no directory separator.
18794 *[\\/]* ) as_myself=$0 ;;
18795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796 for as_dir in $PATH
18799 test -z "$as_dir" && as_dir=.
18800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18806 # We did not find ourselves, most probably we were run as `sh COMMAND'
18807 # in which case we are not to be found in the path.
18808 if test "x$as_myself" = x; then
18811 if test ! -f "$as_myself"; then
18812 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18816 # Unset variables that we do not need and which cause bugs (e.g. in
18817 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18818 # suppresses any "Segmentation fault" message there. '((' could
18819 # trigger a bug in pdksh 5.2.14.
18820 for as_var in BASH_ENV ENV MAIL MAILPATH
18821 do eval test x\${$as_var+set} = xset \
18822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18835 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18838 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18839 # ----------------------------------------
18840 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18841 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18842 # script with STATUS, using 1 if that was 0.
18845 as_status=$1; test $as_status -eq 0 && as_status=1
18847 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18848 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18850 $as_echo "$as_me: error: $2" >&2
18851 as_fn_exit $as_status
18855 # as_fn_set_status STATUS
18856 # -----------------------
18857 # Set $? to STATUS, without forking.
18858 as_fn_set_status ()
18861 } # as_fn_set_status
18863 # as_fn_exit STATUS
18864 # -----------------
18865 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18869 as_fn_set_status $1
18875 # Portably unset VAR.
18878 { eval $1=; unset $1;}
18880 as_unset=as_fn_unset
18881 # as_fn_append VAR VALUE
18882 # ----------------------
18883 # Append the text in VALUE to the end of the definition contained in VAR. Take
18884 # advantage of any shell optimizations that allow amortized linear growth over
18885 # repeated appends, instead of the typical quadratic growth present in naive
18887 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18888 eval 'as_fn_append ()
18899 # as_fn_arith ARG...
18900 # ------------------
18901 # Perform arithmetic evaluation on the ARGs, and store the result in the
18902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18903 # must be portable across $(()) and expr.
18904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18905 eval 'as_fn_arith ()
18912 as_val=`expr "$@" || test $? -eq 1`
18917 if expr a : '\(a\)' >/dev/null 2>&1 &&
18918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18925 as_basename=basename
18930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18936 as_me=`$as_basename -- "$0" ||
18937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18938 X"$0" : 'X\(//\)$' \| \
18939 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18941 sed '/^.*\/\([^/][^/]*\)\/*$/{
18955 # Avoid depending upon Character Ranges.
18956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18959 as_cr_digits='0123456789'
18960 as_cr_alnum=$as_cr_Letters$as_cr_digits
18962 ECHO_C= ECHO_N= ECHO_T=
18963 case `echo -n x` in #(((((
18965 case `echo 'xy\c'` in
18966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18975 rm -f conf$$ conf$$.exe conf$$.file
18976 if test -d conf$$.dir; then
18977 rm -f conf$$.dir/conf$$.file
18980 mkdir conf$$.dir 2>/dev/null
18982 if (echo >conf$$.file) 2>/dev/null; then
18983 if ln -s conf$$.file conf$$ 2>/dev/null; then
18985 # ... but there are two gotchas:
18986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18988 # In both cases, we have to default to `cp -pR'.
18989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18991 elif ln conf$$.file conf$$ 2>/dev/null; then
18999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19000 rmdir conf$$.dir 2>/dev/null
19005 # Create "$as_dir" as a directory, including parents if necessary.
19010 -*) as_dir=./$as_dir;;
19012 test -d "$as_dir" || eval $as_mkdir_p || {
19016 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19017 *) as_qdir=$as_dir;;
19019 as_dirs="'$as_qdir' $as_dirs"
19020 as_dir=`$as_dirname -- "$as_dir" ||
19021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19022 X"$as_dir" : 'X\(//\)[^/]' \| \
19023 X"$as_dir" : 'X\(//\)$' \| \
19024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19025 $as_echo X"$as_dir" |
19026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19030 /^X\(\/\/\)[^/].*/{
19043 test -d "$as_dir" && break
19045 test -z "$as_dirs" || eval "mkdir $as_dirs"
19046 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19050 if mkdir -p . 2>/dev/null; then
19051 as_mkdir_p='mkdir -p "$as_dir"'
19053 test -d ./-p && rmdir ./-p
19058 # as_fn_executable_p FILE
19059 # -----------------------
19060 # Test if FILE is an executable regular file.
19061 as_fn_executable_p ()
19063 test -f "$1" && test -x "$1"
19064 } # as_fn_executable_p
19065 as_test_x='test -x'
19066 as_executable_p=as_fn_executable_p
19068 # Sed expression to map a string onto a valid CPP name.
19069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19071 # Sed expression to map a string onto a valid variable name.
19072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19076 ## ----------------------------------- ##
19077 ## Main body of $CONFIG_STATUS script. ##
19078 ## ----------------------------------- ##
19080 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19083 # Save the log message, to keep $0 and so on meaningful, and to
19084 # report actual input values of CONFIG_FILES etc. instead of their
19085 # values after options handling.
19087 This file was extended by libasprintf $as_me 1.0, which was
19088 generated by GNU Autoconf 2.69. Invocation command line was
19090 CONFIG_FILES = $CONFIG_FILES
19091 CONFIG_HEADERS = $CONFIG_HEADERS
19092 CONFIG_LINKS = $CONFIG_LINKS
19093 CONFIG_COMMANDS = $CONFIG_COMMANDS
19096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19101 case $ac_config_files in *"
19102 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19105 case $ac_config_headers in *"
19106 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19111 # Files that config.status was made for.
19112 config_files="$ac_config_files"
19113 config_headers="$ac_config_headers"
19114 config_commands="$ac_config_commands"
19118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19120 \`$as_me' instantiates files and other configuration actions
19121 from templates according to the current configuration. Unless the files
19122 and actions are specified as TAGs, all are instantiated by default.
19124 Usage: $0 [OPTION]... [TAG]...
19126 -h, --help print this help, then exit
19127 -V, --version print version number and configuration settings, then exit
19128 --config print configuration, then exit
19129 -q, --quiet, --silent
19130 do not print progress messages
19131 -d, --debug don't remove temporary files
19132 --recheck update $as_me by reconfiguring in the same conditions
19133 --file=FILE[:TEMPLATE]
19134 instantiate the configuration file FILE
19135 --header=FILE[:TEMPLATE]
19136 instantiate the configuration header FILE
19138 Configuration files:
19141 Configuration headers:
19144 Configuration commands:
19147 Report bugs to the package provider."
19150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19151 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19153 libasprintf config.status 1.0
19154 configured by $0, generated by GNU Autoconf 2.69,
19155 with options \\"\$ac_cs_config\\"
19157 Copyright (C) 2012 Free Software Foundation, Inc.
19158 This config.status script is free software; the Free Software Foundation
19159 gives unlimited permission to copy, distribute and modify it."
19166 test -n "\$AWK" || AWK=awk
19169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19170 # The default lists apply if the user does not specify any file.
19176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19177 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19193 # Handling of the options.
19194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19196 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19197 $as_echo "$ac_cs_version"; exit ;;
19198 --config | --confi | --conf | --con | --co | --c )
19199 $as_echo "$ac_cs_config"; exit ;;
19200 --debug | --debu | --deb | --de | --d | -d )
19202 --file | --fil | --fi | --f )
19205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19206 '') as_fn_error $? "missing file argument" ;;
19208 as_fn_append CONFIG_FILES " '$ac_optarg'"
19209 ac_need_defaults=false;;
19210 --header | --heade | --head | --hea )
19213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19215 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19216 ac_need_defaults=false;;
19218 # Conflict between --help and --header
19219 as_fn_error $? "ambiguous option: \`$1'
19220 Try \`$0 --help' for more information.";;
19221 --help | --hel | -h )
19222 $as_echo "$ac_cs_usage"; exit ;;
19223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19227 # This is an error.
19228 -*) as_fn_error $? "unrecognized option: \`$1'
19229 Try \`$0 --help' for more information." ;;
19231 *) as_fn_append ac_config_targets " $1"
19232 ac_need_defaults=false ;;
19238 ac_configure_extra_args=
19240 if $ac_cs_silent; then
19242 ac_configure_extra_args="$ac_configure_extra_args --silent"
19246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19247 if \$ac_cs_recheck; then
19248 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19250 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19251 CONFIG_SHELL='$SHELL'
19252 export CONFIG_SHELL
19257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19262 ## Running $as_me. ##
19268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19272 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19275 # The HP-UX ksh and POSIX shell print the target directory to stdout
19276 # if CDPATH is set.
19277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19279 sed_quote_subst='$sed_quote_subst'
19280 double_quote_subst='$double_quote_subst'
19281 delay_variable_subst='$delay_variable_subst'
19282 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19283 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19284 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19285 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19286 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19287 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19288 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19289 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19290 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19291 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19292 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19293 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19294 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19295 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19296 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19297 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19298 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19299 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19300 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19301 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19302 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19303 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19304 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19305 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19306 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19315 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19316 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19317 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19318 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19319 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19320 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19321 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19322 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19323 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19324 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19325 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19326 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19327 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19328 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19329 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19330 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19331 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19332 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19333 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19334 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19335 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19336 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19337 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19338 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19339 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19340 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19341 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"`'
19342 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19343 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19344 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19345 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19346 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19347 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19348 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19349 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19350 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19351 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19352 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19353 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19354 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19355 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19356 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19357 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19358 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19359 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19360 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19361 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19362 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19363 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19364 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19365 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19366 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19367 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19368 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19369 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19370 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19371 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19372 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19373 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19374 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19375 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19376 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19377 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19378 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19379 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19380 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19381 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19382 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19383 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19384 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19385 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19386 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19387 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19388 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19389 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19390 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19391 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19392 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19393 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19394 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19395 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19396 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19397 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19398 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19399 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19400 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19401 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19402 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19403 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19404 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19405 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19406 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19407 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19408 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19409 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19410 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19411 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19412 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19413 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19414 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19415 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19416 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19417 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19418 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19419 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19420 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19421 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19422 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19423 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19424 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19425 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19426 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19427 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19428 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19429 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19430 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19431 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19432 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19433 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19434 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19435 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19436 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19437 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19438 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19439 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19440 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19441 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19442 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19443 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19444 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19445 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19446 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19447 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19448 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19449 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19450 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19451 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19452 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19453 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19454 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19455 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19456 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19457 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19458 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19459 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19460 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19461 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19462 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19463 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19464 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19465 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19466 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19467 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19468 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19469 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19470 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19471 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19474 LTCFLAGS='$LTCFLAGS'
19475 compiler='$compiler_DEFAULT'
19477 # A function that is used when there is no print builtin or printf.
19478 func_fallback_echo ()
19480 eval 'cat <<_LTECHO_EOF
19485 # Quote evaled strings.
19502 deplibs_check_method \
19506 sharedlib_from_linklib_cmd \
19509 archiver_list_spec \
19515 lt_cv_sys_global_symbol_pipe \
19516 lt_cv_sys_global_symbol_to_cdecl \
19517 lt_cv_sys_global_symbol_to_import \
19518 lt_cv_sys_global_symbol_to_c_name_address \
19519 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19520 lt_cv_nm_interface \
19521 nm_file_list_spec \
19522 lt_cv_truncate_bin \
19523 lt_prog_compiler_no_builtin_flag \
19524 lt_prog_compiler_pic \
19525 lt_prog_compiler_wl \
19526 lt_prog_compiler_static \
19527 lt_cv_prog_compiler_c_o \
19536 export_dynamic_flag_spec \
19537 whole_archive_flag_spec \
19538 compiler_needs_object \
19540 allow_undefined_flag \
19541 no_undefined_flag \
19542 hardcode_libdir_flag_spec \
19543 hardcode_libdir_separator \
19547 variables_saved_for_relink \
19549 library_names_spec \
19551 install_override_mode \
19555 compiler_lib_search_dirs \
19560 compiler_lib_search_path \
19564 lt_prog_compiler_no_builtin_flag_CXX \
19565 lt_prog_compiler_pic_CXX \
19566 lt_prog_compiler_wl_CXX \
19567 lt_prog_compiler_static_CXX \
19568 lt_cv_prog_compiler_c_o_CXX \
19569 export_dynamic_flag_spec_CXX \
19570 whole_archive_flag_spec_CXX \
19571 compiler_needs_object_CXX \
19573 allow_undefined_flag_CXX \
19574 no_undefined_flag_CXX \
19575 hardcode_libdir_flag_spec_CXX \
19576 hardcode_libdir_separator_CXX \
19577 exclude_expsyms_CXX \
19578 include_expsyms_CXX \
19579 file_list_spec_CXX \
19580 compiler_lib_search_dirs_CXX \
19581 predep_objects_CXX \
19582 postdep_objects_CXX \
19585 compiler_lib_search_path_CXX; do
19586 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19587 *[\\\\\\\`\\"\\\$]*)
19588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19596 # Double-quote double-evaled strings.
19597 for var in reload_cmds \
19598 old_postinstall_cmds \
19599 old_postuninstall_cmds \
19601 extract_expsyms_cmds \
19602 old_archive_from_new_cmds \
19603 old_archive_from_expsyms_cmds \
19605 archive_expsym_cmds \
19607 module_expsym_cmds \
19608 export_symbols_cmds \
19612 postuninstall_cmds \
19614 sys_lib_search_path_spec \
19615 configure_time_dlsearch_path \
19616 configure_time_lt_sys_library_path \
19618 old_archive_cmds_CXX \
19619 old_archive_from_new_cmds_CXX \
19620 old_archive_from_expsyms_cmds_CXX \
19622 archive_expsym_cmds_CXX \
19624 module_expsym_cmds_CXX \
19625 export_symbols_cmds_CXX \
19627 postlink_cmds_CXX; do
19628 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19629 *[\\\\\\\`\\"\\\$]*)
19630 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19633 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19638 ac_aux_dir='$ac_aux_dir'
19640 # See if we are running on zsh, and set the options that allow our
19641 # commands through without removal of \ escapes INIT.
19642 if test -n "\${ZSH_VERSION+set}"; then
19643 setopt NO_GLOB_SUBST
19659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19661 # Handling of arguments.
19662 for ac_config_target in $ac_config_targets
19664 case $ac_config_target in
19665 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19666 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19667 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19670 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19675 # If the user did not use the arguments to specify the items to instantiate,
19676 # then the envvar interface is used. Set only those that are not.
19677 # We use the long form for the default assignment because of an extremely
19678 # bizarre bug on SunOS 4.1.3.
19679 if $ac_need_defaults; then
19680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19685 # Have a temporary directory for convenience. Make it in the build tree
19686 # simply because there is no reason against having it here, and in addition,
19687 # creating and moving files from /tmp can sometimes cause problems.
19688 # Hook for its removal unless debugging.
19689 # Note that there is a small window in which the directory will not be cleaned:
19690 # after its creation but before its name has been assigned to `$tmp'.
19694 trap 'exit_status=$?
19695 : "${ac_tmp:=$tmp}"
19696 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19698 trap 'as_fn_exit 1' 1 2 13 15
19700 # Create a (secure) tmp directory for tmp files.
19703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19707 tmp=./conf$$-$RANDOM
19708 (umask 077 && mkdir "$tmp")
19709 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19712 # Set up the scripts for CONFIG_FILES section.
19713 # No need to generate them if there are no CONFIG_FILES.
19714 # This happens for instance with `./config.status config.h'.
19715 if test -n "$CONFIG_FILES"; then
19718 ac_cr=`echo X | tr X '\015'`
19719 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19720 # But we know of no other shell where ac_cr would be empty at this
19721 # point, so we can use a bashism as a fallback.
19722 if test "x$ac_cr" = x; then
19723 eval ac_cr=\$\'\\r\'
19725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19729 ac_cs_awk_cr=$ac_cr
19732 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19737 echo "cat >conf$$subs.awk <<_ACEOF" &&
19738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19740 } >conf$$subs.sh ||
19741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19742 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19744 for ac_last_try in false false false false false :; do
19745 . ./conf$$subs.sh ||
19746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19749 if test $ac_delim_n = $ac_delim_num; then
19751 elif $ac_last_try; then
19752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19757 rm -f conf$$subs.sh
19759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19760 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19764 s/^/S["/; s/!.*/"]=/
19774 s/\(.\{148\}\)..*/\1/
19776 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19788 s/\(.\{148\}\)..*/\1/
19790 s/["\\]/\\&/g; s/^/"/; s/$/"/
19794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19799 ' <conf$$subs.awk | sed '
19804 ' >>$CONFIG_STATUS || ac_write_fail=1
19805 rm -f conf$$subs.awk
19806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19808 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19809 for (key in S) S_is_set[key] = 1
19815 nfields = split(line, field, "@")
19817 len = length(field[1])
19818 for (i = 2; i < nfields; i++) {
19820 keylen = length(key)
19821 if (S_is_set[key]) {
19823 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19824 len += length(value) + length(field[++i])
19835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19836 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19837 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19840 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19841 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19844 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19845 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19846 # trailing colons and then remove the whole line if VPATH becomes empty
19847 # (actually we leave an empty line to preserve line numbers).
19848 if test "x$srcdir" = x.; then
19849 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868 fi # test -n "$CONFIG_FILES"
19870 # Set up the scripts for CONFIG_HEADERS section.
19871 # No need to generate them if there are no CONFIG_HEADERS.
19872 # This happens for instance with `./config.status Makefile'.
19873 if test -n "$CONFIG_HEADERS"; then
19874 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19878 # Transform confdefs.h into an awk script `defines.awk', embedded as
19879 # here-document in config.status, that substitutes the proper values into
19880 # config.h.in to produce config.h.
19882 # Create a delimiter string that does not exist in confdefs.h, to ease
19883 # handling of long lines.
19885 for ac_last_try in false false :; do
19886 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19887 if test -z "$ac_tt"; then
19889 elif $ac_last_try; then
19890 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19896 # For the awk script, D is an array of macro values keyed by name,
19897 # likewise P contains macro parameters if any. Preserve backslash
19898 # newline sequences.
19900 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19902 s/.\{148\}/&'"$ac_delim"'/g
19905 s/^[ ]*#[ ]*define[ ][ ]*/ /
19912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19918 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19919 D["\1"]=" \3\\\\\\n"\\/p
19921 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19926 s/.\{148\}/&'"$ac_delim"'/g
19931 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19934 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19936 ' <confdefs.h | sed '
19937 s/'"$ac_delim"'/"\\\
19938 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19941 for (key in D) D_is_set[key] = 1
19944 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19946 split(line, arg, " ")
19947 if (arg[1] == "#") {
19951 defundef = substr(arg[1], 2)
19954 split(mac1, mac2, "(") #)
19956 prefix = substr(line, 1, index(line, defundef) - 1)
19957 if (D_is_set[macro]) {
19958 # Preserve the white space surrounding the "#".
19959 print prefix "define", macro P[macro] D[macro]
19962 # Replace #undef with comments. This is necessary, for example,
19963 # in the case of _POSIX_SOURCE, which is predefined and required
19964 # on some systems where configure will not decide to define it.
19965 if (defundef == "undef") {
19966 print "/*", prefix defundef, macro, "*/"
19974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19975 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19976 fi # test -n "$CONFIG_HEADERS"
19979 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19984 :[FHLC]) ac_mode=$ac_tag; continue;;
19986 case $ac_mode$ac_tag in
19988 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19989 :[FH]-) ac_tag=-:-;;
19990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20007 -) ac_f="$ac_tmp/stdin";;
20008 *) # Look for the file first in the build tree, then in the source tree
20009 # (if the path is not absolute). The absolute path cannot be DOS-style,
20010 # because $ac_f cannot contain `:'.
20014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20016 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20018 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20019 as_fn_append ac_file_inputs " '$ac_f'"
20022 # Let's still pretend it is `configure' which instantiates (i.e., don't
20023 # use $as_me), people would be surprised to read:
20024 # /* config.h. Generated by config.status. */
20025 configure_input='Generated from '`
20026 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20028 if test x"$ac_file" != x-; then
20029 configure_input="$ac_file. $configure_input"
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20031 $as_echo "$as_me: creating $ac_file" >&6;}
20033 # Neutralize special characters interpreted by sed in replacement strings.
20034 case $configure_input in #(
20035 *\&* | *\|* | *\\* )
20036 ac_sed_conf_input=`$as_echo "$configure_input" |
20037 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20038 *) ac_sed_conf_input=$configure_input;;
20042 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20048 ac_dir=`$as_dirname -- "$ac_file" ||
20049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20050 X"$ac_file" : 'X\(//\)[^/]' \| \
20051 X"$ac_file" : 'X\(//\)$' \| \
20052 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20053 $as_echo X"$ac_file" |
20054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20058 /^X\(\/\/\)[^/].*/{
20071 as_dir="$ac_dir"; as_fn_mkdir_p
20075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20077 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20078 # A ".." for each directory in $ac_dir_suffix.
20079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20080 case $ac_top_builddir_sub in
20081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20085 ac_abs_top_builddir=$ac_pwd
20086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20087 # for backward compatibility:
20088 ac_top_builddir=$ac_top_build_prefix
20091 .) # We are building in place.
20093 ac_top_srcdir=$ac_top_builddir_sub
20094 ac_abs_top_srcdir=$ac_pwd ;;
20095 [\\/]* | ?:[\\/]* ) # Absolute name.
20096 ac_srcdir=$srcdir$ac_dir_suffix;
20097 ac_top_srcdir=$srcdir
20098 ac_abs_top_srcdir=$srcdir ;;
20099 *) # Relative name.
20100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20101 ac_top_srcdir=$ac_top_build_prefix$srcdir
20102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20117 ac_MKDIR_P=$MKDIR_P
20119 [\\/$]* | ?:[\\/]* ) ;;
20120 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20125 # If the template does not know about datarootdir, expand it.
20126 # FIXME: This hack should be removed a few years after 2.60.
20127 ac_datarootdir_hack=; ac_datarootdir_seen=
20138 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20139 *datarootdir*) ac_datarootdir_seen=yes;;
20140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20142 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20145 ac_datarootdir_hack='
20146 s&@datadir@&$datadir&g
20147 s&@docdir@&$docdir&g
20148 s&@infodir@&$infodir&g
20149 s&@localedir@&$localedir&g
20150 s&@mandir@&$mandir&g
20151 s&\\\${datarootdir}&$datarootdir&g' ;;
20155 # Neutralize VPATH when `$srcdir' = `.'.
20156 # Shell code in configure.ac might set extrasub.
20157 # FIXME: do we really want to maintain this feature?
20158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20159 ac_sed_extra="$ac_vpsub
20162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20165 s|@configure_input@|$ac_sed_conf_input|;t t
20166 s&@top_builddir@&$ac_top_builddir_sub&;t t
20167 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20168 s&@srcdir@&$ac_srcdir&;t t
20169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20170 s&@top_srcdir@&$ac_top_srcdir&;t t
20171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20172 s&@builddir@&$ac_builddir&;t t
20173 s&@abs_builddir@&$ac_abs_builddir&;t t
20174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20175 s&@INSTALL@&$ac_INSTALL&;t t
20176 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20177 $ac_datarootdir_hack
20179 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20180 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20183 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20185 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20187 which seems to be undefined. Please make sure it is defined" >&5
20188 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20189 which seems to be undefined. Please make sure it is defined" >&2;}
20191 rm -f "$ac_tmp/stdin"
20193 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20194 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20202 if test x"$ac_file" != x-; then
20204 $as_echo "/* $configure_input */" \
20205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20206 } >"$ac_tmp/config.h" \
20207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20208 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20210 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20213 mv "$ac_tmp/config.h" "$ac_file" \
20214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20217 $as_echo "/* $configure_input */" \
20218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20219 || as_fn_error $? "could not create -" "$LINENO" 5
20221 # Compute "$ac_file"'s index in $config_headers.
20224 for _am_header in $config_headers :; do
20225 case $_am_header in
20226 $_am_arg | $_am_arg:* )
20229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20232 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20233 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20234 X"$_am_arg" : 'X\(//\)[^/]' \| \
20235 X"$_am_arg" : 'X\(//\)$' \| \
20236 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20237 $as_echo X"$_am_arg" |
20238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20242 /^X\(\/\/\)[^/].*/{
20254 s/.*/./; q'`/stamp-h$_am_stamp_count
20257 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20258 $as_echo "$as_me: executing $ac_file commands" >&6;}
20263 case $ac_file$ac_mode in
20264 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20265 # Older Autoconf quotes --file arguments for eval, but not when files
20266 # are listed without --file. Let's play safe and only enable the eval
20267 # if we detect the quoting.
20268 case $CONFIG_FILES in
20269 *\'*) eval set x "$CONFIG_FILES" ;;
20270 *) set x $CONFIG_FILES ;;
20275 # Strip MF so we end up with the name of the file.
20276 mf=`echo "$mf" | sed -e 's/:.*$//'`
20277 # Check whether this is an Automake generated Makefile or not.
20278 # We used to match only the files named 'Makefile.in', but
20279 # some people rename them; so instead we look at the file content.
20280 # Grep'ing the first line is not enough: some people post-process
20281 # each Makefile.in and add a new line on top of each file to say so.
20282 # Grep'ing the whole file is not good either: AIX grep has a line
20283 # limit of 2048, but all sed's we know have understand at least 4000.
20284 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20285 dirpart=`$as_dirname -- "$mf" ||
20286 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20287 X"$mf" : 'X\(//\)[^/]' \| \
20288 X"$mf" : 'X\(//\)$' \| \
20289 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20295 /^X\(\/\/\)[^/].*/{
20311 # Extract the definition of DEPDIR, am__include, and am__quote
20312 # from the Makefile without running 'make'.
20313 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20314 test -z "$DEPDIR" && continue
20315 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20316 test -z "$am__include" && continue
20317 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20318 # Find all dependency output files, they are included files with
20319 # $(DEPDIR) in their names. We invoke sed twice because it is the
20320 # simplest approach to changing $(DEPDIR) to its actual value in the
20322 for file in `sed -n "
20323 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20324 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20325 # Make sure the directory exists.
20326 test -f "$dirpart/$file" && continue
20327 fdir=`$as_dirname -- "$file" ||
20328 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20329 X"$file" : 'X\(//\)[^/]' \| \
20330 X"$file" : 'X\(//\)$' \| \
20331 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20332 $as_echo X"$file" |
20333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20337 /^X\(\/\/\)[^/].*/{
20350 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20351 # echo "creating $dirpart/$file"
20352 echo '# dummy' > "$dirpart/$file"
20359 # See if we are running on zsh, and set the options that allow our
20360 # commands through without removal of \ escapes.
20361 if test -n "${ZSH_VERSION+set}"; then
20362 setopt NO_GLOB_SUBST
20366 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20369 cat <<_LT_EOF >> "$cfgfile"
20371 # Generated automatically by $as_me ($PACKAGE) $VERSION
20372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20373 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20375 # Provide generalized library-building support services.
20376 # Written by Gordon Matzigkeit, 1996
20378 # Copyright (C) 2014 Free Software Foundation, Inc.
20379 # This is free software; see the source for copying conditions. There is NO
20380 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20382 # GNU Libtool is free software; you can redistribute it and/or modify
20383 # it under the terms of the GNU General Public License as published by
20384 # the Free Software Foundation; either version 2 of of the License, or
20385 # (at your option) any later version.
20387 # As a special exception to the GNU General Public License, if you
20388 # distribute this file as part of a program or library that is built
20389 # using GNU Libtool, you may include this file under the same
20390 # distribution terms that you use for the rest of that program.
20392 # GNU Libtool is distributed in the hope that it will be useful, but
20393 # WITHOUT ANY WARRANTY; without even the implied warranty of
20394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20395 # GNU General Public License for more details.
20397 # You should have received a copy of the GNU General Public License
20398 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20401 # The names of the tagged configurations supported by this script.
20402 available_tags='CXX '
20404 # Configured defaults for sys_lib_dlsearch_path munging.
20405 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20407 # ### BEGIN LIBTOOL CONFIG
20409 # Which release of libtool.m4 was used?
20410 macro_version=$macro_version
20411 macro_revision=$macro_revision
20413 # Assembler program.
20416 # DLL creation program.
20417 DLLTOOL=$lt_DLLTOOL
20419 # Object dumper program.
20420 OBJDUMP=$lt_OBJDUMP
20422 # Whether or not to build shared libraries.
20423 build_libtool_libs=$enable_shared
20425 # Whether or not to build static libraries.
20426 build_old_libs=$enable_static
20428 # What type of objects to build.
20431 # Whether or not to optimize for fast installation.
20432 fast_install=$enable_fast_install
20434 # Shared archive member basename,for filename based shared library versioning on AIX.
20435 shared_archive_member_spec=$shared_archive_member_spec
20437 # Shell to use when invoking shell scripts.
20440 # An echo program that protects backslashes.
20443 # The PATH separator for the build system.
20444 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20447 host_alias=$host_alias
20451 # The build system.
20452 build_alias=$build_alias
20456 # A sed program that does not truncate output.
20459 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20460 Xsed="\$SED -e 1s/^X//"
20462 # A grep program that handles long lines.
20468 # A literal string matcher.
20471 # A BSD- or MS-compatible name lister.
20474 # Whether we need soft or hard links.
20477 # What is the maximum length of a command?
20478 max_cmd_len=$max_cmd_len
20480 # Object file suffix (normally "o").
20483 # Executable file suffix (normally "").
20486 # whether the shell understands "unset".
20489 # turn spaces into newlines.
20492 # turn newlines into spaces.
20495 # convert \$build file names to \$host format.
20496 to_host_file_cmd=$lt_cv_to_host_file_cmd
20498 # convert \$build files to toolchain format.
20499 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20501 # Method to check whether dependent libraries are shared objects.
20502 deplibs_check_method=$lt_deplibs_check_method
20504 # Command to use when deplibs_check_method = "file_magic".
20505 file_magic_cmd=$lt_file_magic_cmd
20507 # How to find potential files when deplibs_check_method = "file_magic".
20508 file_magic_glob=$lt_file_magic_glob
20510 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20511 want_nocaseglob=$lt_want_nocaseglob
20513 # Command to associate shared and link libraries.
20514 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20519 # Flags to create an archive.
20520 AR_FLAGS=$lt_AR_FLAGS
20522 # How to feed a file listing to the archiver.
20523 archiver_list_spec=$lt_archiver_list_spec
20525 # A symbol stripping program.
20528 # Commands used to install an old-style archive.
20530 old_postinstall_cmds=$lt_old_postinstall_cmds
20531 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20533 # Whether to use a lock for old archive extraction.
20534 lock_old_archive_extraction=$lock_old_archive_extraction
20539 # LTCC compiler flags.
20540 LTCFLAGS=$lt_CFLAGS
20542 # Take the output of nm and produce a listing of raw symbols and C names.
20543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20545 # Transform the output of nm in a proper C declaration.
20546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20548 # Transform the output of nm into a list of symbols to manually relocate.
20549 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20551 # Transform the output of nm in a C name address pair.
20552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20554 # Transform the output of nm in a C name address pair when lib prefix is needed.
20555 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20557 # The name lister interface.
20558 nm_interface=$lt_lt_cv_nm_interface
20560 # Specify filename containing input files for \$NM.
20561 nm_file_list_spec=$lt_nm_file_list_spec
20563 # The root where to search for dependent libraries,and where our libraries should be installed.
20564 lt_sysroot=$lt_sysroot
20566 # Command to truncate a binary pipe.
20567 lt_truncate_bin=$lt_lt_cv_truncate_bin
20569 # The name of the directory that contains temporary libtool files.
20572 # Used to examine libraries when file_magic_cmd begins with "file".
20573 MAGIC_CMD=$MAGIC_CMD
20575 # Must we lock files when doing compilation?
20576 need_locks=$lt_need_locks
20579 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20581 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20582 DSYMUTIL=$lt_DSYMUTIL
20584 # Tool to change global to local symbols on Mac OS X.
20587 # Tool to manipulate fat objects and archives on Mac OS X.
20590 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20593 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20594 OTOOL64=$lt_OTOOL64
20596 # Old archive suffix (normally "a").
20599 # Shared library suffix (normally ".so").
20600 shrext_cmds=$lt_shrext_cmds
20602 # The commands to extract the exported symbol list from a shared archive.
20603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20605 # Variables whose values should be saved in libtool wrapper scripts and
20606 # restored at link time.
20607 variables_saved_for_relink=$lt_variables_saved_for_relink
20609 # Do we need the "lib" prefix for modules?
20610 need_lib_prefix=$need_lib_prefix
20612 # Do we need a version for libraries?
20613 need_version=$need_version
20615 # Library versioning type.
20616 version_type=$version_type
20618 # Shared library runtime path variable.
20619 runpath_var=$runpath_var
20621 # Shared library path variable.
20622 shlibpath_var=$shlibpath_var
20624 # Is shlibpath searched before the hard-coded library search path?
20625 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20627 # Format of library name prefix.
20628 libname_spec=$lt_libname_spec
20630 # List of archive names. First name is the real one, the rest are links.
20631 # The last name is the one that the linker finds with -lNAME
20632 library_names_spec=$lt_library_names_spec
20634 # The coded name of the library, if different from the real name.
20635 soname_spec=$lt_soname_spec
20637 # Permission mode override for installation of shared libraries.
20638 install_override_mode=$lt_install_override_mode
20640 # Command to use after installation of a shared archive.
20641 postinstall_cmds=$lt_postinstall_cmds
20643 # Command to use after uninstallation of a shared archive.
20644 postuninstall_cmds=$lt_postuninstall_cmds
20646 # Commands used to finish a libtool library installation in a directory.
20647 finish_cmds=$lt_finish_cmds
20649 # As "finish_cmds", except a single script fragment to be evaled but
20651 finish_eval=$lt_finish_eval
20653 # Whether we should hardcode library paths into libraries.
20654 hardcode_into_libs=$hardcode_into_libs
20656 # Compile-time system search path for libraries.
20657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20659 # Detected run-time system search path for libraries.
20660 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20662 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20663 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20665 # Whether dlopen is supported.
20666 dlopen_support=$enable_dlopen
20668 # Whether dlopen of programs is supported.
20669 dlopen_self=$enable_dlopen_self
20671 # Whether dlopen of statically linked programs is supported.
20672 dlopen_self_static=$enable_dlopen_self_static
20674 # Commands to strip libraries.
20675 old_striplib=$lt_old_striplib
20676 striplib=$lt_striplib
20679 # The linker used to build libraries.
20682 # How to create reloadable object files.
20683 reload_flag=$lt_reload_flag
20684 reload_cmds=$lt_reload_cmds
20686 # Commands used to build an old-style archive.
20687 old_archive_cmds=$lt_old_archive_cmds
20689 # A language specific compiler.
20692 # Is the compiler the GNU compiler?
20695 # Compiler flag to turn off builtin functions.
20696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20698 # Additional compiler flags for building library objects.
20699 pic_flag=$lt_lt_prog_compiler_pic
20701 # How to pass a linker flag through the compiler.
20702 wl=$lt_lt_prog_compiler_wl
20704 # Compiler flag to prevent dynamic linking.
20705 link_static_flag=$lt_lt_prog_compiler_static
20707 # Does compiler simultaneously support -c and -o options?
20708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20710 # Whether or not to add -lc for building shared libraries.
20711 build_libtool_need_lc=$archive_cmds_need_lc
20713 # Whether or not to disallow shared libs when runtime libs are static.
20714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20716 # Compiler flag to allow reflexive dlopens.
20717 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20719 # Compiler flag to generate shared objects directly from archives.
20720 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20722 # Whether the compiler copes with passing no objects directly.
20723 compiler_needs_object=$lt_compiler_needs_object
20725 # Create an old-style archive from a shared archive.
20726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20728 # Create a temporary old-style archive to link instead of a shared archive.
20729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20731 # Commands used to build a shared archive.
20732 archive_cmds=$lt_archive_cmds
20733 archive_expsym_cmds=$lt_archive_expsym_cmds
20735 # Commands used to build a loadable module if different from building
20736 # a shared archive.
20737 module_cmds=$lt_module_cmds
20738 module_expsym_cmds=$lt_module_expsym_cmds
20740 # Whether we are building with GNU ld or not.
20741 with_gnu_ld=$lt_with_gnu_ld
20743 # Flag that allows shared libraries with undefined symbols to be built.
20744 allow_undefined_flag=$lt_allow_undefined_flag
20746 # Flag that enforces no undefined symbols.
20747 no_undefined_flag=$lt_no_undefined_flag
20749 # Flag to hardcode \$libdir into a binary during linking.
20750 # This must work even if \$libdir does not exist
20751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20753 # Whether we need a single "-rpath" flag with a separated argument.
20754 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20756 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20757 # DIR into the resulting binary.
20758 hardcode_direct=$hardcode_direct
20760 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20761 # DIR into the resulting binary and the resulting library dependency is
20762 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20763 # library is relocated.
20764 hardcode_direct_absolute=$hardcode_direct_absolute
20766 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20767 # into the resulting binary.
20768 hardcode_minus_L=$hardcode_minus_L
20770 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20771 # into the resulting binary.
20772 hardcode_shlibpath_var=$hardcode_shlibpath_var
20774 # Set to "yes" if building a shared library automatically hardcodes DIR
20775 # into the library and all subsequent libraries and executables linked
20777 hardcode_automatic=$hardcode_automatic
20779 # Set to yes if linker adds runtime paths of dependent libraries
20780 # to runtime path list.
20781 inherit_rpath=$inherit_rpath
20783 # Whether libtool must link a program against all its dependency libraries.
20784 link_all_deplibs=$link_all_deplibs
20786 # Set to "yes" if exported symbols are required.
20787 always_export_symbols=$always_export_symbols
20789 # The commands to list exported symbols.
20790 export_symbols_cmds=$lt_export_symbols_cmds
20792 # Symbols that should not be listed in the preloaded symbols.
20793 exclude_expsyms=$lt_exclude_expsyms
20795 # Symbols that must always be exported.
20796 include_expsyms=$lt_include_expsyms
20798 # Commands necessary for linking programs (against libraries) with templates.
20799 prelink_cmds=$lt_prelink_cmds
20801 # Commands necessary for finishing linking programs.
20802 postlink_cmds=$lt_postlink_cmds
20804 # Specify filename containing input files.
20805 file_list_spec=$lt_file_list_spec
20807 # How to hardcode a shared library path into an executable.
20808 hardcode_action=$hardcode_action
20810 # The directories searched by this compiler when creating a shared library.
20811 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20813 # Dependencies to place before and after the objects being linked to
20814 # create a shared library.
20815 predep_objects=$lt_predep_objects
20816 postdep_objects=$lt_postdep_objects
20817 predeps=$lt_predeps
20818 postdeps=$lt_postdeps
20820 # The library search path used internally by the compiler when linking
20821 # a shared library.
20822 compiler_lib_search_path=$lt_compiler_lib_search_path
20824 # ### END LIBTOOL CONFIG
20828 cat <<'_LT_EOF' >> "$cfgfile"
20830 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20832 # func_munge_path_list VARIABLE PATH
20833 # -----------------------------------
20834 # VARIABLE is name of variable containing _space_ separated list of
20835 # directories to be munged by the contents of PATH, which is string
20838 # string "DIR[ DIR]" will be prepended to VARIABLE
20840 # string "DIR[ DIR]" will be appended to VARIABLE
20841 # "DIRP[:DIRP]::[DIRA:]DIRA"
20842 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20843 # "DIRA[ DIRA]" will be appended to VARIABLE
20845 # VARIABLE will be replaced by "DIR[ DIR]"
20846 func_munge_path_list ()
20852 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20855 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20858 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20859 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20862 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20868 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20869 func_cc_basename ()
20871 for cc_temp in $*""; do
20873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20879 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20883 # ### END FUNCTIONS SHARED WITH CONFIGURE
20889 cat <<\_LT_EOF >> "$cfgfile"
20890 # AIX sometimes has problems with the GCC collect2 program. For some
20891 # reason, if we set the COLLECT_NAMES environment variable, the problems
20892 # vanish in a puff of smoke.
20893 if test set != "${COLLECT_NAMES+set}"; then
20895 export COLLECT_NAMES
20902 ltmain=$ac_aux_dir/ltmain.sh
20905 # We use sed instead of cat because bash on DJGPP gets confused if
20906 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20907 # text mode, it properly converts lines to CR/LF. This bash problem
20908 # is reportedly fixed, but why not run on old versions too?
20909 sed '$q' "$ltmain" >> "$cfgfile" \
20910 || (rm -f "$cfgfile"; exit 1)
20912 mv -f "$cfgfile" "$ofile" ||
20913 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20917 cat <<_LT_EOF >> "$ofile"
20919 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20921 # The linker used to build libraries.
20924 # How to create reloadable object files.
20925 reload_flag=$lt_reload_flag_CXX
20926 reload_cmds=$lt_reload_cmds_CXX
20928 # Commands used to build an old-style archive.
20929 old_archive_cmds=$lt_old_archive_cmds_CXX
20931 # A language specific compiler.
20932 CC=$lt_compiler_CXX
20934 # Is the compiler the GNU compiler?
20937 # Compiler flag to turn off builtin functions.
20938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20940 # Additional compiler flags for building library objects.
20941 pic_flag=$lt_lt_prog_compiler_pic_CXX
20943 # How to pass a linker flag through the compiler.
20944 wl=$lt_lt_prog_compiler_wl_CXX
20946 # Compiler flag to prevent dynamic linking.
20947 link_static_flag=$lt_lt_prog_compiler_static_CXX
20949 # Does compiler simultaneously support -c and -o options?
20950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20952 # Whether or not to add -lc for building shared libraries.
20953 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20955 # Whether or not to disallow shared libs when runtime libs are static.
20956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20958 # Compiler flag to allow reflexive dlopens.
20959 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20961 # Compiler flag to generate shared objects directly from archives.
20962 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20964 # Whether the compiler copes with passing no objects directly.
20965 compiler_needs_object=$lt_compiler_needs_object_CXX
20967 # Create an old-style archive from a shared archive.
20968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20970 # Create a temporary old-style archive to link instead of a shared archive.
20971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20973 # Commands used to build a shared archive.
20974 archive_cmds=$lt_archive_cmds_CXX
20975 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20977 # Commands used to build a loadable module if different from building
20978 # a shared archive.
20979 module_cmds=$lt_module_cmds_CXX
20980 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20982 # Whether we are building with GNU ld or not.
20983 with_gnu_ld=$lt_with_gnu_ld_CXX
20985 # Flag that allows shared libraries with undefined symbols to be built.
20986 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20988 # Flag that enforces no undefined symbols.
20989 no_undefined_flag=$lt_no_undefined_flag_CXX
20991 # Flag to hardcode \$libdir into a binary during linking.
20992 # This must work even if \$libdir does not exist
20993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20995 # Whether we need a single "-rpath" flag with a separated argument.
20996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20998 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20999 # DIR into the resulting binary.
21000 hardcode_direct=$hardcode_direct_CXX
21002 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21003 # DIR into the resulting binary and the resulting library dependency is
21004 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21005 # library is relocated.
21006 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21008 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21009 # into the resulting binary.
21010 hardcode_minus_L=$hardcode_minus_L_CXX
21012 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21013 # into the resulting binary.
21014 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21016 # Set to "yes" if building a shared library automatically hardcodes DIR
21017 # into the library and all subsequent libraries and executables linked
21019 hardcode_automatic=$hardcode_automatic_CXX
21021 # Set to yes if linker adds runtime paths of dependent libraries
21022 # to runtime path list.
21023 inherit_rpath=$inherit_rpath_CXX
21025 # Whether libtool must link a program against all its dependency libraries.
21026 link_all_deplibs=$link_all_deplibs_CXX
21028 # Set to "yes" if exported symbols are required.
21029 always_export_symbols=$always_export_symbols_CXX
21031 # The commands to list exported symbols.
21032 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21034 # Symbols that should not be listed in the preloaded symbols.
21035 exclude_expsyms=$lt_exclude_expsyms_CXX
21037 # Symbols that must always be exported.
21038 include_expsyms=$lt_include_expsyms_CXX
21040 # Commands necessary for linking programs (against libraries) with templates.
21041 prelink_cmds=$lt_prelink_cmds_CXX
21043 # Commands necessary for finishing linking programs.
21044 postlink_cmds=$lt_postlink_cmds_CXX
21046 # Specify filename containing input files.
21047 file_list_spec=$lt_file_list_spec_CXX
21049 # How to hardcode a shared library path into an executable.
21050 hardcode_action=$hardcode_action_CXX
21052 # The directories searched by this compiler when creating a shared library.
21053 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21055 # Dependencies to place before and after the objects being linked to
21056 # create a shared library.
21057 predep_objects=$lt_predep_objects_CXX
21058 postdep_objects=$lt_postdep_objects_CXX
21059 predeps=$lt_predeps_CXX
21060 postdeps=$lt_postdeps_CXX
21062 # The library search path used internally by the compiler when linking
21063 # a shared library.
21064 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21066 # ### END LIBTOOL TAG CONFIG: CXX
21077 ac_clean_files=$ac_clean_files_save
21079 test $ac_write_fail = 0 ||
21080 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21083 # configure is writing to config.log, and then calls config.status.
21084 # config.status does its own redirection, appending to config.log.
21085 # Unfortunately, on DOS this fails, as config.log is still kept open
21086 # by configure, so config.status won't be able to write to it; its
21087 # output is simply discarded. So we exec the FD to /dev/null,
21088 # effectively closing config.log, so it can be properly (re)opened and
21089 # appended to by config.status. When coming back to configure, we
21090 # need to make the FD available again.
21091 if test "$no_create" != yes; then
21093 ac_config_status_args=
21094 test "$silent" = yes &&
21095 ac_config_status_args="$ac_config_status_args --quiet"
21097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21100 # would make configure fail if this is the last instruction.
21101 $ac_cs_success || as_fn_exit 1
21103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}