2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for asn1c 0.9.29.
5 @%:@ Report bugs to <vlm@lionet.info>.
8 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in @%:@(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in @%:@(
173 set -o posix ;; @%:@(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
225 case $as_dir in @%:@(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and vlm@lionet.info
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 @%:@ Portably unset VAR.
301 { eval $1=; unset $1;}
305 @%:@ as_fn_set_status STATUS
306 @%:@ -----------------------
307 @%:@ Set @S|@? to STATUS, without forking.
311 } @%:@ as_fn_set_status
313 @%:@ as_fn_exit STATUS
314 @%:@ -----------------
315 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 @%:@ as_fn_executable_p FILE
372 @%:@ -----------------------
373 @%:@ Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } @%:@ as_fn_executable_p
378 @%:@ as_fn_append VAR VALUE
379 @%:@ ----------------------
380 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
381 @%:@ advantage of any shell optimizations that allow amortized linear growth over
382 @%:@ repeated appends, instead of the typical quadratic growth present in naive
383 @%:@ implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
396 @%:@ as_fn_arith ARG...
397 @%:@ ------------------
398 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
399 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400 @%:@ must be portable across @S|@(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
415 @%:@ ----------------------------------------
416 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 @%:@ script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in @%:@(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='asn1c'
593 PACKAGE_VERSION='0.9.29'
594 PACKAGE_STRING='asn1c 0.9.29'
595 PACKAGE_BUGREPORT='vlm@lionet.info'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
653 CODE_COVERAGE_LDFLAGS
655 CODE_COVERAGE_CXXFLAGS
657 CODE_COVERAGE_CPPFLAGS
661 CODE_COVERAGE_ENABLED
662 CODE_COVERAGE_ENABLED_FALSE
663 CODE_COVERAGE_ENABLED_TRUE
736 INSTALL_STRIP_PROGRAM
779 program_transform_name
792 enable_option_checking
794 enable_dependency_tracking
813 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 runstatedir='${localstatedir}/run'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
921 cache_file=config.cache ;;
923 -datadir | --datadir | --datadi | --datad)
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
949 eval enable_$ac_useropt=no ;;
951 -docdir | --docdir | --docdi | --doc | --do)
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
975 eval enable_$ac_useropt=\$ac_optarg ;;
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
990 -help | --help | --hel | --he | -h)
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 htmldir=$ac_optarg ;;
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1020 -libdir | --libdir | --libdi | --libd)
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1111 -psdir | --psdir | --psdi | --psd | --ps)
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1120 -runstatedir | --runstatedir | --runstatedi | --runstated \
1121 | --runstate | --runstat | --runsta | --runst | --runs \
1122 | --run | --ru | --r)
1123 ac_prev=runstatedir ;;
1124 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1125 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1126 | --run=* | --ru=* | --r=*)
1127 runstatedir=$ac_optarg ;;
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir runstatedir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures asn1c 0.9.29 to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 @<:@@S|@ac_default_prefix@:>@
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/asn1c@:>@
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of asn1c 0.9.29:";;
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1465 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1466 --enable-fast-install@<:@=PKGS@:>@
1467 optimize for fast installation @<:@default=yes@:>@
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --enable-ASN_DEBUG produce debug log during `make check` testing
1470 --enable-code-coverage enable code coverage statistics collection
1471 --enable-Werror abort compilation after any C compiler warning
1472 --enable-test-Werror abort compiling tests after any C compiler warning
1473 --enable-test-32bit enable tests for 32-bit compatibility
1474 --disable-test-ubsan disable Undefined Behavior Sanitizer for tests
1475 --disable-test-asan disable Address Sanitizer for tests
1476 --enable-test-fuzzer enable LLVM LibFuzzer for randomized testing
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1483 --with-aix-soname=aix|svr4|both
1484 shared library versioning (aka "SONAME") variant to
1485 provide on AIX, @<:@default=aix@:>@.
1486 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1487 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the
1488 compiler's sysroot if not specified).
1489 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1500 YACC The `Yet Another Compiler Compiler' implementation to use.
1501 Defaults to the first program found out of: `bison -y', `byacc',
1503 YFLAGS The list of arguments that will be passed by default to @S|@YACC.
1504 This script will default YFLAGS to the empty string to avoid a
1505 default value of `-d' given by some make applications.
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1509 User-defined run-time library search path.
1510 CXXCPP C++ preprocessor
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <vlm@lionet.info>.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1578 asn1c configure 0.9.29
1579 generated by GNU Autoconf 2.69
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1592 @%:@ ac_fn_c_try_compile LINENO
1593 @%:@ --------------------------
1594 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1628 } @%:@ ac_fn_c_try_compile
1630 @%:@ ac_fn_c_try_cpp LINENO
1631 @%:@ ----------------------
1632 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } > conftest.i && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1665 } @%:@ ac_fn_c_try_cpp
1667 @%:@ ac_fn_c_try_link LINENO
1668 @%:@ -----------------------
1669 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } @%:@ ac_fn_c_try_link
1713 @%:@ ac_fn_cxx_try_compile LINENO
1714 @%:@ ----------------------------
1715 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1716 ac_fn_cxx_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1749 } @%:@ ac_fn_cxx_try_compile
1751 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 @%:@ -------------------------------------------------------
1753 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1754 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1768 if ac_fn_c_try_compile "$LINENO"; then :
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 } @%:@ ac_fn_c_check_header_compile
1782 @%:@ ac_fn_c_try_run LINENO
1783 @%:@ ----------------------
1784 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1785 @%:@ that executables *can* be run.
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=$ac_status
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1822 } @%:@ ac_fn_c_try_run
1824 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1825 @%:@ ----------------------------------
1826 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839 #define $2 innocuous_$2
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (); below.
1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844 <limits.h> exists even on freestanding compilers. */
1847 # include <limits.h>
1849 # include <assert.h>
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1876 if ac_fn_c_try_link "$LINENO"; then :
1881 rm -f core conftest.err conftest.$ac_objext \
1882 conftest$ac_exeext conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 } @%:@ ac_fn_c_check_func
1891 @%:@ ac_fn_cxx_try_cpp LINENO
1892 @%:@ ------------------------
1893 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_cpp ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } > conftest.i && {
1913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } @%:@ ac_fn_cxx_try_cpp
1928 @%:@ ac_fn_cxx_try_link LINENO
1929 @%:@ -------------------------
1930 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1931 ac_fn_cxx_try_link ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest$ac_exeext
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1972 } @%:@ ac_fn_cxx_try_link
1974 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1975 @%:@ -------------------------------------------------------
1976 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1977 @%:@ the include files in INCLUDES and setting the cache variable VAR
1979 ac_fn_c_check_header_mongrel ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if eval \${$3+:} false; then :
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 # Is the header compilable?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1994 $as_echo_n "checking $2 usability... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_header_compiler=yes
2003 ac_header_compiler=no
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2007 $as_echo "$ac_header_compiler" >&6; }
2009 # Is the header present?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2011 $as_echo_n "checking $2 presence... " >&6; }
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 if ac_fn_c_try_cpp "$LINENO"; then :
2017 ac_header_preproc=yes
2019 ac_header_preproc=no
2021 rm -f conftest.err conftest.i conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2023 $as_echo "$ac_header_preproc" >&6; }
2025 # So? What about this header?
2026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2029 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2035 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2037 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2039 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2041 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 ( $as_echo "## ------------------------------ ##
2045 ## Report this to vlm@lionet.info ##
2046 ## ------------------------------ ##"
2047 ) | sed "s/^/$as_me: WARNING: /" >&2
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 eval "$3=\$ac_header_compiler"
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } @%:@ ac_fn_c_check_header_mongrel
2065 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2066 @%:@ -------------------------------------------
2067 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2068 @%:@ variable VAR accordingly.
2069 ac_fn_c_check_type ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2103 if ac_fn_c_try_compile "$LINENO"; then :
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } @%:@ ac_fn_c_check_type
2119 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2120 @%:@ --------------------------------------------
2121 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2122 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2124 ac_fn_c_compute_int ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if test "$cross_compiling" = yes; then
2128 # Depending upon the size, compute the lo and hi bounds.
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2135 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2136 test_array @<:@0@:>@ = 0;
2137 return test_array @<:@0@:>@;
2143 if ac_fn_c_try_compile "$LINENO"; then :
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2152 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2153 test_array @<:@0@:>@ = 0;
2154 return test_array @<:@0@:>@;
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=$ac_mid; break
2163 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2164 if test $ac_lo -le $ac_mid; then
2168 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2180 test_array @<:@0@:>@ = 0;
2181 return test_array @<:@0@:>@;
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2197 test_array @<:@0@:>@ = 0;
2198 return test_array @<:@0@:>@;
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_lo=$ac_mid; break
2207 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2208 if test $ac_mid -le $ac_hi; then
2212 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 # Binary search between lo and hi bounds.
2223 while test "x$ac_lo" != "x$ac_hi"; do
2224 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2232 test_array @<:@0@:>@ = 0;
2233 return test_array @<:@0@:>@;
2239 if ac_fn_c_try_compile "$LINENO"; then :
2242 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 case $ac_lo in @%:@((
2247 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2254 static long int longval () { return $2; }
2255 static unsigned long int ulongval () { return $2; }
2256 @%:@include <stdio.h>
2257 @%:@include <stdlib.h>
2262 FILE *f = fopen ("conftest.val", "w");
2267 long int i = longval ();
2270 fprintf (f, "%ld", i);
2274 unsigned long int i = ulongval ();
2277 fprintf (f, "%lu", i);
2279 /* Do not output a trailing newline, as this causes \r\n confusion
2280 on some platforms. */
2281 return ferror (f) || fclose (f) != 0;
2287 if ac_fn_c_try_run "$LINENO"; then :
2288 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2293 conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 as_fn_set_status $ac_retval
2300 } @%:@ ac_fn_c_compute_int
2302 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2303 @%:@ ---------------------------------------------
2304 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2306 ac_fn_c_check_decl ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 as_decl_name=`echo $2|sed 's/ *(.*//'`
2310 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2312 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2313 if eval \${$3+:} false; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 @%:@ifndef $as_decl_name
2323 @%:@ifdef __cplusplus
2324 (void) $as_decl_use;
2326 (void) $as_decl_name;
2334 if ac_fn_c_try_compile "$LINENO"; then :
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346 } @%:@ ac_fn_c_check_decl
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2351 It was created by asn1c $as_me 0.9.29, which was
2352 generated by GNU Autoconf 2.69. Invocation command line was
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2373 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2374 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2377 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2378 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2379 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 $as_echo "PATH: $as_dir"
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2412 ac_must_keep_next=false
2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420 | -silent | --silent | --silen | --sile | --sil)
2423 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2428 as_fn_append ac_configure_args1 " '$ac_arg'"
2429 if test $ac_must_keep_next = true; then
2430 ac_must_keep_next=false # Got value, back to normal.
2433 *=* | --config-cache | -C | -disable-* | --disable-* \
2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436 | -with-* | --with-* | -without-* | --without-* | --x)
2437 case "$ac_configure_args0 " in
2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2441 -* ) ac_must_keep_next=true ;;
2444 as_fn_append ac_configure_args " '$ac_arg'"
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log. We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2462 $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2466 # The following way of writing the cache mishandles newlines in values,
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2477 _ | IFS | as_nl) ;; #(
2478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479 *) { eval $ac_var=; unset $ac_var;} ;;
2484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
2487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498 $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2502 for ac_var in $ac_subst_vars
2504 eval ac_val=\$$ac_var
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 $as_echo "$ac_var='\''$ac_val'\''"
2512 if test -n "$ac_subst_files"; then
2513 $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2517 for ac_var in $ac_subst_files
2519 eval ac_val=\$$ac_var
2521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 $as_echo "$ac_var='\''$ac_val'\''"
2528 if test -s confdefs.h; then
2529 $as_echo "## ----------- ##
2536 test "$ac_signal" != 0 &&
2537 $as_echo "$as_me: caught signal $ac_signal"
2538 $as_echo "$as_me: exit $exit_status"
2540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2544 for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2552 $as_echo "/* confdefs.h */" > confdefs.h
2554 # Predefined preprocessor variables.
2556 cat >>confdefs.h <<_ACEOF
2557 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2560 cat >>confdefs.h <<_ACEOF
2561 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2564 cat >>confdefs.h <<_ACEOF
2565 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2568 cat >>confdefs.h <<_ACEOF
2569 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2572 cat >>confdefs.h <<_ACEOF
2573 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2576 cat >>confdefs.h <<_ACEOF
2577 @%:@define PACKAGE_URL "$PACKAGE_URL"
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2585 if test -n "$CONFIG_SITE"; then
2586 # We do not want a PATH search for config.site.
2587 case $CONFIG_SITE in @%:@((
2588 -*) ac_site_file1=./$CONFIG_SITE;;
2589 */*) ac_site_file1=$CONFIG_SITE;;
2590 *) ac_site_file1=./$CONFIG_SITE;;
2592 elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2601 test "x$ac_site_file" = xNONE && continue
2602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
2607 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2614 if test -r "$cache_file"; then
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631 # Check that the precious variables saved in the cache have kept the same
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636 eval ac_new_set=\$ac_env_${ac_var}_set
2637 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638 eval ac_new_val=\$ac_env_${ac_var}_value
2639 case $ac_old_set,$ac_new_set in
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647 ac_cache_corrupted=: ;;
2650 if test "x$ac_old_val" != "x$ac_new_val"; then
2651 # differences in whitespace do not lead to failure.
2652 ac_old_val_w=`echo x $ac_old_val`
2653 ac_new_val_w=`echo x $ac_new_val`
2654 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657 ac_cache_corrupted=:
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661 eval $ac_var=\$ac_old_val
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2664 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2669 # Pass precious variables to config.status.
2670 if test "$ac_new_set" = set; then
2672 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673 *) ac_arg=$ac_var=$ac_new_val ;;
2675 case " $ac_configure_args " in
2676 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2677 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2681 if $ac_cache_corrupted; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 for ac_dir in config "$srcdir"/config; do
2702 if test -f "$ac_dir/install-sh"; then
2704 ac_install_sh="$ac_aux_dir/install-sh -c"
2706 elif test -f "$ac_dir/install.sh"; then
2708 ac_install_sh="$ac_aux_dir/install.sh -c"
2710 elif test -f "$ac_dir/shtool"; then
2712 ac_install_sh="$ac_aux_dir/shtool install -c"
2716 if test -z "$ac_aux_dir"; then
2717 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2725 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2726 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729 ac_config_headers="$ac_config_headers config.h"
2731 am__api_version='1.15'
2733 # Find a good install program. We prefer a C program (faster),
2734 # so one script is as good as another. But avoid the broken or
2735 # incompatible versions:
2736 # SysV /etc/install, /usr/sbin/install
2737 # SunOS /usr/etc/install
2738 # IRIX /sbin/install
2740 # AmigaOS /C/install, which installs bootblocks on floppy discs
2741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2744 # OS/2's system install, which has a completely different semantic
2745 # ./install, which can be erroneously created by make from ./install.sh.
2746 # Reject install programs that cannot install multiple files.
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2748 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2749 if test -z "$INSTALL"; then
2750 if ${ac_cv_path_install+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir=.
2758 # Account for people who put trailing slashes in PATH elements.
2759 case $as_dir/ in @%:@((
2760 ./ | .// | /[cC]/* | \
2761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2762 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2765 # OSF1 and SCO ODT 3.0 have their own names for install.
2766 # Don't use installbsd from OSF since it installs stuff as root
2768 for ac_prog in ginstall scoinst install; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2771 if test $ac_prog = install &&
2772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2773 # AIX install. It has an incompatible calling convention.
2775 elif test $ac_prog = install &&
2776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # program-specific install script used by HP pwplus--don't use.
2780 rm -rf conftest.one conftest.two conftest.dir
2781 echo one > conftest.one
2782 echo two > conftest.two
2784 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2785 test -s conftest.one && test -s conftest.two &&
2786 test -s conftest.dir/conftest.one &&
2787 test -s conftest.dir/conftest.two
2789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2802 rm -rf conftest.one conftest.two conftest.dir
2805 if test "${ac_cv_path_install+set}" = set; then
2806 INSTALL=$ac_cv_path_install
2808 # As a last resort, use the slow shell script. Don't cache a
2809 # value for INSTALL within a source directory, because that will
2810 # break other packages using the cache if that directory is
2811 # removed, or if the value is a relative name.
2812 INSTALL=$ac_install_sh
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2816 $as_echo "$INSTALL" >&6; }
2818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2819 # It thinks the first close brace ends the variable substitution.
2820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2827 $as_echo_n "checking whether build environment is sane... " >&6; }
2828 # Reject unsafe characters in $srcdir or the absolute working directory
2829 # name. Accept space and tab only in the latter.
2833 *[\\\"\#\$\&\'\`$am_lf]*)
2834 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2837 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2838 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2841 # Do 'set' in a subshell so we don't clobber the current shell's
2842 # arguments. Must try -L first in case configure is actually a
2843 # symlink; some systems play weird games with the mod time of symlinks
2844 # (eg FreeBSD returns the mod time of the symlink's containing
2848 for am_try in 1 2; do
2849 echo "timestamp, slept: $am_has_slept" > conftest.file
2850 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2851 if test "$*" = "X"; then
2853 set X `ls -t "$srcdir/configure" conftest.file`
2855 if test "$*" != "X $srcdir/configure conftest.file" \
2856 && test "$*" != "X conftest.file $srcdir/configure"; then
2858 # If neither matched, then we have a broken ls. This can happen
2859 # if, for instance, CONFIG_SHELL is bash and it inherits a
2860 # broken ls alias from the environment. This has actually
2861 # happened. Such a system could not be considered "sane".
2862 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2863 alias in your environment" "$LINENO" 5
2865 if test "$2" = conftest.file || test $am_try -eq 2; then
2872 test "$2" = conftest.file
2878 as_fn_error $? "newly created file is older than distributed files!
2879 Check your system clock" "$LINENO" 5
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883 # If we didn't sleep, we still need to ensure time stamps of config.status and
2884 # generated files are strictly newer.
2886 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2893 test "$program_prefix" != NONE &&
2894 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2895 # Use a double $ so make ignores it.
2896 test "$program_suffix" != NONE &&
2897 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2898 # Double any \ or $.
2899 # By default was `s,x,x', remove it if useless.
2900 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2901 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2903 # Expand $ac_aux_dir to an absolute path.
2904 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2906 if test x"${MISSING+set}" != xset; then
2909 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2911 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2914 # Use eval to expand $SHELL
2915 if eval "$MISSING --is-lightweight"; then
2916 am_missing_run="$MISSING "
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2920 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2923 if test x"${install_sh+set}" != xset; then
2926 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2928 install_sh="\${SHELL} $am_aux_dir/install-sh"
2932 # Installed binaries are usually stripped using 'strip' when the user
2933 # run "make install-strip". However 'strip' might not be the right
2934 # tool to use in cross-compilation environments, therefore Automake
2935 # will honor the 'STRIP' environment variable to overrule this program.
2936 if test "$cross_compiling" != no; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}strip; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_STRIP+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$STRIP"; then
2946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 STRIP=$ac_cv_prog_STRIP
2966 if test -n "$STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2968 $as_echo "$STRIP" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2976 if test -z "$ac_cv_prog_STRIP"; then
2978 # Extract the first word of "strip", so it can be a program name with args.
2979 set dummy strip; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$ac_ct_STRIP"; then
2986 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_STRIP="strip"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3006 if test -n "$ac_ct_STRIP"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3008 $as_echo "$ac_ct_STRIP" >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3014 if test "x$ac_ct_STRIP" = x; then
3017 case $cross_compiling:$ac_tool_warned in
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3026 STRIP="$ac_cv_prog_STRIP"
3030 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3033 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3034 if test -z "$MKDIR_P"; then
3035 if ${ac_cv_path_mkdir+:} false; then :
3036 $as_echo_n "(cached) " >&6
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3042 test -z "$as_dir" && as_dir=.
3043 for ac_prog in mkdir gmkdir; do
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3046 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3047 'mkdir (GNU coreutils) '* | \
3048 'mkdir (coreutils) '* | \
3049 'mkdir (fileutils) '4.1*)
3050 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3060 test -d ./--version && rmdir ./--version
3061 if test "${ac_cv_path_mkdir+set}" = set; then
3062 MKDIR_P="$ac_cv_path_mkdir -p"
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for MKDIR_P within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 MKDIR_P="$ac_install_sh -d"
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3072 $as_echo "$MKDIR_P" >&6; }
3074 for ac_prog in gawk mawk nawk awk
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_AWK+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$AWK"; then
3084 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_AWK="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$AWK"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3106 $as_echo "$AWK" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3113 test -n "$AWK" && break
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3117 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3119 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3120 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3121 $as_echo_n "(cached) " >&6
3123 cat >conftest.make <<\_ACEOF
3126 @echo '@@@%%%=$(MAKE)=@@@%%%'
3128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3129 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3131 eval ac_cv_prog_make_${ac_make}_set=yes;;
3133 eval ac_cv_prog_make_${ac_make}_set=no;;
3137 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 SET_MAKE="MAKE=${MAKE-make}"
3147 rm -rf .tst 2>/dev/null
3148 mkdir .tst 2>/dev/null
3149 if test -d .tst; then
3154 rmdir .tst 2>/dev/null
3156 @%:@ Check whether --enable-silent-rules was given.
3157 if test "${enable_silent_rules+set}" = set; then :
3158 enableval=$enable_silent_rules;
3161 case $enable_silent_rules in @%:@ (((
3162 yes) AM_DEFAULT_VERBOSITY=0;;
3163 no) AM_DEFAULT_VERBOSITY=1;;
3164 *) AM_DEFAULT_VERBOSITY=1;;
3166 am_make=${MAKE-make}
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3168 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3169 if ${am_cv_make_support_nested_variables+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 if $as_echo 'TRUE=$(BAR$(V))
3178 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3179 am_cv_make_support_nested_variables=yes
3181 am_cv_make_support_nested_variables=no
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3185 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3186 if test $am_cv_make_support_nested_variables = yes; then
3188 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3190 AM_V=$AM_DEFAULT_VERBOSITY
3191 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3195 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3196 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3197 # is not polluted with repeated "-I."
3198 am__isrc=' -I$(srcdir)'
3199 # test to see if srcdir already configured
3200 if test -f $srcdir/config.status; then
3201 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3205 # test whether we have cygpath
3206 if test -z "$CYGPATH_W"; then
3207 if (cygpath --version) >/dev/null 2>/dev/null; then
3208 CYGPATH_W='cygpath -w'
3215 # Define the identity of the package.
3220 cat >>confdefs.h <<_ACEOF
3221 @%:@define PACKAGE "$PACKAGE"
3225 cat >>confdefs.h <<_ACEOF
3226 @%:@define VERSION "$VERSION"
3229 # Some tools Automake needs.
3231 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3234 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3237 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3240 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3243 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3245 # For better backward compatibility. To be removed once Automake 1.9.x
3246 # dies out for good. For more background, see:
3247 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3248 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3249 mkdir_p='$(MKDIR_P)'
3251 # We need awk for the "check" target (and possibly the TAP driver). The
3252 # system "awk" is bad on some platforms.
3253 # Always define AMTAR for backward compatibility. Yes, it's still used
3254 # in the wild :-( We should find a proper way to deprecate it ...
3258 # We'll loop over all known methods to create a tar archive until one works.
3259 _am_tools='gnutar pax cpio none'
3261 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3268 # POSIX will say in a future version that running "rm -f" with no argument
3269 # is OK; and we want to be able to make that assumption in our Makefile
3270 # recipes. So use an aggressive probe to check that the usage we want is
3271 # actually supported "in the wild" to an acceptable degree.
3272 # See automake bug#10828.
3273 # To make any issue more visible, cause the running configure to be aborted
3274 # by default if the 'rm' program in use doesn't match our expectations; the
3275 # user can still override this though.
3276 if rm -f && rm -fr && rm -rf; then : OK; else
3280 Your 'rm' program seems unable to run without file operands specified
3281 on the command line, even when the '-f' option is present. This is contrary
3282 to the behaviour of most rm programs out there, and not conforming with
3283 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3285 Please tell bug-automake@gnu.org about your system, including the value
3286 of your $PATH and any error possibly output before this message. This
3287 can help us improve future automake versions.
3290 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3291 echo 'Configuration will proceed anyway, since you have set the' >&2
3292 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3296 Aborting the configuration process, to ensure you take notice of the issue.
3298 You can download and install GNU coreutils to get an 'rm' implementation
3299 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3301 If you want to complete the configuration process using your problematic
3302 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3303 to "yes", and re-run configure.
3306 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317 if test -n "$ac_tool_prefix"; then
3318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3319 set dummy ${ac_tool_prefix}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_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3356 if test -z "$ac_cv_prog_CC"; then
3358 # Extract the first word of "gcc", so it can be a program name with args.
3359 set dummy gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$ac_ct_CC"; then
3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_ac_ct_CC="gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386 if test -n "$ac_ct_CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388 $as_echo "$ac_ct_CC" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3394 if test "x$ac_ct_CC" = x; then
3397 case $cross_compiling:$ac_tool_warned in
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned=yes ;;
3409 if test -z "$CC"; then
3410 if test -n "$ac_tool_prefix"; then
3411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3412 set dummy ${ac_tool_prefix}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.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CC="${ac_tool_prefix}cc"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3450 if test -z "$CC"; then
3451 # Extract the first word of "cc", so it can be a program name with args.
3452 set dummy cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3470 ac_prog_rejected=yes
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 if test $ac_prog_rejected = yes; then
3482 # We found a bogon in the path, so make sure we never use it.
3483 set dummy $ac_cv_prog_CC
3485 if test $@%:@ != 0; then
3486 # We chose a different compiler from the bogus one.
3487 # However, it has the same basename, so the bogon will be chosen
3488 # first if we set CC to just the basename; use the full file name.
3490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3506 if test -z "$CC"; then
3507 if test -n "$ac_tool_prefix"; then
3508 for ac_prog in cl.exe
3510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_CC+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC="$CC" # Let the user override the test.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3547 test -n "$CC" && break
3550 if test -z "$CC"; then
3552 for ac_prog in cl.exe
3554 # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_ac_ct_CC="$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3591 test -n "$ac_ct_CC" && break
3594 if test "x$ac_ct_CC" = x; then
3597 case $cross_compiling:$ac_tool_warned in
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3610 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "no acceptable C compiler found in \$PATH
3613 See \`config.log' for more details" "$LINENO" 5; }
3615 # Provide some information about the compiler.
3616 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 for ac_option in --version -v -V -qversion; do
3620 { { ac_try="$ac_compiler $ac_option >&5"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3629 if test -s conftest.err; then
3631 ... rest of stderr output deleted ...
3632 10q' conftest.err >conftest.er1
3633 cat conftest.er1 >&5
3635 rm -f conftest.er1 conftest.err
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3651 ac_clean_files_save=$ac_clean_files
3652 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3653 # Try to create an executable without -o first, disregard a.out.
3654 # It will help us diagnose broken compilers, and finding out an intuition
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3657 $as_echo_n "checking whether the C compiler works... " >&6; }
3658 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3660 # The possible output files:
3661 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664 for ac_file in $ac_files
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3673 if { { ac_try="$ac_link_default"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_link_default") 2>&5
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; then :
3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3685 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3686 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3687 # so that the user can short-circuit this test for compilers unknown to
3689 for ac_file in $ac_files ''
3691 test -f "$ac_file" || continue
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3696 # We found the default executable, but exeext='' is most
3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704 # We set ac_cv_exeext here because the later test for it is not
3705 # safe: cross compilers may not add the suffix if given an `-o'
3706 # argument, so we may need to know it at that point already.
3707 # Even if this section looks crufty: it has the advantage of
3714 test "$ac_cv_exeext" = no && ac_cv_exeext=
3719 if test -z "$ac_file"; then :
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error 77 "C compiler cannot create executables
3728 See \`config.log' for more details" "$LINENO" 5; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3731 $as_echo "yes" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3734 $as_echo_n "checking for C compiler default output file name... " >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3736 $as_echo "$ac_file" >&6; }
3737 ac_exeext=$ac_cv_exeext
3739 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3740 ac_clean_files=$ac_clean_files_save
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3742 $as_echo_n "checking for suffix of executables... " >&6; }
3743 if { { ac_try="$ac_link"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link") 2>&5
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; then :
3754 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3755 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3756 # work properly (i.e., refer to `conftest.exe'), while it won't with
3758 for ac_file in conftest.exe conftest conftest.*; do
3759 test -f "$ac_file" || continue
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3771 See \`config.log' for more details" "$LINENO" 5; }
3773 rm -f conftest conftest$ac_cv_exeext
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3775 $as_echo "$ac_cv_exeext" >&6; }
3777 rm -f conftest.$ac_ext
3778 EXEEXT=$ac_cv_exeext
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 @%:@include <stdio.h>
3786 FILE *f = fopen ("conftest.out", "w");
3787 return ferror (f) || fclose (f) != 0;
3793 ac_clean_files="$ac_clean_files conftest.out"
3794 # Check that the compiler produces executables we can run. If not, either
3795 # the compiler is broken, or we cross compile.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3797 $as_echo_n "checking whether we are cross compiling... " >&6; }
3798 if test "$cross_compiling" != yes; then
3799 { { ac_try="$ac_link"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_link") 2>&5
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }
3810 if { ac_try='./conftest$ac_cv_exeext'
3811 { { case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_try") 2>&5
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; }; then
3823 if test "$cross_compiling" = maybe; then
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error $? "cannot run C compiled programs.
3829 If you meant to cross compile, use \`--host'.
3830 See \`config.log' for more details" "$LINENO" 5; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3835 $as_echo "$cross_compiling" >&6; }
3837 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3838 ac_clean_files=$ac_clean_files_save
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3840 $as_echo_n "checking for suffix of object files... " >&6; }
3841 if ${ac_cv_objext+:} false; then :
3842 $as_echo_n "(cached) " >&6
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3855 rm -f conftest.o conftest.obj
3856 if { { ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_compile") 2>&5
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }; then :
3867 for ac_file in conftest.o conftest.obj conftest.*; do
3868 test -f "$ac_file" || continue;
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error $? "cannot compute suffix of object files: cannot compile
3882 See \`config.log' for more details" "$LINENO" 5; }
3884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3887 $as_echo "$ac_cv_objext" >&6; }
3888 OBJEXT=$ac_cv_objext
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3891 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3892 if ${ac_cv_c_compiler_gnu+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3909 if ac_fn_c_try_compile "$LINENO"; then :
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3919 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3920 if test $ac_compiler_gnu = yes; then
3925 ac_test_CFLAGS=${CFLAGS+set}
3926 ac_save_CFLAGS=$CFLAGS
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3928 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3929 if ${ac_cv_prog_cc_g+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 ac_save_c_werror_flag=$ac_c_werror_flag
3933 ac_c_werror_flag=yes
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3947 if ac_fn_c_try_compile "$LINENO"; then :
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_c_werror_flag=$ac_save_c_werror_flag
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3978 if ac_fn_c_try_compile "$LINENO"; then :
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_c_werror_flag=$ac_save_c_werror_flag
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3989 $as_echo "$ac_cv_prog_cc_g" >&6; }
3990 if test "$ac_test_CFLAGS" = set; then
3991 CFLAGS=$ac_save_CFLAGS
3992 elif test $ac_cv_prog_cc_g = yes; then
3993 if test "$GCC" = yes; then
3999 if test "$GCC" = yes; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4006 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4007 if ${ac_cv_prog_cc_c89+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 ac_cv_prog_cc_c89=no
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4018 struct buf { int x; };
4019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4020 static char *e (p, i)
4026 static char *f (char * (*g) (char **, int), char **p, ...)
4031 s = g (p, va_arg (v,int));
4036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4037 function prototypes and stuff, but not '\xHH' hex character constants.
4038 These don't provoke an error unfortunately, instead are silently treated
4039 as 'x'. The following induces an error, until -std is added to get
4040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4041 array size at least. It's necessary to write '\x00'==0 to get something
4042 that's true only with -std. */
4043 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4046 inside strings and character constants. */
4048 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4050 int test (int i, double x);
4051 struct s1 {int (*f) (int a);};
4052 struct s2 {int (*f) (double a);};
4053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4064 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4067 CC="$ac_save_CC $ac_arg"
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_c89=$ac_arg
4071 rm -f core conftest.err conftest.$ac_objext
4072 test "x$ac_cv_prog_cc_c89" != "xno" && break
4074 rm -f conftest.$ac_ext
4079 case "x$ac_cv_prog_cc_c89" in
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4082 $as_echo "none needed" >&6; } ;;
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085 $as_echo "unsupported" >&6; } ;;
4087 CC="$CC $ac_cv_prog_cc_c89"
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4089 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4091 if test "x$ac_cv_prog_cc_c89" != xno; then :
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4107 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4108 if ${am_cv_prog_cc_c_o+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 # Make sure it works both with $CC and with simple cc.
4123 # Following AC_PROG_CC_C_O, we do the test twice because some
4124 # compilers refuse to overwrite an existing .o file with -o,
4125 # though they will create one.
4126 am_cv_prog_cc_c_o=yes
4128 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4129 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } \
4133 && test -f conftest2.$ac_objext; then
4136 am_cv_prog_cc_c_o=no
4140 rm -f core conftest*
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4144 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4145 if test "$am_cv_prog_cc_c_o" != yes; then
4146 # Losing compiler, so override with the script.
4147 # FIXME: It is wrong to rewrite CC.
4148 # But if we don't then we get into trouble of one sort or another.
4149 # A longer-term fix would be to have automake use am__CC in this case,
4150 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4151 CC="$am_aux_dir/compile $CC"
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 DEPDIR="${am__leading_dot}deps"
4161 ac_config_commands="$ac_config_commands depfiles"
4164 am_make=${MAKE-make}
4165 cat > confinc << 'END'
4167 @echo this is the am__doit target
4170 # If we don't find an include directive, just comment out the code.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4172 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4176 # First try GNU make style include.
4177 echo "include confinc" > confmf
4178 # Ignore all kinds of additional output from 'make'.
4179 case `$am_make -s -f confmf 2> /dev/null` in #(
4180 *the\ am__doit\ target*)
4186 # Now try BSD make style include.
4187 if test "$am__include" = "#"; then
4188 echo '.include "confinc"' > confmf
4189 case `$am_make -s -f confmf 2> /dev/null` in #(
4190 *the\ am__doit\ target*)
4191 am__include=.include
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4200 $as_echo "$_am_result" >&6; }
4201 rm -f confinc confmf
4203 @%:@ Check whether --enable-dependency-tracking was given.
4204 if test "${enable_dependency_tracking+set}" = set; then :
4205 enableval=$enable_dependency_tracking;
4208 if test "x$enable_dependency_tracking" != xno; then
4209 am_depcomp="$ac_aux_dir/depcomp"
4213 if test "x$enable_dependency_tracking" != xno; then
4223 depcc="$CC" am_compiler_list=
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4226 $as_echo_n "checking dependency style of $depcc... " >&6; }
4227 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4228 $as_echo_n "(cached) " >&6
4230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4231 # We make a subdir and do the tests there. Otherwise we can end up
4232 # making bogus files that we don't know about and never remove. For
4233 # instance it was reported that on HP-UX the gcc test will end up
4234 # making a dummy file named 'D' -- because '-MD' means "put the output
4238 # Copy depcomp to subdir because otherwise we won't find it if we're
4239 # using a relative directory.
4240 cp "$am_depcomp" conftest.dir
4242 # We will build objects and dependencies in a subdirectory because
4243 # it helps to detect inapplicable dependency modes. For instance
4244 # both Tru64's cc and ICC support -MD to output dependencies as a
4245 # side effect of compilation, but ICC will put the dependencies in
4246 # the current directory while Tru64 will put them in the object
4250 am_cv_CC_dependencies_compiler_type=none
4251 if test "$am_compiler_list" = ""; then
4252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4255 case " $depcc " in #(
4256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4259 for depmode in $am_compiler_list; do
4260 # Setup a source with many dependencies, because some compilers
4261 # like to wrap large dependency lists on column 80 (with \), and
4262 # we should not choose a depcomp mode which is confused by this.
4264 # We need to recreate these files for each test, as the compiler may
4265 # overwrite some of them when testing with obscure command lines.
4266 # This happens at least with the AIX C compiler.
4268 for i in 1 2 3 4 5 6; do
4269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4270 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4271 # Solaris 10 /bin/sh.
4272 echo '/* dummy */' > sub/conftst$i.h
4274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4276 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4277 # mode. It turns out that the SunPro C++ compiler does not properly
4278 # handle '-M -o', and we need to detect this. Also, some Intel
4279 # versions had trouble with output in subdirs.
4280 am__obj=sub/conftest.${OBJEXT-o}
4281 am__minus_obj="-o $am__obj"
4284 # This depmode causes a compiler race in universal mode.
4285 test "$am__universal" = false || continue
4288 # After this tag, mechanisms are not by side-effect, so they'll
4289 # only be used when explicitly requested.
4290 if test "x$enable_dependency_tracking" = xyes; then
4296 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4297 # This compiler won't grok '-c -o', but also, the minuso test has
4298 # not run yet. These depmodes are late enough in the game, and
4299 # so weak that their functioning should not be impacted.
4300 am__obj=conftest.${OBJEXT-o}
4305 if depmode=$depmode \
4306 source=sub/conftest.c object=$am__obj \
4307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4309 >/dev/null 2>conftest.err &&
4310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4314 # icc doesn't choke on unknown options, it will just issue warnings
4315 # or remarks (even with -Werror). So we grep stderr for any message
4316 # that says an option was ignored or not supported.
4317 # When given -MP, icc 7.0 and 7.1 complain thusly:
4318 # icc: Command line warning: ignoring option '-M'; no argument required
4319 # The diagnosis changed in icc 8.0:
4320 # icc: Command line remark: option '-MP' not supported
4321 if (grep 'ignoring option' conftest.err ||
4322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4323 am_cv_CC_dependencies_compiler_type=$depmode
4332 am_cv_CC_dependencies_compiler_type=none
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4337 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4338 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4341 test "x$enable_dependency_tracking" != xno \
4342 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4344 am__fastdepCC_FALSE='#'
4346 am__fastdepCC_TRUE='#'
4347 am__fastdepCC_FALSE=
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4362 if test -z "$CPP"; then
4363 if ${ac_cv_prog_CPP+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4381 @%:@ include <limits.h>
4383 @%:@ include <assert.h>
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4390 # Broken: fails on valid input.
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4395 # OK, works on sane cases. Now check whether nonexistent headers
4396 # can be detected and how.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 @%:@include <ac_nonexistent.h>
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: success on invalid input.
4405 # Passes both tests.
4409 rm -f conftest.err conftest.i conftest.$ac_ext
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.i conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4427 $as_echo "$CPP" >&6; }
4429 for ac_c_preproc_warn_flag in '' yes
4431 # Use a header file that comes with gcc, so configuring glibc
4432 # with a fresh cross-compiler works.
4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434 # <limits.h> exists even on freestanding compilers.
4435 # On the NeXT, cc -E runs the code through the compiler's parser,
4436 # not just through cpp. "Syntax error" is here to catch this case.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4440 @%:@ include <limits.h>
4442 @%:@ include <assert.h>
4446 if ac_fn_c_try_cpp "$LINENO"; then :
4449 # Broken: fails on valid input.
4452 rm -f conftest.err conftest.i conftest.$ac_ext
4454 # OK, works on sane cases. Now check whether nonexistent headers
4455 # can be detected and how.
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 @%:@include <ac_nonexistent.h>
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461 # Broken: success on invalid input.
4464 # Passes both tests.
4468 rm -f conftest.err conftest.i conftest.$ac_ext
4471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4472 rm -f conftest.i conftest.err conftest.$ac_ext
4473 if $ac_preproc_ok; then :
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4479 See \`config.log' for more details" "$LINENO" 5; }
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4490 $as_echo_n "checking whether ln -s works... " >&6; }
4492 if test "$LN_S" = "ln -s"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4497 $as_echo "no, using $LN_S" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4501 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4503 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4504 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 cat >conftest.make <<\_ACEOF
4510 @echo '@@@%%%=$(MAKE)=@@@%%%'
4512 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4513 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4515 eval ac_cv_prog_make_${ac_make}_set=yes;;
4517 eval ac_cv_prog_make_${ac_make}_set=no;;
4521 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528 SET_MAKE="MAKE=${MAKE-make}"
4531 for ac_prog in 'bison -y' byacc
4533 # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_YACC+:} false; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$YACC"; then
4541 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_YACC="$ac_prog"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 YACC=$ac_cv_prog_YACC
4561 if test -n "$YACC"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4563 $as_echo "$YACC" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4570 test -n "$YACC" && break
4572 test -n "$YACC" || YACC="yacc"
4575 for ac_prog in flex lex
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if ${ac_cv_prog_LEX+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 if test -n "$LEX"; then
4585 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594 ac_cv_prog_LEX="$ac_prog"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 if test -n "$LEX"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4607 $as_echo "$LEX" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4614 test -n "$LEX" && break
4616 test -n "$LEX" || LEX=":"
4618 if test "x$LEX" != "x:"; then
4619 cat >conftest.l <<_ACEOF
4625 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4626 yyless ((input () != 0)); }
4627 f { unput (yytext[0]); }
4628 . { BEGIN INITIAL; }
4630 #ifdef YYTEXT_POINTER
4631 extern char *yytext;
4636 return ! yylex () + ! yywrap ();
4639 { { ac_try="$LEX conftest.l"
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645 $as_echo "$ac_try_echo"; } >&5
4646 (eval "$LEX conftest.l") 2>&5
4648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4649 test $ac_status = 0; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4651 $as_echo_n "checking lex output file root... " >&6; }
4652 if ${ac_cv_prog_lex_root+:} false; then :
4653 $as_echo_n "(cached) " >&6
4656 if test -f lex.yy.c; then
4657 ac_cv_prog_lex_root=lex.yy
4658 elif test -f lexyy.c; then
4659 ac_cv_prog_lex_root=lexyy
4661 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4665 $as_echo "$ac_cv_prog_lex_root" >&6; }
4666 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4668 if test -z "${LEXLIB+set}"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4670 $as_echo_n "checking lex library... " >&6; }
4671 if ${ac_cv_lib_lex+:} false; then :
4672 $as_echo_n "(cached) " >&6
4676 ac_cv_lib_lex='none needed'
4677 for ac_lib in '' -lfl -ll; do
4678 LIBS="$ac_lib $ac_save_LIBS"
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 `cat $LEX_OUTPUT_ROOT.c`
4683 if ac_fn_c_try_link "$LINENO"; then :
4684 ac_cv_lib_lex=$ac_lib
4686 rm -f core conftest.err conftest.$ac_objext \
4687 conftest$ac_exeext conftest.$ac_ext
4688 test "$ac_cv_lib_lex" != 'none needed' && break
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4694 $as_echo "$ac_cv_lib_lex" >&6; }
4695 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4700 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4701 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 # POSIX says lex can declare yytext either as a pointer or an array; the
4705 # default is implementation-dependent. Figure out which it is, since
4706 # not all implementations provide the %pointer and %array declarations.
4707 ac_cv_prog_lex_yytext_pointer=no
4709 LIBS="$LEXLIB $ac_save_LIBS"
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4713 #define YYTEXT_POINTER 1
4714 `cat $LEX_OUTPUT_ROOT.c`
4716 if ac_fn_c_try_link "$LINENO"; then :
4717 ac_cv_prog_lex_yytext_pointer=yes
4719 rm -f core conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4725 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4726 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4728 $as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
4731 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4734 if test "$LEX" = :; then
4735 LEX=${am_missing_run}flex
4737 if test -n "$ac_tool_prefix"; then
4738 for ac_prog in ar lib "link -lib"
4740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_AR+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 if test -n "$AR"; then
4748 ac_cv_prog_AR="$AR" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test -n "$AR"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4770 $as_echo "$AR" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4777 test -n "$AR" && break
4780 if test -z "$AR"; then
4782 for ac_prog in ar lib "link -lib"
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy $ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4789 $as_echo_n "(cached) " >&6
4791 if test -n "$ac_ct_AR"; then
4792 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801 ac_cv_prog_ac_ct_AR="$ac_prog"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4812 if test -n "$ac_ct_AR"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4814 $as_echo "$ac_ct_AR" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4821 test -n "$ac_ct_AR" && break
4824 if test "x$ac_ct_AR" = x; then
4827 case $cross_compiling:$ac_tool_warned in
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831 ac_tool_warned=yes ;;
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4840 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4841 if ${am_cv_ar_interface+:} false; then :
4842 $as_echo_n "(cached) " >&6
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 am_cv_ar_interface=ar
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 int some_variable = 0;
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4858 (eval $am_ar_try) 2>&5
4860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861 test $ac_status = 0; }
4862 if test "$ac_status" -eq 0; then
4863 am_cv_ar_interface=ar
4865 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4867 (eval $am_ar_try) 2>&5
4869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4870 test $ac_status = 0; }
4871 if test "$ac_status" -eq 0; then
4872 am_cv_ar_interface=lib
4874 am_cv_ar_interface=unknown
4877 rm -f conftest.lib libconftest.a
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4889 $as_echo "$am_cv_ar_interface" >&6; }
4891 case $am_cv_ar_interface in
4895 # Microsoft lib, so override with the ar-lib wrapper script.
4896 # FIXME: It is wrong to rewrite AR.
4897 # But if we don't then we get into trouble of one sort or another.
4898 # A longer-term fix would be to have automake use am__AR in this case,
4899 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4901 AR="$am_aux_dir/ar-lib $AR"
4904 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4910 ac_cpp='$CXXCPP $CPPFLAGS'
4911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4914 if test -z "$CXX"; then
4915 if test -n "$CCC"; then
4918 if test -n "$ac_tool_prefix"; then
4919 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_CXX+:} false; then :
4926 $as_echo_n "(cached) " >&6
4928 if test -n "$CXX"; then
4929 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 if test -n "$CXX"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4951 $as_echo "$CXX" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 test -n "$CXX" && break
4961 if test -z "$CXX"; then
4963 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4965 # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -n "$ac_ct_CXX"; then
4973 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_ac_ct_CXX="$ac_prog"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4993 if test -n "$ac_ct_CXX"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4995 $as_echo "$ac_ct_CXX" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 test -n "$ac_ct_CXX" && break
5005 if test "x$ac_ct_CXX" = x; then
5008 case $cross_compiling:$ac_tool_warned in
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5020 # Provide some information about the compiler.
5021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5024 for ac_option in --version -v -V -qversion; do
5025 { { ac_try="$ac_compiler $ac_option >&5"
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031 $as_echo "$ac_try_echo"; } >&5
5032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034 if test -s conftest.err; then
5036 ... rest of stderr output deleted ...
5037 10q' conftest.err >conftest.er1
5038 cat conftest.er1 >&5
5040 rm -f conftest.er1 conftest.err
5041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042 test $ac_status = 0; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5046 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5047 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5064 if ac_fn_cxx_try_compile "$LINENO"; then :
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5074 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5075 if test $ac_compiler_gnu = yes; then
5080 ac_test_CXXFLAGS=${CXXFLAGS+set}
5081 ac_save_CXXFLAGS=$CXXFLAGS
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5083 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5084 if ${ac_cv_prog_cxx_g+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5088 ac_cxx_werror_flag=yes
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5102 if ac_fn_cxx_try_compile "$LINENO"; then :
5103 ac_cv_prog_cxx_g=yes
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5117 if ac_fn_cxx_try_compile "$LINENO"; then :
5120 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5133 if ac_fn_cxx_try_compile "$LINENO"; then :
5134 ac_cv_prog_cxx_g=yes
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5144 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5145 if test "$ac_test_CXXFLAGS" = set; then
5146 CXXFLAGS=$ac_save_CXXFLAGS
5147 elif test $ac_cv_prog_cxx_g = yes; then
5148 if test "$GXX" = yes; then
5154 if test "$GXX" = yes; then
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166 depcc="$CXX" am_compiler_list=
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5169 $as_echo_n "checking dependency style of $depcc... " >&6; }
5170 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5171 $as_echo_n "(cached) " >&6
5173 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5174 # We make a subdir and do the tests there. Otherwise we can end up
5175 # making bogus files that we don't know about and never remove. For
5176 # instance it was reported that on HP-UX the gcc test will end up
5177 # making a dummy file named 'D' -- because '-MD' means "put the output
5181 # Copy depcomp to subdir because otherwise we won't find it if we're
5182 # using a relative directory.
5183 cp "$am_depcomp" conftest.dir
5185 # We will build objects and dependencies in a subdirectory because
5186 # it helps to detect inapplicable dependency modes. For instance
5187 # both Tru64's cc and ICC support -MD to output dependencies as a
5188 # side effect of compilation, but ICC will put the dependencies in
5189 # the current directory while Tru64 will put them in the object
5193 am_cv_CXX_dependencies_compiler_type=none
5194 if test "$am_compiler_list" = ""; then
5195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5198 case " $depcc " in #(
5199 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5202 for depmode in $am_compiler_list; do
5203 # Setup a source with many dependencies, because some compilers
5204 # like to wrap large dependency lists on column 80 (with \), and
5205 # we should not choose a depcomp mode which is confused by this.
5207 # We need to recreate these files for each test, as the compiler may
5208 # overwrite some of them when testing with obscure command lines.
5209 # This happens at least with the AIX C compiler.
5211 for i in 1 2 3 4 5 6; do
5212 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5213 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5214 # Solaris 10 /bin/sh.
5215 echo '/* dummy */' > sub/conftst$i.h
5217 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5219 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5220 # mode. It turns out that the SunPro C++ compiler does not properly
5221 # handle '-M -o', and we need to detect this. Also, some Intel
5222 # versions had trouble with output in subdirs.
5223 am__obj=sub/conftest.${OBJEXT-o}
5224 am__minus_obj="-o $am__obj"
5227 # This depmode causes a compiler race in universal mode.
5228 test "$am__universal" = false || continue
5231 # After this tag, mechanisms are not by side-effect, so they'll
5232 # only be used when explicitly requested.
5233 if test "x$enable_dependency_tracking" = xyes; then
5239 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5240 # This compiler won't grok '-c -o', but also, the minuso test has
5241 # not run yet. These depmodes are late enough in the game, and
5242 # so weak that their functioning should not be impacted.
5243 am__obj=conftest.${OBJEXT-o}
5248 if depmode=$depmode \
5249 source=sub/conftest.c object=$am__obj \
5250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5252 >/dev/null 2>conftest.err &&
5253 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5255 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5257 # icc doesn't choke on unknown options, it will just issue warnings
5258 # or remarks (even with -Werror). So we grep stderr for any message
5259 # that says an option was ignored or not supported.
5260 # When given -MP, icc 7.0 and 7.1 complain thusly:
5261 # icc: Command line warning: ignoring option '-M'; no argument required
5262 # The diagnosis changed in icc 8.0:
5263 # icc: Command line remark: option '-MP' not supported
5264 if (grep 'ignoring option' conftest.err ||
5265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266 am_cv_CXX_dependencies_compiler_type=$depmode
5275 am_cv_CXX_dependencies_compiler_type=none
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5280 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5281 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5284 test "x$enable_dependency_tracking" != xno \
5285 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5286 am__fastdepCXX_TRUE=
5287 am__fastdepCXX_FALSE='#'
5289 am__fastdepCXX_TRUE='#'
5290 am__fastdepCXX_FALSE=
5294 CXXFLAGS="-std=c++11"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5299 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5304 macro_version='2.4.6'
5305 macro_revision='2.4.6'
5319 ltmain=$ac_aux_dir/ltmain.sh
5321 # Make sure we can run config.sub.
5322 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5323 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5326 $as_echo_n "checking build system type... " >&6; }
5327 if ${ac_cv_build+:} false; then :
5328 $as_echo_n "(cached) " >&6
5330 ac_build_alias=$build_alias
5331 test "x$ac_build_alias" = x &&
5332 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5333 test "x$ac_build_alias" = x &&
5334 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5335 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5336 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5340 $as_echo "$ac_cv_build" >&6; }
5341 case $ac_cv_build in
5343 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5346 ac_save_IFS=$IFS; IFS='-'
5352 # Remember, the first character of IFS is used to create $*,
5353 # except with old shells:
5356 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5360 $as_echo_n "checking host system type... " >&6; }
5361 if ${ac_cv_host+:} false; then :
5362 $as_echo_n "(cached) " >&6
5364 if test "x$host_alias" = x; then
5365 ac_cv_host=$ac_cv_build
5367 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5373 $as_echo "$ac_cv_host" >&6; }
5376 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5379 ac_save_IFS=$IFS; IFS='-'
5385 # Remember, the first character of IFS is used to create $*,
5386 # except with old shells:
5389 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5392 # Backslashify metacharacters that are still active within
5393 # double-quoted strings.
5394 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5396 # Same as above, but do not quote variable references.
5397 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5399 # Sed substitution to delay expansion of an escaped shell variable in a
5400 # double_quote_subst'ed string.
5401 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5403 # Sed substitution to delay expansion of an escaped single quote.
5404 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5406 # Sed substitution to avoid accidental globbing in evaled expressions
5407 no_glob_subst='s/\*/\\\*/g'
5409 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5410 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5411 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5414 $as_echo_n "checking how to print strings... " >&6; }
5415 # Test print first, because it will be a builtin if present.
5416 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5417 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5419 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5422 # Use this function as a fallback that always works.
5423 func_fallback_echo ()
5425 eval 'cat <<_LTECHO_EOF
5429 ECHO='func_fallback_echo'
5432 # func_echo_all arg...
5433 # Invoke $ECHO with all args, space-separated.
5440 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5441 $as_echo "printf" >&6; } ;;
5442 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5443 $as_echo "print -r" >&6; } ;;
5444 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5445 $as_echo "cat" >&6; } ;;
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5462 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5463 if ${ac_cv_path_SED+:} false; then :
5464 $as_echo_n "(cached) " >&6
5466 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5467 for ac_i in 1 2 3 4 5 6 7; do
5468 ac_script="$ac_script$as_nl$ac_script"
5470 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5471 { ac_script=; unset ac_script;}
5472 if test -z "$SED"; then
5473 ac_path_SED_found=false
5474 # Loop through the user's path and test for each of PROGNAME-LIST
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 test -z "$as_dir" && as_dir=.
5480 for ac_prog in sed gsed; do
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5483 as_fn_executable_p "$ac_path_SED" || continue
5484 # Check for GNU ac_path_SED and select it if it is found.
5485 # Check for GNU $ac_path_SED
5486 case `"$ac_path_SED" --version 2>&1` in
5488 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5491 $as_echo_n 0123456789 >"conftest.in"
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 $as_echo '' >> "conftest.nl"
5498 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 as_fn_arith $ac_count + 1 && ac_count=$as_val
5501 if test $ac_count -gt ${ac_path_SED_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_SED="$ac_path_SED"
5504 ac_path_SED_max=$ac_count
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512 $ac_path_SED_found && break 3
5517 if test -z "$ac_cv_path_SED"; then
5518 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5526 $as_echo "$ac_cv_path_SED" >&6; }
5527 SED="$ac_cv_path_SED"
5530 test -z "$SED" && SED=sed
5531 Xsed="$SED -e 1s/^X//"
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5545 if ${ac_cv_path_GREP+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -z "$GREP"; then
5549 ac_path_GREP_found=false
5550 # Loop through the user's path and test for each of PROGNAME-LIST
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5555 test -z "$as_dir" && as_dir=.
5556 for ac_prog in grep ggrep; do
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5559 as_fn_executable_p "$ac_path_GREP" || continue
5560 # Check for GNU ac_path_GREP and select it if it is found.
5561 # Check for GNU $ac_path_GREP
5562 case `"$ac_path_GREP" --version 2>&1` in
5564 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5567 $as_echo_n 0123456789 >"conftest.in"
5570 cat "conftest.in" "conftest.in" >"conftest.tmp"
5571 mv "conftest.tmp" "conftest.in"
5572 cp "conftest.in" "conftest.nl"
5573 $as_echo 'GREP' >> "conftest.nl"
5574 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5576 as_fn_arith $ac_count + 1 && ac_count=$as_val
5577 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5578 # Best one so far, save it but keep looking for a better one
5579 ac_cv_path_GREP="$ac_path_GREP"
5580 ac_path_GREP_max=$ac_count
5582 # 10*(2^10) chars as input seems more than enough
5583 test $ac_count -gt 10 && break
5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588 $ac_path_GREP_found && break 3
5593 if test -z "$ac_cv_path_GREP"; then
5594 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5597 ac_cv_path_GREP=$GREP
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5602 $as_echo "$ac_cv_path_GREP" >&6; }
5603 GREP="$ac_cv_path_GREP"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5607 $as_echo_n "checking for egrep... " >&6; }
5608 if ${ac_cv_path_EGREP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5612 then ac_cv_path_EGREP="$GREP -E"
5614 if test -z "$EGREP"; then
5615 ac_path_EGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 test -z "$as_dir" && as_dir=.
5622 for ac_prog in egrep; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5625 as_fn_executable_p "$ac_path_EGREP" || continue
5626 # Check for GNU ac_path_EGREP and select it if it is found.
5627 # Check for GNU $ac_path_EGREP
5628 case `"$ac_path_EGREP" --version 2>&1` in
5630 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5633 $as_echo_n 0123456789 >"conftest.in"
5636 cat "conftest.in" "conftest.in" >"conftest.tmp"
5637 mv "conftest.tmp" "conftest.in"
5638 cp "conftest.in" "conftest.nl"
5639 $as_echo 'EGREP' >> "conftest.nl"
5640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642 as_fn_arith $ac_count + 1 && ac_count=$as_val
5643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5644 # Best one so far, save it but keep looking for a better one
5645 ac_cv_path_EGREP="$ac_path_EGREP"
5646 ac_path_EGREP_max=$ac_count
5648 # 10*(2^10) chars as input seems more than enough
5649 test $ac_count -gt 10 && break
5651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 $ac_path_EGREP_found && break 3
5659 if test -z "$ac_cv_path_EGREP"; then
5660 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5663 ac_cv_path_EGREP=$EGREP
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5669 $as_echo "$ac_cv_path_EGREP" >&6; }
5670 EGREP="$ac_cv_path_EGREP"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5674 $as_echo_n "checking for fgrep... " >&6; }
5675 if ${ac_cv_path_FGREP+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5679 then ac_cv_path_FGREP="$GREP -F"
5681 if test -z "$FGREP"; then
5682 ac_path_FGREP_found=false
5683 # Loop through the user's path and test for each of PROGNAME-LIST
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5688 test -z "$as_dir" && as_dir=.
5689 for ac_prog in fgrep; do
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5692 as_fn_executable_p "$ac_path_FGREP" || continue
5693 # Check for GNU ac_path_FGREP and select it if it is found.
5694 # Check for GNU $ac_path_FGREP
5695 case `"$ac_path_FGREP" --version 2>&1` in
5697 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5700 $as_echo_n 0123456789 >"conftest.in"
5703 cat "conftest.in" "conftest.in" >"conftest.tmp"
5704 mv "conftest.tmp" "conftest.in"
5705 cp "conftest.in" "conftest.nl"
5706 $as_echo 'FGREP' >> "conftest.nl"
5707 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5709 as_fn_arith $ac_count + 1 && ac_count=$as_val
5710 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5711 # Best one so far, save it but keep looking for a better one
5712 ac_cv_path_FGREP="$ac_path_FGREP"
5713 ac_path_FGREP_max=$ac_count
5715 # 10*(2^10) chars as input seems more than enough
5716 test $ac_count -gt 10 && break
5718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5721 $ac_path_FGREP_found && break 3
5726 if test -z "$ac_cv_path_FGREP"; then
5727 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5730 ac_cv_path_FGREP=$FGREP
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5736 $as_echo "$ac_cv_path_FGREP" >&6; }
5737 FGREP="$ac_cv_path_FGREP"
5740 test -z "$GREP" && GREP=grep
5760 @%:@ Check whether --with-gnu-ld was given.
5761 if test "${with_gnu_ld+set}" = set; then :
5762 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5768 if test yes = "$GCC"; then
5769 # Check if gcc -print-prog-name=ld gives a path.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5771 $as_echo_n "checking for ld used by $CC... " >&6; }
5774 # gcc leaves a trailing carriage return, which upsets mingw
5775 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5777 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5780 # Accept absolute paths.
5782 re_direlt='/[^/][^/]*/\.\./'
5783 # Canonicalize the pathname of ld
5784 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5785 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5786 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5788 test -z "$LD" && LD=$ac_prog
5791 # If it fails, then pretend we aren't using GCC.
5795 # If it is relative, then search for the first ld in PATH.
5799 elif test yes = "$with_gnu_ld"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5801 $as_echo_n "checking for GNU ld... " >&6; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5804 $as_echo_n "checking for non-GNU ld... " >&6; }
5806 if ${lt_cv_path_LD+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 if test -z "$LD"; then
5810 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5811 for ac_dir in $PATH; do
5813 test -z "$ac_dir" && ac_dir=.
5814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5815 lt_cv_path_LD=$ac_dir/$ac_prog
5816 # Check to see if the program is GNU ld. I'd rather use --version,
5817 # but apparently some variants of GNU ld only accept -v.
5818 # Break only if it was the GNU/non-GNU ld that we prefer.
5819 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5820 *GNU* | *'with BFD'*)
5821 test no != "$with_gnu_ld" && break
5824 test yes != "$with_gnu_ld" && break
5831 lt_cv_path_LD=$LD # Let the user override the test with a path.
5836 if test -n "$LD"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5838 $as_echo "$LD" >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5843 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5845 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5846 if ${lt_cv_prog_gnu_ld+:} false; then :
5847 $as_echo_n "(cached) " >&6
5849 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5850 case `$LD -v 2>&1 </dev/null` in
5851 *GNU* | *'with BFD'*)
5852 lt_cv_prog_gnu_ld=yes
5855 lt_cv_prog_gnu_ld=no
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5860 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5861 with_gnu_ld=$lt_cv_prog_gnu_ld
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5872 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5873 if ${lt_cv_path_NM+:} false; then :
5874 $as_echo_n "(cached) " >&6
5876 if test -n "$NM"; then
5877 # Let the user override the test.
5880 lt_nm_to_check=${ac_tool_prefix}nm
5881 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5882 lt_nm_to_check="$lt_nm_to_check nm"
5884 for lt_tmp_nm in $lt_nm_to_check; do
5885 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5886 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5888 test -z "$ac_dir" && ac_dir=.
5889 tmp_nm=$ac_dir/$lt_tmp_nm
5890 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5891 # Check to see if the nm accepts a BSD-compat flag.
5892 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5893 # nm: unknown option "B" ignored
5894 # Tru64's nm complains that /dev/null is an invalid object file
5895 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5897 mingw*) lt_bad_file=conftest.nm/nofile ;;
5898 *) lt_bad_file=/dev/null ;;
5900 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5901 *$lt_bad_file* | *'Invalid file or object type'*)
5902 lt_cv_path_NM="$tmp_nm -B"
5906 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5908 lt_cv_path_NM="$tmp_nm -p"
5912 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5913 continue # so that we can try to find one that supports BSD flags
5922 : ${lt_cv_path_NM=no}
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5926 $as_echo "$lt_cv_path_NM" >&6; }
5927 if test no != "$lt_cv_path_NM"; then
5930 # Didn't find any BSD compatible name lister, look for dumpbin.
5931 if test -n "$DUMPBIN"; then :
5932 # Let the user override the test.
5934 if test -n "$ac_tool_prefix"; then
5935 for ac_prog in dumpbin "link -dump"
5937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_DUMPBIN+:} false; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$DUMPBIN"; then
5945 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 DUMPBIN=$ac_cv_prog_DUMPBIN
5965 if test -n "$DUMPBIN"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5967 $as_echo "$DUMPBIN" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5974 test -n "$DUMPBIN" && break
5977 if test -z "$DUMPBIN"; then
5978 ac_ct_DUMPBIN=$DUMPBIN
5979 for ac_prog in dumpbin "link -dump"
5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5986 $as_echo_n "(cached) " >&6
5988 if test -n "$ac_ct_DUMPBIN"; then
5989 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6009 if test -n "$ac_ct_DUMPBIN"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6011 $as_echo "$ac_ct_DUMPBIN" >&6; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6018 test -n "$ac_ct_DUMPBIN" && break
6021 if test "x$ac_ct_DUMPBIN" = x; then
6024 case $cross_compiling:$ac_tool_warned in
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028 ac_tool_warned=yes ;;
6030 DUMPBIN=$ac_ct_DUMPBIN
6034 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6036 DUMPBIN="$DUMPBIN -symbols -headers"
6044 if test : != "$DUMPBIN"; then
6048 test -z "$NM" && NM=nm
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6056 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6057 if ${lt_cv_nm_interface+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 lt_cv_nm_interface="BSD nm"
6061 echo "int some_variable = 0;" > conftest.$ac_ext
6062 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6063 (eval "$ac_compile" 2>conftest.err)
6064 cat conftest.err >&5
6065 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6066 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6067 cat conftest.err >&5
6068 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6069 cat conftest.out >&5
6070 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6071 lt_cv_nm_interface="MS dumpbin"
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6076 $as_echo "$lt_cv_nm_interface" >&6; }
6078 # find the maximum length of command line arguments
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6080 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6081 if ${lt_cv_sys_max_cmd_len+:} false; then :
6082 $as_echo_n "(cached) " >&6
6089 # On DJGPP, this test can blow up pretty badly due to problems in libc
6090 # (any single argument exceeding 2000 bytes causes a buffer overrun
6091 # during glob expansion). Even if it were fixed, the result of this
6092 # check would be larger than it should be.
6093 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6097 # Under GNU Hurd, this test is not required because there is
6098 # no limit to the length of command line arguments.
6099 # Libtool will interpret -1 as no limit whatsoever
6100 lt_cv_sys_max_cmd_len=-1;
6103 cygwin* | mingw* | cegcc*)
6104 # On Win9x/ME, this test blows up -- it succeeds, but takes
6105 # about 5 minutes as the teststring grows exponentially.
6106 # Worse, since 9x/ME are not pre-emptively multitasking,
6107 # you end up with a "frozen" computer, even though with patience
6108 # the test eventually succeeds (with a max line length of 256k).
6109 # Instead, let's just punt: use the minimum linelength reported by
6110 # all of the supported platforms: 8192 (on NT/2K/XP).
6111 lt_cv_sys_max_cmd_len=8192;
6115 # On MiNT this can take a long time and run out of memory.
6116 lt_cv_sys_max_cmd_len=8192;
6120 # On AmigaOS with pdksh, this test takes hours, literally.
6121 # So we just punt and use a minimum line length of 8192.
6122 lt_cv_sys_max_cmd_len=8192;
6125 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6126 # This has been around since 386BSD, at least. Likely further.
6127 if test -x /sbin/sysctl; then
6128 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6129 elif test -x /usr/sbin/sysctl; then
6130 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6132 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6134 # And add a safety zone
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6140 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6141 lt_cv_sys_max_cmd_len=196608
6145 # The test takes a long time on OS/2.
6146 lt_cv_sys_max_cmd_len=8192
6150 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6151 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6152 # nice to cause kernel panics so lets avoid the loop below.
6153 # First set a reasonable default.
6154 lt_cv_sys_max_cmd_len=16384
6156 if test -x /sbin/sysconfig; then
6157 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6158 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6163 lt_cv_sys_max_cmd_len=102400
6165 sysv5* | sco5v6* | sysv4.2uw2*)
6166 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6167 if test -n "$kargmax"; then
6168 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6170 lt_cv_sys_max_cmd_len=32768
6174 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6175 if test -n "$lt_cv_sys_max_cmd_len" && \
6176 test undefined != "$lt_cv_sys_max_cmd_len"; then
6177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6180 # Make teststring a little bigger before we do anything with it.
6181 # a 1K string should be a reasonable start.
6182 for i in 1 2 3 4 5 6 7 8; do
6183 teststring=$teststring$teststring
6185 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6186 # If test is not a shell built-in, we'll probably end up computing a
6187 # maximum length that is only half of the actual maximum length, but
6189 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6190 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6191 test 17 != "$i" # 1/2 MB should be enough
6194 teststring=$teststring$teststring
6196 # Only check the string length outside the loop.
6197 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6199 # Add a significant safety factor because C++ compilers can tack on
6200 # massive amounts of additional arguments before passing them to the
6201 # linker. It appears as though 1/2 is a usable value.
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6209 if test -n "$lt_cv_sys_max_cmd_len"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6211 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6214 $as_echo "none" >&6; }
6216 max_cmd_len=$lt_cv_sys_max_cmd_len
6227 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6237 # test EBCDIC or ASCII
6238 case `echo X|tr X '\101'` in
6239 A) # ASCII based system
6240 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6241 lt_SP2NL='tr \040 \012'
6242 lt_NL2SP='tr \015\012 \040\040'
6244 *) # EBCDIC based system
6245 lt_SP2NL='tr \100 \n'
6246 lt_NL2SP='tr \r\n \100\100'
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6259 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6260 if ${lt_cv_to_host_file_cmd+:} false; then :
6261 $as_echo_n "(cached) " >&6
6266 *-*-mingw* ) # actually msys
6267 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6270 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6272 * ) # otherwise, assume *nix
6273 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6279 *-*-mingw* ) # actually msys
6280 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6283 lt_cv_to_host_file_cmd=func_convert_file_noop
6285 * ) # otherwise, assume *nix
6286 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6290 * ) # unhandled hosts (and "normal" native builds)
6291 lt_cv_to_host_file_cmd=func_convert_file_noop
6297 to_host_file_cmd=$lt_cv_to_host_file_cmd
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6299 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6306 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6307 if ${lt_cv_to_tool_file_cmd+:} false; then :
6308 $as_echo_n "(cached) " >&6
6310 #assume ordinary cross tools, or native build.
6311 lt_cv_to_tool_file_cmd=func_convert_file_noop
6315 *-*-mingw* ) # actually msys
6316 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6324 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6326 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6333 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6334 if ${lt_cv_ld_reload_flag+:} false; then :
6335 $as_echo_n "(cached) " >&6
6337 lt_cv_ld_reload_flag='-r'
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6340 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6341 reload_flag=$lt_cv_ld_reload_flag
6342 case $reload_flag in
6344 *) reload_flag=" $reload_flag" ;;
6346 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6348 cygwin* | mingw* | pw32* | cegcc*)
6349 if test yes != "$GCC"; then
6354 if test yes = "$GCC"; then
6355 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_OBJDUMP+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 if test -n "$OBJDUMP"; then
6379 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 OBJDUMP=$ac_cv_prog_OBJDUMP
6399 if test -n "$OBJDUMP"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6401 $as_echo "$OBJDUMP" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6409 if test -z "$ac_cv_prog_OBJDUMP"; then
6410 ac_ct_OBJDUMP=$OBJDUMP
6411 # Extract the first word of "objdump", so it can be a program name with args.
6412 set dummy objdump; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$ac_ct_OBJDUMP"; then
6419 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6439 if test -n "$ac_ct_OBJDUMP"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6441 $as_echo "$ac_ct_OBJDUMP" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6447 if test "x$ac_ct_OBJDUMP" = x; then
6450 case $cross_compiling:$ac_tool_warned in
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6456 OBJDUMP=$ac_ct_OBJDUMP
6459 OBJDUMP="$ac_cv_prog_OBJDUMP"
6462 test -z "$OBJDUMP" && OBJDUMP=objdump
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6473 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6474 if ${lt_cv_deplibs_check_method+:} false; then :
6475 $as_echo_n "(cached) " >&6
6477 lt_cv_file_magic_cmd='$MAGIC_CMD'
6478 lt_cv_file_magic_test_file=
6479 lt_cv_deplibs_check_method='unknown'
6480 # Need to set the preceding variable on all platforms that support
6481 # interlibrary dependencies.
6482 # 'none' -- dependencies not supported.
6483 # 'unknown' -- same as none, but documents that we really don't know.
6484 # 'pass_all' -- all dependencies passed with no checks.
6485 # 'test_compile' -- check by making test program.
6486 # 'file_magic [[regex]]' -- check by looking for files in library path
6487 # that responds to the $file_magic_cmd with a given extended regex.
6488 # If you have 'file' or equivalent on your system and you're not sure
6489 # whether 'pass_all' will *always* work, you probably want this one.
6493 lt_cv_deplibs_check_method=pass_all
6497 lt_cv_deplibs_check_method=pass_all
6501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6502 lt_cv_file_magic_cmd='/usr/bin/file -L'
6503 lt_cv_file_magic_test_file=/shlib/libc.so
6507 # func_win32_libid is a shell function defined in ltmain.sh
6508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6509 lt_cv_file_magic_cmd='func_win32_libid'
6513 # Base MSYS/MinGW do not provide the 'file' command needed by
6514 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6515 # unless we find 'file', for example because we are cross-compiling.
6516 if ( file / ) >/dev/null 2>&1; then
6517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6518 lt_cv_file_magic_cmd='func_win32_libid'
6520 # Keep this pattern in sync with the one in func_win32_libid.
6521 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6522 lt_cv_file_magic_cmd='$OBJDUMP -f'
6527 # use the weaker test based on 'objdump'. See mingw*.
6528 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6529 lt_cv_file_magic_cmd='$OBJDUMP -f'
6532 darwin* | rhapsody*)
6533 lt_cv_deplibs_check_method=pass_all
6536 freebsd* | dragonfly*)
6537 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6540 # Not sure whether the presence of OpenBSD here was a mistake.
6541 # Let's accept both of them until this is cleared up.
6542 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6543 lt_cv_file_magic_cmd=/usr/bin/file
6544 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6548 lt_cv_deplibs_check_method=pass_all
6553 lt_cv_deplibs_check_method=pass_all
6556 hpux10.20* | hpux11*)
6557 lt_cv_file_magic_cmd=/usr/bin/file
6560 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6561 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6564 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]'
6565 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6569 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6575 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6579 irix5* | irix6* | nonstopux*)
6581 *-32|*"-32 ") libmagic=32-bit;;
6582 *-n32|*"-n32 ") libmagic=N32;;
6583 *-64|*"-64 ") libmagic=64-bit;;
6584 *) libmagic=never-match;;
6586 lt_cv_deplibs_check_method=pass_all
6589 # This must be glibc/ELF.
6590 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6591 lt_cv_deplibs_check_method=pass_all
6594 netbsd* | netbsdelf*-gnu)
6595 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6604 lt_cv_file_magic_cmd=/usr/bin/file
6605 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6609 lt_cv_deplibs_check_method=pass_all
6613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6620 osf3* | osf4* | osf5*)
6621 lt_cv_deplibs_check_method=pass_all
6625 lt_cv_deplibs_check_method=pass_all
6629 lt_cv_deplibs_check_method=pass_all
6632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6633 lt_cv_deplibs_check_method=pass_all
6637 case $host_vendor in
6639 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]'
6640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6643 lt_cv_deplibs_check_method=pass_all
6646 lt_cv_file_magic_cmd='/bin/file'
6647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6650 lt_cv_file_magic_cmd='/bin/file'
6651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6652 lt_cv_file_magic_test_file=/lib/libc.so
6655 lt_cv_deplibs_check_method=pass_all
6658 lt_cv_deplibs_check_method=pass_all
6664 lt_cv_deplibs_check_method=pass_all
6667 lt_cv_deplibs_check_method=pass_all
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6673 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6677 if test "$build" = "$host"; then
6680 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6683 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6689 file_magic_cmd=$lt_cv_file_magic_cmd
6690 deplibs_check_method=$lt_cv_deplibs_check_method
6691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_DLLTOOL+:} false; then :
6720 $as_echo_n "(cached) " >&6
6722 if test -n "$DLLTOOL"; then
6723 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 DLLTOOL=$ac_cv_prog_DLLTOOL
6743 if test -n "$DLLTOOL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6745 $as_echo "$DLLTOOL" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6753 if test -z "$ac_cv_prog_DLLTOOL"; then
6754 ac_ct_DLLTOOL=$DLLTOOL
6755 # Extract the first word of "dlltool", so it can be a program name with args.
6756 set dummy dlltool; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6760 $as_echo_n "(cached) " >&6
6762 if test -n "$ac_ct_DLLTOOL"; then
6763 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6783 if test -n "$ac_ct_DLLTOOL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6785 $as_echo "$ac_ct_DLLTOOL" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6791 if test "x$ac_ct_DLLTOOL" = x; then
6794 case $cross_compiling:$ac_tool_warned in
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6800 DLLTOOL=$ac_ct_DLLTOOL
6803 DLLTOOL="$ac_cv_prog_DLLTOOL"
6806 test -z "$DLLTOOL" && DLLTOOL=dlltool
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6818 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6819 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6820 $as_echo_n "(cached) " >&6
6822 lt_cv_sharedlib_from_linklib_cmd='unknown'
6825 cygwin* | mingw* | pw32* | cegcc*)
6826 # two different shell functions defined in ltmain.sh;
6827 # decide which one to use based on capabilities of $DLLTOOL
6828 case `$DLLTOOL --help 2>&1` in
6829 *--identify-strict*)
6830 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6833 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6838 # fallback: assume linklib IS sharedlib
6839 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6845 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6846 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6847 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6855 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_AR+:} false; then :
6863 $as_echo_n "(cached) " >&6
6865 if test -n "$AR"; then
6866 ac_cv_prog_AR="$AR" # Let the user override the test.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 if test -n "$AR"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6888 $as_echo "$AR" >&6; }
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6895 test -n "$AR" && break
6898 if test -z "$AR"; then
6902 # Extract the first word of "$ac_prog", so it can be a program name with args.
6903 set dummy $ac_prog; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 if test -n "$ac_ct_AR"; then
6910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_ac_ct_AR="$ac_prog"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6930 if test -n "$ac_ct_AR"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6932 $as_echo "$ac_ct_AR" >&6; }
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6939 test -n "$ac_ct_AR" && break
6942 if test "x$ac_ct_AR" = x; then
6945 case $cross_compiling:$ac_tool_warned in
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949 ac_tool_warned=yes ;;
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6969 $as_echo_n "checking for archiver @FILE support... " >&6; }
6970 if ${lt_cv_ar_at_file+:} false; then :
6971 $as_echo_n "(cached) " >&6
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986 echo conftest.$ac_objext > conftest.lst
6987 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6989 (eval $lt_ar_try) 2>&5
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }
6993 if test 0 -eq "$ac_status"; then
6994 # Ensure the archiver fails upon bogus file names.
6995 rm -f conftest.$ac_objext libconftest.a
6996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6997 (eval $lt_ar_try) 2>&5
6999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000 test $ac_status = 0; }
7001 if test 0 -ne "$ac_status"; then
7005 rm -f conftest.* libconftest.a
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7012 $as_echo "$lt_cv_ar_at_file" >&6; }
7014 if test no = "$lt_cv_ar_at_file"; then
7017 archiver_list_spec=$lt_cv_ar_at_file
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}strip; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_STRIP+:} false; then :
7032 $as_echo_n "(cached) " >&6
7034 if test -n "$STRIP"; then
7035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 STRIP=$ac_cv_prog_STRIP
7055 if test -n "$STRIP"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7057 $as_echo "$STRIP" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7065 if test -z "$ac_cv_prog_STRIP"; then
7067 # Extract the first word of "strip", so it can be a program name with args.
7068 set dummy strip; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7072 $as_echo_n "(cached) " >&6
7074 if test -n "$ac_ct_STRIP"; then
7075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_STRIP="strip"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7095 if test -n "$ac_ct_STRIP"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7097 $as_echo "$ac_ct_STRIP" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7103 if test "x$ac_ct_STRIP" = x; then
7106 case $cross_compiling:$ac_tool_warned in
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7115 STRIP="$ac_cv_prog_STRIP"
7118 test -z "$STRIP" && STRIP=:
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_RANLIB+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$RANLIB"; then
7134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 RANLIB=$ac_cv_prog_RANLIB
7154 if test -n "$RANLIB"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7156 $as_echo "$RANLIB" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7164 if test -z "$ac_cv_prog_RANLIB"; then
7165 ac_ct_RANLIB=$RANLIB
7166 # Extract the first word of "ranlib", so it can be a program name with args.
7167 set dummy ranlib; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$ac_ct_RANLIB"; then
7174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_RANLIB="ranlib"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7194 if test -n "$ac_ct_RANLIB"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7196 $as_echo "$ac_ct_RANLIB" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7202 if test "x$ac_ct_RANLIB" = x; then
7205 case $cross_compiling:$ac_tool_warned in
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7211 RANLIB=$ac_ct_RANLIB
7214 RANLIB="$ac_cv_prog_RANLIB"
7217 test -z "$RANLIB" && RANLIB=:
7224 # Determine commands to create old-style static archives.
7225 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7226 old_postinstall_cmds='chmod 644 $oldlib'
7227 old_postuninstall_cmds=
7229 if test -n "$RANLIB"; then
7232 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7235 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7238 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7243 lock_old_archive_extraction=yes ;;
7245 lock_old_archive_extraction=no ;;
7286 # If no C compiler was specified, use CC.
7289 # If no C compiler flags were specified, use CFLAGS.
7290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7292 # Allow CC to be a program name with arguments.
7296 # Check for command to grab the raw symbol name followed by C symbol from nm.
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7298 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7299 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7300 $as_echo_n "(cached) " >&6
7303 # These are sane defaults that work on at least a few old systems.
7304 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7306 # Character class describing NM global symbol codes.
7307 symcode='[BCDEGRST]'
7309 # Regexp to match symbols that can be accessed directly from C.
7310 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7312 # Define system-specific variables.
7317 cygwin* | mingw* | pw32* | cegcc*)
7318 symcode='[ABCDGISTW]'
7321 if test ia64 = "$host_cpu"; then
7322 symcode='[ABCDEGRST]'
7326 symcode='[BCDEGRST]'
7329 symcode='[BCDEGQRST]'
7340 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7348 # If we're using GNU nm, then use its standard symbol codes.
7349 case `$NM -V 2>&1` in
7350 *GNU* | *'with BFD'*)
7351 symcode='[ABCDGIRSTW]' ;;
7354 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7355 # Gets list of data symbols to import.
7356 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7357 # Adjust the below global symbol transforms to fixup imported variables.
7358 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7359 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7360 lt_c_name_lib_hook="\
7361 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7362 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7364 # Disable hooks by default.
7365 lt_cv_sys_global_symbol_to_import=
7371 # Transform an extracted symbol line into a proper C declaration.
7372 # Some systems (esp. on ia64) link data and code symbols differently,
7373 # so use this general approach.
7374 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7376 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7377 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7379 # Transform an extracted symbol line into symbol name and symbol address
7380 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7382 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7383 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7385 # Transform an extracted symbol line into symbol name with lib prefix and
7387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7388 $lt_c_name_lib_hook\
7389 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7390 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7391 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7393 # Handle CRLF in mingw tool chain
7397 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7401 # Try without a prefix underscore, then with it.
7402 for ac_symprfx in "" "_"; do
7404 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7405 symxfrm="\\1 $ac_symprfx\\2 \\2"
7407 # Write the raw and C identifiers.
7408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7409 # Fake it for dumpbin and say T for any non-static function,
7410 # D for any global variable and I for any imported variable.
7411 # Also find C++ and __fastcall symbols from MSVC++,
7412 # which start with @ or ?.
7413 lt_cv_sys_global_symbol_pipe="$AWK '"\
7414 " {last_section=section; section=\$ 3};"\
7415 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7416 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7417 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7418 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7419 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7420 " \$ 0!~/External *\|/{next};"\
7421 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7422 " {if(hide[section]) next};"\
7423 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7424 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7425 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7426 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7427 " ' prfx=^$ac_symprfx"
7429 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7431 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7433 # Check to see that the pipe works correctly.
7437 cat > conftest.$ac_ext <<_LT_EOF
7442 void nm_test_func(void);
7443 void nm_test_func(void){}
7447 int main(){nm_test_var='a';nm_test_func();return(0);}
7450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7451 (eval $ac_compile) 2>&5
7453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7454 test $ac_status = 0; }; then
7455 # Now try to grab the symbols.
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7458 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; } && test -s "$nlist"; then
7462 # Try sorting and uniquifying the output.
7463 if sort "$nlist" | uniq > "$nlist"T; then
7464 mv -f "$nlist"T "$nlist"
7469 # Make sure that we snagged all the symbols we need.
7470 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7471 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7472 cat <<_LT_EOF > conftest.$ac_ext
7473 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7474 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7475 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7476 relocations are performed -- see ld's documentation on pseudo-relocs. */
7477 # define LT@&t@_DLSYM_CONST
7478 #elif defined __osf__
7479 /* This system does not cope well with relocations in const data. */
7480 # define LT@&t@_DLSYM_CONST
7482 # define LT@&t@_DLSYM_CONST const
7490 # Now generate the symbol file.
7491 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7493 cat <<_LT_EOF >> conftest.$ac_ext
7495 /* The mapping between symbol names and symbols. */
7496 LT@&t@_DLSYM_CONST struct {
7500 lt__PROGRAM__LTX_preloaded_symbols[] =
7502 { "@PROGRAM@", (void *) 0 },
7504 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7505 cat <<\_LT_EOF >> conftest.$ac_ext
7509 /* This works around a problem in FreeBSD linker */
7510 #ifdef FREEBSD_WORKAROUND
7511 static const void *lt_preloaded_setup() {
7512 return lt__PROGRAM__LTX_preloaded_symbols;
7520 # Now try linking the two files.
7521 mv conftest.$ac_objext conftstm.$ac_objext
7522 lt_globsym_save_LIBS=$LIBS
7523 lt_globsym_save_CFLAGS=$CFLAGS
7524 LIBS=conftstm.$ac_objext
7525 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7527 (eval $ac_link) 2>&5
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7533 LIBS=$lt_globsym_save_LIBS
7534 CFLAGS=$lt_globsym_save_CFLAGS
7536 echo "cannot find nm_test_func in $nlist" >&5
7539 echo "cannot find nm_test_var in $nlist" >&5
7542 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7545 echo "$progname: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 rm -rf conftest* conftst*
7550 # Do not use the global_symbol_pipe unless it works.
7551 if test yes = "$pipe_works"; then
7554 lt_cv_sys_global_symbol_pipe=
7560 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7561 lt_cv_sys_global_symbol_to_cdecl=
7563 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7565 $as_echo "failed" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7568 $as_echo "ok" >&6; }
7571 # Response file support.
7572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7573 nm_file_list_spec='@'
7574 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7575 nm_file_list_spec='@'
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7615 $as_echo_n "checking for sysroot... " >&6; }
7617 @%:@ Check whether --with-sysroot was given.
7618 if test "${with_sysroot+set}" = set; then :
7619 withval=$with_sysroot;
7626 case $with_sysroot in #(
7628 if test yes = "$GCC"; then
7629 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7633 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7639 $as_echo "$with_sysroot" >&6; }
7640 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7645 $as_echo "${lt_sysroot:-no}" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7652 $as_echo_n "checking for a working dd... " >&6; }
7653 if ${ac_cv_path_lt_DD+:} false; then :
7654 $as_echo_n "(cached) " >&6
7656 printf 0123456789abcdef0123456789abcdef >conftest.i
7657 cat conftest.i conftest.i >conftest2.i
7659 if test -z "$lt_DD"; then
7660 ac_path_lt_DD_found=false
7661 # Loop through the user's path and test for each of PROGNAME-LIST
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_prog in dd; do
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7670 as_fn_executable_p "$ac_path_lt_DD" || continue
7671 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7672 cmp -s conftest.i conftest.out \
7673 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7675 $ac_path_lt_DD_found && break 3
7680 if test -z "$ac_cv_path_lt_DD"; then
7684 ac_cv_path_lt_DD=$lt_DD
7687 rm -f conftest.i conftest2.i conftest.out
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7690 $as_echo "$ac_cv_path_lt_DD" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7694 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7695 if ${lt_cv_truncate_bin+:} false; then :
7696 $as_echo_n "(cached) " >&6
7698 printf 0123456789abcdef0123456789abcdef >conftest.i
7699 cat conftest.i conftest.i >conftest2.i
7701 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7702 cmp -s conftest.i conftest.out \
7703 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7705 rm -f conftest.i conftest2.i conftest.out
7706 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7709 $as_echo "$lt_cv_truncate_bin" >&6; }
7717 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7720 for cc_temp in @S|@*""; do
7722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7728 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7731 @%:@ Check whether --enable-libtool-lock was given.
7732 if test "${enable_libtool_lock+set}" = set; then :
7733 enableval=$enable_libtool_lock;
7736 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7738 # Some flags need to be propagated to the compiler or linker for good
7742 # Find out what ABI is being produced by ac_compile, and set mode
7743 # options accordingly.
7744 echo 'int i;' > conftest.$ac_ext
7745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7746 (eval $ac_compile) 2>&5
7748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749 test $ac_status = 0; }; then
7750 case `/usr/bin/file conftest.$ac_objext` in
7762 # Find out what ABI is being produced by ac_compile, and set linker
7763 # options accordingly.
7764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7766 (eval $ac_compile) 2>&5
7768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7769 test $ac_status = 0; }; then
7770 if test yes = "$lt_cv_prog_gnu_ld"; then
7771 case `/usr/bin/file conftest.$ac_objext` in
7773 LD="${LD-ld} -melf32bsmip"
7776 LD="${LD-ld} -melf32bmipn32"
7779 LD="${LD-ld} -melf64bmip"
7783 case `/usr/bin/file conftest.$ac_objext` in
7800 # Find out what ABI is being produced by ac_compile, and set linker
7801 # options accordingly.
7802 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7804 (eval $ac_compile) 2>&5
7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7807 test $ac_status = 0; }; then
7809 case `/usr/bin/file conftest.$ac_objext` in
7817 case `/usr/bin/file conftest.$ac_objext` in
7819 emul="${emul}btsmip"
7822 emul="${emul}ltsmip"
7825 case `/usr/bin/file conftest.$ac_objext` in
7830 LD="${LD-ld} -m $emul"
7835 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7836 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7837 # Find out what ABI is being produced by ac_compile, and set linker
7838 # options accordingly. Note that the listed cases only cover the
7839 # situations where additional linker options are needed (such as when
7840 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7841 # vice versa); the common cases where no linker options are needed do
7842 # not appear in the list.
7843 echo 'int i;' > conftest.$ac_ext
7844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7845 (eval $ac_compile) 2>&5
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; }; then
7849 case `/usr/bin/file conftest.o` in
7852 x86_64-*kfreebsd*-gnu)
7853 LD="${LD-ld} -m elf_i386_fbsd"
7856 case `/usr/bin/file conftest.o` in
7858 LD="${LD-ld} -m elf32_x86_64"
7861 LD="${LD-ld} -m elf_i386"
7865 powerpc64le-*linux*)
7866 LD="${LD-ld} -m elf32lppclinux"
7869 LD="${LD-ld} -m elf32ppclinux"
7872 LD="${LD-ld} -m elf_s390"
7875 LD="${LD-ld} -m elf32_sparc"
7881 x86_64-*kfreebsd*-gnu)
7882 LD="${LD-ld} -m elf_x86_64_fbsd"
7885 LD="${LD-ld} -m elf_x86_64"
7888 LD="${LD-ld} -m elf64lppc"
7891 LD="${LD-ld} -m elf64ppc"
7893 s390*-*linux*|s390*-*tpf*)
7894 LD="${LD-ld} -m elf64_s390"
7897 LD="${LD-ld} -m elf64_sparc"
7907 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7909 CFLAGS="$CFLAGS -belf"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7911 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7912 if ${lt_cv_cc_needs_belf+:} false; then :
7913 $as_echo_n "(cached) " >&6
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7932 if ac_fn_c_try_link "$LINENO"; then :
7933 lt_cv_cc_needs_belf=yes
7935 lt_cv_cc_needs_belf=no
7937 rm -f core conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7947 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7948 if test yes != "$lt_cv_cc_needs_belf"; then
7949 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7954 # Find out what ABI is being produced by ac_compile, and set linker
7955 # options accordingly.
7956 echo 'int i;' > conftest.$ac_ext
7957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7958 (eval $ac_compile) 2>&5
7960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961 test $ac_status = 0; }; then
7962 case `/usr/bin/file conftest.o` in
7964 case $lt_cv_prog_gnu_ld in
7967 i?86-*-solaris*|x86_64-*-solaris*)
7968 LD="${LD-ld} -m elf_x86_64"
7971 LD="${LD-ld} -m elf64_sparc"
7974 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7975 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7980 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7992 need_locks=$enable_libtool_lock
7994 if test -n "$ac_tool_prefix"; then
7995 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7996 set dummy ${ac_tool_prefix}mt; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8000 $as_echo_n "(cached) " >&6
8002 if test -n "$MANIFEST_TOOL"; then
8003 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8023 if test -n "$MANIFEST_TOOL"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8025 $as_echo "$MANIFEST_TOOL" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8033 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8034 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8035 # Extract the first word of "mt", so it can be a program name with args.
8036 set dummy mt; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 if test -n "$ac_ct_MANIFEST_TOOL"; then
8043 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8063 if test -n "$ac_ct_MANIFEST_TOOL"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8065 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8071 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8074 case $cross_compiling:$ac_tool_warned in
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078 ac_tool_warned=yes ;;
8080 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8083 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8086 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8088 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8089 if ${lt_cv_path_mainfest_tool+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 lt_cv_path_mainfest_tool=no
8093 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8094 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8095 cat conftest.err >&5
8096 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8097 lt_cv_path_mainfest_tool=yes
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8102 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8103 if test yes != "$lt_cv_path_mainfest_tool"; then
8113 rhapsody* | darwin*)
8114 if test -n "$ac_tool_prefix"; then
8115 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8120 $as_echo_n "(cached) " >&6
8122 if test -n "$DSYMUTIL"; then
8123 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8143 if test -n "$DSYMUTIL"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8145 $as_echo "$DSYMUTIL" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8153 if test -z "$ac_cv_prog_DSYMUTIL"; then
8154 ac_ct_DSYMUTIL=$DSYMUTIL
8155 # Extract the first word of "dsymutil", so it can be a program name with args.
8156 set dummy dsymutil; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8160 $as_echo_n "(cached) " >&6
8162 if test -n "$ac_ct_DSYMUTIL"; then
8163 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8183 if test -n "$ac_ct_DSYMUTIL"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8185 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8191 if test "x$ac_ct_DSYMUTIL" = x; then
8194 case $cross_compiling:$ac_tool_warned in
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8200 DSYMUTIL=$ac_ct_DSYMUTIL
8203 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if ${ac_cv_prog_NMEDIT+:} false; then :
8212 $as_echo_n "(cached) " >&6
8214 if test -n "$NMEDIT"; then
8215 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 NMEDIT=$ac_cv_prog_NMEDIT
8235 if test -n "$NMEDIT"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8237 $as_echo "$NMEDIT" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 if test -z "$ac_cv_prog_NMEDIT"; then
8246 ac_ct_NMEDIT=$NMEDIT
8247 # Extract the first word of "nmedit", so it can be a program name with args.
8248 set dummy nmedit; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$ac_ct_NMEDIT"; then
8255 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8275 if test -n "$ac_ct_NMEDIT"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8277 $as_echo "$ac_ct_NMEDIT" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8283 if test "x$ac_ct_NMEDIT" = x; then
8286 case $cross_compiling:$ac_tool_warned in
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8292 NMEDIT=$ac_ct_NMEDIT
8295 NMEDIT="$ac_cv_prog_NMEDIT"
8298 if test -n "$ac_tool_prefix"; then
8299 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_prog_LIPO+:} false; then :
8304 $as_echo_n "(cached) " >&6
8306 if test -n "$LIPO"; then
8307 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 LIPO=$ac_cv_prog_LIPO
8327 if test -n "$LIPO"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8329 $as_echo "$LIPO" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8337 if test -z "$ac_cv_prog_LIPO"; then
8339 # Extract the first word of "lipo", so it can be a program name with args.
8340 set dummy lipo; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$ac_ct_LIPO"; then
8347 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_ac_ct_LIPO="lipo"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8367 if test -n "$ac_ct_LIPO"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8369 $as_echo "$ac_ct_LIPO" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8375 if test "x$ac_ct_LIPO" = x; then
8378 case $cross_compiling:$ac_tool_warned in
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8387 LIPO="$ac_cv_prog_LIPO"
8390 if test -n "$ac_tool_prefix"; then
8391 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}otool; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_OTOOL+:} false; then :
8396 $as_echo_n "(cached) " >&6
8398 if test -n "$OTOOL"; then
8399 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 OTOOL=$ac_cv_prog_OTOOL
8419 if test -n "$OTOOL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8421 $as_echo "$OTOOL" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 if test -z "$ac_cv_prog_OTOOL"; then
8431 # Extract the first word of "otool", so it can be a program name with args.
8432 set dummy otool; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 if test -n "$ac_ct_OTOOL"; then
8439 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_ac_ct_OTOOL="otool"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8459 if test -n "$ac_ct_OTOOL"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8461 $as_echo "$ac_ct_OTOOL" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8467 if test "x$ac_ct_OTOOL" = x; then
8470 case $cross_compiling:$ac_tool_warned in
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8479 OTOOL="$ac_cv_prog_OTOOL"
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_OTOOL64+:} false; then :
8488 $as_echo_n "(cached) " >&6
8490 if test -n "$OTOOL64"; then
8491 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 OTOOL64=$ac_cv_prog_OTOOL64
8511 if test -n "$OTOOL64"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8513 $as_echo "$OTOOL64" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8521 if test -z "$ac_cv_prog_OTOOL64"; then
8522 ac_ct_OTOOL64=$OTOOL64
8523 # Extract the first word of "otool64", so it can be a program name with args.
8524 set dummy otool64; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8528 $as_echo_n "(cached) " >&6
8530 if test -n "$ac_ct_OTOOL64"; then
8531 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_ac_ct_OTOOL64="otool64"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8551 if test -n "$ac_ct_OTOOL64"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8553 $as_echo "$ac_ct_OTOOL64" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8559 if test "x$ac_ct_OTOOL64" = x; then
8562 case $cross_compiling:$ac_tool_warned in
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8568 OTOOL64=$ac_ct_OTOOL64
8571 OTOOL64="$ac_cv_prog_OTOOL64"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8601 $as_echo_n "checking for -single_module linker flag... " >&6; }
8602 if ${lt_cv_apple_cc_single_mod+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 lt_cv_apple_cc_single_mod=no
8606 if test -z "$LT_MULTI_MODULE"; then
8607 # By default we will add the -single_module flag. You can override
8608 # by either setting the environment variable LT_MULTI_MODULE
8609 # non-empty at configure time, or by adding -multi_module to the
8611 rm -rf libconftest.dylib*
8612 echo "int foo(void){return 1;}" > conftest.c
8613 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8614 -dynamiclib -Wl,-single_module conftest.c" >&5
8615 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8616 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8618 # If there is a non-empty error log, and "single_module"
8619 # appears in it, assume the flag caused a linker warning
8620 if test -s conftest.err && $GREP single_module conftest.err; then
8621 cat conftest.err >&5
8622 # Otherwise, if the output was created with a 0 exit code from
8623 # the compiler, it worked.
8624 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8625 lt_cv_apple_cc_single_mod=yes
8627 cat conftest.err >&5
8629 rm -rf libconftest.dylib*
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8634 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8637 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8638 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8639 $as_echo_n "(cached) " >&6
8641 lt_cv_ld_exported_symbols_list=no
8642 save_LDFLAGS=$LDFLAGS
8643 echo "_main" > conftest.sym
8644 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8656 if ac_fn_c_try_link "$LINENO"; then :
8657 lt_cv_ld_exported_symbols_list=yes
8659 lt_cv_ld_exported_symbols_list=no
8661 rm -f core conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8663 LDFLAGS=$save_LDFLAGS
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8667 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8670 $as_echo_n "checking for -force_load linker flag... " >&6; }
8671 if ${lt_cv_ld_force_load+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 lt_cv_ld_force_load=no
8675 cat > conftest.c << _LT_EOF
8676 int forced_loaded() { return 2;}
8678 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8679 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8680 echo "$AR cru libconftest.a conftest.o" >&5
8681 $AR cru libconftest.a conftest.o 2>&5
8682 echo "$RANLIB libconftest.a" >&5
8683 $RANLIB libconftest.a 2>&5
8684 cat > conftest.c << _LT_EOF
8685 int main() { return 0;}
8687 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8688 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8690 if test -s conftest.err && $GREP force_load conftest.err; then
8691 cat conftest.err >&5
8692 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8693 lt_cv_ld_force_load=yes
8695 cat conftest.err >&5
8697 rm -f conftest.err libconftest.a conftest conftest.c
8698 rm -rf conftest.dSYM
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8702 $as_echo "$lt_cv_ld_force_load" >&6; }
8704 rhapsody* | darwin1.[012])
8705 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8707 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8708 darwin*) # darwin 5.x on
8709 # if running on 10.5 or later, the deployment target defaults
8710 # to the OS version, if on x86, and 10.4, the deployment
8711 # target defaults to 10.4. Don't you love it?
8712 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8713 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8714 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8716 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8718 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8722 if test yes = "$lt_cv_apple_cc_single_mod"; then
8723 _lt_dar_single_mod='$single_module'
8725 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8726 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8728 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8730 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8731 _lt_dsymutil='~$DSYMUTIL $lib || :'
8738 # func_munge_path_list VARIABLE PATH
8739 # -----------------------------------
8740 # VARIABLE is name of variable containing _space_ separated list of
8741 # directories to be munged by the contents of PATH, which is string
8744 # string "DIR[ DIR]" will be prepended to VARIABLE
8746 # string "DIR[ DIR]" will be appended to VARIABLE
8747 # "DIRP[:DIRP]::[DIRA:]DIRA"
8748 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8749 # "DIRA[ DIRA]" will be appended to VARIABLE
8751 # VARIABLE will be replaced by "DIR[ DIR]"
8752 func_munge_path_list ()
8758 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
8761 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
8764 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8765 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
8768 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8775 $as_echo_n "checking for ANSI C header files... " >&6; }
8776 if ${ac_cv_header_stdc+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795 ac_cv_header_stdc=yes
8797 ac_cv_header_stdc=no
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 if test $ac_cv_header_stdc = yes; then
8802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809 $EGREP "memchr" >/dev/null 2>&1; then :
8812 ac_cv_header_stdc=no
8818 if test $ac_cv_header_stdc = yes; then
8819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8826 $EGREP "free" >/dev/null 2>&1; then :
8829 ac_cv_header_stdc=no
8835 if test $ac_cv_header_stdc = yes; then
8836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8837 if test "$cross_compiling" = yes; then :
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8844 #if ((' ' & 0x0FF) == 0x020)
8845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8848 # define ISLOWER(c) \
8849 (('a' <= (c) && (c) <= 'i') \
8850 || ('j' <= (c) && (c) <= 'r') \
8851 || ('s' <= (c) && (c) <= 'z'))
8852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8860 for (i = 0; i < 256; i++)
8861 if (XOR (islower (i), ISLOWER (i))
8862 || toupper (i) != TOUPPER (i))
8867 if ac_fn_c_try_run "$LINENO"; then :
8870 ac_cv_header_stdc=no
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873 conftest.$ac_objext conftest.beam conftest.$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8879 $as_echo "$ac_cv_header_stdc" >&6; }
8880 if test $ac_cv_header_stdc = yes; then
8882 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8888 inttypes.h stdint.h unistd.h
8890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8894 cat >>confdefs.h <<_ACEOF
8895 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8903 for ac_header in dlfcn.h
8905 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8907 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8908 cat >>confdefs.h <<_ACEOF
8909 @%:@define HAVE_DLFCN_H 1
8919 func_stripname_cnf ()
8922 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
8923 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
8925 } # func_stripname_cnf
8941 @%:@ Check whether --enable-shared was given.
8942 if test "${enable_shared+set}" = set; then :
8943 enableval=$enable_shared; p=${PACKAGE-default}
8945 yes) enable_shared=yes ;;
8946 no) enable_shared=no ;;
8949 # Look at the argument we got. We use all the common list separators.
8950 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8951 for pkg in $enableval; do
8953 if test "X$pkg" = "X$p"; then
8972 @%:@ Check whether --enable-static was given.
8973 if test "${enable_static+set}" = set; then :
8974 enableval=$enable_static; p=${PACKAGE-default}
8976 yes) enable_static=yes ;;
8977 no) enable_static=no ;;
8980 # Look at the argument we got. We use all the common list separators.
8981 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8982 for pkg in $enableval; do
8984 if test "X$pkg" = "X$p"; then
9004 @%:@ Check whether --with-pic was given.
9005 if test "${with_pic+set}" = set; then :
9006 withval=$with_pic; lt_p=${PACKAGE-default}
9008 yes|no) pic_mode=$withval ;;
9011 # Look at the argument we got. We use all the common list separators.
9012 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9013 for lt_pkg in $withval; do
9015 if test "X$lt_pkg" = "X$lt_p"; then
9033 @%:@ Check whether --enable-fast-install was given.
9034 if test "${enable_fast_install+set}" = set; then :
9035 enableval=$enable_fast_install; p=${PACKAGE-default}
9037 yes) enable_fast_install=yes ;;
9038 no) enable_fast_install=no ;;
9040 enable_fast_install=no
9041 # Look at the argument we got. We use all the common list separators.
9042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9043 for pkg in $enableval; do
9045 if test "X$pkg" = "X$p"; then
9046 enable_fast_install=yes
9053 enable_fast_install=yes
9063 shared_archive_member_spec=
9064 case $host,$enable_shared in
9065 power*-*-aix[5-9]*,yes)
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9067 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9069 @%:@ Check whether --with-aix-soname was given.
9070 if test "${with_aix_soname+set}" = set; then :
9071 withval=$with_aix_soname; case $withval in
9075 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9078 lt_cv_with_aix_soname=$with_aix_soname
9080 if ${lt_cv_with_aix_soname+:} false; then :
9081 $as_echo_n "(cached) " >&6
9083 lt_cv_with_aix_soname=aix
9086 with_aix_soname=$lt_cv_with_aix_soname
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9090 $as_echo "$with_aix_soname" >&6; }
9091 if test aix != "$with_aix_soname"; then
9092 # For the AIX way of multilib, we name the shared archive member
9093 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9094 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9095 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9096 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9097 if test 64 = "${OBJECT_MODE-32}"; then
9098 shared_archive_member_spec=shr_64
9100 shared_archive_member_spec=shr
9118 # This can be used to rebuild libtool when needed
9119 LIBTOOL_DEPS=$ltmain
9121 # Always use our own libtool.
9122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9153 test -z "$LN_S" && LN_S="ln -s"
9168 if test -n "${ZSH_VERSION+set}"; then
9169 setopt NO_GLOB_SUBST
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9173 $as_echo_n "checking for objdir... " >&6; }
9174 if ${lt_cv_objdir+:} false; then :
9175 $as_echo_n "(cached) " >&6
9177 rm -f .libs 2>/dev/null
9178 mkdir .libs 2>/dev/null
9179 if test -d .libs; then
9182 # MS-DOS does not allow filenames that begin with a dot.
9185 rmdir .libs 2>/dev/null
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9188 $as_echo "$lt_cv_objdir" >&6; }
9189 objdir=$lt_cv_objdir
9195 cat >>confdefs.h <<_ACEOF
9196 @%:@define LT_OBJDIR "$lt_cv_objdir/"
9204 # AIX sometimes has problems with the GCC collect2 program. For some
9205 # reason, if we set the COLLECT_NAMES environment variable, the problems
9206 # vanish in a puff of smoke.
9207 if test set != "${COLLECT_NAMES+set}"; then
9209 export COLLECT_NAMES
9216 can_build_shared=yes
9218 # All known linkers require a '.a' archive for static linking (except MSVC,
9219 # which needs '.lib').
9222 with_gnu_ld=$lt_cv_prog_gnu_ld
9227 # Set sane defaults for various variables
9228 test -z "$CC" && CC=cc
9229 test -z "$LTCC" && LTCC=$CC
9230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9231 test -z "$LD" && LD=ld
9232 test -z "$ac_objext" && ac_objext=o
9234 func_cc_basename $compiler
9235 cc_basename=$func_cc_basename_result
9238 # Only perform the check for file, if the check method requires it
9239 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9240 case $deplibs_check_method in
9242 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9244 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9245 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9246 $as_echo_n "(cached) " >&6
9250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9253 lt_save_MAGIC_CMD=$MAGIC_CMD
9254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9256 for ac_dir in $ac_dummy; do
9258 test -z "$ac_dir" && ac_dir=.
9259 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9260 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9261 if test -n "$file_magic_test_file"; then
9262 case $deplibs_check_method in
9264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9267 $EGREP "$file_magic_regex" > /dev/null; then
9272 *** Warning: the command libtool uses to detect shared libraries,
9273 *** $file_magic_cmd, produces output that libtool cannot recognize.
9274 *** The result is that libtool may fail to recognize shared libraries
9275 *** as such. This will affect the creation of libtool libraries that
9276 *** depend on shared libraries, but programs linked with such libtool
9277 *** libraries will work regardless of this problem. Nevertheless, you
9278 *** may want to report the problem to your system manager and/or to
9279 *** bug-libtool@gnu.org
9289 MAGIC_CMD=$lt_save_MAGIC_CMD
9294 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9295 if test -n "$MAGIC_CMD"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9297 $as_echo "$MAGIC_CMD" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9307 if test -z "$lt_cv_path_MAGIC_CMD"; then
9308 if test -n "$ac_tool_prefix"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9310 $as_echo_n "checking for file... " >&6; }
9311 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9312 $as_echo_n "(cached) " >&6
9316 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9319 lt_save_MAGIC_CMD=$MAGIC_CMD
9320 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322 for ac_dir in $ac_dummy; do
9324 test -z "$ac_dir" && ac_dir=.
9325 if test -f "$ac_dir/file"; then
9326 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9327 if test -n "$file_magic_test_file"; then
9328 case $deplibs_check_method in
9330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9331 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333 $EGREP "$file_magic_regex" > /dev/null; then
9338 *** Warning: the command libtool uses to detect shared libraries,
9339 *** $file_magic_cmd, produces output that libtool cannot recognize.
9340 *** The result is that libtool may fail to recognize shared libraries
9341 *** as such. This will affect the creation of libtool libraries that
9342 *** depend on shared libraries, but programs linked with such libtool
9343 *** libraries will work regardless of this problem. Nevertheless, you
9344 *** may want to report the problem to your system manager and/or to
9345 *** bug-libtool@gnu.org
9355 MAGIC_CMD=$lt_save_MAGIC_CMD
9360 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9361 if test -n "$MAGIC_CMD"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363 $as_echo "$MAGIC_CMD" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9379 # Use C for the default configuration in the libtool script
9383 ac_cpp='$CPP $CPPFLAGS'
9384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9389 # Source file extension for C test sources.
9392 # Object file extension for compiled C test sources.
9396 # Code to be used in simple compile tests
9397 lt_simple_compile_test_code="int some_variable = 0;"
9399 # Code to be used in simple link tests
9400 lt_simple_link_test_code='int main(){return(0);}'
9408 # If no C compiler was specified, use CC.
9411 # If no C compiler flags were specified, use CFLAGS.
9412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9414 # Allow CC to be a program name with arguments.
9417 # Save the default compiler, since it gets overwritten when the other
9418 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9419 compiler_DEFAULT=$CC
9421 # save warnings/boilerplate of simple test code
9422 ac_outfile=conftest.$ac_objext
9423 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9424 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9425 _lt_compiler_boilerplate=`cat conftest.err`
9428 ac_outfile=conftest.$ac_objext
9429 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9430 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9431 _lt_linker_boilerplate=`cat conftest.err`
9436 ## There is no encapsulation within the following macros, do not change
9437 ## the running order or otherwise move them around unless you know exactly
9438 ## what you are doing...
9439 if test -n "$compiler"; then
9441 lt_prog_compiler_no_builtin_flag=
9443 if test yes = "$GCC"; then
9444 case $cc_basename in
9446 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9448 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9452 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9453 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9454 $as_echo_n "(cached) " >&6
9456 lt_cv_prog_compiler_rtti_exceptions=no
9457 ac_outfile=conftest.$ac_objext
9458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9460 # Insert the option either (1) after the last *FLAGS variable, or
9461 # (2) before a word containing "conftest.", or (3) at the end.
9462 # Note that $ac_compile itself does not contain backslashes and begins
9463 # with a dollar sign (not a hyphen), so the echo should work correctly.
9464 # The option is referenced via a variable to avoid confusing sed.
9465 lt_compile=`echo "$ac_compile" | $SED \
9466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9468 -e 's:$: $lt_compiler_flag:'`
9469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9470 (eval "$lt_compile" 2>conftest.err)
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 if (exit $ac_status) && test -s "$ac_outfile"; then
9475 # The compiler can only warn and ignore the option if not recognized
9476 # So say no if there are warnings other than the usual output.
9477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler_rtti_exceptions=yes
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9487 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9489 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9490 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9502 lt_prog_compiler_wl=
9503 lt_prog_compiler_pic=
9504 lt_prog_compiler_static=
9507 if test yes = "$GCC"; then
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_static='-static'
9513 # All AIX code is PIC.
9514 if test ia64 = "$host_cpu"; then
9515 # AIX 5 now supports IA64 processor
9516 lt_prog_compiler_static='-Bstatic'
9518 lt_prog_compiler_pic='-fPIC'
9524 # see comment about AmigaOS4 .so support
9525 lt_prog_compiler_pic='-fPIC'
9528 # FIXME: we need at least 68020 code to build shared libraries, but
9529 # adding the '-m68020' flag to GCC prevents building anything better,
9531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9537 # PIC is the default for these OSes.
9540 mingw* | cygwin* | pw32* | os2* | cegcc*)
9541 # This hack is so that the source file can tell whether it is being
9542 # built for inclusion in a dll (and should export symbols for example).
9543 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9544 # (--disable-auto-import) libraries
9545 lt_prog_compiler_pic='-DDLL_EXPORT'
9548 lt_prog_compiler_static='$wl-static'
9553 darwin* | rhapsody*)
9554 # PIC is the default on this platform
9555 # Common symbols not allowed in MH_DYLIB files
9556 lt_prog_compiler_pic='-fno-common'
9560 # PIC is the default for Haiku.
9561 # The "-static" flag exists, but is broken.
9562 lt_prog_compiler_static=
9566 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9567 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9568 # sets the default TLS model and affects inlining.
9574 lt_prog_compiler_pic='-fPIC'
9580 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9581 # Instead, we relocate shared libraries at runtime.
9585 # Just because we use GCC doesn't mean we suddenly get shared libraries
9586 # on systems that don't support them.
9587 lt_prog_compiler_can_build_shared=no
9592 # QNX uses GNU C++, but need to define -shared option too, otherwise
9594 lt_prog_compiler_pic='-fPIC -shared'
9598 if test -d /usr/nec; then
9599 lt_prog_compiler_pic=-Kconform_pic
9604 lt_prog_compiler_pic='-fPIC'
9608 case $cc_basename in
9609 nvcc*) # Cuda Compiler Driver 2.2
9610 lt_prog_compiler_wl='-Xlinker '
9611 if test -n "$lt_prog_compiler_pic"; then
9612 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9617 # PORTME Check for flag to pass linker flags through the system compiler.
9620 lt_prog_compiler_wl='-Wl,'
9621 if test ia64 = "$host_cpu"; then
9622 # AIX 5 now supports IA64 processor
9623 lt_prog_compiler_static='-Bstatic'
9625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9629 darwin* | rhapsody*)
9630 # PIC is the default on this platform
9631 # Common symbols not allowed in MH_DYLIB files
9632 lt_prog_compiler_pic='-fno-common'
9633 case $cc_basename in
9635 # NAG Fortran compiler
9636 lt_prog_compiler_wl='-Wl,-Wl,,'
9637 lt_prog_compiler_pic='-PIC'
9638 lt_prog_compiler_static='-Bstatic'
9643 mingw* | cygwin* | pw32* | os2* | cegcc*)
9644 # This hack is so that the source file can tell whether it is being
9645 # built for inclusion in a dll (and should export symbols for example).
9646 lt_prog_compiler_pic='-DDLL_EXPORT'
9649 lt_prog_compiler_static='$wl-static'
9654 hpux9* | hpux10* | hpux11*)
9655 lt_prog_compiler_wl='-Wl,'
9656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9663 lt_prog_compiler_pic='+Z'
9666 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9667 lt_prog_compiler_static='$wl-a ${wl}archive'
9670 irix5* | irix6* | nonstopux*)
9671 lt_prog_compiler_wl='-Wl,'
9672 # PIC (with -KPIC) is the default.
9673 lt_prog_compiler_static='-non_shared'
9676 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9677 case $cc_basename in
9678 # old Intel for x86_64, which still supported -KPIC.
9680 lt_prog_compiler_wl='-Wl,'
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-static'
9684 # icc used to be incompatible with GCC.
9685 # ICC 10 doesn't accept -KPIC any more.
9687 lt_prog_compiler_wl='-Wl,'
9688 lt_prog_compiler_pic='-fPIC'
9689 lt_prog_compiler_static='-static'
9691 # Lahey Fortran 8.1.
9693 lt_prog_compiler_wl='-Wl,'
9694 lt_prog_compiler_pic='--shared'
9695 lt_prog_compiler_static='--static'
9698 # NAG Fortran compiler
9699 lt_prog_compiler_wl='-Wl,-Wl,,'
9700 lt_prog_compiler_pic='-PIC'
9701 lt_prog_compiler_static='-Bstatic'
9704 # Fabrice Bellard et al's Tiny C Compiler
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-fPIC'
9707 lt_prog_compiler_static='-static'
9709 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9710 # Portland Group compilers (*not* the Pentium gcc compiler,
9711 # which looks to be a dead project)
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='-fpic'
9714 lt_prog_compiler_static='-Bstatic'
9717 lt_prog_compiler_wl='-Wl,'
9718 # All Alpha code is PIC.
9719 lt_prog_compiler_static='-non_shared'
9721 xl* | bgxl* | bgf* | mpixl*)
9722 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9723 lt_prog_compiler_wl='-Wl,'
9724 lt_prog_compiler_pic='-qpic'
9725 lt_prog_compiler_static='-qstaticlink'
9728 case `$CC -V 2>&1 | sed 5q` in
9729 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9730 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9731 lt_prog_compiler_pic='-KPIC'
9732 lt_prog_compiler_static='-Bstatic'
9733 lt_prog_compiler_wl=''
9735 *Sun\ F* | *Sun*Fortran*)
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 lt_prog_compiler_wl='-Qoption ld '
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 lt_prog_compiler_wl='-Wl,'
9746 *Intel*\ [CF]*Compiler*)
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_pic='-fPIC'
9749 lt_prog_compiler_static='-static'
9752 lt_prog_compiler_wl='-Wl,'
9753 lt_prog_compiler_pic='-fpic'
9754 lt_prog_compiler_static='-Bstatic'
9762 lt_prog_compiler_pic='-KPIC'
9763 lt_prog_compiler_static='-Bstatic'
9767 # QNX uses GNU C++, but need to define -shared option too, otherwise
9769 lt_prog_compiler_pic='-fPIC -shared'
9772 osf3* | osf4* | osf5*)
9773 lt_prog_compiler_wl='-Wl,'
9774 # All OSF/1 code is PIC.
9775 lt_prog_compiler_static='-non_shared'
9779 lt_prog_compiler_static='-non_shared'
9783 lt_prog_compiler_pic='-KPIC'
9784 lt_prog_compiler_static='-Bstatic'
9785 case $cc_basename in
9786 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9787 lt_prog_compiler_wl='-Qoption ld ';;
9789 lt_prog_compiler_wl='-Wl,';;
9794 lt_prog_compiler_wl='-Qoption ld '
9795 lt_prog_compiler_pic='-PIC'
9796 lt_prog_compiler_static='-Bstatic'
9799 sysv4 | sysv4.2uw2* | sysv4.3*)
9800 lt_prog_compiler_wl='-Wl,'
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-Bstatic'
9806 if test -d /usr/nec; then
9807 lt_prog_compiler_pic='-Kconform_pic'
9808 lt_prog_compiler_static='-Bstatic'
9812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9813 lt_prog_compiler_wl='-Wl,'
9814 lt_prog_compiler_pic='-KPIC'
9815 lt_prog_compiler_static='-Bstatic'
9819 lt_prog_compiler_wl='-Wl,'
9820 lt_prog_compiler_can_build_shared=no
9824 lt_prog_compiler_pic='-pic'
9825 lt_prog_compiler_static='-Bstatic'
9829 lt_prog_compiler_can_build_shared=no
9835 # For platforms that do not support PIC, -DPIC is meaningless:
9837 lt_prog_compiler_pic=
9840 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9846 if ${lt_cv_prog_compiler_pic+:} false; then :
9847 $as_echo_n "(cached) " >&6
9849 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9852 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9853 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9856 # Check to make sure the PIC flag actually works.
9858 if test -n "$lt_prog_compiler_pic"; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9860 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9861 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9862 $as_echo_n "(cached) " >&6
9864 lt_cv_prog_compiler_pic_works=no
9865 ac_outfile=conftest.$ac_objext
9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment
9868 # Insert the option either (1) after the last *FLAGS variable, or
9869 # (2) before a word containing "conftest.", or (3) at the end.
9870 # Note that $ac_compile itself does not contain backslashes and begins
9871 # with a dollar sign (not a hyphen), so the echo should work correctly.
9872 # The option is referenced via a variable to avoid confusing sed.
9873 lt_compile=`echo "$ac_compile" | $SED \
9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876 -e 's:$: $lt_compiler_flag:'`
9877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9878 (eval "$lt_compile" 2>conftest.err)
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 if (exit $ac_status) && test -s "$ac_outfile"; then
9883 # The compiler can only warn and ignore the option if not recognized
9884 # So say no if there are warnings other than the usual output.
9885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9888 lt_cv_prog_compiler_pic_works=yes
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9895 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9897 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9898 case $lt_prog_compiler_pic in
9900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9903 lt_prog_compiler_pic=
9904 lt_prog_compiler_can_build_shared=no
9920 # Check to make sure the static flag actually works.
9922 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9925 if ${lt_cv_prog_compiler_static_works+:} false; then :
9926 $as_echo_n "(cached) " >&6
9928 lt_cv_prog_compiler_static_works=no
9929 save_LDFLAGS=$LDFLAGS
9930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9933 # The linker can only warn and ignore the option if not recognized
9934 # So say no if there are warnings
9935 if test -s conftest.err; then
9936 # Append any errors to the config.log.
9937 cat conftest.err 1>&5
9938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9940 if diff conftest.exp conftest.er2 >/dev/null; then
9941 lt_cv_prog_compiler_static_works=yes
9944 lt_cv_prog_compiler_static_works=yes
9948 LDFLAGS=$save_LDFLAGS
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9952 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9954 if test yes = "$lt_cv_prog_compiler_static_works"; then
9957 lt_prog_compiler_static=
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9968 if ${lt_cv_prog_compiler_c_o+:} false; then :
9969 $as_echo_n "(cached) " >&6
9971 lt_cv_prog_compiler_c_o=no
9972 $RM -r conftest 2>/dev/null
9976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9978 lt_compiler_flag="-o out/conftest2.$ac_objext"
9979 # Insert the option either (1) after the last *FLAGS variable, or
9980 # (2) before a word containing "conftest.", or (3) at the end.
9981 # Note that $ac_compile itself does not contain backslashes and begins
9982 # with a dollar sign (not a hyphen), so the echo should work correctly.
9983 lt_compile=`echo "$ac_compile" | $SED \
9984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9986 -e 's:$: $lt_compiler_flag:'`
9987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9988 (eval "$lt_compile" 2>out/conftest.err)
9990 cat out/conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9994 # The compiler can only warn and ignore the option if not recognized
9995 # So say no if there are warnings
9996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9999 lt_cv_prog_compiler_c_o=yes
10004 # SGI C++ compiler will create directory out/ii_files/ for
10005 # template instantiation
10006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10007 $RM out/* && rmdir out
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10023 if ${lt_cv_prog_compiler_c_o+:} false; then :
10024 $as_echo_n "(cached) " >&6
10026 lt_cv_prog_compiler_c_o=no
10027 $RM -r conftest 2>/dev/null
10031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10033 lt_compiler_flag="-o out/conftest2.$ac_objext"
10034 # Insert the option either (1) after the last *FLAGS variable, or
10035 # (2) before a word containing "conftest.", or (3) at the end.
10036 # Note that $ac_compile itself does not contain backslashes and begins
10037 # with a dollar sign (not a hyphen), so the echo should work correctly.
10038 lt_compile=`echo "$ac_compile" | $SED \
10039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041 -e 's:$: $lt_compiler_flag:'`
10042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043 (eval "$lt_compile" 2>out/conftest.err)
10045 cat out/conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10049 # The compiler can only warn and ignore the option if not recognized
10050 # So say no if there are warnings
10051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_c_o=yes
10059 # SGI C++ compiler will create directory out/ii_files/ for
10060 # template instantiation
10061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10062 $RM out/* && rmdir out
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10069 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10074 hard_links=nottested
10075 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10076 # do not overwrite the value of need_locks provided by the user
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10078 $as_echo_n "checking if we can lock with hard links... " >&6; }
10081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10083 ln conftest.a conftest.b 2>&5 || hard_links=no
10084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10086 $as_echo "$hard_links" >&6; }
10087 if test no = "$hard_links"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10089 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10105 allow_undefined_flag=
10106 always_export_symbols=no
10108 archive_expsym_cmds=
10109 compiler_needs_object=no
10110 enable_shared_with_static_runtimes=no
10111 export_dynamic_flag_spec=
10112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10113 hardcode_automatic=no
10115 hardcode_direct_absolute=no
10116 hardcode_libdir_flag_spec=
10117 hardcode_libdir_separator=
10118 hardcode_minus_L=no
10119 hardcode_shlibpath_var=unsupported
10121 link_all_deplibs=unknown
10123 module_expsym_cmds=
10124 old_archive_from_new_cmds=
10125 old_archive_from_expsyms_cmds=
10126 thread_safe_flag_spec=
10127 whole_archive_flag_spec=
10128 # include_expsyms should be a list of space-separated symbols to be *always*
10129 # included in the symbol list
10131 # exclude_expsyms can be an extended regexp of symbols to exclude
10132 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10133 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10134 # as well as any symbol that contains 'd'.
10135 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10137 # platforms (ab)use it in PIC code, but their linkers get confused if
10138 # the symbol is explicitly referenced. Since portable code cannot
10139 # rely on this symbol name, it's probably fine to never include it in
10140 # preloaded symbol tables.
10141 # Exclude shared library initialization/finalization symbols.
10142 extract_expsyms_cmds=
10145 cygwin* | mingw* | pw32* | cegcc*)
10146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10147 # When not using gcc, we currently assume that we are using
10148 # Microsoft Visual C++.
10149 if test yes != "$GCC"; then
10154 # we just hope/assume this is gcc and not c89 (= MSVC++)
10157 openbsd* | bitrig*)
10160 linux* | k*bsd*-gnu | gnu*)
10161 link_all_deplibs=no
10167 # On some targets, GNU ld is compatible enough with the native linker
10168 # that we're better off using the native interface for both.
10169 lt_use_gnu_ld_interface=no
10170 if test yes = "$with_gnu_ld"; then
10173 # The AIX port of GNU ld has always aspired to compatibility
10174 # with the native linker. However, as the warning in the GNU ld
10175 # block says, versions before 2.19.5* couldn't really create working
10176 # shared libraries, regardless of the interface used.
10177 case `$LD -v 2>&1` in
10178 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10179 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10180 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10182 lt_use_gnu_ld_interface=yes
10187 lt_use_gnu_ld_interface=yes
10192 if test yes = "$lt_use_gnu_ld_interface"; then
10193 # If archive_cmds runs LD, not CC, wlarc should be empty
10196 # Set some defaults for GNU ld with shared library support. These
10197 # are reset later if shared libraries are not supported. Putting them
10198 # here allows them to be overridden if necessary.
10199 runpath_var=LD_RUN_PATH
10200 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10201 export_dynamic_flag_spec='$wl--export-dynamic'
10202 # ancient GNU ld didn't support --whole-archive et. al.
10203 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10204 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10206 whole_archive_flag_spec=
10208 supports_anon_versioning=no
10209 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10210 *GNU\ gold*) supports_anon_versioning=yes ;;
10211 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10212 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10213 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10214 *\ 2.11.*) ;; # other 2.11 versions
10215 *) supports_anon_versioning=yes ;;
10218 # See if GNU ld supports shared libraries.
10221 # On AIX/PPC, the GNU linker is very broken
10222 if test ia64 != "$host_cpu"; then
10226 *** Warning: the GNU linker, at least up to release 2.19, is reported
10227 *** to be unable to reliably create shared libraries on AIX.
10228 *** Therefore, libtool is disabling shared libraries support. If you
10229 *** really care for shared libraries, you may want to install binutils
10230 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10231 *** You will then need to restart the configuration process.
10240 # see comment about AmigaOS4 .so support
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242 archive_expsym_cmds=''
10245 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)'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_minus_L=yes
10253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10254 allow_undefined_flag=unsupported
10255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10256 # support --undefined. This deserves some investigation. FIXME
10257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10263 cygwin* | mingw* | pw32* | cegcc*)
10264 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10265 # as there is no search path for DLLs.
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 export_dynamic_flag_spec='$wl--export-all-symbols'
10268 allow_undefined_flag=unsupported
10269 always_export_symbols=no
10270 enable_shared_with_static_runtimes=yes
10271 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'
10272 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10276 # If the export-symbols file already is a .def file, use it as
10277 # is; otherwise, prepend EXPORTS...
10278 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10279 cp $export_symbols $output_objdir/$soname.def;
10281 echo EXPORTS > $output_objdir/$soname.def;
10282 cat $export_symbols >> $output_objdir/$soname.def;
10284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10292 link_all_deplibs=yes
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_minus_L=yes
10298 allow_undefined_flag=unsupported
10300 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10303 $ECHO EXPORTS >> $output_objdir/$libname.def~
10304 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10305 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10306 emximp -o $lib $output_objdir/$libname.def'
10307 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10308 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10309 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10310 $ECHO EXPORTS >> $output_objdir/$libname.def~
10311 prefix_cmds="$SED"~
10312 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10313 prefix_cmds="$prefix_cmds -e 1d";
10315 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10316 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10318 emximp -o $lib $output_objdir/$libname.def'
10319 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10320 enable_shared_with_static_runtimes=yes
10325 hardcode_shlibpath_var=no
10326 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10327 export_dynamic_flag_spec='$wl-E'
10328 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10329 # Instead, shared libraries are loaded at an image base (0x10000000 by
10330 # default) and relocated if they conflict, which is a slow very memory
10331 # consuming and fragmenting process. To avoid this, we pick a random,
10332 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10333 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10334 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10335 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'
10338 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10340 if test linux-dietlibc = "$host_os"; then
10341 case $cc_basename in
10342 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10345 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10346 && test no = "$tmp_diet"
10348 tmp_addflag=' $pic_flag'
10349 tmp_sharedflag='-shared'
10350 case $cc_basename,$host_cpu in
10351 pgcc*) # Portland Group C compiler
10352 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'
10353 tmp_addflag=' $pic_flag'
10355 pgf77* | pgf90* | pgf95* | pgfortran*)
10356 # Portland Group f77 and f90 compilers
10357 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'
10358 tmp_addflag=' $pic_flag -Mnomain' ;;
10359 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10360 tmp_addflag=' -i_dynamic' ;;
10361 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10362 tmp_addflag=' -i_dynamic -nofor_main' ;;
10363 ifc* | ifort*) # Intel Fortran compiler
10364 tmp_addflag=' -nofor_main' ;;
10365 lf95*) # Lahey Fortran 8.1
10366 whole_archive_flag_spec=
10367 tmp_sharedflag='--shared' ;;
10368 nagfor*) # NAGFOR 5.3
10369 tmp_sharedflag='-Wl,-shared' ;;
10370 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10371 tmp_sharedflag='-qmkshrobj'
10373 nvcc*) # Cuda Compiler Driver 2.2
10374 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'
10375 compiler_needs_object=yes
10378 case `$CC -V 2>&1 | sed 5q` in
10379 *Sun\ C*) # Sun C 5.9
10380 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'
10381 compiler_needs_object=yes
10382 tmp_sharedflag='-G' ;;
10383 *Sun\ F*) # Sun Fortran 8.3
10384 tmp_sharedflag='-G' ;;
10386 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10388 if test yes = "$supports_anon_versioning"; then
10389 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10391 echo "local: *; };" >> $output_objdir/$libname.ver~
10392 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10395 case $cc_basename in
10397 export_dynamic_flag_spec='-rdynamic'
10399 xlf* | bgf* | bgxlf* | mpixlf*)
10400 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10401 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10402 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10403 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10404 if test yes = "$supports_anon_versioning"; then
10405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10406 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10407 echo "local: *; };" >> $output_objdir/$libname.ver~
10408 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10417 netbsd* | netbsdelf*-gnu)
10418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10419 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10428 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10433 *** create shared libraries on Solaris systems. Therefore, libtool
10434 *** is disabling shared libraries support. We urge you to upgrade GNU
10435 *** binutils to release 2.9.1 or newer. Another option is to modify
10436 *** your PATH or compiler configuration so that the native linker is
10437 *** used, and then restart.
10440 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10442 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10449 case `$LD -v 2>&1` in
10450 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10454 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10455 *** reliably create shared libraries on SCO systems. Therefore, libtool
10456 *** is disabling shared libraries support. We urge you to upgrade GNU
10457 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10458 *** your PATH or compiler configuration so that the native linker is
10459 *** used, and then restart.
10464 # For security reasons, it is highly recommended that you always
10465 # use absolute paths for naming shared libraries, and exclude the
10466 # DT_RUNPATH tag from executables and libraries. But doing so
10467 # requires that you compile everything twice, which is a pain.
10468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10480 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10482 hardcode_direct=yes
10483 hardcode_shlibpath_var=no
10487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10489 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10496 if test no = "$ld_shlibs"; then
10498 hardcode_libdir_flag_spec=
10499 export_dynamic_flag_spec=
10500 whole_archive_flag_spec=
10503 # PORTME fill in a description of your system's linker (not GNU ld)
10506 allow_undefined_flag=unsupported
10507 always_export_symbols=yes
10508 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'
10509 # Note: this linker hardcodes the directories in LIBPATH if there
10510 # are no directories specified by -L.
10511 hardcode_minus_L=yes
10512 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10513 # Neither direct hardcoding nor static linking is supported with a
10515 hardcode_direct=unsupported
10520 if test ia64 = "$host_cpu"; then
10521 # On IA64, the linker does run time linking by default, so we don't
10522 # have to do anything special.
10523 aix_use_runtimelinking=no
10524 exp_sym_flag='-Bexport'
10527 # If we're using GNU nm, then we don't want the "-C" option.
10528 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10529 # Without the "-l" option, or with the "-B" option, AIX nm treats
10530 # weak defined symbols like other global defined symbols, whereas
10531 # GNU nm marks them as "W".
10532 # While the 'weak' keyword is ignored in the Export File, we need
10533 # it in the Import File for the 'aix-soname' feature, so we have
10534 # to replace the "-B" option with "-P" for AIX nm.
10535 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10536 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'
10538 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'
10540 aix_use_runtimelinking=no
10542 # Test if we are trying to use run time linking or normal
10543 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10544 # have runtime linking enabled, and use it for executables.
10545 # For shared libraries, we enable/disable runtime linking
10546 # depending on the kind of the shared library created -
10547 # when "with_aix_soname,aix_use_runtimelinking" is:
10548 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10549 # "aix,yes" lib.so shared, rtl:yes, for executables
10550 # lib.a static archive
10551 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10552 # lib.a(lib.so.V) shared, rtl:no, for executables
10553 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10554 # lib.a(lib.so.V) shared, rtl:no
10555 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10556 # lib.a static archive
10557 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10558 for ld_flag in $LDFLAGS; do
10559 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10560 aix_use_runtimelinking=yes
10564 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10565 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10566 # so we don't have lib.a shared libs to link our executables.
10567 # We have to force runtime linking in this case.
10568 aix_use_runtimelinking=yes
10569 LDFLAGS="$LDFLAGS -Wl,-brtl"
10574 exp_sym_flag='-bexport'
10575 no_entry_flag='-bnoentry'
10578 # When large executables or shared objects are built, AIX ld can
10579 # have problems creating the table of contents. If linking a library
10580 # or program results in "error TOC overflow" add -mminimal-toc to
10581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10585 hardcode_direct=yes
10586 hardcode_direct_absolute=yes
10587 hardcode_libdir_separator=':'
10588 link_all_deplibs=yes
10589 file_list_spec='$wl-f,'
10590 case $with_aix_soname,$aix_use_runtimelinking in
10591 aix,*) ;; # traditional, no import file
10592 svr4,* | *,yes) # use import file
10593 # The Import File defines what to hardcode.
10595 hardcode_direct_absolute=no
10599 if test yes = "$GCC"; then
10600 case $host_os in aix4.[012]|aix4.[012].*)
10601 # We only want to do this on AIX 4.2 and lower, the check
10602 # below for broken collect2 doesn't work under 4.3+
10603 collect2name=`$CC -print-prog-name=collect2`
10604 if test -f "$collect2name" &&
10605 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10607 # We have reworked collect2
10610 # We have old collect2
10611 hardcode_direct=unsupported
10612 # It fails to find uninstalled libraries when the uninstalled
10613 # path is not listed in the libpath. Setting hardcode_minus_L
10614 # to unsupported forces relinking
10615 hardcode_minus_L=yes
10616 hardcode_libdir_flag_spec='-L$libdir'
10617 hardcode_libdir_separator=
10621 shared_flag='-shared'
10622 if test yes = "$aix_use_runtimelinking"; then
10623 shared_flag="$shared_flag "'$wl-G'
10625 # Need to ensure runtime linking is disabled for the traditional
10626 # shared library, or the linker may eventually find shared libraries
10627 # /with/ Import File - we do not want to mix them.
10628 shared_flag_aix='-shared'
10629 shared_flag_svr4='-shared $wl-G'
10632 if test ia64 = "$host_cpu"; then
10633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10634 # chokes on -Wl,-G. The following line is correct:
10637 if test yes = "$aix_use_runtimelinking"; then
10638 shared_flag='$wl-G'
10640 shared_flag='$wl-bM:SRE'
10642 shared_flag_aix='$wl-bM:SRE'
10643 shared_flag_svr4='$wl-G'
10647 export_dynamic_flag_spec='$wl-bexpall'
10648 # It seems that -bexpall does not export symbols beginning with
10649 # underscore (_), so it is better to generate a list of symbols to export.
10650 always_export_symbols=yes
10651 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10652 # Warning - without using the other runtime loading flags (-brtl),
10653 # -berok will link without error, but may produce a broken library.
10654 allow_undefined_flag='-berok'
10655 # Determine the default libpath from the value encoded in an
10656 # empty executable.
10657 if test set = "${lt_cv_aix_libpath+set}"; then
10658 aix_libpath=$lt_cv_aix_libpath
10660 if ${lt_cv_aix_libpath_+:} false; then :
10661 $as_echo_n "(cached) " >&6
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10674 if ac_fn_c_try_link "$LINENO"; then :
10676 lt_aix_libpath_sed='
10677 /Import File Strings/,/^$/ {
10679 s/^0 *\([^ ]*\) *$/\1/
10683 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10684 # Check for a 64-bit object if we didn't find anything.
10685 if test -z "$lt_cv_aix_libpath_"; then
10686 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 if test -z "$lt_cv_aix_libpath_"; then
10692 lt_cv_aix_libpath_=/usr/lib:/lib
10697 aix_libpath=$lt_cv_aix_libpath_
10700 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10701 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
10703 if test ia64 = "$host_cpu"; then
10704 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10705 allow_undefined_flag="-z nodefs"
10706 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"
10708 # Determine the default libpath from the value encoded in an
10709 # empty executable.
10710 if test set = "${lt_cv_aix_libpath+set}"; then
10711 aix_libpath=$lt_cv_aix_libpath
10713 if ${lt_cv_aix_libpath_+:} false; then :
10714 $as_echo_n "(cached) " >&6
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10727 if ac_fn_c_try_link "$LINENO"; then :
10729 lt_aix_libpath_sed='
10730 /Import File Strings/,/^$/ {
10732 s/^0 *\([^ ]*\) *$/\1/
10736 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737 # Check for a 64-bit object if we didn't find anything.
10738 if test -z "$lt_cv_aix_libpath_"; then
10739 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 if test -z "$lt_cv_aix_libpath_"; then
10745 lt_cv_aix_libpath_=/usr/lib:/lib
10750 aix_libpath=$lt_cv_aix_libpath_
10753 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10754 # Warning - without using the other run time loading flags,
10755 # -berok will link without error, but may produce a broken library.
10756 no_undefined_flag=' $wl-bernotok'
10757 allow_undefined_flag=' $wl-berok'
10758 if test yes = "$with_gnu_ld"; then
10759 # We only use this code for GNU lds that support --whole-archive.
10760 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10762 # Exported symbols can be pulled into shared objects from archives
10763 whole_archive_flag_spec='$convenience'
10765 archive_cmds_need_lc=yes
10766 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10767 # -brtl affects multiple linker settings, -berok does not and is overridden later
10768 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10769 if test svr4 != "$with_aix_soname"; then
10770 # This is similar to how AIX traditionally builds its shared libraries.
10771 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'
10773 if test aix != "$with_aix_soname"; then
10774 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'
10776 # used by -dlpreopen to get the symbols
10777 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10779 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10787 # see comment about AmigaOS4 .so support
10788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10789 archive_expsym_cmds=''
10792 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)'
10793 hardcode_libdir_flag_spec='-L$libdir'
10794 hardcode_minus_L=yes
10800 export_dynamic_flag_spec=-rdynamic
10803 cygwin* | mingw* | pw32* | cegcc*)
10804 # When not using gcc, we currently assume that we are using
10805 # Microsoft Visual C++.
10806 # hardcode_libdir_flag_spec is actually meaningless, as there is
10807 # no search path for DLLs.
10808 case $cc_basename in
10811 hardcode_libdir_flag_spec=' '
10812 allow_undefined_flag=unsupported
10813 always_export_symbols=yes
10815 # Tell ltmain to make .lib files, not .a files.
10817 # Tell ltmain to make .dll files, not .so files.
10819 # FIXME: Setting linknames here is a bad hack.
10820 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10821 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10822 cp "$export_symbols" "$output_objdir/$soname.def";
10823 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10825 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10827 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10829 # The linker will not automatically build a static lib if we build a DLL.
10830 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10831 enable_shared_with_static_runtimes=yes
10832 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10835 old_postinstall_cmds='chmod 644 $oldlib'
10836 postlink_cmds='lt_outputfile="@OUTPUT@"~
10837 lt_tool_outputfile="@TOOL_OUTPUT@"~
10838 case $lt_outputfile in
10841 lt_outputfile=$lt_outputfile.exe
10842 lt_tool_outputfile=$lt_tool_outputfile.exe
10845 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10846 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10847 $RM "$lt_outputfile.manifest";
10851 # Assume MSVC wrapper
10852 hardcode_libdir_flag_spec=' '
10853 allow_undefined_flag=unsupported
10854 # Tell ltmain to make .lib files, not .a files.
10856 # Tell ltmain to make .dll files, not .so files.
10858 # FIXME: Setting linknames here is a bad hack.
10859 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10860 # The linker will automatically build a .lib file if we build a DLL.
10861 old_archive_from_new_cmds='true'
10862 # FIXME: Should let the user specify the lib program.
10863 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10864 enable_shared_with_static_runtimes=yes
10869 darwin* | rhapsody*)
10872 archive_cmds_need_lc=no
10874 hardcode_automatic=yes
10875 hardcode_shlibpath_var=unsupported
10876 if test yes = "$lt_cv_ld_force_load"; then
10877 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\"`'
10880 whole_archive_flag_spec=''
10882 link_all_deplibs=yes
10883 allow_undefined_flag=$_lt_dar_allow_undefined
10884 case $cc_basename in
10885 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10886 *) _lt_dar_can_shared=$GCC ;;
10888 if test yes = "$_lt_dar_can_shared"; then
10889 output_verbose_link_cmd=func_echo_all
10890 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10891 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10892 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"
10893 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"
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_libdir_flag_spec='-L$libdir'
10904 hardcode_shlibpath_var=no
10907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10908 # support. Future versions do this automatically, but an explicit c++rt0.o
10909 # does not break anything, and helps significantly (at the cost of a little
10912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10913 hardcode_libdir_flag_spec='-R$libdir'
10914 hardcode_direct=yes
10915 hardcode_shlibpath_var=no
10918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10921 hardcode_direct=yes
10922 hardcode_minus_L=yes
10923 hardcode_shlibpath_var=no
10926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10927 freebsd* | dragonfly*)
10928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10929 hardcode_libdir_flag_spec='-R$libdir'
10930 hardcode_direct=yes
10931 hardcode_shlibpath_var=no
10935 if test yes = "$GCC"; then
10936 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'
10938 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'
10940 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10941 hardcode_libdir_separator=:
10942 hardcode_direct=yes
10944 # hardcode_minus_L: Not really in the search PATH,
10945 # but as the default location of the library.
10946 hardcode_minus_L=yes
10947 export_dynamic_flag_spec='$wl-E'
10951 if test yes,no = "$GCC,$with_gnu_ld"; then
10952 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10956 if test no = "$with_gnu_ld"; then
10957 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10958 hardcode_libdir_separator=:
10959 hardcode_direct=yes
10960 hardcode_direct_absolute=yes
10961 export_dynamic_flag_spec='$wl-E'
10962 # hardcode_minus_L: Not really in the search PATH,
10963 # but as the default location of the library.
10964 hardcode_minus_L=yes
10969 if test yes,no = "$GCC,$with_gnu_ld"; then
10972 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10978 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10984 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10991 # Older versions of the 11.00 compiler do not understand -b yet
10992 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10994 $as_echo_n "checking if $CC understands -b... " >&6; }
10995 if ${lt_cv_prog_compiler__b+:} false; then :
10996 $as_echo_n "(cached) " >&6
10998 lt_cv_prog_compiler__b=no
10999 save_LDFLAGS=$LDFLAGS
11000 LDFLAGS="$LDFLAGS -b"
11001 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11003 # The linker can only warn and ignore the option if not recognized
11004 # So say no if there are warnings
11005 if test -s conftest.err; then
11006 # Append any errors to the config.log.
11007 cat conftest.err 1>&5
11008 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11010 if diff conftest.exp conftest.er2 >/dev/null; then
11011 lt_cv_prog_compiler__b=yes
11014 lt_cv_prog_compiler__b=yes
11018 LDFLAGS=$save_LDFLAGS
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11022 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11024 if test yes = "$lt_cv_prog_compiler__b"; then
11025 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11033 if test no = "$with_gnu_ld"; then
11034 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11035 hardcode_libdir_separator=:
11040 hardcode_shlibpath_var=no
11043 hardcode_direct=yes
11044 hardcode_direct_absolute=yes
11045 export_dynamic_flag_spec='$wl-E'
11047 # hardcode_minus_L: Not really in the search PATH,
11048 # but as the default location of the library.
11049 hardcode_minus_L=yes
11055 irix5* | irix6* | nonstopux*)
11056 if test yes = "$GCC"; then
11057 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'
11058 # Try to use the -exported_symbol ld option, if it does not
11059 # work, assume that -exports_file does not work either and
11060 # implicitly export all symbols.
11061 # This should be the same for all languages, so no per-tag cache variable.
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11063 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11064 if ${lt_cv_irix_exported_symbol+:} false; then :
11065 $as_echo_n "(cached) " >&6
11067 save_LDFLAGS=$LDFLAGS
11068 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071 int foo (void) { return 0; }
11073 if ac_fn_c_try_link "$LINENO"; then :
11074 lt_cv_irix_exported_symbol=yes
11076 lt_cv_irix_exported_symbol=no
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LDFLAGS=$save_LDFLAGS
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11083 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11084 if test yes = "$lt_cv_irix_exported_symbol"; then
11085 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'
11087 link_all_deplibs=no
11089 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'
11090 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'
11092 archive_cmds_need_lc='no'
11093 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11094 hardcode_libdir_separator=:
11096 link_all_deplibs=yes
11100 case $cc_basename in
11102 # Fabrice Bellard et al's Tiny C Compiler
11104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11109 netbsd* | netbsdelf*-gnu)
11110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11113 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11115 hardcode_libdir_flag_spec='-R$libdir'
11116 hardcode_direct=yes
11117 hardcode_shlibpath_var=no
11121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122 hardcode_direct=yes
11123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11124 hardcode_libdir_separator=:
11125 hardcode_shlibpath_var=no
11131 openbsd* | bitrig*)
11132 if test -f /usr/libexec/ld.so; then
11133 hardcode_direct=yes
11134 hardcode_shlibpath_var=no
11135 hardcode_direct_absolute=yes
11136 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11138 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11139 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11140 export_dynamic_flag_spec='$wl-E'
11142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11143 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11151 hardcode_libdir_flag_spec='-L$libdir'
11152 hardcode_minus_L=yes
11153 allow_undefined_flag=unsupported
11155 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11158 $ECHO EXPORTS >> $output_objdir/$libname.def~
11159 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11161 emximp -o $lib $output_objdir/$libname.def'
11162 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11165 $ECHO EXPORTS >> $output_objdir/$libname.def~
11166 prefix_cmds="$SED"~
11167 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11168 prefix_cmds="$prefix_cmds -e 1d";
11170 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11171 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11173 emximp -o $lib $output_objdir/$libname.def'
11174 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11175 enable_shared_with_static_runtimes=yes
11179 if test yes = "$GCC"; then
11180 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11181 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'
11183 allow_undefined_flag=' -expect_unresolved \*'
11184 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'
11186 archive_cmds_need_lc='no'
11187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188 hardcode_libdir_separator=:
11191 osf4* | osf5*) # as osf3* with the addition of -msym flag
11192 if test yes = "$GCC"; then
11193 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11194 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'
11195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11197 allow_undefined_flag=' -expect_unresolved \*'
11198 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'
11199 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~
11200 $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'
11202 # Both c and cxx compiler support -rpath directly
11203 hardcode_libdir_flag_spec='-rpath $libdir'
11205 archive_cmds_need_lc='no'
11206 hardcode_libdir_separator=:
11210 no_undefined_flag=' -z defs'
11211 if test yes = "$GCC"; then
11213 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11215 $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'
11217 case `$CC -V 2>&1` in
11220 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11222 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11226 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11228 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11232 hardcode_libdir_flag_spec='-R$libdir'
11233 hardcode_shlibpath_var=no
11235 solaris2.[0-5] | solaris2.[0-5].*) ;;
11237 # The compiler driver will combine and reorder linker options,
11238 # but understands '-z linker_flag'. GCC discards it without '$wl',
11239 # but is careful enough not to reorder.
11240 # Supported since Solaris 2.6 (maybe 2.5.1?)
11241 if test yes = "$GCC"; then
11242 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11248 link_all_deplibs=yes
11252 if test sequent = "$host_vendor"; then
11253 # Use $CC to link under sequent, because it throws in some extra .o
11254 # files that make .init and .fini sections work.
11255 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11259 hardcode_libdir_flag_spec='-L$libdir'
11260 hardcode_direct=yes
11261 hardcode_minus_L=yes
11262 hardcode_shlibpath_var=no
11266 case $host_vendor in
11268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11269 hardcode_direct=yes # is this really true???
11272 ## LD is ld it makes a PLAMLIB
11273 ## CC just makes a GrossModule.
11274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11275 reload_cmds='$CC -r -o $output$reload_objs'
11279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11283 runpath_var='LD_RUN_PATH'
11284 hardcode_shlibpath_var=no
11288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11289 hardcode_shlibpath_var=no
11290 export_dynamic_flag_spec='-Bexport'
11294 if test -d /usr/nec; then
11295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296 hardcode_shlibpath_var=no
11297 runpath_var=LD_RUN_PATH
11298 hardcode_runpath_var=yes
11303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11304 no_undefined_flag='$wl-z,text'
11305 archive_cmds_need_lc=no
11306 hardcode_shlibpath_var=no
11307 runpath_var='LD_RUN_PATH'
11309 if test yes = "$GCC"; then
11310 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11318 sysv5* | sco3.2v5* | sco5v6*)
11319 # Note: We CANNOT use -z defs as we might desire, because we do not
11320 # link with -lc, and that would cause any symbols used from libc to
11321 # always be unresolved, which means just about no library would
11322 # ever link correctly. If we're not using GNU ld we use -z text
11323 # though, which does catch some bad symbols but isn't as heavy-handed
11325 no_undefined_flag='$wl-z,text'
11326 allow_undefined_flag='$wl-z,nodefs'
11327 archive_cmds_need_lc=no
11328 hardcode_shlibpath_var=no
11329 hardcode_libdir_flag_spec='$wl-R,$libdir'
11330 hardcode_libdir_separator=':'
11331 link_all_deplibs=yes
11332 export_dynamic_flag_spec='$wl-Bexport'
11333 runpath_var='LD_RUN_PATH'
11335 if test yes = "$GCC"; then
11336 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11337 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11346 hardcode_libdir_flag_spec='-L$libdir'
11347 hardcode_shlibpath_var=no
11355 if test sni = "$host_vendor"; then
11357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11358 export_dynamic_flag_spec='$wl-Blargedynsym'
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11365 $as_echo "$ld_shlibs" >&6; }
11366 test no = "$ld_shlibs" && can_build_shared=no
11368 with_gnu_ld=$with_gnu_ld
11385 # Do we need to explicitly link libc?
11387 case "x$archive_cmds_need_lc" in
11389 # Assume -lc should be added
11390 archive_cmds_need_lc=yes
11392 if test yes,yes = "$GCC,$enable_shared"; then
11393 case $archive_cmds in
11395 # FIXME: we may have to deal with multi-command sequences.
11398 # Test whether the compiler implicitly links with -lc since on some
11399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11400 # to ld, don't add -lc before -lgcc.
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11403 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11404 $as_echo_n "(cached) " >&6
11407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11410 (eval $ac_compile) 2>&5
11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413 test $ac_status = 0; } 2>conftest.err; then
11416 libobjs=conftest.$ac_objext
11418 wl=$lt_prog_compiler_wl
11419 pic_flag=$lt_prog_compiler_pic
11425 lt_save_allow_undefined_flag=$allow_undefined_flag
11426 allow_undefined_flag=
11427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431 test $ac_status = 0; }
11433 lt_cv_archive_cmds_need_lc=no
11435 lt_cv_archive_cmds_need_lc=yes
11437 allow_undefined_flag=$lt_save_allow_undefined_flag
11439 cat conftest.err 1>&5
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11445 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11605 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11607 if test yes = "$GCC"; then
11609 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11610 *) lt_awk_arg='/^libraries:/' ;;
11613 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11614 *) lt_sed_strip_eq='s|=/|/|g' ;;
11616 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11617 case $lt_search_path_spec in
11619 # if the path contains ";" then we assume it to be the separator
11620 # otherwise default to the standard path separator (i.e. ":") - it is
11621 # assumed that no part of a normal pathname contains ";" but that should
11622 # okay in the real world where ";" in dirpaths is itself problematic.
11623 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11626 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11629 # Ok, now we have the path, separated by spaces, we can step through it
11630 # and add multilib dir if necessary...
11631 lt_tmp_lt_search_path_spec=
11632 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11633 # ...but if some path component already ends with the multilib dir we assume
11634 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11635 case "$lt_multi_os_dir; $lt_search_path_spec " in
11636 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11640 for lt_sys_path in $lt_search_path_spec; do
11641 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11643 elif test -n "$lt_multi_os_dir"; then
11644 test -d "$lt_sys_path" && \
11645 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11648 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11649 BEGIN {RS = " "; FS = "/|\n";} {
11652 for (lt_i = NF; lt_i > 0; lt_i--) {
11653 if ($lt_i != "" && $lt_i != ".") {
11654 if ($lt_i == "..") {
11657 if (lt_count == 0) {
11658 lt_foo = "/" $lt_i lt_foo;
11665 if (lt_foo != "") { lt_freq[lt_foo]++; }
11666 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11668 # AWK program above erroneously prepends '/' to C:/dos/paths
11671 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11672 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11674 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11678 library_names_spec=
11679 libname_spec='lib$name'
11683 postuninstall_cmds=
11687 shlibpath_overrides_runpath=unknown
11689 dynamic_linker="$host_os ld.so"
11690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11691 need_lib_prefix=unknown
11692 hardcode_into_libs=no
11694 # when you set need_version to no, make sure it does not cause -set_version
11695 # flags to be left without arguments
11696 need_version=unknown
11702 version_type=linux # correct to gnu/linux during the next big refactor
11703 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11704 shlibpath_var=LIBPATH
11706 # AIX 3 has no versioning support, so we append a major version to the name.
11707 soname_spec='$libname$release$shared_ext$major'
11711 version_type=linux # correct to gnu/linux during the next big refactor
11714 hardcode_into_libs=yes
11715 if test ia64 = "$host_cpu"; then
11716 # AIX 5 supports IA64
11717 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11718 shlibpath_var=LD_LIBRARY_PATH
11720 # With GCC up to 2.95.x, collect2 would create an import file
11721 # for dependence libraries. The import file would start with
11722 # the line '#! .'. This would cause the generated library to
11723 # depend on '.', always an invalid library. This was fixed in
11724 # development snapshots of GCC prior to 3.0.
11726 aix4 | aix4.[01] | aix4.[01].*)
11727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11729 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11732 can_build_shared=no
11736 # Using Import Files as archive members, it is possible to support
11737 # filename-based versioning of shared library archives on AIX. While
11738 # this would work for both with and without runtime linking, it will
11739 # prevent static linking of such archives. So we do filename-based
11740 # shared library versioning with .so extension only, which is used
11741 # when both runtime linking and shared linking is enabled.
11742 # Unfortunately, runtime linking may impact performance, so we do
11743 # not want this to be the default eventually. Also, we use the
11744 # versioned .so libs for executables only if there is the -brtl
11745 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11746 # To allow for filename-based versioning support, we need to create
11747 # libNAME.so.V as an archive file, containing:
11748 # *) an Import File, referring to the versioned filename of the
11749 # archive as well as the shared archive member, telling the
11750 # bitwidth (32 or 64) of that shared object, and providing the
11751 # list of exported symbols of that shared object, eventually
11752 # decorated with the 'weak' keyword
11753 # *) the shared object with the F_LOADONLY flag set, to really avoid
11754 # it being seen by the linker.
11755 # At run time we better use the real file rather than another symlink,
11756 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11758 case $with_aix_soname,$aix_use_runtimelinking in
11759 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11760 # soname into executable. Probably we can add versioning support to
11761 # collect2, so additional links can be useful in future.
11762 aix,yes) # traditional libtool
11763 dynamic_linker='AIX unversionable lib.so'
11764 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11765 # instead of lib<name>.a to let people know that these are not
11766 # typical AIX shared libraries.
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769 aix,no) # traditional AIX only
11770 dynamic_linker='AIX lib.a(lib.so.V)'
11771 # We preserve .a as extension for shared libraries through AIX4.2
11772 # and later when we are not doing run time linking.
11773 library_names_spec='$libname$release.a $libname.a'
11774 soname_spec='$libname$release$shared_ext$major'
11776 svr4,*) # full svr4 only
11777 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11778 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11779 # We do not specify a path in Import Files, so LIBPATH fires.
11780 shlibpath_overrides_runpath=yes
11782 *,yes) # both, prefer svr4
11783 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11784 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11785 # unpreferred sharedlib libNAME.a needs extra handling
11786 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"'
11787 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"'
11788 # We do not specify a path in Import Files, so LIBPATH fires.
11789 shlibpath_overrides_runpath=yes
11791 *,no) # both, prefer aix
11792 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11793 library_names_spec='$libname$release.a $libname.a'
11794 soname_spec='$libname$release$shared_ext$major'
11795 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11796 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)'
11797 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"'
11800 shlibpath_var=LIBPATH
11807 # Since July 2007 AmigaOS4 officially supports .so libraries.
11808 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 library_names_spec='$libname.ixlibrary $libname.a'
11813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11814 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'
11820 library_names_spec='$libname$shared_ext'
11821 dynamic_linker="$host_os ld.so"
11822 shlibpath_var=LIBRARY_PATH
11826 version_type=linux # correct to gnu/linux during the next big refactor
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11829 soname_spec='$libname$release$shared_ext$major'
11830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11834 # the default ld.so.conf also contains /usr/contrib/lib and
11835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11836 # libtool to hard-code these into programs
11839 cygwin* | mingw* | pw32* | cegcc*)
11840 version_type=windows
11845 case $GCC,$cc_basename in
11848 library_names_spec='$libname.dll.a'
11849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11850 postinstall_cmds='base_file=`basename \$file`~
11851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11852 dldir=$destdir/`dirname \$dlpath`~
11853 test -d \$dldir || mkdir -p \$dldir~
11854 $install_prog $dir/$dlname \$dldir/$dlname~
11855 chmod a+x \$dldir/$dlname~
11856 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11857 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11860 dlpath=$dir/\$dldll~
11862 shlibpath_overrides_runpath=yes
11866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11867 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11869 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11872 # MinGW DLLs use traditional 'lib' prefix
11873 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11876 # pw32 DLLs use 'pw' prefix rather than 'lib'
11877 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11880 dynamic_linker='Win32 ld.exe'
11885 libname_spec='$name'
11886 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11887 library_names_spec='$libname.dll.lib'
11891 sys_lib_search_path_spec=
11894 for lt_path in $LIB
11897 # Let DOS variable expansion print the short 8.3 style file name.
11898 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11899 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11902 # Convert to MSYS style.
11903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11906 # Convert to unix form, then to dos form, then back to unix form
11907 # but this time dos style (no spaces!) so that the unix form looks
11908 # like /cygdrive/c/PROGRA~1:/cygdr...
11909 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11910 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11911 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11914 sys_lib_search_path_spec=$LIB
11915 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11916 # It is most probably a Windows format PATH.
11917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11921 # FIXME: find the short name or the path components, as spaces are
11922 # common. (e.g. "Program Files" -> "PROGRA~1")
11926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11927 postinstall_cmds='base_file=`basename \$file`~
11928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11929 dldir=$destdir/`dirname \$dlpath`~
11930 test -d \$dldir || mkdir -p \$dldir~
11931 $install_prog $dir/$dlname \$dldir/$dlname'
11932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11933 dlpath=$dir/\$dldll~
11935 shlibpath_overrides_runpath=yes
11936 dynamic_linker='Win32 link.exe'
11940 # Assume MSVC wrapper
11941 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11942 dynamic_linker='Win32 ld.exe'
11945 # FIXME: first we should search . and the directory the executable is in
11949 darwin* | rhapsody*)
11950 dynamic_linker="$host_os dyld"
11951 version_type=darwin
11954 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11955 soname_spec='$libname$release$major$shared_ext'
11956 shlibpath_overrides_runpath=yes
11957 shlibpath_var=DYLD_LIBRARY_PATH
11958 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11960 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11965 version_type=linux # correct to gnu/linux during the next big refactor
11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969 soname_spec='$libname$release$shared_ext$major'
11970 shlibpath_var=LD_LIBRARY_PATH
11973 freebsd* | dragonfly*)
11974 # DragonFly does not have aout. When/if they implement a new
11975 # versioning mechanism, adjust this.
11976 if test -x /usr/bin/objformat; then
11977 objformat=`/usr/bin/objformat`
11980 freebsd[23].*) objformat=aout ;;
11981 *) objformat=elf ;;
11984 version_type=freebsd-$objformat
11985 case $version_type in
11987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988 soname_spec='$libname$release$shared_ext$major'
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11997 shlibpath_var=LD_LIBRARY_PATH
12000 shlibpath_overrides_runpath=yes
12002 freebsd3.[01]* | freebsdelf3.[01]*)
12003 shlibpath_overrides_runpath=yes
12004 hardcode_into_libs=yes
12006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008 shlibpath_overrides_runpath=no
12009 hardcode_into_libs=yes
12011 *) # from 4.6 on, and DragonFly
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12019 version_type=linux # correct to gnu/linux during the next big refactor
12022 dynamic_linker="$host_os runtime_loader"
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 soname_spec='$libname$release$shared_ext$major'
12025 shlibpath_var=LIBRARY_PATH
12026 shlibpath_overrides_runpath=no
12027 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12028 hardcode_into_libs=yes
12031 hpux9* | hpux10* | hpux11*)
12032 # Give a soname corresponding to the major version so that dld.sl refuses to
12033 # link against other versions.
12040 hardcode_into_libs=yes
12041 dynamic_linker="$host_os dld.so"
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12045 soname_spec='$libname$release$shared_ext$major'
12046 if test 32 = "$HPUX_IA64_MODE"; then
12047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12048 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12051 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12056 hardcode_into_libs=yes
12057 dynamic_linker="$host_os dld.sl"
12058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061 soname_spec='$libname$release$shared_ext$major'
12062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12067 dynamic_linker="$host_os dld.sl"
12068 shlibpath_var=SHLIB_PATH
12069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071 soname_spec='$libname$release$shared_ext$major'
12074 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12075 postinstall_cmds='chmod 555 $lib'
12076 # or fails outright, so override atomically:
12077 install_override_mode=555
12081 version_type=linux # correct to gnu/linux during the next big refactor
12084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12085 soname_spec='$libname$release$shared_ext$major'
12086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12087 shlibpath_var=LD_LIBRARY_PATH
12088 shlibpath_overrides_runpath=no
12089 hardcode_into_libs=yes
12092 irix5* | irix6* | nonstopux*)
12094 nonstopux*) version_type=nonstopux ;;
12096 if test yes = "$lt_cv_prog_gnu_ld"; then
12097 version_type=linux # correct to gnu/linux during the next big refactor
12104 soname_spec='$libname$release$shared_ext$major'
12105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12107 irix5* | nonstopux*)
12108 libsuff= shlibsuff=
12111 case $LD in # libtool.m4 will add one of these switches to LD
12112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12113 libsuff= shlibsuff= libmagic=32-bit;;
12114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12115 libsuff=32 shlibsuff=N32 libmagic=N32;;
12116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12118 *) libsuff= shlibsuff= libmagic=never-match;;
12122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12123 shlibpath_overrides_runpath=no
12124 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12125 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12126 hardcode_into_libs=yes
12129 # No shared lib support for Linux oldld, aout, or coff.
12130 linux*oldld* | linux*aout* | linux*coff*)
12135 version_type=none # Android doesn't support versioned libraries.
12138 library_names_spec='$libname$release$shared_ext'
12139 soname_spec='$libname$release$shared_ext'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=yes
12144 # This implies no fast_install, which is unacceptable.
12145 # Some rework will be needed to allow for fast_install
12146 # before this can be enabled.
12147 hardcode_into_libs=yes
12149 dynamic_linker='Android linker'
12150 # Don't embed -rpath directories since the linker doesn't support them.
12151 hardcode_libdir_flag_spec='-L$libdir'
12154 # This must be glibc/ELF.
12155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12156 version_type=linux # correct to gnu/linux during the next big refactor
12159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12160 soname_spec='$libname$release$shared_ext$major'
12161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 shlibpath_overrides_runpath=no
12165 # Some binutils ld are patched to set DT_RUNPATH
12166 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12167 $as_echo_n "(cached) " >&6
12169 lt_cv_shlibpath_overrides_runpath=no
12170 save_LDFLAGS=$LDFLAGS
12171 save_libdir=$libdir
12172 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12173 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12185 if ac_fn_c_try_link "$LINENO"; then :
12186 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12187 lt_cv_shlibpath_overrides_runpath=yes
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LDFLAGS=$save_LDFLAGS
12193 libdir=$save_libdir
12197 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12199 # This implies no fast_install, which is unacceptable.
12200 # Some rework will be needed to allow for fast_install
12201 # before this can be enabled.
12202 hardcode_into_libs=yes
12204 # Ideally, we could use ldconfig to report *all* directores which are
12205 # searched for libraries, however this is still not possible. Aside from not
12206 # being certain /sbin/ldconfig is available, command
12207 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12208 # even though it is searched at run-time. Try to do the best guess by
12209 # appending ld.so.conf contents (and includes) to the search path.
12210 if test -f /etc/ld.so.conf; then
12211 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' ' '`
12212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12215 # We used to test for /lib/ld.so.1 and disable shared libraries on
12216 # powerpc, because MkLinux only supported shared libraries with the
12217 # GNU dynamic linker. Since this was broken with cross compilers,
12218 # most powerpc-linux boxes support dynamic linking these days and
12219 # people can always --disable-shared, the test was removed, and we
12220 # assume the GNU/Linux dynamic linker is in use.
12221 dynamic_linker='GNU/Linux ld.so'
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12229 soname_spec='${libname}${release}${shared_ext}$major'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=no
12232 hardcode_into_libs=yes
12233 dynamic_linker='NetBSD ld.elf_so'
12240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12243 dynamic_linker='NetBSD (a.out) ld.so'
12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246 soname_spec='$libname$release$shared_ext$major'
12247 dynamic_linker='NetBSD ld.elf_so'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 shlibpath_overrides_runpath=yes
12251 hardcode_into_libs=yes
12255 version_type=linux # correct to gnu/linux during the next big refactor
12256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=yes
12265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12266 soname_spec='$libname$release$shared_ext$major'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 shlibpath_overrides_runpath=no
12269 hardcode_into_libs=yes
12270 dynamic_linker='ldqnx.so'
12273 openbsd* | bitrig*)
12275 sys_lib_dlsearch_path_spec=/usr/lib
12277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12282 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12289 libname_spec='$name'
12290 version_type=windows
12294 # OS/2 can only load a DLL with a base name of 8 characters or less.
12295 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12296 v=$($ECHO $release$versuffix | tr -d .-);
12297 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12298 $ECHO $n$v`$shared_ext'
12299 library_names_spec='${libname}_dll.$libext'
12300 dynamic_linker='OS/2 ld.exe'
12301 shlibpath_var=BEGINLIBPATH
12302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12304 postinstall_cmds='base_file=`basename \$file`~
12305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12306 dldir=$destdir/`dirname \$dlpath`~
12307 test -d \$dldir || mkdir -p \$dldir~
12308 $install_prog $dir/$dlname \$dldir/$dlname~
12309 chmod a+x \$dldir/$dlname~
12310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12314 dlpath=$dir/\$dldll~
12318 osf3* | osf4* | osf5*)
12322 soname_spec='$libname$release$shared_ext$major'
12323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12334 version_type=linux # correct to gnu/linux during the next big refactor
12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12338 soname_spec='$libname$release$shared_ext$major'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 shlibpath_overrides_runpath=yes
12341 hardcode_into_libs=yes
12342 # ldd complains unless libraries are executable
12343 postinstall_cmds='chmod +x $lib'
12348 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes
12352 if test yes = "$with_gnu_ld"; then
12359 version_type=linux # correct to gnu/linux during the next big refactor
12360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12361 soname_spec='$libname$release$shared_ext$major'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 case $host_vendor in
12365 shlibpath_overrides_runpath=no
12367 runpath_var=LD_RUN_PATH
12375 shlibpath_overrides_runpath=no
12376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12382 if test -d /usr/nec; then
12383 version_type=linux # correct to gnu/linux during the next big refactor
12384 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12385 soname_spec='$libname$shared_ext.$major'
12386 shlibpath_var=LD_LIBRARY_PATH
12390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12395 soname_spec='$libname$release$shared_ext$major'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=yes
12398 hardcode_into_libs=yes
12399 if test yes = "$with_gnu_ld"; then
12400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12409 sys_lib_dlsearch_path_spec='/usr/lib'
12413 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12414 version_type=linux # correct to gnu/linux during the next big refactor
12417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 shlibpath_overrides_runpath=no
12420 hardcode_into_libs=yes
12424 version_type=linux # correct to gnu/linux during the next big refactor
12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426 soname_spec='$libname$release$shared_ext$major'
12427 shlibpath_var=LD_LIBRARY_PATH
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12435 $as_echo "$dynamic_linker" >&6; }
12436 test no = "$dynamic_linker" && can_build_shared=no
12438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12439 if test yes = "$GCC"; then
12440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12443 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12444 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12447 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12448 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12451 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12452 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12454 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12455 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12457 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12458 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12557 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12559 if test -n "$hardcode_libdir_flag_spec" ||
12560 test -n "$runpath_var" ||
12561 test yes = "$hardcode_automatic"; then
12563 # We can hardcode non-existent directories.
12564 if test no != "$hardcode_direct" &&
12565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12566 # have to relink, otherwise we might link with an installed library
12567 # when we should be linking with a yet-to-be-installed one
12568 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12569 test no != "$hardcode_minus_L"; then
12570 # Linking always hardcodes the temporary library directory.
12571 hardcode_action=relink
12573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12574 hardcode_action=immediate
12577 # We cannot hardcode anything, or else we can only hardcode existing
12579 hardcode_action=unsupported
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12582 $as_echo "$hardcode_action" >&6; }
12584 if test relink = "$hardcode_action" ||
12585 test yes = "$inherit_rpath"; then
12586 # Fast installation is not supported
12587 enable_fast_install=no
12588 elif test yes = "$shlibpath_overrides_runpath" ||
12589 test no = "$enable_shared"; then
12590 # Fast installation is not necessary
12591 enable_fast_install=needless
12599 if test yes != "$enable_dlopen"; then
12600 enable_dlopen=unknown
12601 enable_dlopen_self=unknown
12602 enable_dlopen_self_static=unknown
12609 lt_cv_dlopen=load_add_on
12611 lt_cv_dlopen_self=yes
12614 mingw* | pw32* | cegcc*)
12615 lt_cv_dlopen=LoadLibrary
12620 lt_cv_dlopen=dlopen
12625 # if libdl is installed we need to link against it
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12628 if ${ac_cv_lib_dl_dlopen+:} false; then :
12629 $as_echo_n "(cached) " >&6
12631 ac_check_lib_save_LIBS=$LIBS
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_lib_dl_dlopen=yes
12654 ac_cv_lib_dl_dlopen=no
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12662 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12663 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12668 lt_cv_dlopen_self=yes
12675 # Don't try to run any link tests for TPF. We know it's impossible
12676 # because TPF is a cross-compiler, and we know how we open DSOs.
12677 lt_cv_dlopen=dlopen
12679 lt_cv_dlopen_self=no
12683 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12684 if test "x$ac_cv_func_shl_load" = xyes; then :
12685 lt_cv_dlopen=shl_load
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12688 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12689 if ${ac_cv_lib_dld_shl_load+:} false; then :
12690 $as_echo_n "(cached) " >&6
12692 ac_check_lib_save_LIBS=$LIBS
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12707 return shl_load ();
12712 if ac_fn_c_try_link "$LINENO"; then :
12713 ac_cv_lib_dld_shl_load=yes
12715 ac_cv_lib_dld_shl_load=no
12717 rm -f core conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12722 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12723 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12724 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12726 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12727 if test "x$ac_cv_func_dlopen" = xyes; then :
12728 lt_cv_dlopen=dlopen
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12731 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12732 if ${ac_cv_lib_dl_dlopen+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 ac_check_lib_save_LIBS=$LIBS
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12755 if ac_fn_c_try_link "$LINENO"; then :
12756 ac_cv_lib_dl_dlopen=yes
12758 ac_cv_lib_dl_dlopen=no
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12765 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12766 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12767 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12770 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12771 if ${ac_cv_lib_svld_dlopen+:} false; then :
12772 $as_echo_n "(cached) " >&6
12774 ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-lsvld $LIBS"
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12794 if ac_fn_c_try_link "$LINENO"; then :
12795 ac_cv_lib_svld_dlopen=yes
12797 ac_cv_lib_svld_dlopen=no
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12804 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12805 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12806 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12809 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12810 if ${ac_cv_lib_dld_dld_link+:} false; then :
12811 $as_echo_n "(cached) " >&6
12813 ac_check_lib_save_LIBS=$LIBS
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12818 /* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
12828 return dld_link ();
12833 if ac_fn_c_try_link "$LINENO"; then :
12834 ac_cv_lib_dld_dld_link=yes
12836 ac_cv_lib_dld_dld_link=no
12838 rm -f core conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_check_lib_save_LIBS
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12843 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12844 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12845 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12866 if test no = "$lt_cv_dlopen"; then
12872 case $lt_cv_dlopen in
12874 save_CPPFLAGS=$CPPFLAGS
12875 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12877 save_LDFLAGS=$LDFLAGS
12878 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12881 LIBS="$lt_cv_dlopen_libs $LIBS"
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12884 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12885 if ${lt_cv_dlopen_self+:} false; then :
12886 $as_echo_n "(cached) " >&6
12888 if test yes = "$cross_compiling"; then :
12889 lt_cv_dlopen_self=cross
12891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12892 lt_status=$lt_dlunknown
12893 cat > conftest.$ac_ext <<_LT_EOF
12894 #line $LINENO "configure"
12895 #include "confdefs.h"
12904 # define LT_DLGLOBAL RTLD_GLOBAL
12907 # define LT_DLGLOBAL DL_GLOBAL
12909 # define LT_DLGLOBAL 0
12913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12914 find out it does not work in some platform. */
12915 #ifndef LT_DLLAZY_OR_NOW
12917 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12920 # define LT_DLLAZY_OR_NOW DL_LAZY
12923 # define LT_DLLAZY_OR_NOW RTLD_NOW
12926 # define LT_DLLAZY_OR_NOW DL_NOW
12928 # define LT_DLLAZY_OR_NOW 0
12935 /* When -fvisibility=hidden is used, assume the code has been annotated
12936 correspondingly for the symbols needed. */
12937 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12938 int fnord () __attribute__((visibility("default")));
12941 int fnord () { return 42; }
12944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12945 int status = $lt_dlunknown;
12949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12952 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12953 else puts (dlerror ());
12955 /* dlclose (self); */
12963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12964 (eval $ac_link) 2>&5
12966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12967 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12968 (./conftest; exit; ) >&5 2>/dev/null
12970 case x$lt_status in
12971 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12972 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12973 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12976 # compilation failed
12977 lt_cv_dlopen_self=no
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12985 $as_echo "$lt_cv_dlopen_self" >&6; }
12987 if test yes = "$lt_cv_dlopen_self"; then
12988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12990 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12991 if ${lt_cv_dlopen_self_static+:} false; then :
12992 $as_echo_n "(cached) " >&6
12994 if test yes = "$cross_compiling"; then :
12995 lt_cv_dlopen_self_static=cross
12997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12998 lt_status=$lt_dlunknown
12999 cat > conftest.$ac_ext <<_LT_EOF
13000 #line $LINENO "configure"
13001 #include "confdefs.h"
13010 # define LT_DLGLOBAL RTLD_GLOBAL
13013 # define LT_DLGLOBAL DL_GLOBAL
13015 # define LT_DLGLOBAL 0
13019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13020 find out it does not work in some platform. */
13021 #ifndef LT_DLLAZY_OR_NOW
13023 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13026 # define LT_DLLAZY_OR_NOW DL_LAZY
13029 # define LT_DLLAZY_OR_NOW RTLD_NOW
13032 # define LT_DLLAZY_OR_NOW DL_NOW
13034 # define LT_DLLAZY_OR_NOW 0
13041 /* When -fvisibility=hidden is used, assume the code has been annotated
13042 correspondingly for the symbols needed. */
13043 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13044 int fnord () __attribute__((visibility("default")));
13047 int fnord () { return 42; }
13050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13051 int status = $lt_dlunknown;
13055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13058 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13059 else puts (dlerror ());
13061 /* dlclose (self); */
13069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13070 (eval $ac_link) 2>&5
13072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13074 (./conftest; exit; ) >&5 2>/dev/null
13076 case x$lt_status in
13077 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13078 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13079 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13082 # compilation failed
13083 lt_cv_dlopen_self_static=no
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13091 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13094 CPPFLAGS=$save_CPPFLAGS
13095 LDFLAGS=$save_LDFLAGS
13100 case $lt_cv_dlopen_self in
13101 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13102 *) enable_dlopen_self=unknown ;;
13105 case $lt_cv_dlopen_self_static in
13106 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13107 *) enable_dlopen_self_static=unknown ;;
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13130 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13131 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13133 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135 $as_echo "yes" >&6; }
13137 # FIXME - insert some real tests, host_os isn't really good enough
13140 if test -n "$STRIP"; then
13141 striplib="$STRIP -x"
13142 old_striplib="$STRIP -S"
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; }
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13168 # Report what library types will actually be built
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13170 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13172 $as_echo "$can_build_shared" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13175 $as_echo_n "checking whether to build shared libraries... " >&6; }
13176 test no = "$can_build_shared" && enable_shared=no
13178 # On AIX, shared libraries and static libraries use the same namespace, and
13179 # are all built from PIC.
13182 test yes = "$enable_shared" && enable_static=no
13183 if test -n "$RANLIB"; then
13184 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13185 postinstall_cmds='$RANLIB $lib'
13190 if test ia64 != "$host_cpu"; then
13191 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13192 yes,aix,yes) ;; # shared object as lib.so file only
13193 yes,svr4,*) ;; # shared object as lib.so archive member only
13194 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13200 $as_echo "$enable_shared" >&6; }
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13203 $as_echo_n "checking whether to build static libraries... " >&6; }
13204 # Make sure either enable_shared or enable_static is yes.
13205 test yes = "$enable_shared" || enable_static=yes
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13207 $as_echo "$enable_static" >&6; }
13214 ac_cpp='$CPP $CPPFLAGS'
13215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221 if test -n "$CXX" && ( test no != "$CXX" &&
13222 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13223 (test g++ != "$CXX"))); then
13225 ac_cpp='$CXXCPP $CPPFLAGS'
13226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13230 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13231 if test -z "$CXXCPP"; then
13232 if ${ac_cv_prog_CXXCPP+:} false; then :
13233 $as_echo_n "(cached) " >&6
13235 # Double quotes because CXXCPP needs to be expanded
13236 for CXXCPP in "$CXX -E" "/lib/cpp"
13238 ac_preproc_ok=false
13239 for ac_cxx_preproc_warn_flag in '' yes
13241 # Use a header file that comes with gcc, so configuring glibc
13242 # with a fresh cross-compiler works.
13243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244 # <limits.h> exists even on freestanding compilers.
13245 # On the NeXT, cc -E runs the code through the compiler's parser,
13246 # not just through cpp. "Syntax error" is here to catch this case.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 @%:@ include <limits.h>
13252 @%:@ include <assert.h>
13256 if ac_fn_cxx_try_cpp "$LINENO"; then :
13259 # Broken: fails on valid input.
13262 rm -f conftest.err conftest.i conftest.$ac_ext
13264 # OK, works on sane cases. Now check whether nonexistent headers
13265 # can be detected and how.
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 @%:@include <ac_nonexistent.h>
13270 if ac_fn_cxx_try_cpp "$LINENO"; then :
13271 # Broken: success on invalid input.
13274 # Passes both tests.
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13282 rm -f conftest.i conftest.err conftest.$ac_ext
13283 if $ac_preproc_ok; then :
13288 ac_cv_prog_CXXCPP=$CXXCPP
13291 CXXCPP=$ac_cv_prog_CXXCPP
13293 ac_cv_prog_CXXCPP=$CXXCPP
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13296 $as_echo "$CXXCPP" >&6; }
13297 ac_preproc_ok=false
13298 for ac_cxx_preproc_warn_flag in '' yes
13300 # Use a header file that comes with gcc, so configuring glibc
13301 # with a fresh cross-compiler works.
13302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13303 # <limits.h> exists even on freestanding compilers.
13304 # On the NeXT, cc -E runs the code through the compiler's parser,
13305 # not just through cpp. "Syntax error" is here to catch this case.
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13309 @%:@ include <limits.h>
13311 @%:@ include <assert.h>
13315 if ac_fn_cxx_try_cpp "$LINENO"; then :
13318 # Broken: fails on valid input.
13321 rm -f conftest.err conftest.i conftest.$ac_ext
13323 # OK, works on sane cases. Now check whether nonexistent headers
13324 # can be detected and how.
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 @%:@include <ac_nonexistent.h>
13329 if ac_fn_cxx_try_cpp "$LINENO"; then :
13330 # Broken: success on invalid input.
13333 # Passes both tests.
13337 rm -f conftest.err conftest.i conftest.$ac_ext
13340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13341 rm -f conftest.i conftest.err conftest.$ac_ext
13342 if $ac_preproc_ok; then :
13345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13348 See \`config.log' for more details" "$LINENO" 5; }
13352 ac_cpp='$CPP $CPPFLAGS'
13353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13358 _lt_caught_CXX_error=yes
13362 ac_cpp='$CXXCPP $CPPFLAGS'
13363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13367 archive_cmds_need_lc_CXX=no
13368 allow_undefined_flag_CXX=
13369 always_export_symbols_CXX=no
13370 archive_expsym_cmds_CXX=
13371 compiler_needs_object_CXX=no
13372 export_dynamic_flag_spec_CXX=
13373 hardcode_direct_CXX=no
13374 hardcode_direct_absolute_CXX=no
13375 hardcode_libdir_flag_spec_CXX=
13376 hardcode_libdir_separator_CXX=
13377 hardcode_minus_L_CXX=no
13378 hardcode_shlibpath_var_CXX=unsupported
13379 hardcode_automatic_CXX=no
13380 inherit_rpath_CXX=no
13382 module_expsym_cmds_CXX=
13383 link_all_deplibs_CXX=unknown
13384 old_archive_cmds_CXX=$old_archive_cmds
13385 reload_flag_CXX=$reload_flag
13386 reload_cmds_CXX=$reload_cmds
13387 no_undefined_flag_CXX=
13388 whole_archive_flag_spec_CXX=
13389 enable_shared_with_static_runtimes_CXX=no
13391 # Source file extension for C++ test sources.
13394 # Object file extension for compiled C++ test sources.
13398 # No sense in running all these tests if we already determined that
13399 # the CXX compiler isn't working. Some variables (like enable_shared)
13400 # are currently assumed to apply to all compilers on this platform,
13401 # and will be corrupted by setting them based on a non-working compiler.
13402 if test yes != "$_lt_caught_CXX_error"; then
13403 # Code to be used in simple compile tests
13404 lt_simple_compile_test_code="int some_variable = 0;"
13406 # Code to be used in simple link tests
13407 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13416 # If no C compiler was specified, use CC.
13419 # If no C compiler flags were specified, use CFLAGS.
13420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13422 # Allow CC to be a program name with arguments.
13426 # save warnings/boilerplate of simple test code
13427 ac_outfile=conftest.$ac_objext
13428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13430 _lt_compiler_boilerplate=`cat conftest.err`
13433 ac_outfile=conftest.$ac_objext
13434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13436 _lt_linker_boilerplate=`cat conftest.err`
13440 # Allow CC to be a program name with arguments.
13442 lt_save_CFLAGS=$CFLAGS
13446 lt_save_with_gnu_ld=$with_gnu_ld
13447 lt_save_path_LD=$lt_cv_path_LD
13448 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13449 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13451 $as_unset lt_cv_prog_gnu_ld
13453 if test -n "${lt_cv_path_LDCXX+set}"; then
13454 lt_cv_path_LD=$lt_cv_path_LDCXX
13456 $as_unset lt_cv_path_LD
13458 test -z "${LDCXX+set}" || LD=$LDCXX
13463 func_cc_basename $compiler
13464 cc_basename=$func_cc_basename_result
13467 if test -n "$compiler"; then
13468 # We don't want -fno-exception when compiling C++ code, so set the
13469 # no_builtin_flag separately
13470 if test yes = "$GXX"; then
13471 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13473 lt_prog_compiler_no_builtin_flag_CXX=
13476 if test yes = "$GXX"; then
13477 # Set up default GNU C++ configuration
13481 @%:@ Check whether --with-gnu-ld was given.
13482 if test "${with_gnu_ld+set}" = set; then :
13483 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13489 if test yes = "$GCC"; then
13490 # Check if gcc -print-prog-name=ld gives a path.
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13492 $as_echo_n "checking for ld used by $CC... " >&6; }
13495 # gcc leaves a trailing carriage return, which upsets mingw
13496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13501 # Accept absolute paths.
13503 re_direlt='/[^/][^/]*/\.\./'
13504 # Canonicalize the pathname of ld
13505 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13506 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13507 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13509 test -z "$LD" && LD=$ac_prog
13512 # If it fails, then pretend we aren't using GCC.
13516 # If it is relative, then search for the first ld in PATH.
13517 with_gnu_ld=unknown
13520 elif test yes = "$with_gnu_ld"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13522 $as_echo_n "checking for GNU ld... " >&6; }
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13525 $as_echo_n "checking for non-GNU ld... " >&6; }
13527 if ${lt_cv_path_LD+:} false; then :
13528 $as_echo_n "(cached) " >&6
13530 if test -z "$LD"; then
13531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13532 for ac_dir in $PATH; do
13534 test -z "$ac_dir" && ac_dir=.
13535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13536 lt_cv_path_LD=$ac_dir/$ac_prog
13537 # Check to see if the program is GNU ld. I'd rather use --version,
13538 # but apparently some variants of GNU ld only accept -v.
13539 # Break only if it was the GNU/non-GNU ld that we prefer.
13540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13541 *GNU* | *'with BFD'*)
13542 test no != "$with_gnu_ld" && break
13545 test yes != "$with_gnu_ld" && break
13552 lt_cv_path_LD=$LD # Let the user override the test with a path.
13557 if test -n "$LD"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13559 $as_echo "$LD" >&6; }
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13567 if ${lt_cv_prog_gnu_ld+:} false; then :
13568 $as_echo_n "(cached) " >&6
13570 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13571 case `$LD -v 2>&1 </dev/null` in
13572 *GNU* | *'with BFD'*)
13573 lt_cv_prog_gnu_ld=yes
13576 lt_cv_prog_gnu_ld=no
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13582 with_gnu_ld=$lt_cv_prog_gnu_ld
13590 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13591 # archiving commands below assume that GNU ld is being used.
13592 if test yes = "$with_gnu_ld"; then
13593 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13594 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'
13596 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13597 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13599 # If archive_cmds runs LD, not CC, wlarc should be empty
13600 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13601 # investigate it a little bit more. (MM)
13604 # ancient GNU ld didn't support --whole-archive et. al.
13605 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13606 $GREP 'no-whole-archive' > /dev/null; then
13607 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13609 whole_archive_flag_spec_CXX=
13615 # A generic and very simple default shared library creation
13616 # command for GNU C++ for the case where it uses the native
13617 # linker, instead of GNU ld. If possible, this setting should
13618 # overridden to take advantage of the native linker features on
13619 # the platform it is being used on.
13620 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13623 # Commands to make compiler produce verbose output that lists
13624 # what "hidden" libraries, object files and flags are used when
13625 # linking a shared library.
13626 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13634 # PORTME: fill in a description of your system's C++ link characteristics
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13640 # FIXME: insert proper C++ library support
13644 if test ia64 = "$host_cpu"; then
13645 # On IA64, the linker does run time linking by default, so we don't
13646 # have to do anything special.
13647 aix_use_runtimelinking=no
13648 exp_sym_flag='-Bexport'
13651 aix_use_runtimelinking=no
13653 # Test if we are trying to use run time linking or normal
13654 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13655 # have runtime linking enabled, and use it for executables.
13656 # For shared libraries, we enable/disable runtime linking
13657 # depending on the kind of the shared library created -
13658 # when "with_aix_soname,aix_use_runtimelinking" is:
13659 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13660 # "aix,yes" lib.so shared, rtl:yes, for executables
13661 # lib.a static archive
13662 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13663 # lib.a(lib.so.V) shared, rtl:no, for executables
13664 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13665 # lib.a(lib.so.V) shared, rtl:no
13666 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13667 # lib.a static archive
13668 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13669 for ld_flag in $LDFLAGS; do
13672 aix_use_runtimelinking=yes
13677 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13678 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13679 # so we don't have lib.a shared libs to link our executables.
13680 # We have to force runtime linking in this case.
13681 aix_use_runtimelinking=yes
13682 LDFLAGS="$LDFLAGS -Wl,-brtl"
13687 exp_sym_flag='-bexport'
13688 no_entry_flag='-bnoentry'
13691 # When large executables or shared objects are built, AIX ld can
13692 # have problems creating the table of contents. If linking a library
13693 # or program results in "error TOC overflow" add -mminimal-toc to
13694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13697 archive_cmds_CXX=''
13698 hardcode_direct_CXX=yes
13699 hardcode_direct_absolute_CXX=yes
13700 hardcode_libdir_separator_CXX=':'
13701 link_all_deplibs_CXX=yes
13702 file_list_spec_CXX='$wl-f,'
13703 case $with_aix_soname,$aix_use_runtimelinking in
13704 aix,*) ;; # no import file
13705 svr4,* | *,yes) # use import file
13706 # The Import File defines what to hardcode.
13707 hardcode_direct_CXX=no
13708 hardcode_direct_absolute_CXX=no
13712 if test yes = "$GXX"; then
13713 case $host_os in aix4.[012]|aix4.[012].*)
13714 # We only want to do this on AIX 4.2 and lower, the check
13715 # below for broken collect2 doesn't work under 4.3+
13716 collect2name=`$CC -print-prog-name=collect2`
13717 if test -f "$collect2name" &&
13718 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13720 # We have reworked collect2
13723 # We have old collect2
13724 hardcode_direct_CXX=unsupported
13725 # It fails to find uninstalled libraries when the uninstalled
13726 # path is not listed in the libpath. Setting hardcode_minus_L
13727 # to unsupported forces relinking
13728 hardcode_minus_L_CXX=yes
13729 hardcode_libdir_flag_spec_CXX='-L$libdir'
13730 hardcode_libdir_separator_CXX=
13733 shared_flag='-shared'
13734 if test yes = "$aix_use_runtimelinking"; then
13735 shared_flag=$shared_flag' $wl-G'
13737 # Need to ensure runtime linking is disabled for the traditional
13738 # shared library, or the linker may eventually find shared libraries
13739 # /with/ Import File - we do not want to mix them.
13740 shared_flag_aix='-shared'
13741 shared_flag_svr4='-shared $wl-G'
13744 if test ia64 = "$host_cpu"; then
13745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13746 # chokes on -Wl,-G. The following line is correct:
13749 if test yes = "$aix_use_runtimelinking"; then
13750 shared_flag='$wl-G'
13752 shared_flag='$wl-bM:SRE'
13754 shared_flag_aix='$wl-bM:SRE'
13755 shared_flag_svr4='$wl-G'
13759 export_dynamic_flag_spec_CXX='$wl-bexpall'
13760 # It seems that -bexpall does not export symbols beginning with
13761 # underscore (_), so it is better to generate a list of symbols to
13763 always_export_symbols_CXX=yes
13764 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13765 # Warning - without using the other runtime loading flags (-brtl),
13766 # -berok will link without error, but may produce a broken library.
13767 # The "-G" linker flag allows undefined symbols.
13768 no_undefined_flag_CXX='-bernotok'
13769 # Determine the default libpath from the value encoded in an empty
13771 if test set = "${lt_cv_aix_libpath+set}"; then
13772 aix_libpath=$lt_cv_aix_libpath
13774 if ${lt_cv_aix_libpath__CXX+:} false; then :
13775 $as_echo_n "(cached) " >&6
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13788 if ac_fn_cxx_try_link "$LINENO"; then :
13790 lt_aix_libpath_sed='
13791 /Import File Strings/,/^$/ {
13793 s/^0 *\([^ ]*\) *$/\1/
13797 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13798 # Check for a 64-bit object if we didn't find anything.
13799 if test -z "$lt_cv_aix_libpath__CXX"; then
13800 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 if test -z "$lt_cv_aix_libpath__CXX"; then
13806 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13811 aix_libpath=$lt_cv_aix_libpath__CXX
13814 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13816 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
13818 if test ia64 = "$host_cpu"; then
13819 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13820 allow_undefined_flag_CXX="-z nodefs"
13821 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"
13823 # Determine the default libpath from the value encoded in an
13824 # empty executable.
13825 if test set = "${lt_cv_aix_libpath+set}"; then
13826 aix_libpath=$lt_cv_aix_libpath
13828 if ${lt_cv_aix_libpath__CXX+:} false; then :
13829 $as_echo_n "(cached) " >&6
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13842 if ac_fn_cxx_try_link "$LINENO"; then :
13844 lt_aix_libpath_sed='
13845 /Import File Strings/,/^$/ {
13847 s/^0 *\([^ ]*\) *$/\1/
13851 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13852 # Check for a 64-bit object if we didn't find anything.
13853 if test -z "$lt_cv_aix_libpath__CXX"; then
13854 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 if test -z "$lt_cv_aix_libpath__CXX"; then
13860 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13865 aix_libpath=$lt_cv_aix_libpath__CXX
13868 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13869 # Warning - without using the other run time loading flags,
13870 # -berok will link without error, but may produce a broken library.
13871 no_undefined_flag_CXX=' $wl-bernotok'
13872 allow_undefined_flag_CXX=' $wl-berok'
13873 if test yes = "$with_gnu_ld"; then
13874 # We only use this code for GNU lds that support --whole-archive.
13875 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13877 # Exported symbols can be pulled into shared objects from archives
13878 whole_archive_flag_spec_CXX='$convenience'
13880 archive_cmds_need_lc_CXX=yes
13881 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13882 # -brtl affects multiple linker settings, -berok does not and is overridden later
13883 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13884 if test svr4 != "$with_aix_soname"; then
13885 # This is similar to how AIX traditionally builds its shared
13886 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13887 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'
13889 if test aix != "$with_aix_soname"; then
13890 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'
13892 # used by -dlpreopen to get the symbols
13893 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13895 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13902 allow_undefined_flag_CXX=unsupported
13903 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13904 # support --undefined. This deserves some investigation. FIXME
13905 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13912 case $cc_basename in
13914 # FIXME: insert proper C++ library support
13920 cygwin* | mingw* | pw32* | cegcc*)
13921 case $GXX,$cc_basename in
13924 # hardcode_libdir_flag_spec is actually meaningless, as there is
13925 # no search path for DLLs.
13926 hardcode_libdir_flag_spec_CXX=' '
13927 allow_undefined_flag_CXX=unsupported
13928 always_export_symbols_CXX=yes
13929 file_list_spec_CXX='@'
13930 # Tell ltmain to make .lib files, not .a files.
13932 # Tell ltmain to make .dll files, not .so files.
13934 # FIXME: Setting linknames here is a bad hack.
13935 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13936 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13937 cp "$export_symbols" "$output_objdir/$soname.def";
13938 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13940 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13942 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13944 # The linker will not automatically build a static lib if we build a DLL.
13945 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13946 enable_shared_with_static_runtimes_CXX=yes
13948 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13949 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13950 lt_tool_outputfile="@TOOL_OUTPUT@"~
13951 case $lt_outputfile in
13954 lt_outputfile=$lt_outputfile.exe
13955 lt_tool_outputfile=$lt_tool_outputfile.exe
13958 func_to_tool_file "$lt_outputfile"~
13959 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13960 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13961 $RM "$lt_outputfile.manifest";
13966 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13967 # as there is no search path for DLLs.
13968 hardcode_libdir_flag_spec_CXX='-L$libdir'
13969 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13970 allow_undefined_flag_CXX=unsupported
13971 always_export_symbols_CXX=no
13972 enable_shared_with_static_runtimes_CXX=yes
13974 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13975 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'
13976 # If the export-symbols file already is a .def file, use it as
13977 # is; otherwise, prepend EXPORTS...
13978 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13979 cp $export_symbols $output_objdir/$soname.def;
13981 echo EXPORTS > $output_objdir/$soname.def;
13982 cat $export_symbols >> $output_objdir/$soname.def;
13984 $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'
13991 darwin* | rhapsody*)
13994 archive_cmds_need_lc_CXX=no
13995 hardcode_direct_CXX=no
13996 hardcode_automatic_CXX=yes
13997 hardcode_shlibpath_var_CXX=unsupported
13998 if test yes = "$lt_cv_ld_force_load"; then
13999 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\"`'
14002 whole_archive_flag_spec_CXX=''
14004 link_all_deplibs_CXX=yes
14005 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14006 case $cc_basename in
14007 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14008 *) _lt_dar_can_shared=$GCC ;;
14010 if test yes = "$_lt_dar_can_shared"; then
14011 output_verbose_link_cmd=func_echo_all
14012 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"
14013 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14014 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"
14015 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"
14016 if test yes != "$lt_cv_apple_cc_single_mod"; then
14017 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"
14018 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"
14028 hardcode_libdir_flag_spec_CXX='-L$libdir'
14029 hardcode_minus_L_CXX=yes
14030 allow_undefined_flag_CXX=unsupported
14032 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14033 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14034 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14035 $ECHO EXPORTS >> $output_objdir/$libname.def~
14036 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14037 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14038 emximp -o $lib $output_objdir/$libname.def'
14039 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14040 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14041 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14042 $ECHO EXPORTS >> $output_objdir/$libname.def~
14043 prefix_cmds="$SED"~
14044 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14045 prefix_cmds="$prefix_cmds -e 1d";
14047 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14048 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14049 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14050 emximp -o $lib $output_objdir/$libname.def'
14051 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14052 enable_shared_with_static_runtimes_CXX=yes
14056 case $cc_basename in
14058 # FIXME: insert proper C++ library support
14062 # Green Hills C++ Compiler
14063 # FIXME: insert proper C++ library support
14067 # FIXME: insert proper C++ library support
14074 # C++ shared libraries reported to be fairly broken before
14080 archive_cmds_need_lc_CXX=no
14083 freebsd* | dragonfly*)
14084 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14090 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14091 link_all_deplibs_CXX=yes
14095 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14096 hardcode_libdir_separator_CXX=:
14097 export_dynamic_flag_spec_CXX='$wl-E'
14098 hardcode_direct_CXX=yes
14099 hardcode_minus_L_CXX=yes # Not in the search PATH,
14100 # but as the default
14101 # location of the library.
14103 case $cc_basename in
14105 # FIXME: insert proper C++ library support
14109 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'
14110 # Commands to make compiler produce verbose output that lists
14111 # what "hidden" libraries, object files and flags are used when
14112 # linking a shared library.
14114 # There doesn't appear to be a way to prevent this compiler from
14115 # explicitly linking system object files so we need to strip them
14116 # from the output so that they don't get included in the library
14118 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"'
14121 if test yes = "$GXX"; then
14122 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'
14124 # FIXME: insert proper C++ library support
14132 if test no = "$with_gnu_ld"; then
14133 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14134 hardcode_libdir_separator_CXX=:
14140 export_dynamic_flag_spec_CXX='$wl-E'
14146 hardcode_direct_CXX=no
14147 hardcode_shlibpath_var_CXX=no
14150 hardcode_direct_CXX=yes
14151 hardcode_direct_absolute_CXX=yes
14152 hardcode_minus_L_CXX=yes # Not in the search PATH,
14153 # but as the default
14154 # location of the library.
14158 case $cc_basename in
14160 # FIXME: insert proper C++ library support
14166 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14169 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14172 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14175 # Commands to make compiler produce verbose output that lists
14176 # what "hidden" libraries, object files and flags are used when
14177 # linking a shared library.
14179 # There doesn't appear to be a way to prevent this compiler from
14180 # explicitly linking system object files so we need to strip them
14181 # from the output so that they don't get included in the library
14183 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"'
14186 if test yes = "$GXX"; then
14187 if test no = "$with_gnu_ld"; then
14190 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14193 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14196 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'
14201 # FIXME: insert proper C++ library support
14209 hardcode_direct_CXX=no
14210 hardcode_shlibpath_var_CXX=no
14211 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14212 export_dynamic_flag_spec_CXX='$wl-E'
14213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14214 # Instead, shared libraries are loaded at an image base (0x10000000 by
14215 # default) and relocated if they conflict, which is a slow very memory
14216 # consuming and fragmenting process. To avoid this, we pick a random,
14217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14219 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'
14220 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'
14223 case $cc_basename in
14226 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'
14228 # Archives containing C++ object files must be created using
14229 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14230 # necessary to make sure instantiated templates are included
14232 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14235 if test yes = "$GXX"; then
14236 if test no = "$with_gnu_ld"; then
14237 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'
14239 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'
14242 link_all_deplibs_CXX=yes
14245 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14246 hardcode_libdir_separator_CXX=:
14247 inherit_rpath_CXX=yes
14250 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14251 case $cc_basename in
14253 # Kuck and Associates, Inc. (KAI) C++ Compiler
14255 # KCC will only create a shared library if the output file
14256 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14257 # to its proper name (with version) after linking.
14258 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'
14259 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'
14260 # Commands to make compiler produce verbose output that lists
14261 # what "hidden" libraries, object files and flags are used when
14262 # linking a shared library.
14264 # There doesn't appear to be a way to prevent this compiler from
14265 # explicitly linking system object files so we need to strip them
14266 # from the output so that they don't get included in the library
14268 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"'
14270 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14271 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14273 # Archives containing C++ object files must be created using
14274 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14275 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14280 # version 8.0 and above of icpc choke on multiply defined symbols
14281 # if we add $predep_objects and $postdep_objects, however 7.1 and
14282 # earlier do not add the objects themselves.
14283 case `$CC -V 2>&1` in
14285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14286 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'
14288 *) # Version 8.0 or newer
14291 ia64*) tmp_idyn=' -i_dynamic';;
14293 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14294 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'
14297 archive_cmds_need_lc_CXX=no
14298 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14299 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14300 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14303 # Portland Group C++ compiler
14305 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14306 prelink_cmds_CXX='tpldir=Template.dir~
14308 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14309 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14310 old_archive_cmds_CXX='tpldir=Template.dir~
14312 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14313 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14315 archive_cmds_CXX='tpldir=Template.dir~
14317 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14318 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14319 archive_expsym_cmds_CXX='tpldir=Template.dir~
14321 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14322 $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'
14324 *) # Version 6 and above use weak symbols
14325 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14326 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'
14330 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14331 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14332 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'
14336 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14337 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'
14339 runpath_var=LD_RUN_PATH
14340 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14341 hardcode_libdir_separator_CXX=:
14343 # Commands to make compiler produce verbose output that lists
14344 # what "hidden" libraries, object files and flags are used when
14345 # linking a shared library.
14347 # There doesn't appear to be a way to prevent this compiler from
14348 # explicitly linking system object files so we need to strip them
14349 # from the output so that they don't get included in the library
14351 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'
14353 xl* | mpixl* | bgxl*)
14354 # IBM XL 8.0 on PPC, with GNU ld
14355 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14356 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14357 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14358 if test yes = "$supports_anon_versioning"; then
14359 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14361 echo "local: *; };" >> $output_objdir/$libname.ver~
14362 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14366 case `$CC -V 2>&1 | sed 5q` in
14369 no_undefined_flag_CXX=' -zdefs'
14370 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14371 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'
14372 hardcode_libdir_flag_spec_CXX='-R$libdir'
14373 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'
14374 compiler_needs_object_CXX=yes
14376 # Not sure whether something based on
14377 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14379 output_verbose_link_cmd='func_echo_all'
14381 # Archives containing C++ object files must be created using
14382 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14383 # necessary to make sure instantiated templates are included
14385 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14393 # FIXME: insert proper C++ library support
14398 # FIXME: insert proper C++ library support
14403 case $cc_basename in
14405 # FIXME: insert proper C++ library support
14409 # FIXME: insert proper C++ library support
14416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14417 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14419 hardcode_libdir_flag_spec_CXX='-R$libdir'
14420 hardcode_direct_CXX=yes
14421 hardcode_shlibpath_var_CXX=no
14423 # Workaround some broken pre-1.5 toolchains
14424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14431 openbsd* | bitrig*)
14432 if test -f /usr/libexec/ld.so; then
14433 hardcode_direct_CXX=yes
14434 hardcode_shlibpath_var_CXX=no
14435 hardcode_direct_absolute_CXX=yes
14436 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14437 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14439 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14440 export_dynamic_flag_spec_CXX='$wl-E'
14441 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14443 output_verbose_link_cmd=func_echo_all
14449 osf3* | osf4* | osf5*)
14450 case $cc_basename in
14452 # Kuck and Associates, Inc. (KAI) C++ Compiler
14454 # KCC will only create a shared library if the output file
14455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14456 # to its proper name (with version) after linking.
14457 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'
14459 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14460 hardcode_libdir_separator_CXX=:
14462 # Archives containing C++ object files must be created using
14463 # the KAI C++ compiler.
14465 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14466 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14470 # Rational C++ 2.4.1
14471 # FIXME: insert proper C++ library support
14477 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14478 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'
14479 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14482 allow_undefined_flag_CXX=' -expect_unresolved \*'
14483 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'
14484 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14485 echo "-hidden">> $lib.exp~
14486 $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~
14488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14492 hardcode_libdir_separator_CXX=:
14494 # Commands to make compiler produce verbose output that lists
14495 # what "hidden" libraries, object files and flags are used when
14496 # linking a shared library.
14498 # There doesn't appear to be a way to prevent this compiler from
14499 # explicitly linking system object files so we need to strip them
14500 # from the output so that they don't get included in the library
14502 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"'
14505 if test yes,no = "$GXX,$with_gnu_ld"; then
14506 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14509 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'
14512 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'
14516 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14517 hardcode_libdir_separator_CXX=:
14519 # Commands to make compiler produce verbose output that lists
14520 # what "hidden" libraries, object files and flags are used when
14521 # linking a shared library.
14522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14525 # FIXME: insert proper C++ library support
14533 # FIXME: insert proper C++ library support
14538 case $cc_basename in
14541 # FIXME: insert proper C++ library support
14546 # FIXME: insert proper C++ library support
14550 # FIXME: insert proper C++ library support
14557 case $cc_basename in
14559 # Sun C++ 4.2, 5.x and Centerline C++
14560 archive_cmds_need_lc_CXX=yes
14561 no_undefined_flag_CXX=' -zdefs'
14562 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14563 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14564 $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'
14566 hardcode_libdir_flag_spec_CXX='-R$libdir'
14567 hardcode_shlibpath_var_CXX=no
14569 solaris2.[0-5] | solaris2.[0-5].*) ;;
14571 # The compiler driver will combine and reorder linker options,
14572 # but understands '-z linker_flag'.
14573 # Supported since Solaris 2.6 (maybe 2.5.1?)
14574 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14577 link_all_deplibs_CXX=yes
14579 output_verbose_link_cmd='func_echo_all'
14581 # Archives containing C++ object files must be created using
14582 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14583 # necessary to make sure instantiated templates are included
14585 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14588 # Green Hills C++ Compiler
14589 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14591 # The C++ compiler must be used to create the archive.
14592 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14595 # GNU C++ compiler with Solaris linker
14596 if test yes,no = "$GXX,$with_gnu_ld"; then
14597 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14598 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14599 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14600 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14601 $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'
14603 # Commands to make compiler produce verbose output that lists
14604 # what "hidden" libraries, object files and flags are used when
14605 # linking a shared library.
14606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14608 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14610 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14611 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14612 $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'
14614 # Commands to make compiler produce verbose output that lists
14615 # what "hidden" libraries, object files and flags are used when
14616 # linking a shared library.
14617 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14620 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14622 solaris2.[0-5] | solaris2.[0-5].*) ;;
14624 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14633 no_undefined_flag_CXX='$wl-z,text'
14634 archive_cmds_need_lc_CXX=no
14635 hardcode_shlibpath_var_CXX=no
14636 runpath_var='LD_RUN_PATH'
14638 case $cc_basename in
14640 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14641 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14644 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14645 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650 sysv5* | sco3.2v5* | sco5v6*)
14651 # Note: We CANNOT use -z defs as we might desire, because we do not
14652 # link with -lc, and that would cause any symbols used from libc to
14653 # always be unresolved, which means just about no library would
14654 # ever link correctly. If we're not using GNU ld we use -z text
14655 # though, which does catch some bad symbols but isn't as heavy-handed
14657 no_undefined_flag_CXX='$wl-z,text'
14658 allow_undefined_flag_CXX='$wl-z,nodefs'
14659 archive_cmds_need_lc_CXX=no
14660 hardcode_shlibpath_var_CXX=no
14661 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14662 hardcode_libdir_separator_CXX=':'
14663 link_all_deplibs_CXX=yes
14664 export_dynamic_flag_spec_CXX='$wl-Bexport'
14665 runpath_var='LD_RUN_PATH'
14667 case $cc_basename in
14669 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14670 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14671 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14672 '"$old_archive_cmds_CXX"
14673 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14674 '"$reload_cmds_CXX"
14677 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14684 case $cc_basename in
14686 # NonStop-UX NCC 3.20
14687 # FIXME: insert proper C++ library support
14691 # FIXME: insert proper C++ library support
14698 # FIXME: insert proper C++ library support
14703 # FIXME: insert proper C++ library support
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14709 $as_echo "$ld_shlibs_CXX" >&6; }
14710 test no = "$ld_shlibs_CXX" && can_build_shared=no
14716 ## There is no encapsulation within the following macros, do not change
14717 ## the running order or otherwise move them around unless you know exactly
14718 ## what you are doing...
14719 # Dependencies to place before and after the object being linked:
14720 predep_objects_CXX=
14721 postdep_objects_CXX=
14724 compiler_lib_search_path_CXX=
14726 cat > conftest.$ac_ext <<_LT_EOF
14730 Foo (void) { a = 0; }
14737 _lt_libdeps_save_CFLAGS=$CFLAGS
14738 case "$CC $CFLAGS " in #(
14739 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14740 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14741 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14745 (eval $ac_compile) 2>&5
14747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14748 test $ac_status = 0; }; then
14749 # Parse the compiler output and extract the necessary
14750 # objects, libraries and library flags.
14752 # Sentinel used to keep track of whether or not we are before
14753 # the conftest object file.
14754 pre_test_object_deps_done=no
14756 for p in `eval "$output_verbose_link_cmd"`; do
14760 # Some compilers place space between "-{L,R}" and the path.
14761 # Remove the space.
14762 if test x-L = "$p" ||
14763 test x-R = "$p"; then
14768 # Expand the sysroot to ease extracting the directories later.
14769 if test -z "$prev"; then
14771 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14772 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14773 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14777 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14779 if test no = "$pre_test_object_deps_done"; then
14782 # Internal compiler library paths should come after those
14783 # provided the user. The postdeps already come after the
14784 # user supplied libs so there is no need to process them.
14785 if test -z "$compiler_lib_search_path_CXX"; then
14786 compiler_lib_search_path_CXX=$prev$p
14788 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14791 # The "-l" case would never come before the object being
14792 # linked, so don't bother handling this case.
14795 if test -z "$postdeps_CXX"; then
14796 postdeps_CXX=$prev$p
14798 postdeps_CXX="${postdeps_CXX} $prev$p"
14804 *.lto.$objext) ;; # Ignore GCC LTO objects
14806 # This assumes that the test object file only shows up
14807 # once in the compiler output.
14808 if test "$p" = "conftest.$objext"; then
14809 pre_test_object_deps_done=yes
14813 if test no = "$pre_test_object_deps_done"; then
14814 if test -z "$predep_objects_CXX"; then
14815 predep_objects_CXX=$p
14817 predep_objects_CXX="$predep_objects_CXX $p"
14820 if test -z "$postdep_objects_CXX"; then
14821 postdep_objects_CXX=$p
14823 postdep_objects_CXX="$postdep_objects_CXX $p"
14828 *) ;; # Ignore the rest.
14836 echo "libtool.m4: error: problem compiling CXX test program"
14839 $RM -f confest.$objext
14840 CFLAGS=$_lt_libdeps_save_CFLAGS
14842 # PORTME: override above test on systems where it is broken
14845 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14846 # hack all around it, let's just trust "g++" to DTRT.
14847 predep_objects_CXX=
14848 postdep_objects_CXX=
14854 case " $postdeps_CXX " in
14855 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14857 compiler_lib_search_dirs_CXX=
14858 if test -n "${compiler_lib_search_path_CXX}"; then
14859 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14892 lt_prog_compiler_wl_CXX=
14893 lt_prog_compiler_pic_CXX=
14894 lt_prog_compiler_static_CXX=
14897 # C++ specific cases for pic, static, wl, etc.
14898 if test yes = "$GXX"; then
14899 lt_prog_compiler_wl_CXX='-Wl,'
14900 lt_prog_compiler_static_CXX='-static'
14904 # All AIX code is PIC.
14905 if test ia64 = "$host_cpu"; then
14906 # AIX 5 now supports IA64 processor
14907 lt_prog_compiler_static_CXX='-Bstatic'
14909 lt_prog_compiler_pic_CXX='-fPIC'
14915 # see comment about AmigaOS4 .so support
14916 lt_prog_compiler_pic_CXX='-fPIC'
14919 # FIXME: we need at least 68020 code to build shared libraries, but
14920 # adding the '-m68020' flag to GCC prevents building anything better,
14922 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14927 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14928 # PIC is the default for these OSes.
14930 mingw* | cygwin* | os2* | pw32* | cegcc*)
14931 # This hack is so that the source file can tell whether it is being
14932 # built for inclusion in a dll (and should export symbols for example).
14933 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14934 # (--disable-auto-import) libraries
14935 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14938 lt_prog_compiler_static_CXX='$wl-static'
14942 darwin* | rhapsody*)
14943 # PIC is the default on this platform
14944 # Common symbols not allowed in MH_DYLIB files
14945 lt_prog_compiler_pic_CXX='-fno-common'
14948 # DJGPP does not support shared libraries at all
14949 lt_prog_compiler_pic_CXX=
14952 # PIC is the default for Haiku.
14953 # The "-static" flag exists, but is broken.
14954 lt_prog_compiler_static_CXX=
14957 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14958 # Instead, we relocate shared libraries at runtime.
14961 if test -d /usr/nec; then
14962 lt_prog_compiler_pic_CXX=-Kconform_pic
14966 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14967 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14968 # sets the default TLS model and affects inlining.
14973 lt_prog_compiler_pic_CXX='-fPIC'
14978 # QNX uses GNU C++, but need to define -shared option too, otherwise
14979 # it will coredump.
14980 lt_prog_compiler_pic_CXX='-fPIC -shared'
14983 lt_prog_compiler_pic_CXX='-fPIC'
14989 # All AIX code is PIC.
14990 if test ia64 = "$host_cpu"; then
14991 # AIX 5 now supports IA64 processor
14992 lt_prog_compiler_static_CXX='-Bstatic'
14994 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14998 case $cc_basename in
15000 # Green Hills C++ Compiler
15001 # _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"
15005 mingw* | cygwin* | os2* | pw32* | cegcc*)
15006 # This hack is so that the source file can tell whether it is being
15007 # built for inclusion in a dll (and should export symbols for example).
15008 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15011 case $cc_basename in
15013 lt_prog_compiler_pic_CXX='-KPIC'
15016 # Green Hills C++ Compiler
15017 lt_prog_compiler_pic_CXX='-pic'
15023 freebsd* | dragonfly*)
15024 # FreeBSD uses GNU C++
15026 hpux9* | hpux10* | hpux11*)
15027 case $cc_basename in
15029 lt_prog_compiler_wl_CXX='-Wl,'
15030 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15031 if test ia64 != "$host_cpu"; then
15032 lt_prog_compiler_pic_CXX='+Z'
15036 lt_prog_compiler_wl_CXX='-Wl,'
15037 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15043 lt_prog_compiler_pic_CXX='+Z'
15052 # This is c89, which is MS Visual C++ (no shared libs)
15053 # Anyone wants to do a port?
15055 irix5* | irix6* | nonstopux*)
15056 case $cc_basename in
15058 lt_prog_compiler_wl_CXX='-Wl,'
15059 lt_prog_compiler_static_CXX='-non_shared'
15060 # CC pic flag -KPIC is the default.
15066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15067 case $cc_basename in
15070 lt_prog_compiler_wl_CXX='--backend -Wl,'
15071 lt_prog_compiler_pic_CXX='-fPIC'
15074 # old Intel C++ for x86_64, which still supported -KPIC.
15075 lt_prog_compiler_wl_CXX='-Wl,'
15076 lt_prog_compiler_pic_CXX='-KPIC'
15077 lt_prog_compiler_static_CXX='-static'
15080 # Intel C++, used to be incompatible with GCC.
15081 # ICC 10 doesn't accept -KPIC any more.
15082 lt_prog_compiler_wl_CXX='-Wl,'
15083 lt_prog_compiler_pic_CXX='-fPIC'
15084 lt_prog_compiler_static_CXX='-static'
15087 # Portland Group C++ compiler
15088 lt_prog_compiler_wl_CXX='-Wl,'
15089 lt_prog_compiler_pic_CXX='-fpic'
15090 lt_prog_compiler_static_CXX='-Bstatic'
15094 # Make sure the PIC flag is empty. It appears that all Alpha
15095 # Linux and Compaq Tru64 Unix objects are PIC.
15096 lt_prog_compiler_pic_CXX=
15097 lt_prog_compiler_static_CXX='-non_shared'
15099 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15100 # IBM XL 8.0, 9.0 on PPC and BlueGene
15101 lt_prog_compiler_wl_CXX='-Wl,'
15102 lt_prog_compiler_pic_CXX='-qpic'
15103 lt_prog_compiler_static_CXX='-qstaticlink'
15106 case `$CC -V 2>&1 | sed 5q` in
15109 lt_prog_compiler_pic_CXX='-KPIC'
15110 lt_prog_compiler_static_CXX='-Bstatic'
15111 lt_prog_compiler_wl_CXX='-Qoption ld '
15122 case $cc_basename in
15124 lt_prog_compiler_pic_CXX='-W c,exportall'
15130 netbsd* | netbsdelf*-gnu)
15133 # QNX uses GNU C++, but need to define -shared option too, otherwise
15134 # it will coredump.
15135 lt_prog_compiler_pic_CXX='-fPIC -shared'
15137 osf3* | osf4* | osf5*)
15138 case $cc_basename in
15140 lt_prog_compiler_wl_CXX='--backend -Wl,'
15143 # Rational C++ 2.4.1
15144 lt_prog_compiler_pic_CXX='-pic'
15147 # Digital/Compaq C++
15148 lt_prog_compiler_wl_CXX='-Wl,'
15149 # Make sure the PIC flag is empty. It appears that all Alpha
15150 # Linux and Compaq Tru64 Unix objects are PIC.
15151 lt_prog_compiler_pic_CXX=
15152 lt_prog_compiler_static_CXX='-non_shared'
15161 case $cc_basename in
15163 # Sun C++ 4.2, 5.x and Centerline C++
15164 lt_prog_compiler_pic_CXX='-KPIC'
15165 lt_prog_compiler_static_CXX='-Bstatic'
15166 lt_prog_compiler_wl_CXX='-Qoption ld '
15169 # Green Hills C++ Compiler
15170 lt_prog_compiler_pic_CXX='-PIC'
15177 case $cc_basename in
15180 lt_prog_compiler_pic_CXX='-pic'
15181 lt_prog_compiler_static_CXX='-Bstatic'
15185 lt_prog_compiler_pic_CXX='-pic'
15191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15192 case $cc_basename in
15194 lt_prog_compiler_wl_CXX='-Wl,'
15195 lt_prog_compiler_pic_CXX='-KPIC'
15196 lt_prog_compiler_static_CXX='-Bstatic'
15201 case $cc_basename in
15203 # NonStop-UX NCC 3.20
15204 lt_prog_compiler_pic_CXX='-KPIC'
15213 lt_prog_compiler_can_build_shared_CXX=no
15219 # For platforms that do not support PIC, -DPIC is meaningless:
15221 lt_prog_compiler_pic_CXX=
15224 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15230 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15231 $as_echo_n "(cached) " >&6
15233 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15236 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15237 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15240 # Check to make sure the PIC flag actually works.
15242 if test -n "$lt_prog_compiler_pic_CXX"; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15245 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15246 $as_echo_n "(cached) " >&6
15248 lt_cv_prog_compiler_pic_works_CXX=no
15249 ac_outfile=conftest.$ac_objext
15250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15251 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment
15252 # Insert the option either (1) after the last *FLAGS variable, or
15253 # (2) before a word containing "conftest.", or (3) at the end.
15254 # Note that $ac_compile itself does not contain backslashes and begins
15255 # with a dollar sign (not a hyphen), so the echo should work correctly.
15256 # The option is referenced via a variable to avoid confusing sed.
15257 lt_compile=`echo "$ac_compile" | $SED \
15258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15260 -e 's:$: $lt_compiler_flag:'`
15261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15262 (eval "$lt_compile" 2>conftest.err)
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 if (exit $ac_status) && test -s "$ac_outfile"; then
15267 # The compiler can only warn and ignore the option if not recognized
15268 # So say no if there are warnings other than the usual output.
15269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15272 lt_cv_prog_compiler_pic_works_CXX=yes
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15279 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15281 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15282 case $lt_prog_compiler_pic_CXX in
15284 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15287 lt_prog_compiler_pic_CXX=
15288 lt_prog_compiler_can_build_shared_CXX=no
15298 # Check to make sure the static flag actually works.
15300 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15303 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15304 $as_echo_n "(cached) " >&6
15306 lt_cv_prog_compiler_static_works_CXX=no
15307 save_LDFLAGS=$LDFLAGS
15308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15311 # The linker can only warn and ignore the option if not recognized
15312 # So say no if there are warnings
15313 if test -s conftest.err; then
15314 # Append any errors to the config.log.
15315 cat conftest.err 1>&5
15316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15318 if diff conftest.exp conftest.er2 >/dev/null; then
15319 lt_cv_prog_compiler_static_works_CXX=yes
15322 lt_cv_prog_compiler_static_works_CXX=yes
15326 LDFLAGS=$save_LDFLAGS
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15330 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15332 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15335 lt_prog_compiler_static_CXX=
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15343 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15344 $as_echo_n "(cached) " >&6
15346 lt_cv_prog_compiler_c_o_CXX=no
15347 $RM -r conftest 2>/dev/null
15351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15353 lt_compiler_flag="-o out/conftest2.$ac_objext"
15354 # Insert the option either (1) after the last *FLAGS variable, or
15355 # (2) before a word containing "conftest.", or (3) at the end.
15356 # Note that $ac_compile itself does not contain backslashes and begins
15357 # with a dollar sign (not a hyphen), so the echo should work correctly.
15358 lt_compile=`echo "$ac_compile" | $SED \
15359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15361 -e 's:$: $lt_compiler_flag:'`
15362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15363 (eval "$lt_compile" 2>out/conftest.err)
15365 cat out/conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15369 # The compiler can only warn and ignore the option if not recognized
15370 # So say no if there are warnings
15371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15374 lt_cv_prog_compiler_c_o_CXX=yes
15379 # SGI C++ compiler will create directory out/ii_files/ for
15380 # template instantiation
15381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15382 $RM out/* && rmdir out
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15395 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15396 $as_echo_n "(cached) " >&6
15398 lt_cv_prog_compiler_c_o_CXX=no
15399 $RM -r conftest 2>/dev/null
15403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15405 lt_compiler_flag="-o out/conftest2.$ac_objext"
15406 # Insert the option either (1) after the last *FLAGS variable, or
15407 # (2) before a word containing "conftest.", or (3) at the end.
15408 # Note that $ac_compile itself does not contain backslashes and begins
15409 # with a dollar sign (not a hyphen), so the echo should work correctly.
15410 lt_compile=`echo "$ac_compile" | $SED \
15411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15413 -e 's:$: $lt_compiler_flag:'`
15414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15415 (eval "$lt_compile" 2>out/conftest.err)
15417 cat out/conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15421 # The compiler can only warn and ignore the option if not recognized
15422 # So say no if there are warnings
15423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15424 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15425 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15426 lt_cv_prog_compiler_c_o_CXX=yes
15431 # SGI C++ compiler will create directory out/ii_files/ for
15432 # template instantiation
15433 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15434 $RM out/* && rmdir out
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15441 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15446 hard_links=nottested
15447 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15448 # do not overwrite the value of need_locks provided by the user
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15450 $as_echo_n "checking if we can lock with hard links... " >&6; }
15453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15455 ln conftest.a conftest.b 2>&5 || hard_links=no
15456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15458 $as_echo "$hard_links" >&6; }
15459 if test no = "$hard_links"; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15461 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15473 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15474 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15477 # If we're using GNU nm, then we don't want the "-C" option.
15478 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15479 # Without the "-l" option, or with the "-B" option, AIX nm treats
15480 # weak defined symbols like other global defined symbols, whereas
15481 # GNU nm marks them as "W".
15482 # While the 'weak' keyword is ignored in the Export File, we need
15483 # it in the Import File for the 'aix-soname' feature, so we have
15484 # to replace the "-B" option with "-P" for AIX nm.
15485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15486 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'
15488 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'
15492 export_symbols_cmds_CXX=$ltdll_cmds
15494 cygwin* | mingw* | cegcc*)
15495 case $cc_basename in
15497 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15500 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'
15501 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15505 linux* | k*bsd*-gnu | gnu*)
15506 link_all_deplibs_CXX=no
15509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15514 $as_echo "$ld_shlibs_CXX" >&6; }
15515 test no = "$ld_shlibs_CXX" && can_build_shared=no
15517 with_gnu_ld_CXX=$with_gnu_ld
15525 # Do we need to explicitly link libc?
15527 case "x$archive_cmds_need_lc_CXX" in
15529 # Assume -lc should be added
15530 archive_cmds_need_lc_CXX=yes
15532 if test yes,yes = "$GCC,$enable_shared"; then
15533 case $archive_cmds_CXX in
15535 # FIXME: we may have to deal with multi-command sequences.
15538 # Test whether the compiler implicitly links with -lc since on some
15539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15540 # to ld, don't add -lc before -lgcc.
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15543 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15544 $as_echo_n "(cached) " >&6
15547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15550 (eval $ac_compile) 2>&5
15552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15553 test $ac_status = 0; } 2>conftest.err; then
15556 libobjs=conftest.$ac_objext
15558 wl=$lt_prog_compiler_wl_CXX
15559 pic_flag=$lt_prog_compiler_pic_CXX
15565 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15566 allow_undefined_flag_CXX=
15567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15568 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15571 test $ac_status = 0; }
15573 lt_cv_archive_cmds_need_lc_CXX=no
15575 lt_cv_archive_cmds_need_lc_CXX=yes
15577 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15579 cat conftest.err 1>&5
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15585 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15586 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15657 library_names_spec=
15658 libname_spec='lib$name'
15662 postuninstall_cmds=
15666 shlibpath_overrides_runpath=unknown
15668 dynamic_linker="$host_os ld.so"
15669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15670 need_lib_prefix=unknown
15671 hardcode_into_libs=no
15673 # when you set need_version to no, make sure it does not cause -set_version
15674 # flags to be left without arguments
15675 need_version=unknown
15681 version_type=linux # correct to gnu/linux during the next big refactor
15682 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15683 shlibpath_var=LIBPATH
15685 # AIX 3 has no versioning support, so we append a major version to the name.
15686 soname_spec='$libname$release$shared_ext$major'
15690 version_type=linux # correct to gnu/linux during the next big refactor
15693 hardcode_into_libs=yes
15694 if test ia64 = "$host_cpu"; then
15695 # AIX 5 supports IA64
15696 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15697 shlibpath_var=LD_LIBRARY_PATH
15699 # With GCC up to 2.95.x, collect2 would create an import file
15700 # for dependence libraries. The import file would start with
15701 # the line '#! .'. This would cause the generated library to
15702 # depend on '.', always an invalid library. This was fixed in
15703 # development snapshots of GCC prior to 3.0.
15705 aix4 | aix4.[01] | aix4.[01].*)
15706 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15708 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15711 can_build_shared=no
15715 # Using Import Files as archive members, it is possible to support
15716 # filename-based versioning of shared library archives on AIX. While
15717 # this would work for both with and without runtime linking, it will
15718 # prevent static linking of such archives. So we do filename-based
15719 # shared library versioning with .so extension only, which is used
15720 # when both runtime linking and shared linking is enabled.
15721 # Unfortunately, runtime linking may impact performance, so we do
15722 # not want this to be the default eventually. Also, we use the
15723 # versioned .so libs for executables only if there is the -brtl
15724 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15725 # To allow for filename-based versioning support, we need to create
15726 # libNAME.so.V as an archive file, containing:
15727 # *) an Import File, referring to the versioned filename of the
15728 # archive as well as the shared archive member, telling the
15729 # bitwidth (32 or 64) of that shared object, and providing the
15730 # list of exported symbols of that shared object, eventually
15731 # decorated with the 'weak' keyword
15732 # *) the shared object with the F_LOADONLY flag set, to really avoid
15733 # it being seen by the linker.
15734 # At run time we better use the real file rather than another symlink,
15735 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15737 case $with_aix_soname,$aix_use_runtimelinking in
15738 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15739 # soname into executable. Probably we can add versioning support to
15740 # collect2, so additional links can be useful in future.
15741 aix,yes) # traditional libtool
15742 dynamic_linker='AIX unversionable lib.so'
15743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15744 # instead of lib<name>.a to let people know that these are not
15745 # typical AIX shared libraries.
15746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15748 aix,no) # traditional AIX only
15749 dynamic_linker='AIX lib.a(lib.so.V)'
15750 # We preserve .a as extension for shared libraries through AIX4.2
15751 # and later when we are not doing run time linking.
15752 library_names_spec='$libname$release.a $libname.a'
15753 soname_spec='$libname$release$shared_ext$major'
15755 svr4,*) # full svr4 only
15756 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15757 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15758 # We do not specify a path in Import Files, so LIBPATH fires.
15759 shlibpath_overrides_runpath=yes
15761 *,yes) # both, prefer svr4
15762 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15763 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15764 # unpreferred sharedlib libNAME.a needs extra handling
15765 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"'
15766 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"'
15767 # We do not specify a path in Import Files, so LIBPATH fires.
15768 shlibpath_overrides_runpath=yes
15770 *,no) # both, prefer aix
15771 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15772 library_names_spec='$libname$release.a $libname.a'
15773 soname_spec='$libname$release$shared_ext$major'
15774 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15775 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)'
15776 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"'
15779 shlibpath_var=LIBPATH
15786 # Since July 2007 AmigaOS4 officially supports .so libraries.
15787 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15791 library_names_spec='$libname.ixlibrary $libname.a'
15792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15793 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'
15799 library_names_spec='$libname$shared_ext'
15800 dynamic_linker="$host_os ld.so"
15801 shlibpath_var=LIBRARY_PATH
15805 version_type=linux # correct to gnu/linux during the next big refactor
15807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15808 soname_spec='$libname$release$shared_ext$major'
15809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15813 # the default ld.so.conf also contains /usr/contrib/lib and
15814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15815 # libtool to hard-code these into programs
15818 cygwin* | mingw* | pw32* | cegcc*)
15819 version_type=windows
15824 case $GCC,$cc_basename in
15827 library_names_spec='$libname.dll.a'
15828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15829 postinstall_cmds='base_file=`basename \$file`~
15830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15831 dldir=$destdir/`dirname \$dlpath`~
15832 test -d \$dldir || mkdir -p \$dldir~
15833 $install_prog $dir/$dlname \$dldir/$dlname~
15834 chmod a+x \$dldir/$dlname~
15835 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15836 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15839 dlpath=$dir/\$dldll~
15841 shlibpath_overrides_runpath=yes
15845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15846 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15850 # MinGW DLLs use traditional 'lib' prefix
15851 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15854 # pw32 DLLs use 'pw' prefix rather than 'lib'
15855 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15858 dynamic_linker='Win32 ld.exe'
15863 libname_spec='$name'
15864 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15865 library_names_spec='$libname.dll.lib'
15869 sys_lib_search_path_spec=
15872 for lt_path in $LIB
15875 # Let DOS variable expansion print the short 8.3 style file name.
15876 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15877 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15880 # Convert to MSYS style.
15881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15884 # Convert to unix form, then to dos form, then back to unix form
15885 # but this time dos style (no spaces!) so that the unix form looks
15886 # like /cygdrive/c/PROGRA~1:/cygdr...
15887 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15888 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15889 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15892 sys_lib_search_path_spec=$LIB
15893 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15894 # It is most probably a Windows format PATH.
15895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15899 # FIXME: find the short name or the path components, as spaces are
15900 # common. (e.g. "Program Files" -> "PROGRA~1")
15904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15905 postinstall_cmds='base_file=`basename \$file`~
15906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15907 dldir=$destdir/`dirname \$dlpath`~
15908 test -d \$dldir || mkdir -p \$dldir~
15909 $install_prog $dir/$dlname \$dldir/$dlname'
15910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15911 dlpath=$dir/\$dldll~
15913 shlibpath_overrides_runpath=yes
15914 dynamic_linker='Win32 link.exe'
15918 # Assume MSVC wrapper
15919 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15920 dynamic_linker='Win32 ld.exe'
15923 # FIXME: first we should search . and the directory the executable is in
15927 darwin* | rhapsody*)
15928 dynamic_linker="$host_os dyld"
15929 version_type=darwin
15932 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15933 soname_spec='$libname$release$major$shared_ext'
15934 shlibpath_overrides_runpath=yes
15935 shlibpath_var=DYLD_LIBRARY_PATH
15936 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15938 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15942 version_type=linux # correct to gnu/linux during the next big refactor
15945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15946 soname_spec='$libname$release$shared_ext$major'
15947 shlibpath_var=LD_LIBRARY_PATH
15950 freebsd* | dragonfly*)
15951 # DragonFly does not have aout. When/if they implement a new
15952 # versioning mechanism, adjust this.
15953 if test -x /usr/bin/objformat; then
15954 objformat=`/usr/bin/objformat`
15957 freebsd[23].*) objformat=aout ;;
15958 *) objformat=elf ;;
15961 version_type=freebsd-$objformat
15962 case $version_type in
15964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15965 soname_spec='$libname$release$shared_ext$major'
15970 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15974 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=yes
15979 freebsd3.[01]* | freebsdelf3.[01]*)
15980 shlibpath_overrides_runpath=yes
15981 hardcode_into_libs=yes
15983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15985 shlibpath_overrides_runpath=no
15986 hardcode_into_libs=yes
15988 *) # from 4.6 on, and DragonFly
15989 shlibpath_overrides_runpath=yes
15990 hardcode_into_libs=yes
15996 version_type=linux # correct to gnu/linux during the next big refactor
15999 dynamic_linker="$host_os runtime_loader"
16000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16001 soname_spec='$libname$release$shared_ext$major'
16002 shlibpath_var=LIBRARY_PATH
16003 shlibpath_overrides_runpath=no
16004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16005 hardcode_into_libs=yes
16008 hpux9* | hpux10* | hpux11*)
16009 # Give a soname corresponding to the major version so that dld.sl refuses to
16010 # link against other versions.
16017 hardcode_into_libs=yes
16018 dynamic_linker="$host_os dld.so"
16019 shlibpath_var=LD_LIBRARY_PATH
16020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16022 soname_spec='$libname$release$shared_ext$major'
16023 if test 32 = "$HPUX_IA64_MODE"; then
16024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16025 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16027 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16028 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16033 hardcode_into_libs=yes
16034 dynamic_linker="$host_os dld.sl"
16035 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16038 soname_spec='$libname$release$shared_ext$major'
16039 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16044 dynamic_linker="$host_os dld.sl"
16045 shlibpath_var=SHLIB_PATH
16046 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16048 soname_spec='$libname$release$shared_ext$major'
16051 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16052 postinstall_cmds='chmod 555 $lib'
16053 # or fails outright, so override atomically:
16054 install_override_mode=555
16058 version_type=linux # correct to gnu/linux during the next big refactor
16061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16062 soname_spec='$libname$release$shared_ext$major'
16063 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 shlibpath_overrides_runpath=no
16066 hardcode_into_libs=yes
16069 irix5* | irix6* | nonstopux*)
16071 nonstopux*) version_type=nonstopux ;;
16073 if test yes = "$lt_cv_prog_gnu_ld"; then
16074 version_type=linux # correct to gnu/linux during the next big refactor
16081 soname_spec='$libname$release$shared_ext$major'
16082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16084 irix5* | nonstopux*)
16085 libsuff= shlibsuff=
16088 case $LD in # libtool.m4 will add one of these switches to LD
16089 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090 libsuff= shlibsuff= libmagic=32-bit;;
16091 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092 libsuff=32 shlibsuff=N32 libmagic=N32;;
16093 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095 *) libsuff= shlibsuff= libmagic=never-match;;
16099 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100 shlibpath_overrides_runpath=no
16101 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16102 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16103 hardcode_into_libs=yes
16106 # No shared lib support for Linux oldld, aout, or coff.
16107 linux*oldld* | linux*aout* | linux*coff*)
16112 version_type=none # Android doesn't support versioned libraries.
16115 library_names_spec='$libname$release$shared_ext'
16116 soname_spec='$libname$release$shared_ext'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=yes
16121 # This implies no fast_install, which is unacceptable.
16122 # Some rework will be needed to allow for fast_install
16123 # before this can be enabled.
16124 hardcode_into_libs=yes
16126 dynamic_linker='Android linker'
16127 # Don't embed -rpath directories since the linker doesn't support them.
16128 hardcode_libdir_flag_spec_CXX='-L$libdir'
16131 # This must be glibc/ELF.
16132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16133 version_type=linux # correct to gnu/linux during the next big refactor
16136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16137 soname_spec='$libname$release$shared_ext$major'
16138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=no
16142 # Some binutils ld are patched to set DT_RUNPATH
16143 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16144 $as_echo_n "(cached) " >&6
16146 lt_cv_shlibpath_overrides_runpath=no
16147 save_LDFLAGS=$LDFLAGS
16148 save_libdir=$libdir
16149 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16150 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16162 if ac_fn_cxx_try_link "$LINENO"; then :
16163 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16164 lt_cv_shlibpath_overrides_runpath=yes
16167 rm -f core conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16169 LDFLAGS=$save_LDFLAGS
16170 libdir=$save_libdir
16174 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16176 # This implies no fast_install, which is unacceptable.
16177 # Some rework will be needed to allow for fast_install
16178 # before this can be enabled.
16179 hardcode_into_libs=yes
16181 # Ideally, we could use ldconfig to report *all* directores which are
16182 # searched for libraries, however this is still not possible. Aside from not
16183 # being certain /sbin/ldconfig is available, command
16184 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16185 # even though it is searched at run-time. Try to do the best guess by
16186 # appending ld.so.conf contents (and includes) to the search path.
16187 if test -f /etc/ld.so.conf; then
16188 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' ' '`
16189 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16192 # We used to test for /lib/ld.so.1 and disable shared libraries on
16193 # powerpc, because MkLinux only supported shared libraries with the
16194 # GNU dynamic linker. Since this was broken with cross compilers,
16195 # most powerpc-linux boxes support dynamic linking these days and
16196 # people can always --disable-shared, the test was removed, and we
16197 # assume the GNU/Linux dynamic linker is in use.
16198 dynamic_linker='GNU/Linux ld.so'
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 shlibpath_overrides_runpath=no
16209 hardcode_into_libs=yes
16210 dynamic_linker='NetBSD ld.elf_so'
16217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16218 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16220 dynamic_linker='NetBSD (a.out) ld.so'
16222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16223 soname_spec='$libname$release$shared_ext$major'
16224 dynamic_linker='NetBSD ld.elf_so'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 hardcode_into_libs=yes
16232 version_type=linux # correct to gnu/linux during the next big refactor
16233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16234 shlibpath_var=LD_LIBRARY_PATH
16235 shlibpath_overrides_runpath=yes
16242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16243 soname_spec='$libname$release$shared_ext$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 shlibpath_overrides_runpath=no
16246 hardcode_into_libs=yes
16247 dynamic_linker='ldqnx.so'
16250 openbsd* | bitrig*)
16252 sys_lib_dlsearch_path_spec=/usr/lib
16254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16259 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes
16266 libname_spec='$name'
16267 version_type=windows
16271 # OS/2 can only load a DLL with a base name of 8 characters or less.
16272 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16273 v=$($ECHO $release$versuffix | tr -d .-);
16274 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16275 $ECHO $n$v`$shared_ext'
16276 library_names_spec='${libname}_dll.$libext'
16277 dynamic_linker='OS/2 ld.exe'
16278 shlibpath_var=BEGINLIBPATH
16279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16281 postinstall_cmds='base_file=`basename \$file`~
16282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16283 dldir=$destdir/`dirname \$dlpath`~
16284 test -d \$dldir || mkdir -p \$dldir~
16285 $install_prog $dir/$dlname \$dldir/$dlname~
16286 chmod a+x \$dldir/$dlname~
16287 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16288 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16291 dlpath=$dir/\$dldll~
16295 osf3* | osf4* | osf5*)
16299 soname_spec='$libname$release$shared_ext$major'
16300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16311 version_type=linux # correct to gnu/linux during the next big refactor
16314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16315 soname_spec='$libname$release$shared_ext$major'
16316 shlibpath_var=LD_LIBRARY_PATH
16317 shlibpath_overrides_runpath=yes
16318 hardcode_into_libs=yes
16319 # ldd complains unless libraries are executable
16320 postinstall_cmds='chmod +x $lib'
16325 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16327 shlibpath_var=LD_LIBRARY_PATH
16328 shlibpath_overrides_runpath=yes
16329 if test yes = "$with_gnu_ld"; then
16336 version_type=linux # correct to gnu/linux during the next big refactor
16337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16338 soname_spec='$libname$release$shared_ext$major'
16339 shlibpath_var=LD_LIBRARY_PATH
16340 case $host_vendor in
16342 shlibpath_overrides_runpath=no
16344 runpath_var=LD_RUN_PATH
16352 shlibpath_overrides_runpath=no
16353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16359 if test -d /usr/nec; then
16360 version_type=linux # correct to gnu/linux during the next big refactor
16361 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16362 soname_spec='$libname$shared_ext.$major'
16363 shlibpath_var=LD_LIBRARY_PATH
16367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16372 soname_spec='$libname$release$shared_ext$major'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 shlibpath_overrides_runpath=yes
16375 hardcode_into_libs=yes
16376 if test yes = "$with_gnu_ld"; then
16377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16386 sys_lib_dlsearch_path_spec='/usr/lib'
16390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16391 version_type=linux # correct to gnu/linux during the next big refactor
16394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16395 shlibpath_var=LD_LIBRARY_PATH
16396 shlibpath_overrides_runpath=no
16397 hardcode_into_libs=yes
16401 version_type=linux # correct to gnu/linux during the next big refactor
16402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16403 soname_spec='$libname$release$shared_ext$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16412 $as_echo "$dynamic_linker" >&6; }
16413 test no = "$dynamic_linker" && can_build_shared=no
16415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16416 if test yes = "$GCC"; then
16417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16420 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16421 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16424 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16425 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16428 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16429 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16431 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16432 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16434 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16435 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16477 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16478 hardcode_action_CXX=
16479 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16480 test -n "$runpath_var_CXX" ||
16481 test yes = "$hardcode_automatic_CXX"; then
16483 # We can hardcode non-existent directories.
16484 if test no != "$hardcode_direct_CXX" &&
16485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16486 # have to relink, otherwise we might link with an installed library
16487 # when we should be linking with a yet-to-be-installed one
16488 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16489 test no != "$hardcode_minus_L_CXX"; then
16490 # Linking always hardcodes the temporary library directory.
16491 hardcode_action_CXX=relink
16493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16494 hardcode_action_CXX=immediate
16497 # We cannot hardcode anything, or else we can only hardcode existing
16499 hardcode_action_CXX=unsupported
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16502 $as_echo "$hardcode_action_CXX" >&6; }
16504 if test relink = "$hardcode_action_CXX" ||
16505 test yes = "$inherit_rpath_CXX"; then
16506 # Fast installation is not supported
16507 enable_fast_install=no
16508 elif test yes = "$shlibpath_overrides_runpath" ||
16509 test no = "$enable_shared"; then
16510 # Fast installation is not necessary
16511 enable_fast_install=needless
16520 fi # test -n "$compiler"
16523 CFLAGS=$lt_save_CFLAGS
16527 with_gnu_ld=$lt_save_with_gnu_ld
16528 lt_cv_path_LDCXX=$lt_cv_path_LD
16529 lt_cv_path_LD=$lt_save_path_LD
16530 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16531 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16532 fi # test yes != "$_lt_caught_CXX_error"
16535 ac_cpp='$CPP $CPPFLAGS'
16536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16554 ac_config_commands="$ac_config_commands libtool"
16559 # Only expand once:
16563 @%:@ Check whether --enable-silent-rules was given.
16564 if test "${enable_silent_rules+set}" = set; then :
16565 enableval=$enable_silent_rules;
16568 case $enable_silent_rules in @%:@ (((
16569 yes) AM_DEFAULT_VERBOSITY=0;;
16570 no) AM_DEFAULT_VERBOSITY=1;;
16571 *) AM_DEFAULT_VERBOSITY=0;;
16573 am_make=${MAKE-make}
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16575 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16576 if ${am_cv_make_support_nested_variables+:} false; then :
16577 $as_echo_n "(cached) " >&6
16579 if $as_echo 'TRUE=$(BAR$(V))
16585 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16586 am_cv_make_support_nested_variables=yes
16588 am_cv_make_support_nested_variables=no
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16592 $as_echo "$am_cv_make_support_nested_variables" >&6; }
16593 if test $am_cv_make_support_nested_variables = yes; then
16595 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16597 AM_V=$AM_DEFAULT_VERBOSITY
16598 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16607 CC="$CC -mno-cygwin"
16612 @%:@ Check whether --enable-ASN_DEBUG was given.
16613 if test "${enable_ASN_DEBUG+set}" = set; then :
16614 enableval=$enable_ASN_DEBUG; enable_asn_debug=$enableval
16616 enable_asn_debug=no
16619 if test x$enable_asn_debug != xno; then :
16621 TESTSUITE_CFLAGS="-DASN_EMIT_DEBUG"
16622 SKELETONS_CFLAGS="-DASN_EMIT_DEBUG"
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
16627 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
16628 if ${ax_cv_check_cflags___Wall+:} false; then :
16629 $as_echo_n "(cached) " >&6
16632 ax_check_save_flags=$CFLAGS
16633 CFLAGS="$CFLAGS -Wall"
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16645 if ac_fn_c_try_compile "$LINENO"; then :
16646 ax_cv_check_cflags___Wall=yes
16648 ax_cv_check_cflags___Wall=no
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651 CFLAGS=$ax_check_save_flags
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
16654 $as_echo "$ax_cv_check_cflags___Wall" >&6; }
16655 if test x"$ax_cv_check_cflags___Wall" = xyes; then :
16656 CFLAGS="$CFLAGS -Wall"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5
16662 $as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; }
16663 if ${ax_cv_check_cflags___Wcast_qual+:} false; then :
16664 $as_echo_n "(cached) " >&6
16667 ax_check_save_flags=$CFLAGS
16668 CFLAGS="$CFLAGS -Wcast-qual"
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16680 if ac_fn_c_try_compile "$LINENO"; then :
16681 ax_cv_check_cflags___Wcast_qual=yes
16683 ax_cv_check_cflags___Wcast_qual=no
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686 CFLAGS=$ax_check_save_flags
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_qual" >&5
16689 $as_echo "$ax_cv_check_cflags___Wcast_qual" >&6; }
16690 if test x"$ax_cv_check_cflags___Wcast_qual" = xyes; then :
16691 CFLAGS="$CFLAGS -Wcast-qual"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
16697 $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
16698 if ${ax_cv_check_cflags___Wchar_subscripts+:} false; then :
16699 $as_echo_n "(cached) " >&6
16702 ax_check_save_flags=$CFLAGS
16703 CFLAGS="$CFLAGS -Wchar-subscripts"
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16715 if ac_fn_c_try_compile "$LINENO"; then :
16716 ax_cv_check_cflags___Wchar_subscripts=yes
16718 ax_cv_check_cflags___Wchar_subscripts=no
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721 CFLAGS=$ax_check_save_flags
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wchar_subscripts" >&5
16724 $as_echo "$ax_cv_check_cflags___Wchar_subscripts" >&6; }
16725 if test x"$ax_cv_check_cflags___Wchar_subscripts" = xyes; then :
16726 CFLAGS="$CFLAGS -Wchar-subscripts"
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
16732 $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
16733 if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
16734 $as_echo_n "(cached) " >&6
16737 ax_check_save_flags=$CFLAGS
16738 CFLAGS="$CFLAGS -Wmissing-prototypes"
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16750 if ac_fn_c_try_compile "$LINENO"; then :
16751 ax_cv_check_cflags___Wmissing_prototypes=yes
16753 ax_cv_check_cflags___Wmissing_prototypes=no
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 CFLAGS=$ax_check_save_flags
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
16759 $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
16760 if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
16761 CFLAGS="$CFLAGS -Wmissing-prototypes"
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
16767 $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
16768 if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
16769 $as_echo_n "(cached) " >&6
16772 ax_check_save_flags=$CFLAGS
16773 CFLAGS="$CFLAGS -Wmissing-declarations"
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16785 if ac_fn_c_try_compile "$LINENO"; then :
16786 ax_cv_check_cflags___Wmissing_declarations=yes
16788 ax_cv_check_cflags___Wmissing_declarations=no
16790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791 CFLAGS=$ax_check_save_flags
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
16794 $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
16795 if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
16796 CFLAGS="$CFLAGS -Wmissing-declarations"
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=attributes" >&5
16803 $as_echo_n "checking whether C compiler accepts -Wno-error=attributes... " >&6; }
16804 if ${ax_cv_check_cflags___Wno_error_attributes+:} false; then :
16805 $as_echo_n "(cached) " >&6
16808 ax_check_save_flags=$CFLAGS
16809 CFLAGS="$CFLAGS -Wno-error=attributes"
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16821 if ac_fn_c_try_compile "$LINENO"; then :
16822 ax_cv_check_cflags___Wno_error_attributes=yes
16824 ax_cv_check_cflags___Wno_error_attributes=no
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16827 CFLAGS=$ax_check_save_flags
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_attributes" >&5
16830 $as_echo "$ax_cv_check_cflags___Wno_error_attributes" >&6; }
16831 if test x"$ax_cv_check_cflags___Wno_error_attributes" = xyes; then :
16832 CFLAGS="$CFLAGS -Wno-error=attributes"
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=cast-align" >&5
16838 $as_echo_n "checking whether C compiler accepts -Wno-error=cast-align... " >&6; }
16839 if ${ax_cv_check_cflags___Wno_error_cast_align+:} false; then :
16840 $as_echo_n "(cached) " >&6
16843 ax_check_save_flags=$CFLAGS
16844 CFLAGS="$CFLAGS -Wno-error=cast-align"
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857 ax_cv_check_cflags___Wno_error_cast_align=yes
16859 ax_cv_check_cflags___Wno_error_cast_align=no
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 CFLAGS=$ax_check_save_flags
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_cast_align" >&5
16865 $as_echo "$ax_cv_check_cflags___Wno_error_cast_align" >&6; }
16866 if test x"$ax_cv_check_cflags___Wno_error_cast_align" = xyes; then :
16867 CFLAGS="$CFLAGS -Wno-error=cast-align"
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=visibility" >&5
16873 $as_echo_n "checking whether C compiler accepts -Wno-error=visibility... " >&6; }
16874 if ${ax_cv_check_cflags___Wno_error_visibility+:} false; then :
16875 $as_echo_n "(cached) " >&6
16878 ax_check_save_flags=$CFLAGS
16879 CFLAGS="$CFLAGS -Wno-error=visibility"
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16891 if ac_fn_c_try_compile "$LINENO"; then :
16892 ax_cv_check_cflags___Wno_error_visibility=yes
16894 ax_cv_check_cflags___Wno_error_visibility=no
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 CFLAGS=$ax_check_save_flags
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_visibility" >&5
16900 $as_echo "$ax_cv_check_cflags___Wno_error_visibility" >&6; }
16901 if test x"$ax_cv_check_cflags___Wno_error_visibility" = xyes; then :
16902 CFLAGS="$CFLAGS -Wno-error=visibility"
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=parentheses-equality" >&5
16908 $as_echo_n "checking whether C compiler accepts -Wno-error=parentheses-equality... " >&6; }
16909 if ${ax_cv_check_cflags___Wno_error_parentheses_equality+:} false; then :
16910 $as_echo_n "(cached) " >&6
16913 ax_check_save_flags=$CFLAGS
16914 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16926 if ac_fn_c_try_compile "$LINENO"; then :
16927 ax_cv_check_cflags___Wno_error_parentheses_equality=yes
16929 ax_cv_check_cflags___Wno_error_parentheses_equality=no
16931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16932 CFLAGS=$ax_check_save_flags
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_parentheses_equality" >&5
16935 $as_echo "$ax_cv_check_cflags___Wno_error_parentheses_equality" >&6; }
16936 if test x"$ax_cv_check_cflags___Wno_error_parentheses_equality" = xyes; then :
16937 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5
16943 $as_echo_n "checking whether C compiler accepts -std=gnu99... " >&6; }
16944 if ${ax_cv_check_cflags___std_gnu99+:} false; then :
16945 $as_echo_n "(cached) " >&6
16948 ax_check_save_flags=$CFLAGS
16949 CFLAGS="$CFLAGS -std=gnu99"
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16961 if ac_fn_c_try_compile "$LINENO"; then :
16962 ax_cv_check_cflags___std_gnu99=yes
16964 ax_cv_check_cflags___std_gnu99=no
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 CFLAGS=$ax_check_save_flags
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5
16970 $as_echo "$ax_cv_check_cflags___std_gnu99" >&6; }
16971 if test x"$ax_cv_check_cflags___std_gnu99" = xyes; then :
16972 CFLAGS="$CFLAGS -std=gnu99"
16973 TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} -std=gnu99"
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=unused-variable" >&5
16979 $as_echo_n "checking whether C compiler accepts -Wno-error=unused-variable... " >&6; }
16980 if ${ax_cv_check_cflags___Wno_error_unused_variable+:} false; then :
16981 $as_echo_n "(cached) " >&6
16984 ax_check_save_flags=$CFLAGS
16985 CFLAGS="$CFLAGS -Wno-error=unused-variable"
16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16997 if ac_fn_c_try_compile "$LINENO"; then :
16998 ax_cv_check_cflags___Wno_error_unused_variable=yes
17000 ax_cv_check_cflags___Wno_error_unused_variable=no
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003 CFLAGS=$ax_check_save_flags
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_unused_variable" >&5
17006 $as_echo "$ax_cv_check_cflags___Wno_error_unused_variable" >&6; }
17007 if test x"$ax_cv_check_cflags___Wno_error_unused_variable" = xyes; then :
17008 TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} -Wno-error=unused-variable"
17018 # allow to override gcov location
17020 @%:@ Check whether --with-gcov was given.
17021 if test "${with_gcov+set}" = set; then :
17022 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
17024 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
17029 $as_echo_n "checking whether to build with code coverage support... " >&6; }
17030 @%:@ Check whether --enable-code-coverage was given.
17031 if test "${enable_code_coverage+set}" = set; then :
17032 enableval=$enable_code_coverage;
17034 enable_code_coverage=no
17038 if test x$enable_code_coverage = xyes; then
17039 CODE_COVERAGE_ENABLED_TRUE=
17040 CODE_COVERAGE_ENABLED_FALSE='#'
17042 CODE_COVERAGE_ENABLED_TRUE='#'
17043 CODE_COVERAGE_ENABLED_FALSE=
17046 CODE_COVERAGE_ENABLED=$enable_code_coverage
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
17049 $as_echo "$enable_code_coverage" >&6; }
17051 if test "$enable_code_coverage" = "yes" ; then :
17054 if test -n "$ac_tool_prefix"; then
17055 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17056 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17058 $as_echo_n "checking for $ac_word... " >&6; }
17059 if ${ac_cv_prog_GCOV+:} false; then :
17060 $as_echo_n "(cached) " >&6
17062 if test -n "$GCOV"; then
17063 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
17065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 for as_dir in $PATH
17069 test -z "$as_dir" && as_dir=.
17070 for ac_exec_ext in '' $ac_executable_extensions; do
17071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17072 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17082 GCOV=$ac_cv_prog_GCOV
17083 if test -n "$GCOV"; then
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
17085 $as_echo "$GCOV" >&6; }
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088 $as_echo "no" >&6; }
17093 if test -z "$ac_cv_prog_GCOV"; then
17095 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17096 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098 $as_echo_n "checking for $ac_word... " >&6; }
17099 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
17100 $as_echo_n "(cached) " >&6
17102 if test -n "$ac_ct_GCOV"; then
17103 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17109 test -z "$as_dir" && as_dir=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
17111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17122 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
17123 if test -n "$ac_ct_GCOV"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
17125 $as_echo "$ac_ct_GCOV" >&6; }
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17131 if test "x$ac_ct_GCOV" = x; then
17134 case $cross_compiling:$ac_tool_warned in
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17138 ac_tool_warned=yes ;;
17143 GCOV="$ac_cv_prog_GCOV"
17146 if test "X$GCOV" = "X:"; then :
17147 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
17151 if test "$GCC" = "no" ; then :
17153 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
17157 # Extract the first word of "lcov", so it can be a program name with args.
17158 set dummy lcov; ac_word=$2
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17160 $as_echo_n "checking for $ac_word... " >&6; }
17161 if ${ac_cv_prog_LCOV+:} false; then :
17162 $as_echo_n "(cached) " >&6
17164 if test -n "$LCOV"; then
17165 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
17167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17168 for as_dir in $PATH
17171 test -z "$as_dir" && as_dir=.
17172 for ac_exec_ext in '' $ac_executable_extensions; do
17173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17174 ac_cv_prog_LCOV="lcov"
17175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17184 LCOV=$ac_cv_prog_LCOV
17185 if test -n "$LCOV"; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
17187 $as_echo "$LCOV" >&6; }
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17194 # Extract the first word of "genhtml", so it can be a program name with args.
17195 set dummy genhtml; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_prog_GENHTML+:} false; then :
17199 $as_echo_n "(cached) " >&6
17201 if test -n "$GENHTML"; then
17202 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in $PATH
17208 test -z "$as_dir" && as_dir=.
17209 for ac_exec_ext in '' $ac_executable_extensions; do
17210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17211 ac_cv_prog_GENHTML="genhtml"
17212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17221 GENHTML=$ac_cv_prog_GENHTML
17222 if test -n "$GENHTML"; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
17224 $as_echo "$GENHTML" >&6; }
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17232 if test -z "$LCOV" ; then :
17234 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
17238 if test -z "$GENHTML" ; then :
17240 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
17244 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -coverage" >&5
17246 $as_echo_n "checking whether C compiler accepts -coverage... " >&6; }
17247 if ${ax_cv_check_cflags___coverage+:} false; then :
17248 $as_echo_n "(cached) " >&6
17251 ax_check_save_flags=$CFLAGS
17252 CFLAGS="$CFLAGS -coverage"
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17264 if ac_fn_c_try_compile "$LINENO"; then :
17265 ax_cv_check_cflags___coverage=yes
17267 ax_cv_check_cflags___coverage=no
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270 CFLAGS=$ax_check_save_flags
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___coverage" >&5
17273 $as_echo "$ax_cv_check_cflags___coverage" >&6; }
17274 if test x"$ax_cv_check_cflags___coverage" = xyes; then :
17276 CODE_COVERAGE_CFLAGS="-O0 -g -coverage"
17277 CODE_COVERAGE_CXXFLAGS="-O0 -g -coverage"
17278 CODE_COVERAGE_LDFLAGS="-coverage"
17279 CODE_COVERAGE_LIBS=""
17283 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17284 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17285 CODE_COVERAGE_LIBS="-lgcov"
17286 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
17297 CODE_COVERAGE_RULES_CHECK='
17298 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
17299 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
17301 CODE_COVERAGE_RULES_CAPTURE='
17302 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
17303 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
17304 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
17305 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
17306 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
17308 CODE_COVERAGE_RULES_CLEAN='
17309 clean: code-coverage-clean
17310 distclean: code-coverage-clean
17311 code-coverage-clean:
17312 -$(LCOV) --directory $(top_builddir) -z
17313 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
17314 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
17319 CODE_COVERAGE_RULES_CHECK='
17320 @echo "Need to reconfigure with --enable-code-coverage"
17322 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
17323 CODE_COVERAGE_RULES_CLEAN=''
17327 CODE_COVERAGE_RULES='
17331 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
17332 # Multiple directories may be specified, separated by whitespace.
17333 # (Default: $(top_builddir))
17334 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
17335 # by lcov for code coverage. (Default:
17336 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
17337 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
17338 # reports to be created. (Default:
17339 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
17340 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
17341 # set to 0 to disable it and leave empty to stay with the default.
17343 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
17344 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
17345 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
17346 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
17347 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
17348 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
17349 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
17350 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
17351 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
17352 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
17353 # lcov instance. (Default: empty)
17354 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
17355 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
17356 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
17357 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
17358 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
17359 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
17360 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
17362 # The generated report will be titled using the $(PACKAGE_NAME) and
17363 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
17364 # use the git-version-gen script, available online.
17366 # Optional variables
17367 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
17368 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
17369 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
17370 CODE_COVERAGE_BRANCH_COVERAGE ?=
17371 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
17372 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
17373 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
17374 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
17375 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
17376 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
17377 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
17378 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
17379 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
17380 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
17381 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
17382 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
17383 CODE_COVERAGE_IGNORE_PATTERN ?=
17385 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
17386 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
17387 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
17388 $(CODE_COVERAGE_OUTPUT_FILE);
17389 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
17390 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
17391 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
17392 $(CODE_COVERAGE_IGNORE_PATTERN);
17393 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
17394 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
17395 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
17396 code_coverage_quiet = $(code_coverage_quiet_$(V))
17397 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
17398 code_coverage_quiet_0 = --quiet
17400 # sanitizes the test-name: replaces with underscores: dashes and dots
17401 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
17403 # Use recursive makes in order to ignore errors during check
17404 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
17406 # Capture code coverage data
17407 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
17409 # Hook rule executed before code-coverage-capture, overridable by the user
17410 code-coverage-capture-hook:
17412 '"$CODE_COVERAGE_RULES_CLEAN"'
17415 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
17417 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
17418 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
17420 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
17426 if test x$enable_code_coverage != xno; then :
17428 CFLAGS="$CFLAGS $CODE_COVERAGE_CFLAGS"
17429 # The CODE_COVERAGE_CPPFLAGS contains -DNDEBUG flag
17430 # which removes assert(...) macros from code coverage and improves the
17431 # branches score. But when it is defined it results in few
17432 # unsed-but-set-variable warnings that are treated as errors in the travis-ci
17433 # build because these variables are only used inside assert macros.
17434 # error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
17435 #CPPFLAGS="$CPPFLAGS $CODE_COVERAGE_CPPFLAGS"
17436 CXXFLAGS="$CXXFLAGS $CODE_COVERAGE_CXXFLAGS"
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gcov_open" >&5
17438 $as_echo_n "checking for library containing gcov_open... " >&6; }
17439 if ${ac_cv_search_gcov_open+:} false; then :
17440 $as_echo_n "(cached) " >&6
17442 ac_func_search_save_LIBS=$LIBS
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17446 /* Override any GCC internal prototype to avoid an error.
17447 Use char because int might match the return type of a GCC
17448 builtin and then its argument prototype would still apply. */
17456 return gcov_open ();
17461 for ac_lib in '' gcov; do
17462 if test -z "$ac_lib"; then
17463 ac_res="none required"
17466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17468 if ac_fn_c_try_link "$LINENO"; then :
17469 ac_cv_search_gcov_open=$ac_res
17471 rm -f core conftest.err conftest.$ac_objext \
17473 if ${ac_cv_search_gcov_open+:} false; then :
17477 if ${ac_cv_search_gcov_open+:} false; then :
17480 ac_cv_search_gcov_open=no
17482 rm conftest.$ac_ext
17483 LIBS=$ac_func_search_save_LIBS
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gcov_open" >&5
17486 $as_echo "$ac_cv_search_gcov_open" >&6; }
17487 ac_res=$ac_cv_search_gcov_open
17488 if test "$ac_res" != no; then :
17489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17490 LDFLAGS="$LDFLAGS $CODE_COVERAGE_LDFLAGS"
17496 SKELETONS_CFLAGS="${ADD_CFLAGS} ${SKELETONS_CFLAGS}"
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c89" >&5
17498 $as_echo_n "checking whether C compiler accepts -std=c89... " >&6; }
17499 if ${ax_cv_check_cflags___std_c89+:} false; then :
17500 $as_echo_n "(cached) " >&6
17503 ax_check_save_flags=$CFLAGS
17504 CFLAGS="$CFLAGS -std=c89"
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17516 if ac_fn_c_try_compile "$LINENO"; then :
17517 ax_cv_check_cflags___std_c89=yes
17519 ax_cv_check_cflags___std_c89=no
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522 CFLAGS=$ax_check_save_flags
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c89" >&5
17525 $as_echo "$ax_cv_check_cflags___std_c89" >&6; }
17526 if test x"$ax_cv_check_cflags___std_c89" = xyes; then :
17527 SKELETONS_CFLAGS="$SKELETONS_CFLAGS -std=c89"
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpedantic" >&5
17533 $as_echo_n "checking whether C compiler accepts -Wpedantic... " >&6; }
17534 if ${ax_cv_check_cflags__Werror__Wpedantic+:} false; then :
17535 $as_echo_n "(cached) " >&6
17538 ax_check_save_flags=$CFLAGS
17539 CFLAGS="$CFLAGS -Werror -Wpedantic"
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17551 if ac_fn_c_try_compile "$LINENO"; then :
17552 ax_cv_check_cflags__Werror__Wpedantic=yes
17554 ax_cv_check_cflags__Werror__Wpedantic=no
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557 CFLAGS=$ax_check_save_flags
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wpedantic" >&5
17560 $as_echo "$ax_cv_check_cflags__Werror__Wpedantic" >&6; }
17561 if test x"$ax_cv_check_cflags__Werror__Wpedantic" = xyes; then :
17562 SKELETONS_CFLAGS="$SKELETONS_CFLAGS -Wpedantic"
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -pedantic" >&5
17566 $as_echo_n "checking whether C compiler accepts -pedantic... " >&6; }
17567 if ${ax_cv_check_cflags__Werror__pedantic+:} false; then :
17568 $as_echo_n "(cached) " >&6
17571 ax_check_save_flags=$CFLAGS
17572 CFLAGS="$CFLAGS -Werror -pedantic"
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17584 if ac_fn_c_try_compile "$LINENO"; then :
17585 ax_cv_check_cflags__Werror__pedantic=yes
17587 ax_cv_check_cflags__Werror__pedantic=no
17589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17590 CFLAGS=$ax_check_save_flags
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__pedantic" >&5
17593 $as_echo "$ax_cv_check_cflags__Werror__pedantic" >&6; }
17594 if test x"$ax_cv_check_cflags__Werror__pedantic" = xyes; then :
17595 SKELETONS_CFLAGS="$SKELETONS_CFLAGS -pedantic"
17602 #clang 3.0 prints warning when the flag is not supported
17604 @%:@ Check whether --enable-Werror was given.
17605 if test "${enable_Werror+set}" = set; then :
17606 enableval=$enable_Werror; enable_werror=$enableval
17611 if test x$enable_werror != xno; then :
17613 ADD_CFLAGS="${ADD_CFLAGS} -Werror -W -Wall -Wpointer-arith"
17614 SKELETONS_CFLAGS="${SKELETONS_CFLAGS} -Werror -W -Wall -Wpointer-arith"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wgnu" >&5
17616 $as_echo_n "checking whether C compiler accepts -Wgnu... " >&6; }
17617 if ${ax_cv_check_cflags___Wgnu+:} false; then :
17618 $as_echo_n "(cached) " >&6
17621 ax_check_save_flags=$CFLAGS
17622 CFLAGS="$CFLAGS -Wgnu"
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17634 if ac_fn_c_try_compile "$LINENO"; then :
17635 ax_cv_check_cflags___Wgnu=yes
17637 ax_cv_check_cflags___Wgnu=no
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640 CFLAGS=$ax_check_save_flags
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wgnu" >&5
17643 $as_echo "$ax_cv_check_cflags___Wgnu" >&6; }
17644 if test x"$ax_cv_check_cflags___Wgnu" = xyes; then :
17645 SKELETONS_CFLAGS="${SKELETONS_CFLAGS} -Wgnu"
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-long-long" >&5
17654 $as_echo_n "checking whether C compiler accepts -Wno-long-long... " >&6; }
17655 if ${ax_cv_check_cflags___Wno_long_long+:} false; then :
17656 $as_echo_n "(cached) " >&6
17659 ax_check_save_flags=$CFLAGS
17660 CFLAGS="$CFLAGS -Wno-long-long"
17661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h. */
17672 if ac_fn_c_try_compile "$LINENO"; then :
17673 ax_cv_check_cflags___Wno_long_long=yes
17675 ax_cv_check_cflags___Wno_long_long=no
17677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678 CFLAGS=$ax_check_save_flags
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_long_long" >&5
17681 $as_echo "$ax_cv_check_cflags___Wno_long_long" >&6; }
17682 if test x"$ax_cv_check_cflags___Wno_long_long" = xyes; then :
17683 SKELETONS_CFLAGS="${SKELETONS_CFLAGS} -Wno-long-long"
17689 @%:@ Check whether --enable-test-Werror was given.
17690 if test "${enable_test_Werror+set}" = set; then :
17691 enableval=$enable_test_Werror; enable_test_werror=$enableval
17693 enable_test_werror=no
17696 if test x$enable_test_werror != xno; then :
17698 TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} -Werror -W -Wpointer-arith"
17702 @%:@ Check whether --enable-test-32bit was given.
17703 if test "${enable_test_32bit+set}" = set; then :
17704 enableval=$enable_test_32bit; enable_test_32bit=$enableval
17706 enable_test_32bit=no
17709 if test "x$enable_test_32bit" != xno; then :
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -m32" >&5
17712 $as_echo_n "checking whether C compiler accepts -m32... " >&6; }
17713 if ${ax_cv_check_cflags___m32+:} false; then :
17714 $as_echo_n "(cached) " >&6
17717 ax_check_save_flags=$CFLAGS
17718 CFLAGS="$CFLAGS -m32"
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17730 if ac_fn_c_try_compile "$LINENO"; then :
17731 ax_cv_check_cflags___m32=yes
17733 ax_cv_check_cflags___m32=no
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736 CFLAGS=$ax_check_save_flags
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___m32" >&5
17739 $as_echo "$ax_cv_check_cflags___m32" >&6; }
17740 if test x"$ax_cv_check_cflags___m32" = xyes; then :
17741 CFLAGS_M32="-m32 -DEXPLICIT_32BIT"
17745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17747 as_fn_error $? "--enable-test-32bit=$enable_test_32bit is requested but not supported by the C compiler
17748 See \`config.log' for more details" "$LINENO" 5; }
17755 if test "x${CFLAGS_M32}" != "x"; then
17757 EXPLICIT_M32_FALSE='#'
17759 EXPLICIT_M32_TRUE='#'
17760 EXPLICIT_M32_FALSE=
17764 SANITIZER_CFLAGS=""
17766 @%:@ Check whether --enable-test-ubsan was given.
17767 if test "${enable_test_ubsan+set}" = set; then :
17768 enableval=$enable_test_ubsan; disable_test_ubsan=$enableval
17770 disable_test_ubsan=maybe
17773 if test "x$disable_test_ubsan" != xno; then :
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=undefined" >&5
17776 $as_echo_n "checking whether C compiler and linker accept -fsanitize=undefined... " >&6; }
17777 if ${ax_cv_check_cclflags___fsanitize_undefined+:} false; then :
17778 $as_echo_n "(cached) " >&6
17781 ax_check_save_flags=$CFLAGS
17782 CFLAGS="$CFLAGS -fsanitize=undefined"
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h. */
17785 void test(int *);void test(int *n) { *n = 0; }
17795 if ac_fn_c_try_link "$LINENO"; then :
17796 ax_cv_check_cclflags___fsanitize_undefined=yes
17798 ax_cv_check_cclflags___fsanitize_undefined=no
17800 rm -f core conftest.err conftest.$ac_objext \
17801 conftest$ac_exeext conftest.$ac_ext
17802 CFLAGS=$ax_check_save_flags
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_undefined" >&5
17805 $as_echo "$ax_cv_check_cclflags___fsanitize_undefined" >&6; }
17806 if test x"$ax_cv_check_cclflags___fsanitize_undefined" = xyes; then :
17807 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=undefined"
17810 if test "x$disable_test_ubsan" != xmaybe; then :
17812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17814 as_fn_error $? "--disable-test-ubsan=$disable_test_ubsan is not supported on a target system.
17815 https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#how-to-build
17816 See \`config.log' for more details" "$LINENO" 5; }
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize-recover=undefined" >&5
17822 $as_echo_n "checking whether C compiler accepts -fno-sanitize-recover=undefined... " >&6; }
17823 if ${ax_cv_check_cflags___fno_sanitize_recover_undefined+:} false; then :
17824 $as_echo_n "(cached) " >&6
17827 ax_check_save_flags=$CFLAGS
17828 CFLAGS="$CFLAGS -fno-sanitize-recover=undefined"
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17840 if ac_fn_c_try_compile "$LINENO"; then :
17841 ax_cv_check_cflags___fno_sanitize_recover_undefined=yes
17843 ax_cv_check_cflags___fno_sanitize_recover_undefined=no
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17846 CFLAGS=$ax_check_save_flags
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_recover_undefined" >&5
17849 $as_echo "$ax_cv_check_cflags___fno_sanitize_recover_undefined" >&6; }
17850 if test x"$ax_cv_check_cflags___fno_sanitize_recover_undefined" = xyes; then :
17851 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-sanitize-recover=undefined"
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=unsigned-integer-overflow" >&5
17858 $as_echo_n "checking whether C compiler and linker accept -fsanitize=unsigned-integer-overflow... " >&6; }
17859 if ${ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow+:} false; then :
17860 $as_echo_n "(cached) " >&6
17863 ax_check_save_flags=$CFLAGS
17864 CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow"
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 int test(unsigned); int test(unsigned n) { return n + 1; }
17876 if ac_fn_c_try_link "$LINENO"; then :
17877 ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow=yes
17879 ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow=no
17881 rm -f core conftest.err conftest.$ac_objext \
17882 conftest$ac_exeext conftest.$ac_ext
17883 CFLAGS=$ax_check_save_flags
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow" >&5
17886 $as_echo "$ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow" >&6; }
17887 if test x"$ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow" = xyes; then :
17888 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=unsigned-integer-overflow"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize-recover=unsigned-integer-overflow" >&5
17894 $as_echo_n "checking whether C compiler accepts -fno-sanitize-recover=unsigned-integer-overflow... " >&6; }
17895 if ${ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow+:} false; then :
17896 $as_echo_n "(cached) " >&6
17899 ax_check_save_flags=$CFLAGS
17900 CFLAGS="$CFLAGS -fno-sanitize-recover=unsigned-integer-overflow"
17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h. */
17912 if ac_fn_c_try_compile "$LINENO"; then :
17913 ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow=yes
17915 ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow=no
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 CFLAGS=$ax_check_save_flags
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow" >&5
17921 $as_echo "$ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow" >&6; }
17922 if test x"$ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow" = xyes; then :
17923 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-sanitize-recover=unsigned-integer-overflow"
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=nullability" >&5
17930 $as_echo_n "checking whether C compiler and linker accept -fsanitize=nullability... " >&6; }
17931 if ${ax_cv_check_cclflags___fsanitize_nullability+:} false; then :
17932 $as_echo_n "(cached) " >&6
17935 ax_check_save_flags=$CFLAGS
17936 CFLAGS="$CFLAGS -fsanitize=nullability"
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17948 if ac_fn_c_try_link "$LINENO"; then :
17949 ax_cv_check_cclflags___fsanitize_nullability=yes
17951 ax_cv_check_cclflags___fsanitize_nullability=no
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 CFLAGS=$ax_check_save_flags
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_nullability" >&5
17958 $as_echo "$ax_cv_check_cclflags___fsanitize_nullability" >&6; }
17959 if test x"$ax_cv_check_cclflags___fsanitize_nullability" = xyes; then :
17960 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=nullability"
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize-recover=nullability" >&5
17966 $as_echo_n "checking whether C compiler accepts -fno-sanitize-recover=nullability... " >&6; }
17967 if ${ax_cv_check_cflags___fno_sanitize_recover_nullability+:} false; then :
17968 $as_echo_n "(cached) " >&6
17971 ax_check_save_flags=$CFLAGS
17972 CFLAGS="$CFLAGS -fno-sanitize-recover=nullability"
17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17984 if ac_fn_c_try_compile "$LINENO"; then :
17985 ax_cv_check_cflags___fno_sanitize_recover_nullability=yes
17987 ax_cv_check_cflags___fno_sanitize_recover_nullability=no
17989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990 CFLAGS=$ax_check_save_flags
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_recover_nullability" >&5
17993 $as_echo "$ax_cv_check_cflags___fno_sanitize_recover_nullability" >&6; }
17994 if test x"$ax_cv_check_cflags___fno_sanitize_recover_nullability" = xyes; then :
17995 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-sanitize-recover=nullability"
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
18002 $as_echo_n "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
18003 if ${ax_cv_check_cflags___fno_omit_frame_pointer+:} false; then :
18004 $as_echo_n "(cached) " >&6
18007 ax_check_save_flags=$CFLAGS
18008 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18020 if ac_fn_c_try_compile "$LINENO"; then :
18021 ax_cv_check_cflags___fno_omit_frame_pointer=yes
18023 ax_cv_check_cflags___fno_omit_frame_pointer=no
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 CFLAGS=$ax_check_save_flags
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
18029 $as_echo "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
18030 if test x"$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes; then :
18031 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-omit-frame-pointer"
18040 @%:@ Check whether --enable-test-asan was given.
18041 if test "${enable_test_asan+set}" = set; then :
18042 enableval=$enable_test_asan; disable_test_asan=$enableval
18044 disable_test_asan=maybe
18047 if test "x$disable_test_asan" != xno; then :
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=address" >&5
18050 $as_echo_n "checking whether C compiler and linker accept -fsanitize=address... " >&6; }
18051 if ${ax_cv_check_cclflags___fsanitize_address+:} false; then :
18052 $as_echo_n "(cached) " >&6
18055 ax_check_save_flags=$CFLAGS
18056 CFLAGS="$CFLAGS -fsanitize=address"
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18068 if ac_fn_c_try_link "$LINENO"; then :
18069 ax_cv_check_cclflags___fsanitize_address=yes
18071 ax_cv_check_cclflags___fsanitize_address=no
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18075 CFLAGS=$ax_check_save_flags
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_address" >&5
18078 $as_echo "$ax_cv_check_cclflags___fsanitize_address" >&6; }
18079 if test x"$ax_cv_check_cclflags___fsanitize_address" = xyes; then :
18080 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=address"
18083 if test "x$disable_test_asan" != xmaybe; then :
18085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18087 as_fn_error $? "--disable-test-asan=$disable_test_asan is not supported on a target system.
18088 Check out https://clang.llvm.org/docs/AddressSanitizer.html#how-to-build
18089 See \`config.log' for more details" "$LINENO" 5; }
18095 ASAN_OPTIONS="detect_leaks=1"
18096 export ASAN_OPTIONS
18097 save_cflags="${CFLAGS}"
18098 CFLAGS="${CFLAGS} ${SANITIZER_CFLAGS}"
18099 if test "$cross_compiling" = yes; then :
18100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18102 as_fn_error $? "cannot run test program while cross compiling
18103 See \`config.log' for more details" "$LINENO" 5; }
18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h. */
18116 if ac_fn_c_try_run "$LINENO"; then :
18118 ASAN_ENV_FLAGS="${ASAN_ENV_FLAGS} ASAN_OPTIONS=detect_leaks=1"
18121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18122 conftest.$ac_objext conftest.beam conftest.$ac_ext
18125 CFLAGS="${save_cflags}"
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
18129 $as_echo_n "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
18130 if ${ax_cv_check_cflags___fno_omit_frame_pointer+:} false; then :
18131 $as_echo_n "(cached) " >&6
18134 ax_check_save_flags=$CFLAGS
18135 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18147 if ac_fn_c_try_compile "$LINENO"; then :
18148 ax_cv_check_cflags___fno_omit_frame_pointer=yes
18150 ax_cv_check_cflags___fno_omit_frame_pointer=no
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 CFLAGS=$ax_check_save_flags
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
18156 $as_echo "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
18157 if test x"$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes; then :
18158 SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-omit-frame-pointer"
18166 LIBFUZZER_CFLAGS=""
18167 @%:@ Check whether --enable-test-fuzzer was given.
18168 if test "${enable_test_fuzzer+set}" = set; then :
18169 enableval=$enable_test_fuzzer; enable_test_fuzzer=$enableval
18171 enable_test_fuzzer=no
18174 if test "x$enable_test_fuzzer" != xno; then :
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=fuzzer" >&5
18177 $as_echo_n "checking whether C compiler and linker accept -fsanitize=fuzzer... " >&6; }
18178 if ${ax_cv_check_cclflags___fsanitize_fuzzer+:} false; then :
18179 $as_echo_n "(cached) " >&6
18182 ax_check_save_flags=$CFLAGS
18183 CFLAGS="$CFLAGS -fsanitize=fuzzer"
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18187 #include <sys/types.h>
18188 int LLVMFuzzerTestOneInput(const unsigned char *Data, size_t Size);
18189 int LLVMFuzzerTestOneInput(const unsigned char *Data, size_t Size) {
18196 if ac_fn_c_try_link "$LINENO"; then :
18197 ax_cv_check_cclflags___fsanitize_fuzzer=yes
18199 ax_cv_check_cclflags___fsanitize_fuzzer=no
18201 rm -f core conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
18203 CFLAGS=$ax_check_save_flags
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_fuzzer" >&5
18206 $as_echo "$ax_cv_check_cclflags___fsanitize_fuzzer" >&6; }
18207 if test x"$ax_cv_check_cclflags___fsanitize_fuzzer" = xyes; then :
18208 LIBFUZZER_CFLAGS="-fsanitize=fuzzer -DENABLE_LIBFUZZER"
18210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18212 as_fn_error $? "--enable-test-fuzzer=$enable_test_fuzzer is not supported on a target system.
18213 Check out http://llvm.org/docs/LibFuzzer.html
18214 See \`config.log' for more details" "$LINENO" 5; }
18220 TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} ${SANITIZER_CFLAGS}"
18221 SKELETONS_CFLAGS="${SKELETONS_CFLAGS} ${SANITIZER_CFLAGS}"
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18231 $as_echo_n "checking for ANSI C header files... " >&6; }
18232 if ${ac_cv_header_stdc+:} false; then :
18233 $as_echo_n "(cached) " >&6
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18237 #include <stdlib.h>
18238 #include <stdarg.h>
18239 #include <string.h>
18250 if ac_fn_c_try_compile "$LINENO"; then :
18251 ac_cv_header_stdc=yes
18253 ac_cv_header_stdc=no
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257 if test $ac_cv_header_stdc = yes; then
18258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261 #include <string.h>
18264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18265 $EGREP "memchr" >/dev/null 2>&1; then :
18268 ac_cv_header_stdc=no
18274 if test $ac_cv_header_stdc = yes; then
18275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18277 /* end confdefs.h. */
18278 #include <stdlib.h>
18281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18282 $EGREP "free" >/dev/null 2>&1; then :
18285 ac_cv_header_stdc=no
18291 if test $ac_cv_header_stdc = yes; then
18292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18293 if test "$cross_compiling" = yes; then :
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18299 #include <stdlib.h>
18300 #if ((' ' & 0x0FF) == 0x020)
18301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18304 # define ISLOWER(c) \
18305 (('a' <= (c) && (c) <= 'i') \
18306 || ('j' <= (c) && (c) <= 'r') \
18307 || ('s' <= (c) && (c) <= 'z'))
18308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18316 for (i = 0; i < 256; i++)
18317 if (XOR (islower (i), ISLOWER (i))
18318 || toupper (i) != TOUPPER (i))
18323 if ac_fn_c_try_run "$LINENO"; then :
18326 ac_cv_header_stdc=no
18328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18329 conftest.$ac_objext conftest.beam conftest.$ac_ext
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18335 $as_echo "$ac_cv_header_stdc" >&6; }
18336 if test $ac_cv_header_stdc = yes; then
18338 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
18342 for ac_header in sys/param.h
18344 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18345 if test "x$ac_cv_header_sys_param_h" = xyes; then :
18346 cat >>confdefs.h <<_ACEOF
18347 @%:@define HAVE_SYS_PARAM_H 1
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18356 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18357 if ${ac_cv_c_bigendian+:} false; then :
18358 $as_echo_n "(cached) " >&6
18360 ac_cv_c_bigendian=unknown
18361 # See if we're dealing with a universal compiler.
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18364 #ifndef __APPLE_CC__
18365 not a universal capable compiler
18370 if ac_fn_c_try_compile "$LINENO"; then :
18372 # Check for potential -arch flags. It is not universal unless
18373 # there are at least two -arch flags with different values.
18376 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18377 if test -n "$ac_prev"; then
18379 i?86 | x86_64 | ppc | ppc64)
18380 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18383 ac_cv_c_bigendian=universal
18389 elif test "x$ac_word" = "x-arch"; then
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 if test $ac_cv_c_bigendian = unknown; then
18396 # See if sys/param.h defines the BYTE_ORDER macro.
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 #include <sys/types.h>
18400 #include <sys/param.h>
18405 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18406 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18408 bogus endian macros
18415 if ac_fn_c_try_compile "$LINENO"; then :
18416 # It does; now see whether it defined to BIG_ENDIAN or not.
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18419 #include <sys/types.h>
18420 #include <sys/param.h>
18425 #if BYTE_ORDER != BIG_ENDIAN
18433 if ac_fn_c_try_compile "$LINENO"; then :
18434 ac_cv_c_bigendian=yes
18436 ac_cv_c_bigendian=no
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442 if test $ac_cv_c_bigendian = unknown; then
18443 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18446 #include <limits.h>
18451 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18452 bogus endian macros
18459 if ac_fn_c_try_compile "$LINENO"; then :
18460 # It does; now see whether it defined to _BIG_ENDIAN or not.
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463 #include <limits.h>
18468 #ifndef _BIG_ENDIAN
18476 if ac_fn_c_try_compile "$LINENO"; then :
18477 ac_cv_c_bigendian=yes
18479 ac_cv_c_bigendian=no
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 if test $ac_cv_c_bigendian = unknown; then
18486 # Compile a test program.
18487 if test "$cross_compiling" = yes; then :
18488 # Try to guess by grepping values from an object file.
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18491 short int ascii_mm[] =
18492 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18493 short int ascii_ii[] =
18494 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18495 int use_ascii (int i) {
18496 return ascii_mm[i] + ascii_ii[i];
18498 short int ebcdic_ii[] =
18499 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18500 short int ebcdic_mm[] =
18501 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18502 int use_ebcdic (int i) {
18503 return ebcdic_mm[i] + ebcdic_ii[i];
18510 return use_ascii (foo) == use_ebcdic (foo);
18515 if ac_fn_c_try_compile "$LINENO"; then :
18516 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18517 ac_cv_c_bigendian=yes
18519 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18520 if test "$ac_cv_c_bigendian" = unknown; then
18521 ac_cv_c_bigendian=no
18523 # finding both strings is unlikely to happen, but who knows?
18524 ac_cv_c_bigendian=unknown
18528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531 /* end confdefs.h. */
18532 $ac_includes_default
18537 /* Are we little or big endian? From Harbison&Steele. */
18541 char c[sizeof (long int)];
18544 return u.c[sizeof (long int) - 1] == 1;
18550 if ac_fn_c_try_run "$LINENO"; then :
18551 ac_cv_c_bigendian=no
18553 ac_cv_c_bigendian=yes
18555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18556 conftest.$ac_objext conftest.beam conftest.$ac_ext
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18562 $as_echo "$ac_cv_c_bigendian" >&6; }
18563 case $ac_cv_c_bigendian in #(
18565 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
18571 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18575 as_fn_error $? "unknown endianness
18576 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18579 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18580 if test "x$ac_cv_type_off_t" = xyes; then :
18584 cat >>confdefs.h <<_ACEOF
18585 @%:@define off_t long int
18590 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18591 if test "x$ac_cv_type_size_t" = xyes; then :
18595 cat >>confdefs.h <<_ACEOF
18596 @%:@define size_t unsigned int
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18602 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18603 if ${ac_cv_struct_tm+:} false; then :
18604 $as_echo_n "(cached) " >&6
18606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h. */
18608 #include <sys/types.h>
18615 int *p = &tm.tm_sec;
18621 if ac_fn_c_try_compile "$LINENO"; then :
18622 ac_cv_struct_tm=time.h
18624 ac_cv_struct_tm=sys/time.h
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18629 $as_echo "$ac_cv_struct_tm" >&6; }
18630 if test $ac_cv_struct_tm = sys/time.h; then
18632 $as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
18636 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
18637 if test "x$ac_cv_type___int128" = xyes; then :
18639 $as_echo "@%:@define HAVE_128_BIT_INT 1" >>confdefs.h
18643 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
18644 if test "x$ac_cv_type_intmax_t" = xyes; then :
18648 cat >>confdefs.h <<_ACEOF
18649 @%:@define intmax_t int64_t
18655 # The cast to long int works around a bug in the HP C Compiler
18656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18658 # This bug is HP SR number 8606223364.
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18660 $as_echo_n "checking size of void *... " >&6; }
18661 if ${ac_cv_sizeof_void_p+:} false; then :
18662 $as_echo_n "(cached) " >&6
18664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
18667 if test "$ac_cv_type_void_p" = yes; then
18668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18670 as_fn_error 77 "cannot compute sizeof (void *)
18671 See \`config.log' for more details" "$LINENO" 5; }
18673 ac_cv_sizeof_void_p=0
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18679 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18683 cat >>confdefs.h <<_ACEOF
18684 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18688 if test "$ac_cv_sizeof_void_p" -eq 8; then
18690 TEST_64BIT_FALSE='#'
18692 TEST_64BIT_TRUE='#'
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt" >&5
18698 $as_echo_n "checking for library containing getopt... " >&6; }
18699 if ${ac_cv_search_getopt+:} false; then :
18700 $as_echo_n "(cached) " >&6
18702 ac_func_search_save_LIBS=$LIBS
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18706 /* Override any GCC internal prototype to avoid an error.
18707 Use char because int might match the return type of a GCC
18708 builtin and then its argument prototype would still apply. */
18721 for ac_lib in '' iberty; do
18722 if test -z "$ac_lib"; then
18723 ac_res="none required"
18726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18728 if ac_fn_c_try_link "$LINENO"; then :
18729 ac_cv_search_getopt=$ac_res
18731 rm -f core conftest.err conftest.$ac_objext \
18733 if ${ac_cv_search_getopt+:} false; then :
18737 if ${ac_cv_search_getopt+:} false; then :
18740 ac_cv_search_getopt=no
18742 rm conftest.$ac_ext
18743 LIBS=$ac_func_search_save_LIBS
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt" >&5
18746 $as_echo "$ac_cv_search_getopt" >&6; }
18747 ac_res=$ac_cv_search_getopt
18748 if test "$ac_res" != no; then :
18749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18754 for ac_func in strtoimax strtoll
18756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18757 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18758 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18759 cat >>confdefs.h <<_ACEOF
18760 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18766 for ac_func in mergesort
18768 ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort"
18769 if test "x$ac_cv_func_mergesort" = xyes; then :
18770 cat >>confdefs.h <<_ACEOF
18771 @%:@define HAVE_MERGESORT 1
18777 for ac_func in mkstemps
18779 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
18780 if test "x$ac_cv_func_mkstemps" = xyes; then :
18781 cat >>confdefs.h <<_ACEOF
18782 @%:@define HAVE_MKSTEMPS 1
18788 for ac_func in timegm
18790 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18791 if test "x$ac_cv_func_timegm" = xyes; then :
18792 cat >>confdefs.h <<_ACEOF
18793 @%:@define HAVE_TIMEGM 1
18799 ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
18800 if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
18806 cat >>confdefs.h <<_ACEOF
18807 @%:@define HAVE_DECL_STRCASECMP $ac_have_decl
18810 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
18811 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
18817 cat >>confdefs.h <<_ACEOF
18818 @%:@define HAVE_DECL_VASPRINTF $ac_have_decl
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18839 if ac_fn_c_try_link "$LINENO"; then :
18841 $as_echo "@%:@define HAVE_SYMLINK 1" >>confdefs.h
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18847 # Extract the first word of "pandoc", so it can be a program name with args.
18848 set dummy pandoc; ac_word=$2
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18850 $as_echo_n "checking for $ac_word... " >&6; }
18851 if ${ac_cv_path_PANDOC+:} false; then :
18852 $as_echo_n "(cached) " >&6
18856 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
18859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860 for as_dir in $PATH
18863 test -z "$as_dir" && as_dir=.
18864 for ac_exec_ext in '' $ac_executable_extensions; do
18865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18866 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
18867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18877 PANDOC=$ac_cv_path_PANDOC
18878 if test -n "$PANDOC"; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
18880 $as_echo "$PANDOC" >&6; }
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18883 $as_echo "no" >&6; }
18887 if test -n "$PANDOC"; then
18889 HAVE_PANDOC_FALSE='#'
18891 HAVE_PANDOC_TRUE='#'
18896 ac_config_files="$ac_config_files tests/tests-c-compiler/check-src/Makefile tests/tests-asn1c-compiler/Makefile tests/tests-asn1c-smoke/Makefile tests/tests-randomized/Makefile tests/tests-c-compiler/Makefile tests/tests-skeletons/Makefile libasn1compiler/Makefile libasn1common/Makefile libasn1parser/Makefile libasn1print/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile doc/man/Makefile tests/Makefile asn1c/Makefile doc/Makefile Makefile"
18898 cat >confcache <<\_ACEOF
18899 # This file is a shell script that caches the results of configure
18900 # tests run on this system so they can be shared between configure
18901 # scripts and configure runs, see configure's option --config-cache.
18902 # It is not useful on other systems. If it contains results you don't
18903 # want to keep, you may remove or edit it.
18905 # config.status only pays attention to the cache file if you give it
18906 # the --recheck option to rerun configure.
18908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18910 # following values.
18914 # The following way of writing the cache mishandles newlines in values,
18915 # but we know of no workaround that is simple, portable, and efficient.
18916 # So, we kill variables containing newlines.
18917 # Ultrix sh set writes to stderr and can't be redirected directly,
18918 # and sets the high bit in the cache file unless we assign to the vars.
18920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18921 eval ac_val=\$$ac_var
18925 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18929 _ | IFS | as_nl) ;; #(
18930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18931 *) { eval $ac_var=; unset $ac_var;} ;;
18937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18938 *${as_nl}ac_space=\ *)
18939 # `set' does not quote correctly, so add quotes: double-quote
18940 # substitution turns \\\\ into \\, and sed turns \\ into \.
18943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18946 # `set' quotes correctly as required by POSIX, so do not add quotes.
18947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18960 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18961 if test -w "$cache_file"; then
18962 if test "x$cache_file" != "x/dev/null"; then
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18964 $as_echo "$as_me: updating cache $cache_file" >&6;}
18965 if test ! -f "$cache_file" || test -h "$cache_file"; then
18966 cat confcache >"$cache_file"
18968 case $cache_file in #(
18970 mv -f confcache "$cache_file"$$ &&
18971 mv -f "$cache_file"$$ "$cache_file" ;; #(
18973 mv -f confcache "$cache_file" ;;
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18979 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18985 # Let make expand exec_prefix.
18986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18988 DEFS=-DHAVE_CONFIG_H
18993 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
18994 # 1. Remove the extension, and $U if already installed.
18995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18998 # will be set to the directory where LIBOBJS objects are built.
18999 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19000 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19002 LIB@&t@OBJS=$ac_libobjs
19004 LTLIBOBJS=$ac_ltlibobjs
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19008 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19009 if test -n "$am_sleep_pid"; then
19010 # Hide warnings about reused PIDs.
19011 wait $am_sleep_pid 2>/dev/null
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19014 $as_echo "done" >&6; }
19015 if test -n "$EXEEXT"; then
19017 am__EXEEXT_FALSE='#'
19019 am__EXEEXT_TRUE='#'
19023 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19024 as_fn_error $? "conditional \"AMDEP\" was never defined.
19025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19027 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19028 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19031 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19032 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19035 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
19036 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
19037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19039 if test -z "${EXPLICIT_M32_TRUE}" && test -z "${EXPLICIT_M32_FALSE}"; then
19040 as_fn_error $? "conditional \"EXPLICIT_M32\" was never defined.
19041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19044 if test -z "${TEST_64BIT_TRUE}" && test -z "${TEST_64BIT_FALSE}"; then
19045 as_fn_error $? "conditional \"TEST_64BIT\" was never defined.
19046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19048 if test -z "${HAVE_PANDOC_TRUE}" && test -z "${HAVE_PANDOC_FALSE}"; then
19049 as_fn_error $? "conditional \"HAVE_PANDOC\" was never defined.
19050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19053 : "${CONFIG_STATUS=./config.status}"
19055 ac_clean_files_save=$ac_clean_files
19056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19058 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19060 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19062 # Generated by $as_me.
19063 # Run this file to recreate the current configuration.
19064 # Compiler output produced by configure, useful for debugging
19065 # configure, is in config.log if it exists.
19068 ac_cs_recheck=false
19071 SHELL=\${CONFIG_SHELL-$SHELL}
19074 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19075 ## -------------------- ##
19076 ## M4sh Initialization. ##
19077 ## -------------------- ##
19079 # Be more Bourne compatible
19080 DUALCASE=1; export DUALCASE # for MKS sh
19081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19084 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19085 # is contrary to our usage. Disable this feature.
19086 alias -g '${1+"$@"}'='"$@"'
19087 setopt NO_GLOB_SUBST
19089 case `(set -o) 2>/dev/null` in @%:@(
19091 set -o posix ;; @%:@(
19101 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19102 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19103 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19105 # Prefer a ksh shell builtin over an external printf program on Solaris,
19106 # but without wasting forks for bash or zsh.
19107 if test -z "$BASH_VERSION$ZSH_VERSION" \
19108 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19109 as_echo='print -r --'
19110 as_echo_n='print -rn --'
19111 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19112 as_echo='printf %s\n'
19113 as_echo_n='printf %s'
19115 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19116 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19117 as_echo_n='/usr/ucb/echo -n'
19119 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19120 as_echo_n_body='eval
19124 expr "X$arg" : "X\\(.*\\)$as_nl";
19125 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19127 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19129 export as_echo_n_body
19130 as_echo_n='sh -c $as_echo_n_body as_echo'
19132 export as_echo_body
19133 as_echo='sh -c $as_echo_body as_echo'
19136 # The user is always right.
19137 if test "${PATH_SEPARATOR+set}" != set; then
19139 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19140 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19147 # We need space, tab and new line, in precisely that order. Quoting is
19148 # there to prevent editors from complaining about space-tab.
19149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19150 # splitting by setting IFS to empty value.)
19153 # Find who we are. Look in the path if we contain no directory separator.
19156 *[\\/]* ) as_myself=$0 ;;
19157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19158 for as_dir in $PATH
19161 test -z "$as_dir" && as_dir=.
19162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19168 # We did not find ourselves, most probably we were run as `sh COMMAND'
19169 # in which case we are not to be found in the path.
19170 if test "x$as_myself" = x; then
19173 if test ! -f "$as_myself"; then
19174 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19178 # Unset variables that we do not need and which cause bugs (e.g. in
19179 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19180 # suppresses any "Segmentation fault" message there. '((' could
19181 # trigger a bug in pdksh 5.2.14.
19182 for as_var in BASH_ENV ENV MAIL MAILPATH
19183 do eval test x\${$as_var+set} = xset \
19184 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19200 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
19201 @%:@ ----------------------------------------
19202 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19203 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19204 @%:@ script with STATUS, using 1 if that was 0.
19207 as_status=$1; test $as_status -eq 0 && as_status=1
19209 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19210 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19212 $as_echo "$as_me: error: $2" >&2
19213 as_fn_exit $as_status
19217 @%:@ as_fn_set_status STATUS
19218 @%:@ -----------------------
19219 @%:@ Set @S|@? to STATUS, without forking.
19220 as_fn_set_status ()
19223 } @%:@ as_fn_set_status
19225 @%:@ as_fn_exit STATUS
19226 @%:@ -----------------
19227 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19231 as_fn_set_status $1
19235 @%:@ as_fn_unset VAR
19236 @%:@ ---------------
19237 @%:@ Portably unset VAR.
19240 { eval $1=; unset $1;}
19242 as_unset=as_fn_unset
19243 @%:@ as_fn_append VAR VALUE
19244 @%:@ ----------------------
19245 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
19246 @%:@ advantage of any shell optimizations that allow amortized linear growth over
19247 @%:@ repeated appends, instead of the typical quadratic growth present in naive
19248 @%:@ implementations.
19249 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19250 eval 'as_fn_append ()
19261 @%:@ as_fn_arith ARG...
19262 @%:@ ------------------
19263 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
19264 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
19265 @%:@ must be portable across @S|@(()) and expr.
19266 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19267 eval 'as_fn_arith ()
19274 as_val=`expr "$@" || test $? -eq 1`
19279 if expr a : '\(a\)' >/dev/null 2>&1 &&
19280 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19286 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19287 as_basename=basename
19292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19298 as_me=`$as_basename -- "$0" ||
19299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19300 X"$0" : 'X\(//\)$' \| \
19301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19303 sed '/^.*\/\([^/][^/]*\)\/*$/{
19317 # Avoid depending upon Character Ranges.
19318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19321 as_cr_digits='0123456789'
19322 as_cr_alnum=$as_cr_Letters$as_cr_digits
19324 ECHO_C= ECHO_N= ECHO_T=
19325 case `echo -n x` in @%:@(((((
19327 case `echo 'xy\c'` in
19328 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19330 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19337 rm -f conf$$ conf$$.exe conf$$.file
19338 if test -d conf$$.dir; then
19339 rm -f conf$$.dir/conf$$.file
19342 mkdir conf$$.dir 2>/dev/null
19344 if (echo >conf$$.file) 2>/dev/null; then
19345 if ln -s conf$$.file conf$$ 2>/dev/null; then
19347 # ... but there are two gotchas:
19348 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19349 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19350 # In both cases, we have to default to `cp -pR'.
19351 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19353 elif ln conf$$.file conf$$ 2>/dev/null; then
19361 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19362 rmdir conf$$.dir 2>/dev/null
19367 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
19372 -*) as_dir=./$as_dir;;
19374 test -d "$as_dir" || eval $as_mkdir_p || {
19378 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19379 *) as_qdir=$as_dir;;
19381 as_dirs="'$as_qdir' $as_dirs"
19382 as_dir=`$as_dirname -- "$as_dir" ||
19383 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19384 X"$as_dir" : 'X\(//\)[^/]' \| \
19385 X"$as_dir" : 'X\(//\)$' \| \
19386 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19387 $as_echo X"$as_dir" |
19388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19392 /^X\(\/\/\)[^/].*/{
19405 test -d "$as_dir" && break
19407 test -z "$as_dirs" || eval "mkdir $as_dirs"
19408 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19411 } @%:@ as_fn_mkdir_p
19412 if mkdir -p . 2>/dev/null; then
19413 as_mkdir_p='mkdir -p "$as_dir"'
19415 test -d ./-p && rmdir ./-p
19420 @%:@ as_fn_executable_p FILE
19421 @%:@ -----------------------
19422 @%:@ Test if FILE is an executable regular file.
19423 as_fn_executable_p ()
19425 test -f "$1" && test -x "$1"
19426 } @%:@ as_fn_executable_p
19427 as_test_x='test -x'
19428 as_executable_p=as_fn_executable_p
19430 # Sed expression to map a string onto a valid CPP name.
19431 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19433 # Sed expression to map a string onto a valid variable name.
19434 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19438 ## ----------------------------------- ##
19439 ## Main body of $CONFIG_STATUS script. ##
19440 ## ----------------------------------- ##
19442 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19445 # Save the log message, to keep $0 and so on meaningful, and to
19446 # report actual input values of CONFIG_FILES etc. instead of their
19447 # values after options handling.
19449 This file was extended by asn1c $as_me 0.9.29, which was
19450 generated by GNU Autoconf 2.69. Invocation command line was
19452 CONFIG_FILES = $CONFIG_FILES
19453 CONFIG_HEADERS = $CONFIG_HEADERS
19454 CONFIG_LINKS = $CONFIG_LINKS
19455 CONFIG_COMMANDS = $CONFIG_COMMANDS
19458 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19463 case $ac_config_files in *"
19464 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19467 case $ac_config_headers in *"
19468 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19473 # Files that config.status was made for.
19474 config_files="$ac_config_files"
19475 config_headers="$ac_config_headers"
19476 config_commands="$ac_config_commands"
19480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19482 \`$as_me' instantiates files and other configuration actions
19483 from templates according to the current configuration. Unless the files
19484 and actions are specified as TAGs, all are instantiated by default.
19486 Usage: $0 [OPTION]... [TAG]...
19488 -h, --help print this help, then exit
19489 -V, --version print version number and configuration settings, then exit
19490 --config print configuration, then exit
19491 -q, --quiet, --silent
19492 do not print progress messages
19493 -d, --debug don't remove temporary files
19494 --recheck update $as_me by reconfiguring in the same conditions
19495 --file=FILE[:TEMPLATE]
19496 instantiate the configuration file FILE
19497 --header=FILE[:TEMPLATE]
19498 instantiate the configuration header FILE
19500 Configuration files:
19503 Configuration headers:
19506 Configuration commands:
19509 Report bugs to <vlm@lionet.info>."
19512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19513 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19515 asn1c config.status 0.9.29
19516 configured by $0, generated by GNU Autoconf 2.69,
19517 with options \\"\$ac_cs_config\\"
19519 Copyright (C) 2012 Free Software Foundation, Inc.
19520 This config.status script is free software; the Free Software Foundation
19521 gives unlimited permission to copy, distribute and modify it."
19528 test -n "\$AWK" || AWK=awk
19531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19532 # The default lists apply if the user does not specify any file.
19538 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19539 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19543 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19555 # Handling of the options.
19556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19558 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19559 $as_echo "$ac_cs_version"; exit ;;
19560 --config | --confi | --conf | --con | --co | --c )
19561 $as_echo "$ac_cs_config"; exit ;;
19562 --debug | --debu | --deb | --de | --d | -d )
19564 --file | --fil | --fi | --f )
19567 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19568 '') as_fn_error $? "missing file argument" ;;
19570 as_fn_append CONFIG_FILES " '$ac_optarg'"
19571 ac_need_defaults=false;;
19572 --header | --heade | --head | --hea )
19575 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19577 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19578 ac_need_defaults=false;;
19580 # Conflict between --help and --header
19581 as_fn_error $? "ambiguous option: \`$1'
19582 Try \`$0 --help' for more information.";;
19583 --help | --hel | -h )
19584 $as_echo "$ac_cs_usage"; exit ;;
19585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19589 # This is an error.
19590 -*) as_fn_error $? "unrecognized option: \`$1'
19591 Try \`$0 --help' for more information." ;;
19593 *) as_fn_append ac_config_targets " $1"
19594 ac_need_defaults=false ;;
19600 ac_configure_extra_args=
19602 if $ac_cs_silent; then
19604 ac_configure_extra_args="$ac_configure_extra_args --silent"
19608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19609 if \$ac_cs_recheck; then
19610 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19612 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19613 CONFIG_SHELL='$SHELL'
19614 export CONFIG_SHELL
19619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19623 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19624 @%:@@%:@ Running $as_me. @%:@@%:@
19630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19634 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19637 # The HP-UX ksh and POSIX shell print the target directory to stdout
19638 # if CDPATH is set.
19639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19641 sed_quote_subst='$sed_quote_subst'
19642 double_quote_subst='$double_quote_subst'
19643 delay_variable_subst='$delay_variable_subst'
19644 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19645 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19646 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19647 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19648 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19649 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19650 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19651 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19652 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19653 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19654 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19655 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19656 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19657 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19658 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19659 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19660 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19661 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19662 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19663 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19664 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19665 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19666 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19667 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19668 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19669 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19670 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19671 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19672 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19673 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19674 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19675 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19676 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19677 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19678 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19679 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19680 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19681 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19682 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19683 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19684 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19685 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19686 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19687 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19688 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19689 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19690 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19691 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19692 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19693 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19694 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19695 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19696 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19697 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19698 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19699 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19700 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19701 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19702 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"`'
19703 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19704 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19705 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19706 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19707 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19708 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19709 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19710 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19711 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19712 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19713 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19714 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19715 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19716 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19717 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19718 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19719 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19720 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19721 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19722 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19723 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19724 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19725 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19726 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19727 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19728 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19729 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19730 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19731 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19732 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19733 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19734 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19735 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19736 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19737 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19738 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19739 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19740 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19741 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19742 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19743 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19744 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19745 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19746 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19747 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19748 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19749 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19750 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19751 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19752 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19753 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19754 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19755 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19756 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19757 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19758 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19759 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19760 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19761 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19762 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19763 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19764 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19765 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19766 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19767 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19768 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19769 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19770 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19771 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19772 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19773 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19774 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19775 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19776 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19777 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19778 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19779 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19780 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19781 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19782 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19783 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19784 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19785 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19786 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19787 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19788 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19789 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19790 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19791 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19792 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19793 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19794 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19795 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19796 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19797 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19798 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19799 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19800 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19801 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19802 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19803 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19804 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19805 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19806 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19807 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19808 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19809 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19810 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19811 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19812 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19813 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19814 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19815 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19816 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19817 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19818 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19819 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19820 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19821 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19822 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19823 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19824 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19825 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19826 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19827 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19828 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19829 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19830 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19831 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19832 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19835 LTCFLAGS='$LTCFLAGS'
19836 compiler='$compiler_DEFAULT'
19838 # A function that is used when there is no print builtin or printf.
19839 func_fallback_echo ()
19841 eval 'cat <<_LTECHO_EOF
19846 # Quote evaled strings.
19861 deplibs_check_method \
19866 sharedlib_from_linklib_cmd \
19869 archiver_list_spec \
19875 lt_cv_sys_global_symbol_pipe \
19876 lt_cv_sys_global_symbol_to_cdecl \
19877 lt_cv_sys_global_symbol_to_import \
19878 lt_cv_sys_global_symbol_to_c_name_address \
19879 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19880 lt_cv_nm_interface \
19881 nm_file_list_spec \
19882 lt_cv_truncate_bin \
19883 lt_prog_compiler_no_builtin_flag \
19884 lt_prog_compiler_pic \
19885 lt_prog_compiler_wl \
19886 lt_prog_compiler_static \
19887 lt_cv_prog_compiler_c_o \
19896 export_dynamic_flag_spec \
19897 whole_archive_flag_spec \
19898 compiler_needs_object \
19900 allow_undefined_flag \
19901 no_undefined_flag \
19902 hardcode_libdir_flag_spec \
19903 hardcode_libdir_separator \
19907 variables_saved_for_relink \
19909 library_names_spec \
19911 install_override_mode \
19915 compiler_lib_search_dirs \
19920 compiler_lib_search_path \
19924 lt_prog_compiler_no_builtin_flag_CXX \
19925 lt_prog_compiler_pic_CXX \
19926 lt_prog_compiler_wl_CXX \
19927 lt_prog_compiler_static_CXX \
19928 lt_cv_prog_compiler_c_o_CXX \
19929 export_dynamic_flag_spec_CXX \
19930 whole_archive_flag_spec_CXX \
19931 compiler_needs_object_CXX \
19933 allow_undefined_flag_CXX \
19934 no_undefined_flag_CXX \
19935 hardcode_libdir_flag_spec_CXX \
19936 hardcode_libdir_separator_CXX \
19937 exclude_expsyms_CXX \
19938 include_expsyms_CXX \
19939 file_list_spec_CXX \
19940 compiler_lib_search_dirs_CXX \
19941 predep_objects_CXX \
19942 postdep_objects_CXX \
19945 compiler_lib_search_path_CXX; do
19946 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19947 *[\\\\\\\`\\"\\\$]*)
19948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19956 # Double-quote double-evaled strings.
19957 for var in reload_cmds \
19958 old_postinstall_cmds \
19959 old_postuninstall_cmds \
19961 extract_expsyms_cmds \
19962 old_archive_from_new_cmds \
19963 old_archive_from_expsyms_cmds \
19965 archive_expsym_cmds \
19967 module_expsym_cmds \
19968 export_symbols_cmds \
19972 postuninstall_cmds \
19974 sys_lib_search_path_spec \
19975 configure_time_dlsearch_path \
19976 configure_time_lt_sys_library_path \
19978 old_archive_cmds_CXX \
19979 old_archive_from_new_cmds_CXX \
19980 old_archive_from_expsyms_cmds_CXX \
19982 archive_expsym_cmds_CXX \
19984 module_expsym_cmds_CXX \
19985 export_symbols_cmds_CXX \
19987 postlink_cmds_CXX; do
19988 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19989 *[\\\\\\\`\\"\\\$]*)
19990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19998 ac_aux_dir='$ac_aux_dir'
20000 # See if we are running on zsh, and set the options that allow our
20001 # commands through without removal of \ escapes INIT.
20002 if test -n "\${ZSH_VERSION+set}"; then
20003 setopt NO_GLOB_SUBST
20019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20021 # Handling of arguments.
20022 for ac_config_target in $ac_config_targets
20024 case $ac_config_target in
20025 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20026 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20027 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20028 "tests/tests-c-compiler/check-src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-c-compiler/check-src/Makefile" ;;
20029 "tests/tests-asn1c-compiler/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-asn1c-compiler/Makefile" ;;
20030 "tests/tests-asn1c-smoke/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-asn1c-smoke/Makefile" ;;
20031 "tests/tests-randomized/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-randomized/Makefile" ;;
20032 "tests/tests-c-compiler/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-c-compiler/Makefile" ;;
20033 "tests/tests-skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-skeletons/Makefile" ;;
20034 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
20035 "libasn1common/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1common/Makefile" ;;
20036 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
20037 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
20038 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
20039 "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
20040 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
20041 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20042 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20043 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20044 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
20045 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20046 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20048 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20053 # If the user did not use the arguments to specify the items to instantiate,
20054 # then the envvar interface is used. Set only those that are not.
20055 # We use the long form for the default assignment because of an extremely
20056 # bizarre bug on SunOS 4.1.3.
20057 if $ac_need_defaults; then
20058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20063 # Have a temporary directory for convenience. Make it in the build tree
20064 # simply because there is no reason against having it here, and in addition,
20065 # creating and moving files from /tmp can sometimes cause problems.
20066 # Hook for its removal unless debugging.
20067 # Note that there is a small window in which the directory will not be cleaned:
20068 # after its creation but before its name has been assigned to `$tmp'.
20072 trap 'exit_status=$?
20073 : "${ac_tmp:=$tmp}"
20074 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20076 trap 'as_fn_exit 1' 1 2 13 15
20078 # Create a (secure) tmp directory for tmp files.
20081 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20085 tmp=./conf$$-$RANDOM
20086 (umask 077 && mkdir "$tmp")
20087 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20090 # Set up the scripts for CONFIG_FILES section.
20091 # No need to generate them if there are no CONFIG_FILES.
20092 # This happens for instance with `./config.status config.h'.
20093 if test -n "$CONFIG_FILES"; then
20096 ac_cr=`echo X | tr X '\015'`
20097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20098 # But we know of no other shell where ac_cr would be empty at this
20099 # point, so we can use a bashism as a fallback.
20100 if test "x$ac_cr" = x; then
20101 eval ac_cr=\$\'\\r\'
20103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20107 ac_cs_awk_cr=$ac_cr
20110 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20115 echo "cat >conf$$subs.awk <<_ACEOF" &&
20116 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20118 } >conf$$subs.sh ||
20119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20122 for ac_last_try in false false false false false :; do
20123 . ./conf$$subs.sh ||
20124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20126 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20127 if test $ac_delim_n = $ac_delim_num; then
20129 elif $ac_last_try; then
20130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20135 rm -f conf$$subs.sh
20137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20138 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20142 s/^/S["/; s/!.*/"]=/
20152 s/\(.\{148\}\)..*/\1/
20154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20166 s/\(.\{148\}\)..*/\1/
20168 s/["\\]/\\&/g; s/^/"/; s/$/"/
20172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20177 ' <conf$$subs.awk | sed '
20182 ' >>$CONFIG_STATUS || ac_write_fail=1
20183 rm -f conf$$subs.awk
20184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20187 for (key in S) S_is_set[key] = 1
20193 nfields = split(line, field, "@")
20195 len = length(field[1])
20196 for (i = 2; i < nfields; i++) {
20198 keylen = length(key)
20199 if (S_is_set[key]) {
20201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20202 len += length(value) + length(field[++i])
20213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20218 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20219 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20224 # trailing colons and then remove the whole line if VPATH becomes empty
20225 # (actually we leave an empty line to preserve line numbers).
20226 if test "x$srcdir" = x.; then
20227 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20246 fi # test -n "$CONFIG_FILES"
20248 # Set up the scripts for CONFIG_HEADERS section.
20249 # No need to generate them if there are no CONFIG_HEADERS.
20250 # This happens for instance with `./config.status Makefile'.
20251 if test -n "$CONFIG_HEADERS"; then
20252 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20256 # Transform confdefs.h into an awk script `defines.awk', embedded as
20257 # here-document in config.status, that substitutes the proper values into
20258 # config.h.in to produce config.h.
20260 # Create a delimiter string that does not exist in confdefs.h, to ease
20261 # handling of long lines.
20263 for ac_last_try in false false :; do
20264 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20265 if test -z "$ac_tt"; then
20267 elif $ac_last_try; then
20268 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20274 # For the awk script, D is an array of macro values keyed by name,
20275 # likewise P contains macro parameters if any. Preserve backslash
20276 # newline sequences.
20278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20280 s/.\{148\}/&'"$ac_delim"'/g
20283 s/^[ ]*#[ ]*define[ ][ ]*/ /
20290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20297 D["\1"]=" \3\\\\\\n"\\/p
20299 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20304 s/.\{148\}/&'"$ac_delim"'/g
20309 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20312 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20314 ' <confdefs.h | sed '
20315 s/'"$ac_delim"'/"\\\
20316 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20319 for (key in D) D_is_set[key] = 1
20322 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20324 split(line, arg, " ")
20325 if (arg[1] == "#") {
20329 defundef = substr(arg[1], 2)
20332 split(mac1, mac2, "(") #)
20334 prefix = substr(line, 1, index(line, defundef) - 1)
20335 if (D_is_set[macro]) {
20336 # Preserve the white space surrounding the "#".
20337 print prefix "define", macro P[macro] D[macro]
20340 # Replace #undef with comments. This is necessary, for example,
20341 # in the case of _POSIX_SOURCE, which is predefined and required
20342 # on some systems where configure will not decide to define it.
20343 if (defundef == "undef") {
20344 print "/*", prefix defundef, macro, "*/"
20352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20353 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20354 fi # test -n "$CONFIG_HEADERS"
20357 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20362 :[FHLC]) ac_mode=$ac_tag; continue;;
20364 case $ac_mode$ac_tag in
20366 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20367 :[FH]-) ac_tag=-:-;;
20368 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20385 -) ac_f="$ac_tmp/stdin";;
20386 *) # Look for the file first in the build tree, then in the source tree
20387 # (if the path is not absolute). The absolute path cannot be DOS-style,
20388 # because $ac_f cannot contain `:'.
20392 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20394 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20396 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20397 as_fn_append ac_file_inputs " '$ac_f'"
20400 # Let's still pretend it is `configure' which instantiates (i.e., don't
20401 # use $as_me), people would be surprised to read:
20402 # /* config.h. Generated by config.status. */
20403 configure_input='Generated from '`
20404 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20406 if test x"$ac_file" != x-; then
20407 configure_input="$ac_file. $configure_input"
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20409 $as_echo "$as_me: creating $ac_file" >&6;}
20411 # Neutralize special characters interpreted by sed in replacement strings.
20412 case $configure_input in #(
20413 *\&* | *\|* | *\\* )
20414 ac_sed_conf_input=`$as_echo "$configure_input" |
20415 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20416 *) ac_sed_conf_input=$configure_input;;
20420 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20426 ac_dir=`$as_dirname -- "$ac_file" ||
20427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20428 X"$ac_file" : 'X\(//\)[^/]' \| \
20429 X"$ac_file" : 'X\(//\)$' \| \
20430 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20431 $as_echo X"$ac_file" |
20432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20436 /^X\(\/\/\)[^/].*/{
20449 as_dir="$ac_dir"; as_fn_mkdir_p
20453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20456 # A ".." for each directory in $ac_dir_suffix.
20457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20458 case $ac_top_builddir_sub in
20459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20463 ac_abs_top_builddir=$ac_pwd
20464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20465 # for backward compatibility:
20466 ac_top_builddir=$ac_top_build_prefix
20469 .) # We are building in place.
20471 ac_top_srcdir=$ac_top_builddir_sub
20472 ac_abs_top_srcdir=$ac_pwd ;;
20473 [\\/]* | ?:[\\/]* ) # Absolute name.
20474 ac_srcdir=$srcdir$ac_dir_suffix;
20475 ac_top_srcdir=$srcdir
20476 ac_abs_top_srcdir=$srcdir ;;
20477 *) # Relative name.
20478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20479 ac_top_srcdir=$ac_top_build_prefix$srcdir
20480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20492 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20493 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20495 ac_MKDIR_P=$MKDIR_P
20497 [\\/$]* | ?:[\\/]* ) ;;
20498 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20503 # If the template does not know about datarootdir, expand it.
20504 # FIXME: This hack should be removed a few years after 2.60.
20505 ac_datarootdir_hack=; ac_datarootdir_seen=
20516 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20517 *datarootdir*) ac_datarootdir_seen=yes;;
20518 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20520 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20523 ac_datarootdir_hack='
20524 s&@datadir@&$datadir&g
20525 s&@docdir@&$docdir&g
20526 s&@infodir@&$infodir&g
20527 s&@localedir@&$localedir&g
20528 s&@mandir@&$mandir&g
20529 s&\\\${datarootdir}&$datarootdir&g' ;;
20533 # Neutralize VPATH when `$srcdir' = `.'.
20534 # Shell code in configure.ac might set extrasub.
20535 # FIXME: do we really want to maintain this feature?
20536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20537 ac_sed_extra="$ac_vpsub
20540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20543 s|@configure_input@|$ac_sed_conf_input|;t t
20544 s&@top_builddir@&$ac_top_builddir_sub&;t t
20545 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20546 s&@srcdir@&$ac_srcdir&;t t
20547 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20548 s&@top_srcdir@&$ac_top_srcdir&;t t
20549 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20550 s&@builddir@&$ac_builddir&;t t
20551 s&@abs_builddir@&$ac_abs_builddir&;t t
20552 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20553 s&@INSTALL@&$ac_INSTALL&;t t
20554 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20555 $ac_datarootdir_hack
20557 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20558 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20561 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20562 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20563 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20565 which seems to be undefined. Please make sure it is defined" >&5
20566 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20567 which seems to be undefined. Please make sure it is defined" >&2;}
20569 rm -f "$ac_tmp/stdin"
20571 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20572 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20580 if test x"$ac_file" != x-; then
20582 $as_echo "/* $configure_input */" \
20583 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20584 } >"$ac_tmp/config.h" \
20585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20586 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20588 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20591 mv "$ac_tmp/config.h" "$ac_file" \
20592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20595 $as_echo "/* $configure_input */" \
20596 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20597 || as_fn_error $? "could not create -" "$LINENO" 5
20599 # Compute "$ac_file"'s index in $config_headers.
20602 for _am_header in $config_headers :; do
20603 case $_am_header in
20604 $_am_arg | $_am_arg:* )
20607 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20610 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20611 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20612 X"$_am_arg" : 'X\(//\)[^/]' \| \
20613 X"$_am_arg" : 'X\(//\)$' \| \
20614 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20615 $as_echo X"$_am_arg" |
20616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20620 /^X\(\/\/\)[^/].*/{
20632 s/.*/./; q'`/stamp-h$_am_stamp_count
20635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20636 $as_echo "$as_me: executing $ac_file commands" >&6;}
20641 case $ac_file$ac_mode in
20642 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20643 # Older Autoconf quotes --file arguments for eval, but not when files
20644 # are listed without --file. Let's play safe and only enable the eval
20645 # if we detect the quoting.
20646 case $CONFIG_FILES in
20647 *\'*) eval set x "$CONFIG_FILES" ;;
20648 *) set x $CONFIG_FILES ;;
20653 # Strip MF so we end up with the name of the file.
20654 mf=`echo "$mf" | sed -e 's/:.*$//'`
20655 # Check whether this is an Automake generated Makefile or not.
20656 # We used to match only the files named 'Makefile.in', but
20657 # some people rename them; so instead we look at the file content.
20658 # Grep'ing the first line is not enough: some people post-process
20659 # each Makefile.in and add a new line on top of each file to say so.
20660 # Grep'ing the whole file is not good either: AIX grep has a line
20661 # limit of 2048, but all sed's we know have understand at least 4000.
20662 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20663 dirpart=`$as_dirname -- "$mf" ||
20664 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20665 X"$mf" : 'X\(//\)[^/]' \| \
20666 X"$mf" : 'X\(//\)$' \| \
20667 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20673 /^X\(\/\/\)[^/].*/{
20689 # Extract the definition of DEPDIR, am__include, and am__quote
20690 # from the Makefile without running 'make'.
20691 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20692 test -z "$DEPDIR" && continue
20693 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20694 test -z "$am__include" && continue
20695 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20696 # Find all dependency output files, they are included files with
20697 # $(DEPDIR) in their names. We invoke sed twice because it is the
20698 # simplest approach to changing $(DEPDIR) to its actual value in the
20700 for file in `sed -n "
20701 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20702 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20703 # Make sure the directory exists.
20704 test -f "$dirpart/$file" && continue
20705 fdir=`$as_dirname -- "$file" ||
20706 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20707 X"$file" : 'X\(//\)[^/]' \| \
20708 X"$file" : 'X\(//\)$' \| \
20709 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20710 $as_echo X"$file" |
20711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20715 /^X\(\/\/\)[^/].*/{
20728 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20729 # echo "creating $dirpart/$file"
20730 echo '# dummy' > "$dirpart/$file"
20737 # See if we are running on zsh, and set the options that allow our
20738 # commands through without removal of \ escapes.
20739 if test -n "${ZSH_VERSION+set}"; then
20740 setopt NO_GLOB_SUBST
20744 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20747 cat <<_LT_EOF >> "$cfgfile"
20749 # Generated automatically by $as_me ($PACKAGE) $VERSION
20750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20751 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20753 # Provide generalized library-building support services.
20754 # Written by Gordon Matzigkeit, 1996
20756 # Copyright (C) 2014 Free Software Foundation, Inc.
20757 # This is free software; see the source for copying conditions. There is NO
20758 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20760 # GNU Libtool is free software; you can redistribute it and/or modify
20761 # it under the terms of the GNU General Public License as published by
20762 # the Free Software Foundation; either version 2 of of the License, or
20763 # (at your option) any later version.
20765 # As a special exception to the GNU General Public License, if you
20766 # distribute this file as part of a program or library that is built
20767 # using GNU Libtool, you may include this file under the same
20768 # distribution terms that you use for the rest of that program.
20770 # GNU Libtool is distributed in the hope that it will be useful, but
20771 # WITHOUT ANY WARRANTY; without even the implied warranty of
20772 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20773 # GNU General Public License for more details.
20775 # You should have received a copy of the GNU General Public License
20776 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20779 # The names of the tagged configurations supported by this script.
20780 available_tags='CXX '
20782 # Configured defaults for sys_lib_dlsearch_path munging.
20783 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20785 # ### BEGIN LIBTOOL CONFIG
20787 # Which release of libtool.m4 was used?
20788 macro_version=$macro_version
20789 macro_revision=$macro_revision
20791 # Whether or not to build shared libraries.
20792 build_libtool_libs=$enable_shared
20794 # Whether or not to build static libraries.
20795 build_old_libs=$enable_static
20797 # What type of objects to build.
20800 # Whether or not to optimize for fast installation.
20801 fast_install=$enable_fast_install
20803 # Shared archive member basename,for filename based shared library versioning on AIX.
20804 shared_archive_member_spec=$shared_archive_member_spec
20806 # Shell to use when invoking shell scripts.
20809 # An echo program that protects backslashes.
20812 # The PATH separator for the build system.
20813 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20816 host_alias=$host_alias
20820 # The build system.
20821 build_alias=$build_alias
20825 # A sed program that does not truncate output.
20828 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20829 Xsed="\$SED -e 1s/^X//"
20831 # A grep program that handles long lines.
20837 # A literal string matcher.
20840 # A BSD- or MS-compatible name lister.
20843 # Whether we need soft or hard links.
20846 # What is the maximum length of a command?
20847 max_cmd_len=$max_cmd_len
20849 # Object file suffix (normally "o").
20852 # Executable file suffix (normally "").
20855 # whether the shell understands "unset".
20858 # turn spaces into newlines.
20861 # turn newlines into spaces.
20864 # convert \$build file names to \$host format.
20865 to_host_file_cmd=$lt_cv_to_host_file_cmd
20867 # convert \$build files to toolchain format.
20868 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20870 # An object symbol dumper.
20871 OBJDUMP=$lt_OBJDUMP
20873 # Method to check whether dependent libraries are shared objects.
20874 deplibs_check_method=$lt_deplibs_check_method
20876 # Command to use when deplibs_check_method = "file_magic".
20877 file_magic_cmd=$lt_file_magic_cmd
20879 # How to find potential files when deplibs_check_method = "file_magic".
20880 file_magic_glob=$lt_file_magic_glob
20882 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20883 want_nocaseglob=$lt_want_nocaseglob
20885 # DLL creation program.
20886 DLLTOOL=$lt_DLLTOOL
20888 # Command to associate shared and link libraries.
20889 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20894 # Flags to create an archive.
20895 AR_FLAGS=$lt_AR_FLAGS
20897 # How to feed a file listing to the archiver.
20898 archiver_list_spec=$lt_archiver_list_spec
20900 # A symbol stripping program.
20903 # Commands used to install an old-style archive.
20905 old_postinstall_cmds=$lt_old_postinstall_cmds
20906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20908 # Whether to use a lock for old archive extraction.
20909 lock_old_archive_extraction=$lock_old_archive_extraction
20914 # LTCC compiler flags.
20915 LTCFLAGS=$lt_CFLAGS
20917 # Take the output of nm and produce a listing of raw symbols and C names.
20918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20920 # Transform the output of nm in a proper C declaration.
20921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20923 # Transform the output of nm into a list of symbols to manually relocate.
20924 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20926 # Transform the output of nm in a C name address pair.
20927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20929 # Transform the output of nm in a C name address pair when lib prefix is needed.
20930 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20932 # The name lister interface.
20933 nm_interface=$lt_lt_cv_nm_interface
20935 # Specify filename containing input files for \$NM.
20936 nm_file_list_spec=$lt_nm_file_list_spec
20938 # The root where to search for dependent libraries,and where our libraries should be installed.
20939 lt_sysroot=$lt_sysroot
20941 # Command to truncate a binary pipe.
20942 lt_truncate_bin=$lt_lt_cv_truncate_bin
20944 # The name of the directory that contains temporary libtool files.
20947 # Used to examine libraries when file_magic_cmd begins with "file".
20948 MAGIC_CMD=$MAGIC_CMD
20950 # Must we lock files when doing compilation?
20951 need_locks=$lt_need_locks
20954 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20956 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20957 DSYMUTIL=$lt_DSYMUTIL
20959 # Tool to change global to local symbols on Mac OS X.
20962 # Tool to manipulate fat objects and archives on Mac OS X.
20965 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20968 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20969 OTOOL64=$lt_OTOOL64
20971 # Old archive suffix (normally "a").
20974 # Shared library suffix (normally ".so").
20975 shrext_cmds=$lt_shrext_cmds
20977 # The commands to extract the exported symbol list from a shared archive.
20978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20980 # Variables whose values should be saved in libtool wrapper scripts and
20981 # restored at link time.
20982 variables_saved_for_relink=$lt_variables_saved_for_relink
20984 # Do we need the "lib" prefix for modules?
20985 need_lib_prefix=$need_lib_prefix
20987 # Do we need a version for libraries?
20988 need_version=$need_version
20990 # Library versioning type.
20991 version_type=$version_type
20993 # Shared library runtime path variable.
20994 runpath_var=$runpath_var
20996 # Shared library path variable.
20997 shlibpath_var=$shlibpath_var
20999 # Is shlibpath searched before the hard-coded library search path?
21000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21002 # Format of library name prefix.
21003 libname_spec=$lt_libname_spec
21005 # List of archive names. First name is the real one, the rest are links.
21006 # The last name is the one that the linker finds with -lNAME
21007 library_names_spec=$lt_library_names_spec
21009 # The coded name of the library, if different from the real name.
21010 soname_spec=$lt_soname_spec
21012 # Permission mode override for installation of shared libraries.
21013 install_override_mode=$lt_install_override_mode
21015 # Command to use after installation of a shared archive.
21016 postinstall_cmds=$lt_postinstall_cmds
21018 # Command to use after uninstallation of a shared archive.
21019 postuninstall_cmds=$lt_postuninstall_cmds
21021 # Commands used to finish a libtool library installation in a directory.
21022 finish_cmds=$lt_finish_cmds
21024 # As "finish_cmds", except a single script fragment to be evaled but
21026 finish_eval=$lt_finish_eval
21028 # Whether we should hardcode library paths into libraries.
21029 hardcode_into_libs=$hardcode_into_libs
21031 # Compile-time system search path for libraries.
21032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21034 # Detected run-time system search path for libraries.
21035 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21037 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21038 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21040 # Whether dlopen is supported.
21041 dlopen_support=$enable_dlopen
21043 # Whether dlopen of programs is supported.
21044 dlopen_self=$enable_dlopen_self
21046 # Whether dlopen of statically linked programs is supported.
21047 dlopen_self_static=$enable_dlopen_self_static
21049 # Commands to strip libraries.
21050 old_striplib=$lt_old_striplib
21051 striplib=$lt_striplib
21054 # The linker used to build libraries.
21057 # How to create reloadable object files.
21058 reload_flag=$lt_reload_flag
21059 reload_cmds=$lt_reload_cmds
21061 # Commands used to build an old-style archive.
21062 old_archive_cmds=$lt_old_archive_cmds
21064 # A language specific compiler.
21067 # Is the compiler the GNU compiler?
21070 # Compiler flag to turn off builtin functions.
21071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21073 # Additional compiler flags for building library objects.
21074 pic_flag=$lt_lt_prog_compiler_pic
21076 # How to pass a linker flag through the compiler.
21077 wl=$lt_lt_prog_compiler_wl
21079 # Compiler flag to prevent dynamic linking.
21080 link_static_flag=$lt_lt_prog_compiler_static
21082 # Does compiler simultaneously support -c and -o options?
21083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21085 # Whether or not to add -lc for building shared libraries.
21086 build_libtool_need_lc=$archive_cmds_need_lc
21088 # Whether or not to disallow shared libs when runtime libs are static.
21089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21091 # Compiler flag to allow reflexive dlopens.
21092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21094 # Compiler flag to generate shared objects directly from archives.
21095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21097 # Whether the compiler copes with passing no objects directly.
21098 compiler_needs_object=$lt_compiler_needs_object
21100 # Create an old-style archive from a shared archive.
21101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21103 # Create a temporary old-style archive to link instead of a shared archive.
21104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21106 # Commands used to build a shared archive.
21107 archive_cmds=$lt_archive_cmds
21108 archive_expsym_cmds=$lt_archive_expsym_cmds
21110 # Commands used to build a loadable module if different from building
21111 # a shared archive.
21112 module_cmds=$lt_module_cmds
21113 module_expsym_cmds=$lt_module_expsym_cmds
21115 # Whether we are building with GNU ld or not.
21116 with_gnu_ld=$lt_with_gnu_ld
21118 # Flag that allows shared libraries with undefined symbols to be built.
21119 allow_undefined_flag=$lt_allow_undefined_flag
21121 # Flag that enforces no undefined symbols.
21122 no_undefined_flag=$lt_no_undefined_flag
21124 # Flag to hardcode \$libdir into a binary during linking.
21125 # This must work even if \$libdir does not exist
21126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21128 # Whether we need a single "-rpath" flag with a separated argument.
21129 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21131 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21132 # DIR into the resulting binary.
21133 hardcode_direct=$hardcode_direct
21135 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21136 # DIR into the resulting binary and the resulting library dependency is
21137 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21138 # library is relocated.
21139 hardcode_direct_absolute=$hardcode_direct_absolute
21141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21142 # into the resulting binary.
21143 hardcode_minus_L=$hardcode_minus_L
21145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21146 # into the resulting binary.
21147 hardcode_shlibpath_var=$hardcode_shlibpath_var
21149 # Set to "yes" if building a shared library automatically hardcodes DIR
21150 # into the library and all subsequent libraries and executables linked
21152 hardcode_automatic=$hardcode_automatic
21154 # Set to yes if linker adds runtime paths of dependent libraries
21155 # to runtime path list.
21156 inherit_rpath=$inherit_rpath
21158 # Whether libtool must link a program against all its dependency libraries.
21159 link_all_deplibs=$link_all_deplibs
21161 # Set to "yes" if exported symbols are required.
21162 always_export_symbols=$always_export_symbols
21164 # The commands to list exported symbols.
21165 export_symbols_cmds=$lt_export_symbols_cmds
21167 # Symbols that should not be listed in the preloaded symbols.
21168 exclude_expsyms=$lt_exclude_expsyms
21170 # Symbols that must always be exported.
21171 include_expsyms=$lt_include_expsyms
21173 # Commands necessary for linking programs (against libraries) with templates.
21174 prelink_cmds=$lt_prelink_cmds
21176 # Commands necessary for finishing linking programs.
21177 postlink_cmds=$lt_postlink_cmds
21179 # Specify filename containing input files.
21180 file_list_spec=$lt_file_list_spec
21182 # How to hardcode a shared library path into an executable.
21183 hardcode_action=$hardcode_action
21185 # The directories searched by this compiler when creating a shared library.
21186 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21188 # Dependencies to place before and after the objects being linked to
21189 # create a shared library.
21190 predep_objects=$lt_predep_objects
21191 postdep_objects=$lt_postdep_objects
21192 predeps=$lt_predeps
21193 postdeps=$lt_postdeps
21195 # The library search path used internally by the compiler when linking
21196 # a shared library.
21197 compiler_lib_search_path=$lt_compiler_lib_search_path
21199 # ### END LIBTOOL CONFIG
21203 cat <<'_LT_EOF' >> "$cfgfile"
21205 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21207 # func_munge_path_list VARIABLE PATH
21208 # -----------------------------------
21209 # VARIABLE is name of variable containing _space_ separated list of
21210 # directories to be munged by the contents of PATH, which is string
21213 # string "DIR[ DIR]" will be prepended to VARIABLE
21215 # string "DIR[ DIR]" will be appended to VARIABLE
21216 # "DIRP[:DIRP]::[DIRA:]DIRA"
21217 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21218 # "DIRA[ DIRA]" will be appended to VARIABLE
21220 # VARIABLE will be replaced by "DIR[ DIR]"
21221 func_munge_path_list ()
21227 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
21230 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
21233 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21234 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
21237 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
21243 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21244 func_cc_basename ()
21246 for cc_temp in @S|@*""; do
21248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21254 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21258 # ### END FUNCTIONS SHARED WITH CONFIGURE
21264 cat <<\_LT_EOF >> "$cfgfile"
21265 # AIX sometimes has problems with the GCC collect2 program. For some
21266 # reason, if we set the COLLECT_NAMES environment variable, the problems
21267 # vanish in a puff of smoke.
21268 if test set != "${COLLECT_NAMES+set}"; then
21270 export COLLECT_NAMES
21277 ltmain=$ac_aux_dir/ltmain.sh
21280 # We use sed instead of cat because bash on DJGPP gets confused if
21281 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21282 # text mode, it properly converts lines to CR/LF. This bash problem
21283 # is reportedly fixed, but why not run on old versions too?
21284 sed '$q' "$ltmain" >> "$cfgfile" \
21285 || (rm -f "$cfgfile"; exit 1)
21287 mv -f "$cfgfile" "$ofile" ||
21288 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21292 cat <<_LT_EOF >> "$ofile"
21294 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21296 # The linker used to build libraries.
21299 # How to create reloadable object files.
21300 reload_flag=$lt_reload_flag_CXX
21301 reload_cmds=$lt_reload_cmds_CXX
21303 # Commands used to build an old-style archive.
21304 old_archive_cmds=$lt_old_archive_cmds_CXX
21306 # A language specific compiler.
21307 CC=$lt_compiler_CXX
21309 # Is the compiler the GNU compiler?
21312 # Compiler flag to turn off builtin functions.
21313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21315 # Additional compiler flags for building library objects.
21316 pic_flag=$lt_lt_prog_compiler_pic_CXX
21318 # How to pass a linker flag through the compiler.
21319 wl=$lt_lt_prog_compiler_wl_CXX
21321 # Compiler flag to prevent dynamic linking.
21322 link_static_flag=$lt_lt_prog_compiler_static_CXX
21324 # Does compiler simultaneously support -c and -o options?
21325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21327 # Whether or not to add -lc for building shared libraries.
21328 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21330 # Whether or not to disallow shared libs when runtime libs are static.
21331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21333 # Compiler flag to allow reflexive dlopens.
21334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21336 # Compiler flag to generate shared objects directly from archives.
21337 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21339 # Whether the compiler copes with passing no objects directly.
21340 compiler_needs_object=$lt_compiler_needs_object_CXX
21342 # Create an old-style archive from a shared archive.
21343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21345 # Create a temporary old-style archive to link instead of a shared archive.
21346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21348 # Commands used to build a shared archive.
21349 archive_cmds=$lt_archive_cmds_CXX
21350 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21352 # Commands used to build a loadable module if different from building
21353 # a shared archive.
21354 module_cmds=$lt_module_cmds_CXX
21355 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21357 # Whether we are building with GNU ld or not.
21358 with_gnu_ld=$lt_with_gnu_ld_CXX
21360 # Flag that allows shared libraries with undefined symbols to be built.
21361 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21363 # Flag that enforces no undefined symbols.
21364 no_undefined_flag=$lt_no_undefined_flag_CXX
21366 # Flag to hardcode \$libdir into a binary during linking.
21367 # This must work even if \$libdir does not exist
21368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21370 # Whether we need a single "-rpath" flag with a separated argument.
21371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21373 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21374 # DIR into the resulting binary.
21375 hardcode_direct=$hardcode_direct_CXX
21377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21378 # DIR into the resulting binary and the resulting library dependency is
21379 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21380 # library is relocated.
21381 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21384 # into the resulting binary.
21385 hardcode_minus_L=$hardcode_minus_L_CXX
21387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21388 # into the resulting binary.
21389 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21391 # Set to "yes" if building a shared library automatically hardcodes DIR
21392 # into the library and all subsequent libraries and executables linked
21394 hardcode_automatic=$hardcode_automatic_CXX
21396 # Set to yes if linker adds runtime paths of dependent libraries
21397 # to runtime path list.
21398 inherit_rpath=$inherit_rpath_CXX
21400 # Whether libtool must link a program against all its dependency libraries.
21401 link_all_deplibs=$link_all_deplibs_CXX
21403 # Set to "yes" if exported symbols are required.
21404 always_export_symbols=$always_export_symbols_CXX
21406 # The commands to list exported symbols.
21407 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21409 # Symbols that should not be listed in the preloaded symbols.
21410 exclude_expsyms=$lt_exclude_expsyms_CXX
21412 # Symbols that must always be exported.
21413 include_expsyms=$lt_include_expsyms_CXX
21415 # Commands necessary for linking programs (against libraries) with templates.
21416 prelink_cmds=$lt_prelink_cmds_CXX
21418 # Commands necessary for finishing linking programs.
21419 postlink_cmds=$lt_postlink_cmds_CXX
21421 # Specify filename containing input files.
21422 file_list_spec=$lt_file_list_spec_CXX
21424 # How to hardcode a shared library path into an executable.
21425 hardcode_action=$hardcode_action_CXX
21427 # The directories searched by this compiler when creating a shared library.
21428 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21430 # Dependencies to place before and after the objects being linked to
21431 # create a shared library.
21432 predep_objects=$lt_predep_objects_CXX
21433 postdep_objects=$lt_postdep_objects_CXX
21434 predeps=$lt_predeps_CXX
21435 postdeps=$lt_postdeps_CXX
21437 # The library search path used internally by the compiler when linking
21438 # a shared library.
21439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21441 # ### END LIBTOOL TAG CONFIG: CXX
21452 ac_clean_files=$ac_clean_files_save
21454 test $ac_write_fail = 0 ||
21455 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21458 # configure is writing to config.log, and then calls config.status.
21459 # config.status does its own redirection, appending to config.log.
21460 # Unfortunately, on DOS this fails, as config.log is still kept open
21461 # by configure, so config.status won't be able to write to it; its
21462 # output is simply discarded. So we exec the FD to /dev/null,
21463 # effectively closing config.log, so it can be properly (re)opened and
21464 # appended to by config.status. When coming back to configure, we
21465 # need to make the FD available again.
21466 if test "$no_create" != yes; then
21468 ac_config_status_args=
21469 test "$silent" = yes &&
21470 ac_config_status_args="$ac_config_status_args --quiet"
21472 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21474 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21475 # would make configure fail if this is the last instruction.
21476 $ac_cs_success || as_fn_exit 1
21478 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21480 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}