2 # Generated from testsuite.at by GNU Autoconf 2.68.
4 # Copyright (C) 2009, 2010 Free Software Foundation, Inc.
6 # This test suite is free software; the Free Software Foundation gives
7 # unlimited permission to copy, distribute and modify it.
8 ## -------------------- ##
9 ## M4sh Initialization. ##
10 ## -------------------- ##
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in #(
34 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38 # Prefer a ksh shell builtin over an external printf program on Solaris,
39 # but without wasting forks for bash or zsh.
40 if test -z "$BASH_VERSION$ZSH_VERSION" \
41 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
43 as_echo_n='print -rn --'
44 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
49 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50 as_echo_n='/usr/ucb/echo -n'
52 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 expr "X$arg" : "X\\(.*\\)$as_nl";
58 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
60 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 as_echo_n='sh -c $as_echo_n_body as_echo'
66 as_echo='sh -c $as_echo_body as_echo'
69 # The user is always right.
70 if test "${PATH_SEPARATOR+set}" != set; then
72 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
73 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 # We need space, tab and new line, in precisely that order. Quoting is
81 # there to prevent editors from complaining about space-tab.
82 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
83 # splitting by setting IFS to empty value.)
86 # Find who we are. Look in the path if we contain no directory separator.
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 test -z "$as_dir" && as_dir=.
95 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 # We did not find ourselves, most probably we were run as `sh COMMAND'
102 # in which case we are not to be found in the path.
103 if test "x$as_myself" = x; then
106 if test ! -f "$as_myself"; then
107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 # Unset variables that we do not need and which cause bugs (e.g. in
112 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
113 # suppresses any "Segmentation fault" message there. '((' could
114 # trigger a bug in pdksh 5.2.14.
115 for as_var in BASH_ENV ENV MAIL MAILPATH
116 do eval test x\${$as_var+set} = xset \
117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 if test "x$CONFIG_SHELL" = x; then
133 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
137 # is contrary to our usage. Disable this feature.
138 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 case \`(set -o) 2>/dev/null\` in #(
149 as_required="as_fn_return () { (exit \$1); }
150 as_fn_success () { as_fn_return 0; }
151 as_fn_failure () { as_fn_return 1; }
152 as_fn_ret_success () { return 0; }
153 as_fn_ret_failure () { return 1; }
156 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
157 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
158 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
159 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
160 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163 exitcode=1; echo positional parameters were not saved.
165 test x\$exitcode = x0 || exit 1"
166 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
167 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
168 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
169 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
170 test \$(( 1 + 1 )) = 2 || exit 1"
171 if (eval "$as_required") 2>/dev/null; then :
176 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 test -z "$as_dir" && as_dir=.
188 for as_base in sh bash ksh sh5; do
189 # Try only shells that exist, to save several forks.
190 as_shell=$as_dir/$as_base
191 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
192 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
193 CONFIG_SHELL=$as_shell as_have_required=yes
194 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
203 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
204 CONFIG_SHELL=$SHELL as_have_required=yes
209 if test "x$CONFIG_SHELL" != x; then :
210 # We cannot yet assume a decent shell, so we have to provide a
211 # neutralization value for shells without unset; and this also
212 # works around shells that cannot unset nonexistent variables.
213 # Preserve -v and -x to the replacement shell.
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 *v*x* | *x*v* ) as_opts=-vx ;;
224 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_me=`$as_basename -- "$0" ||
392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393 X"$0" : 'X\(//\)$' \| \
394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 SHELL=${CONFIG_SHELL-/bin/sh}
541 # Not all shells have the 'times' builtin; the subshell is needed to make
542 # sure we discard the 'times: not found' message from the shell.
544 (times) >/dev/null 2>&1 && at_times_p=:
546 # CLI Arguments to pass to the debugging scripts.
550 # Shall we be verbose? ':' means no, empty means yes.
553 # Running several jobs in parallel, 0 means as many as test groups.
557 at_check_filter_trace=:
559 # Shall we keep the debug scripts? Must be `:' when the suite is
560 # run by a debug script, so that the script doesn't remove itself.
562 # Display help message?
564 # Display the version message?
572 # Whether to rerun failed tests.
574 # Whether a write failure occurred
577 # The directory we run the suite in. Default to . if no -C option.
579 # An absolute reference to this testsuite script.
581 [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
582 * ) at_myself=$at_dir/$as_myself ;;
584 # Whether -C is in effect.
587 # Whether to enable colored test results.
589 # List of the tested programs.
591 # As many question marks as there are digits in the last test group number.
592 # Used to normalize the test group numbers so that `ls' lists them in
595 # Description of all the test groups.
596 at_help_all="1;getopt-m4sh.at:85;short option splitting;;
597 2;getopt-m4sh.at:98;enhanced shell short option splitting;;
598 3;getopt-m4sh.at:119;long option splitting;;
599 4;getopt-m4sh.at:132;XSI long option splitting;;
600 5;getopt-m4sh.at:153;option appending;;
601 6;getopt-m4sh.at:169;enhanced shell option appending;;
602 7;libtoolize.at:83;libtoolize macro installation;libtoolize;
603 8;libtoolize.at:108;libtoolize macro directory mismatch error;libtoolize;
604 9;libtoolize.at:128;libtoolize macro serial update;libtoolize;
605 10;libtoolize.at:201;libtoolize config files serial update;libtoolize;
606 11;libtoolize.at:281;diagnose missing LT_CONFIG_LTDL_DIR;libtoolize;
607 12;libtoolize.at:426;copy ltdl.m4 with shared macro directory;libtoolize;
608 13;libtoolize.at:438;correctly parse LTDL_INIT from configure.ac;libtoolize;
609 14;libtoolize.at:450;diagnose missing LTDL_INIT invocation;libtoolize;
610 15;libtoolize.at:527;upgrading verbatim style aclocal.m4;libtoolize automake;
611 16;libtoolize.at:651;verbatim aclocal.m4 w/o AC_CONFIG_MACRO_DIR;libtoolize automake;
612 17;libtoolize.at:783;nonrecursive ltdl with AC_CONFIG_MACRO_DIR;libtoolize;
613 18;libtoolize.at:854;subproject ltdl with non-shared directories;libtoolize;
614 19;libtoolize.at:945;LIBTOOLIZE_OPTIONS;libtoolize;
615 20;libtoolize.at:992;cleanup old installation;libtoolize;
616 21;help.at:26;standard command line options;libtool libtoolize;
617 22;help.at:45;mode short-hands;;
618 23;help.at:97;debug tracing;;
619 24;duplicate_members.at:25;duplicate members in archive tests;libtool;
620 25;duplicate_conv.at:25;duplicate convenience archive names;libtool;
621 26;duplicate_deps.at:25;preserve duplicate convenience deps;libtool;
622 27;flags.at:24;passing CC flags through libtool;libtool cc;
623 28;flags.at:24;passing CXX flags through libtool;libtool cxx;
624 29;flags.at:24;passing F77 flags through libtool;libtool f77;
625 30;flags.at:24;passing FC flags through libtool;libtool fc;
626 31;flags.at:24;passing GCJ flags through libtool;libtool gcj;
627 32;inherited_flags.at:26;inherited_linker_flags;libtool;
628 33;convenience.at:31;C convenience archives;libtool;
629 34;convenience.at:70;C++ convenience archives;cxx libtool;
630 35;convenience.at:110;F77 convenience archives;f77 libtool;
631 36;convenience.at:170;FC convenience archives;fc libtool;
632 37;convenience.at:230;Java convenience archives;gcj libtool;
633 38;link-order.at:26;Link order test;libtool;
634 39;link-order2.at:46;Link order of deplibs;libtool interactive;
635 40;fail.at:27;Failure tests;libtool;
636 41;shlibpath.at:25;shlibpath_overrides_runpath;libtool;
637 42;runpath-in-lalib.at:25;Runpath in libtool library files;libtool;
638 43;static.at:68;static linking flags for programs;libtool interactive;
639 44;static.at:358;ccache -all-static;;
640 45;export.at:25;Export test;libtool;
641 46;search-path.at:24;sys_lib_search_path;libtool;
642 47;search-path.at:62;sys_lib_search_path on w32;libtool;
643 48;indirect_deps.at:25;indirect convenience;libtool;
644 49;indirect_deps.at:71;indirect uninstalled;libtool;
645 50;archive-in-archive.at:26;static library contains static library;libtool;
646 51;exeext.at:26;both of -o prog and -o prog\$EXEEXT work;libtool;
647 52;execute-mode.at:25;execute mode;libtool;
648 53;bindir.at:64;bindir basic lib test;;
649 54;bindir.at:173;bindir install tests;;
650 55;cwrapper.at:25;cwrapper for uninstalled executables;libtool;
651 56;cwrapper.at:138;cwrapper string length;;
652 57;cwrapper.at:201;cwrapper and installed shared libraries;libtool;
653 58;deplib-in-subdir.at:34;deplib in subdir;libtool;
654 59;infer-tag.at:30;inferred tag;libtool;
655 60;infer-tag.at:42;CXX inferred tag;cxx libtool;
656 61;infer-tag.at:55;F77 inferred tag;f77 libtool;
657 62;infer-tag.at:69;FC inferred tag;fc libtool;
658 63;infer-tag.at:83;GCJ inferred tag;gcj libtool;
659 64;localization.at:24;localized compiler messages;libtool;
660 65;nocase.at:26;nocase library search;libtool;
661 66;install.at:25;Install tests;libtool;
662 67;versioning.at:24;versioning;libtool;
663 68;destdir.at:48;Simple DESTDIR install;libtool;
664 69;destdir.at:75;DESTDIR with in-package deplibs;libtool;
665 70;old-m4-iface.at:40;AM_PROG_LIBTOOL;libtoolize autoconf;
666 71;old-m4-iface.at:112;AC_WITH_LTDL;libtoolize automake autoconf;
667 72;am-subdir.at:33;C subdir-objects;libtoolize automake autoconf;
668 73;am-subdir.at:93;C++ subdir-objects;cxx libtoolize automake autoconf;
669 74;lt_dlexit.at:30;lt_dlexit unloading libs;libltdl;
670 75;lt_dladvise.at:28;lt_dlopenadvise library loading;libltdl;
671 76;lt_dlopen.at:23;lt_dlopen error messages;libltdl;
672 77;lt_dlopen_a.at:23;lt_dlopen archive;libltdl lt_dlopen_a;
673 78;lt_dlopenext.at:23;lt_dlopenext error messages;libltdl;
674 79;ltdl-libdir.at:23;libdir of installed modules;libltdl;
675 80;ltdl-api.at:25;ltdl API;libltdl;
676 81;dlloader-api.at:23;dlloader API;libltdl;
677 82;loadlibrary.at:23;loadlibrary error messages;libltdl;
678 83;lalib-syntax.at:24;syntax of .la files;libtool libltdl;
679 84;resident.at:27;resident modules;libltdl;
680 85;slist.at:24;SList functionality;;
681 86;need_lib_prefix.at:25;enforced lib prefix;libltdl libtool;
682 87;standalone.at:31;compiling softlinked libltdl;libtoolize;
683 88;standalone.at:46;compiling copied libltdl;libtoolize;
684 89;standalone.at:61;installable libltdl;libtoolize;
685 90;standalone.at:79;linking libltdl without autotools;libtoolize;
686 91;subproject.at:57;compiling softlinked libltdl;libtoolize automake autoconf;
687 92;subproject.at:73;compiling copied libltdl;libtoolize automake autoconf;
688 93;subproject.at:89;installable libltdl;libtoolize automake autoconf;
689 94;subproject.at:109;linking libltdl without autotools;libtoolize;
690 95;nonrecursive.at:78;compiling softlinked libltdl;libtoolize automake autoconf;
691 96;nonrecursive.at:102;compiling copied libltdl;libtoolize automake autoconf;
692 97;nonrecursive.at:126;installable libltdl;libtoolize automake autoconf;
693 98;recursive.at:60;compiling softlinked libltdl;libtoolize autoconf automake;
694 99;recursive.at:80;compiling copied libltdl;libtoolize autoconf automake;
695 100;recursive.at:100;installable libltdl;libtoolize autoconf automake;
696 101;template.at:27;simple template test;cxx libtool;
697 102;template.at:126;template test with subdirs;cxx libtool;
698 103;ctor.at:27;C++ static constructors;cxx libtool;
699 104;exceptions.at:24;C++ exception handling;libtool libltdl;
700 105;early-libtool.at:32;config.status;libtoolize automake autoconf;
701 106;early-libtool.at:126;config.lt;libtoolize automake autoconf;
702 107;with-pic.at:24;test --with-pic;;
703 108;no-executables.at:25;AC_NO_EXECUTABLES;libtoolize automake autoconf;
704 109;deplibs-ident.at:32;build tree relpaths;libtool;
705 110;configure-iface.at:102;installable libltdl;libltdl libtoolize automake autoconf;
706 111;configure-iface.at:162;--with-ltdl-include/lib;libltdl libtoolize automake autoconf;
707 112;configure-iface.at:243;--with-included-ltdl;libltdl libtoolize automake autoconf;
708 113;configure-iface.at:304;convenience libltdl;libtoolize automake autoconf;
709 114;stresstest.at:31;Link option thorough search test;libtool;
710 115;cmdline_wrap.at:28;Run tests with low max_cmd_len;recursive;
711 116;pic_flag.at:24;override pic_flag at configure time;;
712 117;darwin.at:26;darwin fat compile;;
713 118;darwin.at:103;darwin concurrent library extraction;;
714 119;darwin.at:152;darwin gdb debug information;;
715 120;darwin.at:208;darwin ld warnings changing configure results;libtoolize autoconf automake;
716 121;darwin.at:232;darwin can lt_dlopen .dylib and .so files;libltdl dylib;
717 122;dumpbin-symbols.at:25;dumpbin -symbols section hiding;;
718 123;deplibs-mingw.at:27;deplibs without file command;libtool;
719 124;sysroot.at:203;-L=.../lib -l;libtool sysroot libtoolize automake autoconf;
720 125;sysroot.at:204;-L SYSROOT/.../lib -l;libtool sysroot libtoolize automake autoconf;
721 126;sysroot.at:205;SYSROOT/.../*.la;libtool sysroot libtoolize automake autoconf;
723 # List of the all the test groups.
724 at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
726 # at_fn_validate_ranges NAME...
727 # -----------------------------
728 # Validate and normalize the test group number contained in each variable
729 # NAME. Leading zeroes are treated as decimal.
730 at_fn_validate_ranges ()
734 eval at_value=\$$at_grp
735 if test $at_value -lt 1 || test $at_value -gt 126; then
736 $as_echo "invalid test group: $at_value" >&2
740 0*) # We want to treat leading 0 as decimal, like expr and test, but
741 # AS_VAR_ARITH treats it as octal if it uses $(( )).
742 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
743 # expr fork, but it is not worth the effort to determine if the
744 # shell supports XSI when the user can just avoid leading 0.
745 eval $at_grp='`expr $at_value + 0`' ;;
753 # If the previous option needs an argument, assign it.
754 if test -n "$at_prev"; then
755 at_option=$at_prev=$at_option
760 *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
764 # Accept the important Cygnus configure options, so we can diagnose typos.
788 no | never | none) at_color=never ;;
789 auto | tty | if-tty) at_color=auto ;;
790 always | yes | force) at_color=always ;;
791 *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
792 as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
806 at_verbose=; at_quiet=:
812 at_check_filter_trace=at_fn_filter_trace
815 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
816 at_fn_validate_ranges at_option
817 as_fn_append at_groups "$at_option$as_nl"
821 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
822 at_range_start=`echo $at_option |tr -d X-`
823 at_fn_validate_ranges at_range_start
824 at_range=`$as_echo "$at_groups_all" | \
825 sed -ne '/^'$at_range_start'$/,$p'`
826 as_fn_append at_groups "$at_range$as_nl"
829 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
830 at_range_end=`echo $at_option |tr -d X-`
831 at_fn_validate_ranges at_range_end
832 at_range=`$as_echo "$at_groups_all" | \
833 sed -ne '1,/^'$at_range_end'$/p'`
834 as_fn_append at_groups "$at_range$as_nl"
837 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
838 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
839 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
840 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
841 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
842 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
843 at_range_start=`expr $at_option : '\(.*\)-'`
844 at_range_end=`expr $at_option : '.*-\(.*\)'`
845 if test $at_range_start -gt $at_range_end; then
847 at_range_end=$at_range_start
848 at_range_start=$at_tmp
850 at_fn_validate_ranges at_range_start at_range_end
851 at_range=`$as_echo "$at_groups_all" | \
852 sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
853 as_fn_append at_groups "$at_range$as_nl"
856 # Directory selection.
863 if test x- = "x$at_dir" ; then
868 # Parallel execution.
872 --jobs=* | -j[0-9]* )
873 if test -n "$at_optarg"; then
876 at_jobs=`expr X$at_option : 'X-j\(.*\)'`
878 case $at_jobs in *[!0-9]*)
879 at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
880 as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
889 at_groups_selected=$at_help_all
901 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
904 # It is on purpose that we match the test group titles too.
905 at_groups_selected=`$as_echo "$at_groups_selected" |
906 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
908 # Smash the keywords.
909 at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
910 as_fn_append at_groups "$at_groups_selected$as_nl"
917 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
918 # Reject names that are not valid shell variable names.
920 '' | [0-9]* | *[!_$as_cr_alnum]* )
921 as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
923 at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
924 # Export now, but save eval for later and for debug scripts.
926 as_fn_append at_debug_args " $at_envvar='$at_value'"
929 *) $as_echo "$as_me: invalid option: $at_option" >&2
930 $as_echo "Try \`$0 --help' for more information." >&2
936 # Verify our last option didn't require an argument
937 if test -n "$at_prev"; then :
938 as_fn_error $? "\`$at_prev' requires an argument"
941 # The file containing the suite.
942 at_suite_log=$at_dir/$as_me.log
944 # Selected test groups.
945 if test -z "$at_groups$at_recheck"; then
946 at_groups=$at_groups_all
948 if test -n "$at_recheck" && test -r "$at_suite_log"; then
949 at_oldfails=`sed -n '
950 /^Failed tests:$/,/^Skipped tests:$/{
951 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
953 /^Unexpected passes:$/,/^## Detailed failed tests/{
954 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
956 /^## Detailed failed tests/q
958 as_fn_append at_groups "$at_oldfails$as_nl"
960 # Sort the tests, removing duplicates.
961 at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
964 if test x"$at_color" = xalways \
965 || { test x"$at_color" = xauto && test -t 1; }; then
966 at_red=`printf '\033[0;31m'`
967 at_grn=`printf '\033[0;32m'`
968 at_lgn=`printf '\033[1;32m'`
969 at_blu=`printf '\033[1;34m'`
970 at_std=`printf '\033[m'`
972 at_red= at_grn= at_lgn= at_blu= at_std=
977 cat <<_ATEOF || at_write_fail=1
978 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
980 Run all the tests, or the selected TESTS, given by numeric ranges, and
981 save a detailed log file. Upon failure, create debugging scripts.
983 Do not change environment variables directly. Instead, set them via
984 command line arguments. Set \`AUTOTEST_PATH' to select the executables
985 to exercise. Each relative directory is expanded as build and source
986 directories relative to the top level of this distribution.
987 E.g., from within the build directory /tmp/foo-1.0, invoking this:
989 $ $0 AUTOTEST_PATH=bin
991 is equivalent to the following, assuming the source directory is /src/foo-1.0:
993 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
995 cat <<_ATEOF || at_write_fail=1
998 -h, --help print the help message, then exit
999 -V, --version print version number, then exit
1000 -c, --clean remove all the files this test suite might create and exit
1001 -l, --list describes all the tests, or the selected TESTS
1003 cat <<_ATEOF || at_write_fail=1
1007 change to directory DIR before starting
1008 --color[=never|auto|always]
1009 disable colored test results, or enable even without terminal
1011 Allow N jobs at once; infinite jobs with no arg (default 1)
1012 -k, --keywords=KEYWORDS
1013 select the tests matching all the comma-separated KEYWORDS
1014 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
1015 --recheck select all tests that failed or passed unexpectedly last time
1016 -e, --errexit abort as soon as a test fails; implies --debug
1017 -v, --verbose force more detailed output
1018 default for debugging scripts
1019 -d, --debug inhibit clean up and top-level logging
1020 default for debugging scripts
1021 -x, --trace enable tests shell tracing
1023 cat <<_ATEOF || at_write_fail=1
1025 Report bugs to <bug-libtool@gnu.org>.
1026 GNU Libtool home page: <http://www.gnu.org/software/libtool/>.
1027 General help using GNU software: <http://www.gnu.org/gethelp/>.
1034 cat <<_ATEOF || at_write_fail=1
1035 GNU Libtool 2.4.2 test suite test groups:
1037 NUM: FILE-NAME:LINE TEST-GROUP-NAME
1041 # Pass an empty line as separator between selected groups and help.
1042 $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
1043 awk 'NF == 1 && FS != ";" {
1049 if (selected[$ 1]) {
1050 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1056 n = split ($ 4, a, " ")
1057 for (i = 1; i <= n; i++) {
1058 l = length (a[i]) + 1
1059 if (i > 1 && len + l > lmax) {
1061 line = indent " " a[i]
1064 line = line " " a[i]
1072 }' || at_write_fail=1
1075 if $at_version_p; then
1076 $as_echo "$as_me (GNU Libtool 2.4.2)" &&
1077 cat <<\_ATEOF || at_write_fail=1
1079 Copyright (C) 2010 Free Software Foundation, Inc.
1080 This test suite is free software; the Free Software Foundation gives
1081 unlimited permission to copy, distribute and modify it.
1086 # Should we print banners? Yes if more than one test is run.
1087 case $at_groups in #(
1089 at_print_banners=: ;; #(
1090 * ) at_print_banners=false ;;
1092 # Text for banner N, set to a single space once printed.
1093 # Banner 1. getopt-m4sh.at:25
1094 # Category starts at test group 1.
1095 at_banner_text_1="Shell option parser generator."
1096 # Banner 2. libtoolize.at:26
1097 # Category starts at test group 7.
1098 at_banner_text_2="Libtoolize operation."
1099 # Banner 3. help.at:24
1100 # Category starts at test group 21.
1101 at_banner_text_3="Testing libtool functions."
1102 # Banner 4. destdir.at:25
1103 # Category starts at test group 68.
1104 at_banner_text_4="DESTDIR tests"
1105 # Banner 5. old-m4-iface.at:26
1106 # Category starts at test group 70.
1107 at_banner_text_5="Support for older m4 interface."
1108 # Banner 6. am-subdir.at:26
1109 # Category starts at test group 72.
1110 at_banner_text_6="Libtool subdir-objects support."
1111 # Banner 7. lt_dlexit.at:28
1112 # Category starts at test group 74.
1113 at_banner_text_7="Libltdl functionality."
1114 # Banner 8. standalone.at:25
1115 # Category starts at test group 87.
1116 at_banner_text_8="Standalone Libltdl."
1117 # Banner 9. subproject.at:25
1118 # Category starts at test group 91.
1119 at_banner_text_9="Subproject Libltdl."
1120 # Banner 10. nonrecursive.at:26
1121 # Category starts at test group 95.
1122 at_banner_text_10="Nonrecursive Automake Libltdl."
1123 # Banner 11. recursive.at:25
1124 # Category starts at test group 98.
1125 at_banner_text_11="Recursive Automake Libltdl."
1126 # Banner 12. template.at:25
1127 # Category starts at test group 101.
1128 at_banner_text_12="C++ template tests."
1129 # Banner 13. ctor.at:25
1130 # Category starts at test group 103.
1131 at_banner_text_13="Constructors."
1132 # Banner 14. early-libtool.at:25
1133 # Category starts at test group 105.
1134 at_banner_text_14="libtool script generation."
1135 # Banner 15. no-executables.at:24
1136 # Category starts at test group 108.
1137 at_banner_text_15="Libtool usage in GCC"
1138 # Banner 16. deplibs-ident.at:25
1139 # Category starts at test group 109.
1140 at_banner_text_16="Detecting identical deplibs."
1141 # Banner 17. configure-iface.at:25
1142 # Category starts at test group 110.
1143 at_banner_text_17="configure interface to libltdl."
1144 # Banner 18. stresstest.at:30
1145 # Category starts at test group 114.
1146 at_banner_text_18="Libtool stress test."
1147 # Banner 19. darwin.at:25
1148 # Category starts at test group 117.
1149 at_banner_text_19="Mac OS X tests"
1150 # Banner 20. dumpbin-symbols.at:24
1151 # Category starts at test group 122.
1152 at_banner_text_20="Windows tests."
1153 # Banner 21. sysroot.at:202
1154 # Category starts at test group 124.
1155 at_banner_text_21="sysroot tests"
1157 # Take any -C into account.
1158 if $at_change_dir ; then
1159 test x != "x$at_dir" && cd "$at_dir" \
1160 || as_fn_error $? "unable to change directory"
1164 # Load the config files for any default variable assignments.
1165 for at_file in atconfig atlocal
1167 test -r $at_file || continue
1168 . ./$at_file || as_fn_error $? "invalid content: $at_file"
1171 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1172 : "${at_top_build_prefix=$at_top_builddir}"
1174 # Perform any assignments requested during argument parsing.
1175 eval "$at_debug_args"
1177 # atconfig delivers names relative to the directory the test suite is
1178 # in, but the groups themselves are run in testsuite-dir/group-dir.
1179 if test -n "$at_top_srcdir"; then
1181 for at_dir_var in srcdir top_srcdir top_build_prefix
1183 eval at_val=\$at_$at_dir_var
1185 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1186 *) at_prefix=../../ ;;
1188 eval "$at_dir_var=\$at_prefix\$at_val"
1192 ## -------------------- ##
1193 ## Directory structure. ##
1194 ## -------------------- ##
1196 # This is the set of directories and files used by this script
1197 # (non-literals are capitalized):
1199 # TESTSUITE - the testsuite
1200 # TESTSUITE.log - summarizes the complete testsuite run
1201 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1202 # + at-groups/ - during a run: status of all groups in run
1203 # | + NNN/ - during a run: meta-data about test group NNN
1204 # | | + check-line - location (source file and line) of current AT_CHECK
1205 # | | + status - exit status of current AT_CHECK
1206 # | | + stdout - stdout of current AT_CHECK
1207 # | | + stder1 - stderr, including trace
1208 # | | + stderr - stderr, with trace filtered out
1209 # | | + test-source - portion of testsuite that defines group
1210 # | | + times - timestamps for computing duration
1211 # | | + pass - created if group passed
1212 # | | + xpass - created if group xpassed
1213 # | | + fail - created if group failed
1214 # | | + xfail - created if group xfailed
1215 # | | + skip - created if group skipped
1216 # + at-stop - during a run: end the run if this file exists
1217 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1218 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1219 # | + TESTSUITE.log - summarizes the group results
1220 # | + ... - files created during the group
1222 # The directory the whole suite works in.
1223 # Should be absolute to let the user `cd' at will.
1224 at_suite_dir=$at_dir/$as_me.dir
1225 # The file containing the suite ($at_dir might have changed since earlier).
1226 at_suite_log=$at_dir/$as_me.log
1227 # The directory containing helper files per test group.
1228 at_helper_dir=$at_suite_dir/at-groups
1229 # Stop file: if it exists, do not start new jobs.
1230 at_stop_file=$at_suite_dir/at-stop
1231 # The fifo used for the job dispatcher.
1232 at_job_fifo=$at_suite_dir/at-job-fifo
1235 test -d "$at_suite_dir" &&
1236 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1237 rm -f -r "$at_suite_dir" "$at_suite_log"
1241 # Don't take risks: use only absolute directories in PATH.
1243 # For stand-alone test suites (ie. atconfig was not found),
1244 # AUTOTEST_PATH is relative to `.'.
1246 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1247 # of the package. Then expand it into build/src parts, since users
1248 # may create executables in both places.
1249 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252 for as_dir in $AUTOTEST_PATH $PATH
1255 test -z "$as_dir" && as_dir=.
1256 test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1259 as_fn_append at_path "$as_dir"
1262 if test -z "$at_top_build_prefix"; then
1263 # Stand-alone test suite.
1264 as_fn_append at_path "$as_dir"
1266 # Embedded test suite.
1267 as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1268 as_fn_append at_path "$at_top_srcdir/$as_dir"
1276 # Now build and simplify PATH.
1278 # There might be directories that don't exist, but don't redirect
1279 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $at_path
1285 test -z "$as_dir" && as_dir=.
1286 test -d "$as_dir" || continue
1288 [\\/]* | ?:[\\/]* ) ;;
1289 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1291 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1292 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1293 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1294 *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1302 # Setting up the FDs.
1306 # 5 is the log file. Not to be overwritten if `-d'.
1307 if $at_debug_p; then
1308 at_suite_log=/dev/null
1312 exec 5>>"$at_suite_log"
1315 $as_echo "## ----------------------------- ##
1316 ## GNU Libtool 2.4.2 test suite. ##
1317 ## ----------------------------- ##"
1319 $as_echo "## ----------------------------- ##
1320 ## GNU Libtool 2.4.2 test suite. ##
1321 ## ----------------------------- ##"
1324 $as_echo "$as_me: command line was:"
1325 $as_echo " \$ $0 $at_cli_args"
1328 # If ChangeLog exists, list a few lines in case it might help determining
1329 # the exact version.
1330 if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1331 $as_echo "## ---------- ##
1335 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1345 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1346 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1347 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1348 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1349 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1351 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1352 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1354 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1355 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1357 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1358 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1359 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1360 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 test -z "$as_dir" && as_dir=.
1369 $as_echo "PATH: $as_dir"
1376 # Contents of the config files.
1377 for at_file in atconfig atlocal
1379 test -r $at_file || continue
1380 $as_echo "$as_me: $at_file:"
1381 sed 's/^/| /' $at_file
1387 : ${ACLOCAL=aclocal}
1388 : ${AUTOHEADER=autoheader}
1389 : ${AUTOCONF=autoconf}
1390 : ${AUTOMAKE=automake}
1391 : ${AUTORECONF=autoreconf}
1392 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
1394 for tool in ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF; do
1395 if eval \$$tool --version >/dev/null 2>&1; then :; else eval $tool=no; fi
1397 export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF
1398 eval `$LIBTOOL --config | grep '^EGREP='`
1399 eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|build_alias|to_host_file_cmd|to_tool_file_cmd)='`
1400 configure_options=--prefix=/nonexistent
1401 if test -n "$host_alias"; then
1402 configure_options="$configure_options --host $host_alias"
1404 if test -n "$build_alias"; then
1405 configure_options="$configure_options --build $build_alias"
1407 if test -n "$to_host_file_cmd"; then
1408 configure_options="$configure_options lt_cv_to_host_file_cmd=$to_host_file_cmd"
1410 if test -n "$to_tool_file_cmd"; then
1411 configure_options="$configure_options lt_cv_to_tool_file_cmd=$to_tool_file_cmd"
1413 if (FOO=bar; unset FOO) >/dev/null 2>&1; then
1418 : ${mkdir_p="$abs_top_srcdir/libltdl/config/install-sh -d"}
1419 # Fix relative paths in $lt_INSTALL
1421 *libltdl/config/install-sh*)
1422 lt_INSTALL=$abs_top_srcdir/libltdl/config/install-sh
1426 # Unset some MAKE... variables that may cause $MAKE to act like a
1427 # recursively invoked sub-make. Any $MAKE invocation in a test is
1428 # conceptually an independent invocation.
1429 unset MFLAGS MAKEFLAGS MAKELEVEL __MKLVL__ MAKE_JOBS_FIFO
1431 # On AIX, shared libraries remain loaded in memory after use if they
1432 # are world-readable, until root issues slibclean. On NFS, this causes
1433 # a testsuite rerun to fail to clean up test group directories. Avoid
1434 # this with a suitable umask. Do not do this on other systems, for
1435 # example HP-UX suffers unless shared libraries are mode 555.
1437 aix*) umask o-rwx ;;
1440 ## ------------------------- ##
1441 ## Autotest shell functions. ##
1442 ## ------------------------- ##
1444 # at_fn_banner NUMBER
1445 # -------------------
1446 # Output banner NUMBER, provided the testsuite is running multiple groups and
1447 # this particular banner has not yet been printed.
1450 $at_print_banners || return 0
1451 eval at_banner_text=\$at_banner_text_$1
1452 test "x$at_banner_text" = "x " && return 0
1453 eval "at_banner_text_$1=\" \""
1454 if test -z "$at_banner_text"; then
1457 $as_echo "$as_nl$at_banner_text$as_nl"
1461 # at_fn_check_prepare_notrace REASON LINE
1462 # ---------------------------------------
1463 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1464 # command; REASON is the reason for disabling tracing.
1465 at_fn_check_prepare_notrace ()
1467 $at_trace_echo "Not enabling shell tracing (command contains $1)"
1468 $as_echo "$2" >"$at_check_line_file"
1469 at_check_trace=: at_check_filter=:
1470 : >"$at_stdout"; : >"$at_stderr"
1473 # at_fn_check_prepare_trace LINE
1474 # ------------------------------
1475 # Perform AT_CHECK preparations for the command at LINE for a traceable
1477 at_fn_check_prepare_trace ()
1479 $as_echo "$1" >"$at_check_line_file"
1480 at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1481 : >"$at_stdout"; : >"$at_stderr"
1484 # at_fn_check_prepare_dynamic COMMAND LINE
1485 # ----------------------------------------
1486 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1487 # preparation function.
1488 at_fn_check_prepare_dynamic ()
1492 at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1494 at_fn_check_prepare_trace "$2" ;;
1498 # at_fn_filter_trace
1499 # ------------------
1500 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1502 at_fn_filter_trace ()
1504 mv "$at_stderr" "$at_stder1"
1505 grep '^ *+' "$at_stder1" >&2
1506 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1509 # at_fn_log_failure FILE-LIST
1510 # ---------------------------
1511 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1512 # with a failure exit code.
1513 at_fn_log_failure ()
1516 do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1517 echo 1 > "$at_status_file"
1521 # at_fn_check_skip EXIT-CODE LINE
1522 # -------------------------------
1523 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1524 # the test group subshell with that same exit code. Use LINE in any report
1525 # about test failure.
1529 99) echo 99 > "$at_status_file"; at_failed=:
1530 $as_echo "$2: hard failure"; exit 99;;
1531 77) echo 77 > "$at_status_file"; exit 77;;
1535 # at_fn_check_status EXPECTED EXIT-CODE LINE
1536 # ------------------------------------------
1537 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1538 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1539 # exit code; if it is anything else print an error message referring to LINE,
1540 # and fail the test.
1541 at_fn_check_status ()
1545 77) echo 77 > "$at_status_file"; exit 77;;
1546 99) echo 99 > "$at_status_file"; at_failed=:
1547 $as_echo "$3: hard failure"; exit 99;;
1548 *) $as_echo "$3: exit code was $2, expected $1"
1553 # at_fn_diff_devnull FILE
1554 # -----------------------
1555 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1557 at_fn_diff_devnull ()
1559 test -s "$1" || return 0
1560 $at_diff "$at_devnull" "$1"
1565 # Parse out test NUMBER from the tail of this file.
1568 eval at_sed=\$at_sed$1
1569 sed "$at_sed" "$at_myself" > "$at_test_source"
1572 # at_fn_create_debugging_script
1573 # -----------------------------
1574 # Create the debugging script $at_group_dir/run which will reproduce the
1575 # current test group.
1576 at_fn_create_debugging_script ()
1579 echo "#! /bin/sh" &&
1580 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1581 $as_echo "cd '$at_dir'" &&
1582 $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1584 } >"$at_group_dir/run" &&
1585 chmod +x "$at_group_dir/run"
1588 ## -------------------------------- ##
1589 ## End of autotest shell functions. ##
1590 ## -------------------------------- ##
1592 $as_echo "## ---------------- ##
1593 ## Tested programs. ##
1594 ## ---------------- ##"
1598 # Report what programs are being tested.
1599 for at_program in : $at_tested
1601 test "$at_program" = : && continue
1603 [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 test -f "$as_dir/$at_program" && break
1614 at_program_=$as_dir/$at_program ;;
1616 if test -f "$at_program_"; then
1618 $as_echo "$at_srcdir/testsuite.at:461: $at_program_ --version"
1619 "$at_program_" --version </dev/null
1623 as_fn_error $? "cannot find $at_program" "$LINENO" 5
1628 $as_echo "## ------------------ ##
1629 ## Running the tests. ##
1630 ## ------------------ ##"
1633 at_start_date=`date`
1634 at_start_time=`date +%s 2>/dev/null`
1635 $as_echo "$as_me: starting at: $at_start_date" >&5
1637 # Create the master directory if it doesn't already exist.
1638 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1639 as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1641 # Can we diff with `/dev/null'? DU 5.0 refuses.
1642 if diff /dev/null /dev/null >/dev/null 2>&1; then
1643 at_devnull=/dev/null
1645 at_devnull=$at_suite_dir/devnull
1649 # Use `diff -u' when possible.
1650 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1657 # Get the last needed group.
1658 for at_group in : $at_groups; do :; done
1660 # Extract the start and end lines of each test group at the tail
1668 test = substr ($ 0, 10)
1669 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1670 if (test == "'"$at_group"'") exit
1671 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1672 . "$at_suite_dir/at-source-lines" ||
1673 as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1674 rm -f "$at_suite_dir/at-source-lines"
1676 # Set number of jobs for `-j'; avoid more jobs than test groups.
1677 set X $at_groups; shift; at_max_jobs=$#
1678 if test $at_max_jobs -eq 0; then
1681 if test $at_jobs -ne 1 &&
1682 { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1683 at_jobs=$at_max_jobs
1686 # If parallel mode, don't output banners, don't split summary lines.
1687 if test $at_jobs -ne 1; then
1688 at_print_banners=false
1692 # Set up helper dirs.
1693 rm -rf "$at_helper_dir" &&
1694 mkdir "$at_helper_dir" &&
1695 cd "$at_helper_dir" &&
1696 { test -z "$at_groups" || mkdir $at_groups; } ||
1697 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1699 # Functions for running a test group. We leave the actual
1700 # test group execution outside of a shell function in order
1701 # to avoid hitting zsh 4.x exit status bugs.
1703 # at_fn_group_prepare
1704 # -------------------
1705 # Prepare for running a test group.
1706 at_fn_group_prepare ()
1708 # The directory for additional per-group helper files.
1709 at_job_dir=$at_helper_dir/$at_group
1710 # The file containing the location of the last AT_CHECK.
1711 at_check_line_file=$at_job_dir/check-line
1712 # The file containing the exit status of the last command.
1713 at_status_file=$at_job_dir/status
1714 # The files containing the output of the tested commands.
1715 at_stdout=$at_job_dir/stdout
1716 at_stder1=$at_job_dir/stder1
1717 at_stderr=$at_job_dir/stderr
1718 # The file containing the code for a test group.
1719 at_test_source=$at_job_dir/test-source
1720 # The file containing dates.
1721 at_times_file=$at_job_dir/times
1723 # Be sure to come back to the top test directory.
1726 # Clearly separate the test groups when verbose.
1727 $at_first || $at_verbose echo
1729 at_group_normalized=$at_group
1732 case $at_group_normalized in #(
1733 '"$at_format"'*) break;;
1735 at_group_normalized=0$at_group_normalized
1739 # Create a fresh directory for the next test group, and enter.
1740 # If one already exists, the user may have invoked ./run from
1741 # within that directory; we remove the contents, but not the
1742 # directory itself, so that we aren't pulling the rug out from
1743 # under the shell's notion of the current directory.
1744 at_group_dir=$at_suite_dir/$at_group_normalized
1745 at_group_log=$at_group_dir/$as_me.log
1746 if test -d "$at_group_dir"; then
1747 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1748 rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1751 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1752 # Be tolerant if the above `rm' was not able to remove the directory.
1753 as_dir="$at_group_dir"; as_fn_mkdir_p
1755 echo 0 > "$at_status_file"
1757 # In verbose mode, append to the log file *and* show on
1758 # the standard output; in quiet mode only write to the log.
1759 if test -z "$at_verbose"; then
1760 at_tee_pipe='tee -a "$at_group_log"'
1762 at_tee_pipe='cat >> "$at_group_log"'
1766 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1767 # -------------------------------------------------
1768 # Declare the test group ORDINAL, located at LINE with group description DESC,
1769 # and residing under BANNER. Use PAD to align the status column.
1770 at_fn_group_banner ()
1773 test -n "$5" && at_fn_banner $5
1776 [0-9]) at_desc_line=" $1: ";;
1777 [0-9][0-9]) at_desc_line=" $1: " ;;
1778 *) at_desc_line="$1: " ;;
1780 as_fn_append at_desc_line "$3$4"
1781 $at_quiet $as_echo_n "$at_desc_line"
1782 echo "# -*- compilation -*-" >> "$at_group_log"
1785 # at_fn_group_postprocess
1786 # -----------------------
1787 # Perform cleanup after running a test group.
1788 at_fn_group_postprocess ()
1790 # Be sure to come back to the suite directory, in particular
1791 # since below we might `rm' the group directory we are in currently.
1794 if test ! -f "$at_check_line_file"; then
1795 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1796 A failure happened in a test group before any test could be
1797 run. This means that test suite is improperly designed. Please
1798 report this failure to <bug-libtool@gnu.org>.
1800 $as_echo "$at_setup_line" >"$at_check_line_file"
1803 $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1804 $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1805 case $at_xfail:$at_status in
1807 at_msg="UNEXPECTED PASS"
1809 at_errexit=$at_errexit_p
1819 at_msg='skipped ('`cat "$at_check_line_file"`')'
1825 at_msg='FAILED ('`cat "$at_check_line_file"`')'
1827 at_errexit=$at_errexit_p
1831 at_msg='expected failure ('`cat "$at_check_line_file"`')'
1837 echo "$at_res" > "$at_job_dir/$at_res"
1838 # In parallel mode, output the summary line only afterwards.
1839 if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1840 $as_echo "$at_desc_line $at_color$at_msg$at_std"
1842 # Make sure there is a separator even with long titles.
1843 $as_echo " $at_color$at_msg$at_std"
1845 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1848 # $at_times_file is only available if the group succeeded.
1849 # We're not including the group log, so the success message
1850 # is written in the global log separately. But we also
1851 # write to the group log in case they're using -d.
1852 if test -f "$at_times_file"; then
1853 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
1854 rm -f "$at_times_file"
1856 $as_echo "$at_log_msg" >> "$at_group_log"
1857 $as_echo "$at_log_msg" >&5
1859 # Cleanup the group directory, unless the user wants the files
1860 # or the success was unexpected.
1861 if $at_debug_p || test $at_res = xpass; then
1862 at_fn_create_debugging_script
1863 if test $at_res = xpass && $at_errexit; then
1864 echo stop > "$at_stop_file"
1867 if test -d "$at_group_dir"; then
1868 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1869 rm -fr "$at_group_dir"
1871 rm -f "$at_test_source"
1875 # Upon failure, include the log into the testsuite's global
1876 # log. The failure message is written in the group log. It
1877 # is later included in the global log.
1878 $as_echo "$at_log_msg" >> "$at_group_log"
1880 # Upon failure, keep the group directory for autopsy, and create
1881 # the debugging script. With -e, do not start any further tests.
1882 at_fn_create_debugging_script
1883 if $at_errexit; then
1884 echo stop > "$at_stop_file"
1896 if (set -m && set +m && set +b) >/dev/null 2>&1; then
1898 at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
1900 at_job_control_on=: at_job_control_off=: at_job_group=
1903 for at_signal in 1 2 15; do
1904 trap 'set +x; set +e
1906 at_signal='"$at_signal"'
1907 echo stop > "$at_stop_file"
1910 for at_pgid in `jobs -p 2>/dev/null`; do
1911 at_pgids="$at_pgids $at_job_group$at_pgid"
1913 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
1915 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
1918 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
1920 test 0 -gt 2 && at_signame=$at_signal
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
1922 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
1923 as_fn_arith 128 + $at_signal && exit_status=$as_val
1924 as_fn_exit $exit_status' $at_signal
1927 rm -f "$at_stop_file"
1930 if test $at_jobs -ne 1 &&
1931 rm -f "$at_job_fifo" &&
1932 test -n "$at_job_group" &&
1933 ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
1935 # FIFO job dispatcher.
1938 for at_pid in `jobs -p`; do
1939 at_pids="$at_pids $at_job_group$at_pid"
1941 if test -n "$at_pids"; then
1943 test "${TMOUT+set}" = set && at_sig=STOP
1944 kill -$at_sig $at_pids 2>/dev/null
1947 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
1950 # Turn jobs into a list of numbers, starting from 1.
1951 at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
1955 for at_group in $at_groups; do
1956 $at_job_control_on 2>/dev/null
1958 # Start one test group.
1961 exec 7>"$at_job_fifo"
1965 trap 'set +x; set +e
1967 echo stop > "$at_stop_file"
1969 as_fn_exit 141' PIPE
1971 if cd "$at_group_dir" &&
1972 at_fn_test $at_group &&
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1976 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1979 at_fn_group_postprocess
1985 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
1987 shift # Consume one token.
1988 if test $# -gt 0; then :; else
1989 read at_token <&6 || break
1992 test -f "$at_stop_file" && break
1995 # Read back the remaining ($at_jobs - 1) tokens.
1998 if test $# -gt 0; then
2008 # Run serially, avoid forks and other potential surprises.
2009 for at_group in $at_groups; do
2011 if cd "$at_group_dir" &&
2012 at_fn_test $at_group &&
2013 . "$at_test_source"; then :; else
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2015 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2018 at_fn_group_postprocess
2019 test -f "$at_stop_file" && break
2024 # Wrap up the test suite with summary statistics.
2027 # Use ?..???? when the list must remain sorted, the faster * otherwise.
2028 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
2029 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
2030 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
2031 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
2032 echo $f; done | sed '/?/d; s,/xpass,,'`
2033 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
2034 echo $f; done | sed '/?/d; s,/fail,,'`
2036 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
2037 shift; at_group_count=$#
2038 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
2039 set X $at_xfail_list; shift; at_xfail_count=$#
2040 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
2041 set X $at_skip_list; shift; at_skip_count=$#
2043 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
2044 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
2045 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
2047 # Back to the top directory.
2049 rm -rf "$at_helper_dir"
2051 # Compute the duration of the suite.
2053 at_stop_time=`date +%s 2>/dev/null`
2054 $as_echo "$as_me: ending at: $at_stop_date" >&5
2055 case $at_start_time,$at_stop_time in
2057 as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
2058 as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
2059 as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
2060 as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
2061 as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
2062 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
2063 $as_echo "$as_me: test suite duration: $at_duration" >&5
2068 $as_echo "## ------------- ##
2070 ## ------------- ##"
2074 $as_echo "## ------------- ##
2076 ## ------------- ##"
2080 if test $at_run_count = 1; then
2084 at_result="$at_run_count tests"
2087 if $at_errexit_p && test $at_unexpected_count != 0; then
2088 if test $at_xpass_count = 1; then
2089 at_result="$at_result $at_were run, one passed"
2091 at_result="$at_result $at_were run, one failed"
2093 at_result="$at_result unexpectedly and inhibited subsequent tests."
2096 # Don't you just love exponential explosion of the number of cases?
2098 case $at_xpass_count:$at_fail_count:$at_xfail_count in
2100 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
2101 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
2103 # Some unexpected failures
2104 0:*:0) at_result="$at_result $at_were run,
2105 $at_fail_count failed unexpectedly." ;;
2107 # Some failures, both expected and unexpected
2108 0:*:1) at_result="$at_result $at_were run,
2109 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2110 0:*:*) at_result="$at_result $at_were run,
2111 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2113 # No unexpected failures, but some xpasses
2114 *:0:*) at_result="$at_result $at_were run,
2115 $at_xpass_count passed unexpectedly." ;;
2117 # No expected failures, but failures and xpasses
2118 *:1:0) at_result="$at_result $at_were run,
2119 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
2120 *:*:0) at_result="$at_result $at_were run,
2121 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
2124 *:*:1) at_result="$at_result $at_were run,
2125 $at_xpass_count passed unexpectedly,
2126 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2127 *:*:*) at_result="$at_result $at_were run,
2128 $at_xpass_count passed unexpectedly,
2129 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2132 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2133 at_result="All $at_result"
2137 # Now put skips in the mix.
2138 case $at_skip_count in
2140 1) at_result="$at_result
2141 1 test was skipped." ;;
2142 *) at_result="$at_result
2143 $at_skip_count tests were skipped." ;;
2146 if test $at_unexpected_count = 0; then
2147 echo "$at_color$at_result$at_std"
2148 echo "$at_result" >&5
2150 echo "${at_color}ERROR: $at_result$at_std" >&2
2151 echo "ERROR: $at_result" >&5
2154 $as_echo "## ------------------------ ##
2155 ## Summary of the failures. ##
2156 ## ------------------------ ##"
2158 # Summary of failed and skipped tests.
2159 if test $at_fail_count != 0; then
2160 echo "Failed tests:"
2161 $SHELL "$at_myself" $at_fail_list --list
2164 if test $at_skip_count != 0; then
2165 echo "Skipped tests:"
2166 $SHELL "$at_myself" $at_skip_list --list
2169 if test $at_xpass_count != 0; then
2170 echo "Unexpected passes:"
2171 $SHELL "$at_myself" $at_xpass_list --list
2174 if test $at_fail_count != 0; then
2175 $as_echo "## ---------------------- ##
2176 ## Detailed failed tests. ##
2177 ## ---------------------- ##"
2179 for at_group in $at_fail_list
2181 at_group_normalized=$at_group
2184 case $at_group_normalized in #(
2185 '"$at_format"'*) break;;
2187 at_group_normalized=0$at_group_normalized
2190 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
2195 if test -n "$at_top_srcdir"; then
2196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2197 ## ${at_top_build_prefix}config.log ##
2199 sed 's/^/| /' ${at_top_build_prefix}config.log
2204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2205 ## $as_me.log was created. ##
2209 if $at_debug_p; then
2210 at_msg='per-test log files'
2212 at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2214 $as_echo "Please send $at_msg and all information you think might help:
2216 To: <bug-libtool@gnu.org>
2217 Subject: [GNU Libtool 2.4.2] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
2219 You may investigate any problem if you feel able to do so, in which
2220 case the test suite provides a good starting point. Its output may
2221 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
2232 at_fn_group_banner 1 'getopt-m4sh.at:85' \
2233 "short option splitting" " " 1
2236 $as_echo "1. $at_setup_line: testing $at_desc ..."
2240 cat >expout <<'_ATEOF'
2241 force verbose install
2247 cat >options.m4sh <<'_ATEOF'
2248 AS_INIT[]m4_include([getopt.m4sh])
2254 [a!], [--append], [], [func_append list "$optarg$nl"],
2255 [f], [--force], [], [opts="$opts force"],
2256 [i], [--install], [], [opts="$opts install"],
2257 [v], [--verbose], [], [opts="$opts verbose"],
2258 [!], [--ltdl], [false],[opts="$opts ltdl=$optarg"],
2259 [echo "$list" $opts])
2265 $as_echo "$at_srcdir/getopt-m4sh.at:91: \$M4SH --version || exit 77"
2266 at_fn_check_prepare_dynamic "$M4SH --version || exit 77" "getopt-m4sh.at:91"
2267 ( $at_check_trace; $M4SH --version || exit 77
2268 ) >>"$at_stdout" 2>>"$at_stderr"
2269 at_status=$? at_failed=false
2271 echo stderr:; cat "$at_stderr"
2272 echo stdout:; cat "$at_stdout"
2273 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:91"
2274 $at_failed && at_fn_log_failure
2278 $as_echo "$at_srcdir/getopt-m4sh.at:91: \$M4SH -B \$abs_top_srcdir/libltdl/config options.m4sh > t-options"
2279 at_fn_check_prepare_dynamic "$M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options" "getopt-m4sh.at:91"
2280 ( $at_check_trace; $M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options
2281 ) >>"$at_stdout" 2>>"$at_stderr"
2282 at_status=$? at_failed=false
2284 at_fn_diff_devnull "$at_stderr" || at_failed=:
2285 at_fn_diff_devnull "$at_stdout" || at_failed=:
2286 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:91"
2287 if $at_failed; then :
2289 $as_echo "$at_srcdir/getopt-m4sh.at:91: test \$at_status -eq 63 && exit 77"
2290 at_fn_check_prepare_dynamic "test $at_status -eq 63 && exit 77" "getopt-m4sh.at:91"
2291 ( $at_check_trace; test $at_status -eq 63 && exit 77
2292 ) >>"$at_stdout" 2>>"$at_stderr"
2293 at_status=$? at_failed=false
2295 at_fn_diff_devnull "$at_stderr" || at_failed=:
2296 at_fn_diff_devnull "$at_stdout" || at_failed=:
2297 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:91"
2298 $at_failed && at_fn_log_failure
2302 $at_failed && at_fn_log_failure
2305 $SED "s,@LN_S\@,$LN_S,g;s,@SED\@,$SED,g" t-options > options
2309 $as_echo "$at_srcdir/getopt-m4sh.at:93: \$SHELL ./options -fvi"
2310 at_fn_check_prepare_dynamic "$SHELL ./options -fvi" "getopt-m4sh.at:93"
2311 ( $at_check_trace; $SHELL ./options -fvi
2312 ) >>"$at_stdout" 2>>"$at_stderr"
2313 at_status=$? at_failed=false
2315 at_fn_diff_devnull "$at_stderr" || at_failed=:
2316 $at_diff expout "$at_stdout" || at_failed=:
2317 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:93"
2318 $at_failed && at_fn_log_failure
2323 $at_times_p && times >"$at_times_file"
2324 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2325 read at_status <"$at_status_file"
2328 at_fn_group_banner 2 'getopt-m4sh.at:98' \
2329 "enhanced shell short option splitting" " " 1
2332 $as_echo "2. $at_setup_line: testing $at_desc ..."
2336 # Don't bother with additional XSI checks unless functions were substituted
2338 $as_echo "$at_srcdir/getopt-m4sh.at:101: fgrep '# Extended-shell func_split_short_opt' \$abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)"
2339 at_fn_check_prepare_dynamic "fgrep '# Extended-shell func_split_short_opt' $abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)" "getopt-m4sh.at:101"
2340 ( $at_check_trace; fgrep '# Extended-shell func_split_short_opt' $abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)
2341 ) >>"$at_stdout" 2>>"$at_stderr"
2342 at_status=$? at_failed=false
2344 at_fn_diff_devnull "$at_stderr" || at_failed=:
2345 at_fn_diff_devnull "$at_stdout" || at_failed=:
2346 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:101"
2347 $at_failed && at_fn_log_failure
2351 cat >expout <<'_ATEOF'
2352 force verbose install
2358 cat >options.m4sh <<'_ATEOF'
2359 AS_INIT[]m4_include([getopt.m4sh])
2365 [a!], [--append], [], [func_append list "$optarg$nl"],
2366 [f], [--force], [], [opts="$opts force"],
2367 [i], [--install], [], [opts="$opts install"],
2368 [v], [--verbose], [], [opts="$opts verbose"],
2369 [!], [--ltdl], [false],[opts="$opts ltdl=$optarg"],
2370 [echo "$list" $opts])
2376 $as_echo "$at_srcdir/getopt-m4sh.at:107: \$M4SH --version || exit 77"
2377 at_fn_check_prepare_dynamic "$M4SH --version || exit 77" "getopt-m4sh.at:107"
2378 ( $at_check_trace; $M4SH --version || exit 77
2379 ) >>"$at_stdout" 2>>"$at_stderr"
2380 at_status=$? at_failed=false
2382 echo stderr:; cat "$at_stderr"
2383 echo stdout:; cat "$at_stdout"
2384 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:107"
2385 $at_failed && at_fn_log_failure
2389 $as_echo "$at_srcdir/getopt-m4sh.at:107: \$M4SH -B \$abs_top_srcdir/libltdl/config options.m4sh > t-options"
2390 at_fn_check_prepare_dynamic "$M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options" "getopt-m4sh.at:107"
2391 ( $at_check_trace; $M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options
2392 ) >>"$at_stdout" 2>>"$at_stderr"
2393 at_status=$? at_failed=false
2395 at_fn_diff_devnull "$at_stderr" || at_failed=:
2396 at_fn_diff_devnull "$at_stdout" || at_failed=:
2397 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:107"
2398 if $at_failed; then :
2400 $as_echo "$at_srcdir/getopt-m4sh.at:107: test \$at_status -eq 63 && exit 77"
2401 at_fn_check_prepare_dynamic "test $at_status -eq 63 && exit 77" "getopt-m4sh.at:107"
2402 ( $at_check_trace; test $at_status -eq 63 && exit 77
2403 ) >>"$at_stdout" 2>>"$at_stderr"
2404 at_status=$? at_failed=false
2406 at_fn_diff_devnull "$at_stderr" || at_failed=:
2407 at_fn_diff_devnull "$at_stdout" || at_failed=:
2408 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:107"
2409 $at_failed && at_fn_log_failure
2413 $at_failed && at_fn_log_failure
2416 $SED "s,@LN_S\@,$LN_S,g;s,@SED\@,$SED,g" t-options > options
2418 $SED '/^# func_split_short_opt/q' options > options.tmp
2419 $SED -n '/^func_split_short_opt ()/,/^} # Extended-shell func_split_short_opt /p' $abs_top_builddir/libtool >> options.tmp
2420 $SED '1,/^} # func_split_short_opt /d' options >> options.tmp
2421 rm -f options && mv options.tmp options
2424 $as_echo "$at_srcdir/getopt-m4sh.at:110: \$SHELL ./options -fvi"
2425 at_fn_check_prepare_dynamic "$SHELL ./options -fvi" "getopt-m4sh.at:110"
2426 ( $at_check_trace; $SHELL ./options -fvi
2427 ) >>"$at_stdout" 2>>"$at_stderr"
2428 at_status=$? at_failed=false
2430 at_fn_diff_devnull "$at_stderr" || at_failed=:
2431 $at_diff expout "$at_stdout" || at_failed=:
2432 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:110"
2433 $at_failed && at_fn_log_failure
2438 $at_times_p && times >"$at_times_file"
2439 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2440 read at_status <"$at_status_file"
2443 at_fn_group_banner 3 'getopt-m4sh.at:119' \
2444 "long option splitting" " " 1
2447 $as_echo "3. $at_setup_line: testing $at_desc ..."
2451 cat >expout <<'_ATEOF'
2458 cat >options.m4sh <<'_ATEOF'
2459 AS_INIT[]m4_include([getopt.m4sh])
2465 [a!], [--append], [], [func_append list "$optarg$nl"],
2466 [f], [--force], [], [opts="$opts force"],
2467 [i], [--install], [], [opts="$opts install"],
2468 [v], [--verbose], [], [opts="$opts verbose"],
2469 [!], [--ltdl], [false],[opts="$opts ltdl=$optarg"],
2470 [echo "$list" $opts])
2476 $as_echo "$at_srcdir/getopt-m4sh.at:125: \$M4SH --version || exit 77"
2477 at_fn_check_prepare_dynamic "$M4SH --version || exit 77" "getopt-m4sh.at:125"
2478 ( $at_check_trace; $M4SH --version || exit 77
2479 ) >>"$at_stdout" 2>>"$at_stderr"
2480 at_status=$? at_failed=false
2482 echo stderr:; cat "$at_stderr"
2483 echo stdout:; cat "$at_stdout"
2484 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:125"
2485 $at_failed && at_fn_log_failure
2489 $as_echo "$at_srcdir/getopt-m4sh.at:125: \$M4SH -B \$abs_top_srcdir/libltdl/config options.m4sh > t-options"
2490 at_fn_check_prepare_dynamic "$M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options" "getopt-m4sh.at:125"
2491 ( $at_check_trace; $M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options
2492 ) >>"$at_stdout" 2>>"$at_stderr"
2493 at_status=$? at_failed=false
2495 at_fn_diff_devnull "$at_stderr" || at_failed=:
2496 at_fn_diff_devnull "$at_stdout" || at_failed=:
2497 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:125"
2498 if $at_failed; then :
2500 $as_echo "$at_srcdir/getopt-m4sh.at:125: test \$at_status -eq 63 && exit 77"
2501 at_fn_check_prepare_dynamic "test $at_status -eq 63 && exit 77" "getopt-m4sh.at:125"
2502 ( $at_check_trace; test $at_status -eq 63 && exit 77
2503 ) >>"$at_stdout" 2>>"$at_stderr"
2504 at_status=$? at_failed=false
2506 at_fn_diff_devnull "$at_stderr" || at_failed=:
2507 at_fn_diff_devnull "$at_stdout" || at_failed=:
2508 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:125"
2509 $at_failed && at_fn_log_failure
2513 $at_failed && at_fn_log_failure
2516 $SED "s,@LN_S\@,$LN_S,g;s,@SED\@,$SED,g" t-options > options
2520 $as_echo "$at_srcdir/getopt-m4sh.at:127: \$SHELL ./options --ltdl=long"
2521 at_fn_check_prepare_dynamic "$SHELL ./options --ltdl=long" "getopt-m4sh.at:127"
2522 ( $at_check_trace; $SHELL ./options --ltdl=long
2523 ) >>"$at_stdout" 2>>"$at_stderr"
2524 at_status=$? at_failed=false
2526 at_fn_diff_devnull "$at_stderr" || at_failed=:
2527 $at_diff expout "$at_stdout" || at_failed=:
2528 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:127"
2529 $at_failed && at_fn_log_failure
2534 $at_times_p && times >"$at_times_file"
2535 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2536 read at_status <"$at_status_file"
2539 at_fn_group_banner 4 'getopt-m4sh.at:132' \
2540 "XSI long option splitting" " " 1
2543 $as_echo "4. $at_setup_line: testing $at_desc ..."
2547 # Don't bother with additional XSI checks unless functions were substituted
2549 $as_echo "$at_srcdir/getopt-m4sh.at:135: fgrep '# Extended-shell func_split_long_opt' \$abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)"
2550 at_fn_check_prepare_dynamic "fgrep '# Extended-shell func_split_long_opt' $abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)" "getopt-m4sh.at:135"
2551 ( $at_check_trace; fgrep '# Extended-shell func_split_long_opt' $abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)
2552 ) >>"$at_stdout" 2>>"$at_stderr"
2553 at_status=$? at_failed=false
2555 at_fn_diff_devnull "$at_stderr" || at_failed=:
2556 at_fn_diff_devnull "$at_stdout" || at_failed=:
2557 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:135"
2558 $at_failed && at_fn_log_failure
2562 cat >expout <<'_ATEOF'
2569 cat >options.m4sh <<'_ATEOF'
2570 AS_INIT[]m4_include([getopt.m4sh])
2576 [a!], [--append], [], [func_append list "$optarg$nl"],
2577 [f], [--force], [], [opts="$opts force"],
2578 [i], [--install], [], [opts="$opts install"],
2579 [v], [--verbose], [], [opts="$opts verbose"],
2580 [!], [--ltdl], [false],[opts="$opts ltdl=$optarg"],
2581 [echo "$list" $opts])
2587 $as_echo "$at_srcdir/getopt-m4sh.at:141: \$M4SH --version || exit 77"
2588 at_fn_check_prepare_dynamic "$M4SH --version || exit 77" "getopt-m4sh.at:141"
2589 ( $at_check_trace; $M4SH --version || exit 77
2590 ) >>"$at_stdout" 2>>"$at_stderr"
2591 at_status=$? at_failed=false
2593 echo stderr:; cat "$at_stderr"
2594 echo stdout:; cat "$at_stdout"
2595 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:141"
2596 $at_failed && at_fn_log_failure
2600 $as_echo "$at_srcdir/getopt-m4sh.at:141: \$M4SH -B \$abs_top_srcdir/libltdl/config options.m4sh > t-options"
2601 at_fn_check_prepare_dynamic "$M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options" "getopt-m4sh.at:141"
2602 ( $at_check_trace; $M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options
2603 ) >>"$at_stdout" 2>>"$at_stderr"
2604 at_status=$? at_failed=false
2606 at_fn_diff_devnull "$at_stderr" || at_failed=:
2607 at_fn_diff_devnull "$at_stdout" || at_failed=:
2608 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:141"
2609 if $at_failed; then :
2611 $as_echo "$at_srcdir/getopt-m4sh.at:141: test \$at_status -eq 63 && exit 77"
2612 at_fn_check_prepare_dynamic "test $at_status -eq 63 && exit 77" "getopt-m4sh.at:141"
2613 ( $at_check_trace; test $at_status -eq 63 && exit 77
2614 ) >>"$at_stdout" 2>>"$at_stderr"
2615 at_status=$? at_failed=false
2617 at_fn_diff_devnull "$at_stderr" || at_failed=:
2618 at_fn_diff_devnull "$at_stdout" || at_failed=:
2619 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:141"
2620 $at_failed && at_fn_log_failure
2624 $at_failed && at_fn_log_failure
2627 $SED "s,@LN_S\@,$LN_S,g;s,@SED\@,$SED,g" t-options > options
2629 $SED '/^# func_split_long_opt/q' options > options.tmp
2630 $SED -n '/^func_split_long_opt ()/,/^} # Extended-shell func_split_long_opt /p' $abs_top_builddir/libtool >> options.tmp
2631 $SED '1,/^} # func_split_long_opt /d' options >> options.tmp
2632 rm -f options && mv options.tmp options
2635 $as_echo "$at_srcdir/getopt-m4sh.at:144: \$SHELL ./options --ltdl=long"
2636 at_fn_check_prepare_dynamic "$SHELL ./options --ltdl=long" "getopt-m4sh.at:144"
2637 ( $at_check_trace; $SHELL ./options --ltdl=long
2638 ) >>"$at_stdout" 2>>"$at_stderr"
2639 at_status=$? at_failed=false
2641 at_fn_diff_devnull "$at_stderr" || at_failed=:
2642 $at_diff expout "$at_stdout" || at_failed=:
2643 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:144"
2644 $at_failed && at_fn_log_failure
2649 $at_times_p && times >"$at_times_file"
2650 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2651 read at_status <"$at_status_file"
2654 at_fn_group_banner 5 'getopt-m4sh.at:153' \
2655 "option appending" " " 1
2658 $as_echo "5. $at_setup_line: testing $at_desc ..."
2662 cat >expout <<'_ATEOF'
2663 first --append second
2671 cat >options.m4sh <<'_ATEOF'
2672 AS_INIT[]m4_include([getopt.m4sh])
2678 [a!], [--append], [], [func_append list "$optarg$nl"],
2679 [f], [--force], [], [opts="$opts force"],
2680 [i], [--install], [], [opts="$opts install"],
2681 [v], [--verbose], [], [opts="$opts verbose"],
2682 [!], [--ltdl], [false],[opts="$opts ltdl=$optarg"],
2683 [echo "$list" $opts])
2689 $as_echo "$at_srcdir/getopt-m4sh.at:161: \$M4SH --version || exit 77"
2690 at_fn_check_prepare_dynamic "$M4SH --version || exit 77" "getopt-m4sh.at:161"
2691 ( $at_check_trace; $M4SH --version || exit 77
2692 ) >>"$at_stdout" 2>>"$at_stderr"
2693 at_status=$? at_failed=false
2695 echo stderr:; cat "$at_stderr"
2696 echo stdout:; cat "$at_stdout"
2697 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:161"
2698 $at_failed && at_fn_log_failure
2702 $as_echo "$at_srcdir/getopt-m4sh.at:161: \$M4SH -B \$abs_top_srcdir/libltdl/config options.m4sh > t-options"
2703 at_fn_check_prepare_dynamic "$M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options" "getopt-m4sh.at:161"
2704 ( $at_check_trace; $M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options
2705 ) >>"$at_stdout" 2>>"$at_stderr"
2706 at_status=$? at_failed=false
2708 at_fn_diff_devnull "$at_stderr" || at_failed=:
2709 at_fn_diff_devnull "$at_stdout" || at_failed=:
2710 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:161"
2711 if $at_failed; then :
2713 $as_echo "$at_srcdir/getopt-m4sh.at:161: test \$at_status -eq 63 && exit 77"
2714 at_fn_check_prepare_dynamic "test $at_status -eq 63 && exit 77" "getopt-m4sh.at:161"
2715 ( $at_check_trace; test $at_status -eq 63 && exit 77
2716 ) >>"$at_stdout" 2>>"$at_stderr"
2717 at_status=$? at_failed=false
2719 at_fn_diff_devnull "$at_stderr" || at_failed=:
2720 at_fn_diff_devnull "$at_stdout" || at_failed=:
2721 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:161"
2722 $at_failed && at_fn_log_failure
2726 $at_failed && at_fn_log_failure
2729 $SED "s,@LN_S\@,$LN_S,g;s,@SED\@,$SED,g" t-options > options
2731 $SED '/^# func_dirname /q' options > options.tmp
2732 echo '# func_append var value' >> options.tmp
2733 $SED -n '/^func_append ()/,/^} # func_append /p' $abs_top_srcdir/libltdl/config/ltmain.m4sh >> options.tmp
2734 $SED '1,/^# func_dirname/d' options >> options.tmp
2735 rm -f options && mv options.tmp options
2738 $as_echo "$at_srcdir/getopt-m4sh.at:164: \$SHELL ./options -a \"first --append second\" -athird"
2739 at_fn_check_prepare_dynamic "$SHELL ./options -a \"first --append second\" -athird" "getopt-m4sh.at:164"
2740 ( $at_check_trace; $SHELL ./options -a "first --append second" -athird
2741 ) >>"$at_stdout" 2>>"$at_stderr"
2742 at_status=$? at_failed=false
2744 at_fn_diff_devnull "$at_stderr" || at_failed=:
2745 $at_diff expout "$at_stdout" || at_failed=:
2746 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:164"
2747 $at_failed && at_fn_log_failure
2752 $at_times_p && times >"$at_times_file"
2753 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2754 read at_status <"$at_status_file"
2757 at_fn_group_banner 6 'getopt-m4sh.at:169' \
2758 "enhanced shell option appending" " " 1
2761 $as_echo "6. $at_setup_line: testing $at_desc ..."
2765 # Don't bother with additional += check unless functions were substituted
2767 $as_echo "$at_srcdir/getopt-m4sh.at:172: fgrep '# Extended-shell func_append ' \$abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)"
2768 at_fn_check_prepare_dynamic "fgrep '# Extended-shell func_append ' $abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)" "getopt-m4sh.at:172"
2769 ( $at_check_trace; fgrep '# Extended-shell func_append ' $abs_top_builddir/libtool >/dev/null 2>&1 || (exit 77)
2770 ) >>"$at_stdout" 2>>"$at_stderr"
2771 at_status=$? at_failed=false
2773 at_fn_diff_devnull "$at_stderr" || at_failed=:
2774 at_fn_diff_devnull "$at_stdout" || at_failed=:
2775 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:172"
2776 $at_failed && at_fn_log_failure
2780 cat >expout <<'_ATEOF'
2781 first --append second
2789 cat >options.m4sh <<'_ATEOF'
2790 AS_INIT[]m4_include([getopt.m4sh])
2796 [a!], [--append], [], [func_append list "$optarg$nl"],
2797 [f], [--force], [], [opts="$opts force"],
2798 [i], [--install], [], [opts="$opts install"],
2799 [v], [--verbose], [], [opts="$opts verbose"],
2800 [!], [--ltdl], [false],[opts="$opts ltdl=$optarg"],
2801 [echo "$list" $opts])
2807 $as_echo "$at_srcdir/getopt-m4sh.at:180: \$M4SH --version || exit 77"
2808 at_fn_check_prepare_dynamic "$M4SH --version || exit 77" "getopt-m4sh.at:180"
2809 ( $at_check_trace; $M4SH --version || exit 77
2810 ) >>"$at_stdout" 2>>"$at_stderr"
2811 at_status=$? at_failed=false
2813 echo stderr:; cat "$at_stderr"
2814 echo stdout:; cat "$at_stdout"
2815 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:180"
2816 $at_failed && at_fn_log_failure
2820 $as_echo "$at_srcdir/getopt-m4sh.at:180: \$M4SH -B \$abs_top_srcdir/libltdl/config options.m4sh > t-options"
2821 at_fn_check_prepare_dynamic "$M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options" "getopt-m4sh.at:180"
2822 ( $at_check_trace; $M4SH -B $abs_top_srcdir/libltdl/config options.m4sh > t-options
2823 ) >>"$at_stdout" 2>>"$at_stderr"
2824 at_status=$? at_failed=false
2826 at_fn_diff_devnull "$at_stderr" || at_failed=:
2827 at_fn_diff_devnull "$at_stdout" || at_failed=:
2828 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:180"
2829 if $at_failed; then :
2831 $as_echo "$at_srcdir/getopt-m4sh.at:180: test \$at_status -eq 63 && exit 77"
2832 at_fn_check_prepare_dynamic "test $at_status -eq 63 && exit 77" "getopt-m4sh.at:180"
2833 ( $at_check_trace; test $at_status -eq 63 && exit 77
2834 ) >>"$at_stdout" 2>>"$at_stderr"
2835 at_status=$? at_failed=false
2837 at_fn_diff_devnull "$at_stderr" || at_failed=:
2838 at_fn_diff_devnull "$at_stdout" || at_failed=:
2839 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:180"
2840 $at_failed && at_fn_log_failure
2844 $at_failed && at_fn_log_failure
2847 $SED "s,@LN_S\@,$LN_S,g;s,@SED\@,$SED,g" t-options > options
2849 $SED '/^# func_dirname /q' options > options.tmp
2850 echo '# func_append var value' >> options.tmp
2851 $SED -n '/^func_append ()/,/^} # func_append /p' $abs_top_srcdir/libltdl/config/ltmain.m4sh >> options.tmp
2852 $SED '1,/^# func_dirname/d' options >> options.tmp
2853 rm -f options && mv options.tmp options
2854 $SED '/^# func_append/q' options > options.tmp
2855 $SED -n '/^func_append ()/,/^} # Extended-shell func_append /p' $abs_top_builddir/libtool >> options.tmp
2856 $SED '1,/^} # func_append /d' options >> options.tmp
2857 rm -f options && mv options.tmp options
2860 $as_echo "$at_srcdir/getopt-m4sh.at:184: \$SHELL ./options -a \"first --append second\" -athird"
2861 at_fn_check_prepare_dynamic "$SHELL ./options -a \"first --append second\" -athird" "getopt-m4sh.at:184"
2862 ( $at_check_trace; $SHELL ./options -a "first --append second" -athird
2863 ) >>"$at_stdout" 2>>"$at_stderr"
2864 at_status=$? at_failed=false
2866 at_fn_diff_devnull "$at_stderr" || at_failed=:
2867 $at_diff expout "$at_stdout" || at_failed=:
2868 at_fn_check_status 0 $at_status "$at_srcdir/getopt-m4sh.at:184"
2869 $at_failed && at_fn_log_failure
2874 $at_times_p && times >"$at_times_file"
2875 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2876 read at_status <"$at_status_file"
2879 at_fn_group_banner 7 'libtoolize.at:83' \
2880 "libtoolize macro installation" " " 2
2883 $as_echo "7. $at_setup_line: testing $at_desc ..."
2887 cat >configure.ac <<'_ATEOF'
2888 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
2889 AC_CONFIG_AUX_DIR([build-aux])
2890 AC_CONFIG_MACRO_DIR([m4])
2897 cat >expout <<'_ATEOF'
2898 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
2899 libtoolize: copying file `build-aux/ltmain.sh'
2900 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
2901 libtoolize: copying file `m4/libtool.m4'
2902 libtoolize: copying file `m4/ltoptions.m4'
2903 libtoolize: copying file `m4/ltsugar.m4'
2904 libtoolize: copying file `m4/ltversion.m4'
2905 libtoolize: copying file `m4/lt~obsolete.m4'
2906 libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
2910 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
2911 sed "s/libtoolize/$lt_name/g
2912 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
2913 mv -f expout.t expout
2915 $as_echo "$at_srcdir/libtoolize.at:99: \$LIBTOOLIZE --copy
2918 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:99"
2919 ( $at_check_trace; $LIBTOOLIZE --copy
2922 ) >>"$at_stdout" 2>>"$at_stderr"
2923 at_status=$? at_failed=false
2925 at_fn_diff_devnull "$at_stderr" || at_failed=:
2926 $at_diff expout "$at_stdout" || at_failed=:
2927 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:99"
2928 $at_failed && at_fn_log_failure
2934 $at_times_p && times >"$at_times_file"
2935 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2936 read at_status <"$at_status_file"
2939 at_fn_group_banner 8 'libtoolize.at:108' \
2940 "libtoolize macro directory mismatch error" " " 2
2943 $as_echo "8. $at_setup_line: testing $at_desc ..."
2947 cat >configure.ac <<'_ATEOF'
2948 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
2949 AC_CONFIG_AUX_DIR([build-aux])
2950 AC_CONFIG_MACRO_DIR([m4])
2957 cat >Makefile.am <<'_ATEOF'
2958 ACLOCAL_AMFLAGS = -I me2
2962 cat >experr <<'_ATEOF'
2963 libtoolize: AC_CONFIG_MACRO_DIR([m4]) conflicts with ACLOCAL_AMFLAGS=-I me2.
2967 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
2968 sed "s/libtoolize/$lt_name/g
2969 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
2970 mv -f experr.t experr
2972 $as_echo "$at_srcdir/libtoolize.at:120: \$LIBTOOLIZE --copy
2975 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:120"
2976 ( $at_check_trace; $LIBTOOLIZE --copy
2979 ) >>"$at_stdout" 2>>"$at_stderr"
2980 at_status=$? at_failed=false
2982 $at_diff experr "$at_stderr" || at_failed=:
2983 echo stdout:; cat "$at_stdout"
2984 at_fn_check_status 1 $at_status "$at_srcdir/libtoolize.at:120"
2985 $at_failed && at_fn_log_failure
2991 $at_times_p && times >"$at_times_file"
2992 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2993 read at_status <"$at_status_file"
2996 at_fn_group_banner 9 'libtoolize.at:128' \
2997 "libtoolize macro serial update" " " 2
3000 $as_echo "9. $at_setup_line: testing $at_desc ..."
3004 cat >configure.ac <<'_ATEOF'
3005 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3006 AC_CONFIG_AUX_DIR([build-aux])
3007 AC_CONFIG_MACRO_DIR([m4])
3014 test -d m4 || { rm -f m4 && mkdir m4; }
3016 rm -f m4/libtool.m4 m4/ltoptions.m4 build-aux/ltmain.sh
3018 cat >Makefile.am <<'_ATEOF'
3019 ACLOCAL_AMFLAGS = -I m4
3023 # This file should be upgraded.
3024 cat >m4/libtool.m4 <<'_ATEOF'
3030 # This file has a very high serial number, and should be left unchanged
3031 # until --force is passed.
3032 cat >m4/ltoptions.m4 <<'_ATEOF'
3034 # serial 99999 ltoptions.m4
3038 test -d build-aux || { rm -f build-aux && mkdir build-aux; }
3040 # This file has a very high serial number, and needs --force to be updated.
3041 cat >build-aux/ltmain.sh <<'_ATEOF'
3043 package_revision=9999.9999
3047 # This file has a very old serial number, but should be left unchanged
3048 # unless the --install flag is invoked.
3049 cat >build-aux/config.guess <<'_ATEOF'
3051 timestamp='1970-01-01'
3058 ## -------------------------------------------------------------------- ##
3059 ## First we try to update with some newer files in the destination dir. ##
3060 ## -------------------------------------------------------------------- ##
3062 cat >expout <<'_ATEOF'
3063 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
3064 libtoolize: copying file `m4/libtool.m4'
3065 libtoolize: copying file `m4/ltsugar.m4'
3066 libtoolize: copying file `m4/ltversion.m4'
3067 libtoolize: copying file `m4/lt~obsolete.m4'
3071 cat >experr <<'_ATEOF'
3072 libtoolize: `build-aux/ltmain.sh' is newer: use `--force' to overwrite
3073 libtoolize: `m4/ltoptions.m4' is newer: use `--force' to overwrite
3077 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3078 sed "s/libtoolize/$lt_name/g
3079 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3080 mv -f expout.t expout
3081 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3082 sed "s/libtoolize/$lt_name/g
3083 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
3084 mv -f experr.t experr
3086 $as_echo "$at_srcdir/libtoolize.at:151: \$LIBTOOLIZE --copy
3089 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:151"
3090 ( $at_check_trace; $LIBTOOLIZE --copy
3093 ) >>"$at_stdout" 2>>"$at_stderr"
3094 at_status=$? at_failed=false
3096 $at_diff experr "$at_stderr" || at_failed=:
3097 $at_diff expout "$at_stdout" || at_failed=:
3098 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:151"
3099 $at_failed && at_fn_log_failure
3105 ## ---------------------------------------------------------- ##
3106 ## Next, a second update attempt with everything now updated. ##
3107 ## ---------------------------------------------------------- ##
3111 cat >experr <<'_ATEOF'
3112 libtoolize: `build-aux/ltmain.sh' is newer: use `--force' to overwrite
3113 libtoolize: `m4/ltoptions.m4' is newer: use `--force' to overwrite
3117 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3118 sed "s/libtoolize/$lt_name/g
3119 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3120 mv -f expout.t expout
3121 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3122 sed "s/libtoolize/$lt_name/g
3123 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
3124 mv -f experr.t experr
3126 $as_echo "$at_srcdir/libtoolize.at:165: \$LIBTOOLIZE --copy
3129 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:165"
3130 ( $at_check_trace; $LIBTOOLIZE --copy
3133 ) >>"$at_stdout" 2>>"$at_stderr"
3134 at_status=$? at_failed=false
3136 $at_diff experr "$at_stderr" || at_failed=:
3137 $at_diff expout "$at_stdout" || at_failed=:
3138 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:165"
3139 $at_failed && at_fn_log_failure
3145 ## ----------------------------------------------------------- ##
3146 ## Now, a forced update to downgrade files with newer serials. ##
3147 ## ----------------------------------------------------------- ##
3149 cat >expout <<'_ATEOF'
3150 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
3151 libtoolize: copying file `build-aux/ltmain.sh'
3152 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
3153 libtoolize: copying file `m4/libtool.m4'
3154 libtoolize: copying file `m4/ltoptions.m4'
3155 libtoolize: copying file `m4/ltsugar.m4'
3156 libtoolize: copying file `m4/ltversion.m4'
3157 libtoolize: copying file `m4/lt~obsolete.m4'
3161 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3162 sed "s/libtoolize/$lt_name/g
3163 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3164 mv -f expout.t expout
3166 $as_echo "$at_srcdir/libtoolize.at:183: \$LIBTOOLIZE --copy --force
3169 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:183"
3170 ( $at_check_trace; $LIBTOOLIZE --copy --force
3173 ) >>"$at_stdout" 2>>"$at_stderr"
3174 at_status=$? at_failed=false
3176 at_fn_diff_devnull "$at_stderr" || at_failed=:
3177 $at_diff expout "$at_stdout" || at_failed=:
3178 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:183"
3179 $at_failed && at_fn_log_failure
3185 ## ---------------------------------------------------------------- ##
3186 ## A final update attempt with everything previously force updated. ##
3187 ## ---------------------------------------------------------------- ##
3191 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3192 sed "s/libtoolize/$lt_name/g
3193 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3194 mv -f expout.t expout
3196 $as_echo "$at_srcdir/libtoolize.at:192: \$LIBTOOLIZE --copy
3199 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:192"
3200 ( $at_check_trace; $LIBTOOLIZE --copy
3203 ) >>"$at_stdout" 2>>"$at_stderr"
3204 at_status=$? at_failed=false
3206 at_fn_diff_devnull "$at_stderr" || at_failed=:
3207 $at_diff expout "$at_stdout" || at_failed=:
3208 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:192"
3209 $at_failed && at_fn_log_failure
3215 $at_times_p && times >"$at_times_file"
3216 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3217 read at_status <"$at_status_file"
3220 at_fn_group_banner 10 'libtoolize.at:201' \
3221 "libtoolize config files serial update" " " 2
3224 $as_echo "10. $at_setup_line: testing $at_desc ..."
3228 cat >configure.ac <<'_ATEOF'
3229 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3230 AC_CONFIG_AUX_DIR([build-aux])
3231 AC_CONFIG_MACRO_DIR([m4])
3238 test -d m4 || { rm -f m4 && mkdir m4; }
3240 rm -f m4/libtool.m4 m4/ltoptions.m4 build-aux/ltmain.sh
3242 cat >Makefile.am <<'_ATEOF'
3243 ACLOCAL_AMFLAGS = -I m4
3247 # This file should be upgraded.
3248 cat >m4/libtool.m4 <<'_ATEOF'
3254 # This file has a very high serial number, and should be left unchanged
3255 # until --force is passed.
3256 cat >m4/ltoptions.m4 <<'_ATEOF'
3258 # serial 99999 ltoptions.m4
3262 test -d build-aux || { rm -f build-aux && mkdir build-aux; }
3264 # This file has a very high serial number, and needs --force to be updated.
3265 cat >build-aux/ltmain.sh <<'_ATEOF'
3267 package_revision=9999.9999
3271 # This file has a very old serial number, but should be left unchanged
3272 # unless the --install flag is invoked.
3273 cat >build-aux/config.guess <<'_ATEOF'
3275 timestamp='1970-01-01'
3282 ## -------------------------------------------------------------------- ##
3283 ## First we try to update with some newer files in the destination dir. ##
3284 ## -------------------------------------------------------------------- ##
3286 cat >expout <<'_ATEOF'
3287 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
3288 libtoolize: copying file `build-aux/config.guess'
3289 libtoolize: copying file `build-aux/config.sub'
3290 libtoolize: copying file `build-aux/install-sh'
3291 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
3292 libtoolize: copying file `m4/libtool.m4'
3293 libtoolize: copying file `m4/ltsugar.m4'
3294 libtoolize: copying file `m4/ltversion.m4'
3295 libtoolize: copying file `m4/lt~obsolete.m4'
3299 cat >experr <<'_ATEOF'
3300 libtoolize: `build-aux/ltmain.sh' is newer: use `--force' to overwrite
3301 libtoolize: `m4/ltoptions.m4' is newer: use `--force' to overwrite
3305 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3306 sed "s/libtoolize/$lt_name/g
3307 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3308 mv -f expout.t expout
3309 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3310 sed "s/libtoolize/$lt_name/g
3311 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
3312 mv -f experr.t experr
3314 $as_echo "$at_srcdir/libtoolize.at:228: \$LIBTOOLIZE --copy --install
3317 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:228"
3318 ( $at_check_trace; $LIBTOOLIZE --copy --install
3321 ) >>"$at_stdout" 2>>"$at_stderr"
3322 at_status=$? at_failed=false
3324 $at_diff experr "$at_stderr" || at_failed=:
3325 $at_diff expout "$at_stdout" || at_failed=:
3326 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:228"
3327 $at_failed && at_fn_log_failure
3333 ## ---------------------------------------------------------- ##
3334 ## Next, a second update attempt with everything now updated. ##
3335 ## ---------------------------------------------------------- ##
3339 cat >experr <<'_ATEOF'
3340 libtoolize: `build-aux/ltmain.sh' is newer: use `--force' to overwrite
3341 libtoolize: `m4/ltoptions.m4' is newer: use `--force' to overwrite
3345 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3346 sed "s/libtoolize/$lt_name/g
3347 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3348 mv -f expout.t expout
3349 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3350 sed "s/libtoolize/$lt_name/g
3351 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
3352 mv -f experr.t experr
3354 $as_echo "$at_srcdir/libtoolize.at:242: \$LIBTOOLIZE --copy --install
3357 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:242"
3358 ( $at_check_trace; $LIBTOOLIZE --copy --install
3361 ) >>"$at_stdout" 2>>"$at_stderr"
3362 at_status=$? at_failed=false
3364 $at_diff experr "$at_stderr" || at_failed=:
3365 $at_diff expout "$at_stdout" || at_failed=:
3366 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:242"
3367 $at_failed && at_fn_log_failure
3373 ## ----------------------------------------------------------- ##
3374 ## Now, a forced update to downgrade files with newer serials. ##
3375 ## ----------------------------------------------------------- ##
3377 cat >expout <<'_ATEOF'
3378 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
3379 libtoolize: copying file `build-aux/config.guess'
3380 libtoolize: copying file `build-aux/config.sub'
3381 libtoolize: copying file `build-aux/install-sh'
3382 libtoolize: copying file `build-aux/ltmain.sh'
3383 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
3384 libtoolize: copying file `m4/libtool.m4'
3385 libtoolize: copying file `m4/ltoptions.m4'
3386 libtoolize: copying file `m4/ltsugar.m4'
3387 libtoolize: copying file `m4/ltversion.m4'
3388 libtoolize: copying file `m4/lt~obsolete.m4'
3392 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3393 sed "s/libtoolize/$lt_name/g
3394 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3395 mv -f expout.t expout
3397 $as_echo "$at_srcdir/libtoolize.at:263: \$LIBTOOLIZE --copy --force --install
3400 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:263"
3401 ( $at_check_trace; $LIBTOOLIZE --copy --force --install
3404 ) >>"$at_stdout" 2>>"$at_stderr"
3405 at_status=$? at_failed=false
3407 at_fn_diff_devnull "$at_stderr" || at_failed=:
3408 $at_diff expout "$at_stdout" || at_failed=:
3409 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:263"
3410 $at_failed && at_fn_log_failure
3416 ## ---------------------------------------------------------------- ##
3417 ## A final update attempt with everything previously force updated. ##
3418 ## ---------------------------------------------------------------- ##
3422 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3423 sed "s/libtoolize/$lt_name/g
3424 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3425 mv -f expout.t expout
3427 $as_echo "$at_srcdir/libtoolize.at:272: \$LIBTOOLIZE --copy --install
3430 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:272"
3431 ( $at_check_trace; $LIBTOOLIZE --copy --install
3434 ) >>"$at_stdout" 2>>"$at_stderr"
3435 at_status=$? at_failed=false
3437 at_fn_diff_devnull "$at_stderr" || at_failed=:
3438 $at_diff expout "$at_stdout" || at_failed=:
3439 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:272"
3440 $at_failed && at_fn_log_failure
3446 $at_times_p && times >"$at_times_file"
3447 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3448 read at_status <"$at_status_file"
3451 at_fn_group_banner 11 'libtoolize.at:281' \
3452 "diagnose missing LT_CONFIG_LTDL_DIR" " " 2
3455 $as_echo "11. $at_setup_line: testing $at_desc ..."
3459 cat >expout <<'_ATEOF'
3460 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
3461 libtoolize: copying file `build-aux/config.guess'
3462 libtoolize: copying file `build-aux/config.sub'
3463 libtoolize: copying file `build-aux/install-sh'
3464 libtoolize: copying file `build-aux/ltmain.sh'
3465 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
3466 libtoolize: copying file `m4/argz.m4'
3467 libtoolize: copying file `m4/libtool.m4'
3468 libtoolize: copying file `m4/ltdl.m4'
3469 libtoolize: copying file `m4/ltoptions.m4'
3470 libtoolize: copying file `m4/ltsugar.m4'
3471 libtoolize: copying file `m4/ltversion.m4'
3472 libtoolize: copying file `m4/lt~obsolete.m4'
3473 libtoolize: putting libltdl files in `ltdl'.
3474 libtoolize: copying file `ltdl/COPYING.LIB'
3475 libtoolize: copying file `ltdl/README'
3476 libtoolize: copying file `ltdl/argz_.h'
3477 libtoolize: copying file `ltdl/argz.c'
3478 libtoolize: copying file `ltdl/loaders/dld_link.c'
3479 libtoolize: copying file `ltdl/loaders/dlopen.c'
3480 libtoolize: copying file `ltdl/loaders/dyld.c'
3481 libtoolize: copying file `ltdl/loaders/load_add_on.c'
3482 libtoolize: copying file `ltdl/loaders/loadlibrary.c'
3483 libtoolize: copying file `ltdl/loaders/shl_load.c'
3484 libtoolize: copying file `ltdl/lt__dirent.c'
3485 libtoolize: copying file `ltdl/lt__strl.c'
3486 libtoolize: copying file `ltdl/libltdl/lt__alloc.h'
3487 libtoolize: copying file `ltdl/libltdl/lt__dirent.h'
3488 libtoolize: copying file `ltdl/libltdl/lt__glibc.h'
3489 libtoolize: copying file `ltdl/libltdl/lt__private.h'
3490 libtoolize: copying file `ltdl/libltdl/lt__strl.h'
3491 libtoolize: copying file `ltdl/libltdl/lt_dlloader.h'
3492 libtoolize: copying file `ltdl/libltdl/lt_error.h'
3493 libtoolize: copying file `ltdl/libltdl/lt_system.h'
3494 libtoolize: copying file `ltdl/libltdl/slist.h'
3495 libtoolize: copying file `ltdl/loaders/preopen.c'
3496 libtoolize: copying file `ltdl/lt__alloc.c'
3497 libtoolize: copying file `ltdl/lt_dlloader.c'
3498 libtoolize: copying file `ltdl/lt_error.c'
3499 libtoolize: copying file `ltdl/ltdl.c'
3500 libtoolize: copying file `ltdl/ltdl.h'
3501 libtoolize: copying file `ltdl/slist.c'
3502 libtoolize: creating file `ltdl/Makefile.inc'
3503 libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([ltdl])' to `configure.ac'.
3504 libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
3508 cat >configure.ac <<'_ATEOF'
3509 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3510 AC_CONFIG_AUX_DIR([build-aux])
3511 AC_CONFIG_MACRO_DIR([m4])
3513 LTDL_INIT([nonrecursive])
3518 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3519 sed "s/libtoolize/$lt_name/g
3520 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3521 mv -f expout.t expout
3523 $as_echo "$at_srcdir/libtoolize.at:340: \$LIBTOOLIZE --copy --install --ltdl=ltdl
3526 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:340"
3527 ( $at_check_trace; $LIBTOOLIZE --copy --install --ltdl=ltdl
3530 ) >>"$at_stdout" 2>>"$at_stderr"
3531 at_status=$? at_failed=false
3533 at_fn_diff_devnull "$at_stderr" || at_failed=:
3534 $at_diff expout "$at_stdout" || at_failed=:
3535 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:340"
3536 $at_failed && at_fn_log_failure
3542 $at_times_p && times >"$at_times_file"
3543 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3544 read at_status <"$at_status_file"
3547 at_fn_group_banner 12 'libtoolize.at:426' \
3548 "copy ltdl.m4 with shared macro directory" " " 2
3551 $as_echo "12. $at_setup_line: testing $at_desc ..."
3555 cat >expout <<'_ATEOF'
3556 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `ltdl/config'.
3557 libtoolize: linking file `ltdl/config/compile'
3558 libtoolize: linking file `ltdl/config/config.guess'
3559 libtoolize: linking file `ltdl/config/config.sub'
3560 libtoolize: linking file `ltdl/config/depcomp'
3561 libtoolize: linking file `ltdl/config/install-sh'
3562 libtoolize: linking file `ltdl/config/missing'
3563 libtoolize: linking file `ltdl/config/ltmain.sh'
3564 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `ltdl/m4'.
3565 libtoolize: linking file `ltdl/m4/argz.m4'
3566 libtoolize: linking file `ltdl/m4/libtool.m4'
3567 libtoolize: linking file `ltdl/m4/ltdl.m4'
3568 libtoolize: linking file `ltdl/m4/ltoptions.m4'
3569 libtoolize: linking file `ltdl/m4/ltsugar.m4'
3570 libtoolize: linking file `ltdl/m4/ltversion.m4'
3571 libtoolize: linking file `ltdl/m4/lt~obsolete.m4'
3572 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `ltdl'.
3573 libtoolize: linking file `ltdl/COPYING.LIB'
3574 libtoolize: linking file `ltdl/README'
3575 libtoolize: linking file `ltdl/Makefile.am'
3576 libtoolize: linking file `ltdl/configure.ac'
3577 libtoolize: copying file `ltdl/aclocal.m4'
3578 libtoolize: linking file `ltdl/Makefile.in'
3579 libtoolize: linking file `ltdl/config-h.in'
3580 libtoolize: linking file `ltdl/configure'
3581 libtoolize: linking file `ltdl/argz_.h'
3582 libtoolize: linking file `ltdl/argz.c'
3583 libtoolize: linking file `ltdl/loaders/dld_link.c'
3584 libtoolize: linking file `ltdl/loaders/dlopen.c'
3585 libtoolize: linking file `ltdl/loaders/dyld.c'
3586 libtoolize: linking file `ltdl/loaders/load_add_on.c'
3587 libtoolize: linking file `ltdl/loaders/loadlibrary.c'
3588 libtoolize: linking file `ltdl/loaders/shl_load.c'
3589 libtoolize: linking file `ltdl/lt__dirent.c'
3590 libtoolize: linking file `ltdl/lt__strl.c'
3591 libtoolize: linking file `ltdl/libltdl/lt__alloc.h'
3592 libtoolize: linking file `ltdl/libltdl/lt__dirent.h'
3593 libtoolize: linking file `ltdl/libltdl/lt__glibc.h'
3594 libtoolize: linking file `ltdl/libltdl/lt__private.h'
3595 libtoolize: linking file `ltdl/libltdl/lt__strl.h'
3596 libtoolize: linking file `ltdl/libltdl/lt_dlloader.h'
3597 libtoolize: linking file `ltdl/libltdl/lt_error.h'
3598 libtoolize: linking file `ltdl/libltdl/lt_system.h'
3599 libtoolize: linking file `ltdl/libltdl/slist.h'
3600 libtoolize: linking file `ltdl/loaders/preopen.c'
3601 libtoolize: linking file `ltdl/lt__alloc.c'
3602 libtoolize: linking file `ltdl/lt_dlloader.c'
3603 libtoolize: linking file `ltdl/lt_error.c'
3604 libtoolize: linking file `ltdl/ltdl.c'
3605 libtoolize: linking file `ltdl/ltdl.h'
3606 libtoolize: linking file `ltdl/slist.c'
3610 cat >configure.ac <<'_ATEOF'
3611 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3612 LT_CONFIG_LTDL_DIR([ltdl])
3613 AC_CONFIG_AUX_DIR([ltdl/config])
3614 AC_CONFIG_MACRO_DIR([ltdl/m4])
3621 cat >Makefile.am <<'_ATEOF'
3622 ACLOCAL_AMFLAGS = -I ltdl/m4
3627 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3628 sed "s/libtoolize/$lt_name/g
3629 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3630 mv -f expout.t expout
3632 $as_echo "$at_srcdir/libtoolize.at:430: \$LIBTOOLIZE --ltdl
3635 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:430"
3636 ( $at_check_trace; $LIBTOOLIZE --ltdl
3639 ) >>"$at_stdout" 2>>"$at_stderr"
3640 at_status=$? at_failed=false
3642 at_fn_diff_devnull "$at_stderr" || at_failed=:
3643 $at_diff expout "$at_stdout" || at_failed=:
3644 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:430"
3645 $at_failed && at_fn_log_failure
3651 $at_times_p && times >"$at_times_file"
3652 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3653 read at_status <"$at_status_file"
3656 at_fn_group_banner 13 'libtoolize.at:438' \
3657 "correctly parse LTDL_INIT from configure.ac" " " 2
3660 $as_echo "13. $at_setup_line: testing $at_desc ..."
3664 cat >expout <<'_ATEOF'
3665 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `ltdl/config'.
3666 libtoolize: linking file `ltdl/config/compile'
3667 libtoolize: linking file `ltdl/config/config.guess'
3668 libtoolize: linking file `ltdl/config/config.sub'
3669 libtoolize: linking file `ltdl/config/depcomp'
3670 libtoolize: linking file `ltdl/config/install-sh'
3671 libtoolize: linking file `ltdl/config/missing'
3672 libtoolize: linking file `ltdl/config/ltmain.sh'
3673 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `ltdl/m4'.
3674 libtoolize: linking file `ltdl/m4/argz.m4'
3675 libtoolize: linking file `ltdl/m4/libtool.m4'
3676 libtoolize: linking file `ltdl/m4/ltdl.m4'
3677 libtoolize: linking file `ltdl/m4/ltoptions.m4'
3678 libtoolize: linking file `ltdl/m4/ltsugar.m4'
3679 libtoolize: linking file `ltdl/m4/ltversion.m4'
3680 libtoolize: linking file `ltdl/m4/lt~obsolete.m4'
3681 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `ltdl'.
3682 libtoolize: linking file `ltdl/COPYING.LIB'
3683 libtoolize: linking file `ltdl/README'
3684 libtoolize: linking file `ltdl/Makefile.am'
3685 libtoolize: linking file `ltdl/configure.ac'
3686 libtoolize: copying file `ltdl/aclocal.m4'
3687 libtoolize: linking file `ltdl/Makefile.in'
3688 libtoolize: linking file `ltdl/config-h.in'
3689 libtoolize: linking file `ltdl/configure'
3690 libtoolize: linking file `ltdl/argz_.h'
3691 libtoolize: linking file `ltdl/argz.c'
3692 libtoolize: linking file `ltdl/loaders/dld_link.c'
3693 libtoolize: linking file `ltdl/loaders/dlopen.c'
3694 libtoolize: linking file `ltdl/loaders/dyld.c'
3695 libtoolize: linking file `ltdl/loaders/load_add_on.c'
3696 libtoolize: linking file `ltdl/loaders/loadlibrary.c'
3697 libtoolize: linking file `ltdl/loaders/shl_load.c'
3698 libtoolize: linking file `ltdl/lt__dirent.c'
3699 libtoolize: linking file `ltdl/lt__strl.c'
3700 libtoolize: linking file `ltdl/libltdl/lt__alloc.h'
3701 libtoolize: linking file `ltdl/libltdl/lt__dirent.h'
3702 libtoolize: linking file `ltdl/libltdl/lt__glibc.h'
3703 libtoolize: linking file `ltdl/libltdl/lt__private.h'
3704 libtoolize: linking file `ltdl/libltdl/lt__strl.h'
3705 libtoolize: linking file `ltdl/libltdl/lt_dlloader.h'
3706 libtoolize: linking file `ltdl/libltdl/lt_error.h'
3707 libtoolize: linking file `ltdl/libltdl/lt_system.h'
3708 libtoolize: linking file `ltdl/libltdl/slist.h'
3709 libtoolize: linking file `ltdl/loaders/preopen.c'
3710 libtoolize: linking file `ltdl/lt__alloc.c'
3711 libtoolize: linking file `ltdl/lt_dlloader.c'
3712 libtoolize: linking file `ltdl/lt_error.c'
3713 libtoolize: linking file `ltdl/ltdl.c'
3714 libtoolize: linking file `ltdl/ltdl.h'
3715 libtoolize: linking file `ltdl/slist.c'
3719 cat >configure.ac <<'_ATEOF'
3720 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3721 LT_CONFIG_LTDL_DIR([ltdl])
3722 AC_CONFIG_AUX_DIR([ltdl/config])
3723 AC_CONFIG_MACRO_DIR([ltdl/m4])
3730 cat >Makefile.am <<'_ATEOF'
3731 ACLOCAL_AMFLAGS = -I ltdl/m4
3736 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3737 sed "s/libtoolize/$lt_name/g
3738 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3739 mv -f expout.t expout
3741 $as_echo "$at_srcdir/libtoolize.at:442: \$LIBTOOLIZE
3744 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:442"
3745 ( $at_check_trace; $LIBTOOLIZE
3748 ) >>"$at_stdout" 2>>"$at_stderr"
3749 at_status=$? at_failed=false
3751 at_fn_diff_devnull "$at_stderr" || at_failed=:
3752 $at_diff expout "$at_stdout" || at_failed=:
3753 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:442"
3754 $at_failed && at_fn_log_failure
3760 $at_times_p && times >"$at_times_file"
3761 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3762 read at_status <"$at_status_file"
3765 at_fn_group_banner 14 'libtoolize.at:450' \
3766 "diagnose missing LTDL_INIT invocation" " " 2
3769 $as_echo "14. $at_setup_line: testing $at_desc ..."
3773 cat >expout <<'_ATEOF'
3774 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `ltdl/config'.
3775 libtoolize: copying file `ltdl/config/compile'
3776 libtoolize: copying file `ltdl/config/config.guess'
3777 libtoolize: copying file `ltdl/config/config.sub'
3778 libtoolize: copying file `ltdl/config/depcomp'
3779 libtoolize: copying file `ltdl/config/install-sh'
3780 libtoolize: copying file `ltdl/config/missing'
3781 libtoolize: copying file `ltdl/config/ltmain.sh'
3782 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `ltdl/m4'.
3783 libtoolize: copying file `ltdl/m4/argz.m4'
3784 libtoolize: copying file `ltdl/m4/libtool.m4'
3785 libtoolize: copying file `ltdl/m4/ltdl.m4'
3786 libtoolize: copying file `ltdl/m4/ltoptions.m4'
3787 libtoolize: copying file `ltdl/m4/ltsugar.m4'
3788 libtoolize: copying file `ltdl/m4/ltversion.m4'
3789 libtoolize: copying file `ltdl/m4/lt~obsolete.m4'
3790 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `ltdl'.
3791 libtoolize: copying file `ltdl/COPYING.LIB'
3792 libtoolize: copying file `ltdl/README'
3793 libtoolize: copying file `ltdl/Makefile.am'
3794 libtoolize: copying file `ltdl/configure.ac'
3795 libtoolize: copying file `ltdl/aclocal.m4'
3796 libtoolize: copying file `ltdl/Makefile.in'
3797 libtoolize: copying file `ltdl/config-h.in'
3798 libtoolize: copying file `ltdl/configure'
3799 libtoolize: copying file `ltdl/argz_.h'
3800 libtoolize: copying file `ltdl/argz.c'
3801 libtoolize: copying file `ltdl/loaders/dld_link.c'
3802 libtoolize: copying file `ltdl/loaders/dlopen.c'
3803 libtoolize: copying file `ltdl/loaders/dyld.c'
3804 libtoolize: copying file `ltdl/loaders/load_add_on.c'
3805 libtoolize: copying file `ltdl/loaders/loadlibrary.c'
3806 libtoolize: copying file `ltdl/loaders/shl_load.c'
3807 libtoolize: copying file `ltdl/lt__dirent.c'
3808 libtoolize: copying file `ltdl/lt__strl.c'
3809 libtoolize: copying file `ltdl/libltdl/lt__alloc.h'
3810 libtoolize: copying file `ltdl/libltdl/lt__dirent.h'
3811 libtoolize: copying file `ltdl/libltdl/lt__glibc.h'
3812 libtoolize: copying file `ltdl/libltdl/lt__private.h'
3813 libtoolize: copying file `ltdl/libltdl/lt__strl.h'
3814 libtoolize: copying file `ltdl/libltdl/lt_dlloader.h'
3815 libtoolize: copying file `ltdl/libltdl/lt_error.h'
3816 libtoolize: copying file `ltdl/libltdl/lt_system.h'
3817 libtoolize: copying file `ltdl/libltdl/slist.h'
3818 libtoolize: copying file `ltdl/loaders/preopen.c'
3819 libtoolize: copying file `ltdl/lt__alloc.c'
3820 libtoolize: copying file `ltdl/lt_dlloader.c'
3821 libtoolize: copying file `ltdl/lt_error.c'
3822 libtoolize: copying file `ltdl/ltdl.c'
3823 libtoolize: copying file `ltdl/ltdl.h'
3824 libtoolize: copying file `ltdl/slist.c'
3825 libtoolize: Remember to add `LTDL_INIT' to configure.ac.
3826 libtoolize: Consider adding `-I ltdl/m4' to ACLOCAL_AMFLAGS in Makefile.am.
3830 cat >configure.ac <<'_ATEOF'
3831 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3832 LT_CONFIG_LTDL_DIR([ltdl])
3833 AC_CONFIG_AUX_DIR([ltdl/config])
3834 AC_CONFIG_MACRO_DIR([ltdl/m4])
3840 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3841 sed "s/libtoolize/$lt_name/g
3842 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3843 mv -f expout.t expout
3845 $as_echo "$at_srcdir/libtoolize.at:517: \$LIBTOOLIZE --ltdl --copy
3848 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:517"
3849 ( $at_check_trace; $LIBTOOLIZE --ltdl --copy
3852 ) >>"$at_stdout" 2>>"$at_stderr"
3853 at_status=$? at_failed=false
3855 at_fn_diff_devnull "$at_stderr" || at_failed=:
3856 $at_diff expout "$at_stdout" || at_failed=:
3857 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:517"
3858 $at_failed && at_fn_log_failure
3864 $at_times_p && times >"$at_times_file"
3865 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3866 read at_status <"$at_status_file"
3869 at_fn_group_banner 15 'libtoolize.at:527' \
3870 "upgrading verbatim style aclocal.m4" " " 2
3872 test "$ACLOCAL" = no && at_xfail=yes
3874 $as_echo "15. $at_setup_line: testing $at_desc ..."
3878 cat >configure.ac <<'_ATEOF'
3879 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3880 AC_CONFIG_AUX_DIR([build-aux])
3886 cat >expout <<'_ATEOF'
3887 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
3888 libtoolize: copying file `build-aux/ltmain.sh'
3889 libtoolize: You should add the contents of the following files to `aclocal.m4':
3890 libtoolize: `/usr/local/share/aclocal/libtool.m4'
3891 libtoolize: `/usr/local/share/aclocal/ltoptions.m4'
3892 libtoolize: `/usr/local/share/aclocal/ltversion.m4'
3893 libtoolize: `/usr/local/share/aclocal/ltsugar.m4'
3894 libtoolize: `/usr/local/share/aclocal/lt~obsolete.m4'
3895 libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
3896 libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
3897 libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
3901 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3902 sed "s/libtoolize/$lt_name/g
3903 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3904 mv -f expout.t expout
3906 $as_echo "$at_srcdir/libtoolize.at:550: \$LIBTOOLIZE --copy
3909 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:550"
3910 ( $at_check_trace; $LIBTOOLIZE --copy
3913 ) >>"$at_stdout" 2>>"$at_stderr"
3914 at_status=$? at_failed=false
3916 at_fn_diff_devnull "$at_stderr" || at_failed=:
3917 $at_diff expout "$at_stdout" || at_failed=:
3918 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:550"
3919 $at_failed && at_fn_log_failure
3925 ## --------------------------------------- ##
3926 ## Upgrading a hand maintained aclocal.m4. ##
3927 ## --------------------------------------- ##
3929 cat >configure.ac <<'_ATEOF'
3930 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
3931 AC_CONFIG_AUX_DIR([build-aux])
3932 AC_CONFIG_MACRO_DIR([m4])
3938 cat >Makefile.am <<'_ATEOF'
3939 ACLOCAL_AMFLAGS = -I m4
3943 cat >aclocal.m4 <<'_ATEOF'
3944 # This should need upgrading:
3949 # This is newer than the upgrade version:
3950 # serial 99999 ltoptions.m4
3952 # This is older than the upgrade version:
3953 # serial 1 ltversion.m4
3957 cat >expout <<'_ATEOF'
3958 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
3959 libtoolize: copying file `m4/libtool.m4'
3960 libtoolize: copying file `m4/ltoptions.m4'
3961 libtoolize: copying file `m4/ltsugar.m4'
3962 libtoolize: You should add the contents of `m4/ltsugar.m4' to `aclocal.m4'.
3963 libtoolize: copying file `m4/ltversion.m4'
3964 libtoolize: You should add the contents of `m4/ltversion.m4' to `aclocal.m4'.
3965 libtoolize: copying file `m4/lt~obsolete.m4'
3966 libtoolize: You should add the contents of `m4/lt~obsolete.m4' to `aclocal.m4'.
3970 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
3971 sed "s/libtoolize/$lt_name/g
3972 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
3973 mv -f expout.t expout
3975 $as_echo "$at_srcdir/libtoolize.at:594: \$LIBTOOLIZE --copy
3978 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:594"
3979 ( $at_check_trace; $LIBTOOLIZE --copy
3982 ) >>"$at_stdout" 2>>"$at_stderr"
3983 at_status=$? at_failed=false
3985 at_fn_diff_devnull "$at_stderr" || at_failed=:
3986 $at_diff expout "$at_stdout" || at_failed=:
3987 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:594"
3988 $at_failed && at_fn_log_failure
3994 ## ------------------------------------------- ##
3995 ## Upgrading an aclocal maintained aclocal.m4. ##
3996 ## ------------------------------------------- ##
3999 $as_echo "$at_srcdir/libtoolize.at:601: \$ACLOCAL -I m4"
4000 at_fn_check_prepare_dynamic "$ACLOCAL -I m4" "libtoolize.at:601"
4001 ( $at_check_trace; $ACLOCAL -I m4
4002 ) >>"$at_stdout" 2>>"$at_stderr"
4003 at_status=$? at_failed=false
4005 echo stderr:; cat "$at_stderr"
4006 echo stdout:; cat "$at_stdout"
4007 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:601"
4008 $at_failed && at_fn_log_failure
4015 rm -f m4/libtool.m4 m4/ltoptions.m4
4017 # This file should be upgraded.
4018 cat >m4/libtool.m4 <<'_ATEOF'
4025 # This file has a very high serial number, and should be left unchanged.
4026 cat >m4/ltoptions.m4 <<'_ATEOF'
4028 # serial 99999 ltoptions.m4
4032 cat >expout <<'_ATEOF'
4033 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
4034 libtoolize: copying file `m4/libtool.m4'
4038 cat >experr <<'_ATEOF'
4039 libtoolize: `m4/ltoptions.m4' is newer: use `--force' to overwrite
4043 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4044 sed "s/libtoolize/$lt_name/g
4045 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
4046 mv -f expout.t expout
4047 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4048 sed "s/libtoolize/$lt_name/g
4049 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
4050 mv -f experr.t experr
4052 $as_echo "$at_srcdir/libtoolize.at:625: \$LIBTOOLIZE --copy
4055 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:625"
4056 ( $at_check_trace; $LIBTOOLIZE --copy
4059 ) >>"$at_stdout" 2>>"$at_stderr"
4060 at_status=$? at_failed=false
4062 $at_diff experr "$at_stderr" || at_failed=:
4063 $at_diff expout "$at_stdout" || at_failed=:
4064 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:625"
4065 $at_failed && at_fn_log_failure
4070 ## ----------------------------------------------------------- ##
4071 ## Now, a forced update to downgrade files with newer serials. ##
4072 ## ----------------------------------------------------------- ##
4074 cat >expout <<'_ATEOF'
4075 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
4076 libtoolize: copying file `build-aux/ltmain.sh'
4077 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
4078 libtoolize: copying file `m4/libtool.m4'
4079 libtoolize: copying file `m4/ltoptions.m4'
4080 libtoolize: copying file `m4/ltsugar.m4'
4081 libtoolize: copying file `m4/ltversion.m4'
4082 libtoolize: copying file `m4/lt~obsolete.m4'
4086 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4087 sed "s/libtoolize/$lt_name/g
4088 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
4089 mv -f expout.t expout
4091 $as_echo "$at_srcdir/libtoolize.at:642: \$LIBTOOLIZE --copy --force
4094 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:642"
4095 ( $at_check_trace; $LIBTOOLIZE --copy --force
4098 ) >>"$at_stdout" 2>>"$at_stderr"
4099 at_status=$? at_failed=false
4101 at_fn_diff_devnull "$at_stderr" || at_failed=:
4102 $at_diff expout "$at_stdout" || at_failed=:
4103 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:642"
4104 $at_failed && at_fn_log_failure
4110 $at_times_p && times >"$at_times_file"
4111 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4112 read at_status <"$at_status_file"
4115 at_fn_group_banner 16 'libtoolize.at:651' \
4116 "verbatim aclocal.m4 w/o AC_CONFIG_MACRO_DIR" " " 2
4118 test "$ACLOCAL" = no && at_xfail=yes
4120 $as_echo "16. $at_setup_line: testing $at_desc ..."
4124 cat >configure.ac <<'_ATEOF'
4125 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
4131 cat >aclocal.m4 <<'_ATEOF'
4132 # This should need upgrading:
4137 # This is newer than the upgrade version:
4138 # serial 99999 ltoptions.m4
4140 # This is older than the upgrade version:
4141 # serial 1 ltversion.m4
4145 cat >expout <<'_ATEOF'
4146 libtoolize: putting auxiliary files in `.'.
4147 libtoolize: copying file `./ltmain.sh'
4148 libtoolize: You should add the contents of the following files to `aclocal.m4':
4149 libtoolize: `/usr/local/share/aclocal/libtool.m4'
4150 libtoolize: `/usr/local/share/aclocal/ltversion.m4'
4151 libtoolize: `/usr/local/share/aclocal/ltsugar.m4'
4152 libtoolize: `/usr/local/share/aclocal/lt~obsolete.m4'
4153 libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
4154 libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
4155 libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
4159 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4160 sed "s/libtoolize/$lt_name/g
4161 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
4162 mv -f expout.t expout
4164 $as_echo "$at_srcdir/libtoolize.at:685: \$LIBTOOLIZE --copy
4167 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:685"
4168 ( $at_check_trace; $LIBTOOLIZE --copy
4171 ) >>"$at_stdout" 2>>"$at_stderr"
4172 at_status=$? at_failed=false
4174 at_fn_diff_devnull "$at_stderr" || at_failed=:
4175 $at_diff expout "$at_stdout" || at_failed=:
4176 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:685"
4177 $at_failed && at_fn_log_failure
4183 ## ----------------------------------------------------------------------- ##
4184 ## Upgrading an aclocal maintained aclocal.m4 without AC_CONFIG_MACRO_DIR. ##
4185 ## ----------------------------------------------------------------------- ##
4188 $as_echo "$at_srcdir/libtoolize.at:692: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
4189 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "libtoolize.at:692"
4190 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
4191 ) >>"$at_stdout" 2>>"$at_stderr"
4192 at_status=$? at_failed=false
4194 echo stderr:; cat "$at_stderr"
4195 echo stdout:; cat "$at_stdout"
4196 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:692"
4197 $at_failed && at_fn_log_failure
4204 ## The following code is adapted (and simplified) from libtoolize.m4sh
4211 # func_grep expression filename
4212 # Check whether EXPRESSION matches any line of FILENAME, without output.
4215 $GREP "$1" "$2" >/dev/null 2>&1
4218 # func_serial filename [macro_regex]
4219 # Output the value of the serial number comment in FILENAME, where the
4220 # comment line must also match MACRO_REGEX, if given.
4226 /^# serial [1-9][0-9.]*[ ]*'"$my_macro_regex"'[ ]*$/ {
4227 s,^# serial \([1-9][0-9.]*\).*$,\1,
4232 # Search FILENAME and all the files it m4_includes for a serial number
4233 # in the file that AC_DEFUNs MACRO_REGEX.
4235 if test -z "$my_macro_regex" ||
4236 test "$my_filename" = aclocal.m4 ||
4237 test "$my_macro_regex" = `echo "$my_filename" | $SED "$basename"` ||
4238 func_grep '^AC_DEFUN(\['"$my_macro_regex" "$my_filename"
4240 my_serial=`$SED -e "$my_sed_serial" "$my_filename"`
4243 # If the file has no serial number, something is badly wrong!
4244 test -n "$my_serial" || exit 1
4249 # Make the serial number in aclocal.m4 higher than installed ltoptions.m4,
4250 # and the others match the macro files that libtoolize will compare against.
4251 libtool_serial=`func_serial "$tst_aclocaldir/libtool.m4" LT_INIT`
4252 ltversion_serial=`func_serial "$tst_aclocaldir/ltversion.m4" ltversion.m4`
4253 ltsugar_serial=`func_serial "$tst_aclocaldir/ltsugar.m4" ltsugar.m4`
4254 lt_obsolete_serial=`func_serial "$tst_aclocaldir/lt~obsolete.m4" lt~obsolete.m4`
4255 $SED -e 's,^#.*serial.*ltoptions.m4$,# serial 99999 ltoptions.m4,' \
4256 -e "s,^#.*serial.*libtool.m4\$,# serial $libtool_serial libtool.m4," \
4257 -e "s,^#.*serial.*ltversion.m4\$,# serial $ltversion_serial ltversion.m4," \
4258 -e "s,^#.*serial.*ltsugar.m4\$,# serial $ltsugar_serial ltsugar.m4," \
4259 -e "s,^#.*serial.*lt~obsolete.m4\$,# serial $lt_obsolete_serial lt~obsolete.m4," \
4260 < aclocal.m4 > aclocal.m4t
4261 mv -f aclocal.m4t aclocal.m4
4263 cat >expout <<'_ATEOF'
4264 libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
4265 libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
4266 libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
4270 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4271 sed "s/libtoolize/$lt_name/g
4272 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
4273 mv -f expout.t expout
4275 $as_echo "$at_srcdir/libtoolize.at:759: \$LIBTOOLIZE --copy
4278 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:759"
4279 ( $at_check_trace; $LIBTOOLIZE --copy
4282 ) >>"$at_stdout" 2>>"$at_stderr"
4283 at_status=$? at_failed=false
4285 at_fn_diff_devnull "$at_stderr" || at_failed=:
4286 $at_diff expout "$at_stdout" || at_failed=:
4287 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:759"
4288 $at_failed && at_fn_log_failure
4294 ## --------------------- ##
4295 ## Now, a forced update. ##
4296 ## --------------------- ##
4298 cat >expout <<'_ATEOF'
4299 libtoolize: putting auxiliary files in `.'.
4300 libtoolize: copying file `./ltmain.sh'
4301 libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
4302 libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
4303 libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
4307 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4308 sed "s/libtoolize/$lt_name/g
4309 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
4310 mv -f expout.t expout
4312 $as_echo "$at_srcdir/libtoolize.at:774: \$LIBTOOLIZE --copy --force
4315 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:774"
4316 ( $at_check_trace; $LIBTOOLIZE --copy --force
4319 ) >>"$at_stdout" 2>>"$at_stderr"
4320 at_status=$? at_failed=false
4322 at_fn_diff_devnull "$at_stderr" || at_failed=:
4323 $at_diff expout "$at_stdout" || at_failed=:
4324 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:774"
4325 $at_failed && at_fn_log_failure
4331 $at_times_p && times >"$at_times_file"
4332 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4333 read at_status <"$at_status_file"
4336 at_fn_group_banner 17 'libtoolize.at:783' \
4337 "nonrecursive ltdl with AC_CONFIG_MACRO_DIR" " " 2
4340 $as_echo "17. $at_setup_line: testing $at_desc ..."
4344 cat >expout <<'_ATEOF'
4345 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
4346 libtoolize: copying file `build-aux/config.guess'
4347 libtoolize: copying file `build-aux/config.sub'
4348 libtoolize: copying file `build-aux/install-sh'
4349 libtoolize: copying file `build-aux/ltmain.sh'
4350 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
4351 libtoolize: copying file `m4/argz.m4'
4352 libtoolize: copying file `m4/libtool.m4'
4353 libtoolize: copying file `m4/ltdl.m4'
4354 libtoolize: copying file `m4/ltoptions.m4'
4355 libtoolize: copying file `m4/ltsugar.m4'
4356 libtoolize: copying file `m4/ltversion.m4'
4357 libtoolize: copying file `m4/lt~obsolete.m4'
4358 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `ltdl'.
4359 libtoolize: copying file `ltdl/COPYING.LIB'
4360 libtoolize: copying file `ltdl/README'
4361 libtoolize: copying file `ltdl/argz_.h'
4362 libtoolize: copying file `ltdl/argz.c'
4363 libtoolize: copying file `ltdl/loaders/dld_link.c'
4364 libtoolize: copying file `ltdl/loaders/dlopen.c'
4365 libtoolize: copying file `ltdl/loaders/dyld.c'
4366 libtoolize: copying file `ltdl/loaders/load_add_on.c'
4367 libtoolize: copying file `ltdl/loaders/loadlibrary.c'
4368 libtoolize: copying file `ltdl/loaders/shl_load.c'
4369 libtoolize: copying file `ltdl/lt__dirent.c'
4370 libtoolize: copying file `ltdl/lt__strl.c'
4371 libtoolize: copying file `ltdl/libltdl/lt__alloc.h'
4372 libtoolize: copying file `ltdl/libltdl/lt__dirent.h'
4373 libtoolize: copying file `ltdl/libltdl/lt__glibc.h'
4374 libtoolize: copying file `ltdl/libltdl/lt__private.h'
4375 libtoolize: copying file `ltdl/libltdl/lt__strl.h'
4376 libtoolize: copying file `ltdl/libltdl/lt_dlloader.h'
4377 libtoolize: copying file `ltdl/libltdl/lt_error.h'
4378 libtoolize: copying file `ltdl/libltdl/lt_system.h'
4379 libtoolize: copying file `ltdl/libltdl/slist.h'
4380 libtoolize: copying file `ltdl/loaders/preopen.c'
4381 libtoolize: copying file `ltdl/lt__alloc.c'
4382 libtoolize: copying file `ltdl/lt_dlloader.c'
4383 libtoolize: copying file `ltdl/lt_error.c'
4384 libtoolize: copying file `ltdl/ltdl.c'
4385 libtoolize: copying file `ltdl/ltdl.h'
4386 libtoolize: copying file `ltdl/slist.c'
4387 libtoolize: creating file `ltdl/Makefile.inc'
4391 cat >configure.ac <<'_ATEOF'
4392 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
4393 LT_CONFIG_LTDL_DIR([ltdl])
4394 AC_CONFIG_AUX_DIR([build-aux])
4395 AC_CONFIG_MACRO_DIR([m4])
4397 LTDL_INIT([nonrecursive])
4402 cat >Makefile.am <<'_ATEOF'
4403 ACLOCAL_AMFLAGS = -I m4
4407 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4408 sed "s/libtoolize/$lt_name/g
4409 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
4410 mv -f expout.t expout
4412 $as_echo "$at_srcdir/libtoolize.at:845: \$LIBTOOLIZE --copy --install --ltdl=ltdl
4415 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:845"
4416 ( $at_check_trace; $LIBTOOLIZE --copy --install --ltdl=ltdl
4419 ) >>"$at_stdout" 2>>"$at_stderr"
4420 at_status=$? at_failed=false
4422 at_fn_diff_devnull "$at_stderr" || at_failed=:
4423 $at_diff expout "$at_stdout" || at_failed=:
4424 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:845"
4425 $at_failed && at_fn_log_failure
4431 $at_times_p && times >"$at_times_file"
4432 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4433 read at_status <"$at_status_file"
4436 at_fn_group_banner 18 'libtoolize.at:854' \
4437 "subproject ltdl with non-shared directories" " " 2
4440 $as_echo "18. $at_setup_line: testing $at_desc ..."
4444 cat >expout <<'_ATEOF'
4445 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
4446 libtoolize: copying file `build-aux/config.guess'
4447 libtoolize: copying file `build-aux/config.sub'
4448 libtoolize: copying file `build-aux/install-sh'
4449 libtoolize: copying file `build-aux/ltmain.sh'
4450 libtoolize: putting auxiliary files in `build-aux'.
4451 libtoolize: copying file `ltdl/config/compile'
4452 libtoolize: copying file `ltdl/config/config.guess'
4453 libtoolize: copying file `ltdl/config/config.sub'
4454 libtoolize: copying file `ltdl/config/depcomp'
4455 libtoolize: copying file `ltdl/config/install-sh'
4456 libtoolize: copying file `ltdl/config/missing'
4457 libtoolize: copying file `ltdl/config/ltmain.sh'
4458 libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `acm4'.
4459 libtoolize: copying file `acm4/argz.m4'
4460 libtoolize: copying file `acm4/libtool.m4'
4461 libtoolize: copying file `acm4/ltdl.m4'
4462 libtoolize: copying file `acm4/ltoptions.m4'
4463 libtoolize: copying file `acm4/ltsugar.m4'
4464 libtoolize: copying file `acm4/ltversion.m4'
4465 libtoolize: copying file `acm4/lt~obsolete.m4'
4466 libtoolize: putting macros in `ltdl/m4'.
4467 libtoolize: copying file `ltdl/m4/argz.m4'
4468 libtoolize: copying file `ltdl/m4/libtool.m4'
4469 libtoolize: copying file `ltdl/m4/ltdl.m4'
4470 libtoolize: copying file `ltdl/m4/ltoptions.m4'
4471 libtoolize: copying file `ltdl/m4/ltsugar.m4'
4472 libtoolize: copying file `ltdl/m4/ltversion.m4'
4473 libtoolize: copying file `ltdl/m4/lt~obsolete.m4'
4474 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `ltdl'.
4475 libtoolize: copying file `ltdl/COPYING.LIB'
4476 libtoolize: copying file `ltdl/README'
4477 libtoolize: copying file `ltdl/Makefile.am'
4478 libtoolize: copying file `ltdl/configure.ac'
4479 libtoolize: copying file `ltdl/aclocal.m4'
4480 libtoolize: copying file `ltdl/Makefile.in'
4481 libtoolize: copying file `ltdl/config-h.in'
4482 libtoolize: copying file `ltdl/configure'
4483 libtoolize: copying file `ltdl/argz_.h'
4484 libtoolize: copying file `ltdl/argz.c'
4485 libtoolize: copying file `ltdl/loaders/dld_link.c'
4486 libtoolize: copying file `ltdl/loaders/dlopen.c'
4487 libtoolize: copying file `ltdl/loaders/dyld.c'
4488 libtoolize: copying file `ltdl/loaders/load_add_on.c'
4489 libtoolize: copying file `ltdl/loaders/loadlibrary.c'
4490 libtoolize: copying file `ltdl/loaders/shl_load.c'
4491 libtoolize: copying file `ltdl/lt__dirent.c'
4492 libtoolize: copying file `ltdl/lt__strl.c'
4493 libtoolize: copying file `ltdl/libltdl/lt__alloc.h'
4494 libtoolize: copying file `ltdl/libltdl/lt__dirent.h'
4495 libtoolize: copying file `ltdl/libltdl/lt__glibc.h'
4496 libtoolize: copying file `ltdl/libltdl/lt__private.h'
4497 libtoolize: copying file `ltdl/libltdl/lt__strl.h'
4498 libtoolize: copying file `ltdl/libltdl/lt_dlloader.h'
4499 libtoolize: copying file `ltdl/libltdl/lt_error.h'
4500 libtoolize: copying file `ltdl/libltdl/lt_system.h'
4501 libtoolize: copying file `ltdl/libltdl/slist.h'
4502 libtoolize: copying file `ltdl/loaders/preopen.c'
4503 libtoolize: copying file `ltdl/lt__alloc.c'
4504 libtoolize: copying file `ltdl/lt_dlloader.c'
4505 libtoolize: copying file `ltdl/lt_error.c'
4506 libtoolize: copying file `ltdl/ltdl.c'
4507 libtoolize: copying file `ltdl/ltdl.h'
4508 libtoolize: copying file `ltdl/slist.c'
4509 libtoolize: Consider using `AC_CONFIG_AUX_DIR([ltdl/config])' in configure.ac.
4510 libtoolize: Consider using `AC_CONFIG_MACRO_DIR([ltdl/m4])' in configure.ac.
4511 libtoolize: Consider adding `-I ltdl/m4' to ACLOCAL_AMFLAGS in Makefile.am.
4515 cat >configure.ac <<'_ATEOF'
4516 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
4517 LT_CONFIG_LTDL_DIR([ltdl])
4518 AC_CONFIG_AUX_DIR([build-aux])
4519 AC_CONFIG_MACRO_DIR([acm4])
4521 LTDL_INIT([subproject])
4526 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4527 sed "s/libtoolize/$lt_name/g
4528 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
4529 mv -f expout.t expout
4531 $as_echo "$at_srcdir/libtoolize.at:936: \$LIBTOOLIZE --copy --install
4534 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:936"
4535 ( $at_check_trace; $LIBTOOLIZE --copy --install
4538 ) >>"$at_stdout" 2>>"$at_stderr"
4539 at_status=$? at_failed=false
4541 at_fn_diff_devnull "$at_stderr" || at_failed=:
4542 $at_diff expout "$at_stdout" || at_failed=:
4543 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:936"
4544 $at_failed && at_fn_log_failure
4550 $at_times_p && times >"$at_times_file"
4551 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4552 read at_status <"$at_status_file"
4555 at_fn_group_banner 19 'libtoolize.at:945' \
4556 "LIBTOOLIZE_OPTIONS" " " 2
4559 $as_echo "19. $at_setup_line: testing $at_desc ..."
4563 cat >configure.ac <<'_ATEOF'
4564 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
4565 AC_CONFIG_AUX_DIR([build-aux])
4566 AC_CONFIG_MACRO_DIR([m4])
4573 LIBTOOLIZE_OPTIONS="narf"
4574 export LIBTOOLIZE_OPTIONS
4576 cat >experr <<'_ATEOF'
4577 libtoolize: garbled LIBTOOLIZE_OPTIONS near `narf'
4578 libtoolize: Try `libtoolize --help' for more information.
4582 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4583 sed "s/libtoolize/$lt_name/g
4584 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
4585 mv -f experr.t experr
4587 $as_echo "$at_srcdir/libtoolize.at:957: \$LIBTOOLIZE --copy
4590 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:957"
4591 ( $at_check_trace; $LIBTOOLIZE --copy
4594 ) >>"$at_stdout" 2>>"$at_stderr"
4595 at_status=$? at_failed=false
4597 $at_diff experr "$at_stderr" || at_failed=:
4598 echo stdout:; cat "$at_stdout"
4599 at_fn_check_status 1 $at_status "$at_srcdir/libtoolize.at:957"
4600 $at_failed && at_fn_log_failure
4606 ## --------------------------- ##
4607 ## Unknown LIBTOOLIZE_OPTIONS. ##
4608 ## --------------------------- ##
4610 LIBTOOLIZE_OPTIONS=--no-such-option
4611 export LIBTOOLIZE_OPTIONS
4613 cat >experr <<'_ATEOF'
4614 libtoolize: warning: unrecognized environment option `--no-such-option'
4618 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4619 sed "s/libtoolize/$lt_name/g
4620 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
4621 mv -f experr.t experr
4623 $as_echo "$at_srcdir/libtoolize.at:971: \$LIBTOOLIZE --copy
4626 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:971"
4627 ( $at_check_trace; $LIBTOOLIZE --copy
4630 ) >>"$at_stdout" 2>>"$at_stderr"
4631 at_status=$? at_failed=false
4633 $at_diff experr "$at_stderr" || at_failed=:
4634 echo stdout:; cat "$at_stdout"
4635 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:971"
4636 $at_failed && at_fn_log_failure
4642 ## ----------------------------- ##
4643 ## --no-warn environment option. ##
4644 ## ----------------------------- ##
4646 LIBTOOLIZE_OPTIONS=--no-warn,--no-such-option
4647 export LIBTOOLIZE_OPTIONS
4651 lt_name=`$ECHO "$LIBTOOLIZE" | sed "s,^.*/,,"`
4652 sed "s/libtoolize/$lt_name/g
4653 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
4654 mv -f experr.t experr
4656 $as_echo "$at_srcdir/libtoolize.at:983: \$LIBTOOLIZE --copy
4659 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:983"
4660 ( $at_check_trace; $LIBTOOLIZE --copy
4663 ) >>"$at_stdout" 2>>"$at_stderr"
4664 at_status=$? at_failed=false
4666 $at_diff experr "$at_stderr" || at_failed=:
4667 echo stdout:; cat "$at_stdout"
4668 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:983"
4669 $at_failed && at_fn_log_failure
4675 $at_times_p && times >"$at_times_file"
4676 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4677 read at_status <"$at_status_file"
4680 at_fn_group_banner 20 'libtoolize.at:992' \
4681 "cleanup old installation" " " 2
4684 $as_echo "20. $at_setup_line: testing $at_desc ..."
4688 cat >configure.ac <<'_ATEOF'
4689 AC_INIT([libtoolize-demo], 2.4.2, bug-libtool@gnu.org)
4690 AC_CONFIG_AUX_DIR([build-aux])
4691 AC_CONFIG_MACRO_DIR([m4])
4698 cat >Makefile.am <<'_ATEOF'
4699 ACLOCAL_AMFLAGS = -I m4
4703 cat >acinclude.m4 <<'_ATEOF'
4705 [: keep me, I might be hand maintained!]) # LT_INIT
4709 cat >libltdl/acinclude.m4 <<'_ATEOF'
4711 [: delete me, I was left here by on old libltdl build]) # LT_INIT
4716 $as_echo "$at_srcdir/libtoolize.at:1010: \$LIBTOOLIZE --copy --force --ltdl
4719 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:1010"
4720 ( $at_check_trace; $LIBTOOLIZE --copy --force --ltdl
4723 ) >>"$at_stdout" 2>>"$at_stderr"
4724 at_status=$? at_failed=false
4726 at_fn_diff_devnull "$at_stderr" || at_failed=:
4727 echo stdout:; cat "$at_stdout"
4728 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1010"
4729 $at_failed && at_fn_log_failure
4734 # check files are left as expected
4736 $as_echo "$at_srcdir/libtoolize.at:1013: grep 'keep me' acinclude.m4"
4737 at_fn_check_prepare_trace "libtoolize.at:1013"
4738 ( $at_check_trace; grep 'keep me' acinclude.m4
4739 ) >>"$at_stdout" 2>>"$at_stderr"
4740 at_status=$? at_failed=false
4742 at_fn_diff_devnull "$at_stderr" || at_failed=:
4743 echo stdout:; cat "$at_stdout"
4744 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1013"
4745 $at_failed && at_fn_log_failure
4749 $as_echo "$at_srcdir/libtoolize.at:1014: test -f libltdl/acinclude.m4"
4750 at_fn_check_prepare_trace "libtoolize.at:1014"
4751 ( $at_check_trace; test -f libltdl/acinclude.m4
4752 ) >>"$at_stdout" 2>>"$at_stderr"
4753 at_status=$? at_failed=false
4755 echo stderr:; cat "$at_stderr"
4756 echo stdout:; cat "$at_stdout"
4757 at_fn_check_status 1 $at_status "$at_srcdir/libtoolize.at:1014"
4758 $at_failed && at_fn_log_failure
4763 $at_times_p && times >"$at_times_file"
4764 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4765 read at_status <"$at_status_file"
4768 at_fn_group_banner 21 'help.at:26' \
4769 "standard command line options" " " 3
4772 $as_echo "21. $at_setup_line: testing $at_desc ..."
4779 $as_echo "$at_srcdir/help.at:30: \$LIBTOOLIZE --help"
4780 at_fn_check_prepare_dynamic "$LIBTOOLIZE --help" "help.at:30"
4781 ( $at_check_trace; $LIBTOOLIZE --help
4782 ) >>"$at_stdout" 2>>"$at_stderr"
4783 at_status=$? at_failed=false
4785 at_fn_diff_devnull "$at_stderr" || at_failed=:
4786 echo stdout:; cat "$at_stdout"
4787 at_fn_check_status 0 $at_status "$at_srcdir/help.at:30"
4788 $at_failed && at_fn_log_failure
4792 $as_echo "$at_srcdir/help.at:31: \$LIBTOOLIZE --version"
4793 at_fn_check_prepare_dynamic "$LIBTOOLIZE --version" "help.at:31"
4794 ( $at_check_trace; $LIBTOOLIZE --version
4795 ) >>"$at_stdout" 2>>"$at_stderr"
4796 at_status=$? at_failed=false
4798 at_fn_diff_devnull "$at_stderr" || at_failed=:
4799 echo stdout:; tee stdout <"$at_stdout"
4800 at_fn_check_status 0 $at_status "$at_srcdir/help.at:31"
4801 $at_failed && at_fn_log_failure
4805 $as_echo "$at_srcdir/help.at:32: grep 'Copyright.*Free Software Foundation' stdout"
4806 at_fn_check_prepare_trace "help.at:32"
4807 ( $at_check_trace; grep 'Copyright.*Free Software Foundation' stdout
4808 ) >>"$at_stdout" 2>>"$at_stderr"
4809 at_status=$? at_failed=false
4811 at_fn_diff_devnull "$at_stderr" || at_failed=:
4812 echo stdout:; cat "$at_stdout"
4813 at_fn_check_status 0 $at_status "$at_srcdir/help.at:32"
4814 $at_failed && at_fn_log_failure
4818 $as_echo "$at_srcdir/help.at:33: \$LIBTOOL --help"
4819 at_fn_check_prepare_dynamic "$LIBTOOL --help" "help.at:33"
4820 ( $at_check_trace; $LIBTOOL --help
4821 ) >>"$at_stdout" 2>>"$at_stderr"
4822 at_status=$? at_failed=false
4824 at_fn_diff_devnull "$at_stderr" || at_failed=:
4825 echo stdout:; cat "$at_stdout"
4826 at_fn_check_status 0 $at_status "$at_srcdir/help.at:33"
4827 $at_failed && at_fn_log_failure
4831 $as_echo "$at_srcdir/help.at:34: \$LIBTOOL --help-all"
4832 at_fn_check_prepare_dynamic "$LIBTOOL --help-all" "help.at:34"
4833 ( $at_check_trace; $LIBTOOL --help-all
4834 ) >>"$at_stdout" 2>>"$at_stderr"
4835 at_status=$? at_failed=false
4837 at_fn_diff_devnull "$at_stderr" || at_failed=:
4838 echo stdout:; cat "$at_stdout"
4839 at_fn_check_status 0 $at_status "$at_srcdir/help.at:34"
4840 $at_failed && at_fn_log_failure
4844 $as_echo "$at_srcdir/help.at:35: \$LIBTOOL --version"
4845 at_fn_check_prepare_dynamic "$LIBTOOL --version" "help.at:35"
4846 ( $at_check_trace; $LIBTOOL --version
4847 ) >>"$at_stdout" 2>>"$at_stderr"
4848 at_status=$? at_failed=false
4850 at_fn_diff_devnull "$at_stderr" || at_failed=:
4851 echo stdout:; tee stdout <"$at_stdout"
4852 at_fn_check_status 0 $at_status "$at_srcdir/help.at:35"
4853 $at_failed && at_fn_log_failure
4857 $as_echo "$at_srcdir/help.at:36: grep 'Copyright.*Free Software Foundation' stdout"
4858 at_fn_check_prepare_trace "help.at:36"
4859 ( $at_check_trace; grep 'Copyright.*Free Software Foundation' stdout
4860 ) >>"$at_stdout" 2>>"$at_stderr"
4861 at_status=$? at_failed=false
4863 at_fn_diff_devnull "$at_stderr" || at_failed=:
4864 echo stdout:; cat "$at_stdout"
4865 at_fn_check_status 0 $at_status "$at_srcdir/help.at:36"
4866 $at_failed && at_fn_log_failure
4871 $as_echo "$at_srcdir/help.at:38: \$LIBTOOL"
4872 at_fn_check_prepare_dynamic "$LIBTOOL" "help.at:38"
4873 ( $at_check_trace; $LIBTOOL
4874 ) >>"$at_stdout" 2>>"$at_stderr"
4875 at_status=$? at_failed=false
4877 echo stderr:; tee stderr <"$at_stderr"
4878 echo stdout:; cat "$at_stdout"
4879 at_fn_check_status 1 $at_status "$at_srcdir/help.at:38"
4880 $at_failed && at_fn_log_failure
4884 $as_echo "$at_srcdir/help.at:39: grep 'specify a MODE' stderr"
4885 at_fn_check_prepare_trace "help.at:39"
4886 ( $at_check_trace; grep 'specify a MODE' stderr
4887 ) >>"$at_stdout" 2>>"$at_stderr"
4888 at_status=$? at_failed=false
4890 at_fn_diff_devnull "$at_stderr" || at_failed=:
4891 echo stdout:; cat "$at_stdout"
4892 at_fn_check_status 0 $at_status "$at_srcdir/help.at:39"
4893 $at_failed && at_fn_log_failure
4897 $as_echo "$at_srcdir/help.at:40: grep ' --help' stderr"
4898 at_fn_check_prepare_trace "help.at:40"
4899 ( $at_check_trace; grep ' --help' stderr
4900 ) >>"$at_stdout" 2>>"$at_stderr"
4901 at_status=$? at_failed=false
4903 at_fn_diff_devnull "$at_stderr" || at_failed=:
4904 echo stdout:; cat "$at_stdout"
4905 at_fn_check_status 0 $at_status "$at_srcdir/help.at:40"
4906 $at_failed && at_fn_log_failure
4911 $at_times_p && times >"$at_times_file"
4912 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4913 read at_status <"$at_status_file"
4916 at_fn_group_banner 22 'help.at:45' \
4917 "mode short-hands" " " 3
4920 $as_echo "22. $at_setup_line: testing $at_desc ..."
4925 int a () { return 0; }
4929 cat >main.c <<'_ATEOF'
4931 int main () { return a (); }
4938 mkdir $inst $libdir $bindir
4941 $as_echo "$at_srcdir/help.at:61: \$LIBTOOL compile \$CC \$CPPFLAGS \$CFLAGS -c a.c"
4942 at_fn_check_prepare_dynamic "$LIBTOOL compile $CC $CPPFLAGS $CFLAGS -c a.c" "help.at:61"
4943 ( $at_check_trace; $LIBTOOL compile $CC $CPPFLAGS $CFLAGS -c a.c
4944 ) >>"$at_stdout" 2>>"$at_stderr"
4945 at_status=$? at_failed=false
4947 echo stderr:; cat "$at_stderr"
4948 echo stdout:; cat "$at_stdout"
4949 at_fn_check_status 0 $at_status "$at_srcdir/help.at:61"
4950 $at_failed && at_fn_log_failure
4954 $as_echo "$at_srcdir/help.at:63: \$LIBTOOL co \$CC \$CPPFLAGS \$CFLAGS -c main.c"
4955 at_fn_check_prepare_dynamic "$LIBTOOL co $CC $CPPFLAGS $CFLAGS -c main.c" "help.at:63"
4956 ( $at_check_trace; $LIBTOOL co $CC $CPPFLAGS $CFLAGS -c main.c
4957 ) >>"$at_stdout" 2>>"$at_stderr"
4958 at_status=$? at_failed=false
4960 echo stderr:; cat "$at_stderr"
4961 echo stdout:; cat "$at_stdout"
4962 at_fn_check_status 0 $at_status "$at_srcdir/help.at:63"
4963 $at_failed && at_fn_log_failure
4967 $as_echo "$at_srcdir/help.at:65: \$LIBTOOL co \$CC \$CPPFLAGS \$CFLAGS -c main.c"
4968 at_fn_check_prepare_dynamic "$LIBTOOL co $CC $CPPFLAGS $CFLAGS -c main.c" "help.at:65"
4969 ( $at_check_trace; $LIBTOOL co $CC $CPPFLAGS $CFLAGS -c main.c
4970 ) >>"$at_stdout" 2>>"$at_stderr"
4971 at_status=$? at_failed=false
4973 echo stderr:; cat "$at_stderr"
4974 echo stdout:; cat "$at_stdout"
4975 at_fn_check_status 0 $at_status "$at_srcdir/help.at:65"
4976 $at_failed && at_fn_log_failure
4980 $as_echo "$at_srcdir/help.at:67: \$LIBTOOL link \$CC \$CFLAGS \$LDFLAGS -o liba.la a.lo -no-undefined -rpath \$libdir"
4981 at_fn_check_prepare_dynamic "$LIBTOOL link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -no-undefined -rpath $libdir" "help.at:67"
4982 ( $at_check_trace; $LIBTOOL link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -no-undefined -rpath $libdir
4983 ) >>"$at_stdout" 2>>"$at_stderr"
4984 at_status=$? at_failed=false
4986 echo stderr:; cat "$at_stderr"
4987 echo stdout:; cat "$at_stdout"
4988 at_fn_check_status 0 $at_status "$at_srcdir/help.at:67"
4989 $at_failed && at_fn_log_failure
4993 $as_echo "$at_srcdir/help.at:69: \$LIBTOOL l \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.lo liba.la"
4994 at_fn_check_prepare_dynamic "$LIBTOOL l $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo liba.la" "help.at:69"
4995 ( $at_check_trace; $LIBTOOL l $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo liba.la
4996 ) >>"$at_stdout" 2>>"$at_stderr"
4997 at_status=$? at_failed=false
4999 echo stderr:; cat "$at_stderr"
5000 echo stdout:; cat "$at_stdout"
5001 at_fn_check_status 0 $at_status "$at_srcdir/help.at:69"
5002 $at_failed && at_fn_log_failure
5006 $as_echo "$at_srcdir/help.at:71: \$LIBTOOL execute --dry-run ./main\$EXEEXT"
5007 at_fn_check_prepare_dynamic "$LIBTOOL execute --dry-run ./main$EXEEXT" "help.at:71"
5008 ( $at_check_trace; $LIBTOOL execute --dry-run ./main$EXEEXT
5009 ) >>"$at_stdout" 2>>"$at_stderr"
5010 at_status=$? at_failed=false
5012 echo stderr:; cat "$at_stderr"
5013 echo stdout:; cat "$at_stdout"
5014 at_fn_check_status 0 $at_status "$at_srcdir/help.at:71"
5015 $at_failed && at_fn_log_failure
5019 $as_echo "$at_srcdir/help.at:73: \$LIBTOOL exe --dry-run ./main\$EXEEXT"
5020 at_fn_check_prepare_dynamic "$LIBTOOL exe --dry-run ./main$EXEEXT" "help.at:73"
5021 ( $at_check_trace; $LIBTOOL exe --dry-run ./main$EXEEXT
5022 ) >>"$at_stdout" 2>>"$at_stderr"
5023 at_status=$? at_failed=false
5025 echo stderr:; cat "$at_stderr"
5026 echo stdout:; cat "$at_stdout"
5027 at_fn_check_status 0 $at_status "$at_srcdir/help.at:73"
5028 $at_failed && at_fn_log_failure
5032 $as_echo "$at_srcdir/help.at:75: \$LIBTOOL e --dry-run ./main\$EXEEXT"
5033 at_fn_check_prepare_dynamic "$LIBTOOL e --dry-run ./main$EXEEXT" "help.at:75"
5034 ( $at_check_trace; $LIBTOOL e --dry-run ./main$EXEEXT
5035 ) >>"$at_stdout" 2>>"$at_stderr"
5036 at_status=$? at_failed=false
5038 echo stderr:; cat "$at_stderr"
5039 echo stdout:; cat "$at_stdout"
5040 at_fn_check_status 0 $at_status "$at_srcdir/help.at:75"
5041 $at_failed && at_fn_log_failure
5045 $as_echo "$at_srcdir/help.at:77: \$LIBTOOL install cp liba.la \$libdir"
5046 at_fn_check_prepare_dynamic "$LIBTOOL install cp liba.la $libdir" "help.at:77"
5047 ( $at_check_trace; $LIBTOOL install cp liba.la $libdir
5048 ) >>"$at_stdout" 2>>"$at_stderr"
5049 at_status=$? at_failed=false
5051 echo stderr:; cat "$at_stderr"
5052 echo stdout:; cat "$at_stdout"
5053 at_fn_check_status 0 $at_status "$at_srcdir/help.at:77"
5054 $at_failed && at_fn_log_failure
5058 $as_echo "$at_srcdir/help.at:79: \$LIBTOOL i cp main\$EXEEXT \$bindir"
5059 at_fn_check_prepare_dynamic "$LIBTOOL i cp main$EXEEXT $bindir" "help.at:79"
5060 ( $at_check_trace; $LIBTOOL i cp main$EXEEXT $bindir
5061 ) >>"$at_stdout" 2>>"$at_stderr"
5062 at_status=$? at_failed=false
5064 echo stderr:; cat "$at_stderr"
5065 echo stdout:; cat "$at_stdout"
5066 at_fn_check_status 0 $at_status "$at_srcdir/help.at:79"
5067 $at_failed && at_fn_log_failure
5071 $as_echo "$at_srcdir/help.at:81: \$LIBTOOL finish \$libdir"
5072 at_fn_check_prepare_dynamic "$LIBTOOL finish $libdir" "help.at:81"
5073 ( $at_check_trace; $LIBTOOL finish $libdir
5074 ) >>"$at_stdout" 2>>"$at_stderr"
5075 at_status=$? at_failed=false
5077 echo stderr:; cat "$at_stderr"
5078 echo stdout:; cat "$at_stdout"
5079 at_fn_check_status 0 $at_status "$at_srcdir/help.at:81"
5080 $at_failed && at_fn_log_failure
5084 $as_echo "$at_srcdir/help.at:83: \$LIBTOOL f \$libdir"
5085 at_fn_check_prepare_dynamic "$LIBTOOL f $libdir" "help.at:83"
5086 ( $at_check_trace; $LIBTOOL f $libdir
5087 ) >>"$at_stdout" 2>>"$at_stderr"
5088 at_status=$? at_failed=false
5090 echo stderr:; cat "$at_stderr"
5091 echo stdout:; cat "$at_stdout"
5092 at_fn_check_status 0 $at_status "$at_srcdir/help.at:83"
5093 $at_failed && at_fn_log_failure
5097 $as_echo "$at_srcdir/help.at:85: \$LIBTOOL uninstall rm -f \$libdir/liba.la"
5098 at_fn_check_prepare_dynamic "$LIBTOOL uninstall rm -f $libdir/liba.la" "help.at:85"
5099 ( $at_check_trace; $LIBTOOL uninstall rm -f $libdir/liba.la
5100 ) >>"$at_stdout" 2>>"$at_stderr"
5101 at_status=$? at_failed=false
5103 echo stderr:; cat "$at_stderr"
5104 echo stdout:; cat "$at_stdout"
5105 at_fn_check_status 0 $at_status "$at_srcdir/help.at:85"
5106 $at_failed && at_fn_log_failure
5110 $as_echo "$at_srcdir/help.at:87: \$LIBTOOL u rm -f \$bindir/main\$EXEEXT"
5111 at_fn_check_prepare_dynamic "$LIBTOOL u rm -f $bindir/main$EXEEXT" "help.at:87"
5112 ( $at_check_trace; $LIBTOOL u rm -f $bindir/main$EXEEXT
5113 ) >>"$at_stdout" 2>>"$at_stderr"
5114 at_status=$? at_failed=false
5116 echo stderr:; cat "$at_stderr"
5117 echo stdout:; cat "$at_stdout"
5118 at_fn_check_status 0 $at_status "$at_srcdir/help.at:87"
5119 $at_failed && at_fn_log_failure
5123 $as_echo "$at_srcdir/help.at:89: \$LIBTOOL clean rm -f main\$EXEEXT"
5124 at_fn_check_prepare_dynamic "$LIBTOOL clean rm -f main$EXEEXT" "help.at:89"
5125 ( $at_check_trace; $LIBTOOL clean rm -f main$EXEEXT
5126 ) >>"$at_stdout" 2>>"$at_stderr"
5127 at_status=$? at_failed=false
5129 echo stderr:; cat "$at_stderr"
5130 echo stdout:; cat "$at_stdout"
5131 at_fn_check_status 0 $at_status "$at_srcdir/help.at:89"
5132 $at_failed && at_fn_log_failure
5136 $as_echo "$at_srcdir/help.at:91: \$LIBTOOL cl liba.la"
5137 at_fn_check_prepare_dynamic "$LIBTOOL cl liba.la" "help.at:91"
5138 ( $at_check_trace; $LIBTOOL cl liba.la
5139 ) >>"$at_stdout" 2>>"$at_stderr"
5140 at_status=$? at_failed=false
5142 echo stderr:; cat "$at_stderr"
5143 echo stdout:; cat "$at_stdout"
5144 at_fn_check_status 0 $at_status "$at_srcdir/help.at:91"
5145 $at_failed && at_fn_log_failure
5150 $at_times_p && times >"$at_times_file"
5151 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5152 read at_status <"$at_status_file"
5155 at_fn_group_banner 23 'help.at:97' \
5156 "debug tracing" " " 3
5159 $as_echo "23. $at_setup_line: testing $at_desc ..."
5164 int a () { return 0; }
5170 int b () { return a (); }
5174 cat >main.c <<'_ATEOF'
5176 int main () { return b (); }
5183 mkdir $inst $libdir $bindir
5185 # This test will not work correctly if --debug is passed.
5187 $as_echo "$at_srcdir/help.at:119: case \"\$LIBTOOL \$CC \$CPPFLAGS \$CFLAGS \$LDFLAGS \" in *\\ --debug\\ *) exit 77;; *) :;; esac"
5188 at_fn_check_prepare_dynamic "case \"$LIBTOOL $CC $CPPFLAGS $CFLAGS $LDFLAGS \" in *\\ --debug\\ *) exit 77;; *) :;; esac" "help.at:119"
5189 ( $at_check_trace; case "$LIBTOOL $CC $CPPFLAGS $CFLAGS $LDFLAGS " in *\ --debug\ *) exit 77;; *) :;; esac
5190 ) >>"$at_stdout" 2>>"$at_stderr"
5191 at_status=$? at_failed=false
5193 at_fn_diff_devnull "$at_stderr" || at_failed=:
5194 at_fn_diff_devnull "$at_stdout" || at_failed=:
5195 at_fn_check_status 0 $at_status "$at_srcdir/help.at:119"
5196 $at_failed && at_fn_log_failure
5202 if test "X$trace" = X--debug; then
5204 $as_echo "$at_srcdir/help.at:125: grep 'enabling shell trace mode' stdout stderr"
5205 at_fn_check_prepare_trace "help.at:125"
5206 ( $at_check_trace; grep 'enabling shell trace mode' stdout stderr
5207 ) >>"$at_stdout" 2>>"$at_stderr"
5208 at_status=$? at_failed=false
5210 at_fn_diff_devnull "$at_stderr" || at_failed=:
5211 echo stdout:; cat "$at_stdout"
5212 at_fn_check_status 0 $at_status "$at_srcdir/help.at:125"
5213 $at_failed && at_fn_log_failure
5217 $as_echo "$at_srcdir/help.at:126: grep ' --mode' stderr"
5218 at_fn_check_prepare_trace "help.at:126"
5219 ( $at_check_trace; grep ' --mode' stderr
5220 ) >>"$at_stdout" 2>>"$at_stderr"
5221 at_status=$? at_failed=false
5223 at_fn_diff_devnull "$at_stderr" || at_failed=:
5224 echo stdout:; cat "$at_stdout"
5225 at_fn_check_status 0 $at_status "$at_srcdir/help.at:126"
5226 $at_failed && at_fn_log_failure
5231 $as_echo "$at_srcdir/help.at:128: grep 'enabling shell trace mode' stdout stderr"
5232 at_fn_check_prepare_trace "help.at:128"
5233 ( $at_check_trace; grep 'enabling shell trace mode' stdout stderr
5234 ) >>"$at_stdout" 2>>"$at_stderr"
5235 at_status=$? at_failed=false
5237 at_fn_diff_devnull "$at_stderr" || at_failed=:
5238 at_fn_diff_devnull "$at_stdout" || at_failed=:
5239 at_fn_check_status 1 $at_status "$at_srcdir/help.at:128"
5240 $at_failed && at_fn_log_failure
5244 $as_echo "$at_srcdir/help.at:129: grep ' --mode' stderr"
5245 at_fn_check_prepare_trace "help.at:129"
5246 ( $at_check_trace; grep ' --mode' stderr
5247 ) >>"$at_stdout" 2>>"$at_stderr"
5248 at_status=$? at_failed=false
5250 at_fn_diff_devnull "$at_stderr" || at_failed=:
5251 at_fn_diff_devnull "$at_stdout" || at_failed=:
5252 at_fn_check_status 1 $at_status "$at_srcdir/help.at:129"
5253 $at_failed && at_fn_log_failure
5259 orig_LIBTOOL=$LIBTOOL
5260 for trace in '' --debug; do
5261 LIBTOOL="$orig_LIBTOOL $trace"
5263 # Hypothesis: debug output should happen if (and only if) --debug is
5264 # passed, for compile, link, install, uninstall, and clean modes.
5266 $as_echo "$at_srcdir/help.at:139: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c a.c"
5267 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c" "help.at:139"
5268 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
5269 ) >>"$at_stdout" 2>>"$at_stderr"
5270 at_status=$? at_failed=false
5272 echo stderr:; tee stderr <"$at_stderr"
5273 echo stdout:; tee stdout <"$at_stdout"
5274 at_fn_check_status 0 $at_status "$at_srcdir/help.at:139"
5275 $at_failed && at_fn_log_failure
5280 $as_echo "$at_srcdir/help.at:142: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c b.c"
5281 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c b.c" "help.at:142"
5282 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c b.c
5283 ) >>"$at_stdout" 2>>"$at_stderr"
5284 at_status=$? at_failed=false
5286 echo stderr:; tee stderr <"$at_stderr"
5287 echo stdout:; tee stdout <"$at_stdout"
5288 at_fn_check_status 0 $at_status "$at_srcdir/help.at:142"
5289 $at_failed && at_fn_log_failure
5294 $as_echo "$at_srcdir/help.at:145: \$CC \$CPPFLAGS \$CFLAGS -c main.c"
5295 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c" "help.at:145"
5296 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c
5297 ) >>"$at_stdout" 2>>"$at_stderr"
5298 at_status=$? at_failed=false
5300 echo stderr:; cat "$at_stderr"
5301 echo stdout:; cat "$at_stdout"
5302 at_fn_check_status 0 $at_status "$at_srcdir/help.at:145"
5303 $at_failed && at_fn_log_failure
5307 $as_echo "$at_srcdir/help.at:146: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la a.lo -no-undefined -rpath \$libdir"
5308 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -no-undefined -rpath $libdir" "help.at:146"
5309 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -no-undefined -rpath $libdir
5310 ) >>"$at_stdout" 2>>"$at_stderr"
5311 at_status=$? at_failed=false
5313 echo stderr:; tee stderr <"$at_stderr"
5314 echo stdout:; tee stdout <"$at_stdout"
5315 at_fn_check_status 0 $at_status "$at_srcdir/help.at:146"
5316 $at_failed && at_fn_log_failure
5321 $as_echo "$at_srcdir/help.at:149: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libb.la b.lo -no-undefined -rpath \$libdir liba.la"
5322 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -no-undefined -rpath $libdir liba.la" "help.at:149"
5323 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -no-undefined -rpath $libdir liba.la
5324 ) >>"$at_stdout" 2>>"$at_stderr"
5325 at_status=$? at_failed=false
5327 echo stderr:; tee stderr <"$at_stderr"
5328 echo stdout:; tee stdout <"$at_stdout"
5329 at_fn_check_status 0 $at_status "$at_srcdir/help.at:149"
5330 $at_failed && at_fn_log_failure
5335 $as_echo "$at_srcdir/help.at:152: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT libb.la"
5336 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT libb.la" "help.at:152"
5337 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT libb.la
5338 ) >>"$at_stdout" 2>>"$at_stderr"
5339 at_status=$? at_failed=false
5341 echo stderr:; tee stderr <"$at_stderr"
5342 echo stdout:; tee stdout <"$at_stdout"
5343 at_fn_check_status 0 $at_status "$at_srcdir/help.at:152"
5344 $at_failed && at_fn_log_failure
5348 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
5350 $as_echo "$at_srcdir/help.at:155: if \$LIBTOOL --mode=execute \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
5351 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "help.at:155"
5352 ( $at_check_trace; if $LIBTOOL --mode=execute "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
5353 ) >>"$at_stdout" 2>>"$at_stderr"
5354 at_status=$? at_failed=false
5356 echo stderr:; tee stderr <"$at_stderr"
5357 echo stdout:; tee stdout <"$at_stdout"
5358 at_fn_check_status 0 $at_status "$at_srcdir/help.at:155"
5359 $at_failed && at_fn_log_failure
5366 $as_echo "$at_srcdir/help.at:158: \$LIBTOOL --mode=install cp liba.la libb.la \$libdir"
5367 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la libb.la $libdir" "help.at:158"
5368 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la libb.la $libdir
5369 ) >>"$at_stdout" 2>>"$at_stderr"
5370 at_status=$? at_failed=false
5372 echo stderr:; tee stderr <"$at_stderr"
5373 echo stdout:; tee stdout <"$at_stdout"
5374 at_fn_check_status 0 $at_status "$at_srcdir/help.at:158"
5375 $at_failed && at_fn_log_failure
5380 # Hypothesis: --debug should be passed to relink mode if (and only if)
5381 # it was passed at link mode.
5383 $as_echo "$at_srcdir/help.at:164: \$orig_LIBTOOL --mode=install \$lt_INSTALL liba.la libb.la \$libdir"
5384 at_fn_check_prepare_dynamic "$orig_LIBTOOL --mode=install $lt_INSTALL liba.la libb.la $libdir" "help.at:164"
5385 ( $at_check_trace; $orig_LIBTOOL --mode=install $lt_INSTALL liba.la libb.la $libdir
5386 ) >>"$at_stdout" 2>>"$at_stderr"
5387 at_status=$? at_failed=false
5389 echo stderr:; tee stderr <"$at_stderr"
5390 echo stdout:; tee stdout <"$at_stdout"
5391 at_fn_check_status 0 $at_status "$at_srcdir/help.at:164"
5392 $at_failed && at_fn_log_failure
5395 if grep ': relinking ' stdout stderr; then
5396 if test "X$trace" = X--debug; then
5398 $as_echo "$at_srcdir/help.at:168: grep ' --mode=relink' stdout stderr | grep ' --debug '"
5399 at_fn_check_prepare_notrace 'a shell pipeline' "help.at:168"
5400 ( $at_check_trace; grep ' --mode=relink' stdout stderr | grep ' --debug '
5401 ) >>"$at_stdout" 2>>"$at_stderr"
5402 at_status=$? at_failed=false
5404 at_fn_diff_devnull "$at_stderr" || at_failed=:
5405 echo stdout:; cat "$at_stdout"
5406 at_fn_check_status 0 $at_status "$at_srcdir/help.at:168"
5407 $at_failed && at_fn_log_failure
5412 $as_echo "$at_srcdir/help.at:171: grep ' --mode=relink' stdout stderr | grep ' --debug '"
5413 at_fn_check_prepare_notrace 'a shell pipeline' "help.at:171"
5414 ( $at_check_trace; grep ' --mode=relink' stdout stderr | grep ' --debug '
5415 ) >>"$at_stdout" 2>>"$at_stderr"
5416 at_status=$? at_failed=false
5418 at_fn_diff_devnull "$at_stderr" || at_failed=:
5419 at_fn_diff_devnull "$at_stdout" || at_failed=:
5420 at_fn_check_status 1 $at_status "$at_srcdir/help.at:171"
5421 $at_failed && at_fn_log_failure
5428 $as_echo "$at_srcdir/help.at:176: \$LIBTOOL --mode=install cp main\$EXEEXT \$bindir"
5429 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp main$EXEEXT $bindir" "help.at:176"
5430 ( $at_check_trace; $LIBTOOL --mode=install cp main$EXEEXT $bindir
5431 ) >>"$at_stdout" 2>>"$at_stderr"
5432 at_status=$? at_failed=false
5434 echo stderr:; tee stderr <"$at_stderr"
5435 echo stdout:; tee stdout <"$at_stdout"
5436 at_fn_check_status 0 $at_status "$at_srcdir/help.at:176"
5437 $at_failed && at_fn_log_failure
5442 $as_echo "$at_srcdir/help.at:179: \$LIBTOOL --mode=finish \$bindir"
5443 at_fn_check_prepare_dynamic "$LIBTOOL --mode=finish $bindir" "help.at:179"
5444 ( $at_check_trace; $LIBTOOL --mode=finish $bindir
5445 ) >>"$at_stdout" 2>>"$at_stderr"
5446 at_status=$? at_failed=false
5448 echo stderr:; tee stderr <"$at_stderr"
5449 echo stdout:; tee stdout <"$at_stdout"
5450 at_fn_check_status 0 $at_status "$at_srcdir/help.at:179"
5451 $at_failed && at_fn_log_failure
5457 $as_echo "$at_srcdir/help.at:182: \$LIBTOOL --mode=uninstall rm -f \$bindir/main\$EXEEXT \$libdir/libb.la \$libdir/liba.la"
5458 at_fn_check_prepare_dynamic "$LIBTOOL --mode=uninstall rm -f $bindir/main$EXEEXT $libdir/libb.la $libdir/liba.la" "help.at:182"
5459 ( $at_check_trace; $LIBTOOL --mode=uninstall rm -f $bindir/main$EXEEXT $libdir/libb.la $libdir/liba.la
5460 ) >>"$at_stdout" 2>>"$at_stderr"
5461 at_status=$? at_failed=false
5463 echo stderr:; tee stderr <"$at_stderr"
5464 echo stdout:; tee stdout <"$at_stdout"
5465 at_fn_check_status 0 $at_status "$at_srcdir/help.at:182"
5466 $at_failed && at_fn_log_failure
5471 $as_echo "$at_srcdir/help.at:185: \$LIBTOOL --mode=clean rm -f \$bindir/main\$EXEEXT \$libdir/libb.la \$libdir/liba.la"
5472 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f $bindir/main$EXEEXT $libdir/libb.la $libdir/liba.la" "help.at:185"
5473 ( $at_check_trace; $LIBTOOL --mode=clean rm -f $bindir/main$EXEEXT $libdir/libb.la $libdir/liba.la
5474 ) >>"$at_stdout" 2>>"$at_stderr"
5475 at_status=$? at_failed=false
5477 echo stderr:; tee stderr <"$at_stderr"
5478 echo stdout:; tee stdout <"$at_stdout"
5479 at_fn_check_status 0 $at_status "$at_srcdir/help.at:185"
5480 $at_failed && at_fn_log_failure
5488 $at_times_p && times >"$at_times_file"
5489 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5490 read at_status <"$at_status_file"
5493 at_fn_group_banner 24 'duplicate_members.at:25' \
5494 "duplicate members in archive tests" " " 3
5497 $as_echo "24. $at_setup_line: testing $at_desc ..."
5502 # we don't want to use whole_archive_flag_spec, even if available
5503 sed -e 's|^whole_archive_flag_spec=.*|whole_archive_flag_spec=|g' < $LIBTOOL > libtool
5508 cat >bar.c <<'_ATEOF'
5509 extern int foo1 (), foo2 (), foo3 (), foo4 (), foo5 (), foo6 ();
5511 int result = foo1 () + foo2 () + foo3 () + foo4 () + foo5 () + foo6 ();
5517 cat >main.c <<'_ATEOF'
5521 if (bar() == 21) return 0;
5528 for a in 1 2 3 4 5 6
5531 echo "int foo$a() {return $a;}" > $a/a.c
5535 for a in 1 2 3 4 5 6
5537 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o $a/a.lo $a/a.c
5539 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libc0.la 6/a.lo
5541 $as_echo "$at_srcdir/duplicate_members.at:64: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o libconv.la 1/a.lo 2/a.lo 3/a.lo 4/a.lo 5/a.lo libc0.la"
5542 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libconv.la 1/a.lo 2/a.lo 3/a.lo 4/a.lo 5/a.lo libc0.la" "duplicate_members.at:64"
5543 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libconv.la 1/a.lo 2/a.lo 3/a.lo 4/a.lo 5/a.lo libc0.la
5544 ) >>"$at_stdout" 2>>"$at_stderr"
5545 at_status=$? at_failed=false
5547 echo stderr:; cat "$at_stderr"
5548 echo stdout:; cat "$at_stdout"
5549 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_members.at:64"
5550 $at_failed && at_fn_log_failure
5554 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar.lo bar.c
5556 $as_echo "$at_srcdir/duplicate_members.at:68: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o libbar.la bar.lo libconv.la -rpath /notexist"
5557 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo libconv.la -rpath /notexist" "duplicate_members.at:68"
5558 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo libconv.la -rpath /notexist
5559 ) >>"$at_stdout" 2>>"$at_stderr"
5560 at_status=$? at_failed=false
5562 echo stderr:; cat "$at_stderr"
5563 echo stdout:; cat "$at_stdout"
5564 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_members.at:68"
5565 $at_failed && at_fn_log_failure
5569 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o main.lo main.c
5571 $as_echo "$at_srcdir/duplicate_members.at:72: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.lo ./libbar.la"
5572 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo ./libbar.la" "duplicate_members.at:72"
5573 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo ./libbar.la
5574 ) >>"$at_stdout" 2>>"$at_stderr"
5575 at_status=$? at_failed=false
5577 echo stderr:; cat "$at_stderr"
5578 echo stdout:; cat "$at_stdout"
5579 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_members.at:72"
5580 $at_failed && at_fn_log_failure
5584 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
5586 $as_echo "$at_srcdir/duplicate_members.at:75: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
5587 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "duplicate_members.at:75"
5588 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
5589 ) >>"$at_stdout" 2>>"$at_stderr"
5590 at_status=$? at_failed=false
5592 echo stderr:; cat "$at_stderr"
5593 echo stdout:; cat "$at_stdout"
5594 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_members.at:75"
5595 $at_failed && at_fn_log_failure
5601 $at_times_p && times >"$at_times_file"
5602 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5603 read at_status <"$at_status_file"
5606 at_fn_group_banner 25 'duplicate_conv.at:25' \
5607 "duplicate convenience archive names" " " 3
5610 $as_echo "25. $at_setup_line: testing $at_desc ..."
5615 eval `$LIBTOOL --config | sed -n '/^reload_cmds=/,/^$/p'`
5617 # We create two convenience archives with the same name, and _also_
5618 # containing an object with the same name. This is necessary to detect
5619 # the failure with both 1.5.22 and HEAD, since the latter does not (did
5620 # not?) remove the temporary output directory, thus masking the failure
5621 # when all objects have distinct names.
5625 echo 'int a () { return 0; }' > a/a.c
5626 echo 'int a2() { return 0; }' > b/a.c
5627 echo 'int b () { return 0; }' > b/b.c
5628 echo 'extern int a(), a2(), b(); int c() { return a() + a2() + b(); }' > c.c
5629 echo 'extern int c(); int main() { return c(); }' > main.c
5631 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a/a.c -o a/a.lo
5632 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c b/a.c -o b/a.lo
5633 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c b/b.c -o b/b.lo
5634 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c c.c
5635 $CC $CPPFLAGS $CFLAGS -c main.c
5636 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o a/liba.la a/a.lo
5637 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o b/liba.la b/a.lo b/b.lo
5639 # Fold into convenience archive.
5641 $as_echo "$at_srcdir/duplicate_conv.at:53: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o libcee.la c.lo a/liba.la b/liba.la"
5642 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libcee.la c.lo a/liba.la b/liba.la" "duplicate_conv.at:53"
5643 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libcee.la c.lo a/liba.la b/liba.la
5644 ) >>"$at_stdout" 2>>"$at_stderr"
5645 at_status=$? at_failed=false
5647 echo stderr:; cat "$at_stderr"
5648 echo stdout:; cat "$at_stdout"
5649 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:53"
5650 $at_failed && at_fn_log_failure
5654 $as_echo "$at_srcdir/duplicate_conv.at:55: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT ./libcee.la"
5655 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la" "duplicate_conv.at:55"
5656 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la
5657 ) >>"$at_stdout" 2>>"$at_stderr"
5658 at_status=$? at_failed=false
5660 echo stderr:; cat "$at_stderr"
5661 echo stdout:; cat "$at_stdout"
5662 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:55"
5663 $at_failed && at_fn_log_failure
5666 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
5668 $as_echo "$at_srcdir/duplicate_conv.at:57: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
5669 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "duplicate_conv.at:57"
5670 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
5671 ) >>"$at_stdout" 2>>"$at_stderr"
5672 at_status=$? at_failed=false
5674 echo stderr:; cat "$at_stderr"
5675 echo stdout:; cat "$at_stdout"
5676 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:57"
5677 $at_failed && at_fn_log_failure
5681 $LIBTOOL --mode=clean rm -f libcee.la
5684 # FIXME: For this test, we may want to zero out whole_archive_flag_spec;
5685 # OTOH, we'd like to test the other situation, too.
5687 # Fold into static library.
5689 $as_echo "$at_srcdir/duplicate_conv.at:65: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -rpath /foo -static -o libcee.la c.lo a/liba.la b/liba.la"
5690 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -rpath /foo -static -o libcee.la c.lo a/liba.la b/liba.la" "duplicate_conv.at:65"
5691 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -rpath /foo -static -o libcee.la c.lo a/liba.la b/liba.la
5692 ) >>"$at_stdout" 2>>"$at_stderr"
5693 at_status=$? at_failed=false
5695 echo stderr:; cat "$at_stderr"
5696 echo stdout:; cat "$at_stdout"
5697 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:65"
5698 $at_failed && at_fn_log_failure
5702 $as_echo "$at_srcdir/duplicate_conv.at:67: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT ./libcee.la"
5703 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la" "duplicate_conv.at:67"
5704 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la
5705 ) >>"$at_stdout" 2>>"$at_stderr"
5706 at_status=$? at_failed=false
5708 echo stderr:; cat "$at_stderr"
5709 echo stdout:; cat "$at_stdout"
5710 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:67"
5711 $at_failed && at_fn_log_failure
5714 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
5716 $as_echo "$at_srcdir/duplicate_conv.at:69: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
5717 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "duplicate_conv.at:69"
5718 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
5719 ) >>"$at_stdout" 2>>"$at_stderr"
5720 at_status=$? at_failed=false
5722 echo stderr:; cat "$at_stderr"
5723 echo stdout:; cat "$at_stdout"
5724 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:69"
5725 $at_failed && at_fn_log_failure
5729 $LIBTOOL --mode=clean rm -f libcee.la
5731 # Fold into library.
5733 $as_echo "$at_srcdir/duplicate_conv.at:73: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -rpath /foo -o libcee.la c.lo a/liba.la b/liba.la"
5734 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -rpath /foo -o libcee.la c.lo a/liba.la b/liba.la" "duplicate_conv.at:73"
5735 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -rpath /foo -o libcee.la c.lo a/liba.la b/liba.la
5736 ) >>"$at_stdout" 2>>"$at_stderr"
5737 at_status=$? at_failed=false
5739 echo stderr:; cat "$at_stderr"
5740 echo stdout:; cat "$at_stdout"
5741 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:73"
5742 $at_failed && at_fn_log_failure
5746 $as_echo "$at_srcdir/duplicate_conv.at:75: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT ./libcee.la"
5747 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la" "duplicate_conv.at:75"
5748 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ./libcee.la
5749 ) >>"$at_stdout" 2>>"$at_stderr"
5750 at_status=$? at_failed=false
5752 echo stderr:; cat "$at_stderr"
5753 echo stdout:; cat "$at_stdout"
5754 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:75"
5755 $at_failed && at_fn_log_failure
5758 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
5760 $as_echo "$at_srcdir/duplicate_conv.at:77: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
5761 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "duplicate_conv.at:77"
5762 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
5763 ) >>"$at_stdout" 2>>"$at_stderr"
5764 at_status=$? at_failed=false
5766 echo stderr:; cat "$at_stderr"
5767 echo stdout:; cat "$at_stdout"
5768 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:77"
5769 $at_failed && at_fn_log_failure
5773 $LIBTOOL --mode=clean rm -f libcee.la
5776 $as_echo "$at_srcdir/duplicate_conv.at:80: test \"x\$reload_cmds\" = xfalse && exit 77"
5777 at_fn_check_prepare_dynamic "test \"x$reload_cmds\" = xfalse && exit 77" "duplicate_conv.at:80"
5778 ( $at_check_trace; test "x$reload_cmds" = xfalse && exit 77
5779 ) >>"$at_stdout" 2>>"$at_stderr"
5780 at_status=$? at_failed=false
5782 at_fn_diff_devnull "$at_stderr" || at_failed=:
5783 at_fn_diff_devnull "$at_stdout" || at_failed=:
5784 at_fn_check_status 1 $at_status "$at_srcdir/duplicate_conv.at:80"
5785 $at_failed && at_fn_log_failure
5789 # Test whether this works with reloadable objects as well.
5791 $as_echo "$at_srcdir/duplicate_conv.at:83: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o cee.\$OBJEXT c.lo a/liba.la b/liba.la"
5792 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o cee.$OBJEXT c.lo a/liba.la b/liba.la" "duplicate_conv.at:83"
5793 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o cee.$OBJEXT c.lo a/liba.la b/liba.la
5794 ) >>"$at_stdout" 2>>"$at_stderr"
5795 at_status=$? at_failed=false
5797 echo stderr:; cat "$at_stderr"
5798 echo stdout:; cat "$at_stdout"
5799 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:83"
5800 $at_failed && at_fn_log_failure
5804 $as_echo "$at_srcdir/duplicate_conv.at:85: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT cee.\$OBJEXT"
5805 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT cee.$OBJEXT" "duplicate_conv.at:85"
5806 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT cee.$OBJEXT
5807 ) >>"$at_stdout" 2>>"$at_stderr"
5808 at_status=$? at_failed=false
5810 echo stderr:; cat "$at_stderr"
5811 echo stdout:; cat "$at_stdout"
5812 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:85"
5813 $at_failed && at_fn_log_failure
5816 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
5818 $as_echo "$at_srcdir/duplicate_conv.at:87: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
5819 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "duplicate_conv.at:87"
5820 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
5821 ) >>"$at_stdout" 2>>"$at_stderr"
5822 at_status=$? at_failed=false
5824 echo stderr:; cat "$at_stderr"
5825 echo stdout:; cat "$at_stdout"
5826 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_conv.at:87"
5827 $at_failed && at_fn_log_failure
5832 # TODO: test dlpreloading of duplicates (when it is implemented)
5835 $at_times_p && times >"$at_times_file"
5836 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5837 read at_status <"$at_status_file"
5840 at_fn_group_banner 26 'duplicate_deps.at:25' \
5841 "preserve duplicate convenience deps" " " 3
5844 $as_echo "26. $at_setup_line: testing $at_desc ..."
5849 # --preserve-dup-deps should work for convenience archives.
5851 # Create a circular dependency of liba and libb:
5852 # a1 pulls in b1, that pulls in a2.
5855 int a1 () { return b1 (); }
5858 int a2 () { return 0; }
5862 int b1 () { return a2 (); }
5866 int main () { return a1 (); }
5869 for file in a1.c a2.c b1.c; do
5870 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
5872 $CC $CPPFLAGS $CFLAGS -c main.c
5873 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o liba.la a1.lo a2.lo
5875 # This could be worked around by adding liba.la to libb.la
5876 # (in that case all objects from liba would be merged into
5877 # libb.a as well, possibly renamed.)
5878 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libb.la b1.lo liba.la
5880 $as_echo "$at_srcdir/duplicate_deps.at:58: \$LIBTOOL --mode=link --tag=CC \\
5881 \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT liba.la libb.la"
5882 at_fn_check_prepare_notrace 'an embedded newline' "duplicate_deps.at:58"
5883 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC \
5884 $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la libb.la
5885 ) >>"$at_stdout" 2>>"$at_stderr"
5886 at_status=$? at_failed=false
5888 echo stderr:; cat "$at_stderr"
5889 echo stdout:; cat "$at_stdout"
5890 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_deps.at:58"
5891 $at_failed && at_fn_log_failure
5894 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
5896 $as_echo "$at_srcdir/duplicate_deps.at:61: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
5897 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "duplicate_deps.at:61"
5898 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
5899 ) >>"$at_stdout" 2>>"$at_stderr"
5900 at_status=$? at_failed=false
5902 at_fn_diff_devnull "$at_stderr" || at_failed=:
5903 at_fn_diff_devnull "$at_stdout" || at_failed=:
5904 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_deps.at:61"
5905 $at_failed && at_fn_log_failure
5910 # Forgo the workaround and create a true circular dependency.
5911 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libb.la b1.lo
5912 # Some systems find all symbols anyway; skip this test on such systems.
5914 $as_echo "$at_srcdir/duplicate_deps.at:66: \$LIBTOOL --mode=link --tag=CC \\
5915 \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT liba.la libb.la liba.la \\
5917 at_fn_check_prepare_notrace 'an embedded newline' "duplicate_deps.at:66"
5918 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC \
5919 $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la libb.la liba.la \
5921 ) >>"$at_stdout" 2>>"$at_stderr"
5922 at_status=$? at_failed=false
5924 echo stderr:; cat "$at_stderr"
5925 echo stdout:; cat "$at_stdout"
5926 at_fn_check_status 1 $at_status "$at_srcdir/duplicate_deps.at:66"
5927 $at_failed && at_fn_log_failure
5930 # Other systems need special treatment, which currently fails.
5933 $as_echo "$at_srcdir/duplicate_deps.at:72: \$LIBTOOL --mode=link --preserve-dup-deps --tag=CC \\
5934 \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT liba.la libb.la liba.la"
5935 at_fn_check_prepare_notrace 'an embedded newline' "duplicate_deps.at:72"
5936 ( $at_check_trace; $LIBTOOL --mode=link --preserve-dup-deps --tag=CC \
5937 $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la libb.la liba.la
5938 ) >>"$at_stdout" 2>>"$at_stderr"
5939 at_status=$? at_failed=false
5941 echo stderr:; cat "$at_stderr"
5942 echo stdout:; cat "$at_stdout"
5943 at_fn_check_status 0 $at_status "$at_srcdir/duplicate_deps.at:72"
5944 $at_failed && at_fn_log_failure
5949 $at_times_p && times >"$at_times_file"
5950 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5951 read at_status <"$at_status_file"
5954 at_fn_group_banner 27 'flags.at:24' \
5955 "passing CC flags through libtool" " " 3
5958 $as_echo "27. $at_setup_line: testing $at_desc ..."
5964 $as_echo "$at_srcdir/flags.at:24: { test -n \"\$CC\" && test \"X\$CC\" != Xno; } || (exit 77)"
5965 at_fn_check_prepare_dynamic "{ test -n \"$CC\" && test \"X$CC\" != Xno; } || (exit 77)" "flags.at:24"
5966 ( $at_check_trace; { test -n "$CC" && test "X$CC" != Xno; } || (exit 77)
5967 ) >>"$at_stdout" 2>>"$at_stderr"
5968 at_status=$? at_failed=false
5970 at_fn_diff_devnull "$at_stderr" || at_failed=:
5971 at_fn_diff_devnull "$at_stdout" || at_failed=:
5972 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
5973 $at_failed && at_fn_log_failure
5979 LDFLAGS="$LDFLAGS -no-undefined"
5980 eval "`$LIBTOOL --config | $EGREP '^(FGREP)='`"
5983 int main () { return 0; }
5986 compile="$CC $CPPFLAGS $CFLAGS" link="$CC $CFLAGS $LDFLAGS" source=a.c
5989 # Linker flags are not passed to the archiver, so don't test static libraries.
5990 if $LIBTOOL --features | grep 'enable shared libraries'; then
5991 library_and_module='library.la "module.la -module -avoid-version"'
5996 eval "`$LIBTOOL --tag=CC --config | $EGREP '^(wl|archive_cmds)='`"
5999 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL --tag=CC --mode=compile \$compile -c \$source"
6000 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CC --mode=compile $compile -c $source" "flags.at:24"
6001 ( $at_check_trace; $LIBTOOL --tag=CC --mode=compile $compile -c $source
6002 ) >>"$at_stdout" 2>>"$at_stderr"
6003 at_status=$? at_failed=false
6005 echo stderr:; cat "$at_stderr"
6006 echo stdout:; cat "$at_stdout"
6007 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6008 $at_failed && at_fn_log_failure
6012 # Linker flags are prefixed with ${wl} iff they are passed to the
6013 # compiler driver, instead of directly to the linker.
6014 case $archive_cmds in
6015 *\$LD*\$linker_flags*) maybe_wl= compiler_flags_in_liblink=false ;;
6016 *) maybe_wl=$wl compiler_flags_in_liblink=: ;;
6019 for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
6021 -Wc, | -Xcompiler\ )
6023 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=CC --mode=compile \$compile \$flag-foo -c \$source"
6024 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=CC --mode=compile $compile $flag-foo -c $source" "flags.at:24"
6025 ( $at_check_trace; $LIBTOOL -n --tag=CC --mode=compile $compile $flag-foo -c $source
6026 ) >>"$at_stdout" 2>>"$at_stderr"
6027 at_status=$? at_failed=false
6029 echo stderr:; cat "$at_stderr"
6030 echo stdout:; tee stdout <"$at_stdout"
6031 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6032 $at_failed && at_fn_log_failure
6036 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" -foo\" stdout"
6037 at_fn_check_prepare_dynamic "$FGREP \" -foo\" stdout" "flags.at:24"
6038 ( $at_check_trace; $FGREP " -foo" stdout
6039 ) >>"$at_stdout" 2>>"$at_stderr"
6040 at_status=$? at_failed=false
6042 at_fn_diff_devnull "$at_stderr" || at_failed=:
6043 echo stdout:; cat "$at_stdout"
6044 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6045 $at_failed && at_fn_log_failure
6050 flags_in_liblink=$compiler_flags_in_liblink
6053 flag_prefix_prog=$wl
6054 flag_prefix_lib=$maybe_wl
6060 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=CC --mode=link \$link -o program\$EXEEXT a.lo \$flag-foo"
6061 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=CC --mode=link $link -o program$EXEEXT a.lo $flag-foo" "flags.at:24"
6062 ( $at_check_trace; $LIBTOOL -n --tag=CC --mode=link $link -o program$EXEEXT a.lo $flag-foo
6063 ) >>"$at_stdout" 2>>"$at_stderr"
6064 at_status=$? at_failed=false
6066 echo stderr:; cat "$at_stderr"
6067 echo stdout:; tee stdout <"$at_stdout"
6068 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6069 $at_failed && at_fn_log_failure
6073 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_prog-foo\" stdout"
6074 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_prog-foo\" stdout" "flags.at:24"
6075 ( $at_check_trace; $FGREP " $flag_prefix_prog-foo" stdout
6076 ) >>"$at_stdout" 2>>"$at_stderr"
6077 at_status=$? at_failed=false
6079 at_fn_diff_devnull "$at_stderr" || at_failed=:
6080 echo stdout:; cat "$at_stdout"
6081 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6082 $at_failed && at_fn_log_failure
6086 eval set x "$library_and_module"
6089 test x = "$output" && continue
6091 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=CC --mode=link \$link -o \$output a.lo -rpath /nowhere \$flag-foo"
6092 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=CC --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo" "flags.at:24"
6093 ( $at_check_trace; $LIBTOOL -n --tag=CC --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo
6094 ) >>"$at_stdout" 2>>"$at_stderr"
6095 at_status=$? at_failed=false
6097 echo stderr:; cat "$at_stderr"
6098 echo stdout:; tee stdout <"$at_stdout"
6099 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6100 $at_failed && at_fn_log_failure
6103 if $flags_in_liblink; then
6105 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6106 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6107 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6108 ) >>"$at_stdout" 2>>"$at_stderr"
6109 at_status=$? at_failed=false
6111 at_fn_diff_devnull "$at_stderr" || at_failed=:
6112 echo stdout:; cat "$at_stdout"
6113 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6114 $at_failed && at_fn_log_failure
6119 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6120 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6121 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6122 ) >>"$at_stdout" 2>>"$at_stderr"
6123 at_status=$? at_failed=false
6125 at_fn_diff_devnull "$at_stderr" || at_failed=:
6126 at_fn_diff_devnull "$at_stdout" || at_failed=:
6127 at_fn_check_status 1 $at_status "$at_srcdir/flags.at:24"
6128 $at_failed && at_fn_log_failure
6136 $at_times_p && times >"$at_times_file"
6137 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6138 read at_status <"$at_status_file"
6141 at_fn_group_banner 28 'flags.at:24' \
6142 "passing CXX flags through libtool" " " 3
6145 $as_echo "28. $at_setup_line: testing $at_desc ..."
6151 $as_echo "$at_srcdir/flags.at:24: { test -n \"\$CXX\" && test \"X\$CXX\" != Xno; } || (exit 77)"
6152 at_fn_check_prepare_dynamic "{ test -n \"$CXX\" && test \"X$CXX\" != Xno; } || (exit 77)" "flags.at:24"
6153 ( $at_check_trace; { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
6154 ) >>"$at_stdout" 2>>"$at_stderr"
6155 at_status=$? at_failed=false
6157 at_fn_diff_devnull "$at_stderr" || at_failed=:
6158 at_fn_diff_devnull "$at_stdout" || at_failed=:
6159 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6160 $at_failed && at_fn_log_failure
6164 $as_echo "$at_srcdir/flags.at:24: test \"X\$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)"
6165 at_fn_check_prepare_dynamic "test \"X$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)" "flags.at:24"
6166 ( $at_check_trace; test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)
6167 ) >>"$at_stdout" 2>>"$at_stderr"
6168 at_status=$? at_failed=false
6170 at_fn_diff_devnull "$at_stderr" || at_failed=:
6171 at_fn_diff_devnull "$at_stdout" || at_failed=:
6172 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6173 $at_failed && at_fn_log_failure
6178 LDFLAGS="$LDFLAGS -no-undefined"
6179 eval "`$LIBTOOL --config | $EGREP '^(FGREP)='`"
6181 cat >a.cpp <<'_ATEOF'
6182 int main () { return 0; }
6185 compile="$CXX $CPPFLAGS $CXXFLAGS" link="$CXX $CXXFLAGS $LDFLAGS" source=a.cpp
6188 # Linker flags are not passed to the archiver, so don't test static libraries.
6189 if $LIBTOOL --features | grep 'enable shared libraries'; then
6190 library_and_module='library.la "module.la -module -avoid-version"'
6195 eval "`$LIBTOOL --tag=CXX --config | $EGREP '^(wl|archive_cmds)='`"
6198 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL --tag=CXX --mode=compile \$compile -c \$source"
6199 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=compile $compile -c $source" "flags.at:24"
6200 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=compile $compile -c $source
6201 ) >>"$at_stdout" 2>>"$at_stderr"
6202 at_status=$? at_failed=false
6204 echo stderr:; cat "$at_stderr"
6205 echo stdout:; cat "$at_stdout"
6206 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6207 $at_failed && at_fn_log_failure
6211 # Linker flags are prefixed with ${wl} iff they are passed to the
6212 # compiler driver, instead of directly to the linker.
6213 case $archive_cmds in
6214 *\$LD*\$linker_flags*) maybe_wl= compiler_flags_in_liblink=false ;;
6215 *) maybe_wl=$wl compiler_flags_in_liblink=: ;;
6218 for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
6220 -Wc, | -Xcompiler\ )
6222 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=CXX --mode=compile \$compile \$flag-foo -c \$source"
6223 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=CXX --mode=compile $compile $flag-foo -c $source" "flags.at:24"
6224 ( $at_check_trace; $LIBTOOL -n --tag=CXX --mode=compile $compile $flag-foo -c $source
6225 ) >>"$at_stdout" 2>>"$at_stderr"
6226 at_status=$? at_failed=false
6228 echo stderr:; cat "$at_stderr"
6229 echo stdout:; tee stdout <"$at_stdout"
6230 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6231 $at_failed && at_fn_log_failure
6235 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" -foo\" stdout"
6236 at_fn_check_prepare_dynamic "$FGREP \" -foo\" stdout" "flags.at:24"
6237 ( $at_check_trace; $FGREP " -foo" stdout
6238 ) >>"$at_stdout" 2>>"$at_stderr"
6239 at_status=$? at_failed=false
6241 at_fn_diff_devnull "$at_stderr" || at_failed=:
6242 echo stdout:; cat "$at_stdout"
6243 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6244 $at_failed && at_fn_log_failure
6249 flags_in_liblink=$compiler_flags_in_liblink
6252 flag_prefix_prog=$wl
6253 flag_prefix_lib=$maybe_wl
6259 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=CXX --mode=link \$link -o program\$EXEEXT a.lo \$flag-foo"
6260 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=CXX --mode=link $link -o program$EXEEXT a.lo $flag-foo" "flags.at:24"
6261 ( $at_check_trace; $LIBTOOL -n --tag=CXX --mode=link $link -o program$EXEEXT a.lo $flag-foo
6262 ) >>"$at_stdout" 2>>"$at_stderr"
6263 at_status=$? at_failed=false
6265 echo stderr:; cat "$at_stderr"
6266 echo stdout:; tee stdout <"$at_stdout"
6267 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6268 $at_failed && at_fn_log_failure
6272 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_prog-foo\" stdout"
6273 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_prog-foo\" stdout" "flags.at:24"
6274 ( $at_check_trace; $FGREP " $flag_prefix_prog-foo" stdout
6275 ) >>"$at_stdout" 2>>"$at_stderr"
6276 at_status=$? at_failed=false
6278 at_fn_diff_devnull "$at_stderr" || at_failed=:
6279 echo stdout:; cat "$at_stdout"
6280 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6281 $at_failed && at_fn_log_failure
6285 eval set x "$library_and_module"
6288 test x = "$output" && continue
6290 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=CXX --mode=link \$link -o \$output a.lo -rpath /nowhere \$flag-foo"
6291 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=CXX --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo" "flags.at:24"
6292 ( $at_check_trace; $LIBTOOL -n --tag=CXX --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo
6293 ) >>"$at_stdout" 2>>"$at_stderr"
6294 at_status=$? at_failed=false
6296 echo stderr:; cat "$at_stderr"
6297 echo stdout:; tee stdout <"$at_stdout"
6298 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6299 $at_failed && at_fn_log_failure
6302 if $flags_in_liblink; then
6304 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6305 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6306 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6307 ) >>"$at_stdout" 2>>"$at_stderr"
6308 at_status=$? at_failed=false
6310 at_fn_diff_devnull "$at_stderr" || at_failed=:
6311 echo stdout:; cat "$at_stdout"
6312 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6313 $at_failed && at_fn_log_failure
6318 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6319 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6320 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6321 ) >>"$at_stdout" 2>>"$at_stderr"
6322 at_status=$? at_failed=false
6324 at_fn_diff_devnull "$at_stderr" || at_failed=:
6325 at_fn_diff_devnull "$at_stdout" || at_failed=:
6326 at_fn_check_status 1 $at_status "$at_srcdir/flags.at:24"
6327 $at_failed && at_fn_log_failure
6335 $at_times_p && times >"$at_times_file"
6336 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6337 read at_status <"$at_status_file"
6340 at_fn_group_banner 29 'flags.at:24' \
6341 "passing F77 flags through libtool" " " 3
6344 $as_echo "29. $at_setup_line: testing $at_desc ..."
6350 $as_echo "$at_srcdir/flags.at:24: { test -n \"\$F77\" && test \"X\$F77\" != Xno; } || (exit 77)"
6351 at_fn_check_prepare_dynamic "{ test -n \"$F77\" && test \"X$F77\" != Xno; } || (exit 77)" "flags.at:24"
6352 ( $at_check_trace; { test -n "$F77" && test "X$F77" != Xno; } || (exit 77)
6353 ) >>"$at_stdout" 2>>"$at_stderr"
6354 at_status=$? at_failed=false
6356 at_fn_diff_devnull "$at_stderr" || at_failed=:
6357 at_fn_diff_devnull "$at_stdout" || at_failed=:
6358 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6359 $at_failed && at_fn_log_failure
6365 LDFLAGS="$LDFLAGS -no-undefined"
6366 eval "`$LIBTOOL --config | $EGREP '^(FGREP)='`"
6373 compile="$F77 $FFLAGS" link="$F77 $FFLAGS $LDFLAGS" source=a.f
6376 # Linker flags are not passed to the archiver, so don't test static libraries.
6377 if $LIBTOOL --features | grep 'enable shared libraries'; then
6378 library_and_module='library.la "module.la -module -avoid-version"'
6383 eval "`$LIBTOOL --tag=F77 --config | $EGREP '^(wl|archive_cmds)='`"
6386 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL --tag=F77 --mode=compile \$compile -c \$source"
6387 at_fn_check_prepare_dynamic "$LIBTOOL --tag=F77 --mode=compile $compile -c $source" "flags.at:24"
6388 ( $at_check_trace; $LIBTOOL --tag=F77 --mode=compile $compile -c $source
6389 ) >>"$at_stdout" 2>>"$at_stderr"
6390 at_status=$? at_failed=false
6392 echo stderr:; cat "$at_stderr"
6393 echo stdout:; cat "$at_stdout"
6394 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6395 $at_failed && at_fn_log_failure
6399 # Linker flags are prefixed with ${wl} iff they are passed to the
6400 # compiler driver, instead of directly to the linker.
6401 case $archive_cmds in
6402 *\$LD*\$linker_flags*) maybe_wl= compiler_flags_in_liblink=false ;;
6403 *) maybe_wl=$wl compiler_flags_in_liblink=: ;;
6406 for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
6408 -Wc, | -Xcompiler\ )
6410 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=F77 --mode=compile \$compile \$flag-foo -c \$source"
6411 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=F77 --mode=compile $compile $flag-foo -c $source" "flags.at:24"
6412 ( $at_check_trace; $LIBTOOL -n --tag=F77 --mode=compile $compile $flag-foo -c $source
6413 ) >>"$at_stdout" 2>>"$at_stderr"
6414 at_status=$? at_failed=false
6416 echo stderr:; cat "$at_stderr"
6417 echo stdout:; tee stdout <"$at_stdout"
6418 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6419 $at_failed && at_fn_log_failure
6423 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" -foo\" stdout"
6424 at_fn_check_prepare_dynamic "$FGREP \" -foo\" stdout" "flags.at:24"
6425 ( $at_check_trace; $FGREP " -foo" stdout
6426 ) >>"$at_stdout" 2>>"$at_stderr"
6427 at_status=$? at_failed=false
6429 at_fn_diff_devnull "$at_stderr" || at_failed=:
6430 echo stdout:; cat "$at_stdout"
6431 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6432 $at_failed && at_fn_log_failure
6437 flags_in_liblink=$compiler_flags_in_liblink
6440 flag_prefix_prog=$wl
6441 flag_prefix_lib=$maybe_wl
6447 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=F77 --mode=link \$link -o program\$EXEEXT a.lo \$flag-foo"
6448 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=F77 --mode=link $link -o program$EXEEXT a.lo $flag-foo" "flags.at:24"
6449 ( $at_check_trace; $LIBTOOL -n --tag=F77 --mode=link $link -o program$EXEEXT a.lo $flag-foo
6450 ) >>"$at_stdout" 2>>"$at_stderr"
6451 at_status=$? at_failed=false
6453 echo stderr:; cat "$at_stderr"
6454 echo stdout:; tee stdout <"$at_stdout"
6455 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6456 $at_failed && at_fn_log_failure
6460 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_prog-foo\" stdout"
6461 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_prog-foo\" stdout" "flags.at:24"
6462 ( $at_check_trace; $FGREP " $flag_prefix_prog-foo" stdout
6463 ) >>"$at_stdout" 2>>"$at_stderr"
6464 at_status=$? at_failed=false
6466 at_fn_diff_devnull "$at_stderr" || at_failed=:
6467 echo stdout:; cat "$at_stdout"
6468 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6469 $at_failed && at_fn_log_failure
6473 eval set x "$library_and_module"
6476 test x = "$output" && continue
6478 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=F77 --mode=link \$link -o \$output a.lo -rpath /nowhere \$flag-foo"
6479 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=F77 --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo" "flags.at:24"
6480 ( $at_check_trace; $LIBTOOL -n --tag=F77 --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo
6481 ) >>"$at_stdout" 2>>"$at_stderr"
6482 at_status=$? at_failed=false
6484 echo stderr:; cat "$at_stderr"
6485 echo stdout:; tee stdout <"$at_stdout"
6486 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6487 $at_failed && at_fn_log_failure
6490 if $flags_in_liblink; then
6492 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6493 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6494 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6495 ) >>"$at_stdout" 2>>"$at_stderr"
6496 at_status=$? at_failed=false
6498 at_fn_diff_devnull "$at_stderr" || at_failed=:
6499 echo stdout:; cat "$at_stdout"
6500 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6501 $at_failed && at_fn_log_failure
6506 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6507 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6508 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6509 ) >>"$at_stdout" 2>>"$at_stderr"
6510 at_status=$? at_failed=false
6512 at_fn_diff_devnull "$at_stderr" || at_failed=:
6513 at_fn_diff_devnull "$at_stdout" || at_failed=:
6514 at_fn_check_status 1 $at_status "$at_srcdir/flags.at:24"
6515 $at_failed && at_fn_log_failure
6523 $at_times_p && times >"$at_times_file"
6524 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6525 read at_status <"$at_status_file"
6528 at_fn_group_banner 30 'flags.at:24' \
6529 "passing FC flags through libtool" " " 3
6532 $as_echo "30. $at_setup_line: testing $at_desc ..."
6538 $as_echo "$at_srcdir/flags.at:24: { test -n \"\$FC\" && test \"X\$FC\" != Xno; } || (exit 77)"
6539 at_fn_check_prepare_dynamic "{ test -n \"$FC\" && test \"X$FC\" != Xno; } || (exit 77)" "flags.at:24"
6540 ( $at_check_trace; { test -n "$FC" && test "X$FC" != Xno; } || (exit 77)
6541 ) >>"$at_stdout" 2>>"$at_stderr"
6542 at_status=$? at_failed=false
6544 at_fn_diff_devnull "$at_stderr" || at_failed=:
6545 at_fn_diff_devnull "$at_stdout" || at_failed=:
6546 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6547 $at_failed && at_fn_log_failure
6553 LDFLAGS="$LDFLAGS -no-undefined"
6554 eval "`$LIBTOOL --config | $EGREP '^(FGREP)='`"
6556 cat >a.f90 <<'_ATEOF'
6561 compile="$FC $FCFLAGS" link="$FC $FCFLAGS $LDFLAGS" source=a.f90
6564 # Linker flags are not passed to the archiver, so don't test static libraries.
6565 if $LIBTOOL --features | grep 'enable shared libraries'; then
6566 library_and_module='library.la "module.la -module -avoid-version"'
6571 eval "`$LIBTOOL --tag=FC --config | $EGREP '^(wl|archive_cmds)='`"
6574 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL --tag=FC --mode=compile \$compile -c \$source"
6575 at_fn_check_prepare_dynamic "$LIBTOOL --tag=FC --mode=compile $compile -c $source" "flags.at:24"
6576 ( $at_check_trace; $LIBTOOL --tag=FC --mode=compile $compile -c $source
6577 ) >>"$at_stdout" 2>>"$at_stderr"
6578 at_status=$? at_failed=false
6580 echo stderr:; cat "$at_stderr"
6581 echo stdout:; cat "$at_stdout"
6582 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6583 $at_failed && at_fn_log_failure
6587 # Linker flags are prefixed with ${wl} iff they are passed to the
6588 # compiler driver, instead of directly to the linker.
6589 case $archive_cmds in
6590 *\$LD*\$linker_flags*) maybe_wl= compiler_flags_in_liblink=false ;;
6591 *) maybe_wl=$wl compiler_flags_in_liblink=: ;;
6594 for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
6596 -Wc, | -Xcompiler\ )
6598 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=FC --mode=compile \$compile \$flag-foo -c \$source"
6599 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=FC --mode=compile $compile $flag-foo -c $source" "flags.at:24"
6600 ( $at_check_trace; $LIBTOOL -n --tag=FC --mode=compile $compile $flag-foo -c $source
6601 ) >>"$at_stdout" 2>>"$at_stderr"
6602 at_status=$? at_failed=false
6604 echo stderr:; cat "$at_stderr"
6605 echo stdout:; tee stdout <"$at_stdout"
6606 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6607 $at_failed && at_fn_log_failure
6611 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" -foo\" stdout"
6612 at_fn_check_prepare_dynamic "$FGREP \" -foo\" stdout" "flags.at:24"
6613 ( $at_check_trace; $FGREP " -foo" stdout
6614 ) >>"$at_stdout" 2>>"$at_stderr"
6615 at_status=$? at_failed=false
6617 at_fn_diff_devnull "$at_stderr" || at_failed=:
6618 echo stdout:; cat "$at_stdout"
6619 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6620 $at_failed && at_fn_log_failure
6625 flags_in_liblink=$compiler_flags_in_liblink
6628 flag_prefix_prog=$wl
6629 flag_prefix_lib=$maybe_wl
6635 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=FC --mode=link \$link -o program\$EXEEXT a.lo \$flag-foo"
6636 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=FC --mode=link $link -o program$EXEEXT a.lo $flag-foo" "flags.at:24"
6637 ( $at_check_trace; $LIBTOOL -n --tag=FC --mode=link $link -o program$EXEEXT a.lo $flag-foo
6638 ) >>"$at_stdout" 2>>"$at_stderr"
6639 at_status=$? at_failed=false
6641 echo stderr:; cat "$at_stderr"
6642 echo stdout:; tee stdout <"$at_stdout"
6643 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6644 $at_failed && at_fn_log_failure
6648 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_prog-foo\" stdout"
6649 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_prog-foo\" stdout" "flags.at:24"
6650 ( $at_check_trace; $FGREP " $flag_prefix_prog-foo" stdout
6651 ) >>"$at_stdout" 2>>"$at_stderr"
6652 at_status=$? at_failed=false
6654 at_fn_diff_devnull "$at_stderr" || at_failed=:
6655 echo stdout:; cat "$at_stdout"
6656 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6657 $at_failed && at_fn_log_failure
6661 eval set x "$library_and_module"
6664 test x = "$output" && continue
6666 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=FC --mode=link \$link -o \$output a.lo -rpath /nowhere \$flag-foo"
6667 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=FC --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo" "flags.at:24"
6668 ( $at_check_trace; $LIBTOOL -n --tag=FC --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo
6669 ) >>"$at_stdout" 2>>"$at_stderr"
6670 at_status=$? at_failed=false
6672 echo stderr:; cat "$at_stderr"
6673 echo stdout:; tee stdout <"$at_stdout"
6674 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6675 $at_failed && at_fn_log_failure
6678 if $flags_in_liblink; then
6680 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6681 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6682 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6683 ) >>"$at_stdout" 2>>"$at_stderr"
6684 at_status=$? at_failed=false
6686 at_fn_diff_devnull "$at_stderr" || at_failed=:
6687 echo stdout:; cat "$at_stdout"
6688 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6689 $at_failed && at_fn_log_failure
6694 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6695 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6696 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6697 ) >>"$at_stdout" 2>>"$at_stderr"
6698 at_status=$? at_failed=false
6700 at_fn_diff_devnull "$at_stderr" || at_failed=:
6701 at_fn_diff_devnull "$at_stdout" || at_failed=:
6702 at_fn_check_status 1 $at_status "$at_srcdir/flags.at:24"
6703 $at_failed && at_fn_log_failure
6711 $at_times_p && times >"$at_times_file"
6712 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6713 read at_status <"$at_status_file"
6716 at_fn_group_banner 31 'flags.at:24' \
6717 "passing GCJ flags through libtool" " " 3
6720 $as_echo "31. $at_setup_line: testing $at_desc ..."
6726 $as_echo "$at_srcdir/flags.at:24: { test -n \"\$GCJ\" && test \"X\$GCJ\" != Xno; } || (exit 77)"
6727 at_fn_check_prepare_dynamic "{ test -n \"$GCJ\" && test \"X$GCJ\" != Xno; } || (exit 77)" "flags.at:24"
6728 ( $at_check_trace; { test -n "$GCJ" && test "X$GCJ" != Xno; } || (exit 77)
6729 ) >>"$at_stdout" 2>>"$at_stderr"
6730 at_status=$? at_failed=false
6732 at_fn_diff_devnull "$at_stderr" || at_failed=:
6733 at_fn_diff_devnull "$at_stdout" || at_failed=:
6734 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6735 $at_failed && at_fn_log_failure
6738 # There are just too many broken gcj installations out there, either missing
6739 # libgcj.spec or unable to find it. Skip the test for them.
6740 cat >gcj_test.java <<'_ATEOF'
6741 public class gcj_test {
6742 public static void main(String[] argv) { }
6747 $as_echo "$at_srcdir/flags.at:24: \$GCJ \$GCJFLAGS -c gcj_test.java || exit 77"
6748 at_fn_check_prepare_dynamic "$GCJ $GCJFLAGS -c gcj_test.java || exit 77" "flags.at:24"
6749 ( $at_check_trace; $GCJ $GCJFLAGS -c gcj_test.java || exit 77
6750 ) >>"$at_stdout" 2>>"$at_stderr"
6751 at_status=$? at_failed=false
6753 echo stderr:; cat "$at_stderr"
6754 echo stdout:; cat "$at_stdout"
6755 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6756 $at_failed && at_fn_log_failure
6761 LDFLAGS="$LDFLAGS -no-undefined"
6762 eval "`$LIBTOOL --config | $EGREP '^(FGREP)='`"
6764 cat >a.java <<'_ATEOF'
6768 compile="$GCJ $GCJFLAGS" link="$GCJ $GCJFLAGS $LDFLAGS" source=a.java
6771 # Linker flags are not passed to the archiver, so don't test static libraries.
6772 if $LIBTOOL --features | grep 'enable shared libraries'; then
6773 library_and_module='library.la "module.la -module -avoid-version"'
6778 eval "`$LIBTOOL --tag=GCJ --config | $EGREP '^(wl|archive_cmds)='`"
6781 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL --tag=GCJ --mode=compile \$compile -c \$source"
6782 at_fn_check_prepare_dynamic "$LIBTOOL --tag=GCJ --mode=compile $compile -c $source" "flags.at:24"
6783 ( $at_check_trace; $LIBTOOL --tag=GCJ --mode=compile $compile -c $source
6784 ) >>"$at_stdout" 2>>"$at_stderr"
6785 at_status=$? at_failed=false
6787 echo stderr:; cat "$at_stderr"
6788 echo stdout:; cat "$at_stdout"
6789 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6790 $at_failed && at_fn_log_failure
6794 # Linker flags are prefixed with ${wl} iff they are passed to the
6795 # compiler driver, instead of directly to the linker.
6796 case $archive_cmds in
6797 *\$LD*\$linker_flags*) maybe_wl= compiler_flags_in_liblink=false ;;
6798 *) maybe_wl=$wl compiler_flags_in_liblink=: ;;
6801 for flag in -Wc, -Wl, '-Xcompiler ' '-Xlinker '; do
6803 -Wc, | -Xcompiler\ )
6805 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=GCJ --mode=compile \$compile \$flag-foo -c \$source"
6806 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=GCJ --mode=compile $compile $flag-foo -c $source" "flags.at:24"
6807 ( $at_check_trace; $LIBTOOL -n --tag=GCJ --mode=compile $compile $flag-foo -c $source
6808 ) >>"$at_stdout" 2>>"$at_stderr"
6809 at_status=$? at_failed=false
6811 echo stderr:; cat "$at_stderr"
6812 echo stdout:; tee stdout <"$at_stdout"
6813 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6814 $at_failed && at_fn_log_failure
6818 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" -foo\" stdout"
6819 at_fn_check_prepare_dynamic "$FGREP \" -foo\" stdout" "flags.at:24"
6820 ( $at_check_trace; $FGREP " -foo" stdout
6821 ) >>"$at_stdout" 2>>"$at_stderr"
6822 at_status=$? at_failed=false
6824 at_fn_diff_devnull "$at_stderr" || at_failed=:
6825 echo stdout:; cat "$at_stdout"
6826 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6827 $at_failed && at_fn_log_failure
6832 flags_in_liblink=$compiler_flags_in_liblink
6835 flag_prefix_prog=$wl
6836 flag_prefix_lib=$maybe_wl
6842 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=GCJ --mode=link \$link -o program\$EXEEXT a.lo \$flag-foo"
6843 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=GCJ --mode=link $link -o program$EXEEXT a.lo $flag-foo" "flags.at:24"
6844 ( $at_check_trace; $LIBTOOL -n --tag=GCJ --mode=link $link -o program$EXEEXT a.lo $flag-foo
6845 ) >>"$at_stdout" 2>>"$at_stderr"
6846 at_status=$? at_failed=false
6848 echo stderr:; cat "$at_stderr"
6849 echo stdout:; tee stdout <"$at_stdout"
6850 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6851 $at_failed && at_fn_log_failure
6855 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_prog-foo\" stdout"
6856 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_prog-foo\" stdout" "flags.at:24"
6857 ( $at_check_trace; $FGREP " $flag_prefix_prog-foo" stdout
6858 ) >>"$at_stdout" 2>>"$at_stderr"
6859 at_status=$? at_failed=false
6861 at_fn_diff_devnull "$at_stderr" || at_failed=:
6862 echo stdout:; cat "$at_stdout"
6863 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6864 $at_failed && at_fn_log_failure
6868 eval set x "$library_and_module"
6871 test x = "$output" && continue
6873 $as_echo "$at_srcdir/flags.at:24: \$LIBTOOL -n --tag=GCJ --mode=link \$link -o \$output a.lo -rpath /nowhere \$flag-foo"
6874 at_fn_check_prepare_dynamic "$LIBTOOL -n --tag=GCJ --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo" "flags.at:24"
6875 ( $at_check_trace; $LIBTOOL -n --tag=GCJ --mode=link $link -o $output a.lo -rpath /nowhere $flag-foo
6876 ) >>"$at_stdout" 2>>"$at_stderr"
6877 at_status=$? at_failed=false
6879 echo stderr:; cat "$at_stderr"
6880 echo stdout:; tee stdout <"$at_stdout"
6881 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6882 $at_failed && at_fn_log_failure
6885 if $flags_in_liblink; then
6887 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6888 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6889 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6890 ) >>"$at_stdout" 2>>"$at_stderr"
6891 at_status=$? at_failed=false
6893 at_fn_diff_devnull "$at_stderr" || at_failed=:
6894 echo stdout:; cat "$at_stdout"
6895 at_fn_check_status 0 $at_status "$at_srcdir/flags.at:24"
6896 $at_failed && at_fn_log_failure
6901 $as_echo "$at_srcdir/flags.at:24: \$FGREP \" \$flag_prefix_lib-foo\" stdout"
6902 at_fn_check_prepare_dynamic "$FGREP \" $flag_prefix_lib-foo\" stdout" "flags.at:24"
6903 ( $at_check_trace; $FGREP " $flag_prefix_lib-foo" stdout
6904 ) >>"$at_stdout" 2>>"$at_stderr"
6905 at_status=$? at_failed=false
6907 at_fn_diff_devnull "$at_stderr" || at_failed=:
6908 at_fn_diff_devnull "$at_stdout" || at_failed=:
6909 at_fn_check_status 1 $at_status "$at_srcdir/flags.at:24"
6910 $at_failed && at_fn_log_failure
6918 $at_times_p && times >"$at_times_file"
6919 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6920 read at_status <"$at_status_file"
6923 at_fn_group_banner 32 'inherited_flags.at:26' \
6924 "inherited_linker_flags" " " 3
6927 $as_echo "32. $at_setup_line: testing $at_desc ..."
6932 cat >foo.c <<'_ATEOF'
6934 int foo() { return 1;}
6938 cat >bar.c <<'_ATEOF'
6940 int bar() { return 1;}
6944 cat >baz.c <<'_ATEOF'
6946 int baz() { return 1;}
6950 cat >both.c <<'_ATEOF'
6952 int both() { return 1;}
6956 cat >main.c <<'_ATEOF'
6958 int main() { return 0;}
6962 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o foo.lo foo.c
6963 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar.lo bar.c
6964 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o baz.lo baz.c
6965 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o both.lo both.c
6966 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o main.lo main.c
6967 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libfoo.la foo.lo -rpath /nonexistent -no-undefined
6968 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /nonexistent -no-undefined
6969 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libboth.la both.lo -rpath /nonexistent -no-undefined
6972 mv libfoo.la libfoo.la.bak
6973 sed -e 's/^inherited_linker_flags.*/inherited_linker_flags=-llt_inlikely_existing_lib/g' < libfoo.la.bak > libfoo.la
6976 mv libbar.la libbar.la.bak
6977 sed -e 's/^inherited_linker_flags.*/inherited_linker_flags=-llt_unlikely_existing_lib/g' < libbar.la.bak > libbar.la
6980 mv libboth.la libboth.la.bak
6981 sed -e "s/^inherited_linker_flags.*/inherited_linker_flags='-llt_inlikely_existing_lib -llt_unlikely_existing_lib'/g" < libboth.la.bak > libboth.la
6985 $as_echo "$at_srcdir/inherited_flags.at:76: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la"
6986 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la" "inherited_flags.at:76"
6987 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la
6988 ) >>"$at_stdout" 2>>"$at_stderr"
6989 at_status=$? at_failed=false
6991 echo stderr:; cat "$at_stderr"
6992 echo stdout:; tee stdout <"$at_stdout"
6993 at_fn_check_skip $at_status "$at_srcdir/inherited_flags.at:76"
6994 $at_failed && at_fn_log_failure
6997 # We used to grep for
6998 # 'llt_[[ui]]nlikely_existing_lib.*llt_[[ui]]nlikely_existing_lib'
6999 # here. This fails on win32/MSVC because the generated command lines have a
7000 # different syntax. So drop the first `l'.
7002 $as_echo "$at_srcdir/inherited_flags.at:82: \$LIBTOOL --features | grep 'disable shared libraries' && (exit 77)"
7003 at_fn_check_prepare_notrace 'a shell pipeline' "inherited_flags.at:82"
7004 ( $at_check_trace; $LIBTOOL --features | grep 'disable shared libraries' && (exit 77)
7005 ) >>"$at_stdout" 2>>"$at_stderr"
7006 at_status=$? at_failed=false
7008 at_fn_diff_devnull "$at_stderr" || at_failed=:
7009 echo stdout:; cat "$at_stdout"
7010 at_fn_check_status 1 $at_status "$at_srcdir/inherited_flags.at:82"
7011 $at_failed && at_fn_log_failure
7015 $as_echo "$at_srcdir/inherited_flags.at:83: grep 'lt_[ui]nlikely_existing_lib.*lt_[ui]nlikely_existing_lib' stdout"
7016 at_fn_check_prepare_trace "inherited_flags.at:83"
7017 ( $at_check_trace; grep 'lt_[ui]nlikely_existing_lib.*lt_[ui]nlikely_existing_lib' stdout
7018 ) >>"$at_stdout" 2>>"$at_stderr"
7019 at_status=$? at_failed=false
7021 echo stderr:; cat "$at_stderr"
7022 echo stdout:; cat "$at_stdout"
7023 at_fn_check_status 0 $at_status "$at_srcdir/inherited_flags.at:83"
7024 $at_failed && at_fn_log_failure
7028 $as_echo "$at_srcdir/inherited_flags.at:85: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la"
7029 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la" "inherited_flags.at:85"
7030 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la
7031 ) >>"$at_stdout" 2>>"$at_stderr"
7032 at_status=$? at_failed=false
7034 echo stderr:; cat "$at_stderr"
7035 echo stdout:; tee stdout <"$at_stdout"
7036 at_fn_check_skip $at_status "$at_srcdir/inherited_flags.at:85"
7037 $at_failed && at_fn_log_failure
7041 $as_echo "$at_srcdir/inherited_flags.at:87: grep 'lt_[ui]nlikely_existing_lib.*lt_[ui]nlikely_existing_lib' stdout"
7042 at_fn_check_prepare_trace "inherited_flags.at:87"
7043 ( $at_check_trace; grep 'lt_[ui]nlikely_existing_lib.*lt_[ui]nlikely_existing_lib' stdout
7044 ) >>"$at_stdout" 2>>"$at_stderr"
7045 at_status=$? at_failed=false
7047 echo stderr:; cat "$at_stderr"
7048 echo stdout:; cat "$at_stdout"
7049 at_fn_check_status 0 $at_status "$at_srcdir/inherited_flags.at:87"
7050 $at_failed && at_fn_log_failure
7054 # now check for duplicates
7056 $as_echo "$at_srcdir/inherited_flags.at:91: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la"
7057 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la" "inherited_flags.at:91"
7058 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la
7059 ) >>"$at_stdout" 2>>"$at_stderr"
7060 at_status=$? at_failed=false
7062 echo stderr:; cat "$at_stderr"
7063 echo stdout:; tee stdout <"$at_stdout"
7064 at_fn_check_skip $at_status "$at_srcdir/inherited_flags.at:91"
7065 $at_failed && at_fn_log_failure
7069 $as_echo "$at_srcdir/inherited_flags.at:93: grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout"
7070 at_fn_check_prepare_trace "inherited_flags.at:93"
7071 ( $at_check_trace; grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout
7072 ) >>"$at_stdout" 2>>"$at_stderr"
7073 at_status=$? at_failed=false
7075 echo stderr:; cat "$at_stderr"
7076 echo stdout:; cat "$at_stdout"
7077 at_fn_check_status 1 $at_status "$at_srcdir/inherited_flags.at:93"
7078 $at_failed && at_fn_log_failure
7082 $as_echo "$at_srcdir/inherited_flags.at:95: grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout"
7083 at_fn_check_prepare_trace "inherited_flags.at:95"
7084 ( $at_check_trace; grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout
7085 ) >>"$at_stdout" 2>>"$at_stderr"
7086 at_status=$? at_failed=false
7088 echo stderr:; cat "$at_stderr"
7089 echo stdout:; cat "$at_stdout"
7090 at_fn_check_status 1 $at_status "$at_srcdir/inherited_flags.at:95"
7091 $at_failed && at_fn_log_failure
7095 $as_echo "$at_srcdir/inherited_flags.at:97: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la"
7096 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la" "inherited_flags.at:97"
7097 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la
7098 ) >>"$at_stdout" 2>>"$at_stderr"
7099 at_status=$? at_failed=false
7101 echo stderr:; cat "$at_stderr"
7102 echo stdout:; tee stdout <"$at_stdout"
7103 at_fn_check_skip $at_status "$at_srcdir/inherited_flags.at:97"
7104 $at_failed && at_fn_log_failure
7108 $as_echo "$at_srcdir/inherited_flags.at:99: grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout"
7109 at_fn_check_prepare_trace "inherited_flags.at:99"
7110 ( $at_check_trace; grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout
7111 ) >>"$at_stdout" 2>>"$at_stderr"
7112 at_status=$? at_failed=false
7114 echo stderr:; cat "$at_stderr"
7115 echo stdout:; cat "$at_stdout"
7116 at_fn_check_status 1 $at_status "$at_srcdir/inherited_flags.at:99"
7117 $at_failed && at_fn_log_failure
7121 $as_echo "$at_srcdir/inherited_flags.at:101: grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout"
7122 at_fn_check_prepare_trace "inherited_flags.at:101"
7123 ( $at_check_trace; grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout
7124 ) >>"$at_stdout" 2>>"$at_stderr"
7125 at_status=$? at_failed=false
7127 echo stderr:; cat "$at_stderr"
7128 echo stdout:; cat "$at_stdout"
7129 at_fn_check_status 1 $at_status "$at_srcdir/inherited_flags.at:101"
7130 $at_failed && at_fn_log_failure
7134 mv libboth.la libboth.la.bak
7135 sed "s/^inherited_linker_flags.*/inherited_linker_flags='-framework Cocoa -framework ApplicationServices'/" < libboth.la.bak > libboth.la
7139 $as_echo "$at_srcdir/inherited_flags.at:108: \$LIBTOOL -n --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -framework Cocoa -framework ApplicationServices -o libbaz.la baz.lo libboth.la -no-undefined -rpath /nonexistent"
7140 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -framework Cocoa -framework ApplicationServices -o libbaz.la baz.lo libboth.la -no-undefined -rpath /nonexistent" "inherited_flags.at:108"
7141 ( $at_check_trace; $LIBTOOL -n --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -framework Cocoa -framework ApplicationServices -o libbaz.la baz.lo libboth.la -no-undefined -rpath /nonexistent
7142 ) >>"$at_stdout" 2>>"$at_stderr"
7143 at_status=$? at_failed=false
7145 echo stderr:; cat "$at_stderr"
7146 echo stdout:; tee stdout <"$at_stdout"
7147 at_fn_check_status 0 $at_status "$at_srcdir/inherited_flags.at:108"
7148 $at_failed && at_fn_log_failure
7152 $as_echo "$at_srcdir/inherited_flags.at:110: grep Cocoa.ltframework stdout"
7153 at_fn_check_prepare_trace "inherited_flags.at:110"
7154 ( $at_check_trace; grep Cocoa.ltframework stdout
7155 ) >>"$at_stdout" 2>>"$at_stderr"
7156 at_status=$? at_failed=false
7158 at_fn_diff_devnull "$at_stderr" || at_failed=:
7159 at_fn_diff_devnull "$at_stdout" || at_failed=:
7160 at_fn_check_status 1 $at_status "$at_srcdir/inherited_flags.at:110"
7161 $at_failed && at_fn_log_failure
7165 $as_echo "$at_srcdir/inherited_flags.at:111: grep ' -framework Cocoa' stdout"
7166 at_fn_check_prepare_trace "inherited_flags.at:111"
7167 ( $at_check_trace; grep ' -framework Cocoa' stdout
7168 ) >>"$at_stdout" 2>>"$at_stderr"
7169 at_status=$? at_failed=false
7171 at_fn_diff_devnull "$at_stderr" || at_failed=:
7172 echo stdout:; cat "$at_stdout"
7173 at_fn_check_status 0 $at_status "$at_srcdir/inherited_flags.at:111"
7174 $at_failed && at_fn_log_failure
7179 $at_times_p && times >"$at_times_file"
7180 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7181 read at_status <"$at_status_file"
7184 at_fn_group_banner 33 'convenience.at:31' \
7185 "C convenience archives" " " 3
7188 $as_echo "33. $at_setup_line: testing $at_desc ..."
7194 extern int a1(void);
7195 int main(void) { return a1() != 1; }
7198 extern int a1(void), a2(void);
7199 int main(void) { return a1() + a2() != 3; }
7202 extern int a1(void), a2(void), a3(void);
7203 int main(void) { return a1() + a2() + a3() != 6; }
7206 echo "int a$i(void) { return $i; }" > a$i.c
7207 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c main$i.c
7208 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a$i.c
7209 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la a$i.lo
7212 $as_echo "$at_srcdir/convenience.at:52: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist"
7213 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist" "convenience.at:52"
7214 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist
7215 ) >>"$at_stdout" 2>>"$at_stderr"
7216 at_status=$? at_failed=false
7218 echo stderr:; cat "$at_stderr"
7219 echo stdout:; cat "$at_stdout"
7220 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:52"
7221 $at_failed && at_fn_log_failure
7225 $as_echo "$at_srcdir/convenience.at:54: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist"
7226 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist" "convenience.at:54"
7227 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist
7228 ) >>"$at_stdout" 2>>"$at_stderr"
7229 at_status=$? at_failed=false
7231 echo stderr:; cat "$at_stderr"
7232 echo stdout:; cat "$at_stdout"
7233 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:54"
7234 $at_failed && at_fn_log_failure
7242 $as_echo "$at_srcdir/convenience.at:60: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -static -o main_static\$EXEEXT main\$i.lo liba\$conv.la"
7243 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la" "convenience.at:60"
7244 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la
7245 ) >>"$at_stdout" 2>>"$at_stderr"
7246 at_status=$? at_failed=false
7248 echo stderr:; cat "$at_stderr"
7249 echo stdout:; cat "$at_stdout"
7250 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:60"
7251 $at_failed && at_fn_log_failure
7255 $as_echo "$at_srcdir/convenience.at:62: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main\$i.lo liba\$conv.la"
7256 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la" "convenience.at:62"
7257 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la
7258 ) >>"$at_stdout" 2>>"$at_stderr"
7259 at_status=$? at_failed=false
7261 echo stderr:; cat "$at_stderr"
7262 echo stdout:; cat "$at_stdout"
7263 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:62"
7264 $at_failed && at_fn_log_failure
7267 lt_exe=./main_static; if test -f "./main_static$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7269 $as_echo "$at_srcdir/convenience.at:64: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7270 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:64"
7271 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7272 ) >>"$at_stdout" 2>>"$at_stderr"
7273 at_status=$? at_failed=false
7275 at_fn_diff_devnull "$at_stderr" || at_failed=:
7276 at_fn_diff_devnull "$at_stdout" || at_failed=:
7277 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:64"
7278 $at_failed && at_fn_log_failure
7282 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7284 $as_echo "$at_srcdir/convenience.at:65: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7285 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:65"
7286 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7287 ) >>"$at_stdout" 2>>"$at_stderr"
7288 at_status=$? at_failed=false
7290 at_fn_diff_devnull "$at_stderr" || at_failed=:
7291 at_fn_diff_devnull "$at_stdout" || at_failed=:
7292 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:65"
7293 $at_failed && at_fn_log_failure
7299 $at_times_p && times >"$at_times_file"
7300 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7301 read at_status <"$at_status_file"
7304 at_fn_group_banner 34 'convenience.at:70' \
7305 "C++ convenience archives" " " 3
7308 $as_echo "34. $at_setup_line: testing $at_desc ..."
7313 $as_echo "$at_srcdir/convenience.at:71: { test -n \"\$CXX\" && test \"X\$CXX\" != Xno; } || (exit 77)"
7314 at_fn_check_prepare_dynamic "{ test -n \"$CXX\" && test \"X$CXX\" != Xno; } || (exit 77)" "convenience.at:71"
7315 ( $at_check_trace; { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
7316 ) >>"$at_stdout" 2>>"$at_stderr"
7317 at_status=$? at_failed=false
7319 at_fn_diff_devnull "$at_stderr" || at_failed=:
7320 at_fn_diff_devnull "$at_stdout" || at_failed=:
7321 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:71"
7322 $at_failed && at_fn_log_failure
7326 $as_echo "$at_srcdir/convenience.at:71: test \"X\$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)"
7327 at_fn_check_prepare_dynamic "test \"X$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)" "convenience.at:71"
7328 ( $at_check_trace; test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)
7329 ) >>"$at_stdout" 2>>"$at_stderr"
7330 at_status=$? at_failed=false
7332 at_fn_diff_devnull "$at_stderr" || at_failed=:
7333 at_fn_diff_devnull "$at_stdout" || at_failed=:
7334 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:71"
7335 $at_failed && at_fn_log_failure
7341 cat >main1.cpp <<EOF
7342 extern int a1(void);
7343 int main(void) { return a1() != 1; }
7345 cat >main2.cpp <<EOF
7346 extern int a1(void), a2(void);
7347 int main(void) { return a1() + a2() != 3; }
7349 cat >main3.cpp <<EOF
7350 extern int a1(void), a2(void), a3(void);
7351 int main(void) { return a1() + a2() + a3() != 6; }
7354 echo "int a$i(void) { return $i; }" > a$i.cpp
7355 $LIBTOOL --tag=CXX --mode=compile $CXX $CXXFLAGS -c main$i.cpp
7356 $LIBTOOL --tag=CXX --mode=compile $CXX $CXXFLAGS -c a$i.cpp
7357 $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o liba$i.la a$i.lo
7360 $as_echo "$at_srcdir/convenience.at:92: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist"
7361 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist" "convenience.at:92"
7362 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist
7363 ) >>"$at_stdout" 2>>"$at_stderr"
7364 at_status=$? at_failed=false
7366 echo stderr:; cat "$at_stderr"
7367 echo stdout:; cat "$at_stdout"
7368 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:92"
7369 $at_failed && at_fn_log_failure
7373 $as_echo "$at_srcdir/convenience.at:94: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist"
7374 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist" "convenience.at:94"
7375 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist
7376 ) >>"$at_stdout" 2>>"$at_stderr"
7377 at_status=$? at_failed=false
7379 echo stderr:; cat "$at_stderr"
7380 echo stdout:; cat "$at_stdout"
7381 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:94"
7382 $at_failed && at_fn_log_failure
7390 $as_echo "$at_srcdir/convenience.at:100: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -static -o main_static\$EXEEXT main\$i.lo liba\$conv.la"
7391 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la" "convenience.at:100"
7392 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la
7393 ) >>"$at_stdout" 2>>"$at_stderr"
7394 at_status=$? at_failed=false
7396 echo stderr:; cat "$at_stderr"
7397 echo stdout:; cat "$at_stdout"
7398 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:100"
7399 $at_failed && at_fn_log_failure
7403 $as_echo "$at_srcdir/convenience.at:102: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o main\$EXEEXT main\$i.lo liba\$conv.la"
7404 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la" "convenience.at:102"
7405 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la
7406 ) >>"$at_stdout" 2>>"$at_stderr"
7407 at_status=$? at_failed=false
7409 echo stderr:; cat "$at_stderr"
7410 echo stdout:; cat "$at_stdout"
7411 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:102"
7412 $at_failed && at_fn_log_failure
7415 lt_exe=./main_static; if test -f "./main_static$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7417 $as_echo "$at_srcdir/convenience.at:104: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7418 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:104"
7419 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7420 ) >>"$at_stdout" 2>>"$at_stderr"
7421 at_status=$? at_failed=false
7423 at_fn_diff_devnull "$at_stderr" || at_failed=:
7424 at_fn_diff_devnull "$at_stdout" || at_failed=:
7425 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:104"
7426 $at_failed && at_fn_log_failure
7430 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7432 $as_echo "$at_srcdir/convenience.at:105: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7433 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:105"
7434 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7435 ) >>"$at_stdout" 2>>"$at_stderr"
7436 at_status=$? at_failed=false
7438 at_fn_diff_devnull "$at_stderr" || at_failed=:
7439 at_fn_diff_devnull "$at_stdout" || at_failed=:
7440 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:105"
7441 $at_failed && at_fn_log_failure
7447 $at_times_p && times >"$at_times_file"
7448 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7449 read at_status <"$at_status_file"
7452 at_fn_group_banner 35 'convenience.at:110' \
7453 "F77 convenience archives" " " 3
7456 $as_echo "35. $at_setup_line: testing $at_desc ..."
7461 $as_echo "$at_srcdir/convenience.at:111: { test -n \"\$F77\" && test \"X\$F77\" != Xno; } || (exit 77)"
7462 at_fn_check_prepare_dynamic "{ test -n \"$F77\" && test \"X$F77\" != Xno; } || (exit 77)" "convenience.at:111"
7463 ( $at_check_trace; { test -n "$F77" && test "X$F77" != Xno; } || (exit 77)
7464 ) >>"$at_stdout" 2>>"$at_stderr"
7465 at_status=$? at_failed=false
7467 at_fn_diff_devnull "$at_stderr" || at_failed=:
7468 at_fn_diff_devnull "$at_stdout" || at_failed=:
7469 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:111"
7470 $at_failed && at_fn_log_failure
7511 $LIBTOOL --tag=F77 --mode=compile $F77 $FFLAGS -c main$i.f
7512 $LIBTOOL --tag=F77 --mode=compile $F77 $FFLAGS -c a$i.f
7513 $LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o liba$i.la a$i.lo
7516 $as_echo "$at_srcdir/convenience.at:152: \$LIBTOOL --tag=F77 --mode=link \$F77 \$FFLAGS \$LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist"
7517 at_fn_check_prepare_dynamic "$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist" "convenience.at:152"
7518 ( $at_check_trace; $LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist
7519 ) >>"$at_stdout" 2>>"$at_stderr"
7520 at_status=$? at_failed=false
7522 echo stderr:; cat "$at_stderr"
7523 echo stdout:; cat "$at_stdout"
7524 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:152"
7525 $at_failed && at_fn_log_failure
7529 $as_echo "$at_srcdir/convenience.at:154: \$LIBTOOL --tag=F77 --mode=link \$F77 \$FFLAGS \$LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist"
7530 at_fn_check_prepare_dynamic "$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist" "convenience.at:154"
7531 ( $at_check_trace; $LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist
7532 ) >>"$at_stdout" 2>>"$at_stderr"
7533 at_status=$? at_failed=false
7535 echo stderr:; cat "$at_stderr"
7536 echo stdout:; cat "$at_stdout"
7537 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:154"
7538 $at_failed && at_fn_log_failure
7546 $as_echo "$at_srcdir/convenience.at:160: \$LIBTOOL --tag=F77 --mode=link \$F77 \$FFLAGS \$LDFLAGS -static -o main_static\$EXEEXT main\$i.lo liba\$conv.la"
7547 at_fn_check_prepare_dynamic "$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la" "convenience.at:160"
7548 ( $at_check_trace; $LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la
7549 ) >>"$at_stdout" 2>>"$at_stderr"
7550 at_status=$? at_failed=false
7552 echo stderr:; cat "$at_stderr"
7553 echo stdout:; cat "$at_stdout"
7554 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:160"
7555 $at_failed && at_fn_log_failure
7559 $as_echo "$at_srcdir/convenience.at:162: \$LIBTOOL --tag=F77 --mode=link \$F77 \$FFLAGS \$LDFLAGS -o main\$EXEEXT main\$i.lo liba\$conv.la"
7560 at_fn_check_prepare_dynamic "$LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la" "convenience.at:162"
7561 ( $at_check_trace; $LIBTOOL --tag=F77 --mode=link $F77 $FFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la
7562 ) >>"$at_stdout" 2>>"$at_stderr"
7563 at_status=$? at_failed=false
7565 echo stderr:; cat "$at_stderr"
7566 echo stdout:; cat "$at_stdout"
7567 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:162"
7568 $at_failed && at_fn_log_failure
7571 lt_exe=./main_static; if test -f "./main_static$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7573 $as_echo "$at_srcdir/convenience.at:164: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7574 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:164"
7575 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7576 ) >>"$at_stdout" 2>>"$at_stderr"
7577 at_status=$? at_failed=false
7579 at_fn_diff_devnull "$at_stderr" || at_failed=:
7580 at_fn_diff_devnull "$at_stdout" || at_failed=:
7581 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:164"
7582 $at_failed && at_fn_log_failure
7586 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7588 $as_echo "$at_srcdir/convenience.at:165: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7589 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:165"
7590 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7591 ) >>"$at_stdout" 2>>"$at_stderr"
7592 at_status=$? at_failed=false
7594 at_fn_diff_devnull "$at_stderr" || at_failed=:
7595 at_fn_diff_devnull "$at_stdout" || at_failed=:
7596 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:165"
7597 $at_failed && at_fn_log_failure
7603 $at_times_p && times >"$at_times_file"
7604 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7605 read at_status <"$at_status_file"
7608 at_fn_group_banner 36 'convenience.at:170' \
7609 "FC convenience archives" " " 3
7612 $as_echo "36. $at_setup_line: testing $at_desc ..."
7617 $as_echo "$at_srcdir/convenience.at:171: { test -n \"\$FC\" && test \"X\$FC\" != Xno; } || (exit 77)"
7618 at_fn_check_prepare_dynamic "{ test -n \"$FC\" && test \"X$FC\" != Xno; } || (exit 77)" "convenience.at:171"
7619 ( $at_check_trace; { test -n "$FC" && test "X$FC" != Xno; } || (exit 77)
7620 ) >>"$at_stdout" 2>>"$at_stderr"
7621 at_status=$? at_failed=false
7623 at_fn_diff_devnull "$at_stderr" || at_failed=:
7624 at_fn_diff_devnull "$at_stdout" || at_failed=:
7625 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:171"
7626 $at_failed && at_fn_log_failure
7667 $LIBTOOL --tag=FC --mode=compile $FC $FCFLAGS -c main$i.f
7668 $LIBTOOL --tag=FC --mode=compile $FC $FCFLAGS -c a$i.f
7669 $LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o liba$i.la a$i.lo
7672 $as_echo "$at_srcdir/convenience.at:212: \$LIBTOOL --tag=FC --mode=link \$FC \$FCFLAGS \$LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist"
7673 at_fn_check_prepare_dynamic "$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist" "convenience.at:212"
7674 ( $at_check_trace; $LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist
7675 ) >>"$at_stdout" 2>>"$at_stderr"
7676 at_status=$? at_failed=false
7678 echo stderr:; cat "$at_stderr"
7679 echo stdout:; cat "$at_stdout"
7680 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:212"
7681 $at_failed && at_fn_log_failure
7685 $as_echo "$at_srcdir/convenience.at:214: \$LIBTOOL --tag=FC --mode=link \$FC \$FCFLAGS \$LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist"
7686 at_fn_check_prepare_dynamic "$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist" "convenience.at:214"
7687 ( $at_check_trace; $LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o liba123.la a3.lo liba1.la liba2.la -rpath /notexist
7688 ) >>"$at_stdout" 2>>"$at_stderr"
7689 at_status=$? at_failed=false
7691 echo stderr:; cat "$at_stderr"
7692 echo stdout:; cat "$at_stdout"
7693 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:214"
7694 $at_failed && at_fn_log_failure
7702 $as_echo "$at_srcdir/convenience.at:220: \$LIBTOOL --tag=FC --mode=link \$FC \$FCFLAGS \$LDFLAGS -static -o main_static\$EXEEXT main\$i.lo liba\$conv.la"
7703 at_fn_check_prepare_dynamic "$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la" "convenience.at:220"
7704 ( $at_check_trace; $LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -static -o main_static$EXEEXT main$i.lo liba$conv.la
7705 ) >>"$at_stdout" 2>>"$at_stderr"
7706 at_status=$? at_failed=false
7708 echo stderr:; cat "$at_stderr"
7709 echo stdout:; cat "$at_stdout"
7710 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:220"
7711 $at_failed && at_fn_log_failure
7715 $as_echo "$at_srcdir/convenience.at:222: \$LIBTOOL --tag=FC --mode=link \$FC \$FCFLAGS \$LDFLAGS -o main\$EXEEXT main\$i.lo liba\$conv.la"
7716 at_fn_check_prepare_dynamic "$LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la" "convenience.at:222"
7717 ( $at_check_trace; $LIBTOOL --tag=FC --mode=link $FC $FCFLAGS $LDFLAGS -o main$EXEEXT main$i.lo liba$conv.la
7718 ) >>"$at_stdout" 2>>"$at_stderr"
7719 at_status=$? at_failed=false
7721 echo stderr:; cat "$at_stderr"
7722 echo stdout:; cat "$at_stdout"
7723 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:222"
7724 $at_failed && at_fn_log_failure
7727 lt_exe=./main_static; if test -f "./main_static$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7729 $as_echo "$at_srcdir/convenience.at:224: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7730 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:224"
7731 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7732 ) >>"$at_stdout" 2>>"$at_stderr"
7733 at_status=$? at_failed=false
7735 at_fn_diff_devnull "$at_stderr" || at_failed=:
7736 at_fn_diff_devnull "$at_stdout" || at_failed=:
7737 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:224"
7738 $at_failed && at_fn_log_failure
7742 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7744 $as_echo "$at_srcdir/convenience.at:225: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7745 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:225"
7746 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7747 ) >>"$at_stdout" 2>>"$at_stderr"
7748 at_status=$? at_failed=false
7750 at_fn_diff_devnull "$at_stderr" || at_failed=:
7751 at_fn_diff_devnull "$at_stdout" || at_failed=:
7752 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:225"
7753 $at_failed && at_fn_log_failure
7759 $at_times_p && times >"$at_times_file"
7760 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7761 read at_status <"$at_status_file"
7764 at_fn_group_banner 37 'convenience.at:230' \
7765 "Java convenience archives" " " 3
7768 $as_echo "37. $at_setup_line: testing $at_desc ..."
7773 $as_echo "$at_srcdir/convenience.at:231: { test -n \"\$GCJ\" && test \"X\$GCJ\" != Xno; } || (exit 77)"
7774 at_fn_check_prepare_dynamic "{ test -n \"$GCJ\" && test \"X$GCJ\" != Xno; } || (exit 77)" "convenience.at:231"
7775 ( $at_check_trace; { test -n "$GCJ" && test "X$GCJ" != Xno; } || (exit 77)
7776 ) >>"$at_stdout" 2>>"$at_stderr"
7777 at_status=$? at_failed=false
7779 at_fn_diff_devnull "$at_stderr" || at_failed=:
7780 at_fn_diff_devnull "$at_stdout" || at_failed=:
7781 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:231"
7782 $at_failed && at_fn_log_failure
7785 # There are just too many broken gcj installations out there, either missing
7786 # libgcj.spec or unable to find it. Skip the test for them.
7787 cat >gcj_test.java <<'_ATEOF'
7788 public class gcj_test {
7789 public static void main(String[] argv) { }
7794 $as_echo "$at_srcdir/convenience.at:231: \$GCJ \$GCJFLAGS -c gcj_test.java || exit 77"
7795 at_fn_check_prepare_dynamic "$GCJ $GCJFLAGS -c gcj_test.java || exit 77" "convenience.at:231"
7796 ( $at_check_trace; $GCJ $GCJFLAGS -c gcj_test.java || exit 77
7797 ) >>"$at_stdout" 2>>"$at_stderr"
7798 at_status=$? at_failed=false
7800 echo stderr:; cat "$at_stderr"
7801 echo stdout:; cat "$at_stdout"
7802 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:231"
7803 $at_failed && at_fn_log_failure
7808 $as_echo "$at_srcdir/convenience.at:231: \$GCJ \$GCJFLAGS --main=gcj_test -o gcj_test\$EXEEXT gcj_test.java || exit 77"
7809 at_fn_check_prepare_dynamic "$GCJ $GCJFLAGS --main=gcj_test -o gcj_test$EXEEXT gcj_test.java || exit 77" "convenience.at:231"
7810 ( $at_check_trace; $GCJ $GCJFLAGS --main=gcj_test -o gcj_test$EXEEXT gcj_test.java || exit 77
7811 ) >>"$at_stdout" 2>>"$at_stderr"
7812 at_status=$? at_failed=false
7814 echo stderr:; cat "$at_stderr"
7815 echo stdout:; cat "$at_stdout"
7816 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:231"
7817 $at_failed && at_fn_log_failure
7821 $as_echo "$at_srcdir/convenience.at:231: ./gcj_test\$EXEEXT || exit 77"
7822 at_fn_check_prepare_dynamic "./gcj_test$EXEEXT || exit 77" "convenience.at:231"
7823 ( $at_check_trace; ./gcj_test$EXEEXT || exit 77
7824 ) >>"$at_stdout" 2>>"$at_stderr"
7825 at_status=$? at_failed=false
7827 echo stderr:; cat "$at_stderr"
7828 echo stdout:; cat "$at_stdout"
7829 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:231"
7830 $at_failed && at_fn_log_failure
7836 cat >foo1.java <<EOF
7838 public static void main(String[] argv) {
7843 cat >foo2.java <<EOF
7845 public static void main(String[] argv) {
7846 A1 a1 = new A1(); A2 a2 = new A2();
7850 cat >foo3.java <<EOF
7852 public static void main(String[] argv) {
7853 A1 a1 = new A1(); A2 a2 = new A2(); A3 a3 = new A3();
7861 public A$i () { a = 0; }
7865 $LIBTOOL --tag=GCJ --mode=compile $GCJ $GCJFLAGS -c foo$i.java
7866 $LIBTOOL --tag=GCJ --mode=compile $GCJ $GCJFLAGS -c A$i.java
7867 $LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -o liba$i.la A$i.lo
7870 $as_echo "$at_srcdir/convenience.at:267: \$LIBTOOL --tag=GCJ --mode=link \$GCJ \$GCJFLAGS \$LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist"
7871 at_fn_check_prepare_dynamic "$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist" "convenience.at:267"
7872 ( $at_check_trace; $LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist
7873 ) >>"$at_stdout" 2>>"$at_stderr"
7874 at_status=$? at_failed=false
7876 echo stderr:; cat "$at_stderr"
7877 echo stdout:; cat "$at_stdout"
7878 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:267"
7879 $at_failed && at_fn_log_failure
7883 $as_echo "$at_srcdir/convenience.at:269: \$LIBTOOL --tag=GCJ --mode=link \$GCJ \$GCJFLAGS \$LDFLAGS -o liba123.la A3.lo liba1.la liba2.la -rpath /notexist"
7884 at_fn_check_prepare_dynamic "$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -o liba123.la A3.lo liba1.la liba2.la -rpath /notexist" "convenience.at:269"
7885 ( $at_check_trace; $LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -o liba123.la A3.lo liba1.la liba2.la -rpath /notexist
7886 ) >>"$at_stdout" 2>>"$at_stderr"
7887 at_status=$? at_failed=false
7889 echo stderr:; cat "$at_stderr"
7890 echo stdout:; cat "$at_stdout"
7891 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:269"
7892 $at_failed && at_fn_log_failure
7900 $as_echo "$at_srcdir/convenience.at:275: \$LIBTOOL --tag=GCJ --mode=link \$GCJ \$GCJFLAGS \$LDFLAGS -static --main=foo\$i -o main_static\$EXEEXT foo\$i.lo liba\$conv.la"
7901 at_fn_check_prepare_dynamic "$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -static --main=foo$i -o main_static$EXEEXT foo$i.lo liba$conv.la" "convenience.at:275"
7902 ( $at_check_trace; $LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -static --main=foo$i -o main_static$EXEEXT foo$i.lo liba$conv.la
7903 ) >>"$at_stdout" 2>>"$at_stderr"
7904 at_status=$? at_failed=false
7906 echo stderr:; cat "$at_stderr"
7907 echo stdout:; cat "$at_stdout"
7908 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:275"
7909 $at_failed && at_fn_log_failure
7913 $as_echo "$at_srcdir/convenience.at:277: \$LIBTOOL --tag=GCJ --mode=link \$GCJ \$GCJFLAGS \$LDFLAGS --main=foo\$i -o main\$EXEEXT foo\$i.lo liba\$conv.la"
7914 at_fn_check_prepare_dynamic "$LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS --main=foo$i -o main$EXEEXT foo$i.lo liba$conv.la" "convenience.at:277"
7915 ( $at_check_trace; $LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS --main=foo$i -o main$EXEEXT foo$i.lo liba$conv.la
7916 ) >>"$at_stdout" 2>>"$at_stderr"
7917 at_status=$? at_failed=false
7919 echo stderr:; cat "$at_stderr"
7920 echo stdout:; cat "$at_stdout"
7921 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:277"
7922 $at_failed && at_fn_log_failure
7925 lt_exe=./main_static; if test -f "./main_static$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7927 $as_echo "$at_srcdir/convenience.at:279: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7928 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:279"
7929 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7930 ) >>"$at_stdout" 2>>"$at_stderr"
7931 at_status=$? at_failed=false
7933 at_fn_diff_devnull "$at_stderr" || at_failed=:
7934 at_fn_diff_devnull "$at_stdout" || at_failed=:
7935 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:279"
7936 $at_failed && at_fn_log_failure
7940 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
7942 $as_echo "$at_srcdir/convenience.at:280: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
7943 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "convenience.at:280"
7944 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
7945 ) >>"$at_stdout" 2>>"$at_stderr"
7946 at_status=$? at_failed=false
7948 at_fn_diff_devnull "$at_stderr" || at_failed=:
7949 at_fn_diff_devnull "$at_stdout" || at_failed=:
7950 at_fn_check_status 0 $at_status "$at_srcdir/convenience.at:280"
7951 $at_failed && at_fn_log_failure
7957 $at_times_p && times >"$at_times_file"
7958 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7959 read at_status <"$at_status_file"
7962 at_fn_group_banner 38 'link-order.at:26' \
7963 "Link order test" " " 3
7966 $as_echo "38. $at_setup_line: testing $at_desc ..."
7970 eval `$LIBTOOL --config | $EGREP '^(hardcode_direct|hardcode_direct_absolute|shrext_cmds)='`
7971 LDFLAGS="$LDFLAGS -no-undefined"
7974 eval shared_ext=\"$shrext_cmds\"
7976 prefix_old=`pwd`/old
7977 prefix_new=`pwd`/new
7978 mkdir src $prefix_old $prefix_new $prefix_old/lib $prefix_new/lib
7980 cat >src/c.c <<'_ATEOF'
7985 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/c.c -o src/c.lo
7986 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/libcee.la src/c.lo -rpath $prefix_old/lib
7987 $LIBTOOL --mode=install cp src/libcee.la $prefix_old/lib/libcee.la
7989 for i in old new; do
7993 cat >src/a_$i.c <<EOF
7994 /* w32 fun, MSVC needs to dllimport when using a shared library, so use
7995 * DLL_EXPORT to discriminate as that happens to coinside in this case.
7996 * gnu has auto import.
7998 #if defined _MSC_VER && defined DLL_EXPORT
7999 # define LIBCEE_SCOPE __declspec(dllimport)
8001 # define LIBCEE_SCOPE extern
8005 int a_$i() { return c + b_$i(); }
8008 cat >src/b_$i.c <<EOF
8009 /* w32 fun, MSVC needs to dllimport when using a shared library, so use
8010 * DLL_EXPORT to discriminate as that happens to coinside in this case.
8011 * gnu has auto import.
8013 #if defined _MSC_VER && defined DLL_EXPORT
8014 # define LIBCEE_SCOPE __declspec(dllimport)
8016 # define LIBCEE_SCOPE extern
8019 int b_$i() { return 1 + c; }
8022 prefix=`eval echo \\$prefix_$i`
8023 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/a_$i.c -o src/a.lo
8024 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/b_$i.c -o src/b.lo
8025 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/libb.la src/b.lo \
8026 -L$prefix_old/lib -lcee -rpath $prefix/lib
8027 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/liba.la src/a.lo \
8028 src/libb.la -L$prefix_old/lib -lcee -rpath $prefix/lib
8029 $LIBTOOL --mode=install cp src/libb.la $prefix/lib/libb.la
8031 $as_echo "$at_srcdir/link-order.at:87: \$LIBTOOL --mode=install cp src/liba.la \$prefix/lib/liba.la"
8032 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp src/liba.la $prefix/lib/liba.la" "link-order.at:87"
8033 ( $at_check_trace; $LIBTOOL --mode=install cp src/liba.la $prefix/lib/liba.la
8034 ) >>"$at_stdout" 2>>"$at_stderr"
8035 at_status=$? at_failed=false
8037 echo stderr:; tee stderr <"$at_stderr"
8038 echo stdout:; tee stdout <"$at_stdout"
8039 at_fn_check_status 0 $at_status "$at_srcdir/link-order.at:87"
8040 $at_failed && at_fn_log_failure
8045 $LIBTOOL --mode=clean rm -f src/libb.la
8046 $LIBTOOL --mode=clean rm -f src/liba.la
8049 aix* | interix*) ;; # These systems have different path syntax
8051 # Do not error if we do not relink (e.g. static-only systems)
8052 case $hardcode_direct$hardcode_direct_absolute in
8055 $as_echo "$at_srcdir/link-order.at:100: if \$EGREP relinking stderr; then
8056 \$EGREP \" .*\\/new\\/lib/libb\$shared_ext .*\\/old\\/lib/libcee\$shared_ext\" stdout
8058 at_fn_check_prepare_notrace 'an embedded newline' "link-order.at:100"
8059 ( $at_check_trace; if $EGREP relinking stderr; then
8060 $EGREP " .*\/new\/lib/libb$shared_ext .*\/old\/lib/libcee$shared_ext" stdout
8062 ) >>"$at_stdout" 2>>"$at_stderr"
8063 at_status=$? at_failed=false
8065 at_fn_diff_devnull "$at_stderr" || at_failed=:
8066 echo stdout:; cat "$at_stdout"
8067 at_fn_check_status 0 $at_status "$at_srcdir/link-order.at:100"
8068 if $at_failed; then :
8069 echo "wrong link order"
8071 $at_failed && at_fn_log_failure
8077 $as_echo "$at_srcdir/link-order.at:105: if \$EGREP relinking stderr; then
8078 \$EGREP \" -L.*\\/new\\/lib -lb -L.*\\/old\\/lib -lcee\" stdout
8080 at_fn_check_prepare_notrace 'an embedded newline' "link-order.at:105"
8081 ( $at_check_trace; if $EGREP relinking stderr; then
8082 $EGREP " -L.*\/new\/lib -lb -L.*\/old\/lib -lcee" stdout
8084 ) >>"$at_stdout" 2>>"$at_stderr"
8085 at_status=$? at_failed=false
8087 at_fn_diff_devnull "$at_stderr" || at_failed=:
8088 echo stdout:; cat "$at_stdout"
8089 at_fn_check_status 0 $at_status "$at_srcdir/link-order.at:105"
8090 if $at_failed; then :
8091 echo "wrong link order"
8093 $at_failed && at_fn_log_failure
8101 for i in old new; do
8102 cat >src/main_$i.c <<EOF
8104 int main(void) { return a_$i() != 3; }
8107 prefix=`eval echo \\$prefix_$i`
8108 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/main_$i.c -o src/main_$i.lo
8110 $as_echo "$at_srcdir/link-order.at:121: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o src/main_\$i\$EXEEXT src/main_\$i.lo -L\$prefix/lib -la"
8111 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/main_$i$EXEEXT src/main_$i.lo -L$prefix/lib -la" "link-order.at:121"
8112 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/main_$i$EXEEXT src/main_$i.lo -L$prefix/lib -la
8113 ) >>"$at_stdout" 2>>"$at_stderr"
8114 at_status=$? at_failed=false
8116 echo stderr:; cat "$at_stderr"
8117 echo stdout:; cat "$at_stdout"
8118 at_fn_check_status 0 $at_status "$at_srcdir/link-order.at:121"
8119 $at_failed && at_fn_log_failure
8122 lt_exe=src/main_$i; if test -f "src/main_$i$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8124 $as_echo "$at_srcdir/link-order.at:123: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8125 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "link-order.at:123"
8126 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8127 ) >>"$at_stdout" 2>>"$at_stderr"
8128 at_status=$? at_failed=false
8130 at_fn_diff_devnull "$at_stderr" || at_failed=:
8131 at_fn_diff_devnull "$at_stdout" || at_failed=:
8132 at_fn_check_status 0 $at_status "$at_srcdir/link-order.at:123"
8133 $at_failed && at_fn_log_failure
8140 $at_times_p && times >"$at_times_file"
8141 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8142 read at_status <"$at_status_file"
8145 at_fn_group_banner 39 'link-order2.at:46' \
8146 "Link order of deplibs" " " 3
8149 $as_echo "39. $at_setup_line: testing $at_desc ..."
8154 eval `$LIBTOOL --config | $EGREP '^(shlibpath_var|allow_undefined_flag)='`
8156 undefined_setting=-no-undefined
8158 case $host_os,$LDFLAGS,$allow_undefined_flag in
8160 aix*) shared_fails=yes ;;
8161 darwin*,*,*-flat_namespace*) undefined_setting= ;;
8162 darwin*,*,*) shared_fails=yes ;;
8167 libdir=`pwd`/inst/lib
8168 bindir=`pwd`/inst/bin
8169 mkdir bin lib inst inst/bin inst/lib
8170 LDFLAGS="$LDFLAGS $undefined_setting -L$deflibdir"
8173 int a (void) { return 1; }
8177 int a (void) { return 0; }
8182 int b (void) { return a (); }
8187 extern int a (void);
8188 extern int b (void);
8191 return !(a () + b () == 0);
8195 for file in a0 a1 b; do
8196 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file.c
8198 $CC $CPPFLAGS $CFLAGS -c main.c
8200 # Build an old, installed library.
8201 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o liba0.la a0.lo -rpath $deflibdir
8202 $LIBTOOL --mode=install cp liba0.la $deflibdir/liba0.la
8203 $LIBTOOL --mode=clean rm -f liba0.la
8205 for type_of_depdepl in libtool non-libtool; do
8206 echo "type of depdepl: $type_of_depdepl"
8207 if test $type_of_depdepl = non-libtool; then
8208 # Simulate a non-Libtool system library.
8209 rm $deflibdir/liba1.la
8211 if test "$shlibpath_var" = PATH; then
8215 eval test -n \"\$$shlibpath_var\" && sep=:
8216 eval $shlibpath_var='$addpath$sep$'$shlibpath_var
8217 export $shlibpath_var
8219 for static in '' -static-libtool-libs; do
8220 case `$LIBTOOL --features` in
8221 *disable\ static\ libraries*) test "$static" = '' || continue;;
8223 test "$type_of_depdepl,$static" = "non-libtool,-static-libtool-libs" &&
8225 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o liba1.la a1.lo -rpath $libdir
8226 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o libb.la b.lo liba1.la -rpath $libdir
8228 $as_echo "$at_srcdir/link-order2.at:123: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS \$static -o main\$EXEEXT main.\$OBJEXT libb.la -la0"
8229 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o main$EXEEXT main.$OBJEXT libb.la -la0" "link-order2.at:123"
8230 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o main$EXEEXT main.$OBJEXT libb.la -la0
8231 ) >>"$at_stdout" 2>>"$at_stderr"
8232 at_status=$? at_failed=false
8234 echo stderr:; cat "$at_stderr"
8235 echo stdout:; cat "$at_stdout"
8236 at_fn_check_status 0 $at_status "$at_srcdir/link-order2.at:123"
8237 $at_failed && at_fn_log_failure
8240 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8242 $as_echo "$at_srcdir/link-order2.at:125: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8243 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "link-order2.at:125"
8244 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8245 ) >>"$at_stdout" 2>>"$at_stderr"
8246 at_status=$? at_failed=false
8248 at_fn_diff_devnull "$at_stderr" || at_failed=:
8249 at_fn_diff_devnull "$at_stdout" || at_failed=:
8250 at_fn_check_status 0 $at_status "$at_srcdir/link-order2.at:125"
8251 $at_failed && at_fn_log_failure
8255 # Now test that if we reverse the link order, the program fails.
8257 $as_echo "$at_srcdir/link-order2.at:127: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS \$static -o wrong\$EXEEXT main.\$OBJEXT -la0 libb.la"
8258 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o wrong$EXEEXT main.$OBJEXT -la0 libb.la" "link-order2.at:127"
8259 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $static -o wrong$EXEEXT main.$OBJEXT -la0 libb.la
8260 ) >>"$at_stdout" 2>>"$at_stderr"
8261 at_status=$? at_failed=false
8263 echo stderr:; cat "$at_stderr"
8264 echo stdout:; cat "$at_stdout"
8265 at_fn_check_status 0 $at_status "$at_srcdir/link-order2.at:127"
8266 $at_failed && at_fn_log_failure
8269 if test $shared_fails,$static != yes,; then
8270 lt_exe=./wrong; if test -f "./wrong$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8272 $as_echo "$at_srcdir/link-order2.at:130: if \"\$lt_exe\" || (exit 1); then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8273 at_fn_check_prepare_dynamic "if \"$lt_exe\" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "link-order2.at:130"
8274 ( $at_check_trace; if "$lt_exe" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8275 ) >>"$at_stdout" 2>>"$at_stderr"
8276 at_status=$? at_failed=false
8278 echo stderr:; cat "$at_stderr"
8279 at_fn_diff_devnull "$at_stdout" || at_failed=:
8280 at_fn_check_status 1 $at_status "$at_srcdir/link-order2.at:130"
8281 $at_failed && at_fn_log_failure
8287 $LIBTOOL --mode=install cp liba1.la $libdir/liba1.la
8288 $LIBTOOL --mode=install cp libb.la $libdir/libb.la
8289 $LIBTOOL --mode=install cp main$EXEEXT $bindir/main$EXEEXT
8290 $LIBTOOL --mode=install cp wrong$EXEEXT $bindir/wrong$EXEEXT
8291 $LIBTOOL --mode=clean rm -f liba1.la libb.la
8292 lt_exe=$bindir/main; if test -f "$bindir/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8294 $as_echo "$at_srcdir/link-order2.at:138: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8295 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "link-order2.at:138"
8296 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8297 ) >>"$at_stdout" 2>>"$at_stderr"
8298 at_status=$? at_failed=false
8300 at_fn_diff_devnull "$at_stderr" || at_failed=:
8301 at_fn_diff_devnull "$at_stdout" || at_failed=:
8302 at_fn_check_status 0 $at_status "$at_srcdir/link-order2.at:138"
8303 $at_failed && at_fn_log_failure
8307 if test $shared_fails,$static != yes,; then
8308 lt_exe=$bindir/wrong; if test -f "$bindir/wrong$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8310 $as_echo "$at_srcdir/link-order2.at:140: if \"\$lt_exe\" || (exit 1); then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8311 at_fn_check_prepare_dynamic "if \"$lt_exe\" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "link-order2.at:140"
8312 ( $at_check_trace; if "$lt_exe" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8313 ) >>"$at_stdout" 2>>"$at_stderr"
8314 at_status=$? at_failed=false
8316 echo stderr:; cat "$at_stderr"
8317 at_fn_diff_devnull "$at_stdout" || at_failed=:
8318 at_fn_check_status 1 $at_status "$at_srcdir/link-order2.at:140"
8319 $at_failed && at_fn_log_failure
8328 $as_echo "$at_srcdir/link-order2.at:145: test \$shared_fails = no || (exit 77)"
8329 at_fn_check_prepare_dynamic "test $shared_fails = no || (exit 77)" "link-order2.at:145"
8330 ( $at_check_trace; test $shared_fails = no || (exit 77)
8331 ) >>"$at_stdout" 2>>"$at_stderr"
8332 at_status=$? at_failed=false
8334 at_fn_diff_devnull "$at_stderr" || at_failed=:
8335 at_fn_diff_devnull "$at_stdout" || at_failed=:
8336 at_fn_check_status 0 $at_status "$at_srcdir/link-order2.at:145"
8337 $at_failed && at_fn_log_failure
8341 # Now the converse: if both the program and the library need libm, then
8342 # it needs to be sorted last. (TODO)
8345 $at_times_p && times >"$at_times_file"
8346 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8347 read at_status <"$at_status_file"
8350 at_fn_group_banner 40 'fail.at:27' \
8351 "Failure tests" " " 3
8354 $as_echo "40. $at_setup_line: testing $at_desc ..."
8358 eval `$LIBTOOL --config | $EGREP '^(pic_mode|pic_flag|build_old_libs|build_libtool_libs)='`
8359 LDFLAGS="$LDFLAGS -no-undefined"
8363 cat >script <<'_ATEOF'
8369 if test -x script >/dev/null 2>&1; then
8376 echo 'choke me' > a.c
8378 $as_echo "$at_srcdir/fail.at:49: if \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c a.c; then (exit 1); else :; fi"
8379 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c; then (exit 1); else :; fi" "fail.at:49"
8380 ( $at_check_trace; if $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c; then (exit 1); else :; fi
8381 ) >>"$at_stdout" 2>>"$at_stderr"
8382 at_status=$? at_failed=false
8384 echo stderr:; cat "$at_stderr"
8385 echo stdout:; cat "$at_stdout"
8386 at_fn_check_status 0 $at_status "$at_srcdir/fail.at:49"
8387 $at_failed && at_fn_log_failure
8392 $as_echo "$at_srcdir/fail.at:50: test -f a.lo"
8393 at_fn_check_prepare_trace "fail.at:50"
8394 ( $at_check_trace; test -f a.lo
8395 ) >>"$at_stdout" 2>>"$at_stderr"
8396 at_status=$? at_failed=false
8398 at_fn_diff_devnull "$at_stderr" || at_failed=:
8399 at_fn_diff_devnull "$at_stdout" || at_failed=:
8400 at_fn_check_status 1 $at_status "$at_srcdir/fail.at:50"
8401 $at_failed && at_fn_log_failure
8405 # non-PIC compile failure
8406 case $pic_mode in default | no)
8408 *\ -prefer-pic\ *) ;;
8410 case $build_old_libs,$pic_flag in yes,*-DPIC*)
8419 $as_echo "$at_srcdir/fail.at:63: if \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -no-suppress -c a.c; then (exit 1); else :; fi"
8420 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -no-suppress -c a.c; then (exit 1); else :; fi" "fail.at:63"
8421 ( $at_check_trace; if $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -no-suppress -c a.c; then (exit 1); else :; fi
8422 ) >>"$at_stdout" 2>>"$at_stderr"
8423 at_status=$? at_failed=false
8425 echo stderr:; cat "$at_stderr"
8426 echo stdout:; cat "$at_stdout"
8427 at_fn_check_status 0 $at_status "$at_srcdir/fail.at:63"
8428 $at_failed && at_fn_log_failure
8433 $as_echo "$at_srcdir/fail.at:64: test -f a.lo"
8434 at_fn_check_prepare_trace "fail.at:64"
8435 ( $at_check_trace; test -f a.lo
8436 ) >>"$at_stdout" 2>>"$at_stderr"
8437 at_status=$? at_failed=false
8439 at_fn_diff_devnull "$at_stderr" || at_failed=:
8440 at_fn_diff_devnull "$at_stdout" || at_failed=:
8441 at_fn_check_status 1 $at_status "$at_srcdir/fail.at:64"
8442 $at_failed && at_fn_log_failure
8452 # program creation failure.
8453 # We can't rely on `main' not being present: the QNX linker
8454 # won't error out in that case, although the resulting binary won't work.
8455 # So we provoke a link failure due to an unresolved symbol, and require
8456 # libtool to fail only if the link without libtool would have failed, too.
8458 extern int nonexistent_function (void);
8461 return nonexistent_function ();
8464 $CC $CPPFLAGS $CFLAGS -c a.c
8465 if $CC $CFLAGS $LDFLAGS -o a$EXEEXT a.$OBJEXT; then :; else
8468 $as_echo "$at_srcdir/fail.at:87: if \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o a\$EXEEXT a.\$OBJEXT; then (exit 1); else :; fi"
8469 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a$EXEEXT a.$OBJEXT; then (exit 1); else :; fi" "fail.at:87"
8470 ( $at_check_trace; if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a$EXEEXT a.$OBJEXT; then (exit 1); else :; fi
8471 ) >>"$at_stdout" 2>>"$at_stderr"
8472 at_status=$? at_failed=false
8474 echo stderr:; cat "$at_stderr"
8475 echo stdout:; cat "$at_stdout"
8476 at_fn_check_status 0 $at_status "$at_srcdir/fail.at:87"
8477 $at_failed && at_fn_log_failure
8482 $as_echo "$at_srcdir/fail.at:88: { test -f a && \$test_x a; } || { test -f a\$EXEEXT && \$test_x a\$EXEEXT; }"
8483 at_fn_check_prepare_dynamic "{ test -f a && $test_x a; } || { test -f a$EXEEXT && $test_x a$EXEEXT; }" "fail.at:88"
8484 ( $at_check_trace; { test -f a && $test_x a; } || { test -f a$EXEEXT && $test_x a$EXEEXT; }
8485 ) >>"$at_stdout" 2>>"$at_stderr"
8486 at_status=$? at_failed=false
8488 at_fn_diff_devnull "$at_stderr" || at_failed=:
8489 at_fn_diff_devnull "$at_stdout" || at_failed=:
8490 at_fn_check_status 1 $at_status "$at_srcdir/fail.at:88"
8491 $at_failed && at_fn_log_failure
8495 $as_echo "$at_srcdir/fail.at:89: if \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o a\$EXEEXT a.\$OBJEXT -static; then (exit 1); else :; fi"
8496 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a$EXEEXT a.$OBJEXT -static; then (exit 1); else :; fi" "fail.at:89"
8497 ( $at_check_trace; if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a$EXEEXT a.$OBJEXT -static; then (exit 1); else :; fi
8498 ) >>"$at_stdout" 2>>"$at_stderr"
8499 at_status=$? at_failed=false
8501 echo stderr:; cat "$at_stderr"
8502 echo stdout:; cat "$at_stdout"
8503 at_fn_check_status 0 $at_status "$at_srcdir/fail.at:89"
8504 $at_failed && at_fn_log_failure
8509 $as_echo "$at_srcdir/fail.at:90: { test -f a && \$test_x a; } || { test -f a\$EXEEXT && \$test_x a\$EXEEXT; }"
8510 at_fn_check_prepare_dynamic "{ test -f a && $test_x a; } || { test -f a$EXEEXT && $test_x a$EXEEXT; }" "fail.at:90"
8511 ( $at_check_trace; { test -f a && $test_x a; } || { test -f a$EXEEXT && $test_x a$EXEEXT; }
8512 ) >>"$at_stdout" 2>>"$at_stderr"
8513 at_status=$? at_failed=false
8515 at_fn_diff_devnull "$at_stderr" || at_failed=:
8516 at_fn_diff_devnull "$at_stdout" || at_failed=:
8517 at_fn_check_status 1 $at_status "$at_srcdir/fail.at:90"
8518 $at_failed && at_fn_log_failure
8523 # shared library creation failure
8524 case $build_libtool_libs in yes)
8525 echo 'int duplicate_name(void) { return 0; }' > a.c
8526 echo 'double duplicate_name(double x) { return 2.*x; }' > b.c
8527 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
8528 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c b.c
8529 # Unfortunately, this may actually succeed on AIX and IRIX :(
8530 # So, also add a bogus object file to provoke more failure.
8531 echo 'int whatever(void) { return 0;}' > c.c
8532 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c c.c
8535 test "$pic_object" != none && echo choke me >"$pic_object"
8536 test "$non_pic_object" != none && echo choke me >"$non_pic_object"
8539 $as_echo "$at_srcdir/fail.at:108: if \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la a.lo b.lo c.lo -rpath /foo; then (exit 1); else :; fi"
8540 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo b.lo c.lo -rpath /foo; then (exit 1); else :; fi" "fail.at:108"
8541 ( $at_check_trace; if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo b.lo c.lo -rpath /foo; then (exit 1); else :; fi
8542 ) >>"$at_stdout" 2>>"$at_stderr"
8543 at_status=$? at_failed=false
8545 echo stderr:; cat "$at_stderr"
8546 echo stdout:; cat "$at_stdout"
8547 at_fn_check_status 0 $at_status "$at_srcdir/fail.at:108"
8548 $at_failed && at_fn_log_failure
8553 $as_echo "$at_srcdir/fail.at:109: test -f liba.la"
8554 at_fn_check_prepare_trace "fail.at:109"
8555 ( $at_check_trace; test -f liba.la
8556 ) >>"$at_stdout" 2>>"$at_stderr"
8557 at_status=$? at_failed=false
8559 at_fn_diff_devnull "$at_stderr" || at_failed=:
8560 at_fn_diff_devnull "$at_stdout" || at_failed=:
8561 at_fn_check_status 1 $at_status "$at_srcdir/fail.at:109"
8562 $at_failed && at_fn_log_failure
8568 # Ensure we diagnose '-L path'.
8569 echo 'int main () { return 0; }' > d.c
8570 echo 'int foo () { return 0; }' > space-after-L.c
8571 $CC $CPPFLAGS $CFLAGS -c d.c
8572 $CC $CPPFLAGS $CFLAGS -c space-after-L.c
8574 $as_echo "$at_srcdir/fail.at:118: if \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -L space-after-L.\$OBJEXT -o d\$EXEEXT d.\$OBJEXT; then (exit 1); else :; fi"
8575 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -L space-after-L.$OBJEXT -o d$EXEEXT d.$OBJEXT; then (exit 1); else :; fi" "fail.at:118"
8576 ( $at_check_trace; if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -L space-after-L.$OBJEXT -o d$EXEEXT d.$OBJEXT; then (exit 1); else :; fi
8577 ) >>"$at_stdout" 2>>"$at_stderr"
8578 at_status=$? at_failed=false
8580 echo stderr:; cat "$at_stderr"
8581 echo stdout:; cat "$at_stdout"
8582 at_fn_check_status 0 $at_status "$at_srcdir/fail.at:118"
8583 $at_failed && at_fn_log_failure
8588 $as_echo "$at_srcdir/fail.at:119: if \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o d\$EXEEXT d.\$OBJEXT -L; then (exit 1); else :; fi"
8589 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o d$EXEEXT d.$OBJEXT -L; then (exit 1); else :; fi" "fail.at:119"
8590 ( $at_check_trace; if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o d$EXEEXT d.$OBJEXT -L; then (exit 1); else :; fi
8591 ) >>"$at_stdout" 2>>"$at_stderr"
8592 at_status=$? at_failed=false
8594 echo stderr:; cat "$at_stderr"
8595 echo stdout:; cat "$at_stdout"
8596 at_fn_check_status 0 $at_status "$at_srcdir/fail.at:119"
8597 $at_failed && at_fn_log_failure
8604 $at_times_p && times >"$at_times_file"
8605 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8606 read at_status <"$at_status_file"
8609 at_fn_group_banner 41 'shlibpath.at:25' \
8610 "shlibpath_overrides_runpath" " " 3
8613 $as_echo "41. $at_setup_line: testing $at_desc ..."
8618 mkdir sub sub/lib sub/bin
8619 echo 'int a () { return 0; }' > a.c
8620 echo 'extern int a (); int main () { return a(); }' > m.c
8621 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
8622 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath `pwd`/sub/lib
8623 $LIBTOOL --mode=install cp liba.la `pwd`/sub/lib/liba.la
8624 $LIBTOOL --mode=clean rm -f liba.la
8625 rm -f sub/lib/liba.la
8627 $CC $CPPFLAGS $CFLAGS -c m.c
8629 $as_echo "$at_srcdir/shlibpath.at:38: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m\$EXEEXT m.\$OBJEXT -Lsub/lib -la -R\`pwd\`/sub/lib"
8630 at_fn_check_prepare_notrace 'a `...` command substitution' "shlibpath.at:38"
8631 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT -Lsub/lib -la -R`pwd`/sub/lib
8632 ) >>"$at_stdout" 2>>"$at_stderr"
8633 at_status=$? at_failed=false
8635 echo stderr:; cat "$at_stderr"
8636 echo stdout:; cat "$at_stdout"
8637 at_fn_check_status 0 $at_status "$at_srcdir/shlibpath.at:38"
8638 $at_failed && at_fn_log_failure
8642 $as_echo "$at_srcdir/shlibpath.at:40: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m2\$EXEEXT m.\$OBJEXT -Lsub/lib -la"
8643 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT -Lsub/lib -la" "shlibpath.at:40"
8644 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT -Lsub/lib -la
8645 ) >>"$at_stdout" 2>>"$at_stderr"
8646 at_status=$? at_failed=false
8648 echo stderr:; cat "$at_stderr"
8649 echo stdout:; cat "$at_stdout"
8650 at_fn_check_status 0 $at_status "$at_srcdir/shlibpath.at:40"
8651 $at_failed && at_fn_log_failure
8656 (cd sub && find . -type d) | (cd moved && xargs $mkdir_p)
8657 for file in `cd sub && find . -type f -print -o -type l -print`
8659 mv sub/$file moved/$file
8663 mkdir sub sub/lib sub/bin
8664 echo 'int wrong_lib () { return 0; }' > a.c
8665 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
8666 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath `pwd`/sub/lib
8667 $LIBTOOL --mode=install cp liba.la `pwd`/sub/lib/liba.la
8668 $LIBTOOL --mode=clean rm -f liba.la
8670 eval `$LIBTOOL --config | $EGREP '^(shlibpath_var|shlibpath_overrides_runpath)='`
8672 # No point checking a system with static libraries:
8673 lt_exe=./m; if test -f "./m$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8675 $as_echo "$at_srcdir/shlibpath.at:54: if \"\$lt_exe\" || exit 1 && exit 77; then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8676 at_fn_check_prepare_dynamic "if \"$lt_exe\" || exit 1 && exit 77; then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "shlibpath.at:54"
8677 ( $at_check_trace; if "$lt_exe" || exit 1 && exit 77; then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8678 ) >>"$at_stdout" 2>>"$at_stderr"
8679 at_status=$? at_failed=false
8681 echo stderr:; cat "$at_stderr"
8682 echo stdout:; cat "$at_stdout"
8683 at_fn_check_status 1 $at_status "$at_srcdir/shlibpath.at:54"
8684 $at_failed && at_fn_log_failure
8689 if test "$shlibpath_var" = PATH; then
8690 addpath=`pwd`/moved/bin
8692 addpath=`pwd`/moved/lib
8695 eval test -n \"\$$shlibpath_var\" && sep=:
8696 eval $shlibpath_var='$addpath$sep$'$shlibpath_var
8697 export $shlibpath_var
8698 if test "$shlibpath_overrides_runpath" != no; then
8699 lt_exe=./m; if test -f "./m$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8701 $as_echo "$at_srcdir/shlibpath.at:66: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8702 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "shlibpath.at:66"
8703 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8704 ) >>"$at_stdout" 2>>"$at_stderr"
8705 at_status=$? at_failed=false
8707 echo stderr:; cat "$at_stderr"
8708 echo stdout:; cat "$at_stdout"
8709 at_fn_check_status 0 $at_status "$at_srcdir/shlibpath.at:66"
8710 $at_failed && at_fn_log_failure
8715 lt_exe=./m; if test -f "./m$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8717 $as_echo "$at_srcdir/shlibpath.at:68: if \"\$lt_exe\" || exit 1; then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8718 at_fn_check_prepare_dynamic "if \"$lt_exe\" || exit 1; then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "shlibpath.at:68"
8719 ( $at_check_trace; if "$lt_exe" || exit 1; then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8720 ) >>"$at_stdout" 2>>"$at_stderr"
8721 at_status=$? at_failed=false
8723 echo stderr:; cat "$at_stderr"
8724 echo stdout:; cat "$at_stdout"
8725 at_fn_check_status 1 $at_status "$at_srcdir/shlibpath.at:68"
8726 $at_failed && at_fn_log_failure
8731 # Test that shlibpath_var is effective in adding paths at all:
8732 lt_exe=./m2; if test -f "./m2$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
8734 $as_echo "$at_srcdir/shlibpath.at:71: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
8735 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "shlibpath.at:71"
8736 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
8737 ) >>"$at_stdout" 2>>"$at_stderr"
8738 at_status=$? at_failed=false
8740 echo stderr:; cat "$at_stderr"
8741 echo stdout:; cat "$at_stdout"
8742 at_fn_check_status 0 $at_status "$at_srcdir/shlibpath.at:71"
8743 $at_failed && at_fn_log_failure
8749 $at_times_p && times >"$at_times_file"
8750 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8751 read at_status <"$at_status_file"
8754 at_fn_group_banner 42 'runpath-in-lalib.at:25' \
8755 "Runpath in libtool library files" " " 3
8758 $as_echo "42. $at_setup_line: testing $at_desc ..."
8764 int a () { return 0; }
8769 int b () { return a (); }
8774 int main () { return b (); }
8781 addrunpath=`pwd`/foobar
8783 mkdir $instdir $libdir $bindir
8785 for file in a.c b.c; do
8786 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
8788 $CC $CPPFLAGS $CFLAGS -c m.c
8790 $as_echo "$at_srcdir/runpath-in-lalib.at:51: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la a.lo -rpath \$libdir -R\$addrunpath"
8791 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir -R$addrunpath" "runpath-in-lalib.at:51"
8792 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir -R$addrunpath
8793 ) >>"$at_stdout" 2>>"$at_stderr"
8794 at_status=$? at_failed=false
8796 echo stderr:; cat "$at_stderr"
8797 echo stdout:; cat "$at_stdout"
8798 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:51"
8799 $at_failed && at_fn_log_failure
8803 $as_echo "$at_srcdir/runpath-in-lalib.at:53: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libb.la b.lo -rpath \$libdir liba.la"
8804 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -rpath $libdir liba.la" "runpath-in-lalib.at:53"
8805 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -rpath $libdir liba.la
8806 ) >>"$at_stdout" 2>>"$at_stderr"
8807 at_status=$? at_failed=false
8809 echo stderr:; cat "$at_stderr"
8810 echo stdout:; cat "$at_stdout"
8811 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:53"
8812 $at_failed && at_fn_log_failure
8816 $as_echo "$at_srcdir/runpath-in-lalib.at:55: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m\$EXEEXT m.\$OBJEXT libb.la"
8817 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT libb.la" "runpath-in-lalib.at:55"
8818 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT libb.la
8819 ) >>"$at_stdout" 2>>"$at_stderr"
8820 at_status=$? at_failed=false
8822 echo stderr:; cat "$at_stderr"
8823 echo stdout:; cat "$at_stdout"
8824 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:55"
8825 $at_failed && at_fn_log_failure
8829 $as_echo "$at_srcdir/runpath-in-lalib.at:57: \$LIBTOOL --mode=install cp liba.la \$libdir/liba.la"
8830 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la $libdir/liba.la" "runpath-in-lalib.at:57"
8831 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la $libdir/liba.la
8832 ) >>"$at_stdout" 2>>"$at_stderr"
8833 at_status=$? at_failed=false
8835 echo stderr:; cat "$at_stderr"
8836 echo stdout:; cat "$at_stdout"
8837 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:57"
8838 $at_failed && at_fn_log_failure
8842 $as_echo "$at_srcdir/runpath-in-lalib.at:58: \$LIBTOOL --mode=install cp libb.la \$libdir/libb.la"
8843 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp libb.la $libdir/libb.la" "runpath-in-lalib.at:58"
8844 ( $at_check_trace; $LIBTOOL --mode=install cp libb.la $libdir/libb.la
8845 ) >>"$at_stdout" 2>>"$at_stderr"
8846 at_status=$? at_failed=false
8848 echo stderr:; cat "$at_stderr"
8849 echo stdout:; cat "$at_stdout"
8850 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:58"
8851 $at_failed && at_fn_log_failure
8855 $as_echo "$at_srcdir/runpath-in-lalib.at:59: \$LIBTOOL --mode=install cp m\$EXEEXT \$bindir/m\$EXEEXT"
8856 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp m$EXEEXT $bindir/m$EXEEXT" "runpath-in-lalib.at:59"
8857 ( $at_check_trace; $LIBTOOL --mode=install cp m$EXEEXT $bindir/m$EXEEXT
8858 ) >>"$at_stdout" 2>>"$at_stderr"
8859 at_status=$? at_failed=false
8861 echo stderr:; cat "$at_stderr"
8862 echo stdout:; cat "$at_stdout"
8863 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:59"
8864 $at_failed && at_fn_log_failure
8869 $as_echo "$at_srcdir/runpath-in-lalib.at:61: grep /foobar \$libdir/liba.la"
8870 at_fn_check_prepare_dynamic "grep /foobar $libdir/liba.la" "runpath-in-lalib.at:61"
8871 ( $at_check_trace; grep /foobar $libdir/liba.la
8872 ) >>"$at_stdout" 2>>"$at_stderr"
8873 at_status=$? at_failed=false
8875 at_fn_diff_devnull "$at_stderr" || at_failed=:
8876 echo stdout:; cat "$at_stdout"
8877 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:61"
8878 $at_failed && at_fn_log_failure
8882 $as_echo "$at_srcdir/runpath-in-lalib.at:62: grep /foobar \$libdir/libb.la"
8883 at_fn_check_prepare_dynamic "grep /foobar $libdir/libb.la" "runpath-in-lalib.at:62"
8884 ( $at_check_trace; grep /foobar $libdir/libb.la
8885 ) >>"$at_stdout" 2>>"$at_stderr"
8886 at_status=$? at_failed=false
8888 at_fn_diff_devnull "$at_stderr" || at_failed=:
8889 echo stdout:; cat "$at_stdout"
8890 at_fn_check_status 0 $at_status "$at_srcdir/runpath-in-lalib.at:62"
8891 $at_failed && at_fn_log_failure
8895 # TODO: check that m gets -R, too.
8898 $at_times_p && times >"$at_times_file"
8899 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8900 read at_status <"$at_status_file"
8903 at_fn_group_banner 43 'static.at:68' \
8904 "static linking flags for programs" " " 3
8907 $as_echo "43. $at_setup_line: testing $at_desc ..."
8912 LDFLAGS="$LDFLAGS -no-undefined"
8918 libdir1=$prefix1/lib
8919 libdir2=$prefix2/lib
8920 libdir3=$prefix3/lib
8921 srcdir_broken=`pwd`/broken-src
8922 prefix_broken=`pwd`/broken
8923 libdir_broken=$prefix_broken/lib
8924 bindir_broken=$prefix_broken/bin
8929 $LIBTOOL --features | grep 'enable static libraries' >/dev/null && have_static=:
8930 $LIBTOOL --features | grep 'enable shared libraries' >/dev/null && have_shared=:
8931 eval `$LIBTOOL --config |
8932 $EGREP '^(per_deplib_(static|dynamic)_flag|shlibpath_var|link_static_flag)='`
8933 if test -n "$per_deplib_static_flag" && test -n "$per_deplib_dynamic_flag"; then
8936 # On GNU/Linux with --disable-static, m-all-static fails to link.
8937 # What we'd like to state here is: if the user actively passed
8938 # --disable-static (as opposed to: the libtool.m4 macros set
8939 # enable_static=no), then they cannot expect -all-static to work.
8940 # So we punt, knowing that we mangle enable_static on AIX only.
8941 can_link_all_static=-all-static
8942 case $host_os,$have_static,$link_static_flag in
8944 *,false,?*) can_link_all_static= ;;
8947 # Create broken libraries. They will later be moved to those
8948 # directories where the respective libraries should be linked
8949 # statically from. This detects both failure to link statically
8950 # and failure to omit extraneous run paths.
8951 mkdir $srcdir_broken $prefix_broken $libdir_broken
8954 echo 'int this_should_not_be_linked_against() { return 0; }' > a.c
8955 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
8956 for i in 1 1dep 2 2dep 3 3dep; do
8957 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la a.lo -rpath $libdir_broken
8958 $LIBTOOL --mode=install cp liba$i.la $libdir_broken/liba$i.la
8964 # For w32, hardcoding cannot work, but $libdir/../bin is where binaries
8965 # usually are installed. Since we use several prefixes for testing
8966 # convenience -- it allows us to replace the good libraries easily with
8967 # broken ones and vice versa -- we have to set PATH to find them.
8968 # Since OTOH we put broken libs of all names in the "moved" prefixes,
8969 # we have to ensure that this prefix comes last: otherwise we may link
8970 # against a broken library but the good one would come later in the PATH.
8971 # So we let the caller of this function set the order: the "other" two
8973 if test "$shlibpath_var" = PATH; then
8976 test -z "$PATH" || sep=:
8977 PATH=${2}/bin:${3}/bin:${1}/bin$sep$PATH
8982 func_restore_path ()
8984 if test "$shlibpath_var" = PATH; then
8989 # func_move_libs srcdir_to_move prefix_to_move other_prefix other_prefix
8992 $mkdir_p "${1}-moved"
8993 (cd "${1}" && find . -type d) | (cd "${1}-moved" && xargs $mkdir_p)
8994 for file in `cd "${1}" && find . -type f -print -o -type l -print`
8996 mv "${1}"/$file "${1}-moved"/$file
9000 $mkdir_p "${2}-moved"
9001 (cd "${2}" && find . -type d) | (cd "${2}-moved" && xargs $mkdir_p)
9002 for file in `cd "${2}" && find . -type f -print -o -type l -print`
9004 mv "${2}"/$file "${2}-moved"/$file
9009 (cd "$srcdir_broken" && find . -type d) | (cd "${1}" && xargs $mkdir_p)
9010 for file in `cd "$srcdir_broken" && find . -type f -print -o -type l -print`
9012 mv "$srcdir_broken"/$file "${1}"/$file
9014 rm -rf "$srcdir_broken"
9017 (cd "$prefix_broken" && find . -type d) | (cd "${2}" && xargs $mkdir_p)
9018 for file in `cd "$prefix_broken" && find . -type f -print -o -type l -print`
9020 mv "$prefix_broken"/$file "${2}"/$file
9022 rm -rf "$prefix_broken"
9024 func_fix_path ${2} ${3} ${4}
9027 # func_restore_libs srcdir_to_restore prefix_to_restore
9028 func_restore_libs ()
9031 $mkdir_p "$prefix_broken"
9032 (cd "${2}" && find . -type d) | (cd "$prefix_broken" && xargs $mkdir_p)
9033 for file in `cd "${2}" && find . -type f -print -o -type l -print`
9035 mv "${2}"/$file "$prefix_broken"/$file
9039 $mkdir_p "$srcdir_broken"
9040 (cd "${1}" && find . -type d) | (cd "$srcdir_broken" && xargs $mkdir_p)
9041 for file in `cd "${1}" && find . -type f -print -o -type l -print`
9043 mv "${1}"/$file "$srcdir_broken"/$file
9048 (cd "${2}-moved" && find . -type d) | (cd "${2}" && xargs $mkdir_p)
9049 for file in `cd "${2}-moved" && find . -type f -print -o -type l -print`
9051 mv "${2}-moved"/$file "${2}"/$file
9056 (cd "${1}-moved" && find . -type d) | (cd "${1}" && xargs $mkdir_p)
9057 for file in `cd "${1}-moved" && find . -type f -print -o -type l -print`
9059 mv "${1}-moved"/$file "${1}"/$file
9065 # make sure the program can be run.
9068 # On AIX without runtimelinking, this does not make sense.
9069 if $have_static; then
9070 echo "## The following should succeed:"
9074 lt_exe=./m$st; if test -f "./m$st$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
9076 $as_echo "$at_srcdir/static.at:178: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
9077 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "static.at:178"
9078 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
9079 ) >>"$at_stdout" 2>>"$at_stderr"
9080 at_status=$? at_failed=false
9082 at_fn_diff_devnull "$at_stderr" || at_failed=:
9083 at_fn_diff_devnull "$at_stdout" || at_failed=:
9084 at_fn_check_status 0 $at_status "$at_srcdir/static.at:178"
9085 $at_failed && at_fn_log_failure
9089 # For some per-deplib flag combinations there may be no installed program,
9090 # because liba2 is not yet installed.
9091 if test -f "$bindir/m${st}$EXEEXT"; then
9092 lt_exe=$bindir/m$st; if test -f "$bindir/m$st$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
9094 $as_echo "$at_srcdir/static.at:182: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
9095 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "static.at:182"
9096 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
9097 ) >>"$at_stdout" 2>>"$at_stderr"
9098 at_status=$? at_failed=false
9100 at_fn_diff_devnull "$at_stderr" || at_failed=:
9101 at_fn_diff_devnull "$at_stdout" || at_failed=:
9102 at_fn_check_status 0 $at_status "$at_srcdir/static.at:182"
9103 $at_failed && at_fn_log_failure
9112 # make sure the program cannot be run.
9113 func_test_exec_fail ()
9115 # No point in testing if we're linking statically anyway.
9116 # TODO: Maybe in the `else' case we could test for success?
9117 if $have_shared; then
9118 echo "## The following should fail:"
9122 lt_exe=./m$st; if test -f "./m$st$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
9124 $as_echo "$at_srcdir/static.at:198: if \"\$lt_exe\" || (exit 1); then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
9125 at_fn_check_prepare_dynamic "if \"$lt_exe\" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "static.at:198"
9126 ( $at_check_trace; if "$lt_exe" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
9127 ) >>"$at_stdout" 2>>"$at_stderr"
9128 at_status=$? at_failed=false
9130 echo stderr:; cat "$at_stderr"
9131 at_fn_diff_devnull "$at_stdout" || at_failed=:
9132 at_fn_check_status 1 $at_status "$at_srcdir/static.at:198"
9133 $at_failed && at_fn_log_failure
9137 # For some per-deplib flag combinations there may be no installed program,
9138 # because liba2 is not yet installed.
9139 if test -f "$bindir/m${st}$EXEEXT"; then
9140 lt_exe=$bindir/m$st; if test -f "$bindir/m$st$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
9142 $as_echo "$at_srcdir/static.at:202: if \"\$lt_exe\" || (exit 1); then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
9143 at_fn_check_prepare_dynamic "if \"$lt_exe\" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "static.at:202"
9144 ( $at_check_trace; if "$lt_exe" || (exit 1); then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
9145 ) >>"$at_stdout" 2>>"$at_stderr"
9146 at_status=$? at_failed=false
9148 echo stderr:; cat "$at_stderr"
9149 at_fn_diff_devnull "$at_stdout" || at_failed=:
9150 at_fn_check_status 1 $at_status "$at_srcdir/static.at:202"
9151 $at_failed && at_fn_log_failure
9161 # Try three independent libraries,
9162 # one installed libtool library,
9163 # one uninstalled libtool library,
9164 # one non-libtool library,
9165 # the libtool libraries each having a dependency, or not.
9166 # Try both an uninstalled and the corresponding installed program.
9168 for withdep in no yes; do
9170 echo "### libraries with dependencies: $withdep"
9171 rm -rf src $prefix $prefix1 $prefix2 $prefix3
9172 mkdir src $prefix $bindir $prefix1 $prefix2 $prefix3
9175 ### build the libraries.
9177 eval ldir=\$libdir$i
9182 echo "int a$i() { return 0; }" > a$i.c
9183 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a$i.c
9184 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la a$i.lo -rpath $ldir
9187 echo "int a${i}dep() { return 0; }" > a${i}dep.c
9188 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a${i}dep.c
9189 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba${i}dep.la a${i}dep.lo -rpath $ldir
9190 echo "extern int a${i}dep(); int a$i() { return a${i}dep(); }" > a$i.c
9191 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a$i.c
9192 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la a$i.lo -rpath $ldir ./liba${i}dep.la
9198 ### install the libraries.
9199 test "$withdep" = yes && $LIBTOOL --mode=install cp a1/liba1dep.la $libdir1/liba1dep.la
9200 $LIBTOOL --mode=install cp a1/liba1.la $libdir1/liba1.la
9201 $LIBTOOL --mode=install cp a3/liba3.la $libdir3/liba3.la
9202 $LIBTOOL --mode=clean rm -f a1/liba1.la a3/liba3.la
9203 test "$withdep" = yes && $LIBTOOL --mode=clean rm -f a1/liba1dep.la
9204 # simulate a non-libtool lib:
9205 rm -f $libdir3/liba3.la
9208 ### build the programs.
9209 echo 'extern int a1(), a2(), a3();
9210 int main() { return a1() + a2() + a3(); }' > m.c
9211 $CC $CPPFLAGS $CFLAGS -c m.c
9213 # global static flags.
9214 for st in -static -static-libtool-libs $can_link_all_static; do
9216 $as_echo "$at_srcdir/static.at:263: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS \$st -o m\${st}\$EXEEXT m.\$OBJEXT \\
9217 -L\$libdir1 -la1 a2/liba2.la -L\$libdir3 -R\$libdir3 -la3"
9218 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "static.at:263"
9219 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o m${st}$EXEEXT m.$OBJEXT \
9220 -L$libdir1 -la1 a2/liba2.la -L$libdir3 -R$libdir3 -la3
9221 ) >>"$at_stdout" 2>>"$at_stderr"
9222 at_status=$? at_failed=false
9224 echo stderr:; cat "$at_stderr"
9225 echo stdout:; cat "$at_stdout"
9226 at_fn_check_status 0 $at_status "$at_srcdir/static.at:263"
9227 $at_failed && at_fn_log_failure
9232 # per-deplib static/shared flags.
9233 # also try a bit redundant flags, and shuffled order (for run paths check).
9234 if $per_deplib; then
9236 $as_echo "$at_srcdir/static.at:271: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m1\$EXEEXT m.\$OBJEXT \\
9237 -L\$libdir1 -Bstatic -la1 -Bdynamic a2/liba2.la -L\$libdir3 -R\$libdir3 -la3"
9238 at_fn_check_prepare_notrace 'an embedded newline' "static.at:271"
9239 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m1$EXEEXT m.$OBJEXT \
9240 -L$libdir1 -Bstatic -la1 -Bdynamic a2/liba2.la -L$libdir3 -R$libdir3 -la3
9241 ) >>"$at_stdout" 2>>"$at_stderr"
9242 at_status=$? at_failed=false
9244 echo stderr:; cat "$at_stderr"
9245 echo stdout:; cat "$at_stdout"
9246 at_fn_check_status 0 $at_status "$at_srcdir/static.at:271"
9247 $at_failed && at_fn_log_failure
9251 $as_echo "$at_srcdir/static.at:274: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m2\$EXEEXT m.\$OBJEXT \\
9252 -L\$libdir1 -la1 -Bstatic a2/liba2.la -Bdynamic -L\$libdir3 -R\$libdir3 -la3"
9253 at_fn_check_prepare_notrace 'an embedded newline' "static.at:274"
9254 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT \
9255 -L$libdir1 -la1 -Bstatic a2/liba2.la -Bdynamic -L$libdir3 -R$libdir3 -la3
9256 ) >>"$at_stdout" 2>>"$at_stderr"
9257 at_status=$? at_failed=false
9259 echo stderr:; cat "$at_stderr"
9260 echo stdout:; cat "$at_stdout"
9261 at_fn_check_status 0 $at_status "$at_srcdir/static.at:274"
9262 $at_failed && at_fn_log_failure
9266 $as_echo "$at_srcdir/static.at:277: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m3\$EXEEXT m.\$OBJEXT \\
9267 -L\$libdir1 -la1 a2/liba2.la -L\$libdir3 -Bstatic -la3 -Bdynamic"
9268 at_fn_check_prepare_notrace 'an embedded newline' "static.at:277"
9269 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m3$EXEEXT m.$OBJEXT \
9270 -L$libdir1 -la1 a2/liba2.la -L$libdir3 -Bstatic -la3 -Bdynamic
9271 ) >>"$at_stdout" 2>>"$at_stderr"
9272 at_status=$? at_failed=false
9274 echo stderr:; cat "$at_stderr"
9275 echo stdout:; cat "$at_stdout"
9276 at_fn_check_status 0 $at_status "$at_srcdir/static.at:277"
9277 $at_failed && at_fn_log_failure
9281 $as_echo "$at_srcdir/static.at:280: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m12\$EXEEXT m.\$OBJEXT \\
9282 -L\$libdir1 -Bstatic -la1 a2/liba2.la -Bdynamic -L\$libdir3 -R\$libdir3 -la3"
9283 at_fn_check_prepare_notrace 'an embedded newline' "static.at:280"
9284 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m12$EXEEXT m.$OBJEXT \
9285 -L$libdir1 -Bstatic -la1 a2/liba2.la -Bdynamic -L$libdir3 -R$libdir3 -la3
9286 ) >>"$at_stdout" 2>>"$at_stderr"
9287 at_status=$? at_failed=false
9289 echo stderr:; cat "$at_stderr"
9290 echo stdout:; cat "$at_stdout"
9291 at_fn_check_status 0 $at_status "$at_srcdir/static.at:280"
9292 $at_failed && at_fn_log_failure
9296 $as_echo "$at_srcdir/static.at:283: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m13\$EXEEXT m.\$OBJEXT \\
9297 -L\$libdir1 -Bstatic -la1 -Bdynamic a2/liba2.la \\
9298 -L\$libdir3 -Bstatic -la3 -Bdynamic"
9299 at_fn_check_prepare_notrace 'an embedded newline' "static.at:283"
9300 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m13$EXEEXT m.$OBJEXT \
9301 -L$libdir1 -Bstatic -la1 -Bdynamic a2/liba2.la \
9302 -L$libdir3 -Bstatic -la3 -Bdynamic
9303 ) >>"$at_stdout" 2>>"$at_stderr"
9304 at_status=$? at_failed=false
9306 echo stderr:; cat "$at_stderr"
9307 echo stdout:; cat "$at_stdout"
9308 at_fn_check_status 0 $at_status "$at_srcdir/static.at:283"
9309 $at_failed && at_fn_log_failure
9313 $as_echo "$at_srcdir/static.at:287: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m31\$EXEEXT m.\$OBJEXT \\
9314 -L\$libdir3 -Bstatic -la3 -Bdynamic a2/liba2.la \\
9315 -L\$libdir1 -Bstatic -la1 -Bdynamic"
9316 at_fn_check_prepare_notrace 'an embedded newline' "static.at:287"
9317 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m31$EXEEXT m.$OBJEXT \
9318 -L$libdir3 -Bstatic -la3 -Bdynamic a2/liba2.la \
9319 -L$libdir1 -Bstatic -la1 -Bdynamic
9320 ) >>"$at_stdout" 2>>"$at_stderr"
9321 at_status=$? at_failed=false
9323 echo stderr:; cat "$at_stderr"
9324 echo stdout:; cat "$at_stdout"
9325 at_fn_check_status 0 $at_status "$at_srcdir/static.at:287"
9326 $at_failed && at_fn_log_failure
9330 $as_echo "$at_srcdir/static.at:291: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m23\$EXEEXT m.\$OBJEXT \\
9331 -L\$libdir1 -la1 -Bstatic a2/liba2.la -Bdynamic \\
9332 -L\$libdir3 -Bstatic -la3 -Bdynamic"
9333 at_fn_check_prepare_notrace 'an embedded newline' "static.at:291"
9334 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m23$EXEEXT m.$OBJEXT \
9335 -L$libdir1 -la1 -Bstatic a2/liba2.la -Bdynamic \
9336 -L$libdir3 -Bstatic -la3 -Bdynamic
9337 ) >>"$at_stdout" 2>>"$at_stderr"
9338 at_status=$? at_failed=false
9340 echo stderr:; cat "$at_stderr"
9341 echo stdout:; cat "$at_stdout"
9342 at_fn_check_status 0 $at_status "$at_srcdir/static.at:291"
9343 $at_failed && at_fn_log_failure
9347 $as_echo "$at_srcdir/static.at:295: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m123\$EXEEXT m.\$OBJEXT \\
9348 -L\$libdir1 -Bstatic -la1 a2/liba2.la -L\$libdir3 -la3 -Bdynamic"
9349 at_fn_check_prepare_notrace 'an embedded newline' "static.at:295"
9350 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123$EXEEXT m.$OBJEXT \
9351 -L$libdir1 -Bstatic -la1 a2/liba2.la -L$libdir3 -la3 -Bdynamic
9352 ) >>"$at_stdout" 2>>"$at_stderr"
9353 at_status=$? at_failed=false
9355 echo stderr:; cat "$at_stderr"
9356 echo stdout:; cat "$at_stdout"
9357 at_fn_check_status 0 $at_status "$at_srcdir/static.at:295"
9358 $at_failed && at_fn_log_failure
9362 $as_echo "$at_srcdir/static.at:298: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m123a\$EXEEXT m.\$OBJEXT \\
9363 -L\$libdir1 -Bstatic -la1 -Bdynamic -Bstatic a2/liba2.la -Bdynamic \\
9364 -Bstatic -L\$libdir3 -la3 -Bdynamic"
9365 at_fn_check_prepare_notrace 'an embedded newline' "static.at:298"
9366 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m123a$EXEEXT m.$OBJEXT \
9367 -L$libdir1 -Bstatic -la1 -Bdynamic -Bstatic a2/liba2.la -Bdynamic \
9368 -Bstatic -L$libdir3 -la3 -Bdynamic
9369 ) >>"$at_stdout" 2>>"$at_stderr"
9370 at_status=$? at_failed=false
9372 echo stderr:; cat "$at_stderr"
9373 echo stdout:; cat "$at_stdout"
9374 at_fn_check_status 0 $at_status "$at_srcdir/static.at:298"
9375 $at_failed && at_fn_log_failure
9380 ### install the programs.
9381 # We can't install any program that links dynamically against liba2.
9382 for st in -static -static-libtool-libs $can_link_all_static `$per_deplib && echo 2 12 23 123 123a`; do
9385 $as_echo "$at_srcdir/static.at:312: \$LIBTOOL --mode=install cp m\${st}\$EXEEXT \$bindir/m\${st}\$EXEEXT"
9386 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "static.at:312"
9387 ( $at_check_trace; $LIBTOOL --mode=install cp m${st}$EXEEXT $bindir/m${st}$EXEEXT
9388 ) >>"$at_stdout" 2>>"$at_stderr"
9389 at_status=$? at_failed=false
9391 echo stderr:; tee stderr <"$at_stderr"
9392 echo stdout:; cat "$at_stdout"
9393 at_fn_check_status 0 $at_status "$at_srcdir/static.at:312"
9394 $at_failed && at_fn_log_failure
9397 if $have_static; then
9399 $as_echo "$at_srcdir/static.at:314: \$EGREP 'relinking|has not been installed' stderr"
9400 at_fn_check_prepare_notrace 'a shell pipeline' "static.at:314"
9401 ( $at_check_trace; $EGREP 'relinking|has not been installed' stderr
9402 ) >>"$at_stdout" 2>>"$at_stderr"
9403 at_status=$? at_failed=false
9405 at_fn_diff_devnull "$at_stderr" || at_failed=:
9406 at_fn_diff_devnull "$at_stdout" || at_failed=:
9407 at_fn_check_status 1 $at_status "$at_srcdir/static.at:314"
9408 $at_failed && at_fn_log_failure
9415 ### Run each program once so that relinking has happened.
9417 func_fix_path $prefix1 $prefix2 $prefix3
9418 func_test_exec -static -static-libtool-libs -all-static `$per_deplib && echo 1 2 3 12 13 23 31 123 123a`
9422 # - remove the library images to catch failure to link statically/dynamically,
9423 # - add false other deplibs in the paths to catch (some) wrongly added run paths.
9425 # if -all-static does not work, do not exercise it any more.
9426 all_static=-all-static
9427 test -z "$link_static_flag" && all_static=
9429 echo "### test whether installed libtool library liba2 was linked statically"
9430 func_move_libs a2 $prefix2 $prefix3 $prefix1
9431 func_test_exec -static -static-libtool-libs $all_static `$per_deplib && echo 2 12 23 123 123a`
9432 $per_deplib && func_test_exec_fail 1 3 13 31
9433 func_restore_libs a2 $prefix2
9435 echo "### test whether uninstalled libtool library liba1 was linked statically"
9436 func_move_libs a1 $prefix1 $prefix2 $prefix3
9437 func_test_exec -static-libtool-libs $all_static `$per_deplib && echo 1 12 13 31 123 123a`
9438 $per_deplib && func_test_exec_fail -static 2 3 23
9439 func_restore_libs a1 $prefix1
9441 echo "### test whether non-libtool library liba3 was linked statically"
9442 func_move_libs a3 $prefix3 $prefix1 $prefix2
9443 func_test_exec $all_static `$per_deplib && echo 3 13 23 31 123 123a`
9444 func_test_exec_fail -static -static-libtool-libs `$per_deplib && echo 1 2 12`
9445 func_restore_libs a3 $prefix3
9451 $at_times_p && times >"$at_times_file"
9452 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9453 read at_status <"$at_status_file"
9456 at_fn_group_banner 44 'static.at:358' \
9457 "ccache -all-static" " " 3
9460 $as_echo "44. $at_setup_line: testing $at_desc ..."
9464 cat >ccache <<'_ATEOF'
9466 # poor man's ccache clone
9468 -*) echo "bogus argument: $1" >&2; exit 1 ;;
9476 int main(void) { return 0; }
9481 $as_echo "$at_srcdir/static.at:374: \$CC \$CPPFLAGS \$CFLAGS -c a.c"
9482 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c a.c" "static.at:374"
9483 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c a.c
9484 ) >>"$at_stdout" 2>>"$at_stderr"
9485 at_status=$? at_failed=false
9487 echo stderr:; cat "$at_stderr"
9488 echo stdout:; cat "$at_stdout"
9489 at_fn_check_status 0 $at_status "$at_srcdir/static.at:374"
9490 $at_failed && at_fn_log_failure
9494 $as_echo "$at_srcdir/static.at:375: \$LIBTOOL --mode=link --tag=CC ./ccache \$CC \$CFLAGS \$LDFLAGS -all-static a.\$OBJEXT -o a\$EXEEXT"
9495 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC ./ccache $CC $CFLAGS $LDFLAGS -all-static a.$OBJEXT -o a$EXEEXT" "static.at:375"
9496 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC ./ccache $CC $CFLAGS $LDFLAGS -all-static a.$OBJEXT -o a$EXEEXT
9497 ) >>"$at_stdout" 2>>"$at_stderr"
9498 at_status=$? at_failed=false
9500 echo stderr:; cat "$at_stderr"
9501 echo stdout:; cat "$at_stdout"
9502 at_fn_check_status 0 $at_status "$at_srcdir/static.at:375"
9503 $at_failed && at_fn_log_failure
9508 $at_times_p && times >"$at_times_file"
9509 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9510 read at_status <"$at_status_file"
9513 at_fn_group_banner 45 'export.at:25' \
9517 $as_echo "45. $at_setup_line: testing $at_desc ..."
9523 $as_echo "$at_srcdir/export.at:28: \$LIBTOOL --features | grep 'disable shared libraries' && (exit 77)"
9524 at_fn_check_prepare_notrace 'a shell pipeline' "export.at:28"
9525 ( $at_check_trace; $LIBTOOL --features | grep 'disable shared libraries' && (exit 77)
9526 ) >>"$at_stdout" 2>>"$at_stderr"
9527 at_status=$? at_failed=false
9529 at_fn_diff_devnull "$at_stderr" || at_failed=:
9530 echo stdout:; cat "$at_stdout"
9531 at_fn_check_status 1 $at_status "$at_srcdir/export.at:28"
9532 $at_failed && at_fn_log_failure
9536 $as_echo "$at_srcdir/export.at:30: eval \`\$LIBTOOL --config | sed -n '/^archive_expsym_cmds=/,/^\$/p'\`
9537 test -n \"\$archive_expsym_cmds\" || echo false >can-hide
9538 case \$archive_expsym_cmds in
9539 *-retain-symbols-file*) echo false >can-hide ;;
9541 at_fn_check_prepare_notrace 'a `...` command substitution' "export.at:30"
9542 ( $at_check_trace; eval `$LIBTOOL --config | sed -n '/^archive_expsym_cmds=/,/^$/p'`
9543 test -n "$archive_expsym_cmds" || echo false >can-hide
9544 case $archive_expsym_cmds in
9545 *-retain-symbols-file*) echo false >can-hide ;;
9547 ) >>"$at_stdout" 2>>"$at_stderr"
9548 at_status=$? at_failed=false
9550 at_fn_diff_devnull "$at_stderr" || at_failed=:
9551 at_fn_diff_devnull "$at_stdout" || at_failed=:
9552 at_fn_check_status 0 $at_status "$at_srcdir/export.at:30"
9553 $at_failed && at_fn_log_failure
9557 test -s can-hide && can_hide=false
9559 LDFLAGS="$LDFLAGS -no-undefined"
9560 libdir=`pwd`/inst/lib
9564 /* all kinds of data items */
9573 extern const int v5, v6;
9574 extern const char *v7;
9575 extern const char v8[];
9576 extern int (*const v12) (void);
9579 const char* v7 = "\01foo";
9580 const char v8[] = "\01bar";
9581 int v9(void) { return v2 + 1; }
9583 int (*v11) (void) = v9;
9584 int (*const v12) (void) = v9;
9586 typedef struct { int arr[1000]; } large;
9588 large v14 = { { 0 } };
9589 large v15 = { { 1 } };
9591 int w1 (void) { return 0; }
9599 cat >asyms <<'_ATEOF'
9617 cat >main.c <<'_ATEOF'
9619 /* w32 fun. With GCC, you can have auto-import, which will work for
9620 * functions and non-const variables. With MSVC, you have to explicitly
9621 * import all variables. Depending on the amount of portability, you
9622 * need these annotations: LIBA_SCOPE for GCC, and also LIBA_SCOPE_VAR
9623 * for MSVC. Of course you can merge both to one, this test only avoids
9624 * that in order to expose the auto-import feature on Cygwin.
9626 * For users, it's best to realize that they should not provide any
9627 * non-function API at all.
9629 #if defined(LIBA_DLL_IMPORT)
9630 # if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__)
9631 # define LIBA_SCOPE extern __declspec(dllimport)
9632 # if defined(_MSC_VER)
9633 # define LIBA_SCOPE_VAR LIBA_SCOPE
9637 #if !defined(LIBA_SCOPE)
9638 # define LIBA_SCOPE extern
9640 #if !defined(LIBA_SCOPE_VAR)
9641 # define LIBA_SCOPE_VAR extern
9646 LIBA_SCOPE_VAR int v1;
9647 LIBA_SCOPE_VAR int v3, v4;
9648 LIBA_SCOPE const int v5, v6;
9649 LIBA_SCOPE_VAR const char* v7;
9650 LIBA_SCOPE_VAR const char v8[];
9651 extern int v9(void);
9652 LIBA_SCOPE_VAR int (*v10) (void);
9653 LIBA_SCOPE_VAR int (*v11) (void);
9654 LIBA_SCOPE int (*const v12) (void);
9659 typedef struct { int arr[1000]; } large;
9660 LIBA_SCOPE_VAR large v13, v14, v15;
9664 char s = v7[0] + v8[0];
9665 return s + v1 + v3 + v4 + v5 + v6 + v9() + v11() + v12()
9666 + v13.arr[0] + v14.arr[0] + v15.arr[0]
9672 cat >broken.c <<'_ATEOF'
9674 /* these symbols should not be exported */
9678 extern int w1 (void);
9690 $as_echo "$at_srcdir/export.at:164: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c a.c"
9691 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c" "export.at:164"
9692 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
9693 ) >>"$at_stdout" 2>>"$at_stderr"
9694 at_status=$? at_failed=false
9696 echo stderr:; cat "$at_stderr"
9697 echo stdout:; cat "$at_stdout"
9698 at_fn_check_status 0 $at_status "$at_srcdir/export.at:164"
9699 $at_failed && at_fn_log_failure
9703 $as_echo "$at_srcdir/export.at:165: \$CC \$CPPFLAGS -DLIBA_DLL_IMPORT \$CFLAGS -c main.c"
9704 at_fn_check_prepare_dynamic "$CC $CPPFLAGS -DLIBA_DLL_IMPORT $CFLAGS -c main.c" "export.at:165"
9705 ( $at_check_trace; $CC $CPPFLAGS -DLIBA_DLL_IMPORT $CFLAGS -c main.c
9706 ) >>"$at_stdout" 2>>"$at_stderr"
9707 at_status=$? at_failed=false
9709 echo stderr:; cat "$at_stderr"
9710 echo stdout:; cat "$at_stdout"
9711 at_fn_check_status 0 $at_status "$at_srcdir/export.at:165"
9712 $at_failed && at_fn_log_failure
9716 $as_echo "$at_srcdir/export.at:166: \$CC \$CPPFLAGS \$CFLAGS -c broken.c"
9717 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c broken.c" "export.at:166"
9718 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c broken.c
9719 ) >>"$at_stdout" 2>>"$at_stderr"
9720 at_status=$? at_failed=false
9722 echo stderr:; cat "$at_stderr"
9723 echo stdout:; cat "$at_stdout"
9724 at_fn_check_status 0 $at_status "$at_srcdir/export.at:166"
9725 $at_failed && at_fn_log_failure
9729 for exportsyms in '' '-export-symbols-regex "v.*"' '-export-symbols asyms'
9731 # case 1: shared library built from object.
9732 echo "eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo \\
9733 -rpath $libdir' $exportsyms"; { set +x
9734 $as_echo "$at_srcdir/export.at:171: eval '\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la a.lo \\
9735 -rpath \$libdir' \$exportsyms"
9736 at_fn_check_prepare_notrace 'an embedded newline' "export.at:171"
9737 ( $at_check_trace; eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo \
9738 -rpath $libdir' $exportsyms
9739 ) >>"$at_stdout" 2>>"$at_stderr"
9740 at_status=$? at_failed=false
9742 echo stderr:; cat "$at_stderr"
9743 echo stdout:; cat "$at_stdout"
9744 at_fn_check_status 0 $at_status "$at_srcdir/export.at:171"
9745 $at_failed && at_fn_log_failure
9749 $as_echo "$at_srcdir/export.at:173: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT liba.la"
9750 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la" "export.at:173"
9751 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la
9752 ) >>"$at_stdout" 2>>"$at_stderr"
9753 at_status=$? at_failed=false
9755 echo stderr:; cat "$at_stderr"
9756 echo stdout:; cat "$at_stdout"
9757 at_fn_check_status 0 $at_status "$at_srcdir/export.at:173"
9758 $at_failed && at_fn_log_failure
9761 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
9763 $as_echo "$at_srcdir/export.at:175: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
9764 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "export.at:175"
9765 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
9766 ) >>"$at_stdout" 2>>"$at_stderr"
9767 at_status=$? at_failed=false
9769 at_fn_diff_devnull "$at_stderr" || at_failed=:
9770 at_fn_diff_devnull "$at_stdout" || at_failed=:
9771 at_fn_check_status 0 $at_status "$at_srcdir/export.at:175"
9772 $at_failed && at_fn_log_failure
9776 if test -n "$exportsyms" && $can_hide; then
9778 $as_echo "$at_srcdir/export.at:177: if \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o broken\$EXEEXT broken.\$OBJEXT liba.la
9779 then (exit 1); else :; fi"
9780 at_fn_check_prepare_notrace 'an embedded newline' "export.at:177"
9781 ( $at_check_trace; if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o broken$EXEEXT broken.$OBJEXT liba.la
9782 then (exit 1); else :; fi
9783 ) >>"$at_stdout" 2>>"$at_stderr"
9784 at_status=$? at_failed=false
9786 echo stderr:; cat "$at_stderr"
9787 echo stdout:; cat "$at_stdout"
9788 at_fn_check_status 0 $at_status "$at_srcdir/export.at:177"
9789 $at_failed && at_fn_log_failure
9794 # case 2: shared library built from convenience archive.
9796 $as_echo "$at_srcdir/export.at:182: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libconv.la a.lo"
9797 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libconv.la a.lo" "export.at:182"
9798 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libconv.la a.lo
9799 ) >>"$at_stdout" 2>>"$at_stderr"
9800 at_status=$? at_failed=false
9802 echo stderr:; cat "$at_stderr"
9803 echo stdout:; cat "$at_stdout"
9804 at_fn_check_status 0 $at_status "$at_srcdir/export.at:182"
9805 $at_failed && at_fn_log_failure
9808 echo "eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la libconv.la \\
9809 -rpath $libdir' $exportsyms"; { set +x
9810 $as_echo "$at_srcdir/export.at:184: eval '\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la libconv.la \\
9811 -rpath \$libdir' \$exportsyms"
9812 at_fn_check_prepare_notrace 'an embedded newline' "export.at:184"
9813 ( $at_check_trace; eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la libconv.la \
9814 -rpath $libdir' $exportsyms
9815 ) >>"$at_stdout" 2>>"$at_stderr"
9816 at_status=$? at_failed=false
9818 echo stderr:; cat "$at_stderr"
9819 echo stdout:; cat "$at_stdout"
9820 at_fn_check_status 0 $at_status "$at_srcdir/export.at:184"
9821 $at_failed && at_fn_log_failure
9825 $as_echo "$at_srcdir/export.at:186: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT liba.la"
9826 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la" "export.at:186"
9827 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la
9828 ) >>"$at_stdout" 2>>"$at_stderr"
9829 at_status=$? at_failed=false
9831 echo stderr:; cat "$at_stderr"
9832 echo stdout:; cat "$at_stdout"
9833 at_fn_check_status 0 $at_status "$at_srcdir/export.at:186"
9834 $at_failed && at_fn_log_failure
9837 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
9839 $as_echo "$at_srcdir/export.at:188: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
9840 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "export.at:188"
9841 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
9842 ) >>"$at_stdout" 2>>"$at_stderr"
9843 at_status=$? at_failed=false
9845 at_fn_diff_devnull "$at_stderr" || at_failed=:
9846 at_fn_diff_devnull "$at_stdout" || at_failed=:
9847 at_fn_check_status 0 $at_status "$at_srcdir/export.at:188"
9848 $at_failed && at_fn_log_failure
9852 if test -n "$exportsyms" && $can_hide; then
9854 $as_echo "$at_srcdir/export.at:190: if \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o broken\$EXEEXT broken.\$OBJEXT liba.la
9855 then (exit 1); else :; fi"
9856 at_fn_check_prepare_notrace 'an embedded newline' "export.at:190"
9857 ( $at_check_trace; if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o broken$EXEEXT broken.$OBJEXT liba.la
9858 then (exit 1); else :; fi
9859 ) >>"$at_stdout" 2>>"$at_stderr"
9860 at_status=$? at_failed=false
9862 echo stderr:; cat "$at_stderr"
9863 echo stdout:; cat "$at_stdout"
9864 at_fn_check_status 0 $at_status "$at_srcdir/export.at:190"
9865 $at_failed && at_fn_log_failure
9872 $as_echo "$at_srcdir/export.at:195: \$can_hide || (exit 77)"
9873 at_fn_check_prepare_dynamic "$can_hide || (exit 77)" "export.at:195"
9874 ( $at_check_trace; $can_hide || (exit 77)
9875 ) >>"$at_stdout" 2>>"$at_stderr"
9876 at_status=$? at_failed=false
9878 at_fn_diff_devnull "$at_stderr" || at_failed=:
9879 at_fn_diff_devnull "$at_stdout" || at_failed=:
9880 at_fn_check_status 0 $at_status "$at_srcdir/export.at:195"
9881 $at_failed && at_fn_log_failure
9886 $at_times_p && times >"$at_times_file"
9887 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9888 read at_status <"$at_status_file"
9891 at_fn_group_banner 46 'search-path.at:24' \
9892 "sys_lib_search_path" " " 3
9895 $as_echo "46. $at_setup_line: testing $at_desc ..."
9899 LDFLAGS="$LDFLAGS -no-undefined"
9901 cat >main.c <<'_ATEOF'
9914 $CC $CPPFLAGS $CFLAGS -c main.c
9915 eval `$LIBTOOL --config | $EGREP '^(sys_lib_search_path_spec)='`
9916 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
9918 for path in $sys_lib_search_path; do
9919 if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -L$path -lz
9922 $as_echo "$at_srcdir/search-path.at:47: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT -lz"
9923 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -lz" "search-path.at:47"
9924 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -lz
9925 ) >>"$at_stdout" 2>>"$at_stderr"
9926 at_status=$? at_failed=false
9928 echo stderr:; cat "$at_stderr"
9929 echo stdout:; cat "$at_stdout"
9930 at_fn_check_status 0 $at_status "$at_srcdir/search-path.at:47"
9931 $at_failed && at_fn_log_failure
9939 # If -lz doesn't exist (hello, cross compiler!), we need a dummy test.
9942 $as_echo "$at_srcdir/search-path.at:56: exit 77"
9943 at_fn_check_prepare_trace "search-path.at:56"
9944 ( $at_check_trace; exit 77
9945 ) >>"$at_stdout" 2>>"$at_stderr"
9946 at_status=$? at_failed=false
9948 at_fn_diff_devnull "$at_stderr" || at_failed=:
9949 at_fn_diff_devnull "$at_stdout" || at_failed=:
9950 at_fn_check_status 0 $at_status "$at_srcdir/search-path.at:56"
9951 $at_failed && at_fn_log_failure
9957 $at_times_p && times >"$at_times_file"
9958 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9959 read at_status <"$at_status_file"
9962 at_fn_group_banner 47 'search-path.at:62' \
9963 "sys_lib_search_path on w32" " " 3
9966 $as_echo "47. $at_setup_line: testing $at_desc ..."
9971 # Check if libtool knows the path to system libraries. Using
9972 # a w32 system library since the test is designed to check if
9973 # the libtool handling of the sys_lib_search_path variable is
9976 LDFLAGS="$LDFLAGS -no-undefined"
9978 cat >gc.c <<'_ATEOF'
9979 #include <windows.h>
9980 HCURSOR get_cursor (void)
9982 return GetCursor ();
9987 eval "`$LIBTOOL --config | grep '^build_libtool_libs='`"
9989 $as_echo "$at_srcdir/search-path.at:81: test \"\$build_libtool_libs\" = yes || exit 77"
9990 at_fn_check_prepare_dynamic "test \"$build_libtool_libs\" = yes || exit 77" "search-path.at:81"
9991 ( $at_check_trace; test "$build_libtool_libs" = yes || exit 77
9992 ) >>"$at_stdout" 2>>"$at_stderr"
9993 at_status=$? at_failed=false
9995 at_fn_diff_devnull "$at_stderr" || at_failed=:
9996 at_fn_diff_devnull "$at_stdout" || at_failed=:
9997 at_fn_check_status 0 $at_status "$at_srcdir/search-path.at:81"
9998 $at_failed && at_fn_log_failure
10003 $as_echo "$at_srcdir/search-path.at:83: \$LIBTOOL --mode=compile --tag=CC \\
10004 \$CC \$CPPFLAGS \$CFLAGS -o gc.lo -c gc.c || exit 77"
10005 at_fn_check_prepare_notrace 'an embedded newline' "search-path.at:83"
10006 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC \
10007 $CC $CPPFLAGS $CFLAGS -o gc.lo -c gc.c || exit 77
10008 ) >>"$at_stdout" 2>>"$at_stderr"
10009 at_status=$? at_failed=false
10011 echo stderr:; cat "$at_stderr"
10012 echo stdout:; cat "$at_stdout"
10013 at_fn_check_status 0 $at_status "$at_srcdir/search-path.at:83"
10014 $at_failed && at_fn_log_failure
10018 # Ok, compile was fine, then it should be possible to link too.
10021 $as_echo "$at_srcdir/search-path.at:89: \$LIBTOOL --mode=link --tag=CC --tag=disable-static \\
10022 \$CC \$CFLAGS \$LDFLAGS -o libgc.la gc.lo -rpath /nowhere -luser32"
10023 at_fn_check_prepare_notrace 'an embedded newline' "search-path.at:89"
10024 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC --tag=disable-static \
10025 $CC $CFLAGS $LDFLAGS -o libgc.la gc.lo -rpath /nowhere -luser32
10026 ) >>"$at_stdout" 2>>"$at_stderr"
10027 at_status=$? at_failed=false
10029 echo stderr:; cat "$at_stderr"
10030 echo stdout:; cat "$at_stdout"
10031 at_fn_check_status 0 $at_status "$at_srcdir/search-path.at:89"
10032 $at_failed && at_fn_log_failure
10036 # If -luser32 was found, then libtool will build a shared library,
10037 # otherwise libtool will fall back to creating a static library.
10039 $as_echo "$at_srcdir/search-path.at:95: grep old_library=\\'\\' libgc.la"
10040 at_fn_check_prepare_trace "search-path.at:95"
10041 ( $at_check_trace; grep old_library=\'\' libgc.la
10042 ) >>"$at_stdout" 2>>"$at_stderr"
10043 at_status=$? at_failed=false
10045 at_fn_diff_devnull "$at_stderr" || at_failed=:
10046 echo stdout:; cat "$at_stdout"
10047 at_fn_check_status 0 $at_status "$at_srcdir/search-path.at:95"
10048 $at_failed && at_fn_log_failure
10053 $at_times_p && times >"$at_times_file"
10054 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10055 read at_status <"$at_status_file"
10058 at_fn_group_banner 48 'indirect_deps.at:25' \
10059 "indirect convenience" " " 3
10062 $as_echo "48. $at_setup_line: testing $at_desc ..."
10067 cat >a.c <<'_ATEOF'
10070 int a () { return 0; }
10071 double ad (double x) { return sin (x); }
10074 cat >b.c <<'_ATEOF'
10077 extern double ad (double);
10078 int b () { return a () + (int) ad (0.0); }
10081 cat >c.c <<'_ATEOF'
10084 int c () { return b (); }
10087 cat >m.c <<'_ATEOF'
10090 int main () { return c (); }
10094 LDFLAGS="$LDFLAGS -no-undefined"
10095 for file in a.c b.c c.c; do
10096 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c $file
10098 $CC $CPPFLAGS $CFLAGS -c m.c
10100 # liba is an indirect dependency of libd and of libconv.
10101 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath /nowhere -lm
10102 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libb.la b.lo liba.la -rpath /nowhere
10103 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libconv.la c.lo libb.la
10104 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libd.la libconv.la -rpath /nowhere
10106 for st in '' -static; do
10108 $as_echo "$at_srcdir/indirect_deps.at:60: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS \$st -o m1\$EXEEXT m.\$OBJEXT libd.la"
10109 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1$EXEEXT m.$OBJEXT libd.la" "indirect_deps.at:60"
10110 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1$EXEEXT m.$OBJEXT libd.la
10111 ) >>"$at_stdout" 2>>"$at_stderr"
10112 at_status=$? at_failed=false
10114 echo stderr:; cat "$at_stderr"
10115 echo stdout:; cat "$at_stdout"
10116 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:60"
10117 $at_failed && at_fn_log_failure
10121 $as_echo "$at_srcdir/indirect_deps.at:62: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS \$st -o m2\$EXEEXT m.\$OBJEXT libconv.la"
10122 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2$EXEEXT m.$OBJEXT libconv.la" "indirect_deps.at:62"
10123 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2$EXEEXT m.$OBJEXT libconv.la
10124 ) >>"$at_stdout" 2>>"$at_stderr"
10125 at_status=$? at_failed=false
10127 echo stderr:; cat "$at_stderr"
10128 echo stdout:; cat "$at_stdout"
10129 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:62"
10130 $at_failed && at_fn_log_failure
10133 lt_exe=./m1; if test -f "./m1$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
10135 $as_echo "$at_srcdir/indirect_deps.at:64: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
10136 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "indirect_deps.at:64"
10137 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
10138 ) >>"$at_stdout" 2>>"$at_stderr"
10139 at_status=$? at_failed=false
10141 at_fn_diff_devnull "$at_stderr" || at_failed=:
10142 at_fn_diff_devnull "$at_stdout" || at_failed=:
10143 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:64"
10144 $at_failed && at_fn_log_failure
10148 lt_exe=./m2; if test -f "./m2$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
10150 $as_echo "$at_srcdir/indirect_deps.at:65: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
10151 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "indirect_deps.at:65"
10152 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
10153 ) >>"$at_stdout" 2>>"$at_stderr"
10154 at_status=$? at_failed=false
10156 at_fn_diff_devnull "$at_stderr" || at_failed=:
10157 at_fn_diff_devnull "$at_stdout" || at_failed=:
10158 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:65"
10159 $at_failed && at_fn_log_failure
10166 $at_times_p && times >"$at_times_file"
10167 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10168 read at_status <"$at_status_file"
10171 at_fn_group_banner 49 'indirect_deps.at:71' \
10172 "indirect uninstalled" " " 3
10175 $as_echo "49. $at_setup_line: testing $at_desc ..."
10180 cat >a.c <<'_ATEOF'
10182 int a () { return 0; }
10185 cat >b.c <<'_ATEOF'
10188 int b () { return a (); }
10191 cat >c.c <<'_ATEOF'
10194 int c () { return b (); }
10198 cat >m1.c <<'_ATEOF'
10201 int main () { return b (); }
10204 cat >m2.c <<'_ATEOF'
10207 int main () { return c (); }
10212 LDFLAGS="$LDFLAGS -no-undefined"
10213 for file in a.c b.c c.c; do
10214 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c $file
10216 for file in m1.c m2.c; do
10217 $CC $CPPFLAGS $CFLAGS -c $file
10220 for st in '' -static; do
10221 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o a/liba.la a.lo -rpath /nowherea
10222 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o b/libb.la b.lo a/liba.la -rpath /nowhereb
10223 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o c/libcee.la c.lo b/libb.la -rpath /nowherec
10226 $as_echo "$at_srcdir/indirect_deps.at:109: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS \$st -o m1\$EXEEXT m1.\$OBJEXT b/libb.la"
10227 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1$EXEEXT m1.$OBJEXT b/libb.la" "indirect_deps.at:109"
10228 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m1$EXEEXT m1.$OBJEXT b/libb.la
10229 ) >>"$at_stdout" 2>>"$at_stderr"
10230 at_status=$? at_failed=false
10232 echo stderr:; cat "$at_stderr"
10233 echo stdout:; cat "$at_stdout"
10234 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:109"
10235 $at_failed && at_fn_log_failure
10239 $as_echo "$at_srcdir/indirect_deps.at:111: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS \$st -o m2\$EXEEXT m2.\$OBJEXT c/libcee.la"
10240 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2$EXEEXT m2.$OBJEXT c/libcee.la" "indirect_deps.at:111"
10241 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS $st -o m2$EXEEXT m2.$OBJEXT c/libcee.la
10242 ) >>"$at_stdout" 2>>"$at_stderr"
10243 at_status=$? at_failed=false
10245 echo stderr:; cat "$at_stderr"
10246 echo stdout:; cat "$at_stdout"
10247 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:111"
10248 $at_failed && at_fn_log_failure
10251 lt_exe=./m1; if test -f "./m1$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
10253 $as_echo "$at_srcdir/indirect_deps.at:113: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
10254 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "indirect_deps.at:113"
10255 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
10256 ) >>"$at_stdout" 2>>"$at_stderr"
10257 at_status=$? at_failed=false
10259 at_fn_diff_devnull "$at_stderr" || at_failed=:
10260 at_fn_diff_devnull "$at_stdout" || at_failed=:
10261 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:113"
10262 $at_failed && at_fn_log_failure
10266 lt_exe=./m2; if test -f "./m2$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
10268 $as_echo "$at_srcdir/indirect_deps.at:114: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
10269 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "indirect_deps.at:114"
10270 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
10271 ) >>"$at_stdout" 2>>"$at_stderr"
10272 at_status=$? at_failed=false
10274 at_fn_diff_devnull "$at_stderr" || at_failed=:
10275 at_fn_diff_devnull "$at_stdout" || at_failed=:
10276 at_fn_check_status 0 $at_status "$at_srcdir/indirect_deps.at:114"
10277 $at_failed && at_fn_log_failure
10284 $at_times_p && times >"$at_times_file"
10285 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10286 read at_status <"$at_status_file"
10289 at_fn_group_banner 50 'archive-in-archive.at:26' \
10290 "static library contains static library" " " 3
10292 case $AR in ar-lib\ * | *[/\\]ar-lib\ *) false;; *) :;; esac && at_xfail=yes
10294 $as_echo "50. $at_setup_line: testing $at_desc ..."
10299 # This test passes with MS lib.
10302 cat >foo.c <<'_ATEOF'
10304 int foo() { return 1;}
10308 cat >bar.c <<'_ATEOF'
10310 int bar() { return 1;}
10314 thisdir=`cd . && pwd`
10315 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o foo.lo foo.c
10316 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar.lo bar.c
10317 $LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
10318 -o libfoo.la foo.lo -version-info 1:0:0 -rpath $thisdir
10319 $LIBTOOL --mode=install cp libfoo.la $thisdir
10320 eval `$EGREP '^(old_library)=' < libfoo.la`
10321 libfoo=$old_library
10323 $as_echo "$at_srcdir/archive-in-archive.at:50: \$LIBTOOL --mode=link --tag=CC --tag=disable-shared \$CC \$CFLAGS \$LDFLAGS \\
10324 -o libbar.la bar.lo \$libfoo -version-info 1:0:0 -rpath \$thisdir"
10325 at_fn_check_prepare_notrace 'an embedded newline' "archive-in-archive.at:50"
10326 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
10327 -o libbar.la bar.lo $libfoo -version-info 1:0:0 -rpath $thisdir
10328 ) >>"$at_stdout" 2>>"$at_stderr"
10329 at_status=$? at_failed=false
10331 echo stderr:; cat "$at_stderr"
10332 echo stdout:; cat "$at_stdout"
10333 at_fn_check_status 0 $at_status "$at_srcdir/archive-in-archive.at:50"
10334 $at_failed && at_fn_log_failure
10338 $as_echo "$at_srcdir/archive-in-archive.at:53: \$LIBTOOL --mode=install cp libbar.la \$thisdir"
10339 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp libbar.la $thisdir" "archive-in-archive.at:53"
10340 ( $at_check_trace; $LIBTOOL --mode=install cp libbar.la $thisdir
10341 ) >>"$at_stdout" 2>>"$at_stderr"
10342 at_status=$? at_failed=false
10344 echo stderr:; cat "$at_stderr"
10345 echo stdout:; cat "$at_stdout"
10346 at_fn_check_status 0 $at_status "$at_srcdir/archive-in-archive.at:53"
10347 $at_failed && at_fn_log_failure
10350 eval `$EGREP '^(old_library)=' < libbar.la`
10351 libbar=$old_library
10353 $as_echo "$at_srcdir/archive-in-archive.at:56: \$AR -t \$libbar | grep \$libfoo"
10354 at_fn_check_prepare_notrace 'a shell pipeline' "archive-in-archive.at:56"
10355 ( $at_check_trace; $AR -t $libbar | grep $libfoo
10356 ) >>"$at_stdout" 2>>"$at_stderr"
10357 at_status=$? at_failed=false
10359 echo stderr:; cat "$at_stderr"
10360 echo stdout:; cat "$at_stdout"
10361 at_fn_check_status 1 $at_status "$at_srcdir/archive-in-archive.at:56"
10362 $at_failed && at_fn_log_failure
10366 $as_echo "$at_srcdir/archive-in-archive.at:57: \$AR -t \$libbar | grep foo.\$OBJEXT"
10367 at_fn_check_prepare_notrace 'a shell pipeline' "archive-in-archive.at:57"
10368 ( $at_check_trace; $AR -t $libbar | grep foo.$OBJEXT
10369 ) >>"$at_stdout" 2>>"$at_stderr"
10370 at_status=$? at_failed=false
10372 echo stderr:; cat "$at_stderr"
10373 echo stdout:; cat "$at_stdout"
10374 at_fn_check_status 0 $at_status "$at_srcdir/archive-in-archive.at:57"
10375 $at_failed && at_fn_log_failure
10379 $as_echo "$at_srcdir/archive-in-archive.at:58: \$AR -t \$libbar | grep bar.\$OBJEXT"
10380 at_fn_check_prepare_notrace 'a shell pipeline' "archive-in-archive.at:58"
10381 ( $at_check_trace; $AR -t $libbar | grep bar.$OBJEXT
10382 ) >>"$at_stdout" 2>>"$at_stderr"
10383 at_status=$? at_failed=false
10385 echo stderr:; cat "$at_stderr"
10386 echo stdout:; cat "$at_stdout"
10387 at_fn_check_status 0 $at_status "$at_srcdir/archive-in-archive.at:58"
10388 $at_failed && at_fn_log_failure
10392 $at_times_p && times >"$at_times_file"
10393 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10394 read at_status <"$at_status_file"
10397 at_fn_group_banner 51 'exeext.at:26' \
10398 "both of -o prog and -o prog\$EXEEXT work" " " 3
10401 $as_echo "51. $at_setup_line: testing $at_desc ..."
10407 $as_echo "$at_srcdir/exeext.at:29: test -n \"\$EXEEXT\" || exit 77"
10408 at_fn_check_prepare_dynamic "test -n \"$EXEEXT\" || exit 77" "exeext.at:29"
10409 ( $at_check_trace; test -n "$EXEEXT" || exit 77
10410 ) >>"$at_stdout" 2>>"$at_stderr"
10411 at_status=$? at_failed=false
10413 at_fn_diff_devnull "$at_stderr" || at_failed=:
10414 at_fn_diff_devnull "$at_stdout" || at_failed=:
10415 at_fn_check_status 0 $at_status "$at_srcdir/exeext.at:29"
10416 $at_failed && at_fn_log_failure
10421 binext=`pwd`/binext
10422 mkdir src $bin srcext $binext
10424 cat >src/prog.c <<'_ATEOF'
10426 int main(void) { return 0; }
10430 $CC $CPPFLAGS $CFLAGS -c src/prog.c -o src/prog.$OBJEXT
10433 $as_echo "$at_srcdir/exeext.at:42: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o src/prog src/prog.\$OBJEXT"
10434 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/prog src/prog.$OBJEXT" "exeext.at:42"
10435 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/prog src/prog.$OBJEXT
10436 ) >>"$at_stdout" 2>>"$at_stderr"
10437 at_status=$? at_failed=false
10439 echo stderr:; cat "$at_stderr"
10440 echo stdout:; cat "$at_stdout"
10441 at_fn_check_status 0 $at_status "$at_srcdir/exeext.at:42"
10442 $at_failed && at_fn_log_failure
10446 $as_echo "$at_srcdir/exeext.at:44: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o srcext/prog\$EXEEXT src/prog.\$OBJEXT"
10447 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o srcext/prog$EXEEXT src/prog.$OBJEXT" "exeext.at:44"
10448 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o srcext/prog$EXEEXT src/prog.$OBJEXT
10449 ) >>"$at_stdout" 2>>"$at_stderr"
10450 at_status=$? at_failed=false
10452 echo stderr:; cat "$at_stderr"
10453 echo stdout:; cat "$at_stdout"
10454 at_fn_check_status 0 $at_status "$at_srcdir/exeext.at:44"
10455 $at_failed && at_fn_log_failure
10459 $LIBTOOL --mode=install cp src/prog $bin/prog
10460 $LIBTOOL --mode=install cp srcext/prog$EXEEXT $binext/prog$EXEEXT
10462 lt_exe=$bin/prog; if test -f "$bin/prog$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
10464 $as_echo "$at_srcdir/exeext.at:50: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
10465 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "exeext.at:50"
10466 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
10467 ) >>"$at_stdout" 2>>"$at_stderr"
10468 at_status=$? at_failed=false
10470 at_fn_diff_devnull "$at_stderr" || at_failed=:
10471 at_fn_diff_devnull "$at_stdout" || at_failed=:
10472 at_fn_check_status 0 $at_status "$at_srcdir/exeext.at:50"
10473 $at_failed && at_fn_log_failure
10477 lt_exe=$binext/prog$EXEEXT; if test -f "$binext/prog$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
10479 $as_echo "$at_srcdir/exeext.at:51: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
10480 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "exeext.at:51"
10481 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
10482 ) >>"$at_stdout" 2>>"$at_stderr"
10483 at_status=$? at_failed=false
10485 at_fn_diff_devnull "$at_stderr" || at_failed=:
10486 at_fn_diff_devnull "$at_stdout" || at_failed=:
10487 at_fn_check_status 0 $at_status "$at_srcdir/exeext.at:51"
10488 $at_failed && at_fn_log_failure
10494 $at_times_p && times >"$at_times_file"
10495 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10496 read at_status <"$at_status_file"
10499 at_fn_group_banner 52 'execute-mode.at:25' \
10500 "execute mode" " " 3
10503 $as_echo "52. $at_setup_line: testing $at_desc ..."
10508 eval `$LIBTOOL --config | $EGREP '^(FGREP)='`
10510 cat >foo <<'_ATEOF'
10512 if test $# -gt 0; then
10515 printf %s\\n "$arg"
10523 cat >lt-wrapper <<'_ATEOF'
10525 # Generated by GNU libtool.
10526 # fake wrapper script.
10529 if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
10530 # Run the actual program with our arguments.
10531 exec "$progdir/$program" ${1+"$@"}
10532 echo "$0: cannot exec $program $*" >&2
10538 cat >lt-real <<'_ATEOF'
10542 printf %s\\n "$arg"
10548 cat >libfakelib.la <<'_ATEOF'
10549 # libfakelib.la - a libtool library file
10550 # Generated by ltmain.sh (GNU libtool 1.2605 2008/03/04 22:31:32) 2.3a
10552 # Please DO NOT delete this file!
10553 # It is necessary for linking the library.
10557 old_library='libfakelib.a'
10558 inherited_linker_flags=''
10560 weak_library_names=''
10574 chmod +x foo sub/foo lt-wrapper lt-real
10576 cat >liba.c <<'_ATEOF'
10577 int a () { return 0; }
10581 cat >main.c <<'_ATEOF'
10584 int main (int argc, char **argv)
10587 for (i=1; i<argc; ++i)
10590 fputc ('\n', stdout);
10591 fputs (argv[i], stdout);
10593 fputc ('\n', stdout);
10599 LDFLAGS="$LDFLAGS -no-undefined"
10601 libdir=$instdir/lib
10604 $as_echo "$at_srcdir/execute-mode.at:117: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c liba.c"
10605 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c" "execute-mode.at:117"
10606 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c
10607 ) >>"$at_stdout" 2>>"$at_stderr"
10608 at_status=$? at_failed=false
10610 echo stderr:; cat "$at_stderr"
10611 echo stdout:; cat "$at_stdout"
10612 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:117"
10613 $at_failed && at_fn_log_failure
10617 $as_echo "$at_srcdir/execute-mode.at:119: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la -rpath \$libdir liba.lo"
10618 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la -rpath $libdir liba.lo" "execute-mode.at:119"
10619 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la -rpath $libdir liba.lo
10620 ) >>"$at_stdout" 2>>"$at_stderr"
10621 at_status=$? at_failed=false
10623 echo stderr:; cat "$at_stderr"
10624 echo stdout:; cat "$at_stdout"
10625 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:119"
10626 $at_failed && at_fn_log_failure
10630 $as_echo "$at_srcdir/execute-mode.at:121: \$CC \$CPPFLAGS \$CFLAGS -c main.c"
10631 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c" "execute-mode.at:121"
10632 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c
10633 ) >>"$at_stdout" 2>>"$at_stderr"
10634 at_status=$? at_failed=false
10636 echo stderr:; cat "$at_stderr"
10637 echo stdout:; cat "$at_stdout"
10638 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:121"
10639 $at_failed && at_fn_log_failure
10643 $as_echo "$at_srcdir/execute-mode.at:123: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT liba.la"
10644 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la" "execute-mode.at:123"
10645 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la
10646 ) >>"$at_stdout" 2>>"$at_stderr"
10647 at_status=$? at_failed=false
10649 echo stderr:; cat "$at_stderr"
10650 echo stdout:; cat "$at_stdout"
10651 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:123"
10652 $at_failed && at_fn_log_failure
10656 # end of preparatory blurb.
10657 # Now, when doing the tests, we both try the fake wrappers plus the real one
10658 # (only the latter exposes the C wrappers used for w32 systems).
10659 # With the latter, however, we need to ignore additional output; esp. wine
10660 # may be rather noisy.
10663 $as_echo "$at_srcdir/execute-mode.at:132: \$LIBTOOL --mode=execute ./foo"
10664 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./foo" "execute-mode.at:132"
10665 ( $at_check_trace; $LIBTOOL --mode=execute ./foo
10666 ) >>"$at_stdout" 2>>"$at_stderr"
10667 at_status=$? at_failed=false
10669 at_fn_diff_devnull "$at_stderr" || at_failed=:
10670 at_fn_diff_devnull "$at_stdout" || at_failed=:
10671 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:132"
10672 $at_failed && at_fn_log_failure
10676 $as_echo "$at_srcdir/execute-mode.at:133: \$LIBTOOL --mode=execute sub/foo"
10677 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute sub/foo" "execute-mode.at:133"
10678 ( $at_check_trace; $LIBTOOL --mode=execute sub/foo
10679 ) >>"$at_stdout" 2>>"$at_stderr"
10680 at_status=$? at_failed=false
10682 at_fn_diff_devnull "$at_stderr" || at_failed=:
10683 at_fn_diff_devnull "$at_stdout" || at_failed=:
10684 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:133"
10685 $at_failed && at_fn_log_failure
10689 $as_echo "$at_srcdir/execute-mode.at:134: \$LIBTOOL --mode=execute ./foo foo"
10690 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./foo foo" "execute-mode.at:134"
10691 ( $at_check_trace; $LIBTOOL --mode=execute ./foo foo
10692 ) >>"$at_stdout" 2>>"$at_stderr"
10693 at_status=$? at_failed=false
10695 at_fn_diff_devnull "$at_stderr" || at_failed=:
10696 echo >>"$at_stdout"; $as_echo "foo
10698 $at_diff - "$at_stdout" || at_failed=:
10699 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:134"
10700 $at_failed && at_fn_log_failure
10704 $as_echo "$at_srcdir/execute-mode.at:136: \$LIBTOOL --mode=execute ./lt-wrapper foo </dev/null"
10705 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./lt-wrapper foo </dev/null" "execute-mode.at:136"
10706 ( $at_check_trace; $LIBTOOL --mode=execute ./lt-wrapper foo </dev/null
10707 ) >>"$at_stdout" 2>>"$at_stderr"
10708 at_status=$? at_failed=false
10710 at_fn_diff_devnull "$at_stderr" || at_failed=:
10711 echo >>"$at_stdout"; $as_echo "foo
10713 $at_diff - "$at_stdout" || at_failed=:
10714 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:136"
10715 $at_failed && at_fn_log_failure
10719 $as_echo "$at_srcdir/execute-mode.at:138: cd sub && \$LIBTOOL --mode=execute ./foo ../foo"
10720 at_fn_check_prepare_dynamic "cd sub && $LIBTOOL --mode=execute ./foo ../foo" "execute-mode.at:138"
10721 ( $at_check_trace; cd sub && $LIBTOOL --mode=execute ./foo ../foo
10722 ) >>"$at_stdout" 2>>"$at_stderr"
10723 at_status=$? at_failed=false
10725 at_fn_diff_devnull "$at_stderr" || at_failed=:
10726 echo >>"$at_stdout"; $as_echo "../foo
10728 $at_diff - "$at_stdout" || at_failed=:
10729 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:138"
10730 $at_failed && at_fn_log_failure
10733 # suppose that ./foo is gdb, and lt-wrapper is the wrapper script.
10735 $as_echo "$at_srcdir/execute-mode.at:141: \$LIBTOOL --mode=execute ./foo lt-wrapper bar baz </dev/null"
10736 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./foo lt-wrapper bar baz </dev/null" "execute-mode.at:141"
10737 ( $at_check_trace; $LIBTOOL --mode=execute ./foo lt-wrapper bar baz </dev/null
10738 ) >>"$at_stdout" 2>>"$at_stderr"
10739 at_status=$? at_failed=false
10741 at_fn_diff_devnull "$at_stderr" || at_failed=:
10742 echo >>"$at_stdout"; $as_echo "./lt-real
10746 $at_diff - "$at_stdout" || at_failed=:
10747 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:141"
10748 $at_failed && at_fn_log_failure
10752 # check that stdin works even with -dlopen.
10754 $as_echo "$at_srcdir/execute-mode.at:148: echo bar | \$LIBTOOL --mode=execute -dlopen libfakelib.la ./lt-wrapper foo"
10755 at_fn_check_prepare_notrace 'a shell pipeline' "execute-mode.at:148"
10756 ( $at_check_trace; echo bar | $LIBTOOL --mode=execute -dlopen libfakelib.la ./lt-wrapper foo
10757 ) >>"$at_stdout" 2>>"$at_stderr"
10758 at_status=$? at_failed=false
10760 at_fn_diff_devnull "$at_stderr" || at_failed=:
10761 echo >>"$at_stdout"; $as_echo "foo
10764 $at_diff - "$at_stdout" || at_failed=:
10765 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:148"
10766 $at_failed && at_fn_log_failure
10770 # Check that a missing real program causes an error.
10771 # The error message and code are likely to be 126,
10772 # "No such file or directory" but system-dependent.
10773 mv -f lt-real lt-backup
10775 $as_echo "$at_srcdir/execute-mode.at:157: \$LIBTOOL --mode=execute ./lt-wrapper foo </dev/null || exit 1"
10776 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./lt-wrapper foo </dev/null || exit 1" "execute-mode.at:157"
10777 ( $at_check_trace; $LIBTOOL --mode=execute ./lt-wrapper foo </dev/null || exit 1
10778 ) >>"$at_stdout" 2>>"$at_stderr"
10779 at_status=$? at_failed=false
10781 echo stderr:; cat "$at_stderr"
10782 echo stdout:; cat "$at_stdout"
10783 at_fn_check_status 1 $at_status "$at_srcdir/execute-mode.at:157"
10784 $at_failed && at_fn_log_failure
10787 mv -f lt-backup lt-real
10789 # Now use arguments that require decent quoting.
10791 $as_echo "$at_srcdir/execute-mode.at:162: \$LIBTOOL --mode=execute ./foo \"arg with special chars: \\\$!&*\\\`'()\""
10792 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:162"
10793 ( $at_check_trace; $LIBTOOL --mode=execute ./foo "arg with special chars: \$!&*\`'()"
10794 ) >>"$at_stdout" 2>>"$at_stderr"
10795 at_status=$? at_failed=false
10797 at_fn_diff_devnull "$at_stderr" || at_failed=:
10798 echo >>"$at_stdout"; $as_echo "arg with special chars: \$!&*\`'()
10800 $at_diff - "$at_stdout" || at_failed=:
10801 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:162"
10802 $at_failed && at_fn_log_failure
10806 $as_echo "$at_srcdir/execute-mode.at:165: \$LIBTOOL --mode=execute ./lt-wrapper \"arg with special chars: \\\$!&*\\\`'()\" </dev/null"
10807 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:165"
10808 ( $at_check_trace; $LIBTOOL --mode=execute ./lt-wrapper "arg with special chars: \$!&*\`'()" </dev/null
10809 ) >>"$at_stdout" 2>>"$at_stderr"
10810 at_status=$? at_failed=false
10812 at_fn_diff_devnull "$at_stderr" || at_failed=:
10813 echo >>"$at_stdout"; $as_echo "arg with special chars: \$!&*\`'()
10815 $at_diff - "$at_stdout" || at_failed=:
10816 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:165"
10817 $at_failed && at_fn_log_failure
10821 $as_echo "$at_srcdir/execute-mode.at:168: \$LIBTOOL --mode=execute ./foo lt-wrapper \"arg with special chars: \\\$!&*\\\`'()\""
10822 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:168"
10823 ( $at_check_trace; $LIBTOOL --mode=execute ./foo lt-wrapper "arg with special chars: \$!&*\`'()"
10824 ) >>"$at_stdout" 2>>"$at_stderr"
10825 at_status=$? at_failed=false
10827 at_fn_diff_devnull "$at_stderr" || at_failed=:
10828 echo >>"$at_stdout"; $as_echo "./lt-real
10829 arg with special chars: \$!&*\`'()
10831 $at_diff - "$at_stdout" || at_failed=:
10832 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:168"
10833 $at_failed && at_fn_log_failure
10836 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
10838 $as_echo "$at_srcdir/execute-mode.at:172: if \$LIBTOOL --mode=execute \"\$lt_exe\" \"arg with special chars: \\\$!&*\\\`'()\"; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
10839 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:172"
10840 ( $at_check_trace; if $LIBTOOL --mode=execute "$lt_exe" "arg with special chars: \$!&*\`'()"; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
10841 ) >>"$at_stdout" 2>>"$at_stderr"
10842 at_status=$? at_failed=false
10844 echo stderr:; cat "$at_stderr"
10845 echo stdout:; tee stdout <"$at_stdout"
10846 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:172"
10847 $at_failed && at_fn_log_failure
10852 $as_echo "$at_srcdir/execute-mode.at:174: \$FGREP 'arg with special chars: \$!&*\`'\\''()' stdout"
10853 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:174"
10854 ( $at_check_trace; $FGREP 'arg with special chars: $!&*`'\''()' stdout
10855 ) >>"$at_stdout" 2>>"$at_stderr"
10856 at_status=$? at_failed=false
10858 at_fn_diff_devnull "$at_stderr" || at_failed=:
10859 echo stdout:; cat "$at_stdout"
10860 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:174"
10861 $at_failed && at_fn_log_failure
10865 # We always pair two args. The first one is never the empty string.
10872 'd\\\"e' 'f\\\"g' \
10880 if test -z "$arg1"; then
10881 arg1=$arg2; continue
10884 $as_echo "$at_srcdir/execute-mode.at:194: \$LIBTOOL --mode=execute ./foo abc \"\$arg1\" \"\$arg2\" xyz"
10885 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./foo abc \"$arg1\" \"$arg2\" xyz" "execute-mode.at:194"
10886 ( $at_check_trace; $LIBTOOL --mode=execute ./foo abc "$arg1" "$arg2" xyz
10887 ) >>"$at_stdout" 2>>"$at_stderr"
10888 at_status=$? at_failed=false
10890 echo stderr:; cat "$at_stderr"
10891 echo stdout:; tee stdout <"$at_stdout"
10892 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:194"
10893 $at_failed && at_fn_log_failure
10897 $as_echo "$at_srcdir/execute-mode.at:195: \$FGREP \"\$arg1\" stdout"
10898 at_fn_check_prepare_dynamic "$FGREP \"$arg1\" stdout" "execute-mode.at:195"
10899 ( $at_check_trace; $FGREP "$arg1" stdout
10900 ) >>"$at_stdout" 2>>"$at_stderr"
10901 at_status=$? at_failed=false
10903 at_fn_diff_devnull "$at_stderr" || at_failed=:
10904 echo stdout:; cat "$at_stdout"
10905 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:195"
10906 $at_failed && at_fn_log_failure
10910 $as_echo "$at_srcdir/execute-mode.at:196: test -z \"\$arg2\" || \$FGREP \"\$arg2\" stdout"
10911 at_fn_check_prepare_dynamic "test -z \"$arg2\" || $FGREP \"$arg2\" stdout" "execute-mode.at:196"
10912 ( $at_check_trace; test -z "$arg2" || $FGREP "$arg2" stdout
10913 ) >>"$at_stdout" 2>>"$at_stderr"
10914 at_status=$? at_failed=false
10916 at_fn_diff_devnull "$at_stderr" || at_failed=:
10917 echo stdout:; cat "$at_stdout"
10918 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:196"
10919 $at_failed && at_fn_log_failure
10923 $as_echo "$at_srcdir/execute-mode.at:197: test \`sed -n '/^abc\$/,/^xyz\$/p' stdout | wc -l\` -eq 4"
10924 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:197"
10925 ( $at_check_trace; test `sed -n '/^abc$/,/^xyz$/p' stdout | wc -l` -eq 4
10926 ) >>"$at_stdout" 2>>"$at_stderr"
10927 at_status=$? at_failed=false
10929 at_fn_diff_devnull "$at_stderr" || at_failed=:
10930 at_fn_diff_devnull "$at_stdout" || at_failed=:
10931 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:197"
10932 $at_failed && at_fn_log_failure
10936 $as_echo "$at_srcdir/execute-mode.at:198: \$LIBTOOL --mode=execute ./lt-wrapper abc \"\$arg1\" \"\$arg2\" xyz </dev/null"
10937 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./lt-wrapper abc \"$arg1\" \"$arg2\" xyz </dev/null" "execute-mode.at:198"
10938 ( $at_check_trace; $LIBTOOL --mode=execute ./lt-wrapper abc "$arg1" "$arg2" xyz </dev/null
10939 ) >>"$at_stdout" 2>>"$at_stderr"
10940 at_status=$? at_failed=false
10942 at_fn_diff_devnull "$at_stderr" || at_failed=:
10943 echo stdout:; tee stdout <"$at_stdout"
10944 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:198"
10945 $at_failed && at_fn_log_failure
10949 $as_echo "$at_srcdir/execute-mode.at:199: \$FGREP \"\$arg1\" stdout"
10950 at_fn_check_prepare_dynamic "$FGREP \"$arg1\" stdout" "execute-mode.at:199"
10951 ( $at_check_trace; $FGREP "$arg1" stdout
10952 ) >>"$at_stdout" 2>>"$at_stderr"
10953 at_status=$? at_failed=false
10955 at_fn_diff_devnull "$at_stderr" || at_failed=:
10956 echo stdout:; cat "$at_stdout"
10957 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:199"
10958 $at_failed && at_fn_log_failure
10962 $as_echo "$at_srcdir/execute-mode.at:200: test -z \"\$arg2\" || \$FGREP \"\$arg2\" stdout"
10963 at_fn_check_prepare_dynamic "test -z \"$arg2\" || $FGREP \"$arg2\" stdout" "execute-mode.at:200"
10964 ( $at_check_trace; test -z "$arg2" || $FGREP "$arg2" stdout
10965 ) >>"$at_stdout" 2>>"$at_stderr"
10966 at_status=$? at_failed=false
10968 at_fn_diff_devnull "$at_stderr" || at_failed=:
10969 echo stdout:; cat "$at_stdout"
10970 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:200"
10971 $at_failed && at_fn_log_failure
10975 $as_echo "$at_srcdir/execute-mode.at:201: test \`sed -n '/^abc\$/,/^xyz\$/p' stdout | wc -l\` -eq 4"
10976 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:201"
10977 ( $at_check_trace; test `sed -n '/^abc$/,/^xyz$/p' stdout | wc -l` -eq 4
10978 ) >>"$at_stdout" 2>>"$at_stderr"
10979 at_status=$? at_failed=false
10981 at_fn_diff_devnull "$at_stderr" || at_failed=:
10982 at_fn_diff_devnull "$at_stdout" || at_failed=:
10983 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:201"
10984 $at_failed && at_fn_log_failure
10988 $as_echo "$at_srcdir/execute-mode.at:202: \$LIBTOOL --mode=execute ./foo lt-wrapper abc \"\$arg1\" \"\$arg2\" xyz"
10989 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./foo lt-wrapper abc \"$arg1\" \"$arg2\" xyz" "execute-mode.at:202"
10990 ( $at_check_trace; $LIBTOOL --mode=execute ./foo lt-wrapper abc "$arg1" "$arg2" xyz
10991 ) >>"$at_stdout" 2>>"$at_stderr"
10992 at_status=$? at_failed=false
10994 at_fn_diff_devnull "$at_stderr" || at_failed=:
10995 echo stdout:; tee stdout <"$at_stdout"
10996 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:202"
10997 $at_failed && at_fn_log_failure
11001 $as_echo "$at_srcdir/execute-mode.at:203: \$FGREP \"\$arg1\" stdout"
11002 at_fn_check_prepare_dynamic "$FGREP \"$arg1\" stdout" "execute-mode.at:203"
11003 ( $at_check_trace; $FGREP "$arg1" stdout
11004 ) >>"$at_stdout" 2>>"$at_stderr"
11005 at_status=$? at_failed=false
11007 at_fn_diff_devnull "$at_stderr" || at_failed=:
11008 echo stdout:; cat "$at_stdout"
11009 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:203"
11010 $at_failed && at_fn_log_failure
11014 $as_echo "$at_srcdir/execute-mode.at:204: test -z \"\$arg2\" || \$FGREP \"\$arg2\" stdout"
11015 at_fn_check_prepare_dynamic "test -z \"$arg2\" || $FGREP \"$arg2\" stdout" "execute-mode.at:204"
11016 ( $at_check_trace; test -z "$arg2" || $FGREP "$arg2" stdout
11017 ) >>"$at_stdout" 2>>"$at_stderr"
11018 at_status=$? at_failed=false
11020 at_fn_diff_devnull "$at_stderr" || at_failed=:
11021 echo stdout:; cat "$at_stdout"
11022 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:204"
11023 $at_failed && at_fn_log_failure
11027 $as_echo "$at_srcdir/execute-mode.at:205: test \`sed -n '/^abc\$/,/^xyz\$/p' stdout | wc -l\` -eq 4"
11028 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:205"
11029 ( $at_check_trace; test `sed -n '/^abc$/,/^xyz$/p' stdout | wc -l` -eq 4
11030 ) >>"$at_stdout" 2>>"$at_stderr"
11031 at_status=$? at_failed=false
11033 at_fn_diff_devnull "$at_stderr" || at_failed=:
11034 at_fn_diff_devnull "$at_stdout" || at_failed=:
11035 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:205"
11036 $at_failed && at_fn_log_failure
11040 $as_echo "$at_srcdir/execute-mode.at:206: \$LIBTOOL --mode=execute ./main\$EXEEXT abc \"\$arg1\" \"\$arg2\" xyz"
11041 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute ./main$EXEEXT abc \"$arg1\" \"$arg2\" xyz" "execute-mode.at:206"
11042 ( $at_check_trace; $LIBTOOL --mode=execute ./main$EXEEXT abc "$arg1" "$arg2" xyz
11043 ) >>"$at_stdout" 2>>"$at_stderr"
11044 at_status=$? at_failed=false
11046 at_fn_diff_devnull "$at_stderr" || at_failed=:
11047 echo stdout:; tee stdout <"$at_stdout"
11048 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:206"
11049 $at_failed && at_fn_log_failure
11053 $as_echo "$at_srcdir/execute-mode.at:207: \$FGREP \"\$arg1\" stdout"
11054 at_fn_check_prepare_dynamic "$FGREP \"$arg1\" stdout" "execute-mode.at:207"
11055 ( $at_check_trace; $FGREP "$arg1" stdout
11056 ) >>"$at_stdout" 2>>"$at_stderr"
11057 at_status=$? at_failed=false
11059 at_fn_diff_devnull "$at_stderr" || at_failed=:
11060 echo stdout:; cat "$at_stdout"
11061 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:207"
11062 $at_failed && at_fn_log_failure
11066 $as_echo "$at_srcdir/execute-mode.at:208: test -z \"\$arg2\" || \$FGREP \"\$arg2\" stdout"
11067 at_fn_check_prepare_dynamic "test -z \"$arg2\" || $FGREP \"$arg2\" stdout" "execute-mode.at:208"
11068 ( $at_check_trace; test -z "$arg2" || $FGREP "$arg2" stdout
11069 ) >>"$at_stdout" 2>>"$at_stderr"
11070 at_status=$? at_failed=false
11072 at_fn_diff_devnull "$at_stderr" || at_failed=:
11073 echo stdout:; cat "$at_stdout"
11074 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:208"
11075 $at_failed && at_fn_log_failure
11078 # Do not match EOL here, cross setups may have an extra \r here.
11080 $as_echo "$at_srcdir/execute-mode.at:210: test \`sed -n '/^abc/,/^xyz/p' stdout | wc -l\` -eq 4"
11081 at_fn_check_prepare_notrace 'a `...` command substitution' "execute-mode.at:210"
11082 ( $at_check_trace; test `sed -n '/^abc/,/^xyz/p' stdout | wc -l` -eq 4
11083 ) >>"$at_stdout" 2>>"$at_stderr"
11084 at_status=$? at_failed=false
11086 at_fn_diff_devnull "$at_stderr" || at_failed=:
11087 at_fn_diff_devnull "$at_stdout" || at_failed=:
11088 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:210"
11089 $at_failed && at_fn_log_failure
11095 # Check that .la files are not transformed by the wrapper searching loop.
11097 $as_echo "$at_srcdir/execute-mode.at:215: \$LIBTOOL --mode=execute echo ./main\$EXEEXT liba.lo libfakelib.la"
11098 at_fn_check_prepare_dynamic "$LIBTOOL --mode=execute echo ./main$EXEEXT liba.lo libfakelib.la" "execute-mode.at:215"
11099 ( $at_check_trace; $LIBTOOL --mode=execute echo ./main$EXEEXT liba.lo libfakelib.la
11100 ) >>"$at_stdout" 2>>"$at_stderr"
11101 at_status=$? at_failed=false
11103 at_fn_diff_devnull "$at_stderr" || at_failed=:
11104 echo stdout:; tee stdout <"$at_stdout"
11105 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:215"
11106 $at_failed && at_fn_log_failure
11109 # This could be .libs/lt-main or similar (or just plain `main').
11111 $as_echo "$at_srcdir/execute-mode.at:217: grep main stdout"
11112 at_fn_check_prepare_trace "execute-mode.at:217"
11113 ( $at_check_trace; grep main stdout
11114 ) >>"$at_stdout" 2>>"$at_stderr"
11115 at_status=$? at_failed=false
11117 at_fn_diff_devnull "$at_stderr" || at_failed=:
11118 echo stdout:; cat "$at_stdout"
11119 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:217"
11120 $at_failed && at_fn_log_failure
11124 $as_echo "$at_srcdir/execute-mode.at:218: grep liba.lo stdout"
11125 at_fn_check_prepare_trace "execute-mode.at:218"
11126 ( $at_check_trace; grep liba.lo stdout
11127 ) >>"$at_stdout" 2>>"$at_stderr"
11128 at_status=$? at_failed=false
11130 at_fn_diff_devnull "$at_stderr" || at_failed=:
11131 echo stdout:; cat "$at_stdout"
11132 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:218"
11133 $at_failed && at_fn_log_failure
11137 $as_echo "$at_srcdir/execute-mode.at:219: grep libfakelib.la stdout"
11138 at_fn_check_prepare_trace "execute-mode.at:219"
11139 ( $at_check_trace; grep libfakelib.la stdout
11140 ) >>"$at_stdout" 2>>"$at_stderr"
11141 at_status=$? at_failed=false
11143 at_fn_diff_devnull "$at_stderr" || at_failed=:
11144 echo stdout:; cat "$at_stdout"
11145 at_fn_check_status 0 $at_status "$at_srcdir/execute-mode.at:219"
11146 $at_failed && at_fn_log_failure
11151 $at_times_p && times >"$at_times_file"
11152 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11153 read at_status <"$at_status_file"
11156 at_fn_group_banner 53 'bindir.at:64' \
11157 "bindir basic lib test" " " 3
11160 $as_echo "53. $at_setup_line: testing $at_desc ..."
11166 cygwin*|mingw*|cegcc*)
11174 # These routines save the PATH before a test and restore it after,
11175 # prepending a chosen directory to the path on the platforms where
11176 # -bindir is needed after saving.
11179 func_save_and_prepend_path ()
11182 if $bindirneeded ; then
11188 func_restore_path ()
11194 cat >foo.c <<'_ATEOF'
11200 cat >baz.c <<'_ATEOF'
11204 int baz (void) { return x;}
11208 cat >bar.c <<'_ATEOF'
11210 extern int baz (void);
11213 int bar (void) { return y + baz ();}
11217 cat >main.c <<'_ATEOF'
11219 #include <stdlib.h>
11220 extern int baz (void);
11221 extern int bar (void);
11223 if (baz () + bar () - 25) abort ();
11231 eval "`$LIBTOOL --config | grep '^objdir='`"
11234 $as_echo "$at_srcdir/bindir.at:127: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o foo.lo \$CPPFLAGS \$CFLAGS foo.c"
11235 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS foo.c" "bindir.at:127"
11236 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS foo.c
11237 ) >>"$at_stdout" 2>>"$at_stderr"
11238 at_status=$? at_failed=false
11240 echo stderr:; cat "$at_stderr"
11241 echo stdout:; cat "$at_stdout"
11242 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:127"
11243 $at_failed && at_fn_log_failure
11247 $as_echo "$at_srcdir/bindir.at:128: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o baz.lo \$CPPFLAGS \$CFLAGS baz.c"
11248 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS baz.c" "bindir.at:128"
11249 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS baz.c
11250 ) >>"$at_stdout" 2>>"$at_stderr"
11251 at_status=$? at_failed=false
11253 echo stderr:; cat "$at_stderr"
11254 echo stdout:; cat "$at_stdout"
11255 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:128"
11256 $at_failed && at_fn_log_failure
11260 $as_echo "$at_srcdir/bindir.at:129: \$LIBTOOL --mode=link --tag=CC \$CC -no-undefined -o libfoo.la \$CPPFLAGS \$CFLAGS \$LDFLAGS foo.lo baz.lo -rpath \$curdir/\$objdir"
11261 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -no-undefined -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS foo.lo baz.lo -rpath $curdir/$objdir" "bindir.at:129"
11262 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -no-undefined -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS foo.lo baz.lo -rpath $curdir/$objdir
11263 ) >>"$at_stdout" 2>>"$at_stderr"
11264 at_status=$? at_failed=false
11266 echo stderr:; cat "$at_stderr"
11267 echo stdout:; cat "$at_stdout"
11268 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:129"
11269 $at_failed && at_fn_log_failure
11274 $as_echo "$at_srcdir/bindir.at:131: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o bar.lo \$CPPFLAGS \$CFLAGS bar.c"
11275 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS bar.c" "bindir.at:131"
11276 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS bar.c
11277 ) >>"$at_stdout" 2>>"$at_stderr"
11278 at_status=$? at_failed=false
11280 echo stderr:; cat "$at_stderr"
11281 echo stdout:; cat "$at_stdout"
11282 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:131"
11283 $at_failed && at_fn_log_failure
11287 $as_echo "$at_srcdir/bindir.at:132: \$LIBTOOL --mode=link --tag=CC \$CC -no-undefined -o libbar.la \$CPPFLAGS \$CFLAGS \$LDFLAGS bar.lo libfoo.la -rpath \$curdir/\$objdir"
11288 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -no-undefined -o libbar.la $CPPFLAGS $CFLAGS $LDFLAGS bar.lo libfoo.la -rpath $curdir/$objdir" "bindir.at:132"
11289 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -no-undefined -o libbar.la $CPPFLAGS $CFLAGS $LDFLAGS bar.lo libfoo.la -rpath $curdir/$objdir
11290 ) >>"$at_stdout" 2>>"$at_stderr"
11291 at_status=$? at_failed=false
11293 echo stderr:; cat "$at_stderr"
11294 echo stdout:; cat "$at_stdout"
11295 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:132"
11296 $at_failed && at_fn_log_failure
11301 $as_echo "$at_srcdir/bindir.at:134: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o main.lo \$CPPFLAGS \$CFLAGS main.c"
11302 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS main.c" "bindir.at:134"
11303 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS main.c
11304 ) >>"$at_stdout" 2>>"$at_stderr"
11305 at_status=$? at_failed=false
11307 echo stderr:; cat "$at_stderr"
11308 echo stdout:; cat "$at_stdout"
11309 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:134"
11310 $at_failed && at_fn_log_failure
11314 $as_echo "$at_srcdir/bindir.at:135: \$LIBTOOL --mode=link --tag=CC \$CC -o main\$EXEEXT \$CPPFLAGS \$CFLAGS \$LDFLAGS main.lo libbar.la libfoo.la"
11315 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS main.lo libbar.la libfoo.la" "bindir.at:135"
11316 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS main.lo libbar.la libfoo.la
11317 ) >>"$at_stdout" 2>>"$at_stderr"
11318 at_status=$? at_failed=false
11320 echo stderr:; cat "$at_stderr"
11321 echo stdout:; cat "$at_stdout"
11322 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:135"
11323 $at_failed && at_fn_log_failure
11327 # Check both static and shared versions run. We don't install them
11328 # here, that will be covered by the later tests; we've rpath'd things
11329 # so that they can all be run in situ.
11331 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
11333 $as_echo "$at_srcdir/bindir.at:141: if \$LIBTOOL --mode=execute \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
11334 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "bindir.at:141"
11335 ( $at_check_trace; if $LIBTOOL --mode=execute "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
11336 ) >>"$at_stdout" 2>>"$at_stderr"
11337 at_status=$? at_failed=false
11339 at_fn_diff_devnull "$at_stderr" || at_failed=:
11340 at_fn_diff_devnull "$at_stdout" || at_failed=:
11341 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:141"
11342 $at_failed && at_fn_log_failure
11347 # Ensure libraries can be found on PATH, if we are on one
11348 # of the affected platforms, before testing the shared version.
11350 func_save_and_prepend_path $curdir/$objdir
11352 lt_exe=$objdir/main; if test -f "$objdir/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
11354 $as_echo "$at_srcdir/bindir.at:148: if \$LIBTOOL --mode=execute \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
11355 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "bindir.at:148"
11356 ( $at_check_trace; if $LIBTOOL --mode=execute "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
11357 ) >>"$at_stdout" 2>>"$at_stderr"
11358 at_status=$? at_failed=false
11360 at_fn_diff_devnull "$at_stderr" || at_failed=:
11361 at_fn_diff_devnull "$at_stdout" || at_failed=:
11362 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:148"
11363 $at_failed && at_fn_log_failure
11369 # In fact, prepending the PATH as above is superfluous on the windows
11370 # platforms that this feature is primarily aimed at, as the DLL search
11371 # path always includes the directory from which the app was launched.
11372 # To make sure it still works even when not side-by-side, we'll install
11373 # the main executable and execute it from there while the PATH still
11374 # points to the shared libs in the .libs subdir. On other platforms,
11375 # the rpaths we set at link time will guarantee it runs from the bindir.
11379 $as_echo "$at_srcdir/bindir.at:160: \$LIBTOOL --mode=install \$lt_INSTALL main\$EXEEXT \$curdir/bin/main\$EXEEXT"
11380 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/bin/main$EXEEXT" "bindir.at:160"
11381 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/bin/main$EXEEXT
11382 ) >>"$at_stdout" 2>>"$at_stderr"
11383 at_status=$? at_failed=false
11385 echo stderr:; cat "$at_stderr"
11386 echo stdout:; cat "$at_stdout"
11387 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:160"
11388 $at_failed && at_fn_log_failure
11391 lt_exe=$curdir/bin/main$EXEEXT; if test -f "$curdir/bin/main$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
11393 $as_echo "$at_srcdir/bindir.at:161: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
11394 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "bindir.at:161"
11395 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
11396 ) >>"$at_stdout" 2>>"$at_stderr"
11397 at_status=$? at_failed=false
11399 echo stderr:; cat "$at_stderr"
11400 echo stdout:; cat "$at_stdout"
11401 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:161"
11402 $at_failed && at_fn_log_failure
11409 $at_times_p && times >"$at_times_file"
11410 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11411 read at_status <"$at_status_file"
11414 at_fn_group_banner 54 'bindir.at:173' \
11415 "bindir install tests" " " 3
11418 $as_echo "54. $at_setup_line: testing $at_desc ..."
11424 cygwin*|mingw*|cegcc*)
11431 eval "`$LIBTOOL --config | grep '^build_libtool_libs='`"
11433 $as_echo "$at_srcdir/bindir.at:185: test \"\$build_libtool_libs\" = yes || exit 77"
11434 at_fn_check_prepare_dynamic "test \"$build_libtool_libs\" = yes || exit 77" "bindir.at:185"
11435 ( $at_check_trace; test "$build_libtool_libs" = yes || exit 77
11436 ) >>"$at_stdout" 2>>"$at_stderr"
11437 at_status=$? at_failed=false
11439 at_fn_diff_devnull "$at_stderr" || at_failed=:
11440 at_fn_diff_devnull "$at_stdout" || at_failed=:
11441 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:185"
11442 $at_failed && at_fn_log_failure
11447 # These routines save the PATH before a test and restore it after,
11448 # prepending a chosen directory to the path on the platforms where
11449 # -bindir is needed after saving.
11452 func_save_and_prepend_path ()
11455 if $bindirneeded ; then
11461 func_restore_path ()
11467 cat >foo.c <<'_ATEOF'
11473 cat >baz.c <<'_ATEOF'
11477 int baz (void) { return x;}
11481 cat >bar.c <<'_ATEOF'
11483 extern int baz (void);
11486 int bar (void) { return y + baz ();}
11490 cat >main.c <<'_ATEOF'
11492 #include <stdlib.h>
11493 extern int baz (void);
11494 extern int bar (void);
11496 if (baz () + bar () - 25) abort ();
11502 # We only need to compile once, but we'll need to relink for each different value
11503 # of libdir in order to set the rpath, and we'll install for each combination of
11504 # libdir and bindir.
11507 $as_echo "$at_srcdir/bindir.at:239: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o foo.lo \$CPPFLAGS \$CFLAGS foo.c"
11508 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS foo.c" "bindir.at:239"
11509 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS foo.c
11510 ) >>"$at_stdout" 2>>"$at_stderr"
11511 at_status=$? at_failed=false
11513 echo stderr:; cat "$at_stderr"
11514 echo stdout:; cat "$at_stdout"
11515 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:239"
11516 $at_failed && at_fn_log_failure
11520 $as_echo "$at_srcdir/bindir.at:240: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o baz.lo \$CPPFLAGS \$CFLAGS baz.c"
11521 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS baz.c" "bindir.at:240"
11522 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS baz.c
11523 ) >>"$at_stdout" 2>>"$at_stderr"
11524 at_status=$? at_failed=false
11526 echo stderr:; cat "$at_stderr"
11527 echo stdout:; cat "$at_stdout"
11528 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:240"
11529 $at_failed && at_fn_log_failure
11533 $as_echo "$at_srcdir/bindir.at:241: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o bar.lo \$CPPFLAGS \$CFLAGS bar.c"
11534 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS bar.c" "bindir.at:241"
11535 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS bar.c
11536 ) >>"$at_stdout" 2>>"$at_stderr"
11537 at_status=$? at_failed=false
11539 echo stderr:; cat "$at_stderr"
11540 echo stdout:; cat "$at_stdout"
11541 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:241"
11542 $at_failed && at_fn_log_failure
11546 $as_echo "$at_srcdir/bindir.at:242: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o main.lo \$CPPFLAGS \$CFLAGS main.c"
11547 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS main.c" "bindir.at:242"
11548 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS main.c
11549 ) >>"$at_stdout" 2>>"$at_stderr"
11550 at_status=$? at_failed=false
11552 echo stderr:; cat "$at_stderr"
11553 echo stdout:; cat "$at_stdout"
11554 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:242"
11555 $at_failed && at_fn_log_failure
11559 # Now try installing the libs. There are the following cases:
11561 # -bindir below lib install dir
11562 # -bindir is lib install dir
11563 # -bindir beside lib install dir
11564 # -bindir above lib dir
11565 # -bindir above and beside lib dir
11566 # -bindir in entirely unrelated prefix.
11570 $curdir/usr/lib/gcc/i686-pc-cygwin/4.5.0 \
11571 $curdir/usr/lib/gcc/../gcc/.//i686-pc-cygwin/4.5.0/../../././//. \
11578 # Do a basic install with no -bindir option for reference. We use the sbin/
11579 # dir for the main exe to avoid the potential "this only works because it's
11580 # side-by-side with the libs" default DLL search path problem mentioned above.
11581 rm -rf $libdir $curdir/bin $curdir/sbin $curdir/baz $curdir/usr
11582 as_dir=$libdir; as_fn_mkdir_p
11583 as_dir=$curdir/sbin; as_fn_mkdir_p
11585 $as_echo "$at_srcdir/bindir.at:269: \$LIBTOOL --mode=link --tag=CC \$CC -no-undefined -o libfoo.la \$CPPFLAGS \$CFLAGS \$LDFLAGS foo.lo bar.lo baz.lo -rpath \$libdir"
11586 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -no-undefined -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS foo.lo bar.lo baz.lo -rpath $libdir" "bindir.at:269"
11587 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -no-undefined -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS foo.lo bar.lo baz.lo -rpath $libdir
11588 ) >>"$at_stdout" 2>>"$at_stderr"
11589 at_status=$? at_failed=false
11591 echo stderr:; cat "$at_stderr"
11592 echo stdout:; cat "$at_stdout"
11593 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:269"
11594 $at_failed && at_fn_log_failure
11598 $as_echo "$at_srcdir/bindir.at:270: \$LIBTOOL --mode=link --tag=CC \$CC -o main\$EXEEXT \$CPPFLAGS \$CFLAGS \$LDFLAGS main.lo libfoo.la -rpath \$libdir"
11599 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS main.lo libfoo.la -rpath $libdir" "bindir.at:270"
11600 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS main.lo libfoo.la -rpath $libdir
11601 ) >>"$at_stdout" 2>>"$at_stderr"
11602 at_status=$? at_failed=false
11604 echo stderr:; cat "$at_stderr"
11605 echo stdout:; cat "$at_stdout"
11606 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:270"
11607 $at_failed && at_fn_log_failure
11611 $as_echo "$at_srcdir/bindir.at:271: \$LIBTOOL --mode=install \$lt_INSTALL libfoo.la \$libdir"
11612 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL libfoo.la $libdir" "bindir.at:271"
11613 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL libfoo.la $libdir
11614 ) >>"$at_stdout" 2>>"$at_stderr"
11615 at_status=$? at_failed=false
11617 echo stderr:; cat "$at_stderr"
11618 echo stdout:; cat "$at_stdout"
11619 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:271"
11620 $at_failed && at_fn_log_failure
11624 $as_echo "$at_srcdir/bindir.at:272: \$LIBTOOL --mode=install \$lt_INSTALL main\$EXEEXT \$curdir/sbin/main\$EXEEXT"
11625 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/sbin/main$EXEEXT" "bindir.at:272"
11626 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/sbin/main$EXEEXT
11627 ) >>"$at_stdout" 2>>"$at_stderr"
11628 at_status=$? at_failed=false
11630 echo stderr:; cat "$at_stderr"
11631 echo stdout:; cat "$at_stdout"
11632 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:272"
11633 $at_failed && at_fn_log_failure
11637 # And ensure it went where we expect. Could be looking for any of
11638 # 'cygfoo-0.dll', 'libfoo-0.dll', 'foo-0.dll', or 'libfoo.so.0'. We'll
11639 # simplify this check by taking advantage of the fact that if it's a DLL,
11640 # it has to go in bindir, so we'll not check for both forms in libdir.
11641 if $bindirneeded; then
11643 $as_echo "$at_srcdir/bindir.at:279: test -f \$libdir/../bin/???foo-0.dll || ls \$libdir/../bin/*foo*0*"
11644 at_fn_check_prepare_dynamic "test -f $libdir/../bin/???foo-0.dll || ls $libdir/../bin/*foo*0*" "bindir.at:279"
11645 ( $at_check_trace; test -f $libdir/../bin/???foo-0.dll || ls $libdir/../bin/*foo*0*
11646 ) >>"$at_stdout" 2>>"$at_stderr"
11647 at_status=$? at_failed=false
11649 echo stderr:; cat "$at_stderr"
11650 echo stdout:; cat "$at_stdout"
11651 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:279"
11652 $at_failed && at_fn_log_failure
11657 $as_echo "$at_srcdir/bindir.at:281: ls \$libdir/*foo*"
11658 at_fn_check_prepare_dynamic "ls $libdir/*foo*" "bindir.at:281"
11659 ( $at_check_trace; ls $libdir/*foo*
11660 ) >>"$at_stdout" 2>>"$at_stderr"
11661 at_status=$? at_failed=false
11663 echo stderr:; cat "$at_stderr"
11664 echo stdout:; cat "$at_stdout"
11665 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:281"
11666 $at_failed && at_fn_log_failure
11671 # And that it can be executed.
11673 $bindirneeded && extrapath=$libdir/../bin
11674 func_save_and_prepend_path $extrapath
11675 lt_exe=$curdir/sbin/main$EXEEXT; if test -f "$curdir/sbin/main$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
11677 $as_echo "$at_srcdir/bindir.at:288: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
11678 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "bindir.at:288"
11679 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
11680 ) >>"$at_stdout" 2>>"$at_stderr"
11681 at_status=$? at_failed=false
11683 echo stderr:; cat "$at_stderr"
11684 echo stdout:; cat "$at_stdout"
11685 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:288"
11686 $at_failed && at_fn_log_failure
11693 $curdir/usr/lib/gcc/i686-pc-cygwin/4.5.0/bin/ \
11694 $curdir/usr/lib/gcc/i686-pc-cygwin/4.5.0/bin \
11695 $curdir/usr/lib/gcc/i686-pc-cygwin/bin \
11696 $curdir/usr/lib/bin \
11702 # Clear any old stuff out before we install. Because bindir
11703 # may be in /tmp, we have to take care to create it securely
11704 # and not to delete and recreate it if we do.
11705 rm -rf $libdir $curdir/bin $curdir/sbin $curdir/baz $curdir/usr
11710 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
11711 # Use mktemp if possible; otherwise fall back on mkdir,
11712 # with $RANDOM to make collisions less likely.
11716 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
11718 test -n "$tmp" && test -d "$tmp"
11720 tmp=$TMPDIR/foo$$-$RANDOM
11721 (umask 077 && mkdir "$tmp")
11723 $as_echo "$at_srcdir/bindir.at:321: exit 77"
11724 at_fn_check_prepare_trace "bindir.at:321"
11725 ( $at_check_trace; exit 77
11726 ) >>"$at_stdout" 2>>"$at_stderr"
11727 at_status=$? at_failed=false
11729 at_fn_diff_devnull "$at_stderr" || at_failed=:
11730 at_fn_diff_devnull "$at_stdout" || at_failed=:
11731 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:321"
11732 $at_failed && at_fn_log_failure
11738 # Clear any old stuff out before we install.
11740 as_dir=$bindir; as_fn_mkdir_p
11744 # Relink with new rpaths.
11746 $as_echo "$at_srcdir/bindir.at:332: \$LIBTOOL --mode=link --tag=CC \$CC -no-undefined -bindir \$bindir -o libfoo.la \$CPPFLAGS \$CFLAGS \$LDFLAGS foo.lo bar.lo baz.lo -rpath \$libdir"
11747 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -no-undefined -bindir $bindir -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS foo.lo bar.lo baz.lo -rpath $libdir" "bindir.at:332"
11748 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -no-undefined -bindir $bindir -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS foo.lo bar.lo baz.lo -rpath $libdir
11749 ) >>"$at_stdout" 2>>"$at_stderr"
11750 at_status=$? at_failed=false
11752 echo stderr:; cat "$at_stderr"
11753 echo stdout:; cat "$at_stdout"
11754 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:332"
11755 $at_failed && at_fn_log_failure
11759 $as_echo "$at_srcdir/bindir.at:333: \$LIBTOOL --mode=link --tag=CC \$CC -o main\$EXEEXT \$CPPFLAGS \$CFLAGS \$LDFLAGS main.lo libfoo.la"
11760 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS main.lo libfoo.la" "bindir.at:333"
11761 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS main.lo libfoo.la
11762 ) >>"$at_stdout" 2>>"$at_stderr"
11763 at_status=$? at_failed=false
11765 echo stderr:; cat "$at_stderr"
11766 echo stdout:; cat "$at_stdout"
11767 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:333"
11768 $at_failed && at_fn_log_failure
11772 # Recreate directories (bindir already done) and install.
11773 as_dir=$libdir; as_fn_mkdir_p
11774 as_dir=$curdir/sbin; as_fn_mkdir_p
11776 $as_echo "$at_srcdir/bindir.at:338: \$LIBTOOL --mode=install \$lt_INSTALL libfoo.la \$libdir"
11777 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL libfoo.la $libdir" "bindir.at:338"
11778 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL libfoo.la $libdir
11779 ) >>"$at_stdout" 2>>"$at_stderr"
11780 at_status=$? at_failed=false
11782 echo stderr:; cat "$at_stderr"
11783 echo stdout:; cat "$at_stdout"
11784 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:338"
11785 $at_failed && at_fn_log_failure
11789 $as_echo "$at_srcdir/bindir.at:339: \$LIBTOOL --mode=install \$lt_INSTALL main\$EXEEXT \$curdir/sbin/main\$EXEEXT"
11790 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/sbin/main$EXEEXT" "bindir.at:339"
11791 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/sbin/main$EXEEXT
11792 ) >>"$at_stdout" 2>>"$at_stderr"
11793 at_status=$? at_failed=false
11795 echo stderr:; cat "$at_stderr"
11796 echo stdout:; cat "$at_stdout"
11797 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:339"
11798 $at_failed && at_fn_log_failure
11802 # Ensure it went to bindir rather than default dir this time.
11803 if $bindirneeded; then
11805 $as_echo "$at_srcdir/bindir.at:343: test -f \$bindir/???foo-0.dll || ls \$bindir/*foo*0*"
11806 at_fn_check_prepare_dynamic "test -f $bindir/???foo-0.dll || ls $bindir/*foo*0*" "bindir.at:343"
11807 ( $at_check_trace; test -f $bindir/???foo-0.dll || ls $bindir/*foo*0*
11808 ) >>"$at_stdout" 2>>"$at_stderr"
11809 at_status=$? at_failed=false
11811 echo stderr:; cat "$at_stderr"
11812 echo stdout:; cat "$at_stdout"
11813 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:343"
11814 $at_failed && at_fn_log_failure
11819 $as_echo "$at_srcdir/bindir.at:345: ls \$libdir/*foo*"
11820 at_fn_check_prepare_dynamic "ls $libdir/*foo*" "bindir.at:345"
11821 ( $at_check_trace; ls $libdir/*foo*
11822 ) >>"$at_stdout" 2>>"$at_stderr"
11823 at_status=$? at_failed=false
11825 echo stderr:; cat "$at_stderr"
11826 echo stdout:; cat "$at_stdout"
11827 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:345"
11828 $at_failed && at_fn_log_failure
11833 # And that it can be executed.
11835 $bindirneeded && extrapath=$bindir
11836 func_save_and_prepend_path $extrapath
11837 lt_exe=$curdir/sbin/main$EXEEXT; if test -f "$curdir/sbin/main$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
11839 $as_echo "$at_srcdir/bindir.at:352: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
11840 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "bindir.at:352"
11841 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
11842 ) >>"$at_stdout" 2>>"$at_stderr"
11843 at_status=$? at_failed=false
11845 echo stderr:; cat "$at_stderr"
11846 echo stdout:; cat "$at_stdout"
11847 at_fn_check_status 0 $at_status "$at_srcdir/bindir.at:352"
11848 $at_failed && at_fn_log_failure
11854 # Clean up if we made a temp dir. Subdirs under our testdir get rm'd
11855 # and recreated at the top of the loop. Securely created subdirs under
11856 # /tmp get created precisely once and rm'd when we're done with them.
11857 if test ! -z "$tmp" ; then
11865 $at_times_p && times >"$at_times_file"
11866 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11867 read at_status <"$at_status_file"
11870 at_fn_group_banner 55 'cwrapper.at:25' \
11871 "cwrapper for uninstalled executables" " " 3
11874 $as_echo "55. $at_setup_line: testing $at_desc ..."
11879 # make sure existing libtool is configured for shared libraries
11881 $as_echo "$at_srcdir/cwrapper.at:29: \$LIBTOOL --features | grep 'disable shared libraries' && exit 77"
11882 at_fn_check_prepare_notrace 'a shell pipeline' "cwrapper.at:29"
11883 ( $at_check_trace; $LIBTOOL --features | grep 'disable shared libraries' && exit 77
11884 ) >>"$at_stdout" 2>>"$at_stderr"
11885 at_status=$? at_failed=false
11887 at_fn_diff_devnull "$at_stderr" || at_failed=:
11888 echo stdout:; cat "$at_stdout"
11889 at_fn_check_status 1 $at_status "$at_srcdir/cwrapper.at:29"
11890 $at_failed && at_fn_log_failure
11894 cat >trivial.c <<'_ATEOF'
11902 cat >liba.c <<'_ATEOF'
11903 int liba_func1 (int arg)
11909 cat >usea.c <<'_ATEOF'
11910 extern int liba_func1 (int arg);
11914 int b = liba_func1 (a);
11915 if (b == 3) return 0;
11921 orig_CFLAGS=$CFLAGS
11922 orig_LIBTOOL=$LIBTOOL
11923 for restrictive_flags in '-Wall -Werror' '-std=c89 -Wall -Werror' '-std=c99 -Wall -Werror'; do
11924 CFLAGS="$orig_CFLAGS $restrictive_flags"
11925 sed "s/LTCFLAGS=.*/&' $restrictive_flags'/" < "$orig_LIBTOOL" > ./libtool
11929 # Make sure $restrictive_flags do not cause a failure
11930 # themselves (e.g. because a non-gcc compiler doesn't
11931 # understand them). Tru64 cc only fails when linking.
11932 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS trivial.c || continue
11935 $as_echo "$at_srcdir/cwrapper.at:69: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c liba.c"
11936 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c" "cwrapper.at:69"
11937 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c
11938 ) >>"$at_stdout" 2>>"$at_stderr"
11939 at_status=$? at_failed=false
11941 echo stderr:; cat "$at_stderr"
11942 echo stdout:; cat "$at_stdout"
11943 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:69"
11944 $at_failed && at_fn_log_failure
11948 $as_echo "$at_srcdir/cwrapper.at:71: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -version-info=0.0.0 -no-undefined -o liba.la -rpath /foo liba.lo"
11949 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -no-undefined -o liba.la -rpath /foo liba.lo" "cwrapper.at:71"
11950 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -no-undefined -o liba.la -rpath /foo liba.lo
11951 ) >>"$at_stdout" 2>>"$at_stderr"
11952 at_status=$? at_failed=false
11954 echo stderr:; cat "$at_stderr"
11955 echo stdout:; cat "$at_stdout"
11956 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:71"
11957 $at_failed && at_fn_log_failure
11961 $as_echo "$at_srcdir/cwrapper.at:73: test -f liba.la"
11962 at_fn_check_prepare_trace "cwrapper.at:73"
11963 ( $at_check_trace; test -f liba.la
11964 ) >>"$at_stdout" 2>>"$at_stderr"
11965 at_status=$? at_failed=false
11967 at_fn_diff_devnull "$at_stderr" || at_failed=:
11968 at_fn_diff_devnull "$at_stdout" || at_failed=:
11969 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:73"
11970 $at_failed && at_fn_log_failure
11975 $as_echo "$at_srcdir/cwrapper.at:75: \$CC \$CPPFLAGS \$CFLAGS -c usea.c"
11976 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c usea.c" "cwrapper.at:75"
11977 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c usea.c
11978 ) >>"$at_stdout" 2>>"$at_stderr"
11979 at_status=$? at_failed=false
11981 echo stderr:; cat "$at_stderr"
11982 echo stdout:; cat "$at_stdout"
11983 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:75"
11984 $at_failed && at_fn_log_failure
11988 $as_echo "$at_srcdir/cwrapper.at:77: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o usea\$EXEEXT usea.\$OBJEXT liba.la"
11989 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o usea$EXEEXT usea.$OBJEXT liba.la" "cwrapper.at:77"
11990 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o usea$EXEEXT usea.$OBJEXT liba.la
11991 ) >>"$at_stdout" 2>>"$at_stderr"
11992 at_status=$? at_failed=false
11994 echo stderr:; cat "$at_stderr"
11995 echo stdout:; cat "$at_stdout"
11996 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:77"
11997 $at_failed && at_fn_log_failure
12000 lt_exe=./usea; if test -f "./usea$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12002 $as_echo "$at_srcdir/cwrapper.at:79: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12003 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "cwrapper.at:79"
12004 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12005 ) >>"$at_stdout" 2>>"$at_stderr"
12006 at_status=$? at_failed=false
12008 echo stderr:; cat "$at_stderr"
12009 echo stdout:; cat "$at_stdout"
12010 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:79"
12011 $at_failed && at_fn_log_failure
12018 # Test run-time activation of wrapper debugging.
12019 # This is not part of the loop above, because we
12020 # need to check, not ignore, the output.
12021 CFLAGS="$orig_CFLAGS"
12022 LIBTOOL=$orig_LIBTOOL
12025 $as_echo "$at_srcdir/cwrapper.at:89: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c liba.c"
12026 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c" "cwrapper.at:89"
12027 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c
12028 ) >>"$at_stdout" 2>>"$at_stderr"
12029 at_status=$? at_failed=false
12031 echo stderr:; cat "$at_stderr"
12032 echo stdout:; cat "$at_stdout"
12033 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:89"
12034 $at_failed && at_fn_log_failure
12038 $as_echo "$at_srcdir/cwrapper.at:91: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo"
12039 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo" "cwrapper.at:91"
12040 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo
12041 ) >>"$at_stdout" 2>>"$at_stderr"
12042 at_status=$? at_failed=false
12044 echo stderr:; cat "$at_stderr"
12045 echo stdout:; cat "$at_stdout"
12046 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:91"
12047 $at_failed && at_fn_log_failure
12051 $as_echo "$at_srcdir/cwrapper.at:93: test -f liba.la"
12052 at_fn_check_prepare_trace "cwrapper.at:93"
12053 ( $at_check_trace; test -f liba.la
12054 ) >>"$at_stdout" 2>>"$at_stderr"
12055 at_status=$? at_failed=false
12057 at_fn_diff_devnull "$at_stderr" || at_failed=:
12058 at_fn_diff_devnull "$at_stdout" || at_failed=:
12059 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:93"
12060 $at_failed && at_fn_log_failure
12065 $as_echo "$at_srcdir/cwrapper.at:95: \$CC \$CPPFLAGS \$CFLAGS -c usea.c"
12066 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c usea.c" "cwrapper.at:95"
12067 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c usea.c
12068 ) >>"$at_stdout" 2>>"$at_stderr"
12069 at_status=$? at_failed=false
12071 echo stderr:; cat "$at_stderr"
12072 echo stdout:; cat "$at_stdout"
12073 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:95"
12074 $at_failed && at_fn_log_failure
12078 $as_echo "$at_srcdir/cwrapper.at:97: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o usea\$EXEEXT usea.\$OBJEXT liba.la"
12079 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o usea$EXEEXT usea.$OBJEXT liba.la" "cwrapper.at:97"
12080 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o usea$EXEEXT usea.$OBJEXT liba.la
12081 ) >>"$at_stdout" 2>>"$at_stderr"
12082 at_status=$? at_failed=false
12084 echo stderr:; cat "$at_stderr"
12085 echo stdout:; cat "$at_stdout"
12086 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:97"
12087 $at_failed && at_fn_log_failure
12090 lt_exe=./usea; if test -f "./usea$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12092 $as_echo "$at_srcdir/cwrapper.at:99: if \"\$lt_exe\" --lt-debug; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12093 at_fn_check_prepare_dynamic "if \"$lt_exe\" --lt-debug; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "cwrapper.at:99"
12094 ( $at_check_trace; if "$lt_exe" --lt-debug; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12095 ) >>"$at_stdout" 2>>"$at_stderr"
12096 at_status=$? at_failed=false
12098 echo stderr:; tee stderr <"$at_stderr"
12099 echo stdout:; cat "$at_stdout"
12100 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:99"
12101 $at_failed && at_fn_log_failure
12107 tr -d '\015' < stderr > stderr.t
12108 mv -f stderr.t stderr ;;
12111 $as_echo "$at_srcdir/cwrapper.at:101: grep 'libtool wrapper' stderr"
12112 at_fn_check_prepare_trace "cwrapper.at:101"
12113 ( $at_check_trace; grep 'libtool wrapper' stderr
12114 ) >>"$at_stdout" 2>>"$at_stderr"
12115 at_status=$? at_failed=false
12117 echo stderr:; cat "$at_stderr"
12118 echo stdout:; cat "$at_stdout"
12119 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:101"
12120 $at_failed && at_fn_log_failure
12125 # Test compile-time activation of wrapper debugging.
12126 # We structure this test as a loop, so that we can 'break' out of it
12127 # if necessary -- even though the loop by design executes only once.
12128 for debugwrapper_flags in '-DLT_DEBUGWRAPPER'; do
12129 CFLAGS="$orig_CFLAGS $debugwrapper_flags"
12130 sed -e "s/LTCFLAGS=.*/&' $debugwrapper_flags'/" \
12131 -e "s/^lt_option_debug=/lt_option_debug=1/" \
12132 < "$orig_LIBTOOL" > ./libtool
12135 # Make sure $debugwrapper_flags do not cause a failure
12136 # themselves (e.g. because a non-gcc compiler doesn't
12137 # understand them). Tru64 cc only fails when linking.
12138 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS trivial.c || continue
12141 $as_echo "$at_srcdir/cwrapper.at:119: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c liba.c"
12142 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c" "cwrapper.at:119"
12143 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c
12144 ) >>"$at_stdout" 2>>"$at_stderr"
12145 at_status=$? at_failed=false
12147 echo stderr:; cat "$at_stderr"
12148 echo stdout:; cat "$at_stdout"
12149 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:119"
12150 $at_failed && at_fn_log_failure
12154 $as_echo "$at_srcdir/cwrapper.at:121: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo"
12155 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo" "cwrapper.at:121"
12156 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo
12157 ) >>"$at_stdout" 2>>"$at_stderr"
12158 at_status=$? at_failed=false
12160 echo stderr:; cat "$at_stderr"
12161 echo stdout:; cat "$at_stdout"
12162 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:121"
12163 $at_failed && at_fn_log_failure
12167 $as_echo "$at_srcdir/cwrapper.at:123: test -f liba.la"
12168 at_fn_check_prepare_trace "cwrapper.at:123"
12169 ( $at_check_trace; test -f liba.la
12170 ) >>"$at_stdout" 2>>"$at_stderr"
12171 at_status=$? at_failed=false
12173 at_fn_diff_devnull "$at_stderr" || at_failed=:
12174 at_fn_diff_devnull "$at_stdout" || at_failed=:
12175 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:123"
12176 $at_failed && at_fn_log_failure
12181 $as_echo "$at_srcdir/cwrapper.at:125: \$CC \$CPPFLAGS \$CFLAGS -c usea.c"
12182 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c usea.c" "cwrapper.at:125"
12183 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c usea.c
12184 ) >>"$at_stdout" 2>>"$at_stderr"
12185 at_status=$? at_failed=false
12187 echo stderr:; cat "$at_stderr"
12188 echo stdout:; cat "$at_stdout"
12189 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:125"
12190 $at_failed && at_fn_log_failure
12194 $as_echo "$at_srcdir/cwrapper.at:127: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o usea\$EXEEXT usea.\$OBJEXT liba.la"
12195 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o usea$EXEEXT usea.$OBJEXT liba.la" "cwrapper.at:127"
12196 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o usea$EXEEXT usea.$OBJEXT liba.la
12197 ) >>"$at_stdout" 2>>"$at_stderr"
12198 at_status=$? at_failed=false
12200 echo stderr:; cat "$at_stderr"
12201 echo stdout:; cat "$at_stdout"
12202 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:127"
12203 $at_failed && at_fn_log_failure
12206 lt_exe=./usea; if test -f "./usea$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12208 $as_echo "$at_srcdir/cwrapper.at:129: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12209 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "cwrapper.at:129"
12210 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12211 ) >>"$at_stdout" 2>>"$at_stderr"
12212 at_status=$? at_failed=false
12214 echo stderr:; tee stderr <"$at_stderr"
12215 echo stdout:; cat "$at_stdout"
12216 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:129"
12217 $at_failed && at_fn_log_failure
12223 tr -d '\015' < stderr > stderr.t
12224 mv -f stderr.t stderr ;;
12227 $as_echo "$at_srcdir/cwrapper.at:131: grep 'libtool wrapper' stderr"
12228 at_fn_check_prepare_trace "cwrapper.at:131"
12229 ( $at_check_trace; grep 'libtool wrapper' stderr
12230 ) >>"$at_stdout" 2>>"$at_stderr"
12231 at_status=$? at_failed=false
12233 echo stderr:; cat "$at_stderr"
12234 echo stdout:; cat "$at_stdout"
12235 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:131"
12236 $at_failed && at_fn_log_failure
12243 $at_times_p && times >"$at_times_file"
12244 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12245 read at_status <"$at_status_file"
12248 at_fn_group_banner 56 'cwrapper.at:138' \
12249 "cwrapper string length" " " 3
12252 $as_echo "56. $at_setup_line: testing $at_desc ..."
12256 eval "`$LIBTOOL --config | $EGREP '^(objdir)='`"
12258 cat >liba.c <<'_ATEOF'
12259 int liba_func1 (int arg)
12265 cat >usea.c <<'_ATEOF'
12266 extern int liba_func1 (int arg);
12270 int b = liba_func1 (a);
12271 if (b == 3) return 0;
12278 $as_echo "$at_srcdir/cwrapper.at:159: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c liba.c"
12279 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c" "cwrapper.at:159"
12280 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c
12281 ) >>"$at_stdout" 2>>"$at_stderr"
12282 at_status=$? at_failed=false
12284 echo stderr:; cat "$at_stderr"
12285 echo stdout:; cat "$at_stdout"
12286 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:159"
12287 $at_failed && at_fn_log_failure
12291 $as_echo "$at_srcdir/cwrapper.at:161: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo"
12292 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo" "cwrapper.at:161"
12293 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-undefined -o liba.la -rpath /foo liba.lo
12294 ) >>"$at_stdout" 2>>"$at_stderr"
12295 at_status=$? at_failed=false
12297 echo stderr:; cat "$at_stderr"
12298 echo stdout:; cat "$at_stdout"
12299 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:161"
12300 $at_failed && at_fn_log_failure
12304 $as_echo "$at_srcdir/cwrapper.at:164: \$CC \$CPPFLAGS \$CFLAGS -c usea.c"
12305 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c usea.c" "cwrapper.at:164"
12306 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c usea.c
12307 ) >>"$at_stdout" 2>>"$at_stderr"
12308 at_status=$? at_failed=false
12310 echo stderr:; cat "$at_stderr"
12311 echo stdout:; cat "$at_stdout"
12312 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:164"
12313 $at_failed && at_fn_log_failure
12318 # Make sure PATH is at least 250 chars, which should force line breaks
12323 IFS=$PATH_SEPARATOR
12324 for dirpath in $PATH; do
12330 until $ECHO "PATH=$PATH" | grep 'PATH=.\{250\}'; do
12331 PATH="$PATH$PATH_SEPARATOR$dirpath"
12336 $as_echo "$at_srcdir/cwrapper.at:185: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -no-fast-install -o usea\$EXEEXT usea.\$OBJEXT liba.la"
12337 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-fast-install -o usea$EXEEXT usea.$OBJEXT liba.la" "cwrapper.at:185"
12338 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-fast-install -o usea$EXEEXT usea.$OBJEXT liba.la
12339 ) >>"$at_stdout" 2>>"$at_stderr"
12340 at_status=$? at_failed=false
12342 echo stderr:; cat "$at_stderr"
12343 echo stdout:; cat "$at_stdout"
12344 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:185"
12345 $at_failed && at_fn_log_failure
12349 # Skip if no cwrapper is generated.
12351 $as_echo "$at_srcdir/cwrapper.at:190: test -f \$objdir/lt-usea.c || exit 77"
12352 at_fn_check_prepare_dynamic "test -f $objdir/lt-usea.c || exit 77" "cwrapper.at:190"
12353 ( $at_check_trace; test -f $objdir/lt-usea.c || exit 77
12354 ) >>"$at_stdout" 2>>"$at_stderr"
12355 at_status=$? at_failed=false
12357 at_fn_diff_devnull "$at_stderr" || at_failed=:
12358 at_fn_diff_devnull "$at_stdout" || at_failed=:
12359 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:190"
12360 $at_failed && at_fn_log_failure
12364 # Try to make sure the test is relevant.
12366 $as_echo "$at_srcdir/cwrapper.at:193: grep ' *fputs' \$objdir/lt-usea.c > /dev/null"
12367 at_fn_check_prepare_dynamic "grep ' *fputs' $objdir/lt-usea.c > /dev/null" "cwrapper.at:193"
12368 ( $at_check_trace; grep ' *fputs' $objdir/lt-usea.c > /dev/null
12369 ) >>"$at_stdout" 2>>"$at_stderr"
12370 at_status=$? at_failed=false
12372 at_fn_diff_devnull "$at_stderr" || at_failed=:
12373 at_fn_diff_devnull "$at_stdout" || at_failed=:
12374 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:193"
12375 $at_failed && at_fn_log_failure
12378 # Check for no overly long fputs.
12380 $as_echo "$at_srcdir/cwrapper.at:195: grep ' *fputs.\\{250\\}' \$objdir/lt-usea.c"
12381 at_fn_check_prepare_dynamic "grep ' *fputs.\\{250\\}' $objdir/lt-usea.c" "cwrapper.at:195"
12382 ( $at_check_trace; grep ' *fputs.\{250\}' $objdir/lt-usea.c
12383 ) >>"$at_stdout" 2>>"$at_stderr"
12384 at_status=$? at_failed=false
12386 at_fn_diff_devnull "$at_stderr" || at_failed=:
12387 at_fn_diff_devnull "$at_stdout" || at_failed=:
12388 at_fn_check_status 1 $at_status "$at_srcdir/cwrapper.at:195"
12389 $at_failed && at_fn_log_failure
12395 $at_times_p && times >"$at_times_file"
12396 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12397 read at_status <"$at_status_file"
12400 at_fn_group_banner 57 'cwrapper.at:201' \
12401 "cwrapper and installed shared libraries" " " 3
12404 $as_echo "57. $at_setup_line: testing $at_desc ..."
12409 # make sure existing libtool is configured for shared libraries
12411 $as_echo "$at_srcdir/cwrapper.at:205: \$LIBTOOL --features | grep 'enable shared libraries' || exit 77"
12412 at_fn_check_prepare_notrace 'a shell pipeline' "cwrapper.at:205"
12413 ( $at_check_trace; $LIBTOOL --features | grep 'enable shared libraries' || exit 77
12414 ) >>"$at_stdout" 2>>"$at_stderr"
12415 at_status=$? at_failed=false
12417 at_fn_diff_devnull "$at_stderr" || at_failed=:
12418 echo stdout:; cat "$at_stdout"
12419 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:205"
12420 $at_failed && at_fn_log_failure
12424 LDFLAGS="$LDFLAGS -no-undefined"
12429 mkdir $inst $libdir $bindir
12431 # Build the library in a separate directory to avoid the special case
12432 # of loading from the current directory.
12436 # build and install "old" library version
12437 cat >a.c <<'_ATEOF'
12439 int liba_ver (void) { return 1; }
12443 $as_echo "$at_srcdir/cwrapper.at:224: \$LIBTOOL --mode=compile --tag=CC \$CC \$CPPFLAGS \$CFLAGS -c a.c"
12444 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c" "cwrapper.at:224"
12445 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c
12446 ) >>"$at_stdout" 2>>"$at_stderr"
12447 at_status=$? at_failed=false
12449 echo stderr:; cat "$at_stderr"
12450 echo stdout:; cat "$at_stdout"
12451 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:224"
12452 $at_failed && at_fn_log_failure
12456 $as_echo "$at_srcdir/cwrapper.at:226: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -version-info=0.0.0 -o liba.la -rpath \$libdir a.lo"
12457 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -o liba.la -rpath $libdir a.lo" "cwrapper.at:226"
12458 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -o liba.la -rpath $libdir a.lo
12459 ) >>"$at_stdout" 2>>"$at_stderr"
12460 at_status=$? at_failed=false
12462 echo stderr:; cat "$at_stderr"
12463 echo stdout:; cat "$at_stdout"
12464 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:226"
12465 $at_failed && at_fn_log_failure
12469 $as_echo "$at_srcdir/cwrapper.at:228: \$LIBTOOL --mode=install \$lt_INSTALL liba.la \$libdir"
12470 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL liba.la $libdir" "cwrapper.at:228"
12471 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL liba.la $libdir
12472 ) >>"$at_stdout" 2>>"$at_stderr"
12473 at_status=$? at_failed=false
12475 echo stderr:; cat "$at_stderr"
12476 echo stdout:; cat "$at_stdout"
12477 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:228"
12478 $at_failed && at_fn_log_failure
12482 # build a new library version
12483 cat >a.c <<'_ATEOF'
12485 int liba_ver (void) { return 2; }
12489 $as_echo "$at_srcdir/cwrapper.at:235: \$LIBTOOL --mode=compile --tag=CC \$CC \$CPPFLAGS \$CFLAGS -c a.c"
12490 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c" "cwrapper.at:235"
12491 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c
12492 ) >>"$at_stdout" 2>>"$at_stderr"
12493 at_status=$? at_failed=false
12495 echo stderr:; cat "$at_stderr"
12496 echo stdout:; cat "$at_stdout"
12497 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:235"
12498 $at_failed && at_fn_log_failure
12502 $as_echo "$at_srcdir/cwrapper.at:237: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -version-info=0.0.0 -o liba.la -rpath \$libdir a.lo"
12503 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -o liba.la -rpath $libdir a.lo" "cwrapper.at:237"
12504 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -o liba.la -rpath $libdir a.lo
12505 ) >>"$at_stdout" 2>>"$at_stderr"
12506 at_status=$? at_failed=false
12508 echo stderr:; cat "$at_stderr"
12509 echo stdout:; cat "$at_stdout"
12510 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:237"
12511 $at_failed && at_fn_log_failure
12517 # build and run test application
12518 cat >m.c <<'_ATEOF'
12520 extern int liba_ver (void);
12523 int r = (liba_ver () == 2) ? 0 : 1;
12530 $as_echo "$at_srcdir/cwrapper.at:252: \$CC \$CPPFLAGS \$CFLAGS -c m.c"
12531 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c m.c" "cwrapper.at:252"
12532 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c m.c
12533 ) >>"$at_stdout" 2>>"$at_stderr"
12534 at_status=$? at_failed=false
12536 echo stderr:; cat "$at_stderr"
12537 echo stdout:; cat "$at_stdout"
12538 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:252"
12539 $at_failed && at_fn_log_failure
12544 $as_echo "$at_srcdir/cwrapper.at:254: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m1\$EXEEXT m.\$OBJEXT foo/liba.la"
12545 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m1$EXEEXT m.$OBJEXT foo/liba.la" "cwrapper.at:254"
12546 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m1$EXEEXT m.$OBJEXT foo/liba.la
12547 ) >>"$at_stdout" 2>>"$at_stderr"
12548 at_status=$? at_failed=false
12550 echo stderr:; cat "$at_stderr"
12551 echo stdout:; cat "$at_stdout"
12552 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:254"
12553 $at_failed && at_fn_log_failure
12556 lt_exe=./m1; if test -f "./m1$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12558 $as_echo "$at_srcdir/cwrapper.at:256: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12559 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "cwrapper.at:256"
12560 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12561 ) >>"$at_stdout" 2>>"$at_stderr"
12562 at_status=$? at_failed=false
12564 echo stderr:; cat "$at_stderr"
12565 echo stdout:; cat "$at_stdout"
12566 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:256"
12567 $at_failed && at_fn_log_failure
12573 $as_echo "$at_srcdir/cwrapper.at:258: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m2\$EXEEXT m.\$OBJEXT foo/liba.la -L\$inst/lib"
12574 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT foo/liba.la -L$inst/lib" "cwrapper.at:258"
12575 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT foo/liba.la -L$inst/lib
12576 ) >>"$at_stdout" 2>>"$at_stderr"
12577 at_status=$? at_failed=false
12579 echo stderr:; cat "$at_stderr"
12580 echo stdout:; cat "$at_stdout"
12581 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:258"
12582 $at_failed && at_fn_log_failure
12585 lt_exe=./m2; if test -f "./m2$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12587 $as_echo "$at_srcdir/cwrapper.at:260: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12588 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "cwrapper.at:260"
12589 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12590 ) >>"$at_stdout" 2>>"$at_stderr"
12591 at_status=$? at_failed=false
12593 echo stderr:; cat "$at_stderr"
12594 echo stdout:; cat "$at_stdout"
12595 at_fn_check_status 0 $at_status "$at_srcdir/cwrapper.at:260"
12596 $at_failed && at_fn_log_failure
12603 $at_times_p && times >"$at_times_file"
12604 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12605 read at_status <"$at_status_file"
12608 at_fn_group_banner 58 'deplib-in-subdir.at:34' \
12609 "deplib in subdir" " " 3
12612 $as_echo "58. $at_setup_line: testing $at_desc ..."
12617 cat >a1.c <<'_ATEOF'
12618 int a1 () { return 0; }
12621 cat >a2.c <<'_ATEOF'
12622 int a2 () { return 0; }
12625 cat >a3.c <<'_ATEOF'
12626 int a3 () { return 0; }
12629 cat >b1.c <<'_ATEOF'
12631 int b1 () { return a1 (); }
12634 cat >b2.c <<'_ATEOF'
12636 int b2 () { return a2 (); }
12639 cat >b3.c <<'_ATEOF'
12641 int b3 () { return a3 (); }
12644 cat >m.c <<'_ATEOF'
12648 int main () { return b1 () + b2 () + b3 (); }
12654 lib1dir=$instdir/lib1
12655 lib2dir=$instdir/lib2
12656 bindir=$instdir/bin
12657 addrunpath=$cwd/foobar
12658 LDFLAGS="$LDFLAGS -no-undefined"
12660 flags='-export-symbols-regex ".*"'
12662 mkdir -p sub1 sub2/subsub sub3/subsub $instdir $lib1dir $lib2dir $bindir
12664 for file in a1.c a2.c a3.c b1.c b2.c b3.c; do
12665 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
12667 $CC $CPPFLAGS $CFLAGS -c m.c
12669 $as_echo "$at_srcdir/deplib-in-subdir.at:81: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o sub1/liba1.la a1.lo -rpath \$lib1dir"
12670 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba1.la a1.lo -rpath $lib1dir" "deplib-in-subdir.at:81"
12671 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba1.la a1.lo -rpath $lib1dir
12672 ) >>"$at_stdout" 2>>"$at_stderr"
12673 at_status=$? at_failed=false
12675 echo stderr:; cat "$at_stderr"
12676 echo stdout:; cat "$at_stdout"
12677 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:81"
12678 $at_failed && at_fn_log_failure
12682 $as_echo "$at_srcdir/deplib-in-subdir.at:83: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o sub1/liba2.la a2.lo -rpath \$lib1dir"
12683 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba2.la a2.lo -rpath $lib1dir" "deplib-in-subdir.at:83"
12684 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba2.la a2.lo -rpath $lib1dir
12685 ) >>"$at_stdout" 2>>"$at_stderr"
12686 at_status=$? at_failed=false
12688 echo stderr:; cat "$at_stderr"
12689 echo stdout:; cat "$at_stdout"
12690 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:83"
12691 $at_failed && at_fn_log_failure
12695 $as_echo "$at_srcdir/deplib-in-subdir.at:85: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o sub1/liba3.la a3.lo -rpath \$lib1dir"
12696 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba3.la a3.lo -rpath $lib1dir" "deplib-in-subdir.at:85"
12697 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba3.la a3.lo -rpath $lib1dir
12698 ) >>"$at_stdout" 2>>"$at_stderr"
12699 at_status=$? at_failed=false
12701 echo stderr:; cat "$at_stderr"
12702 echo stdout:; cat "$at_stdout"
12703 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:85"
12704 $at_failed && at_fn_log_failure
12709 $as_echo "$at_srcdir/deplib-in-subdir.at:88: eval '\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o sub2/subsub/libb1.la b1.lo -rpath \$lib2dir sub1/liba1.la' \"\$flags\""
12710 at_fn_check_prepare_dynamic "eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub2/subsub/libb1.la b1.lo -rpath $lib2dir sub1/liba1.la' \"$flags\"" "deplib-in-subdir.at:88"
12711 ( $at_check_trace; eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub2/subsub/libb1.la b1.lo -rpath $lib2dir sub1/liba1.la' "$flags"
12712 ) >>"$at_stdout" 2>>"$at_stderr"
12713 at_status=$? at_failed=false
12715 echo stderr:; cat "$at_stderr"
12716 echo stdout:; cat "$at_stdout"
12717 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:88"
12718 $at_failed && at_fn_log_failure
12723 $as_echo "$at_srcdir/deplib-in-subdir.at:92: eval '\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o subsub/libb2.la ../b2.lo -rpath \$lib2dir ../sub1/liba2.la' \"\$flags\""
12724 at_fn_check_prepare_dynamic "eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o subsub/libb2.la ../b2.lo -rpath $lib2dir ../sub1/liba2.la' \"$flags\"" "deplib-in-subdir.at:92"
12725 ( $at_check_trace; eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o subsub/libb2.la ../b2.lo -rpath $lib2dir ../sub1/liba2.la' "$flags"
12726 ) >>"$at_stdout" 2>>"$at_stderr"
12727 at_status=$? at_failed=false
12729 echo stderr:; cat "$at_stderr"
12730 echo stdout:; cat "$at_stdout"
12731 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:92"
12732 $at_failed && at_fn_log_failure
12737 $as_echo "$at_srcdir/deplib-in-subdir.at:96: eval '\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libb3.la ../../b3.lo -rpath \$lib2dir ../../sub1/liba3.la' \"\$flags\""
12738 at_fn_check_prepare_dynamic "eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb3.la ../../b3.lo -rpath $lib2dir ../../sub1/liba3.la' \"$flags\"" "deplib-in-subdir.at:96"
12739 ( $at_check_trace; eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb3.la ../../b3.lo -rpath $lib2dir ../../sub1/liba3.la' "$flags"
12740 ) >>"$at_stdout" 2>>"$at_stderr"
12741 at_status=$? at_failed=false
12743 echo stderr:; cat "$at_stderr"
12744 echo stdout:; cat "$at_stdout"
12745 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:96"
12746 $at_failed && at_fn_log_failure
12751 $as_echo "$at_srcdir/deplib-in-subdir.at:100: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o sub3/subsub/m1\$EXEEXT m.\$OBJEXT sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la"
12752 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub3/subsub/m1$EXEEXT m.$OBJEXT sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la" "deplib-in-subdir.at:100"
12753 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub3/subsub/m1$EXEEXT m.$OBJEXT sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la
12754 ) >>"$at_stdout" 2>>"$at_stderr"
12755 at_status=$? at_failed=false
12757 echo stderr:; cat "$at_stderr"
12758 echo stdout:; cat "$at_stdout"
12759 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:100"
12760 $at_failed && at_fn_log_failure
12765 $as_echo "$at_srcdir/deplib-in-subdir.at:104: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o subsub/m2\$EXEEXT ../m.\$OBJEXT ../sub2/subsub/libb1.la ../sub2/subsub/libb2.la ../sub2/subsub/libb3.la"
12766 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o subsub/m2$EXEEXT ../m.$OBJEXT ../sub2/subsub/libb1.la ../sub2/subsub/libb2.la ../sub2/subsub/libb3.la" "deplib-in-subdir.at:104"
12767 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o subsub/m2$EXEEXT ../m.$OBJEXT ../sub2/subsub/libb1.la ../sub2/subsub/libb2.la ../sub2/subsub/libb3.la
12768 ) >>"$at_stdout" 2>>"$at_stderr"
12769 at_status=$? at_failed=false
12771 echo stderr:; cat "$at_stderr"
12772 echo stdout:; cat "$at_stdout"
12773 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:104"
12774 $at_failed && at_fn_log_failure
12779 $as_echo "$at_srcdir/deplib-in-subdir.at:108: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m3\$EXEEXT ../../m.\$OBJEXT ../../sub2/subsub/libb1.la ../../sub2/subsub/libb2.la ../../sub2/subsub/libb3.la"
12780 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m3$EXEEXT ../../m.$OBJEXT ../../sub2/subsub/libb1.la ../../sub2/subsub/libb2.la ../../sub2/subsub/libb3.la" "deplib-in-subdir.at:108"
12781 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m3$EXEEXT ../../m.$OBJEXT ../../sub2/subsub/libb1.la ../../sub2/subsub/libb2.la ../../sub2/subsub/libb3.la
12782 ) >>"$at_stdout" 2>>"$at_stderr"
12783 at_status=$? at_failed=false
12785 echo stderr:; cat "$at_stderr"
12786 echo stdout:; cat "$at_stdout"
12787 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:108"
12788 $at_failed && at_fn_log_failure
12794 lt_exe=./sub3/subsub/m$i; if test -f "./sub3/subsub/m$i$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12796 $as_echo "$at_srcdir/deplib-in-subdir.at:114: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12797 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "deplib-in-subdir.at:114"
12798 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12799 ) >>"$at_stdout" 2>>"$at_stderr"
12800 at_status=$? at_failed=false
12802 at_fn_diff_devnull "$at_stderr" || at_failed=:
12803 at_fn_diff_devnull "$at_stdout" || at_failed=:
12804 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:114"
12805 $at_failed && at_fn_log_failure
12810 lt_exe=./subsub/m$i; if test -f "./subsub/m$i$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12812 $as_echo "$at_srcdir/deplib-in-subdir.at:116: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12813 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "deplib-in-subdir.at:116"
12814 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12815 ) >>"$at_stdout" 2>>"$at_stderr"
12816 at_status=$? at_failed=false
12818 at_fn_diff_devnull "$at_stderr" || at_failed=:
12819 at_fn_diff_devnull "$at_stdout" || at_failed=:
12820 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:116"
12821 $at_failed && at_fn_log_failure
12826 lt_exe=./m$i; if test -f "./m$i$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12828 $as_echo "$at_srcdir/deplib-in-subdir.at:118: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12829 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "deplib-in-subdir.at:118"
12830 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12831 ) >>"$at_stdout" 2>>"$at_stderr"
12832 at_status=$? at_failed=false
12834 at_fn_diff_devnull "$at_stderr" || at_failed=:
12835 at_fn_diff_devnull "$at_stdout" || at_failed=:
12836 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:118"
12837 $at_failed && at_fn_log_failure
12846 $as_echo "$at_srcdir/deplib-in-subdir.at:123: \$LIBTOOL --mode=install cp sub1/liba\$i.la \$lib1dir/liba.la"
12847 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp sub1/liba$i.la $lib1dir/liba.la" "deplib-in-subdir.at:123"
12848 ( $at_check_trace; $LIBTOOL --mode=install cp sub1/liba$i.la $lib1dir/liba.la
12849 ) >>"$at_stdout" 2>>"$at_stderr"
12850 at_status=$? at_failed=false
12852 echo stderr:; cat "$at_stderr"
12853 echo stdout:; cat "$at_stdout"
12854 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:123"
12855 $at_failed && at_fn_log_failure
12861 $as_echo "$at_srcdir/deplib-in-subdir.at:126: \$LIBTOOL --mode=install cp sub2/subsub/libb1.la \$lib2dir/libb1.la"
12862 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp sub2/subsub/libb1.la $lib2dir/libb1.la" "deplib-in-subdir.at:126"
12863 ( $at_check_trace; $LIBTOOL --mode=install cp sub2/subsub/libb1.la $lib2dir/libb1.la
12864 ) >>"$at_stdout" 2>>"$at_stderr"
12865 at_status=$? at_failed=false
12867 echo stderr:; cat "$at_stderr"
12868 echo stdout:; cat "$at_stdout"
12869 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:126"
12870 $at_failed && at_fn_log_failure
12875 $as_echo "$at_srcdir/deplib-in-subdir.at:128: \$LIBTOOL --mode=install cp subsub/libb2.la \$lib2dir/libb2.la"
12876 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp subsub/libb2.la $lib2dir/libb2.la" "deplib-in-subdir.at:128"
12877 ( $at_check_trace; $LIBTOOL --mode=install cp subsub/libb2.la $lib2dir/libb2.la
12878 ) >>"$at_stdout" 2>>"$at_stderr"
12879 at_status=$? at_failed=false
12881 echo stderr:; cat "$at_stderr"
12882 echo stdout:; cat "$at_stdout"
12883 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:128"
12884 $at_failed && at_fn_log_failure
12889 $as_echo "$at_srcdir/deplib-in-subdir.at:130: \$LIBTOOL --mode=install cp libb3.la \$lib2dir/libb3.la"
12890 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp libb3.la $lib2dir/libb3.la" "deplib-in-subdir.at:130"
12891 ( $at_check_trace; $LIBTOOL --mode=install cp libb3.la $lib2dir/libb3.la
12892 ) >>"$at_stdout" 2>>"$at_stderr"
12893 at_status=$? at_failed=false
12895 echo stderr:; cat "$at_stderr"
12896 echo stdout:; cat "$at_stdout"
12897 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:130"
12898 $at_failed && at_fn_log_failure
12904 $as_echo "$at_srcdir/deplib-in-subdir.at:133: \$LIBTOOL --mode=install cp sub3/subsub/m1\$EXEEXT \$bindir/m1\$EXEEXT"
12905 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp sub3/subsub/m1$EXEEXT $bindir/m1$EXEEXT" "deplib-in-subdir.at:133"
12906 ( $at_check_trace; $LIBTOOL --mode=install cp sub3/subsub/m1$EXEEXT $bindir/m1$EXEEXT
12907 ) >>"$at_stdout" 2>>"$at_stderr"
12908 at_status=$? at_failed=false
12910 echo stderr:; cat "$at_stderr"
12911 echo stdout:; cat "$at_stdout"
12912 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:133"
12913 $at_failed && at_fn_log_failure
12918 $as_echo "$at_srcdir/deplib-in-subdir.at:135: \$LIBTOOL --mode=install cp subsub/m2\$EXEEXT \$bindir/m2\$EXEEXT"
12919 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp subsub/m2$EXEEXT $bindir/m2$EXEEXT" "deplib-in-subdir.at:135"
12920 ( $at_check_trace; $LIBTOOL --mode=install cp subsub/m2$EXEEXT $bindir/m2$EXEEXT
12921 ) >>"$at_stdout" 2>>"$at_stderr"
12922 at_status=$? at_failed=false
12924 echo stderr:; cat "$at_stderr"
12925 echo stdout:; cat "$at_stdout"
12926 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:135"
12927 $at_failed && at_fn_log_failure
12932 $as_echo "$at_srcdir/deplib-in-subdir.at:137: \$LIBTOOL --mode=install cp m3\$EXEEXT \$bindir/m3\$EXEEXT"
12933 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp m3$EXEEXT $bindir/m3$EXEEXT" "deplib-in-subdir.at:137"
12934 ( $at_check_trace; $LIBTOOL --mode=install cp m3$EXEEXT $bindir/m3$EXEEXT
12935 ) >>"$at_stdout" 2>>"$at_stderr"
12936 at_status=$? at_failed=false
12938 echo stderr:; cat "$at_stderr"
12939 echo stdout:; cat "$at_stdout"
12940 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:137"
12941 $at_failed && at_fn_log_failure
12947 $as_echo "$at_srcdir/deplib-in-subdir.at:140: \$LIBTOOL --mode=clean rm -f sub1/liba1.la sub1/liba2.la sub1/liba3.la sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la sub3/subsub/m1\$EXEEXT sub3/subsub/m2\$EXEEXT sub3/subsub/m3\$EXEEXT"
12948 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f sub1/liba1.la sub1/liba2.la sub1/liba3.la sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la sub3/subsub/m1$EXEEXT sub3/subsub/m2$EXEEXT sub3/subsub/m3$EXEEXT" "deplib-in-subdir.at:140"
12949 ( $at_check_trace; $LIBTOOL --mode=clean rm -f sub1/liba1.la sub1/liba2.la sub1/liba3.la sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la sub3/subsub/m1$EXEEXT sub3/subsub/m2$EXEEXT sub3/subsub/m3$EXEEXT
12950 ) >>"$at_stdout" 2>>"$at_stderr"
12951 at_status=$? at_failed=false
12953 echo stderr:; cat "$at_stderr"
12954 echo stdout:; cat "$at_stdout"
12955 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:140"
12956 $at_failed && at_fn_log_failure
12961 lt_exe=$bindir/m$i$EXEEXT; if test -f "$bindir/m$i$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12963 $as_echo "$at_srcdir/deplib-in-subdir.at:146: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12964 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "deplib-in-subdir.at:146"
12965 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12966 ) >>"$at_stdout" 2>>"$at_stderr"
12967 at_status=$? at_failed=false
12969 at_fn_diff_devnull "$at_stderr" || at_failed=:
12970 at_fn_diff_devnull "$at_stdout" || at_failed=:
12971 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:146"
12972 $at_failed && at_fn_log_failure
12977 lt_exe=./m$i$EXEEXT; if test -f "./m$i$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12979 $as_echo "$at_srcdir/deplib-in-subdir.at:148: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
12980 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "deplib-in-subdir.at:148"
12981 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
12982 ) >>"$at_stdout" 2>>"$at_stderr"
12983 at_status=$? at_failed=false
12985 at_fn_diff_devnull "$at_stderr" || at_failed=:
12986 at_fn_diff_devnull "$at_stdout" || at_failed=:
12987 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:148"
12988 $at_failed && at_fn_log_failure
12995 PATH=$bindir${PATH_SEPARATOR-:}$PATH
12997 lt_exe=m$i$EXEEXT; if test -f "m$i$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
12999 $as_echo "$at_srcdir/deplib-in-subdir.at:154: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
13000 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "deplib-in-subdir.at:154"
13001 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
13002 ) >>"$at_stdout" 2>>"$at_stderr"
13003 at_status=$? at_failed=false
13005 at_fn_diff_devnull "$at_stderr" || at_failed=:
13006 at_fn_diff_devnull "$at_stdout" || at_failed=:
13007 at_fn_check_status 0 $at_status "$at_srcdir/deplib-in-subdir.at:154"
13008 $at_failed && at_fn_log_failure
13015 $at_times_p && times >"$at_times_file"
13016 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13017 read at_status <"$at_status_file"
13020 at_fn_group_banner 59 'infer-tag.at:30' \
13021 "inferred tag" " " 3
13024 $as_echo "59. $at_setup_line: testing $at_desc ..."
13029 cat >a.c <<'_ATEOF'
13030 int a (void) { return 0; }
13035 $as_echo "$at_srcdir/infer-tag.at:37: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c a.c"
13036 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c" "infer-tag.at:37"
13037 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
13038 ) >>"$at_stdout" 2>>"$at_stderr"
13039 at_status=$? at_failed=false
13041 echo stderr:; cat "$at_stderr"
13042 echo stdout:; cat "$at_stdout"
13043 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:37"
13044 $at_failed && at_fn_log_failure
13049 $at_times_p && times >"$at_times_file"
13050 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13051 read at_status <"$at_status_file"
13054 at_fn_group_banner 60 'infer-tag.at:42' \
13055 "CXX inferred tag" " " 3
13058 $as_echo "60. $at_setup_line: testing $at_desc ..."
13063 $as_echo "$at_srcdir/infer-tag.at:43: { test -n \"\$CXX\" && test \"X\$CXX\" != Xno; } || (exit 77)"
13064 at_fn_check_prepare_dynamic "{ test -n \"$CXX\" && test \"X$CXX\" != Xno; } || (exit 77)" "infer-tag.at:43"
13065 ( $at_check_trace; { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
13066 ) >>"$at_stdout" 2>>"$at_stderr"
13067 at_status=$? at_failed=false
13069 at_fn_diff_devnull "$at_stderr" || at_failed=:
13070 at_fn_diff_devnull "$at_stdout" || at_failed=:
13071 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:43"
13072 $at_failed && at_fn_log_failure
13076 $as_echo "$at_srcdir/infer-tag.at:43: test \"X\$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)"
13077 at_fn_check_prepare_dynamic "test \"X$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)" "infer-tag.at:43"
13078 ( $at_check_trace; test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)
13079 ) >>"$at_stdout" 2>>"$at_stderr"
13080 at_status=$? at_failed=false
13082 at_fn_diff_devnull "$at_stderr" || at_failed=:
13083 at_fn_diff_devnull "$at_stdout" || at_failed=:
13084 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:43"
13085 $at_failed && at_fn_log_failure
13091 cat >a.cpp <<'_ATEOF'
13092 int a (void) { return 0; }
13097 $as_echo "$at_srcdir/infer-tag.at:50: \$LIBTOOL --mode=compile \$CXX \$CPPFLAGS \$CXXFLAGS -c a.cpp"
13098 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CXX $CPPFLAGS $CXXFLAGS -c a.cpp" "infer-tag.at:50"
13099 ( $at_check_trace; $LIBTOOL --mode=compile $CXX $CPPFLAGS $CXXFLAGS -c a.cpp
13100 ) >>"$at_stdout" 2>>"$at_stderr"
13101 at_status=$? at_failed=false
13103 echo stderr:; cat "$at_stderr"
13104 echo stdout:; cat "$at_stdout"
13105 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:50"
13106 $at_failed && at_fn_log_failure
13111 $at_times_p && times >"$at_times_file"
13112 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13113 read at_status <"$at_status_file"
13116 at_fn_group_banner 61 'infer-tag.at:55' \
13117 "F77 inferred tag" " " 3
13120 $as_echo "61. $at_setup_line: testing $at_desc ..."
13125 $as_echo "$at_srcdir/infer-tag.at:56: { test -n \"\$F77\" && test \"X\$F77\" != Xno; } || (exit 77)"
13126 at_fn_check_prepare_dynamic "{ test -n \"$F77\" && test \"X$F77\" != Xno; } || (exit 77)" "infer-tag.at:56"
13127 ( $at_check_trace; { test -n "$F77" && test "X$F77" != Xno; } || (exit 77)
13128 ) >>"$at_stdout" 2>>"$at_stderr"
13129 at_status=$? at_failed=false
13131 at_fn_diff_devnull "$at_stderr" || at_failed=:
13132 at_fn_diff_devnull "$at_stdout" || at_failed=:
13133 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:56"
13134 $at_failed && at_fn_log_failure
13141 cat >a.f <<'_ATEOF'
13148 $as_echo "$at_srcdir/infer-tag.at:64: \$LIBTOOL --mode=compile \$F77 \$FFLAGS -c a.f"
13149 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $F77 $FFLAGS -c a.f" "infer-tag.at:64"
13150 ( $at_check_trace; $LIBTOOL --mode=compile $F77 $FFLAGS -c a.f
13151 ) >>"$at_stdout" 2>>"$at_stderr"
13152 at_status=$? at_failed=false
13154 echo stderr:; cat "$at_stderr"
13155 echo stdout:; cat "$at_stdout"
13156 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:64"
13157 $at_failed && at_fn_log_failure
13162 $at_times_p && times >"$at_times_file"
13163 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13164 read at_status <"$at_status_file"
13167 at_fn_group_banner 62 'infer-tag.at:69' \
13168 "FC inferred tag" " " 3
13171 $as_echo "62. $at_setup_line: testing $at_desc ..."
13176 $as_echo "$at_srcdir/infer-tag.at:70: { test -n \"\$FC\" && test \"X\$FC\" != Xno; } || (exit 77)"
13177 at_fn_check_prepare_dynamic "{ test -n \"$FC\" && test \"X$FC\" != Xno; } || (exit 77)" "infer-tag.at:70"
13178 ( $at_check_trace; { test -n "$FC" && test "X$FC" != Xno; } || (exit 77)
13179 ) >>"$at_stdout" 2>>"$at_stderr"
13180 at_status=$? at_failed=false
13182 at_fn_diff_devnull "$at_stderr" || at_failed=:
13183 at_fn_diff_devnull "$at_stdout" || at_failed=:
13184 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:70"
13185 $at_failed && at_fn_log_failure
13192 cat >a.f <<'_ATEOF'
13199 $as_echo "$at_srcdir/infer-tag.at:78: \$LIBTOOL --mode=compile \$FC \$FCFLAGS -c a.f"
13200 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $FC $FCFLAGS -c a.f" "infer-tag.at:78"
13201 ( $at_check_trace; $LIBTOOL --mode=compile $FC $FCFLAGS -c a.f
13202 ) >>"$at_stdout" 2>>"$at_stderr"
13203 at_status=$? at_failed=false
13205 echo stderr:; cat "$at_stderr"
13206 echo stdout:; cat "$at_stdout"
13207 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:78"
13208 $at_failed && at_fn_log_failure
13213 $at_times_p && times >"$at_times_file"
13214 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13215 read at_status <"$at_status_file"
13218 at_fn_group_banner 63 'infer-tag.at:83' \
13219 "GCJ inferred tag" " " 3
13222 $as_echo "63. $at_setup_line: testing $at_desc ..."
13227 $as_echo "$at_srcdir/infer-tag.at:84: { test -n \"\$GCJ\" && test \"X\$GCJ\" != Xno; } || (exit 77)"
13228 at_fn_check_prepare_dynamic "{ test -n \"$GCJ\" && test \"X$GCJ\" != Xno; } || (exit 77)" "infer-tag.at:84"
13229 ( $at_check_trace; { test -n "$GCJ" && test "X$GCJ" != Xno; } || (exit 77)
13230 ) >>"$at_stdout" 2>>"$at_stderr"
13231 at_status=$? at_failed=false
13233 at_fn_diff_devnull "$at_stderr" || at_failed=:
13234 at_fn_diff_devnull "$at_stdout" || at_failed=:
13235 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:84"
13236 $at_failed && at_fn_log_failure
13239 # There are just too many broken gcj installations out there, either missing
13240 # libgcj.spec or unable to find it. Skip the test for them.
13241 cat >gcj_test.java <<'_ATEOF'
13242 public class gcj_test {
13243 public static void main(String[] argv) { }
13248 $as_echo "$at_srcdir/infer-tag.at:84: \$GCJ \$GCJFLAGS -c gcj_test.java || exit 77"
13249 at_fn_check_prepare_dynamic "$GCJ $GCJFLAGS -c gcj_test.java || exit 77" "infer-tag.at:84"
13250 ( $at_check_trace; $GCJ $GCJFLAGS -c gcj_test.java || exit 77
13251 ) >>"$at_stdout" 2>>"$at_stderr"
13252 at_status=$? at_failed=false
13254 echo stderr:; cat "$at_stderr"
13255 echo stdout:; cat "$at_stdout"
13256 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:84"
13257 $at_failed && at_fn_log_failure
13263 cat >A.java <<'_ATEOF'
13266 public A () { a = 0; }
13272 $as_echo "$at_srcdir/infer-tag.at:94: \$LIBTOOL --mode=compile \$GCJ \$GCJCFLAGS -c A.java"
13273 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $GCJ $GCJCFLAGS -c A.java" "infer-tag.at:94"
13274 ( $at_check_trace; $LIBTOOL --mode=compile $GCJ $GCJCFLAGS -c A.java
13275 ) >>"$at_stdout" 2>>"$at_stderr"
13276 at_status=$? at_failed=false
13278 echo stderr:; cat "$at_stderr"
13279 echo stdout:; cat "$at_stdout"
13280 at_fn_check_status 0 $at_status "$at_srcdir/infer-tag.at:94"
13281 $at_failed && at_fn_log_failure
13286 $at_times_p && times >"$at_times_file"
13287 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13288 read at_status <"$at_status_file"
13291 at_fn_group_banner 64 'localization.at:24' \
13292 "localized compiler messages" " " 3
13295 $as_echo "64. $at_setup_line: testing $at_desc ..."
13300 # Let's try German locale. :-)
13303 cat >a.c <<'_ATEOF'
13307 cat >b.c <<'_ATEOF'
13312 # First see if setting a locale is accepted at all.
13314 $as_echo "$at_srcdir/localization.at:39: (LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE \$CC \$CPPFLAGS \$CFLAGS -c b.c) || exit 77"
13315 at_fn_check_prepare_dynamic "(LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE $CC $CPPFLAGS $CFLAGS -c b.c) || exit 77" "localization.at:39"
13316 ( $at_check_trace; (LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE $CC $CPPFLAGS $CFLAGS -c b.c) || exit 77
13317 ) >>"$at_stdout" 2>>"$at_stderr"
13318 at_status=$? at_failed=false
13320 echo stderr:; tee stderr <"$at_stderr"
13321 echo stdout:; tee stdout <"$at_stdout"
13322 at_fn_check_status 0 $at_status "$at_srcdir/localization.at:39"
13323 $at_failed && at_fn_log_failure
13327 # Find out about expected output.
13329 $as_echo "$at_srcdir/localization.at:43: (LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE \$CC \$CPPFLAGS \$CFLAGS -c a.c) || exit 1"
13330 at_fn_check_prepare_dynamic "(LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE $CC $CPPFLAGS $CFLAGS -c a.c) || exit 1" "localization.at:43"
13331 ( $at_check_trace; (LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE $CC $CPPFLAGS $CFLAGS -c a.c) || exit 1
13332 ) >>"$at_stdout" 2>>"$at_stderr"
13333 at_status=$? at_failed=false
13335 echo stderr:; tee stderr <"$at_stderr"
13336 echo stdout:; tee stdout <"$at_stdout"
13337 at_fn_check_status 1 $at_status "$at_srcdir/localization.at:43"
13338 $at_failed && at_fn_log_failure
13341 _ltbase=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
13342 sed "/^distcc\[[0-9]*\]/d
13343 /^$_ltbase: compile/d
13344 s/\(tmp\/\{1,\}cc\)\([a-zA-Z0-9_]\{1,\}\)/\1-normalized-tmpname/g" < stdout > stdout.t
13347 tr -d '\015' < stdout.t > expected-stdout ;;
13349 cp stdout.t expected-stdout ;;
13351 _ltbase=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
13352 sed "/^distcc\[[0-9]*\]/d
13353 /^$_ltbase: compile/d
13354 s/\(tmp\/\{1,\}cc\)\([a-zA-Z0-9_]\{1,\}\)/\1-normalized-tmpname/g" < stderr > stderr.t
13357 tr -d '\015' < stderr.t > expected-stderr ;;
13359 cp stderr.t expected-stderr ;;
13362 $as_echo "$at_srcdir/localization.at:47: (LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE \$LIBTOOL --mode=compile --tag=CC \$CC \$CPPFLAGS \$CFLAGS -c a.c) || exit 1"
13363 at_fn_check_prepare_dynamic "(LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c) || exit 1" "localization.at:47"
13364 ( $at_check_trace; (LANG=de_DE LANGUAGE=de_DE LC_ALL=de_DE $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c) || exit 1
13365 ) >>"$at_stdout" 2>>"$at_stderr"
13366 at_status=$? at_failed=false
13368 echo stderr:; tee stderr <"$at_stderr"
13369 echo stdout:; tee stdout <"$at_stdout"
13370 at_fn_check_status 1 $at_status "$at_srcdir/localization.at:47"
13371 $at_failed && at_fn_log_failure
13374 _ltbase=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
13375 sed "/^distcc\[[0-9]*\]/d
13376 /^$_ltbase: compile/d
13377 s/\(tmp\/\{1,\}cc\)\([a-zA-Z0-9_]\{1,\}\)/\1-normalized-tmpname/g" < stdout > stdout.t
13380 tr -d '\015' < stdout.t > libtool-stdout ;;
13382 cp stdout.t libtool-stdout ;;
13384 _ltbase=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
13385 sed "/^distcc\[[0-9]*\]/d
13386 /^$_ltbase: compile/d
13387 s/\(tmp\/\{1,\}cc\)\([a-zA-Z0-9_]\{1,\}\)/\1-normalized-tmpname/g" < stderr > stderr.t
13390 tr -d '\015' < stderr.t > libtool-stderr ;;
13392 cp stderr.t libtool-stderr ;;
13394 # Avoid these errors:
13396 # /bin/sh: warning: setlocale: LC_ALL: cannot change locale (de_DE)
13398 # Warning! One or more of your selected locales are not available.
13399 # Please invoke the commands "locale" and "locale -a" to verify your
13400 # selections and the available locales.
13402 # Continuing processing using the "C" locale.
13404 $as_echo "$at_srcdir/localization.at:60: grep locale stdout stderr && exit 77"
13405 at_fn_check_prepare_trace "localization.at:60"
13406 ( $at_check_trace; grep locale stdout stderr && exit 77
13407 ) >>"$at_stdout" 2>>"$at_stderr"
13408 at_status=$? at_failed=false
13410 at_fn_diff_devnull "$at_stderr" || at_failed=:
13411 at_fn_diff_devnull "$at_stdout" || at_failed=:
13412 at_fn_check_status 1 $at_status "$at_srcdir/localization.at:60"
13413 $at_failed && at_fn_log_failure
13417 $as_echo "$at_srcdir/localization.at:61: diff expected-stderr libtool-stderr"
13418 at_fn_check_prepare_trace "localization.at:61"
13419 ( $at_check_trace; diff expected-stderr libtool-stderr
13420 ) >>"$at_stdout" 2>>"$at_stderr"
13421 at_status=$? at_failed=false
13423 at_fn_diff_devnull "$at_stderr" || at_failed=:
13424 at_fn_diff_devnull "$at_stdout" || at_failed=:
13425 at_fn_check_status 0 $at_status "$at_srcdir/localization.at:61"
13426 $at_failed && at_fn_log_failure
13430 $as_echo "$at_srcdir/localization.at:62: diff expected-stdout libtool-stdout"
13431 at_fn_check_prepare_trace "localization.at:62"
13432 ( $at_check_trace; diff expected-stdout libtool-stdout
13433 ) >>"$at_stdout" 2>>"$at_stderr"
13434 at_status=$? at_failed=false
13436 at_fn_diff_devnull "$at_stderr" || at_failed=:
13437 at_fn_diff_devnull "$at_stdout" || at_failed=:
13438 at_fn_check_status 0 $at_status "$at_srcdir/localization.at:62"
13439 $at_failed && at_fn_log_failure
13443 # check that we get our quoting right.
13446 $as_echo "$at_srcdir/localization.at:67: (LANGUAGE='a; nosuchprogram \" '\\'' & \$x /#+*(){}|,:\`\\ !%' \$LIBTOOL --mode=compile --tag=CC \$CC \$CPPFLAGS \$CFLAGS -c b.c)"
13447 at_fn_check_prepare_notrace 'a `...` command substitution' "localization.at:67"
13448 ( $at_check_trace; (LANGUAGE='a; nosuchprogram " '\'' & $x /#+*(){}|,:`\ !%' $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c b.c)
13449 ) >>"$at_stdout" 2>>"$at_stderr"
13450 at_status=$? at_failed=false
13452 echo stderr:; tee stderr <"$at_stderr"
13453 echo stdout:; tee stdout <"$at_stdout"
13454 at_fn_check_status 0 $at_status "$at_srcdir/localization.at:67"
13455 $at_failed && at_fn_log_failure
13459 $as_echo "$at_srcdir/localization.at:69: grep nosuchprogram stdout stderr"
13460 at_fn_check_prepare_trace "localization.at:69"
13461 ( $at_check_trace; grep nosuchprogram stdout stderr
13462 ) >>"$at_stdout" 2>>"$at_stderr"
13463 at_status=$? at_failed=false
13465 at_fn_diff_devnull "$at_stderr" || at_failed=:
13466 at_fn_diff_devnull "$at_stdout" || at_failed=:
13467 at_fn_check_status 1 $at_status "$at_srcdir/localization.at:69"
13468 $at_failed && at_fn_log_failure
13475 $at_times_p && times >"$at_times_file"
13476 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13477 read at_status <"$at_status_file"
13480 at_fn_group_banner 65 'nocase.at:26' \
13481 "nocase library search" " " 3
13484 $as_echo "65. $at_setup_line: testing $at_desc ..."
13489 eval `$LIBTOOL --config | $EGREP '^(want_nocaseglob|file_magic_glob)='`
13492 $as_echo "$at_srcdir/nocase.at:31: test \"\$want_nocaseglob\" != yes && test -z \"\$file_magic_glob\" && exit 77"
13493 at_fn_check_prepare_dynamic "test \"$want_nocaseglob\" != yes && test -z \"$file_magic_glob\" && exit 77" "nocase.at:31"
13494 ( $at_check_trace; test "$want_nocaseglob" != yes && test -z "$file_magic_glob" && exit 77
13495 ) >>"$at_stdout" 2>>"$at_stderr"
13496 at_status=$? at_failed=false
13498 echo stderr:; cat "$at_stderr"
13499 echo stdout:; cat "$at_stdout"
13500 at_fn_check_status 1 $at_status "$at_srcdir/nocase.at:31"
13501 $at_failed && at_fn_log_failure
13506 cat >foo/Foo.c <<'_ATEOF'
13508 int Foo (void) { return 1; }
13513 cat >bar/bar.c <<'_ATEOF'
13515 extern int Foo (void);
13516 int bar (void) { return Foo (); }
13520 cat >main.c <<'_ATEOF'
13522 extern int bar (void);
13523 int main (void) { return bar (); }
13527 libdir=`pwd`/inst/lib
13528 mkdir inst inst/bin inst/lib
13530 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o foo/Foo.lo foo/Foo.c
13532 $as_echo "$at_srcdir/nocase.at:58: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o foo/libFoo.la foo/Foo.lo -no-undefined -version-info 1:0:0 -rpath \$libdir"
13533 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o foo/libFoo.la foo/Foo.lo -no-undefined -version-info 1:0:0 -rpath $libdir" "nocase.at:58"
13534 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o foo/libFoo.la foo/Foo.lo -no-undefined -version-info 1:0:0 -rpath $libdir
13535 ) >>"$at_stdout" 2>>"$at_stderr"
13536 at_status=$? at_failed=false
13538 echo stderr:; cat "$at_stderr"
13539 echo stdout:; cat "$at_stdout"
13540 at_fn_check_status 0 $at_status "$at_srcdir/nocase.at:58"
13541 $at_failed && at_fn_log_failure
13545 $as_echo "$at_srcdir/nocase.at:61: \$LIBTOOL --mode=install cp foo/libFoo.la \$libdir"
13546 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp foo/libFoo.la $libdir" "nocase.at:61"
13547 ( $at_check_trace; $LIBTOOL --mode=install cp foo/libFoo.la $libdir
13548 ) >>"$at_stdout" 2>>"$at_stderr"
13549 at_status=$? at_failed=false
13551 echo stderr:; cat "$at_stderr"
13552 echo stdout:; cat "$at_stdout"
13553 at_fn_check_status 0 $at_status "$at_srcdir/nocase.at:61"
13554 $at_failed && at_fn_log_failure
13558 $as_echo "$at_srcdir/nocase.at:63: \$LIBTOOL --mode=clean rm -f foo/libFoo.la"
13559 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f foo/libFoo.la" "nocase.at:63"
13560 ( $at_check_trace; $LIBTOOL --mode=clean rm -f foo/libFoo.la
13561 ) >>"$at_stdout" 2>>"$at_stderr"
13562 at_status=$? at_failed=false
13564 echo stderr:; cat "$at_stderr"
13565 echo stdout:; cat "$at_stdout"
13566 at_fn_check_status 0 $at_status "$at_srcdir/nocase.at:63"
13567 $at_failed && at_fn_log_failure
13571 rm -f $libdir/libFoo.la
13573 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar/bar.lo bar/bar.c
13575 $as_echo "$at_srcdir/nocase.at:69: \$LIBTOOL --mode=link --tag=CC \$CC \$CFLAGS \$LDFLAGS -o bar/libbar.la bar/bar.lo -L\$libdir -lfoo -no-undefined -version-info 1:0:0 -rpath \$libdir"
13576 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o bar/libbar.la bar/bar.lo -L$libdir -lfoo -no-undefined -version-info 1:0:0 -rpath $libdir" "nocase.at:69"
13577 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o bar/libbar.la bar/bar.lo -L$libdir -lfoo -no-undefined -version-info 1:0:0 -rpath $libdir
13578 ) >>"$at_stdout" 2>>"$at_stderr"
13579 at_status=$? at_failed=false
13581 echo stderr:; cat "$at_stderr"
13582 echo stdout:; cat "$at_stdout"
13583 at_fn_check_status 0 $at_status "$at_srcdir/nocase.at:69"
13584 $at_failed && at_fn_log_failure
13588 $as_echo "$at_srcdir/nocase.at:72: \$LIBTOOL --mode=install cp bar/libbar.la \$libdir"
13589 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp bar/libbar.la $libdir" "nocase.at:72"
13590 ( $at_check_trace; $LIBTOOL --mode=install cp bar/libbar.la $libdir
13591 ) >>"$at_stdout" 2>>"$at_stderr"
13592 at_status=$? at_failed=false
13594 echo stderr:; cat "$at_stderr"
13595 echo stdout:; cat "$at_stdout"
13596 at_fn_check_status 0 $at_status "$at_srcdir/nocase.at:72"
13597 $at_failed && at_fn_log_failure
13601 str=`$EGREP '^(old_library)=' < $libdir/libbar.la`
13603 libbar=$old_library
13604 rm -f $libdir/$libbar
13606 $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o main.$OBJEXT main.c
13609 $as_echo "$at_srcdir/nocase.at:82: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT -L\$libdir -lbar"
13610 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -L$libdir -lbar" "nocase.at:82"
13611 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -L$libdir -lbar
13612 ) >>"$at_stdout" 2>>"$at_stderr"
13613 at_status=$? at_failed=false
13615 echo stderr:; cat "$at_stderr"
13616 echo stdout:; cat "$at_stdout"
13617 at_fn_check_status 0 $at_status "$at_srcdir/nocase.at:82"
13618 $at_failed && at_fn_log_failure
13623 $at_times_p && times >"$at_times_file"
13624 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13625 read at_status <"$at_status_file"
13628 at_fn_group_banner 66 'install.at:25' \
13629 "Install tests" " " 3
13632 $as_echo "66. $at_setup_line: testing $at_desc ..."
13637 # Ensure that install_override_mode overrides the mode of the shared
13638 # library (and only the shared library).
13641 $as_echo "$at_srcdir/install.at:31: \$LIBTOOL --features | grep 'enable shared libraries' || exit 77"
13642 at_fn_check_prepare_notrace 'a shell pipeline' "install.at:31"
13643 ( $at_check_trace; $LIBTOOL --features | grep 'enable shared libraries' || exit 77
13644 ) >>"$at_stdout" 2>>"$at_stderr"
13645 at_status=$? at_failed=false
13647 at_fn_diff_devnull "$at_stderr" || at_failed=:
13648 echo stdout:; cat "$at_stdout"
13649 at_fn_check_status 0 $at_status "$at_srcdir/install.at:31"
13650 $at_failed && at_fn_log_failure
13653 sed 's,^\(install_override_mode\)=.*,\1=755,' < $LIBTOOL > ./libtool
13655 chmod a+rx $LIBTOOL
13660 echo 'int a () { return 0; }' > a.c
13661 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
13663 $as_echo "$at_srcdir/install.at:42: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la a.lo -rpath \$inst -no-undefined"
13664 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $inst -no-undefined" "install.at:42"
13665 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $inst -no-undefined
13666 ) >>"$at_stdout" 2>>"$at_stderr"
13667 at_status=$? at_failed=false
13669 echo stderr:; cat "$at_stderr"
13670 echo stdout:; cat "$at_stdout"
13671 at_fn_check_status 0 $at_status "$at_srcdir/install.at:42"
13672 $at_failed && at_fn_log_failure
13676 $as_echo "$at_srcdir/install.at:44: \$LIBTOOL --mode=install \$lt_INSTALL liba.la \$inst"
13677 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL liba.la $inst" "install.at:44"
13678 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL liba.la $inst
13679 ) >>"$at_stdout" 2>>"$at_stderr"
13680 at_status=$? at_failed=false
13682 echo stderr:; cat "$at_stderr"
13683 echo stdout:; tee stdout <"$at_stdout"
13684 at_fn_check_status 0 $at_status "$at_srcdir/install.at:44"
13685 $at_failed && at_fn_log_failure
13689 $as_echo "$at_srcdir/install.at:46: grep ' -m 755' stdout"
13690 at_fn_check_prepare_trace "install.at:46"
13691 ( $at_check_trace; grep ' -m 755' stdout
13692 ) >>"$at_stdout" 2>>"$at_stderr"
13693 at_status=$? at_failed=false
13695 at_fn_diff_devnull "$at_stderr" || at_failed=:
13696 echo stdout:; cat "$at_stdout"
13697 at_fn_check_status 0 $at_status "$at_srcdir/install.at:46"
13698 $at_failed && at_fn_log_failure
13702 $as_echo "$at_srcdir/install.at:47: \$LIBTOOL --mode=install \$lt_INSTALL -m 644 liba.la \$inst"
13703 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install $lt_INSTALL -m 644 liba.la $inst" "install.at:47"
13704 ( $at_check_trace; $LIBTOOL --mode=install $lt_INSTALL -m 644 liba.la $inst
13705 ) >>"$at_stdout" 2>>"$at_stderr"
13706 at_status=$? at_failed=false
13708 echo stderr:; cat "$at_stderr"
13709 echo stdout:; tee stdout <"$at_stdout"
13710 at_fn_check_status 0 $at_status "$at_srcdir/install.at:47"
13711 $at_failed && at_fn_log_failure
13715 $as_echo "$at_srcdir/install.at:49: grep ' -m 755' stdout"
13716 at_fn_check_prepare_trace "install.at:49"
13717 ( $at_check_trace; grep ' -m 755' stdout
13718 ) >>"$at_stdout" 2>>"$at_stderr"
13719 at_status=$? at_failed=false
13721 at_fn_diff_devnull "$at_stderr" || at_failed=:
13722 echo stdout:; cat "$at_stdout"
13723 at_fn_check_status 0 $at_status "$at_srcdir/install.at:49"
13724 $at_failed && at_fn_log_failure
13728 $as_echo "$at_srcdir/install.at:50: grep ' -m 644.*liba.la' stdout"
13729 at_fn_check_prepare_trace "install.at:50"
13730 ( $at_check_trace; grep ' -m 644.*liba.la' stdout
13731 ) >>"$at_stdout" 2>>"$at_stderr"
13732 at_status=$? at_failed=false
13734 at_fn_diff_devnull "$at_stderr" || at_failed=:
13735 echo stdout:; cat "$at_stdout"
13736 at_fn_check_status 0 $at_status "$at_srcdir/install.at:50"
13737 $at_failed && at_fn_log_failure
13742 $at_times_p && times >"$at_times_file"
13743 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13744 read at_status <"$at_status_file"
13747 at_fn_group_banner 67 'versioning.at:24' \
13751 $as_echo "67. $at_setup_line: testing $at_desc ..."
13756 eval "`$LIBTOOL --config | $EGREP '^(objdir|host_os)='`"
13758 # Setup some library and program sources:
13759 # a library (a1), a new revision (a2), a compatible update (a3),
13760 # an incompatible update (a4).
13761 # Another library (libb) using liba, and a couple of programs,
13762 # using liba directly and indirectly through libb.
13764 cat >liba1.c <<'_ATEOF'
13773 cat >liba2.c <<'_ATEOF'
13775 /* The internal detail should be static. It isn't static in this test,
13776 so we can later find out that it's this revision of the library. */
13777 int internal_detail = 42;
13780 return internal_detail - 42;
13785 cat >liba3.c <<'_ATEOF'
13798 cat >liba4.c <<'_ATEOF'
13807 cat >libb.c <<'_ATEOF'
13809 extern int a (void);
13817 cat >prog1.c <<'_ATEOF'
13819 extern int a (void);
13827 cat >prog2.c <<'_ATEOF'
13829 extern int b (void);
13841 LDFLAGS="$LDFLAGS -no-undefined"
13842 mkdir $inst $libdir $bindir
13844 for file in liba1.c liba2.c liba3.c liba4.c libb.c; do
13845 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
13847 for file in prog1.c prog2.c; do
13848 $CC $CPPFLAGS $CFLAGS -c $file
13851 # Setup is finished here.
13853 # Hypothesis: -version-info is ignored for convenience archives.
13855 $as_echo "$at_srcdir/versioning.at:111: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba1.lo -version-info 0:0:0"
13856 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info 0:0:0" "versioning.at:111"
13857 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info 0:0:0
13858 ) >>"$at_stdout" 2>>"$at_stderr"
13859 at_status=$? at_failed=false
13861 echo stderr:; tee stderr <"$at_stderr"
13862 echo stdout:; cat "$at_stdout"
13863 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:111"
13864 $at_failed && at_fn_log_failure
13868 $as_echo "$at_srcdir/versioning.at:113: grep 'version-info.*ignored for convenience' stderr"
13869 at_fn_check_prepare_trace "versioning.at:113"
13870 ( $at_check_trace; grep 'version-info.*ignored for convenience' stderr
13871 ) >>"$at_stdout" 2>>"$at_stderr"
13872 at_status=$? at_failed=false
13874 at_fn_diff_devnull "$at_stderr" || at_failed=:
13875 echo stdout:; cat "$at_stdout"
13876 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:113"
13877 $at_failed && at_fn_log_failure
13881 # Hypothesis: the deprecated -version-number works.
13882 # Be sure not to use zero here, it's not portable.
13883 for version_number in 1 1:1 2:1 1:1:1 3:2:1; do
13885 $as_echo "$at_srcdir/versioning.at:118: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba1.lo -version-number \$version_number -rpath \$libdir"
13886 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-number $version_number -rpath $libdir" "versioning.at:118"
13887 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-number $version_number -rpath $libdir
13888 ) >>"$at_stdout" 2>>"$at_stderr"
13889 at_status=$? at_failed=false
13891 echo stderr:; cat "$at_stderr"
13892 echo stdout:; cat "$at_stdout"
13893 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:118"
13894 $at_failed && at_fn_log_failure
13899 # Hypothesis: -version-info can be passed kinds of values, esp. zero ones
13901 # TODO: check something like 1001:2419:189 after fixing issues
13902 # for `version_type's of `irix', `nonstopux', or `osf'.
13903 for version_info in 1 1:2 0:0:0 1:1:1 13:241:7; do
13905 $as_echo "$at_srcdir/versioning.at:127: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba1.lo -version-info \$version_info -rpath \$libdir"
13906 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info $version_info -rpath $libdir" "versioning.at:127"
13907 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info $version_info -rpath $libdir
13908 ) >>"$at_stdout" 2>>"$at_stderr"
13909 at_status=$? at_failed=false
13911 echo stderr:; cat "$at_stderr"
13912 echo stdout:; cat "$at_stdout"
13913 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:127"
13914 $at_failed && at_fn_log_failure
13919 # Hypothesis: we diagnose when AGE is higher than CURRENT.
13921 $as_echo "$at_srcdir/versioning.at:132: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba1.lo -version-info 1:3:2 -rpath \$libdir"
13922 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info 1:3:2 -rpath $libdir" "versioning.at:132"
13923 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info 1:3:2 -rpath $libdir
13924 ) >>"$at_stdout" 2>>"$at_stderr"
13925 at_status=$? at_failed=false
13927 echo stderr:; tee stderr <"$at_stderr"
13928 echo stdout:; cat "$at_stdout"
13929 at_fn_check_status 1 $at_status "$at_srcdir/versioning.at:132"
13930 $at_failed && at_fn_log_failure
13934 $as_echo "$at_srcdir/versioning.at:134: grep 'AGE.*is greater than' stderr"
13935 at_fn_check_prepare_trace "versioning.at:134"
13936 ( $at_check_trace; grep 'AGE.*is greater than' stderr
13937 ) >>"$at_stdout" 2>>"$at_stderr"
13938 at_status=$? at_failed=false
13940 at_fn_diff_devnull "$at_stderr" || at_failed=:
13941 echo stdout:; cat "$at_stdout"
13942 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:134"
13943 $at_failed && at_fn_log_failure
13947 # Hypothesis: we diagnose invalid values.
13948 for version_info in 1:2:3:4 -1 0:-1 0:0:-1; do
13950 $as_echo "$at_srcdir/versioning.at:138: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba1.lo -version-info \$version_info -rpath \$libdir"
13951 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info $version_info -rpath $libdir" "versioning.at:138"
13952 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info $version_info -rpath $libdir
13953 ) >>"$at_stdout" 2>>"$at_stderr"
13954 at_status=$? at_failed=false
13956 echo stderr:; cat "$at_stderr"
13957 echo stdout:; cat "$at_stdout"
13958 at_fn_check_status 1 $at_status "$at_srcdir/versioning.at:138"
13959 $at_failed && at_fn_log_failure
13965 # Now, create an original version of the library and associated users.
13966 # This setup will be reused for further hypotheses below, and these
13967 # functions will be used to test working programs.
13969 test_uninstalled ()
13971 # temporarily move installed libraries out of the way in order to avoid
13972 # skewing test results:
13973 mv $libdir temp-lib
13974 mv $bindir temp-bin
13975 lt_exe=./prog1; if test -f "./prog1$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
13977 $as_echo "$at_srcdir/versioning.at:153: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
13978 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "versioning.at:153"
13979 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
13980 ) >>"$at_stdout" 2>>"$at_stderr"
13981 at_status=$? at_failed=false
13983 at_fn_diff_devnull "$at_stderr" || at_failed=:
13984 at_fn_diff_devnull "$at_stdout" || at_failed=:
13985 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:153"
13986 $at_failed && at_fn_log_failure
13990 lt_exe=./prog2; if test -f "./prog2$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
13992 $as_echo "$at_srcdir/versioning.at:154: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
13993 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "versioning.at:154"
13994 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
13995 ) >>"$at_stdout" 2>>"$at_stderr"
13996 at_status=$? at_failed=false
13998 at_fn_diff_devnull "$at_stderr" || at_failed=:
13999 at_fn_diff_devnull "$at_stdout" || at_failed=:
14000 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:154"
14001 $at_failed && at_fn_log_failure
14005 mv temp-lib $libdir
14006 mv temp-bin $bindir
14011 # temporarily move uninstalled libraries out of the way in order to avoid
14012 # skewing test results:
14014 lt_exe=$bindir/prog1; if test -f "$bindir/prog1$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
14016 $as_echo "$at_srcdir/versioning.at:164: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
14017 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "versioning.at:164"
14018 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
14019 ) >>"$at_stdout" 2>>"$at_stderr"
14020 at_status=$? at_failed=false
14022 at_fn_diff_devnull "$at_stderr" || at_failed=:
14023 at_fn_diff_devnull "$at_stdout" || at_failed=:
14024 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:164"
14025 $at_failed && at_fn_log_failure
14029 lt_exe=$bindir/prog2; if test -f "$bindir/prog2$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
14031 $as_echo "$at_srcdir/versioning.at:165: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
14032 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "versioning.at:165"
14033 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
14034 ) >>"$at_stdout" 2>>"$at_stderr"
14035 at_status=$? at_failed=false
14037 at_fn_diff_devnull "$at_stderr" || at_failed=:
14038 at_fn_diff_devnull "$at_stdout" || at_failed=:
14039 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:165"
14040 $at_failed && at_fn_log_failure
14048 $as_echo "$at_srcdir/versioning.at:169: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba1.lo -version-info 0:0:0 -rpath \$libdir"
14049 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info 0:0:0 -rpath $libdir" "versioning.at:169"
14050 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo -version-info 0:0:0 -rpath $libdir
14051 ) >>"$at_stdout" 2>>"$at_stderr"
14052 at_status=$? at_failed=false
14054 echo stderr:; cat "$at_stderr"
14055 echo stdout:; cat "$at_stdout"
14056 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:169"
14057 $at_failed && at_fn_log_failure
14061 $as_echo "$at_srcdir/versioning.at:171: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libb.la libb.lo liba.la -version-info 0:0:0 -rpath \$libdir"
14062 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la libb.lo liba.la -version-info 0:0:0 -rpath $libdir" "versioning.at:171"
14063 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la libb.lo liba.la -version-info 0:0:0 -rpath $libdir
14064 ) >>"$at_stdout" 2>>"$at_stderr"
14065 at_status=$? at_failed=false
14067 echo stderr:; cat "$at_stderr"
14068 echo stdout:; cat "$at_stdout"
14069 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:171"
14070 $at_failed && at_fn_log_failure
14074 $as_echo "$at_srcdir/versioning.at:173: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o prog1\$EXEEXT prog1.\$OBJEXT liba.la"
14075 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o prog1$EXEEXT prog1.$OBJEXT liba.la" "versioning.at:173"
14076 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o prog1$EXEEXT prog1.$OBJEXT liba.la
14077 ) >>"$at_stdout" 2>>"$at_stderr"
14078 at_status=$? at_failed=false
14080 echo stderr:; cat "$at_stderr"
14081 echo stdout:; cat "$at_stdout"
14082 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:173"
14083 $at_failed && at_fn_log_failure
14087 $as_echo "$at_srcdir/versioning.at:175: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o prog2\$EXEEXT prog2.\$OBJEXT libb.la"
14088 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o prog2$EXEEXT prog2.$OBJEXT libb.la" "versioning.at:175"
14089 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o prog2$EXEEXT prog2.$OBJEXT libb.la
14090 ) >>"$at_stdout" 2>>"$at_stderr"
14091 at_status=$? at_failed=false
14093 echo stderr:; cat "$at_stderr"
14094 echo stdout:; cat "$at_stdout"
14095 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:175"
14096 $at_failed && at_fn_log_failure
14101 $as_echo "$at_srcdir/versioning.at:178: \$LIBTOOL --mode=install cp liba.la libb.la \$libdir"
14102 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la libb.la $libdir" "versioning.at:178"
14103 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la libb.la $libdir
14104 ) >>"$at_stdout" 2>>"$at_stderr"
14105 at_status=$? at_failed=false
14107 echo stderr:; cat "$at_stderr"
14108 echo stdout:; cat "$at_stdout"
14109 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:178"
14110 $at_failed && at_fn_log_failure
14114 $as_echo "$at_srcdir/versioning.at:180: \$LIBTOOL --mode=install cp prog1\$EXEEXT prog2\$EXEEXT \$bindir"
14115 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp prog1$EXEEXT prog2$EXEEXT $bindir" "versioning.at:180"
14116 ( $at_check_trace; $LIBTOOL --mode=install cp prog1$EXEEXT prog2$EXEEXT $bindir
14117 ) >>"$at_stdout" 2>>"$at_stderr"
14118 at_status=$? at_failed=false
14120 echo stderr:; cat "$at_stderr"
14121 echo stdout:; cat "$at_stdout"
14122 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:180"
14123 $at_failed && at_fn_log_failure
14127 $as_echo "$at_srcdir/versioning.at:182: \$LIBTOOL --mode=clean rm -f liba.la"
14128 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f liba.la" "versioning.at:182"
14129 ( $at_check_trace; $LIBTOOL --mode=clean rm -f liba.la
14130 ) >>"$at_stdout" 2>>"$at_stderr"
14131 at_status=$? at_failed=false
14133 echo stderr:; cat "$at_stderr"
14134 echo stdout:; cat "$at_stdout"
14135 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:182"
14136 $at_failed && at_fn_log_failure
14141 $as_echo "$at_srcdir/versioning.at:184: \$LIBTOOL --mode=uninstall rm -f \$libdir/liba.la"
14142 at_fn_check_prepare_dynamic "$LIBTOOL --mode=uninstall rm -f $libdir/liba.la" "versioning.at:184"
14143 ( $at_check_trace; $LIBTOOL --mode=uninstall rm -f $libdir/liba.la
14144 ) >>"$at_stdout" 2>>"$at_stderr"
14145 at_status=$? at_failed=false
14147 echo stderr:; cat "$at_stderr"
14148 echo stdout:; cat "$at_stdout"
14149 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:184"
14150 $at_failed && at_fn_log_failure
14155 # Hypothesis: library revision updates do not require (uninstalled
14156 # nor installed) programs or libraries to be relinked.
14158 $as_echo "$at_srcdir/versioning.at:189: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba2.lo -version-info 0:1:0 -rpath \$libdir"
14159 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba2.lo -version-info 0:1:0 -rpath $libdir" "versioning.at:189"
14160 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba2.lo -version-info 0:1:0 -rpath $libdir
14161 ) >>"$at_stdout" 2>>"$at_stderr"
14162 at_status=$? at_failed=false
14164 echo stderr:; cat "$at_stderr"
14165 echo stdout:; cat "$at_stdout"
14166 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:189"
14167 $at_failed && at_fn_log_failure
14172 $as_echo "$at_srcdir/versioning.at:192: \$LIBTOOL --mode=install cp liba.la \$libdir"
14173 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la $libdir" "versioning.at:192"
14174 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la $libdir
14175 ) >>"$at_stdout" 2>>"$at_stderr"
14176 at_status=$? at_failed=false
14178 echo stderr:; cat "$at_stderr"
14179 echo stdout:; cat "$at_stdout"
14180 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:192"
14181 $at_failed && at_fn_log_failure
14185 $as_echo "$at_srcdir/versioning.at:193: \$LIBTOOL --mode=clean rm -f liba.la"
14186 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f liba.la" "versioning.at:193"
14187 ( $at_check_trace; $LIBTOOL --mode=clean rm -f liba.la
14188 ) >>"$at_stdout" 2>>"$at_stderr"
14189 at_status=$? at_failed=false
14191 echo stderr:; cat "$at_stderr"
14192 echo stdout:; cat "$at_stdout"
14193 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:193"
14194 $at_failed && at_fn_log_failure
14198 # do not uninstall here: the library may be reused in the next test.
14200 # Hypothesis: backward compatible library updates do not require
14201 # (uninstalled nor installed) programs or libraries to be relinked.
14202 # This can have one of several reasons:
14203 # - the soname is the difference between $current and $age, thus
14204 # unchanged; in this case, the newly installed library will be used,
14205 # - the soname is only $current, or we are linking statically, in which case
14206 # the old installed library code will be used,
14207 # - the numbers are not encoded at all, in which case the newly installed
14208 # library will be used.
14210 $as_echo "$at_srcdir/versioning.at:206: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba3.lo -version-info 1:0:1 -rpath \$libdir"
14211 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba3.lo -version-info 1:0:1 -rpath $libdir" "versioning.at:206"
14212 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba3.lo -version-info 1:0:1 -rpath $libdir
14213 ) >>"$at_stdout" 2>>"$at_stderr"
14214 at_status=$? at_failed=false
14216 echo stderr:; cat "$at_stderr"
14217 echo stdout:; cat "$at_stdout"
14218 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:206"
14219 $at_failed && at_fn_log_failure
14222 # Do not test the uninstalled program, it may be broken (in the second case).
14224 $as_echo "$at_srcdir/versioning.at:209: \$LIBTOOL --mode=install cp liba.la \$libdir"
14225 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la $libdir" "versioning.at:209"
14226 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la $libdir
14227 ) >>"$at_stdout" 2>>"$at_stderr"
14228 at_status=$? at_failed=false
14230 echo stderr:; cat "$at_stderr"
14231 echo stdout:; cat "$at_stdout"
14232 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:209"
14233 $at_failed && at_fn_log_failure
14237 $as_echo "$at_srcdir/versioning.at:210: \$LIBTOOL --mode=clean rm -f liba.la"
14238 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f liba.la" "versioning.at:210"
14239 ( $at_check_trace; $LIBTOOL --mode=clean rm -f liba.la
14240 ) >>"$at_stdout" 2>>"$at_stderr"
14241 at_status=$? at_failed=false
14243 echo stderr:; cat "$at_stderr"
14244 echo stdout:; cat "$at_stdout"
14245 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:210"
14246 $at_failed && at_fn_log_failure
14250 # do not uninstall here: the library may be reused in the next test.
14253 # Hypothesis: with shared libraries, incompatible library updates
14254 # will not cause old installed programs or libraries (linked against the old
14255 # library version) to break.
14256 # This can have one of several reasons:
14257 # - the soname has changed, so the old installed library will still be
14259 # - we are linking statically, so the old library code will still be used.
14260 # In order to be sure we are still linking against the old library version,
14261 # we must ensure that libb is not relinked, so we must not reinstall libb here.
14263 $as_echo "$at_srcdir/versioning.at:224: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la liba4.lo -version-info 2:0:0 -rpath \$libdir"
14264 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba4.lo -version-info 2:0:0 -rpath $libdir" "versioning.at:224"
14265 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba4.lo -version-info 2:0:0 -rpath $libdir
14266 ) >>"$at_stdout" 2>>"$at_stderr"
14267 at_status=$? at_failed=false
14269 echo stderr:; cat "$at_stderr"
14270 echo stdout:; cat "$at_stdout"
14271 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:224"
14272 $at_failed && at_fn_log_failure
14275 # We do not guarantee that old versions of an uninstalled library are still
14276 # available, so test_uninstalled will not necessarily work here any more.
14278 $as_echo "$at_srcdir/versioning.at:228: \$LIBTOOL --mode=install cp liba.la \$libdir"
14279 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la $libdir" "versioning.at:228"
14280 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la $libdir
14281 ) >>"$at_stdout" 2>>"$at_stderr"
14282 at_status=$? at_failed=false
14284 echo stderr:; cat "$at_stderr"
14285 echo stdout:; cat "$at_stdout"
14286 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:228"
14287 $at_failed && at_fn_log_failure
14291 $as_echo "$at_srcdir/versioning.at:229: \$LIBTOOL --mode=clean rm -f liba.la"
14292 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f liba.la" "versioning.at:229"
14293 ( $at_check_trace; $LIBTOOL --mode=clean rm -f liba.la
14294 ) >>"$at_stdout" 2>>"$at_stderr"
14295 at_status=$? at_failed=false
14297 echo stderr:; cat "$at_stderr"
14298 echo stdout:; cat "$at_stdout"
14299 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:229"
14300 $at_failed && at_fn_log_failure
14304 # This test does not work on AIX, not even with runtimelinking, because
14305 # the linker always records the unversioned name as dependency.
14307 $as_echo "$at_srcdir/versioning.at:233: :; case \$host_os in aix*) exit 77;; esac"
14308 at_fn_check_prepare_dynamic ":; case $host_os in aix*) exit 77;; esac" "versioning.at:233"
14309 ( $at_check_trace; :; case $host_os in aix*) exit 77;; esac
14310 ) >>"$at_stdout" 2>>"$at_stderr"
14311 at_status=$? at_failed=false
14313 at_fn_diff_devnull "$at_stderr" || at_failed=:
14314 at_fn_diff_devnull "$at_stdout" || at_failed=:
14315 at_fn_check_status 0 $at_status "$at_srcdir/versioning.at:233"
14316 $at_failed && at_fn_log_failure
14324 $at_times_p && times >"$at_times_file"
14325 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14326 read at_status <"$at_status_file"
14329 at_fn_group_banner 68 'destdir.at:48' \
14330 "Simple DESTDIR install" " " 4
14332 eval `$LIBTOOL --config | grep '^fast_install='`
14333 case $fast_install in no) :;; *) false;; esac && at_xfail=yes
14335 $as_echo "68. $at_setup_line: testing $at_desc ..."
14340 # A program that depends upon a library, both in the same package.
14341 # DESTDIR installs do not work with relink at install time.
14343 LDFLAGS="$LDFLAGS -no-undefined"
14344 if test -n "$we_are_on_a_safe_system"; then # let's read shorter cmdlines.
14347 rm -rf $DESTDIR $prefix
14354 $mkdir_p src $prefix $DESTDIR $DESTDIR$prefix
14355 eval `$LIBTOOL --config | $EGREP '^(FGREP|OBJDUMP)='`
14358 echo 'int a() { return 0; }' > a.c
14359 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
14360 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir
14361 echo 'extern int a(); int main() { return a(); }' > m.c
14362 $CC $CPPFLAGS $CFLAGS -c m.c
14363 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT liba.la
14364 mkdir $DESTDIR$libdir $DESTDIR$bindir
14366 $as_echo "$at_srcdir/destdir.at:61: \$LIBTOOL --mode=install cp liba.la \$DESTDIR\$libdir/liba.la"
14367 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la $DESTDIR$libdir/liba.la" "destdir.at:61"
14368 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la $DESTDIR$libdir/liba.la
14369 ) >>"$at_stdout" 2>>"$at_stderr"
14370 at_status=$? at_failed=false
14372 echo stderr:; cat "$at_stderr"
14373 echo stdout:; cat "$at_stdout"
14374 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:61"
14375 $at_failed && at_fn_log_failure
14379 $as_echo "$at_srcdir/destdir.at:63: \$LIBTOOL --mode=install cp m\$EXEEXT \$DESTDIR\$bindir/m\$EXEEXT"
14380 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp m$EXEEXT $DESTDIR$bindir/m$EXEEXT" "destdir.at:63"
14381 ( $at_check_trace; $LIBTOOL --mode=install cp m$EXEEXT $DESTDIR$bindir/m$EXEEXT
14382 ) >>"$at_stdout" 2>>"$at_stderr"
14383 at_status=$? at_failed=false
14385 echo stderr:; cat "$at_stderr"
14386 echo stdout:; cat "$at_stdout"
14387 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:63"
14388 $at_failed && at_fn_log_failure
14391 $LIBTOOL --mode=clean rm -f liba.la m
14393 (cd "$DESTDIR$libdir" && find . -type d) | (cd "$libdir" && xargs $mkdir_p)
14394 for file in `cd "$DESTDIR$libdir" && find . -type f -print -o -type l -print`
14396 mv "$DESTDIR$libdir"/$file "$libdir"/$file
14398 rm -rf "$DESTDIR$libdir"
14401 (cd "$DESTDIR$bindir" && find . -type d) | (cd "$bindir" && xargs $mkdir_p)
14402 for file in `cd "$DESTDIR$bindir" && find . -type f -print -o -type l -print`
14404 mv "$DESTDIR$bindir"/$file "$bindir"/$file
14406 rm -rf "$DESTDIR$bindir"
14408 # We ignore failure on purpose here: we may not be root.
14410 $as_echo "$at_srcdir/destdir.at:69: \$LIBTOOL --mode=finish \$libdir"
14411 at_fn_check_prepare_dynamic "$LIBTOOL --mode=finish $libdir" "destdir.at:69"
14412 ( $at_check_trace; $LIBTOOL --mode=finish $libdir
14413 ) >>"$at_stdout" 2>>"$at_stderr"
14414 at_status=$? at_failed=false
14416 echo stderr:; cat "$at_stderr"
14417 echo stdout:; cat "$at_stdout"
14418 at_fn_check_skip $at_status "$at_srcdir/destdir.at:69"
14419 $at_failed && at_fn_log_failure
14422 lt_exe=$bindir/m$EXEEXT; if test -f "$bindir/m$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
14424 $as_echo "$at_srcdir/destdir.at:70: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
14425 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "destdir.at:70"
14426 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
14427 ) >>"$at_stdout" 2>>"$at_stderr"
14428 at_status=$? at_failed=false
14430 at_fn_diff_devnull "$at_stderr" || at_failed=:
14431 at_fn_diff_devnull "$at_stdout" || at_failed=:
14432 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:70"
14433 $at_failed && at_fn_log_failure
14439 $at_times_p && times >"$at_times_file"
14440 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14441 read at_status <"$at_status_file"
14444 at_fn_group_banner 69 'destdir.at:75' \
14445 "DESTDIR with in-package deplibs" " " 4
14447 eval `$LIBTOOL --config | grep '^fast_install='`
14448 case $fast_install in no) :;; *) false;; esac && at_xfail=yes
14450 $as_echo "69. $at_setup_line: testing $at_desc ..."
14455 # A program that depends upon a library that depends upon another
14456 # library, all in the same package. Use two deplibs, one in $libdir
14457 # and one in another directory.
14458 # DESTDIR installs do not work with relink at install time.
14460 LDFLAGS="$LDFLAGS -no-undefined"
14461 if test -n "$we_are_on_a_safe_system"; then # let's read shorter cmdlines.
14464 rm -rf $DESTDIR $prefix
14471 $mkdir_p src $prefix $DESTDIR $DESTDIR$prefix
14472 eval `$LIBTOOL --config | $EGREP '^(FGREP|OBJDUMP)='`
14475 echo 'int a1dep() { return 0; }' > a1dep.c
14476 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a1dep.c
14477 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba1dep.la a1dep.lo -rpath $libdir
14478 echo 'int a2dep() { return 0; }' > a2dep.c
14479 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a2dep.c
14480 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba2dep.la a2dep.lo -rpath ${libdir}2
14481 echo 'extern int a1dep(), a2dep(); int a() { return a1dep() + a2dep(); }' > a.c
14482 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
14483 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir liba1dep.la liba2dep.la
14484 echo 'extern int a(); int main() { return a(); }' > m.c
14485 $CC $CPPFLAGS $CFLAGS -c m.c
14486 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT liba.la
14487 mkdir $DESTDIR$libdir $DESTDIR${libdir}2 $DESTDIR$bindir
14489 $as_echo "$at_srcdir/destdir.at:96: \$LIBTOOL --mode=install cp liba1dep.la \$DESTDIR\$libdir/liba1dep.la"
14490 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba1dep.la $DESTDIR$libdir/liba1dep.la" "destdir.at:96"
14491 ( $at_check_trace; $LIBTOOL --mode=install cp liba1dep.la $DESTDIR$libdir/liba1dep.la
14492 ) >>"$at_stdout" 2>>"$at_stderr"
14493 at_status=$? at_failed=false
14495 echo stderr:; cat "$at_stderr"
14496 echo stdout:; cat "$at_stdout"
14497 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:96"
14498 $at_failed && at_fn_log_failure
14502 $as_echo "$at_srcdir/destdir.at:98: \$LIBTOOL --mode=install cp liba2dep.la \$DESTDIR\${libdir}2/liba2dep.la"
14503 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "destdir.at:98"
14504 ( $at_check_trace; $LIBTOOL --mode=install cp liba2dep.la $DESTDIR${libdir}2/liba2dep.la
14505 ) >>"$at_stdout" 2>>"$at_stderr"
14506 at_status=$? at_failed=false
14508 echo stderr:; cat "$at_stderr"
14509 echo stdout:; cat "$at_stdout"
14510 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:98"
14511 $at_failed && at_fn_log_failure
14515 $as_echo "$at_srcdir/destdir.at:100: \$LIBTOOL --mode=install cp liba.la \$DESTDIR\$libdir/liba.la"
14516 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la $DESTDIR$libdir/liba.la" "destdir.at:100"
14517 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la $DESTDIR$libdir/liba.la
14518 ) >>"$at_stdout" 2>>"$at_stderr"
14519 at_status=$? at_failed=false
14521 echo stderr:; cat "$at_stderr"
14522 echo stdout:; cat "$at_stdout"
14523 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:100"
14524 $at_failed && at_fn_log_failure
14528 $as_echo "$at_srcdir/destdir.at:102: \$LIBTOOL --mode=install cp m\$EXEEXT \$DESTDIR\$bindir/m\$EXEEXT"
14529 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp m$EXEEXT $DESTDIR$bindir/m$EXEEXT" "destdir.at:102"
14530 ( $at_check_trace; $LIBTOOL --mode=install cp m$EXEEXT $DESTDIR$bindir/m$EXEEXT
14531 ) >>"$at_stdout" 2>>"$at_stderr"
14532 at_status=$? at_failed=false
14534 echo stderr:; cat "$at_stderr"
14535 echo stdout:; cat "$at_stdout"
14536 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:102"
14537 $at_failed && at_fn_log_failure
14540 $LIBTOOL --mode=clean rm -f liba1dep.la liba2dep.la liba.la m
14542 (cd "$DESTDIR$libdir" && find . -type d) | (cd "$libdir" && xargs $mkdir_p)
14543 for file in `cd "$DESTDIR$libdir" && find . -type f -print -o -type l -print`
14545 mv "$DESTDIR$libdir"/$file "$libdir"/$file
14547 rm -rf "$DESTDIR$libdir"
14549 $mkdir_p "${libdir}2"
14550 (cd "$DESTDIR${libdir}2" && find . -type d) | (cd "${libdir}2" && xargs $mkdir_p)
14551 for file in `cd "$DESTDIR${libdir}2" && find . -type f -print -o -type l -print`
14553 mv "$DESTDIR${libdir}2"/$file "${libdir}2"/$file
14555 rm -rf "$DESTDIR${libdir}2"
14558 (cd "$DESTDIR$bindir" && find . -type d) | (cd "$bindir" && xargs $mkdir_p)
14559 for file in `cd "$DESTDIR$bindir" && find . -type f -print -o -type l -print`
14561 mv "$DESTDIR$bindir"/$file "$bindir"/$file
14563 rm -rf "$DESTDIR$bindir"
14565 # We ignore failure on purpose here: we may not be root.
14567 $as_echo "$at_srcdir/destdir.at:109: \$LIBTOOL --mode=finish \$libdir \${libdir}2"
14568 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "destdir.at:109"
14569 ( $at_check_trace; $LIBTOOL --mode=finish $libdir ${libdir}2
14570 ) >>"$at_stdout" 2>>"$at_stderr"
14571 at_status=$? at_failed=false
14573 echo stderr:; cat "$at_stderr"
14574 echo stdout:; cat "$at_stdout"
14575 at_fn_check_skip $at_status "$at_srcdir/destdir.at:109"
14576 $at_failed && at_fn_log_failure
14580 # put false libraries in the DESTDIR paths: if the installed program
14581 # refers to them, that is a bug.
14582 mkdir $DESTDIR$libdir $DESTDIR${libdir}2 $DESTDIR$bindir
14583 for lib in a1dep a2dep a; do
14585 a2dep) ldir=${libdir}2;;
14588 echo "int this_should_not_be_linked_against () { return 0; }" > $lib.c
14589 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $lib.c
14590 # Note the rpath argument includes $DESTDIR: the installed false libs
14591 # should be functional (i.e., not need `libtool --mode=finish').
14592 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o lib$lib.la $lib.lo -rpath $DESTDIR$ldir
14593 $LIBTOOL --mode=install cp lib$lib.la $DESTDIR$ldir/lib$lib.la
14596 lt_exe=$bindir/m$EXEEXT; if test -f "$bindir/m$EXEEXT$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
14598 $as_echo "$at_srcdir/destdir.at:127: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
14599 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "destdir.at:127"
14600 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
14601 ) >>"$at_stdout" 2>>"$at_stderr"
14602 at_status=$? at_failed=false
14604 at_fn_diff_devnull "$at_stderr" || at_failed=:
14605 at_fn_diff_devnull "$at_stdout" || at_failed=:
14606 at_fn_check_status 0 $at_status "$at_srcdir/destdir.at:127"
14607 $at_failed && at_fn_log_failure
14612 # TODO: make this more portable:
14613 if test "$OBJDUMP" != false && ($OBJDUMP -p $bindir/m$EXEEXT) >/dev/null 2>&1; then
14615 $as_echo "$at_srcdir/destdir.at:131: \$OBJDUMP -p \$bindir/m\$EXEEXT | \$EGREP -i \"R(UN)?PATH.*\$DESTDIR\""
14616 at_fn_check_prepare_notrace 'a shell pipeline' "destdir.at:131"
14617 ( $at_check_trace; $OBJDUMP -p $bindir/m$EXEEXT | $EGREP -i "R(UN)?PATH.*$DESTDIR"
14618 ) >>"$at_stdout" 2>>"$at_stderr"
14619 at_status=$? at_failed=false
14621 at_fn_diff_devnull "$at_stderr" || at_failed=:
14622 at_fn_diff_devnull "$at_stdout" || at_failed=:
14623 at_fn_check_status 1 $at_status "$at_srcdir/destdir.at:131"
14624 $at_failed && at_fn_log_failure
14628 set x $library_names
14630 if test -n "$lname"; then
14632 $as_echo "$at_srcdir/destdir.at:136: \$OBJDUMP -p \$libdir/\$lname | \$EGREP -i \"R(UN)?PATH.*\$DESTDIR\""
14633 at_fn_check_prepare_notrace 'a shell pipeline' "destdir.at:136"
14634 ( $at_check_trace; $OBJDUMP -p $libdir/$lname | $EGREP -i "R(UN)?PATH.*$DESTDIR"
14635 ) >>"$at_stdout" 2>>"$at_stderr"
14636 at_status=$? at_failed=false
14638 at_fn_diff_devnull "$at_stderr" || at_failed=:
14639 at_fn_diff_devnull "$at_stdout" || at_failed=:
14640 at_fn_check_status 1 $at_status "$at_srcdir/destdir.at:136"
14641 $at_failed && at_fn_log_failure
14648 $at_times_p && times >"$at_times_file"
14649 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14650 read at_status <"$at_status_file"
14653 at_fn_group_banner 70 'old-m4-iface.at:40' \
14654 "AM_PROG_LIBTOOL" " " 5
14656 test "$AUTOCONF" = no && at_xfail=yes
14658 $as_echo "70. $at_setup_line: testing $at_desc ..."
14662 cat >configure.in <<'_ATEOF'
14665 AC_SUBST([LIBTOOL_DEPS])
14666 AC_OUTPUT(Makefile)
14670 cat >Makefile.in <<'_ATEOF'
14671 COMPILE = @CC@ @CPPFLAGS@ @CFLAGS@
14672 LINK = @CC@ @CFLAGS@ @LDFLAGS@ -o $@
14674 LIBTOOL_DEPS = @LIBTOOL_DEPS@
14676 all: libtool old@EXEEXT@
14678 old@EXEEXT@: old.@OBJEXT@
14679 $(LINK) old.@OBJEXT@
14682 .SUFFIXES: .c .@OBJEXT@
14687 libtool: $(LIBTOOL_DEPS)
14688 $(SHELL) ./config.status --recheck
14693 cat >old.c <<'_ATEOF'
14698 printf ("Hello, World!");
14704 $LIBTOOLIZE --install
14708 # This is slightly bogus, since only libtool.m4 was required in aclocal.m4
14709 # with libtool-1.5x...
14711 $as_echo "$at_srcdir/old-m4-iface.at:85: test -f aclocal.m4 ||
14712 cat \"\$tst_aclocaldir/libtool.m4\" \"\$tst_aclocaldir/ltoptions.m4\" \\
14713 \"\$tst_aclocaldir/ltsugar.m4\" \"\$tst_aclocaldir/ltversion.m4\" \\
14714 \"\$tst_aclocaldir/lt~obsolete.m4\" > aclocal.m4"
14715 at_fn_check_prepare_notrace 'an embedded newline' "old-m4-iface.at:85"
14716 ( $at_check_trace; test -f aclocal.m4 ||
14717 cat "$tst_aclocaldir/libtool.m4" "$tst_aclocaldir/ltoptions.m4" \
14718 "$tst_aclocaldir/ltsugar.m4" "$tst_aclocaldir/ltversion.m4" \
14719 "$tst_aclocaldir/lt~obsolete.m4" > aclocal.m4
14720 ) >>"$at_stdout" 2>>"$at_stderr"
14721 at_status=$? at_failed=false
14723 at_fn_diff_devnull "$at_stderr" || at_failed=:
14724 at_fn_diff_devnull "$at_stdout" || at_failed=:
14725 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:85"
14726 $at_failed && at_fn_log_failure
14735 $as_echo "$at_srcdir/old-m4-iface.at:90: \$AUTOCONF --force"
14736 at_fn_check_prepare_dynamic "$AUTOCONF --force" "old-m4-iface.at:90"
14737 ( $at_check_trace; $AUTOCONF --force
14738 ) >>"$at_stdout" 2>>"$at_stderr"
14739 at_status=$? at_failed=false
14741 echo stderr:; cat "$at_stderr"
14742 echo stdout:; cat "$at_stdout"
14743 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:90"
14744 $at_failed && at_fn_log_failure
14751 $as_echo "$at_srcdir/old-m4-iface.at:90: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
14752 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "old-m4-iface.at:90"
14753 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
14754 ) >>"$at_stdout" 2>>"$at_stderr"
14755 at_status=$? at_failed=false
14757 echo stderr:; cat "$at_stderr"
14758 echo stdout:; cat "$at_stdout"
14759 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:90"
14760 $at_failed && at_fn_log_failure
14767 $as_echo "$at_srcdir/old-m4-iface.at:90: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
14768 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "old-m4-iface.at:90"
14769 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
14770 ) >>"$at_stdout" 2>>"$at_stderr"
14771 at_status=$? at_failed=false
14773 echo stderr:; cat "$at_stderr"
14774 echo stdout:; cat "$at_stdout"
14775 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:90"
14776 $at_failed && at_fn_log_failure
14783 lt_exe=./old; if test -f "./old$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
14785 $as_echo "$at_srcdir/old-m4-iface.at:92: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
14786 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "old-m4-iface.at:92"
14787 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
14788 ) >>"$at_stdout" 2>>"$at_stderr"
14789 at_status=$? at_failed=false
14791 at_fn_diff_devnull "$at_stderr" || at_failed=:
14792 echo >>"$at_stdout"; $as_echo "Hello, World!" | \
14793 $at_diff - "$at_stdout" || at_failed=:
14794 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:92"
14795 $at_failed && at_fn_log_failure
14800 # Now, test that libtoolize doesn't mistakenly think the user called
14801 # any libtool macros if in fact she didn't.
14802 sed '/AM_PROG_LIBTOOL/d' configure.in >configure.int
14803 mv -f configure.int configure.in
14805 $as_echo "$at_srcdir/old-m4-iface.at:98: \$LIBTOOLIZE -n"
14806 at_fn_check_prepare_dynamic "$LIBTOOLIZE -n" "old-m4-iface.at:98"
14807 ( $at_check_trace; $LIBTOOLIZE -n
14808 ) >>"$at_stdout" 2>>"$at_stderr"
14809 at_status=$? at_failed=false
14811 echo stderr:; tee stderr <"$at_stderr"
14812 echo stdout:; tee stdout <"$at_stdout"
14813 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:98"
14814 $at_failed && at_fn_log_failure
14817 # ensure no shell errors:
14819 $as_echo "$at_srcdir/old-m4-iface.at:100: grep -v \"^libtoolize: \" stderr"
14820 at_fn_check_prepare_trace "old-m4-iface.at:100"
14821 ( $at_check_trace; grep -v "^libtoolize: " stderr
14822 ) >>"$at_stdout" 2>>"$at_stderr"
14823 at_status=$? at_failed=false
14825 at_fn_diff_devnull "$at_stderr" || at_failed=:
14826 at_fn_diff_devnull "$at_stdout" || at_failed=:
14827 at_fn_check_status 1 $at_status "$at_srcdir/old-m4-iface.at:100"
14828 $at_failed && at_fn_log_failure
14832 $as_echo "$at_srcdir/old-m4-iface.at:101: grep \"Remember to add.*LT_INIT.*to configure.in\" stdout"
14833 at_fn_check_prepare_trace "old-m4-iface.at:101"
14834 ( $at_check_trace; grep "Remember to add.*LT_INIT.*to configure.in" stdout
14835 ) >>"$at_stdout" 2>>"$at_stderr"
14836 at_status=$? at_failed=false
14838 at_fn_diff_devnull "$at_stderr" || at_failed=:
14839 echo stdout:; cat "$at_stdout"
14840 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:101"
14841 $at_failed && at_fn_log_failure
14845 $as_echo "$at_srcdir/old-m4-iface.at:102: grep \"Consider adding.*LT_WITH_LTDL\" stdout"
14846 at_fn_check_prepare_trace "old-m4-iface.at:102"
14847 ( $at_check_trace; grep "Consider adding.*LT_WITH_LTDL" stdout
14848 ) >>"$at_stdout" 2>>"$at_stderr"
14849 at_status=$? at_failed=false
14851 at_fn_diff_devnull "$at_stderr" || at_failed=:
14852 at_fn_diff_devnull "$at_stdout" || at_failed=:
14853 at_fn_check_status 1 $at_status "$at_srcdir/old-m4-iface.at:102"
14854 $at_failed && at_fn_log_failure
14858 $as_echo "$at_srcdir/old-m4-iface.at:103: grep \"Remember to add.*LT_CONFIG_LTDL_DIR\" stdout"
14859 at_fn_check_prepare_trace "old-m4-iface.at:103"
14860 ( $at_check_trace; grep "Remember to add.*LT_CONFIG_LTDL_DIR" stdout
14861 ) >>"$at_stdout" 2>>"$at_stderr"
14862 at_status=$? at_failed=false
14864 at_fn_diff_devnull "$at_stderr" || at_failed=:
14865 at_fn_diff_devnull "$at_stdout" || at_failed=:
14866 at_fn_check_status 1 $at_status "$at_srcdir/old-m4-iface.at:103"
14867 $at_failed && at_fn_log_failure
14872 $at_times_p && times >"$at_times_file"
14873 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14874 read at_status <"$at_status_file"
14877 at_fn_group_banner 71 'old-m4-iface.at:112' \
14878 "AC_WITH_LTDL" " " 5
14880 test "$ACLOCAL" = no && at_xfail=yes
14881 test "$AUTOCONF" = no && at_xfail=yes
14883 $as_echo "71. $at_setup_line: testing $at_desc ..."
14887 cat >module.c <<'_ATEOF'
14899 cat >main.c <<'_ATEOF'
14906 lt_dlhandle module;
14907 const char *(*func) (void) = 0;
14910 LTDL_SET_PRELOADED_SYMBOLS();
14911 if (lt_dlinit() != 0) {
14912 fprintf (stderr, "error during initialisation: %s\n", lt_dlerror());
14916 module = lt_dlopen("./module.la");
14918 fprintf (stderr, "error dlopening ./module.la: %s\n", lt_dlerror());
14922 func = (const char *(*)(void)) lt_dlsym (module, "hello");
14924 fprintf (stderr, "error fetching func: %s\n", lt_dlerror());
14928 printf ("%s\n", (*func) ());
14932 if (lt_dlexit() != 0) {
14933 fprintf (stderr, "error during finalisation: %s\n", lt_dlerror());
14947 cat >configure.in <<'_ATEOF'
14954 AC_OUTPUT(Makefile)
14958 cat >Makefile.in <<'_ATEOF'
14961 COMPILE = @CC@ @INCLTDL@ @CPPFLAGS@ @CFLAGS@
14962 LTCOMPILE = @LIBTOOL@ --mode=compile $(COMPILE)
14963 LTLINK = @LIBTOOL@ --mode=link @CC@ -no-undefined @CFLAGS@ @LDFLAGS@ -o $@
14967 TARGETS = libltdl/libltdlc.la module.la ltdldemo@EXEEXT@
14971 libltdl/libltdlc.la:
14972 cd libltdl && $(MAKE)
14974 module.la: module.lo
14975 $(LTLINK) module.lo -module -avoid-version -rpath /dev/null
14977 ltdldemo@EXEEXT@: main.@OBJEXT@ module.la libltdl/libltdlc.la
14978 $(LTLINK) main.@OBJEXT@ -dlopen module.la @LIBLTDL@ @LIBS@
14981 .SUFFIXES: .c .@OBJEXT@ .lo
14987 $(LTCOMPILE) -c -o $@ $<
14991 # Be sure to use the in-tree libltdl, somebody might have removed
14992 # an installed libltdl.la file.
14993 $LIBTOOLIZE --ltdl --install
14997 $as_echo "$at_srcdir/old-m4-iface.at:160: \$ACLOCAL -I libltdl/m4"
14998 at_fn_check_prepare_dynamic "$ACLOCAL -I libltdl/m4" "old-m4-iface.at:160"
14999 ( $at_check_trace; $ACLOCAL -I libltdl/m4
15000 ) >>"$at_stdout" 2>>"$at_stderr"
15001 at_status=$? at_failed=false
15003 echo stderr:; cat "$at_stderr"
15004 echo stdout:; cat "$at_stdout"
15005 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:160"
15006 $at_failed && at_fn_log_failure
15015 $as_echo "$at_srcdir/old-m4-iface.at:160: \$AUTOCONF --force"
15016 at_fn_check_prepare_dynamic "$AUTOCONF --force" "old-m4-iface.at:160"
15017 ( $at_check_trace; $AUTOCONF --force
15018 ) >>"$at_stdout" 2>>"$at_stderr"
15019 at_status=$? at_failed=false
15021 echo stderr:; cat "$at_stderr"
15022 echo stdout:; cat "$at_stdout"
15023 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:160"
15024 $at_failed && at_fn_log_failure
15031 $as_echo "$at_srcdir/old-m4-iface.at:160: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --with-included-ltdl"
15032 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "old-m4-iface.at:160"
15033 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --with-included-ltdl
15034 ) >>"$at_stdout" 2>>"$at_stderr"
15035 at_status=$? at_failed=false
15037 echo stderr:; cat "$at_stderr"
15038 echo stdout:; cat "$at_stdout"
15039 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:160"
15040 $at_failed && at_fn_log_failure
15047 $as_echo "$at_srcdir/old-m4-iface.at:160: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
15048 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "old-m4-iface.at:160"
15049 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
15050 ) >>"$at_stdout" 2>>"$at_stderr"
15051 at_status=$? at_failed=false
15053 echo stderr:; cat "$at_stderr"
15054 echo stdout:; cat "$at_stdout"
15055 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:160"
15056 $at_failed && at_fn_log_failure
15063 lt_exe=./ltdldemo; if test -f "./ltdldemo$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
15065 $as_echo "$at_srcdir/old-m4-iface.at:163: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
15066 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "old-m4-iface.at:163"
15067 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
15068 ) >>"$at_stdout" 2>>"$at_stderr"
15069 at_status=$? at_failed=false
15071 at_fn_diff_devnull "$at_stderr" || at_failed=:
15072 echo stdout:; cat "$at_stdout"
15073 at_fn_check_status 0 $at_status "$at_srcdir/old-m4-iface.at:163"
15074 $at_failed && at_fn_log_failure
15080 $at_times_p && times >"$at_times_file"
15081 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15082 read at_status <"$at_status_file"
15085 at_fn_group_banner 72 'am-subdir.at:33' \
15086 "C subdir-objects" " " 6
15088 test "$ACLOCAL" = no && at_xfail=yes
15089 test "$AUTOMAKE" = no && at_xfail=yes
15090 test "$AUTOCONF" = no && at_xfail=yes
15092 $as_echo "72. $at_setup_line: testing $at_desc ..."
15096 cat >configure.ac <<'_ATEOF'
15097 AC_INIT([subdir-demo], 2.4.2, bug-libtool@gnu.org)
15099 LT_INIT([win32-dll])
15102 AC_CONFIG_FILES([Makefile])
15107 cat >Makefile.am <<'_ATEOF'
15108 ACLOCAL_AMFLAGS = -I m4
15109 AUTOMAKE_OPTIONS = subdir-objects foreign 1.6
15110 AM_CPPFLAGS = -I$(top_srcdir)/../..
15112 lib_LTLIBRARIES = subdir/libsub.la
15113 subdir_libsub_la_SOURCES= subdir/sub.c
15115 bin_PROGRAMS = subdir/subdemo
15116 subdir_subdemo_SOURCES = subdir/main.c
15117 subdir_subdemo_LDADD = subdir/libsub.la
15121 test -d subdir || { rm -f subdir && mkdir subdir; }
15123 cat >subdir/main.c <<'_ATEOF'
15126 extern void sub (void);
15130 printf ("Welcome to GNU Libtool subdir-objects test!\n");
15137 cat >subdir/sub.c <<'_ATEOF'
15139 void sub (void) { printf ("** This is libsub **\n"); }
15147 $as_echo "$at_srcdir/am-subdir.at:78: \$ACLOCAL -I m4"
15148 at_fn_check_prepare_dynamic "$ACLOCAL -I m4" "am-subdir.at:78"
15149 ( $at_check_trace; $ACLOCAL -I m4
15150 ) >>"$at_stdout" 2>>"$at_stderr"
15151 at_status=$? at_failed=false
15153 echo stderr:; cat "$at_stderr"
15154 echo stdout:; cat "$at_stdout"
15155 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:78"
15156 $at_failed && at_fn_log_failure
15164 $as_echo "$at_srcdir/am-subdir.at:78: \$AUTOMAKE --add-missing"
15165 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "am-subdir.at:78"
15166 ( $at_check_trace; $AUTOMAKE --add-missing
15167 ) >>"$at_stdout" 2>>"$at_stderr"
15168 at_status=$? at_failed=false
15170 echo stderr:; tee stderr <"$at_stderr"
15171 echo stdout:; cat "$at_stdout"
15172 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:78"
15173 if $at_failed; then :
15175 $as_echo "$at_srcdir/am-subdir.at:78: grep 'require .*but have' stderr && (exit 77)"
15176 at_fn_check_prepare_trace "am-subdir.at:78"
15177 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
15178 ) >>"$at_stdout" 2>>"$at_stderr"
15179 at_status=$? at_failed=false
15181 at_fn_diff_devnull "$at_stderr" || at_failed=:
15182 at_fn_diff_devnull "$at_stdout" || at_failed=:
15183 at_fn_check_status 1 $at_status "$at_srcdir/am-subdir.at:78"
15184 $at_failed && at_fn_log_failure
15188 $at_failed && at_fn_log_failure
15195 $as_echo "$at_srcdir/am-subdir.at:78: \$AUTOCONF "
15196 at_fn_check_prepare_dynamic "$AUTOCONF " "am-subdir.at:78"
15197 ( $at_check_trace; $AUTOCONF
15198 ) >>"$at_stdout" 2>>"$at_stderr"
15199 at_status=$? at_failed=false
15201 echo stderr:; cat "$at_stderr"
15202 echo stdout:; cat "$at_stdout"
15203 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:78"
15204 $at_failed && at_fn_log_failure
15211 $as_echo "$at_srcdir/am-subdir.at:78: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
15212 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "am-subdir.at:78"
15213 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
15214 ) >>"$at_stdout" 2>>"$at_stderr"
15215 at_status=$? at_failed=false
15217 echo stderr:; cat "$at_stderr"
15218 echo stdout:; cat "$at_stdout"
15219 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:78"
15220 $at_failed && at_fn_log_failure
15227 $as_echo "$at_srcdir/am-subdir.at:78: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
15228 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "am-subdir.at:78"
15229 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
15230 ) >>"$at_stdout" 2>>"$at_stderr"
15231 at_status=$? at_failed=false
15233 echo stderr:; cat "$at_stderr"
15234 echo stdout:; cat "$at_stdout"
15235 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:78"
15236 $at_failed && at_fn_log_failure
15243 lt_exe=subdir/subdemo; if test -f "subdir/subdemo$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
15245 $as_echo "$at_srcdir/am-subdir.at:80: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
15246 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "am-subdir.at:80"
15247 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
15248 ) >>"$at_stdout" 2>>"$at_stderr"
15249 at_status=$? at_failed=false
15251 at_fn_diff_devnull "$at_stderr" || at_failed=:
15252 echo stdout:; tee stdout <"$at_stdout"
15253 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:80"
15254 $at_failed && at_fn_log_failure
15259 $as_echo "$at_srcdir/am-subdir.at:81: grep 'Welcome to GNU Libtool subdir-objects test' stdout"
15260 at_fn_check_prepare_trace "am-subdir.at:81"
15261 ( $at_check_trace; grep 'Welcome to GNU Libtool subdir-objects test' stdout
15262 ) >>"$at_stdout" 2>>"$at_stderr"
15263 at_status=$? at_failed=false
15265 at_fn_diff_devnull "$at_stderr" || at_failed=:
15266 echo stdout:; cat "$at_stdout"
15267 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:81"
15268 $at_failed && at_fn_log_failure
15272 $as_echo "$at_srcdir/am-subdir.at:83: grep 'This is libsub' stdout"
15273 at_fn_check_prepare_trace "am-subdir.at:83"
15274 ( $at_check_trace; grep 'This is libsub' stdout
15275 ) >>"$at_stdout" 2>>"$at_stderr"
15276 at_status=$? at_failed=false
15278 at_fn_diff_devnull "$at_stderr" || at_failed=:
15279 echo stdout:; cat "$at_stdout"
15280 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:83"
15281 $at_failed && at_fn_log_failure
15286 $at_times_p && times >"$at_times_file"
15287 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15288 read at_status <"$at_status_file"
15291 at_fn_group_banner 73 'am-subdir.at:93' \
15292 "C++ subdir-objects" " " 6
15294 test "$ACLOCAL" = no && at_xfail=yes
15295 test "$AUTOMAKE" = no && at_xfail=yes
15296 test "$AUTOCONF" = no && at_xfail=yes
15298 $as_echo "73. $at_setup_line: testing $at_desc ..."
15303 $as_echo "$at_srcdir/am-subdir.at:94: { test -n \"\$CXX\" && test \"X\$CXX\" != Xno; } || (exit 77)"
15304 at_fn_check_prepare_dynamic "{ test -n \"$CXX\" && test \"X$CXX\" != Xno; } || (exit 77)" "am-subdir.at:94"
15305 ( $at_check_trace; { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
15306 ) >>"$at_stdout" 2>>"$at_stderr"
15307 at_status=$? at_failed=false
15309 at_fn_diff_devnull "$at_stderr" || at_failed=:
15310 at_fn_diff_devnull "$at_stdout" || at_failed=:
15311 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:94"
15312 $at_failed && at_fn_log_failure
15316 $as_echo "$at_srcdir/am-subdir.at:94: test \"X\$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)"
15317 at_fn_check_prepare_dynamic "test \"X$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)" "am-subdir.at:94"
15318 ( $at_check_trace; test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)
15319 ) >>"$at_stdout" 2>>"$at_stderr"
15320 at_status=$? at_failed=false
15322 at_fn_diff_devnull "$at_stderr" || at_failed=:
15323 at_fn_diff_devnull "$at_stdout" || at_failed=:
15324 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:94"
15325 $at_failed && at_fn_log_failure
15330 cat >configure.ac <<'_ATEOF'
15331 AC_INIT([subdir-demo], 2.4.2, bug-libtool@gnu.org)
15339 LT_INIT([win32-dll])
15341 AC_CONFIG_FILES([Makefile])
15346 cat >Makefile.am <<'_ATEOF'
15347 ACLOCAL_AMFLAGS = -I m4
15348 AUTOMAKE_OPTIONS = subdir-objects foreign 1.6
15349 AM_CPPFLAGS = -I$(top_srcdir)/../..
15351 lib_LTLIBRARIES = subdir/libsub.la
15352 subdir_libsub_la_SOURCES= subdir/sub.cxx subdir/sub.hxx
15354 bin_PROGRAMS = subdir/subdemo
15355 subdir_subdemo_SOURCES = subdir/main.cxx
15356 subdir_subdemo_LDADD = subdir/libsub.la
15360 test -d subdir || { rm -f subdir && mkdir subdir; }
15362 cat >subdir/sub.hxx <<'_ATEOF'
15363 class libsub { public: int sub (void); };
15367 cat >subdir/main.cxx <<'_ATEOF'
15373 return SUB.sub() != 27;
15378 cat >subdir/sub.cxx <<'_ATEOF'
15381 int libsub::sub (void) { return 27; }
15389 $as_echo "$at_srcdir/am-subdir.at:146: \$ACLOCAL -I m4"
15390 at_fn_check_prepare_dynamic "$ACLOCAL -I m4" "am-subdir.at:146"
15391 ( $at_check_trace; $ACLOCAL -I m4
15392 ) >>"$at_stdout" 2>>"$at_stderr"
15393 at_status=$? at_failed=false
15395 echo stderr:; cat "$at_stderr"
15396 echo stdout:; cat "$at_stdout"
15397 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:146"
15398 $at_failed && at_fn_log_failure
15406 $as_echo "$at_srcdir/am-subdir.at:146: \$AUTOMAKE --add-missing"
15407 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "am-subdir.at:146"
15408 ( $at_check_trace; $AUTOMAKE --add-missing
15409 ) >>"$at_stdout" 2>>"$at_stderr"
15410 at_status=$? at_failed=false
15412 echo stderr:; tee stderr <"$at_stderr"
15413 echo stdout:; cat "$at_stdout"
15414 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:146"
15415 if $at_failed; then :
15417 $as_echo "$at_srcdir/am-subdir.at:146: grep 'require .*but have' stderr && (exit 77)"
15418 at_fn_check_prepare_trace "am-subdir.at:146"
15419 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
15420 ) >>"$at_stdout" 2>>"$at_stderr"
15421 at_status=$? at_failed=false
15423 at_fn_diff_devnull "$at_stderr" || at_failed=:
15424 at_fn_diff_devnull "$at_stdout" || at_failed=:
15425 at_fn_check_status 1 $at_status "$at_srcdir/am-subdir.at:146"
15426 $at_failed && at_fn_log_failure
15430 $at_failed && at_fn_log_failure
15437 $as_echo "$at_srcdir/am-subdir.at:146: \$AUTOCONF "
15438 at_fn_check_prepare_dynamic "$AUTOCONF " "am-subdir.at:146"
15439 ( $at_check_trace; $AUTOCONF
15440 ) >>"$at_stdout" 2>>"$at_stderr"
15441 at_status=$? at_failed=false
15443 echo stderr:; cat "$at_stderr"
15444 echo stdout:; cat "$at_stdout"
15445 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:146"
15446 $at_failed && at_fn_log_failure
15453 $as_echo "$at_srcdir/am-subdir.at:146: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
15454 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "am-subdir.at:146"
15455 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
15456 ) >>"$at_stdout" 2>>"$at_stderr"
15457 at_status=$? at_failed=false
15459 echo stderr:; cat "$at_stderr"
15460 echo stdout:; cat "$at_stdout"
15461 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:146"
15462 $at_failed && at_fn_log_failure
15469 $as_echo "$at_srcdir/am-subdir.at:146: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
15470 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "am-subdir.at:146"
15471 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
15472 ) >>"$at_stdout" 2>>"$at_stderr"
15473 at_status=$? at_failed=false
15475 echo stderr:; cat "$at_stderr"
15476 echo stdout:; cat "$at_stdout"
15477 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:146"
15478 $at_failed && at_fn_log_failure
15485 lt_exe=subdir/subdemo; if test -f "subdir/subdemo$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
15487 $as_echo "$at_srcdir/am-subdir.at:148: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
15488 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "am-subdir.at:148"
15489 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
15490 ) >>"$at_stdout" 2>>"$at_stderr"
15491 at_status=$? at_failed=false
15493 at_fn_diff_devnull "$at_stderr" || at_failed=:
15494 at_fn_diff_devnull "$at_stdout" || at_failed=:
15495 at_fn_check_status 0 $at_status "$at_srcdir/am-subdir.at:148"
15496 $at_failed && at_fn_log_failure
15502 $at_times_p && times >"$at_times_file"
15503 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15504 read at_status <"$at_status_file"
15507 at_fn_group_banner 74 'lt_dlexit.at:30' \
15508 "lt_dlexit unloading libs" " " 7
15511 $as_echo "74. $at_setup_line: testing $at_desc ..."
15517 # http://lists.gnu.org/archive/html/bug-libtool/2007-01/msg00014.html
15518 # http://lists.gnu.org/archive/html/bug-libtool/2008-03/msg00013.html
15520 cat >main.c <<'_ATEOF'
15523 #include <string.h>
15525 typedef int (*pfun_T) (int);
15526 typedef int *pvar_T;
15528 /* lt_dlopen wrapper */
15530 xdlopen (const char *filename)
15532 lt_dlhandle handle = lt_dlopen (filename);
15534 fprintf (stderr, "can't open the module %s!\n", filename);
15535 fprintf (stderr, "error was: %s\n", lt_dlerror());
15540 /* lt_dlsym wrapper: try one function and one variable */
15542 xdlsymtest (lt_dlhandle handle, const char *func, const char *var)
15544 pfun_T pf = (pfun_T) lt_dlsym (handle, func);
15545 pvar_T pv = (pvar_T) lt_dlsym (handle, var);
15547 fprintf (stderr, "function `%s' not found\n", func);
15551 fprintf (stderr, "variable `%s' not found\n", var);
15554 return (*pf) (*pv);
15562 LTDL_SET_PRELOADED_SYMBOLS();
15563 if (lt_dlinit() != 0) {
15564 fprintf (stderr, "error during initialization: %s\n", lt_dlerror());
15567 if (lt_dlexit() != 0) {
15568 fprintf (stderr, "error during first lt_dlexit: %s\n", lt_dlerror());
15571 if (lt_dlinit() != 0) {
15572 fprintf (stderr, "error during second initialization: %s\n", lt_dlerror());
15575 if (!(b1 = xdlopen ("modb1.la"))) return 1;
15576 if (xdlsymtest (b1, "fb1", "vb1")) return 1;
15577 /* do not lt_dlclose here on purpose. */
15579 if (lt_dlexit() != 0) {
15580 fprintf (stderr, "error during exit: %s\n", lt_dlerror());
15589 cat >a1.c <<'_ATEOF'
15593 int f1 (int x) { return x - 1; }
15601 cat >b1.c <<'_ATEOF'
15605 #if defined DLL_EXPORT && defined _WIN32 && defined _MSC_VER
15606 # define LIBA1_SCOPE extern __declspec (dllimport)
15608 #if !defined LIBA1_SCOPE
15609 # define LIBA1_SCOPE extern
15611 LIBA1_SCOPE int f1 (int);
15612 LIBA1_SCOPE int v1;
15613 int fb1 (int x) { return f1 (v1) + x - 3; }
15622 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
15623 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
15625 # Skip this test when called from:
15626 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
15628 $as_echo "$at_srcdir/lt_dlexit.at:141: case \$LIBLTDL in #(
15629 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
15631 at_fn_check_prepare_notrace 'an embedded newline' "lt_dlexit.at:141"
15632 ( $at_check_trace; case $LIBLTDL in #(
15633 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
15635 ) >>"$at_stdout" 2>>"$at_stderr"
15636 at_status=$? at_failed=false
15638 at_fn_diff_devnull "$at_stderr" || at_failed=:
15639 echo stdout:; cat "$at_stdout"
15640 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlexit.at:141"
15641 $at_failed && at_fn_log_failure
15645 CPPFLAGS="$LTDLINCL $CPPFLAGS"
15646 LDFLAGS="$LDFLAGS -no-undefined"
15648 for file in a1 b1; do
15649 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file.c
15651 $CC $CPPFLAGS $CFLAGS -c main.c
15653 $as_echo "$at_srcdir/lt_dlexit.at:152: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba1.la a1.lo \\
15654 -rpath /foo -avoid-version"
15655 at_fn_check_prepare_notrace 'an embedded newline' "lt_dlexit.at:152"
15656 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba1.la a1.lo \
15657 -rpath /foo -avoid-version
15658 ) >>"$at_stdout" 2>>"$at_stderr"
15659 at_status=$? at_failed=false
15661 echo stderr:; cat "$at_stderr"
15662 echo stdout:; cat "$at_stdout"
15663 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlexit.at:152"
15664 $at_failed && at_fn_log_failure
15668 $as_echo "$at_srcdir/lt_dlexit.at:154: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o modb1.la b1.lo \\
15669 -rpath /foo -module -avoid-version liba1.la"
15670 at_fn_check_prepare_notrace 'an embedded newline' "lt_dlexit.at:154"
15671 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o modb1.la b1.lo \
15672 -rpath /foo -module -avoid-version liba1.la
15673 ) >>"$at_stdout" 2>>"$at_stderr"
15674 at_status=$? at_failed=false
15676 echo stderr:; cat "$at_stderr"
15677 echo stdout:; cat "$at_stdout"
15678 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlexit.at:154"
15679 $at_failed && at_fn_log_failure
15683 # TODO: test -dlpreopen
15684 for dlopen in -dlopen; do
15686 $as_echo "$at_srcdir/lt_dlexit.at:159: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT \\
15687 \$dlopen modb1.la \$LIBLTDL"
15688 at_fn_check_prepare_notrace 'an embedded newline' "lt_dlexit.at:159"
15689 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT \
15690 $dlopen modb1.la $LIBLTDL
15691 ) >>"$at_stdout" 2>>"$at_stderr"
15692 at_status=$? at_failed=false
15694 echo stderr:; cat "$at_stderr"
15695 echo stdout:; cat "$at_stdout"
15696 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlexit.at:159"
15697 $at_failed && at_fn_log_failure
15700 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
15702 $as_echo "$at_srcdir/lt_dlexit.at:161: if \$LIBTOOL --mode=execute -dlopen modb1.la \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
15703 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute -dlopen modb1.la \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lt_dlexit.at:161"
15704 ( $at_check_trace; if $LIBTOOL --mode=execute -dlopen modb1.la "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
15705 ) >>"$at_stdout" 2>>"$at_stderr"
15706 at_status=$? at_failed=false
15708 at_fn_diff_devnull "$at_stderr" || at_failed=:
15709 at_fn_diff_devnull "$at_stdout" || at_failed=:
15710 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlexit.at:161"
15711 $at_failed && at_fn_log_failure
15718 $at_times_p && times >"$at_times_file"
15719 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15720 read at_status <"$at_status_file"
15723 at_fn_group_banner 75 'lt_dladvise.at:28' \
15724 "lt_dlopenadvise library loading" " " 7
15727 $as_echo "75. $at_setup_line: testing $at_desc ..."
15732 cat >main.c <<'_ATEOF'
15736 typedef int funcp (int);
15738 static int errors = 0;
15741 complain (const char *msg)
15743 const char *errmsg = lt_dlerror ();
15744 fprintf (stderr, "%s", msg);
15746 fprintf (stderr, ": %s\n", errmsg);
15748 fprintf (stderr, ".\n");
15753 moduleopen (const char *filename, lt_dladvise advise)
15755 lt_dlhandle handle;
15757 handle = lt_dlopenadvise (filename, advise);
15760 fprintf (stderr, "can't open the module %s!\n", filename);
15761 complain ("error was");
15768 moduletest (lt_dlhandle handle, const char *fname, const char *vname)
15770 funcp *f = (funcp *) lt_dlsym (handle, fname);
15771 int *v = (int *) lt_dlsym (handle, vname);
15775 fprintf (stderr, "function `%s' not found\n", fname);
15781 fprintf (stderr, "variable `%s' not found\n", vname);
15791 lt_dlhandle handle;
15792 lt_dladvise advise;
15794 if (lt_dladvise_init (&advise) || lt_dladvise_ext (&advise))
15795 complain ("error setting advise ext");
15797 handle = moduleopen ("libdepend", advise);
15800 printf ("depend: %d\n", moduletest (handle, "g", "j"));
15802 lt_dladvise_destroy (&advise);
15806 hint_resident (void)
15808 const lt_dlinfo *info;
15809 lt_dlhandle handle;
15810 lt_dladvise advise;
15812 if (lt_dladvise_init (&advise) || lt_dladvise_resident (&advise))
15813 complain ("error setting advise resident");
15815 handle = moduleopen ("libresident.la", advise);
15819 info = lt_dlgetinfo (handle);
15820 if (!info->is_resident)
15821 complain ("error taking advise resident");
15823 /* cannot close resident modules */
15824 if (lt_dlclose (handle) == 0)
15825 complain ("successfully unloaded resident module");
15827 printf ("resident: %d\n", moduletest (handle, "func", "numb"));
15830 lt_dladvise_destroy (&advise);
15836 const lt_dlinfo *info;
15837 lt_dlhandle handle;
15838 lt_dladvise advise;
15840 if (lt_dladvise_init (&advise) || lt_dladvise_local (&advise))
15841 complain ("error setting advise local");
15843 handle = moduleopen ("liblocal.la", advise);
15847 info = lt_dlgetinfo (handle);
15848 printf ("local: %d\n", moduletest (handle, "f", "i"));
15850 /* If the symlocal hint was taken, don't unload this module
15851 and test that our local symbolnames won't clash with modglobal. */
15852 if (!info->is_symlocal && lt_dlclose (handle))
15853 complain ("error unloading modlocal");
15856 lt_dladvise_destroy (&advise);
15862 const lt_dlinfo *info;
15863 lt_dlhandle handle;
15864 lt_dladvise advise;
15866 if (lt_dladvise_init (&advise) || lt_dladvise_global (&advise))
15867 complain ("error setting advise global");
15869 handle = moduleopen ("libglobal.la", advise);
15873 info = lt_dlgetinfo (handle);
15874 printf ("global: %d\n", moduletest (handle, "f", "i"));
15876 /* Don't attempt to load moddepend unless modglobal was successfully
15877 loaded and the symglobal hint was taken, and the system allows to
15878 to have undefined symbols. */
15879 if (info && info->is_symglobal && HAVE_UNDEFINED_SYMBOLS)
15885 /* Fake the output so the test won't fail when using a dlloader
15886 unable to take symglobal hints. */
15887 printf ("depend: 5\n");
15891 lt_dladvise_destroy (&advise);
15895 hint_preload (void)
15897 lt_dlhandle handle;
15898 lt_dladvise advise;
15900 if (lt_dladvise_init (&advise) || lt_dladvise_preload (&advise))
15901 complain ("error setting advise preload");
15903 handle = moduleopen ("libpreload.la", advise);
15907 printf("preload: %d\n", moduletest (handle, "h", "k"));
15910 lt_dladvise_destroy (&advise);
15917 LTDL_SET_PRELOADED_SYMBOLS();
15919 if (lt_dlinit() != 0)
15921 fprintf (stderr, "error during initialization: %s\n", lt_dlerror());
15930 /* This ugly hack is because we have symbols with the same name in both the
15931 global module and the local one, we can't lt_dlopen the local module
15932 locally and then later load the global module globally because of this.
15933 Instead of skipping the test entirely, we test what we can and
15935 printf ("global: 4\n");
15936 printf ("depend: 5\n");
15940 if (lt_dlexit () != 0)
15941 complain ("error during exit");
15943 return (errors != 0);
15948 cat >modresident.c <<'_ATEOF'
15952 int func (int x) { return x / 3; }
15960 cat >modlocal.c <<'_ATEOF'
15964 int f (int x) { return (x * x) / 10; }
15972 cat >modglobal.c <<'_ATEOF'
15976 int f (int x) { return x - 1; }
15984 cat >moddepend.c <<'_ATEOF'
15988 extern int f (int), i;
15989 int g (int x) { return f (i) + x - 3; }
15997 cat >modpreload.c <<'_ATEOF'
16001 int h (int x) { return 2 * x; }
16009 cat >expout <<'_ATEOF'
16017 case $host_os in mingw*)
16018 while read -r l; do printf "%s\r\n" "$l"; done < expout > expout.t
16019 mv -f expout.t expout ;;
16022 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
16023 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
16025 # Skip this test when called from:
16026 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
16028 $as_echo "$at_srcdir/lt_dladvise.at:315: case \$LIBLTDL in #(
16029 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
16031 at_fn_check_prepare_notrace 'an embedded newline' "lt_dladvise.at:315"
16032 ( $at_check_trace; case $LIBLTDL in #(
16033 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
16035 ) >>"$at_stdout" 2>>"$at_stderr"
16036 at_status=$? at_failed=false
16038 at_fn_diff_devnull "$at_stderr" || at_failed=:
16039 echo stdout:; cat "$at_stdout"
16040 at_fn_check_status 0 $at_status "$at_srcdir/lt_dladvise.at:315"
16041 $at_failed && at_fn_log_failure
16045 CPPFLAGS="$LTDLINCL $CPPFLAGS"
16047 dlopenable='resident local global'
16048 dlpreloadable='preload'
16050 # ------------------------------------------------------------------------- #
16051 # The depend test makes no sense unless compiled without -no-undefined. By #
16052 # not building the depend module in that case, when this test passes we can #
16053 # be sure that hint_global() above, is being correctly informed those hosts #
16054 # are reporting not able to accept the global hint to lt_dlopenadvise(). #
16055 # ------------------------------------------------------------------------- #
16058 $LIBTOOL --features | grep 'enable shared libraries' >/dev/null && have_shared=:
16060 case $host_os,$have_shared in
16061 cygwin* | mingw* | cegcc* | *,false)
16062 # These hosts do not support linking without -no-undefined
16063 CPPFLAGS="$CPPFLAGS -DHAVE_UNDEFINED_SYMBOLS=0"
16066 CPPFLAGS="$CPPFLAGS -DHAVE_UNDEFINED_SYMBOLS=1"
16067 dlopenable="$dlopen depend"
16068 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c moddepend.c
16070 $as_echo "$at_srcdir/lt_dladvise.at:343: \$LIBTOOL --mode=link \$CC -module \$CFLAGS \$LDFLAGS -o libdepend.la moddepend.lo -rpath /foo -avoid-version"
16071 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC -module $CFLAGS $LDFLAGS -o libdepend.la moddepend.lo -rpath /foo -avoid-version" "lt_dladvise.at:343"
16072 ( $at_check_trace; $LIBTOOL --mode=link $CC -module $CFLAGS $LDFLAGS -o libdepend.la moddepend.lo -rpath /foo -avoid-version
16073 ) >>"$at_stdout" 2>>"$at_stderr"
16074 at_status=$? at_failed=false
16076 echo stderr:; cat "$at_stderr"
16077 echo stdout:; cat "$at_stdout"
16078 at_fn_check_status 0 $at_status "$at_srcdir/lt_dladvise.at:343"
16079 $at_failed && at_fn_log_failure
16085 $have_shared && CPPFLAGS="$CPPFLAGS -DHAVE_SHARED"
16087 # ------------------------------------------------------------------------- #
16088 # Other modules can be tested correctly even when built with -no-undefined. #
16089 # ------------------------------------------------------------------------- #
16091 LDFLAGS="$LDFLAGS -no-undefined"
16093 $CC $CPPFLAGS $CFLAGS -c main.c
16094 for name in resident local global preload; do
16095 # FIXME: adding -static to libpreload shouldn't be necessary.
16096 # Fix this properly in ltmain, then remove this workaround.
16097 if test $name = preload; then
16102 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c mod$name.c
16104 $as_echo "$at_srcdir/lt_dladvise.at:366: \$LIBTOOL --mode=link \$CC -module \$CFLAGS \$LDFLAGS -o lib\$name.la mod\$name.lo \$st -rpath /foo -avoid-version"
16105 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC -module $CFLAGS $LDFLAGS -o lib$name.la mod$name.lo $st -rpath /foo -avoid-version" "lt_dladvise.at:366"
16106 ( $at_check_trace; $LIBTOOL --mode=link $CC -module $CFLAGS $LDFLAGS -o lib$name.la mod$name.lo $st -rpath /foo -avoid-version
16107 ) >>"$at_stdout" 2>>"$at_stderr"
16108 at_status=$? at_failed=false
16110 echo stderr:; cat "$at_stderr"
16111 echo stdout:; cat "$at_stdout"
16112 at_fn_check_status 0 $at_status "$at_srcdir/lt_dladvise.at:366"
16113 $at_failed && at_fn_log_failure
16119 for module in $dlpreloadable; do
16120 preloaded="${preloaded+$preloaded }-dlpreopen lib$module.la"
16124 for module in $dlopenable; do
16125 modules="${modules+$modules }-dlopen lib$module.la"
16129 $as_echo "$at_srcdir/lt_dladvise.at:380: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT \$preloaded \$modules \$LIBLTDL"
16130 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT $preloaded $modules $LIBLTDL" "lt_dladvise.at:380"
16131 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT $preloaded $modules $LIBLTDL
16132 ) >>"$at_stdout" 2>>"$at_stderr"
16133 at_status=$? at_failed=false
16135 echo stderr:; cat "$at_stderr"
16136 echo stdout:; cat "$at_stdout"
16137 at_fn_check_status 0 $at_status "$at_srcdir/lt_dladvise.at:380"
16138 $at_failed && at_fn_log_failure
16142 # Remove loadable libpreload module, so we know it is the preloaded module
16143 # that is being executed by a successful test invocation:
16145 $as_echo "$at_srcdir/lt_dladvise.at:385: \$LIBTOOL --mode=clean rm -f libpreload.la"
16146 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f libpreload.la" "lt_dladvise.at:385"
16147 ( $at_check_trace; $LIBTOOL --mode=clean rm -f libpreload.la
16148 ) >>"$at_stdout" 2>>"$at_stderr"
16149 at_status=$? at_failed=false
16151 echo stderr:; cat "$at_stderr"
16152 echo stdout:; cat "$at_stdout"
16153 at_fn_check_status 0 $at_status "$at_srcdir/lt_dladvise.at:385"
16154 $at_failed && at_fn_log_failure
16158 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
16160 $as_echo "$at_srcdir/lt_dladvise.at:387: if \$LIBTOOL --mode=execute \$modules \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
16161 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute $modules \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lt_dladvise.at:387"
16162 ( $at_check_trace; if $LIBTOOL --mode=execute $modules "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
16163 ) >>"$at_stdout" 2>>"$at_stderr"
16164 at_status=$? at_failed=false
16166 at_fn_diff_devnull "$at_stderr" || at_failed=:
16167 $at_diff expout "$at_stdout" || at_failed=:
16168 at_fn_check_status 0 $at_status "$at_srcdir/lt_dladvise.at:387"
16169 $at_failed && at_fn_log_failure
16175 $at_times_p && times >"$at_times_file"
16176 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16177 read at_status <"$at_status_file"
16180 at_fn_group_banner 76 'lt_dlopen.at:23' \
16181 "lt_dlopen error messages" " " 7
16184 $as_echo "76. $at_setup_line: testing $at_desc ..."
16189 # The bug is not fixed:
16192 # This test only works if the system allows undefined symbols.
16193 eval `$LIBTOOL --config | grep '^allow_undefined_flag='`
16195 $as_echo "$at_srcdir/lt_dlopen.at:31: test unsupported != \"\$allow_undefined_flag\" || exit 77"
16196 at_fn_check_prepare_dynamic "test unsupported != \"$allow_undefined_flag\" || exit 77" "lt_dlopen.at:31"
16197 ( $at_check_trace; test unsupported != "$allow_undefined_flag" || exit 77
16198 ) >>"$at_stdout" 2>>"$at_stderr"
16199 at_status=$? at_failed=false
16201 at_fn_diff_devnull "$at_stderr" || at_failed=:
16202 at_fn_diff_devnull "$at_stdout" || at_failed=:
16203 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:31"
16204 $at_failed && at_fn_log_failure
16208 cat >main.c <<'_ATEOF'
16213 main (int argc, char* argv[])
16216 lt_dlhandle plugin_handle;
16220 fprintf (stderr, "usage: %s plugin\n", argv[0]);
16225 plugin_handle = lt_dlopenext (argv[1]);
16226 if (NULL != plugin_handle)
16228 printf ("plugin opened successfully!\n");
16229 lt_dlclose (plugin_handle);
16233 printf ("plugin failed to open: %s\n", lt_dlerror());
16242 cat >good-plugin.c <<'_ATEOF'
16248 cat >missing-symbol-plugin.c <<'_ATEOF'
16249 /* On systems that allow undefined symbols, this will compile,
16250 but the symbol "foo" won't be found at runtime */
16256 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
16257 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
16259 CPPFLAGS="$LTDLINCL $CPPFLAGS"
16264 $as_echo "$at_srcdir/lt_dlopen.at:85: \$CC \$CPPFLAGS \$CFLAGS -c main.c"
16265 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c" "lt_dlopen.at:85"
16266 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c
16267 ) >>"$at_stdout" 2>>"$at_stderr"
16268 at_status=$? at_failed=false
16270 echo stderr:; cat "$at_stderr"
16271 echo stdout:; cat "$at_stdout"
16272 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:85"
16273 $at_failed && at_fn_log_failure
16276 for file in good-plugin.c missing-symbol-plugin.c; do
16278 $as_echo "$at_srcdir/lt_dlopen.at:87: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c \$file"
16279 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file" "lt_dlopen.at:87"
16280 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
16281 ) >>"$at_stdout" 2>>"$at_stderr"
16282 at_status=$? at_failed=false
16284 echo stderr:; cat "$at_stderr"
16285 echo stdout:; cat "$at_stdout"
16286 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:87"
16287 $at_failed && at_fn_log_failure
16292 $as_echo "$at_srcdir/lt_dlopen.at:90: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o good-plugin.la -rpath \$libdir -module -avoid-version good-plugin.lo"
16293 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o good-plugin.la -rpath $libdir -module -avoid-version good-plugin.lo" "lt_dlopen.at:90"
16294 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o good-plugin.la -rpath $libdir -module -avoid-version good-plugin.lo
16295 ) >>"$at_stdout" 2>>"$at_stderr"
16296 at_status=$? at_failed=false
16298 echo stderr:; cat "$at_stderr"
16299 echo stdout:; cat "$at_stdout"
16300 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:90"
16301 $at_failed && at_fn_log_failure
16305 $as_echo "$at_srcdir/lt_dlopen.at:92: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o missing-symbol-plugin.la -rpath \$libdir -module -avoid-version missing-symbol-plugin.lo"
16306 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o missing-symbol-plugin.la -rpath $libdir -module -avoid-version missing-symbol-plugin.lo" "lt_dlopen.at:92"
16307 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o missing-symbol-plugin.la -rpath $libdir -module -avoid-version missing-symbol-plugin.lo
16308 ) >>"$at_stdout" 2>>"$at_stderr"
16309 at_status=$? at_failed=false
16311 echo stderr:; cat "$at_stderr"
16312 echo stdout:; cat "$at_stdout"
16313 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:92"
16314 $at_failed && at_fn_log_failure
16319 $as_echo "$at_srcdir/lt_dlopen.at:95: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT -dlopen good-plugin.la -dlopen missing-symbol-plugin.la \$LIBLTDL"
16320 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen good-plugin.la -dlopen missing-symbol-plugin.la $LIBLTDL" "lt_dlopen.at:95"
16321 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen good-plugin.la -dlopen missing-symbol-plugin.la $LIBLTDL
16322 ) >>"$at_stdout" 2>>"$at_stderr"
16323 at_status=$? at_failed=false
16325 echo stderr:; cat "$at_stderr"
16326 echo stdout:; cat "$at_stdout"
16327 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:95"
16328 $at_failed && at_fn_log_failure
16332 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
16334 $as_echo "$at_srcdir/lt_dlopen.at:99: if \"\$lt_exe\" ./good-plugin.la; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
16335 at_fn_check_prepare_dynamic "if \"$lt_exe\" ./good-plugin.la; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lt_dlopen.at:99"
16336 ( $at_check_trace; if "$lt_exe" ./good-plugin.la; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
16337 ) >>"$at_stdout" 2>>"$at_stderr"
16338 at_status=$? at_failed=false
16340 echo stderr:; cat "$at_stderr"
16341 echo stdout:; cat "$at_stdout"
16342 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:99"
16343 $at_failed && at_fn_log_failure
16347 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
16349 $as_echo "$at_srcdir/lt_dlopen.at:100: if \"\$lt_exe\" ./missing-symbol-plugin.la; then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
16350 at_fn_check_prepare_dynamic "if \"$lt_exe\" ./missing-symbol-plugin.la; then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lt_dlopen.at:100"
16351 ( $at_check_trace; if "$lt_exe" ./missing-symbol-plugin.la; then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
16352 ) >>"$at_stdout" 2>>"$at_stderr"
16353 at_status=$? at_failed=false
16355 echo stderr:; tee stderr <"$at_stderr"
16356 echo stdout:; cat "$at_stdout"
16357 at_fn_check_status 1 $at_status "$at_srcdir/lt_dlopen.at:100"
16358 $at_failed && at_fn_log_failure
16363 $as_echo "$at_srcdir/lt_dlopen.at:101: grep 'missing symbol' stderr"
16364 at_fn_check_prepare_trace "lt_dlopen.at:101"
16365 ( $at_check_trace; grep 'missing symbol' stderr
16366 ) >>"$at_stdout" 2>>"$at_stderr"
16367 at_status=$? at_failed=false
16369 at_fn_diff_devnull "$at_stderr" || at_failed=:
16370 echo stdout:; cat "$at_stdout"
16371 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen.at:101"
16372 $at_failed && at_fn_log_failure
16377 $at_times_p && times >"$at_times_file"
16378 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16379 read at_status <"$at_status_file"
16382 at_fn_group_banner 77 'lt_dlopen_a.at:23' \
16383 "lt_dlopen archive" " " 7
16386 $as_echo "77. $at_setup_line: testing $at_desc ..."
16391 cat >main.c <<'_ATEOF'
16395 /* This dlopen() in the main executable should override any dlopen()s in
16396 shared libraries etc.
16398 If that is not the case (or the platform does not use dlopen()) then this
16399 test should exit 77, causing the test to SKIP.
16401 static int retcde = 77;
16403 void * dlopen(const char *path, int mode) {
16404 if (!(strcmp(path,"plugin.a") && strcmp(path,"plugin.lib")))
16406 fprintf(stderr,"Tried to open archive %s\n",path);
16411 fprintf(stderr,"Opening ... %s\n", path);
16412 if (retcde == 77) retcde = 0;
16418 main (int argc, char* argv[])
16421 lt_dlhandle plugin_handle;
16424 plugin_handle = lt_dlopenext (argv[1]);
16431 cat >plugin.c <<'_ATEOF'
16437 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
16438 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
16440 CPPFLAGS="$LTDLINCL $CPPFLAGS"
16446 $as_echo "$at_srcdir/lt_dlopen_a.at:78: \$CC \$CPPFLAGS \$CFLAGS -c main.c || exit 77"
16447 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c || exit 77" "lt_dlopen_a.at:78"
16448 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c || exit 77
16449 ) >>"$at_stdout" 2>>"$at_stderr"
16450 at_status=$? at_failed=false
16452 echo stderr:; cat "$at_stderr"
16453 echo stdout:; cat "$at_stdout"
16454 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:78"
16455 $at_failed && at_fn_log_failure
16459 $as_echo "$at_srcdir/lt_dlopen_a.at:79: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c plugin.c || exit 77"
16460 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c plugin.c || exit 77" "lt_dlopen_a.at:79"
16461 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c plugin.c || exit 77
16462 ) >>"$at_stdout" 2>>"$at_stderr"
16463 at_status=$? at_failed=false
16465 echo stderr:; cat "$at_stderr"
16466 echo stdout:; cat "$at_stdout"
16467 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:79"
16468 $at_failed && at_fn_log_failure
16472 $as_echo "$at_srcdir/lt_dlopen_a.at:81: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o plugin.la -rpath \$libdir -module -no-undefined -avoid-version plugin.lo || exit 77"
16473 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o plugin.la -rpath $libdir -module -no-undefined -avoid-version plugin.lo || exit 77" "lt_dlopen_a.at:81"
16474 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o plugin.la -rpath $libdir -module -no-undefined -avoid-version plugin.lo || exit 77
16475 ) >>"$at_stdout" 2>>"$at_stderr"
16476 at_status=$? at_failed=false
16478 echo stderr:; cat "$at_stderr"
16479 echo stdout:; cat "$at_stdout"
16480 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:81"
16481 $at_failed && at_fn_log_failure
16486 $as_echo "$at_srcdir/lt_dlopen_a.at:85: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT -dlopen plugin.la \$LIBLTDL || exit 77"
16487 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen plugin.la $LIBLTDL || exit 77" "lt_dlopen_a.at:85"
16488 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen plugin.la $LIBLTDL || exit 77
16489 ) >>"$at_stdout" 2>>"$at_stderr"
16490 at_status=$? at_failed=false
16492 echo stderr:; cat "$at_stderr"
16493 echo stdout:; cat "$at_stdout"
16494 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:85"
16495 $at_failed && at_fn_log_failure
16503 $as_echo "$at_srcdir/lt_dlopen_a.at:92: \$LIBTOOL --mode=install cp plugin.la \$libdir"
16504 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp plugin.la $libdir" "lt_dlopen_a.at:92"
16505 ( $at_check_trace; $LIBTOOL --mode=install cp plugin.la $libdir
16506 ) >>"$at_stdout" 2>>"$at_stderr"
16507 at_status=$? at_failed=false
16509 echo stderr:; cat "$at_stderr"
16510 echo stdout:; cat "$at_stdout"
16511 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:92"
16512 $at_failed && at_fn_log_failure
16516 $as_echo "$at_srcdir/lt_dlopen_a.at:93: \$LIBTOOL --mode=install cp main\$EXEEXT \$bindir"
16517 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp main$EXEEXT $bindir" "lt_dlopen_a.at:93"
16518 ( $at_check_trace; $LIBTOOL --mode=install cp main$EXEEXT $bindir
16519 ) >>"$at_stdout" 2>>"$at_stderr"
16520 at_status=$? at_failed=false
16522 echo stderr:; cat "$at_stderr"
16523 echo stdout:; cat "$at_stdout"
16524 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:93"
16525 $at_failed && at_fn_log_failure
16529 $as_echo "$at_srcdir/lt_dlopen_a.at:94: test -f \$libdir/plugin.a || exit 77"
16530 at_fn_check_prepare_dynamic "test -f $libdir/plugin.a || exit 77" "lt_dlopen_a.at:94"
16531 ( $at_check_trace; test -f $libdir/plugin.a || exit 77
16532 ) >>"$at_stdout" 2>>"$at_stderr"
16533 at_status=$? at_failed=false
16535 at_fn_diff_devnull "$at_stderr" || at_failed=:
16536 at_fn_diff_devnull "$at_stdout" || at_failed=:
16537 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:94"
16538 $at_failed && at_fn_log_failure
16541 lt_exe=$bindir/main; if test -f "$bindir/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
16543 $as_echo "$at_srcdir/lt_dlopen_a.at:95: if \"\$lt_exe\" \$libdir/plugin.la; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
16544 at_fn_check_prepare_dynamic "if \"$lt_exe\" $libdir/plugin.la; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lt_dlopen_a.at:95"
16545 ( $at_check_trace; if "$lt_exe" $libdir/plugin.la; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
16546 ) >>"$at_stdout" 2>>"$at_stderr"
16547 at_status=$? at_failed=false
16549 echo stderr:; cat "$at_stderr"
16550 echo stdout:; cat "$at_stdout"
16551 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopen_a.at:95"
16552 $at_failed && at_fn_log_failure
16558 $at_times_p && times >"$at_times_file"
16559 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16560 read at_status <"$at_status_file"
16563 at_fn_group_banner 78 'lt_dlopenext.at:23' \
16564 "lt_dlopenext error messages" " " 7
16567 $as_echo "78. $at_setup_line: testing $at_desc ..."
16572 # This test requires shared library support.
16574 $as_echo "$at_srcdir/lt_dlopenext.at:27: \$LIBTOOL --features | grep 'enable shared libraries' || exit 77"
16575 at_fn_check_prepare_notrace 'a shell pipeline' "lt_dlopenext.at:27"
16576 ( $at_check_trace; $LIBTOOL --features | grep 'enable shared libraries' || exit 77
16577 ) >>"$at_stdout" 2>>"$at_stderr"
16578 at_status=$? at_failed=false
16580 at_fn_diff_devnull "$at_stderr" || at_failed=:
16581 echo stdout:; cat "$at_stdout"
16582 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:27"
16583 $at_failed && at_fn_log_failure
16590 mkdir $prefix $libdir $bindir
16592 # This code is copied from the Autobook:
16593 # <http://sources.redhat.com/autobook/autobook/autobook_169.html>
16594 # so if it needs changes, be sure to notify the Autobook authors
16597 cat >simple-module.c <<'_ATEOF'
16605 run (const char *argument)
16607 printf ("Hello, %s!\n", argument);
16613 cat >ltdl-loader.c <<'_ATEOF'
16616 #include <stdlib.h>
16617 #ifndef EXIT_FAILURE
16618 # define EXIT_FAILURE 1
16619 # define EXIT_SUCCESS 0
16622 #include <limits.h>
16624 # define PATH_MAX 255
16627 #include <string.h>
16630 #ifndef MODULE_PATH_ENV
16631 # define MODULE_PATH_ENV "MODULE_PATH"
16634 typedef int entrypoint (const char *argument);
16636 /* Save and return a copy of the dlerror() error message,
16637 since the next API call may overwrite the original. */
16638 static char *dlerrordup (char *errormsg);
16641 main (int argc, const char *argv[])
16643 char *errormsg = NULL;
16644 lt_dlhandle module = NULL;
16645 entrypoint *run = NULL;
16650 fprintf (stderr, "USAGE: main MODULENAME ARGUMENT\n");
16651 exit (EXIT_FAILURE);
16654 /* Initialise libltdl. */
16655 errors = lt_dlinit ();
16657 /* Set the module search path. */
16660 const char *path = getenv (MODULE_PATH_ENV);
16663 errors = lt_dlsetsearchpath (path);
16666 /* Load the module. */
16668 module = lt_dlopenext (argv[1]);
16670 /* Find the entry point. */
16673 run = (entrypoint *) lt_dlsym (module, "run");
16675 /* In principle, run might legitimately be NULL, so
16676 I don't use run == NULL as an error indicator
16678 errormsg = dlerrordup (errormsg);
16679 if (errormsg != NULL)
16681 errors = lt_dlclose (module);
16688 /* Call the entry point function. */
16691 int result = (*run) (argv[2]);
16693 errormsg = strdup ("module entry point execution failed");
16695 printf ("\t=> %d\n", result);
16698 /* Unload the module, now that we are done with it. */
16700 errors = lt_dlclose (module);
16704 /* Diagnose the encountered error. */
16705 errormsg = dlerrordup (errormsg);
16709 fprintf (stderr, "%s: dlerror() failed.\n", argv[0]);
16710 return EXIT_FAILURE;
16714 /* Finished with ltdl now. */
16716 if (lt_dlexit () != 0)
16717 errormsg = dlerrordup (errormsg);
16721 fprintf (stderr, "%s: %s.\n", argv[0], errormsg);
16723 exit (EXIT_FAILURE);
16726 return EXIT_SUCCESS;
16729 /* Be careful to save a copy of the error message,
16730 since the next API call may overwrite the original. */
16732 dlerrordup (char *errormsg)
16734 char *error = (char *) lt_dlerror ();
16735 if (error && !errormsg)
16736 errormsg = strdup (error);
16742 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
16743 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
16745 # Skip this test when called from:
16746 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
16748 $as_echo "$at_srcdir/lt_dlopenext.at:188: case \$LIBLTDL in #(
16749 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
16751 at_fn_check_prepare_notrace 'an embedded newline' "lt_dlopenext.at:188"
16752 ( $at_check_trace; case $LIBLTDL in #(
16753 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
16755 ) >>"$at_stdout" 2>>"$at_stderr"
16756 at_status=$? at_failed=false
16758 at_fn_diff_devnull "$at_stderr" || at_failed=:
16759 echo stdout:; cat "$at_stdout"
16760 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:188"
16761 $at_failed && at_fn_log_failure
16765 CPPFLAGS="$LTDLINCL $CPPFLAGS"
16766 LDFLAGS="$LDFLAGS -no-undefined"
16769 $as_echo "$at_srcdir/lt_dlopenext.at:195: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c simple-module.c"
16770 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c simple-module.c" "lt_dlopenext.at:195"
16771 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c simple-module.c
16772 ) >>"$at_stdout" 2>>"$at_stderr"
16773 at_status=$? at_failed=false
16775 echo stderr:; cat "$at_stderr"
16776 echo stdout:; cat "$at_stdout"
16777 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:195"
16778 $at_failed && at_fn_log_failure
16782 $as_echo "$at_srcdir/lt_dlopenext.at:197: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o simple-module.la simple-module.lo -rpath \$libdir -module -avoid-version"
16783 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o simple-module.la simple-module.lo -rpath $libdir -module -avoid-version" "lt_dlopenext.at:197"
16784 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o simple-module.la simple-module.lo -rpath $libdir -module -avoid-version
16785 ) >>"$at_stdout" 2>>"$at_stderr"
16786 at_status=$? at_failed=false
16788 echo stderr:; cat "$at_stderr"
16789 echo stdout:; cat "$at_stdout"
16790 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:197"
16791 $at_failed && at_fn_log_failure
16795 $as_echo "$at_srcdir/lt_dlopenext.at:200: \$CC \$CPPFLAGS \$CFLAGS -c ltdl-loader.c"
16796 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c ltdl-loader.c" "lt_dlopenext.at:200"
16797 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c ltdl-loader.c
16798 ) >>"$at_stdout" 2>>"$at_stderr"
16799 at_status=$? at_failed=false
16801 echo stderr:; cat "$at_stderr"
16802 echo stdout:; cat "$at_stdout"
16803 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:200"
16804 $at_failed && at_fn_log_failure
16808 $as_echo "$at_srcdir/lt_dlopenext.at:202: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o ltdl-loader\$EXEEXT ltdl-loader.\$OBJEXT -dlopen self \$LIBLTDL"
16809 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o ltdl-loader$EXEEXT ltdl-loader.$OBJEXT -dlopen self $LIBLTDL" "lt_dlopenext.at:202"
16810 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o ltdl-loader$EXEEXT ltdl-loader.$OBJEXT -dlopen self $LIBLTDL
16811 ) >>"$at_stdout" 2>>"$at_stderr"
16812 at_status=$? at_failed=false
16814 echo stderr:; cat "$at_stderr"
16815 echo stdout:; cat "$at_stdout"
16816 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:202"
16817 $at_failed && at_fn_log_failure
16821 $as_echo "$at_srcdir/lt_dlopenext.at:205: \$LIBTOOL --mode=install cp simple-module.la \$libdir/simple-module.la"
16822 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp simple-module.la $libdir/simple-module.la" "lt_dlopenext.at:205"
16823 ( $at_check_trace; $LIBTOOL --mode=install cp simple-module.la $libdir/simple-module.la
16824 ) >>"$at_stdout" 2>>"$at_stderr"
16825 at_status=$? at_failed=false
16827 echo stderr:; cat "$at_stderr"
16828 echo stdout:; cat "$at_stdout"
16829 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:205"
16830 $at_failed && at_fn_log_failure
16834 $as_echo "$at_srcdir/lt_dlopenext.at:206: \$LIBTOOL --mode=clean rm -f simple-module.la"
16835 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f simple-module.la" "lt_dlopenext.at:206"
16836 ( $at_check_trace; $LIBTOOL --mode=clean rm -f simple-module.la
16837 ) >>"$at_stdout" 2>>"$at_stderr"
16838 at_status=$? at_failed=false
16840 echo stderr:; cat "$at_stderr"
16841 echo stdout:; cat "$at_stdout"
16842 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:206"
16843 $at_failed && at_fn_log_failure
16847 # Try finding the module with and without the .la file, with absolute
16848 # path, relative path, or one of the path variables. Do not override
16849 # $PATH for w32, see shlibpath.at for the hacks this requires.
16851 # Finding the module without the .la file will not work if MODULE_EXT
16852 # aka. shared_ext is empty.
16854 eval `$LIBTOOL --config | $EGREP '^(shlibpath_var|shrext_cmds)='`
16857 eval shared_ext=\"$shrext_cmds\"
16858 if test -n "$shared_ext"; then
16859 have_lafile="with without"
16864 if test "$shlibpath_var" = PATH; then
16865 $unset shlibpath_var || shlibpath_var=
16868 for lafile in $have_lafile; do
16869 if test $lafile = without; then
16870 rm $libdir/simple-module.la
16873 for dir in inst/lib "$libdir"; do
16874 lt_exe=./ltdl-loader; if test -f "./ltdl-loader$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
16876 $as_echo "$at_srcdir/lt_dlopenext.at:235: if \"\$lt_exe\" \$dir/simple-module World; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
16877 at_fn_check_prepare_dynamic "if \"$lt_exe\" $dir/simple-module World; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lt_dlopenext.at:235"
16878 ( $at_check_trace; if "$lt_exe" $dir/simple-module World; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
16879 ) >>"$at_stdout" 2>>"$at_stderr"
16880 at_status=$? at_failed=false
16882 echo stderr:; cat "$at_stderr"
16883 echo stdout:; tee stdout <"$at_stdout"
16884 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:235"
16885 $at_failed && at_fn_log_failure
16890 $as_echo "$at_srcdir/lt_dlopenext.at:237: grep \"Hello, World\" stdout"
16891 at_fn_check_prepare_trace "lt_dlopenext.at:237"
16892 ( $at_check_trace; grep "Hello, World" stdout
16893 ) >>"$at_stdout" 2>>"$at_stderr"
16894 at_status=$? at_failed=false
16896 at_fn_diff_devnull "$at_stderr" || at_failed=:
16897 echo stdout:; cat "$at_stdout"
16898 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:237"
16899 $at_failed && at_fn_log_failure
16903 for var in MODULE_PATH LTDL_LIBRARY_PATH $shlibpath_var
16907 lt_exe=./ltdl-loader; if test -f "./ltdl-loader$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
16909 $as_echo "$at_srcdir/lt_dlopenext.at:243: if \"\$lt_exe\" simple-module World; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
16910 at_fn_check_prepare_dynamic "if \"$lt_exe\" simple-module World; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lt_dlopenext.at:243"
16911 ( $at_check_trace; if "$lt_exe" simple-module World; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
16912 ) >>"$at_stdout" 2>>"$at_stderr"
16913 at_status=$? at_failed=false
16915 echo stderr:; cat "$at_stderr"
16916 echo stdout:; tee stdout <"$at_stdout"
16917 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:243"
16918 $at_failed && at_fn_log_failure
16923 $as_echo "$at_srcdir/lt_dlopenext.at:245: grep \"Hello, World\" stdout"
16924 at_fn_check_prepare_trace "lt_dlopenext.at:245"
16925 ( $at_check_trace; grep "Hello, World" stdout
16926 ) >>"$at_stdout" 2>>"$at_stderr"
16927 at_status=$? at_failed=false
16929 at_fn_diff_devnull "$at_stderr" || at_failed=:
16930 echo stdout:; cat "$at_stdout"
16931 at_fn_check_status 0 $at_status "$at_srcdir/lt_dlopenext.at:245"
16932 $at_failed && at_fn_log_failure
16935 $unset $var || eval $var=
16941 $at_times_p && times >"$at_times_file"
16942 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16943 read at_status <"$at_status_file"
16946 at_fn_group_banner 79 'ltdl-libdir.at:23' \
16947 "libdir of installed modules" " " 7
16950 $as_echo "79. $at_setup_line: testing $at_desc ..."
16955 # This test requires shared library support.
16957 $as_echo "$at_srcdir/ltdl-libdir.at:27: \$LIBTOOL --features | grep 'enable shared libraries' || exit 77"
16958 at_fn_check_prepare_notrace 'a shell pipeline' "ltdl-libdir.at:27"
16959 ( $at_check_trace; $LIBTOOL --features | grep 'enable shared libraries' || exit 77
16960 ) >>"$at_stdout" 2>>"$at_stderr"
16961 at_status=$? at_failed=false
16963 at_fn_diff_devnull "$at_stderr" || at_failed=:
16964 echo stdout:; cat "$at_stdout"
16965 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:27"
16966 $at_failed && at_fn_log_failure
16970 # With MinGW, try Windows-style paths only.
16971 if pwd -W >/dev/null 2>&1; then
16972 prefix=`pwd -W`/inst
16978 mkdir $prefix $libdir $bindir
16980 cat >a.c <<'_ATEOF'
16991 cat >m.c <<'_ATEOF'
16996 typedef int func_f(void);
16999 main (int argc, const char *argv[])
17001 lt_dlhandle module = NULL;
17005 fprintf(stderr, "lt_dlinit failed '%s'\n", lt_dlerror());
17009 module = lt_dlopen("./a.la");
17012 fprintf(stderr, "lt_dlopen failed '%s'\n", lt_dlerror());
17016 f = (func_f *)lt_dlsym(module, "f");
17019 fprintf(stderr, "lt_dlsym failed '%s'\n", lt_dlerror());
17024 fprintf(stderr, "f did not return 42\n");
17028 lt_dlclose(module);
17035 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
17036 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
17038 # Skip installcheck if --disable-ltdl-install was used.
17040 $as_echo "$at_srcdir/ltdl-libdir.at:97: test -f \"\$LIBLTDL\" || exit 77"
17041 at_fn_check_prepare_dynamic "test -f \"$LIBLTDL\" || exit 77" "ltdl-libdir.at:97"
17042 ( $at_check_trace; test -f "$LIBLTDL" || exit 77
17043 ) >>"$at_stdout" 2>>"$at_stderr"
17044 at_status=$? at_failed=false
17046 at_fn_diff_devnull "$at_stderr" || at_failed=:
17047 at_fn_diff_devnull "$at_stdout" || at_failed=:
17048 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:97"
17049 $at_failed && at_fn_log_failure
17053 CPPFLAGS="$LTDLINCL $CPPFLAGS"
17054 LDFLAGS="$LDFLAGS -no-undefined"
17057 $as_echo "$at_srcdir/ltdl-libdir.at:102: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c a.c"
17058 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c" "ltdl-libdir.at:102"
17059 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c
17060 ) >>"$at_stdout" 2>>"$at_stderr"
17061 at_status=$? at_failed=false
17063 echo stderr:; cat "$at_stderr"
17064 echo stdout:; cat "$at_stdout"
17065 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:102"
17066 $at_failed && at_fn_log_failure
17070 $as_echo "$at_srcdir/ltdl-libdir.at:104: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o a.la a.lo -rpath \$libdir -module -shared -avoid-version"
17071 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a.la a.lo -rpath $libdir -module -shared -avoid-version" "ltdl-libdir.at:104"
17072 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a.la a.lo -rpath $libdir -module -shared -avoid-version
17073 ) >>"$at_stdout" 2>>"$at_stderr"
17074 at_status=$? at_failed=false
17076 echo stderr:; cat "$at_stderr"
17077 echo stdout:; cat "$at_stdout"
17078 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:104"
17079 $at_failed && at_fn_log_failure
17083 $as_echo "$at_srcdir/ltdl-libdir.at:107: \$CC \$CPPFLAGS \$CFLAGS -c m.c"
17084 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c m.c" "ltdl-libdir.at:107"
17085 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c m.c
17086 ) >>"$at_stdout" 2>>"$at_stderr"
17087 at_status=$? at_failed=false
17089 echo stderr:; cat "$at_stderr"
17090 echo stdout:; cat "$at_stdout"
17091 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:107"
17092 $at_failed && at_fn_log_failure
17096 $as_echo "$at_srcdir/ltdl-libdir.at:109: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o m\$EXEEXT m.\$OBJEXT \$LIBLTDL"
17097 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT $LIBLTDL" "ltdl-libdir.at:109"
17098 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m$EXEEXT m.$OBJEXT $LIBLTDL
17099 ) >>"$at_stdout" 2>>"$at_stderr"
17100 at_status=$? at_failed=false
17102 echo stderr:; cat "$at_stderr"
17103 echo stdout:; cat "$at_stdout"
17104 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:109"
17105 $at_failed && at_fn_log_failure
17109 $as_echo "$at_srcdir/ltdl-libdir.at:112: \$LIBTOOL --mode=install cp a.la \$libdir/a.la"
17110 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp a.la $libdir/a.la" "ltdl-libdir.at:112"
17111 ( $at_check_trace; $LIBTOOL --mode=install cp a.la $libdir/a.la
17112 ) >>"$at_stdout" 2>>"$at_stderr"
17113 at_status=$? at_failed=false
17115 echo stderr:; cat "$at_stderr"
17116 echo stdout:; cat "$at_stdout"
17117 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:112"
17118 $at_failed && at_fn_log_failure
17122 $as_echo "$at_srcdir/ltdl-libdir.at:114: \$LIBTOOL --mode=install cp m\$EXEEXT \$bindir/m\$EXEEXT"
17123 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp m$EXEEXT $bindir/m$EXEEXT" "ltdl-libdir.at:114"
17124 ( $at_check_trace; $LIBTOOL --mode=install cp m$EXEEXT $bindir/m$EXEEXT
17125 ) >>"$at_stdout" 2>>"$at_stderr"
17126 at_status=$? at_failed=false
17128 echo stderr:; cat "$at_stderr"
17129 echo stdout:; cat "$at_stdout"
17130 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:114"
17131 $at_failed && at_fn_log_failure
17135 # Try finding the module via the libdir entry in a misplaced .la file.
17137 mv $libdir/a.la $bindir/a.la
17139 lt_exe=./m; if test -f "./m$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
17141 $as_echo "$at_srcdir/ltdl-libdir.at:121: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
17142 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "ltdl-libdir.at:121"
17143 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
17144 ) >>"$at_stdout" 2>>"$at_stderr"
17145 at_status=$? at_failed=false
17147 echo stderr:; cat "$at_stderr"
17148 echo stdout:; cat "$at_stdout"
17149 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-libdir.at:121"
17150 $at_failed && at_fn_log_failure
17156 $at_times_p && times >"$at_times_file"
17157 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17158 read at_status <"$at_status_file"
17161 at_fn_group_banner 80 'ltdl-api.at:25' \
17165 $as_echo "80. $at_setup_line: testing $at_desc ..."
17170 # Ensure that no symbols from argz are unrenamed.
17171 eval `$LIBTOOL --config | $EGREP '^(NM|global_symbol_pipe|objext)='`
17172 argz_o=$abs_top_builddir/libltdl/argz.$objext
17174 $as_echo "$at_srcdir/ltdl-api.at:31: test -f \"\$argz_o\" || exit 77"
17175 at_fn_check_prepare_dynamic "test -f \"$argz_o\" || exit 77" "ltdl-api.at:31"
17176 ( $at_check_trace; test -f "$argz_o" || exit 77
17177 ) >>"$at_stdout" 2>>"$at_stderr"
17178 at_status=$? at_failed=false
17180 at_fn_diff_devnull "$at_stderr" || at_failed=:
17181 at_fn_diff_devnull "$at_stdout" || at_failed=:
17182 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-api.at:31"
17183 $at_failed && at_fn_log_failure
17187 $as_echo "$at_srcdir/ltdl-api.at:32: eval \"\$NM \\\"\\\$argz_o\\\" | \$global_symbol_pipe\""
17188 at_fn_check_prepare_notrace 'a shell pipeline' "ltdl-api.at:32"
17189 ( $at_check_trace; eval "$NM \"\$argz_o\" | $global_symbol_pipe"
17190 ) >>"$at_stdout" 2>>"$at_stderr"
17191 at_status=$? at_failed=false
17193 echo stderr:; cat "$at_stderr"
17194 echo stdout:; tee stdout <"$at_stdout"
17195 at_fn_check_status 0 $at_status "$at_srcdir/ltdl-api.at:32"
17196 $at_failed && at_fn_log_failure
17199 # Check for global symbols beginning with "argz_"
17201 $as_echo "$at_srcdir/ltdl-api.at:35: grep \"^T argz_\" stdout"
17202 at_fn_check_prepare_trace "ltdl-api.at:35"
17203 ( $at_check_trace; grep "^T argz_" stdout
17204 ) >>"$at_stdout" 2>>"$at_stderr"
17205 at_status=$? at_failed=false
17207 at_fn_diff_devnull "$at_stderr" || at_failed=:
17208 at_fn_diff_devnull "$at_stdout" || at_failed=:
17209 at_fn_check_status 1 $at_status "$at_srcdir/ltdl-api.at:35"
17210 $at_failed && at_fn_log_failure
17213 # and also for the _ prefixed version "_argz_"
17215 $as_echo "$at_srcdir/ltdl-api.at:37: grep \"^T _argz_\" stdout"
17216 at_fn_check_prepare_trace "ltdl-api.at:37"
17217 ( $at_check_trace; grep "^T _argz_" stdout
17218 ) >>"$at_stdout" 2>>"$at_stderr"
17219 at_status=$? at_failed=false
17221 at_fn_diff_devnull "$at_stderr" || at_failed=:
17222 at_fn_diff_devnull "$at_stdout" || at_failed=:
17223 at_fn_check_status 1 $at_status "$at_srcdir/ltdl-api.at:37"
17224 $at_failed && at_fn_log_failure
17229 $at_times_p && times >"$at_times_file"
17230 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17231 read at_status <"$at_status_file"
17234 at_fn_group_banner 81 'dlloader-api.at:23' \
17235 "dlloader API" " " 7
17238 $as_echo "81. $at_setup_line: testing $at_desc ..."
17243 cat >main.c <<'_ATEOF'
17246 #include <stdlib.h>
17247 #include <string.h>
17250 first_init (lt_user_data data)
17252 const char *ctx = (const char *) data;
17254 printf ("first_init: %s\n", ctx);
17260 first_open (lt_user_data data, const char *filename, lt_dladvise advise)
17262 static const char *first_module = "first";
17263 const char *ctx = (const char *) data;
17265 /* Use a magic string to avoid possible interactions with filesystem
17266 * objects. Prepend '/' to short-circuit libltdl's search of
17267 * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar).
17269 if (!filename || strcmp (filename, "/libltdl_dlloader_api_test_first"))
17271 printf ("first_open denies a request\n");
17272 lt_dlseterror (LT_ERROR_FILE_NOT_FOUND);
17276 printf ("first_open (\"%s\"): %s\n", filename, ctx);
17278 return (lt_module) first_module;
17281 static const char *
17282 first_symbol (void)
17284 return "first_symbol";
17288 first_sym (lt_user_data data, lt_module module, const char *symbolname)
17290 const char *ctx = (const char *) data;
17291 const char *filename = (const char *) module;
17293 printf ("first_sym (%s): %s\n", filename, ctx);
17295 return (void *) first_symbol;
17299 first_close (lt_user_data data, lt_module module)
17301 const char *ctx = (const char *) data;
17302 const char *filename = (const char *) module;
17304 printf ("first_close (%s): %s\n", filename, ctx);
17310 first_exit (lt_user_data data)
17312 const char *ctx = (const char *) data;
17314 printf ("first_exit: %s\n", ctx);
17320 last_init (lt_user_data data)
17322 const char *ctx = (const char *) data;
17324 printf ("last_init: %s\n", ctx);
17330 last_open (lt_user_data data, const char *filename, lt_dladvise advise)
17332 static const char *last_module = "last";
17333 const char *ctx = (const char *) data;
17335 /* Use a magic string to avoid possible interactions with filesystem
17336 * objects. Prepend '/' to short-circuit libltdl's search of
17337 * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar).
17339 if (!filename || strcmp (filename, "/libltdl_dlloader_api_test_last"))
17341 printf ("last_open denies a request\n");
17342 lt_dlseterror (LT_ERROR_FILE_NOT_FOUND);
17346 printf ("last_open (\"%s\"): %s\n", filename, ctx);
17348 return (lt_module) last_module;
17351 static const char *
17354 return "last_symbol";
17358 last_sym (lt_user_data data, lt_module module, const char *symbolname)
17360 const char *ctx = (const char *) data;
17361 const char *filename = (const char *) module;
17363 printf ("last_sym (%s): %s\n", filename, ctx);
17365 return (void *) last_symbol;
17369 last_close (lt_user_data data, lt_module module)
17371 const char *ctx = (const char *) data;
17372 const char *filename = (const char *) module;
17374 printf ("last_close (%s): %s\n", filename, ctx);
17380 last_exit (lt_user_data data)
17382 const char *ctx = (const char *) data;
17384 printf ("last_exit: %s\n", ctx);
17389 typedef const char *module_func (void);
17392 main (int argc, char* argv[])
17395 lt_dlvtable *first;
17397 lt_dlhandle module = NULL;
17398 module_func *symbol;
17399 const char *first_ctx = "first_ctx";
17400 const char *last_ctx = "last_ctx";
17401 const lt_dlvtable *finder;
17403 LTDL_SET_PRELOADED_SYMBOLS ();
17407 printf ("lt_dlinit failed\n");
17411 first = (lt_dlvtable *) malloc (sizeof (*first));
17414 printf ("malloc failed\n");
17419 first->name = "first";
17420 first->sym_prefix = NULL;
17421 first->module_open = first_open;
17422 first->module_close = first_close;
17423 first->find_sym = first_sym;
17424 first->dlloader_init = first_init; /* test that it isn't called twice */
17425 first->dlloader_exit = first_exit;
17426 first->dlloader_data = (lt_user_data) first_ctx;
17427 first->priority = LT_DLLOADER_PREPEND;
17429 if (first_init (first->dlloader_data))
17431 printf ("first_init failed\n");
17436 if (lt_dlloader_add (first))
17438 printf ("lt_dlloader_add failed: %s\n", lt_dlerror ());
17443 finder = lt_dlloader_find ("first");
17447 printf ("lt_dlloader_find failed: %s\n", lt_dlerror ());
17452 printf ("Found loader \"%s\"\n", finder->name);
17454 last = (lt_dlvtable *) malloc (sizeof (*last));
17457 printf ("malloc failed\n");
17462 last->name = "last";
17463 last->sym_prefix = NULL;
17464 last->module_open = last_open;
17465 last->module_close = last_close;
17466 last->find_sym = last_sym;
17467 last->dlloader_init = last_init; /* test that it isn't called twice */
17468 last->dlloader_exit = last_exit;
17469 last->dlloader_data = (lt_user_data) last_ctx;
17470 last->priority = LT_DLLOADER_APPEND;
17472 if (last_init (last->dlloader_data))
17474 printf ("last_init failed\n");
17479 if (lt_dlloader_add (last))
17481 printf ("lt_dlloader_add failed: %s\n", lt_dlerror ());
17486 finder = lt_dlloader_find ("last");
17490 printf ("lt_dlloader_find failed: %s\n", lt_dlerror ());
17495 printf ("Found loader \"%s\"\n", finder->name);
17497 /* Use a magic string to avoid possible interactions with filesystem
17498 * objects. Prepend '/' to short-circuit libltdl's search of
17499 * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar).
17501 module = lt_dlopen ("/libltdl_dlloader_api_test_first");
17505 printf ("lt_dlopen failed: %s\n", lt_dlerror ());
17510 symbol = (module_func *) lt_dlsym (module, "symbol");
17514 printf ("lt_dlsym failed: %s\n", lt_dlerror ());
17519 printf ("result: %s\n", symbol ());
17521 lt_dlclose (module);
17522 module = lt_dlopen ("./module.la");
17526 printf ("lt_dlopen failed: %s\n", lt_dlerror ());
17531 symbol = (module_func *) lt_dlsym (module, "symbol");
17535 printf ("lt_dlsym failed: %s\n", lt_dlerror ());
17540 printf ("result: %s\n", symbol ());
17542 lt_dlclose (module);
17544 /* Use a magic string to avoid possible interactions with filesystem
17545 * objects. Prepend '/' to short-circuit libltdl's search of
17546 * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar).
17548 module = lt_dlopen ("/libltdl_dlloader_api_test_last");
17552 printf ("lt_dlopen failed: %s\n", lt_dlerror ());
17557 symbol = (module_func *) lt_dlsym (module, "symbol");
17561 printf ("lt_dlsym failed: %s\n", lt_dlerror ());
17566 printf ("result: %s\n", symbol ());
17568 if (lt_dlopen ("no-module"))
17570 printf ("lt_dlopen unexpectedly opened \"no-module\"\n");
17575 if (lt_dlloader_remove ("first") != first)
17577 printf ("vtable of first loader has changed\n");
17587 lt_dlclose (module);
17595 cat >module.c <<'_ATEOF'
17600 const char *symbol (void);
17604 return "module_symbol";
17609 cat >expout <<'_ATEOF'
17610 first_init: first_ctx
17611 Found loader "first"
17612 last_init: last_ctx
17613 Found loader "last"
17614 first_open ("/libltdl_dlloader_api_test_first"): first_ctx
17615 first_sym (first): first_ctx
17616 result: first_symbol
17617 first_close (first): first_ctx
17618 first_open denies a request
17619 result: module_symbol
17620 first_open denies a request
17621 last_open ("/libltdl_dlloader_api_test_last"): last_ctx
17622 last_sym (last): last_ctx
17623 result: last_symbol
17624 first_open denies a request
17625 last_open denies a request
17626 first_exit: first_ctx
17627 last_close (last): last_ctx
17628 last_exit: last_ctx
17631 case $host_os in mingw*)
17632 while read -r l; do printf "%s\r\n" "$l"; done < expout > expout.t
17633 mv -f expout.t expout ;;
17636 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
17637 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
17639 # Skip this test when called from:
17640 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
17642 $as_echo "$at_srcdir/dlloader-api.at:417: case \$LIBLTDL in #(
17643 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
17645 at_fn_check_prepare_notrace 'an embedded newline' "dlloader-api.at:417"
17646 ( $at_check_trace; case $LIBLTDL in #(
17647 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
17649 ) >>"$at_stdout" 2>>"$at_stderr"
17650 at_status=$? at_failed=false
17652 at_fn_diff_devnull "$at_stderr" || at_failed=:
17653 echo stdout:; cat "$at_stdout"
17654 at_fn_check_status 0 $at_status "$at_srcdir/dlloader-api.at:417"
17655 $at_failed && at_fn_log_failure
17659 CPPFLAGS="$LTDLINCL $CPPFLAGS"
17662 $as_echo "$at_srcdir/dlloader-api.at:423: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c module.c"
17663 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c module.c" "dlloader-api.at:423"
17664 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c module.c
17665 ) >>"$at_stdout" 2>>"$at_stderr"
17666 at_status=$? at_failed=false
17668 echo stderr:; cat "$at_stderr"
17669 echo stdout:; cat "$at_stdout"
17670 at_fn_check_status 0 $at_status "$at_srcdir/dlloader-api.at:423"
17671 $at_failed && at_fn_log_failure
17675 $as_echo "$at_srcdir/dlloader-api.at:425: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o module.la -rpath /nowhere -module -avoid-version -no-undefined module.lo"
17676 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o module.la -rpath /nowhere -module -avoid-version -no-undefined module.lo" "dlloader-api.at:425"
17677 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o module.la -rpath /nowhere -module -avoid-version -no-undefined module.lo
17678 ) >>"$at_stdout" 2>>"$at_stderr"
17679 at_status=$? at_failed=false
17681 echo stderr:; cat "$at_stderr"
17682 echo stdout:; cat "$at_stdout"
17683 at_fn_check_status 0 $at_status "$at_srcdir/dlloader-api.at:425"
17684 $at_failed && at_fn_log_failure
17690 $as_echo "$at_srcdir/dlloader-api.at:432: test -n \"\$dlname\" || (exit 77)"
17691 at_fn_check_prepare_dynamic "test -n \"$dlname\" || (exit 77)" "dlloader-api.at:432"
17692 ( $at_check_trace; test -n "$dlname" || (exit 77)
17693 ) >>"$at_stdout" 2>>"$at_stderr"
17694 at_status=$? at_failed=false
17696 at_fn_diff_devnull "$at_stderr" || at_failed=:
17697 at_fn_diff_devnull "$at_stdout" || at_failed=:
17698 at_fn_check_status 0 $at_status "$at_srcdir/dlloader-api.at:432"
17699 $at_failed && at_fn_log_failure
17704 $as_echo "$at_srcdir/dlloader-api.at:434: \$CC \$CPPFLAGS \$CFLAGS -c main.c"
17705 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c" "dlloader-api.at:434"
17706 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c
17707 ) >>"$at_stdout" 2>>"$at_stderr"
17708 at_status=$? at_failed=false
17710 echo stderr:; cat "$at_stderr"
17711 echo stdout:; cat "$at_stdout"
17712 at_fn_check_status 0 $at_status "$at_srcdir/dlloader-api.at:434"
17713 $at_failed && at_fn_log_failure
17717 $as_echo "$at_srcdir/dlloader-api.at:435: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT -dlopen module.la \$LIBLTDL"
17718 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen module.la $LIBLTDL" "dlloader-api.at:435"
17719 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen module.la $LIBLTDL
17720 ) >>"$at_stdout" 2>>"$at_stderr"
17721 at_status=$? at_failed=false
17723 echo stderr:; cat "$at_stderr"
17724 echo stdout:; cat "$at_stdout"
17725 at_fn_check_status 0 $at_status "$at_srcdir/dlloader-api.at:435"
17726 $at_failed && at_fn_log_failure
17730 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
17732 $as_echo "$at_srcdir/dlloader-api.at:439: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
17733 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "dlloader-api.at:439"
17734 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
17735 ) >>"$at_stdout" 2>>"$at_stderr"
17736 at_status=$? at_failed=false
17738 echo stderr:; cat "$at_stderr"
17739 $at_diff expout "$at_stdout" || at_failed=:
17740 at_fn_check_status 0 $at_status "$at_srcdir/dlloader-api.at:439"
17741 $at_failed && at_fn_log_failure
17747 $at_times_p && times >"$at_times_file"
17748 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17749 read at_status <"$at_status_file"
17752 at_fn_group_banner 82 'loadlibrary.at:23' \
17753 "loadlibrary error messages" " " 7
17756 $as_echo "82. $at_setup_line: testing $at_desc ..."
17761 eval "`$LIBTOOL --config | $EGREP '^(objdir)='`"
17763 cat >main.c <<'_ATEOF'
17768 standard_error_message(const char *error)
17772 for (error_number = 0; error_number < LT_ERROR_MAX; ++error_number)
17774 lt_dlseterror (error_number);
17775 if (error == lt_dlerror ())
17781 lt_dlseterror (LT_ERROR_UNKNOWN);
17786 main (int argc, char* argv[])
17789 lt_dlhandle module = NULL;
17790 const lt_dlvtable *loadlibrary;
17791 const lt_dlvtable *preopen;
17792 lt_dlloader loader = NULL;
17794 const lt_dlvtable *vtable;
17800 fprintf (stderr, "usage: %s plugin [symbol]\n", argv[0]);
17806 loadlibrary = lt_dlloader_find ("lt_loadlibrary");
17809 /* Skip if the loadlibrary loader isn't supported */
17810 printf ("loadlibrary loader not found\n");
17815 preopen = lt_dlloader_find ("lt_preopen");
17818 printf ("preopen loader not found\n");
17823 /* Remove all loaders except the preopen and loadlibrary loaders. */
17824 while (next = lt_dlloader_next (loader))
17826 if (lt_dlloader_get (next) == loadlibrary)
17832 if (lt_dlloader_get (next) == preopen)
17838 lt_dlloader_remove (lt_dlloader_get (next)->name);
17841 module = lt_dlopen (argv[1]);
17842 error = lt_dlerror ();
17846 printf ("lt_dlopen: success!\n");
17850 /* But failure was the desired result... */
17851 printf ("expected failure\n");
17858 /* Didn't expect failure... */
17859 printf ("lt_dlopen: failure: %s\n", error);
17863 else if (standard_error_message (error))
17865 /* Expected custom error message... */
17866 printf ("lt_dlopen: standard error (bad): %s\n", error);
17872 printf ("lt_dlopen: custom error (good): %s\n", error);
17876 symbol = lt_dlsym (module, argv[2]);
17877 error = lt_dlerror ();
17881 printf ("lt_dlsym: success!\n");
17883 else if (standard_error_message (error))
17885 /* Expected custom failure message... */
17886 printf ("lt_dlsym: standard error (bad): %s\n", error);
17891 printf ("lt_dlsym: custom error (good): %s\n", error);
17897 lt_dlclose (module);
17905 cat >foomod.c <<'_ATEOF'
17919 cat >bardep.c <<'_ATEOF'
17933 cat >barmod.c <<'_ATEOF'
17951 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
17952 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
17954 # Skip this test when called from:
17955 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
17957 $as_echo "$at_srcdir/loadlibrary.at:217: case \$LIBLTDL in #(
17958 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
17960 at_fn_check_prepare_notrace 'an embedded newline' "loadlibrary.at:217"
17961 ( $at_check_trace; case $LIBLTDL in #(
17962 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
17964 ) >>"$at_stdout" 2>>"$at_stderr"
17965 at_status=$? at_failed=false
17967 at_fn_diff_devnull "$at_stderr" || at_failed=:
17968 echo stdout:; cat "$at_stdout"
17969 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:217"
17970 $at_failed && at_fn_log_failure
17974 CPPFLAGS="$LTDLINCL $CPPFLAGS"
17979 $as_echo "$at_srcdir/loadlibrary.at:225: \$CC \$CPPFLAGS \$CFLAGS -c main.c"
17980 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c" "loadlibrary.at:225"
17981 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c
17982 ) >>"$at_stdout" 2>>"$at_stderr"
17983 at_status=$? at_failed=false
17985 echo stderr:; cat "$at_stderr"
17986 echo stdout:; cat "$at_stdout"
17987 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:225"
17988 $at_failed && at_fn_log_failure
17991 for file in foomod.c bardep.c barmod.c; do
17993 $as_echo "$at_srcdir/loadlibrary.at:227: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c \$file"
17994 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file" "loadlibrary.at:227"
17995 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
17996 ) >>"$at_stdout" 2>>"$at_stderr"
17997 at_status=$? at_failed=false
17999 echo stderr:; cat "$at_stderr"
18000 echo stdout:; cat "$at_stdout"
18001 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:227"
18002 $at_failed && at_fn_log_failure
18007 $as_echo "$at_srcdir/loadlibrary.at:230: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o foomod.la -rpath \$libdir -module -avoid-version -no-undefined foomod.lo"
18008 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o foomod.la -rpath $libdir -module -avoid-version -no-undefined foomod.lo" "loadlibrary.at:230"
18009 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o foomod.la -rpath $libdir -module -avoid-version -no-undefined foomod.lo
18010 ) >>"$at_stdout" 2>>"$at_stderr"
18011 at_status=$? at_failed=false
18013 echo stderr:; cat "$at_stderr"
18014 echo stdout:; cat "$at_stdout"
18015 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:230"
18016 $at_failed && at_fn_log_failure
18020 $as_echo "$at_srcdir/loadlibrary.at:234: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libbardep.la -rpath \$libdir -avoid-version -no-undefined bardep.lo"
18021 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbardep.la -rpath $libdir -avoid-version -no-undefined bardep.lo" "loadlibrary.at:234"
18022 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbardep.la -rpath $libdir -avoid-version -no-undefined bardep.lo
18023 ) >>"$at_stdout" 2>>"$at_stderr"
18024 at_status=$? at_failed=false
18026 echo stderr:; cat "$at_stderr"
18027 echo stdout:; cat "$at_stdout"
18028 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:234"
18029 $at_failed && at_fn_log_failure
18033 $as_echo "$at_srcdir/loadlibrary.at:238: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o barmod.la -rpath \$libdir -module -avoid-version -no-undefined barmod.lo ./libbardep.la"
18034 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o barmod.la -rpath $libdir -module -avoid-version -no-undefined barmod.lo ./libbardep.la" "loadlibrary.at:238"
18035 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o barmod.la -rpath $libdir -module -avoid-version -no-undefined barmod.lo ./libbardep.la
18036 ) >>"$at_stdout" 2>>"$at_stderr"
18037 at_status=$? at_failed=false
18039 echo stderr:; cat "$at_stderr"
18040 echo stdout:; cat "$at_stdout"
18041 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:238"
18042 $at_failed && at_fn_log_failure
18047 $as_echo "$at_srcdir/loadlibrary.at:243: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT \$LIBLTDL"
18048 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT $LIBLTDL" "loadlibrary.at:243"
18049 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT $LIBLTDL
18050 ) >>"$at_stdout" 2>>"$at_stderr"
18051 at_status=$? at_failed=false
18053 echo stderr:; cat "$at_stderr"
18054 echo stdout:; cat "$at_stdout"
18055 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:243"
18056 $at_failed && at_fn_log_failure
18062 $as_echo "$at_srcdir/loadlibrary.at:248: test -n \"\$dlname\" || (exit 77)"
18063 at_fn_check_prepare_dynamic "test -n \"$dlname\" || (exit 77)" "loadlibrary.at:248"
18064 ( $at_check_trace; test -n "$dlname" || (exit 77)
18065 ) >>"$at_stdout" 2>>"$at_stderr"
18066 at_status=$? at_failed=false
18068 at_fn_diff_devnull "$at_stderr" || at_failed=:
18069 at_fn_diff_devnull "$at_stdout" || at_failed=:
18070 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:248"
18071 $at_failed && at_fn_log_failure
18075 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
18077 $as_echo "$at_srcdir/loadlibrary.at:250: if \"\$lt_exe\" ./foomod.la no_symbol; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
18078 at_fn_check_prepare_dynamic "if \"$lt_exe\" ./foomod.la no_symbol; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "loadlibrary.at:250"
18079 ( $at_check_trace; if "$lt_exe" ./foomod.la no_symbol; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
18080 ) >>"$at_stdout" 2>>"$at_stderr"
18081 at_status=$? at_failed=false
18083 echo stderr:; cat "$at_stderr"
18084 echo stdout:; cat "$at_stdout"
18085 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:250"
18086 $at_failed && at_fn_log_failure
18091 # chmod -x doesn't appear to work in MSYS, and Wine can load no-exec dlls.
18093 rm -f $objdir/$dlname
18094 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
18096 $as_echo "$at_srcdir/loadlibrary.at:257: if \"\$lt_exe\" ./foomod.la; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
18097 at_fn_check_prepare_dynamic "if \"$lt_exe\" ./foomod.la; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "loadlibrary.at:257"
18098 ( $at_check_trace; if "$lt_exe" ./foomod.la; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
18099 ) >>"$at_stdout" 2>>"$at_stderr"
18100 at_status=$? at_failed=false
18102 echo stderr:; cat "$at_stderr"
18103 echo stdout:; cat "$at_stdout"
18104 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:257"
18105 $at_failed && at_fn_log_failure
18110 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
18112 $as_echo "$at_srcdir/loadlibrary.at:259: if \"\$lt_exe\" ./barmod.la no_symbol; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
18113 at_fn_check_prepare_dynamic "if \"$lt_exe\" ./barmod.la no_symbol; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "loadlibrary.at:259"
18114 ( $at_check_trace; if "$lt_exe" ./barmod.la no_symbol; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
18115 ) >>"$at_stdout" 2>>"$at_stderr"
18116 at_status=$? at_failed=false
18118 echo stderr:; cat "$at_stderr"
18119 echo stdout:; cat "$at_stdout"
18120 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:259"
18121 $at_failed && at_fn_log_failure
18127 # chmod -x doesn't appear to work in MSYS, and Wine can load no-exec dlls.
18129 rm -f $objdir/$dlname
18130 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
18132 $as_echo "$at_srcdir/loadlibrary.at:267: if \"\$lt_exe\" ./barmod.la; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
18133 at_fn_check_prepare_dynamic "if \"$lt_exe\" ./barmod.la; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "loadlibrary.at:267"
18134 ( $at_check_trace; if "$lt_exe" ./barmod.la; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
18135 ) >>"$at_stdout" 2>>"$at_stderr"
18136 at_status=$? at_failed=false
18138 echo stderr:; cat "$at_stderr"
18139 echo stdout:; cat "$at_stdout"
18140 at_fn_check_status 0 $at_status "$at_srcdir/loadlibrary.at:267"
18141 $at_failed && at_fn_log_failure
18147 $at_times_p && times >"$at_times_file"
18148 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18149 read at_status <"$at_status_file"
18152 at_fn_group_banner 83 'lalib-syntax.at:24' \
18153 "syntax of .la files" " " 7
18156 $as_echo "83. $at_setup_line: testing $at_desc ..."
18163 cat >main.c <<'_ATEOF'
18166 #include <assert.h>
18169 main (int argc, char* argv[])
18172 lt_dlhandle plugin_handle;
18176 fprintf (stderr, "usage: %s plugin\n", argv[0]);
18181 plugin_handle = lt_dlopenext (argv[1]);
18182 if (NULL != plugin_handle)
18184 printf ("plugin opened successfully!\n");
18185 lt_dlclose (plugin_handle);
18189 const char *error = lt_dlerror ();
18190 assert (error != NULL);
18191 printf ("plugin failed to open: %s\n", error);
18200 cat >module.c <<'_ATEOF'
18201 int foo (void) { return 0; }
18205 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
18206 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
18208 # Skip this test when called from:
18209 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
18211 $as_echo "$at_srcdir/lalib-syntax.at:75: case \$LIBLTDL in #(
18212 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
18214 at_fn_check_prepare_notrace 'an embedded newline' "lalib-syntax.at:75"
18215 ( $at_check_trace; case $LIBLTDL in #(
18216 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
18218 ) >>"$at_stdout" 2>>"$at_stderr"
18219 at_status=$? at_failed=false
18221 at_fn_diff_devnull "$at_stderr" || at_failed=:
18222 echo stdout:; cat "$at_stdout"
18223 at_fn_check_status 0 $at_status "$at_srcdir/lalib-syntax.at:75"
18224 $at_failed && at_fn_log_failure
18228 CPPFLAGS="$CPPFLAGS $LTDLINCL"
18231 $as_echo "$at_srcdir/lalib-syntax.at:81: \$CC \$CPPFLAGS \$CFLAGS -c main.c"
18232 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c" "lalib-syntax.at:81"
18233 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c
18234 ) >>"$at_stdout" 2>>"$at_stderr"
18235 at_status=$? at_failed=false
18237 echo stderr:; cat "$at_stderr"
18238 echo stdout:; cat "$at_stdout"
18239 at_fn_check_status 0 $at_status "$at_srcdir/lalib-syntax.at:81"
18240 $at_failed && at_fn_log_failure
18244 $as_echo "$at_srcdir/lalib-syntax.at:82: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c module.c"
18245 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c module.c" "lalib-syntax.at:82"
18246 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c module.c
18247 ) >>"$at_stdout" 2>>"$at_stderr"
18248 at_status=$? at_failed=false
18250 echo stderr:; cat "$at_stderr"
18251 echo stdout:; cat "$at_stdout"
18252 at_fn_check_status 0 $at_status "$at_srcdir/lalib-syntax.at:82"
18253 $at_failed && at_fn_log_failure
18257 $as_echo "$at_srcdir/lalib-syntax.at:84: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o module.la module.lo -module -avoid-version -rpath /somewhere"
18258 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o module.la module.lo -module -avoid-version -rpath /somewhere" "lalib-syntax.at:84"
18259 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o module.la module.lo -module -avoid-version -rpath /somewhere
18260 ) >>"$at_stdout" 2>>"$at_stderr"
18261 at_status=$? at_failed=false
18263 echo stderr:; cat "$at_stderr"
18264 echo stdout:; cat "$at_stdout"
18265 at_fn_check_status 0 $at_status "$at_srcdir/lalib-syntax.at:84"
18266 $at_failed && at_fn_log_failure
18270 $as_echo "$at_srcdir/lalib-syntax.at:86: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main main.\$OBJEXT \$LIBLTDL"
18271 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT $LIBLTDL" "lalib-syntax.at:86"
18272 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT $LIBLTDL
18273 ) >>"$at_stdout" 2>>"$at_stderr"
18274 at_status=$? at_failed=false
18276 echo stderr:; cat "$at_stderr"
18277 echo stdout:; cat "$at_stdout"
18278 at_fn_check_status 0 $at_status "$at_srcdir/lalib-syntax.at:86"
18279 $at_failed && at_fn_log_failure
18284 # Several bogus test cases.
18286 cat >missing-closing-quote.la <<'_ATEOF'
18287 # missing-closing-quote.la - a libtool library file
18288 # Generated by libtool
18290 library_names='module.so module.so module.so'
18291 old_library='module.a'
18294 libdir='/somewhere'
18298 cat >wrong-quotes.la <<'_ATEOF'
18299 # wrong-quotes.la - a libtool library file
18300 # Generated by libtool
18302 library_names='module.so module.so module.so'
18303 old_library='module.a'
18306 libdir='/somewhere'
18310 cat >no-dlname.la <<'_ATEOF'
18311 # no-dlname.la - a libtool library file
18312 # Generated by libtool
18315 libdir='/somewhere'
18319 cat >nonexistent-dlname.la <<'_ATEOF'
18320 # nonexistent-dlname.la - a libtool library file
18321 # Generated by libtool
18322 dlname='does-not-exist.so'
18325 libdir='/somewhere'
18329 for file in ./missing-closing-quote.la ./wrong-quotes.la \
18330 ./no-dlname.la ./nonexistent-dlname.la; do
18331 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
18333 $as_echo "$at_srcdir/lalib-syntax.at:133: if \"\$lt_exe\" \$file; then :; else lt_status=\$?; test \$lt_status != 1 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
18334 at_fn_check_prepare_dynamic "if \"$lt_exe\" $file; then :; else lt_status=$?; test $lt_status != 1 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "lalib-syntax.at:133"
18335 ( $at_check_trace; if "$lt_exe" $file; then :; else lt_status=$?; test $lt_status != 1 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
18336 ) >>"$at_stdout" 2>>"$at_stderr"
18337 at_status=$? at_failed=false
18339 echo stderr:; cat "$at_stderr"
18340 echo stdout:; tee stdout <"$at_stdout"
18341 at_fn_check_status 1 $at_status "$at_srcdir/lalib-syntax.at:133"
18342 $at_failed && at_fn_log_failure
18347 $as_echo "$at_srcdir/lalib-syntax.at:134: grep 'plugin failed to open' stdout"
18348 at_fn_check_prepare_trace "lalib-syntax.at:134"
18349 ( $at_check_trace; grep 'plugin failed to open' stdout
18350 ) >>"$at_stdout" 2>>"$at_stderr"
18351 at_status=$? at_failed=false
18353 at_fn_diff_devnull "$at_stderr" || at_failed=:
18354 echo stdout:; cat "$at_stdout"
18355 at_fn_check_status 0 $at_status "$at_srcdir/lalib-syntax.at:134"
18356 $at_failed && at_fn_log_failure
18362 $at_times_p && times >"$at_times_file"
18363 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18364 read at_status <"$at_status_file"
18367 at_fn_group_banner 84 'resident.at:27' \
18368 "resident modules" " " 7
18371 $as_echo "84. $at_setup_line: testing $at_desc ..."
18376 cat >main.c <<'_ATEOF'
18381 main (int argc, char* argv[])
18384 lt_dlhandle plugin_handle;
18385 lt_dladvise advise;
18387 LTDL_SET_PRELOADED_SYMBOLS();
18391 fprintf (stderr, "usage: %s plugin\n", argv[0]);
18396 if (lt_dladvise_init (&advise) != 0
18397 || lt_dladvise_ext (&advise) != 0
18398 || lt_dladvise_resident (&advise) != 0)
18400 printf ("advise failure: %s\n", lt_dlerror ());
18405 plugin_handle = lt_dlopenadvise (argv[1], advise);
18406 if (NULL != plugin_handle)
18409 printf ("plugin opened successfully!\n");
18410 pf = (int (*) (void)) lt_dlsym (plugin_handle, "setup_plugin");
18415 printf ("dlsym failure: %s\n", lt_dlerror ());
18418 if (!lt_dlisresident (plugin_handle))
18420 printf ("module wrongly not marked resident\n");
18423 if (lt_dlclose (plugin_handle) != 0)
18425 printf ("close failure (expected): %s\n", lt_dlerror ());
18429 printf ("wrongly closed resident module\n");
18435 printf ("plugin failed to open: %s\n", lt_dlerror ());
18438 if (lt_dladvise_destroy (&advise) != 0)
18440 printf ("advise destroy failure: %s\n", lt_dlerror ());
18450 cat >plugin.c <<'_ATEOF'
18451 #include <stdlib.h>
18457 puts ("called from atexit handler");
18464 setup_plugin (void)
18471 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
18472 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
18474 # Skip this test when called from:
18475 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
18477 $as_echo "$at_srcdir/resident.at:128: case \$LIBLTDL in #(
18478 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
18480 at_fn_check_prepare_notrace 'an embedded newline' "resident.at:128"
18481 ( $at_check_trace; case $LIBLTDL in #(
18482 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
18484 ) >>"$at_stdout" 2>>"$at_stderr"
18485 at_status=$? at_failed=false
18487 at_fn_diff_devnull "$at_stderr" || at_failed=:
18488 echo stdout:; cat "$at_stdout"
18489 at_fn_check_status 0 $at_status "$at_srcdir/resident.at:128"
18490 $at_failed && at_fn_log_failure
18494 CPPFLAGS="$LTDLINCL $CPPFLAGS"
18495 LDFLAGS="$LDFLAGS -no-undefined"
18500 $as_echo "$at_srcdir/resident.at:137: \$CC \$CPPFLAGS \$CFLAGS -c main.c"
18501 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c main.c" "resident.at:137"
18502 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c main.c
18503 ) >>"$at_stdout" 2>>"$at_stderr"
18504 at_status=$? at_failed=false
18506 echo stderr:; cat "$at_stderr"
18507 echo stdout:; cat "$at_stdout"
18508 at_fn_check_status 0 $at_status "$at_srcdir/resident.at:137"
18509 $at_failed && at_fn_log_failure
18513 $as_echo "$at_srcdir/resident.at:138: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c plugin.c"
18514 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c plugin.c" "resident.at:138"
18515 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c plugin.c
18516 ) >>"$at_stdout" 2>>"$at_stderr"
18517 at_status=$? at_failed=false
18519 echo stderr:; cat "$at_stderr"
18520 echo stdout:; cat "$at_stdout"
18521 at_fn_check_status 0 $at_status "$at_srcdir/resident.at:138"
18522 $at_failed && at_fn_log_failure
18526 $as_echo "$at_srcdir/resident.at:140: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o plugin.la -rpath \$libdir -module -avoid-version plugin.lo"
18527 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o plugin.la -rpath $libdir -module -avoid-version plugin.lo" "resident.at:140"
18528 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o plugin.la -rpath $libdir -module -avoid-version plugin.lo
18529 ) >>"$at_stdout" 2>>"$at_stderr"
18530 at_status=$? at_failed=false
18532 echo stderr:; cat "$at_stderr"
18533 echo stdout:; cat "$at_stdout"
18534 at_fn_check_status 0 $at_status "$at_srcdir/resident.at:140"
18535 $at_failed && at_fn_log_failure
18539 $as_echo "$at_srcdir/resident.at:142: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT -dlopen plugin.la \$LIBLTDL"
18540 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen plugin.la $LIBLTDL" "resident.at:142"
18541 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlopen plugin.la $LIBLTDL
18542 ) >>"$at_stdout" 2>>"$at_stderr"
18543 at_status=$? at_failed=false
18545 echo stderr:; cat "$at_stderr"
18546 echo stdout:; cat "$at_stdout"
18547 at_fn_check_status 0 $at_status "$at_srcdir/resident.at:142"
18548 $at_failed && at_fn_log_failure
18551 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
18553 $as_echo "$at_srcdir/resident.at:145: if \"\$lt_exe\" ./plugin.la; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
18554 at_fn_check_prepare_dynamic "if \"$lt_exe\" ./plugin.la; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "resident.at:145"
18555 ( $at_check_trace; if "$lt_exe" ./plugin.la; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
18556 ) >>"$at_stdout" 2>>"$at_stderr"
18557 at_status=$? at_failed=false
18559 echo stderr:; cat "$at_stderr"
18560 echo stdout:; tee stdout <"$at_stdout"
18561 at_fn_check_status 0 $at_status "$at_srcdir/resident.at:145"
18562 $at_failed && at_fn_log_failure
18567 $as_echo "$at_srcdir/resident.at:146: grep 'called from atexit handler' stdout"
18568 at_fn_check_prepare_trace "resident.at:146"
18569 ( $at_check_trace; grep 'called from atexit handler' stdout
18570 ) >>"$at_stdout" 2>>"$at_stderr"
18571 at_status=$? at_failed=false
18573 at_fn_diff_devnull "$at_stderr" || at_failed=:
18574 echo stdout:; cat "$at_stdout"
18575 at_fn_check_status 0 $at_status "$at_srcdir/resident.at:146"
18576 $at_failed && at_fn_log_failure
18581 $at_times_p && times >"$at_times_file"
18582 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18583 read at_status <"$at_status_file"
18586 at_fn_group_banner 85 'slist.at:24' \
18587 "SList functionality" " " 7
18590 $as_echo "85. $at_setup_line: testing $at_desc ..."
18594 cat >test-slist.c <<'_ATEOF'
18596 #include <config.h>
18597 #include <stdlib.h>
18598 #include <string.h>
18599 #include <assert.h>
18603 void *find_string (SList *item, void *data)
18605 if (data != NULL && !strcmp ((const char *) item->userdata, (const char *)data))
18611 void boxed_delete (void *item)
18613 free (slist_unbox ((SList *) item));
18616 void *print_item (SList *item, void *userdata)
18618 userdata = userdata; /* unused */
18619 printf ("%s\n", (const char*)item->userdata);
18623 int list_compare (const SList *item1, const SList *item2, void *userdata)
18625 userdata = userdata;
18626 return strcmp ((const char *) item1->userdata, (const char *)item2->userdata);
18632 SList *empty_list = NULL, *list = NULL, *item, *list_save;
18636 list = slist_cons (NULL, NULL);
18638 for (i=0; i < 10; ++i) {
18639 data = (char *) malloc (42);
18641 sprintf (data, "foo%d", i);
18642 list = slist_cons (slist_box (data), list);
18645 list = slist_cons (NULL, list);
18646 assert (list == list_save);
18650 assert (slist_find (NULL, find_string, (void *) "whatever") == NULL);
18651 assert (slist_find (empty_list, find_string, (void *) "whatever") == NULL);
18652 assert (slist_find (list, find_string, (void *) "foo10") == NULL);
18653 item = (SList *) slist_find (list, find_string, (void *) "foo1");
18654 assert (item != NULL);
18655 assert (!strcmp ((const char *) item->userdata, "foo1"));
18657 item = slist_nth (list, 10);
18658 assert (item != NULL && !strcmp ((const char *) item->userdata, "foo0"));
18660 puts ("list as inserted:");
18661 slist_foreach (list, print_item, NULL);
18662 puts ("reversed list:");
18663 list = slist_reverse (list);
18664 slist_foreach (list, print_item, NULL);
18666 item = slist_nth (list, 1);
18667 assert (item != NULL && !strcmp ((const char *) item->userdata, "foo0"));
18669 assert (10 == slist_length (list));
18671 /* slist_tail is the second item, not the last one */
18672 item = slist_tail (list);
18673 assert (item != NULL && !strcmp ((const char *) item->userdata, "foo1"));
18675 assert (slist_tail (slist_nth (list, 10)) == NULL);
18677 /* slist_sort and implicitly, slist_sort_merge */
18678 assert (slist_sort (NULL, list_compare, NULL) == NULL);
18679 list = slist_sort (list, list_compare, NULL);
18680 puts ("list after no-op sort:");
18681 slist_foreach (list, print_item, NULL);
18683 list = slist_reverse (list);
18684 puts ("reversed list:");
18685 slist_foreach (list, print_item, NULL);
18686 puts ("sorting reversed list:");
18687 list = slist_sort (list, list_compare, NULL);
18688 slist_foreach (list, print_item, NULL);
18691 assert (slist_remove (NULL, find_string, NULL) == NULL);
18692 assert (slist_remove (&empty_list, find_string, NULL) == NULL);
18695 assert (slist_remove (&list, find_string, NULL) == NULL);
18696 assert (list_save == list);
18698 /* remove entries: middle, last, first, not present */
18699 /* slist_reverse above has left us with increasing order */
18701 item = slist_remove (&list, find_string, (void *) "foo5");
18702 assert (list_save == list);
18703 assert (item != NULL && !strcmp (data = (char *) slist_unbox (item), "foo5"));
18707 item = slist_remove (&list, find_string, (void *) "foo9");
18708 assert (list_save == list);
18709 assert (item != NULL && !strcmp (data = (char *) slist_unbox (item), "foo9"));
18713 item = slist_remove (&list, find_string, (void *) "foo0");
18714 assert (list_save != list);
18715 assert (item != NULL && !strcmp (data = (char *) slist_unbox (item), "foo0"));
18719 item = slist_remove (&list, find_string, (void *) "foo5");
18720 assert (list_save == list);
18721 assert (item == NULL);
18723 assert (slist_delete (list, boxed_delete) == NULL);
18729 CPPFLAGS="-I$top_srcdir/libltdl -I$top_srcdir/libltdl/libltdl -I$abs_top_builddir"
18731 $as_echo "$at_srcdir/slist.at:160: \$CC \$CPPFLAGS \$CFLAGS -c test-slist.c"
18732 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c test-slist.c" "slist.at:160"
18733 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c test-slist.c
18734 ) >>"$at_stdout" 2>>"$at_stderr"
18735 at_status=$? at_failed=false
18737 echo stderr:; cat "$at_stderr"
18738 echo stdout:; cat "$at_stdout"
18739 at_fn_check_status 0 $at_status "$at_srcdir/slist.at:160"
18740 $at_failed && at_fn_log_failure
18744 $as_echo "$at_srcdir/slist.at:162: \$CC \$CPPFLAGS \$CFLAGS -c \$top_srcdir/libltdl/slist.c"
18745 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c $top_srcdir/libltdl/slist.c" "slist.at:162"
18746 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c $top_srcdir/libltdl/slist.c
18747 ) >>"$at_stdout" 2>>"$at_stderr"
18748 at_status=$? at_failed=false
18750 echo stderr:; cat "$at_stderr"
18751 echo stdout:; cat "$at_stdout"
18752 at_fn_check_status 0 $at_status "$at_srcdir/slist.at:162"
18753 $at_failed && at_fn_log_failure
18757 $as_echo "$at_srcdir/slist.at:164: \$CC \$CFLAGS \$LDFLAGS -o test-slist test-slist.\$OBJEXT slist.\$OBJEXT"
18758 at_fn_check_prepare_dynamic "$CC $CFLAGS $LDFLAGS -o test-slist test-slist.$OBJEXT slist.$OBJEXT" "slist.at:164"
18759 ( $at_check_trace; $CC $CFLAGS $LDFLAGS -o test-slist test-slist.$OBJEXT slist.$OBJEXT
18760 ) >>"$at_stdout" 2>>"$at_stderr"
18761 at_status=$? at_failed=false
18763 echo stderr:; cat "$at_stderr"
18764 echo stdout:; cat "$at_stdout"
18765 at_fn_check_status 0 $at_status "$at_srcdir/slist.at:164"
18766 $at_failed && at_fn_log_failure
18769 lt_exe=./test-slist; if test -f "./test-slist$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
18771 $as_echo "$at_srcdir/slist.at:166: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
18772 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "slist.at:166"
18773 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
18774 ) >>"$at_stdout" 2>>"$at_stderr"
18775 at_status=$? at_failed=false
18777 echo stderr:; cat "$at_stderr"
18778 echo stdout:; cat "$at_stdout"
18779 at_fn_check_status 0 $at_status "$at_srcdir/slist.at:166"
18780 $at_failed && at_fn_log_failure
18786 $at_times_p && times >"$at_times_file"
18787 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18788 read at_status <"$at_status_file"
18791 at_fn_group_banner 86 'need_lib_prefix.at:25' \
18792 "enforced lib prefix" " " 7
18795 $as_echo "86. $at_setup_line: testing $at_desc ..."
18800 # Originally written to simulate a failure visible on systems
18801 # which need a library prefix like 'lib', such as BeOS. Currently
18802 # the prefix is hardcoded as 'lib', so systems that require a
18803 # different prefix skips the test.
18805 cat >main.c <<'_ATEOF'
18809 typedef int fun (int);
18811 static int errors = 0;
18814 complain (const char *msg)
18816 const char *errmsg = lt_dlerror ();
18817 fprintf (stderr, "%s", msg);
18819 fprintf (stderr, ": %s\n", errmsg);
18821 fprintf (stderr, ".\n");
18826 moduleopen (const char *filename)
18828 lt_dlhandle handle;
18830 handle = lt_dlopen (filename);
18833 fprintf (stderr, "can't open the module %s!\n", filename);
18834 complain ("error was");
18841 moduletest (lt_dlhandle handle)
18843 const lt_dlinfo *info = lt_dlgetinfo (handle);
18844 fun *f = (fun *) lt_dlsym (handle, "f");
18845 int *v = (int *) lt_dlsym (handle, "i");
18849 complain ("function `f' not found");
18854 complain ("variable `i' not found");
18857 printf ("%s: %d\n", info->name, f (*v));
18863 main (int argc, char **argv)
18865 lt_dlhandle handle;
18867 LTDL_SET_PRELOADED_SYMBOLS();
18869 if (lt_dlinit() != 0)
18871 fprintf (stderr, "error during initialization: %s\n", lt_dlerror());
18875 if (lt_dlpreload_open (0, moduletest) != 0)
18876 complain ("error during preloading");
18878 if (lt_dlexit () != 0)
18879 complain ("error during exit");
18881 return (errors != 0);
18886 cat >foo1.c <<'_ATEOF'
18887 #define f foo1_LTX_f
18888 #define i foo1_LTX_i
18892 int f (int x) { return x / 3; }
18900 cat >foo2.c <<'_ATEOF'
18901 #define f libfoo2_LTX_f
18902 #define i libfoo2_LTX_i
18906 int f (int x) { return (x * x) / 10; }
18914 cat >expout <<'_ATEOF'
18919 case $host_os in mingw*)
18920 while read -r l; do printf "%s\r\n" "$l"; done < expout > expout.t
18921 mv -f expout.t expout ;;
18924 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
18925 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
18927 # Skip this test when called from:
18928 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
18930 $as_echo "$at_srcdir/need_lib_prefix.at:149: case \$LIBLTDL in #(
18931 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
18933 at_fn_check_prepare_notrace 'an embedded newline' "need_lib_prefix.at:149"
18934 ( $at_check_trace; case $LIBLTDL in #(
18935 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
18937 ) >>"$at_stdout" 2>>"$at_stderr"
18938 at_status=$? at_failed=false
18940 at_fn_diff_devnull "$at_stderr" || at_failed=:
18941 echo stdout:; cat "$at_stdout"
18942 at_fn_check_status 0 $at_status "$at_srcdir/need_lib_prefix.at:149"
18943 $at_failed && at_fn_log_failure
18947 CPPFLAGS="$LTDLINCL $CPPFLAGS"
18950 # Skip this test when libraries are not normally prefixed with lib.
18951 # E.g., for MSVC and OS/2.
18952 eval "`$LIBTOOL --config | $EGREP '^(libname_spec)='`"
18954 eval libname=\"$libname_spec\"
18956 $as_echo "$at_srcdir/need_lib_prefix.at:161: test \"\$libname\" = lib || exit 77"
18957 at_fn_check_prepare_dynamic "test \"$libname\" = lib || exit 77" "need_lib_prefix.at:161"
18958 ( $at_check_trace; test "$libname" = lib || exit 77
18959 ) >>"$at_stdout" 2>>"$at_stderr"
18960 at_status=$? at_failed=false
18962 at_fn_diff_devnull "$at_stderr" || at_failed=:
18963 at_fn_diff_devnull "$at_stdout" || at_failed=:
18964 at_fn_check_status 0 $at_status "$at_srcdir/need_lib_prefix.at:161"
18965 $at_failed && at_fn_log_failure
18969 # Create our own libtool, forcing need_lib_prefix setting
18970 sed 's,^\(need_lib_prefix\)=.*$,\1=unknown,' $LIBTOOL > ./libtool
18971 LIBTOOL="$SHELL ./libtool"
18973 # Installation directory:
18974 instdir=`pwd`/_inst
18976 $CC $CPPFLAGS $CFLAGS -c main.c
18977 for file in foo1 foo2; do
18978 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file.c
18982 $as_echo "$at_srcdir/need_lib_prefix.at:175: \$LIBTOOL --mode=link \$CC -module -avoid-version \$CFLAGS \$LDFLAGS -o foo1.la foo1.lo -rpath \$instdir/lib"
18983 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC -module -avoid-version $CFLAGS $LDFLAGS -o foo1.la foo1.lo -rpath $instdir/lib" "need_lib_prefix.at:175"
18984 ( $at_check_trace; $LIBTOOL --mode=link $CC -module -avoid-version $CFLAGS $LDFLAGS -o foo1.la foo1.lo -rpath $instdir/lib
18985 ) >>"$at_stdout" 2>>"$at_stderr"
18986 at_status=$? at_failed=false
18988 echo stderr:; cat "$at_stderr"
18989 echo stdout:; cat "$at_stdout"
18990 at_fn_check_status 0 $at_status "$at_srcdir/need_lib_prefix.at:175"
18991 $at_failed && at_fn_log_failure
18995 $as_echo "$at_srcdir/need_lib_prefix.at:177: \$LIBTOOL --mode=link \$CC -module -avoid-version \$CFLAGS \$LDFLAGS -o libfoo2.la foo2.lo -rpath \$instdir/lib"
18996 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC -module -avoid-version $CFLAGS $LDFLAGS -o libfoo2.la foo2.lo -rpath $instdir/lib" "need_lib_prefix.at:177"
18997 ( $at_check_trace; $LIBTOOL --mode=link $CC -module -avoid-version $CFLAGS $LDFLAGS -o libfoo2.la foo2.lo -rpath $instdir/lib
18998 ) >>"$at_stdout" 2>>"$at_stderr"
18999 at_status=$? at_failed=false
19001 echo stderr:; cat "$at_stderr"
19002 echo stdout:; cat "$at_stdout"
19003 at_fn_check_status 0 $at_status "$at_srcdir/need_lib_prefix.at:177"
19004 $at_failed && at_fn_log_failure
19008 $as_echo "$at_srcdir/need_lib_prefix.at:179: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT -dlpreopen foo1.la -dlpreopen libfoo2.la \$LIBLTDL"
19009 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlpreopen foo1.la -dlpreopen libfoo2.la $LIBLTDL" "need_lib_prefix.at:179"
19010 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT -dlpreopen foo1.la -dlpreopen libfoo2.la $LIBLTDL
19011 ) >>"$at_stdout" 2>>"$at_stderr"
19012 at_status=$? at_failed=false
19014 echo stderr:; cat "$at_stderr"
19015 echo stdout:; cat "$at_stdout"
19016 at_fn_check_status 0 $at_status "$at_srcdir/need_lib_prefix.at:179"
19017 $at_failed && at_fn_log_failure
19021 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
19023 $as_echo "$at_srcdir/need_lib_prefix.at:182: if \$LIBTOOL --mode=execute -dlopen foo1.la -dlopen libfoo2.la \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
19024 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute -dlopen foo1.la -dlopen libfoo2.la \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "need_lib_prefix.at:182"
19025 ( $at_check_trace; if $LIBTOOL --mode=execute -dlopen foo1.la -dlopen libfoo2.la "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
19026 ) >>"$at_stdout" 2>>"$at_stderr"
19027 at_status=$? at_failed=false
19029 at_fn_diff_devnull "$at_stderr" || at_failed=:
19030 $at_diff expout "$at_stdout" || at_failed=:
19031 at_fn_check_status 0 $at_status "$at_srcdir/need_lib_prefix.at:182"
19032 $at_failed && at_fn_log_failure
19037 # Install the libraries.
19040 $LIBTOOL --mode=install cp foo1.la $instdir/lib/foo1.la
19041 $LIBTOOL --mode=install cp libfoo2.la $instdir/lib/libfoo2.la
19043 # Install the binary
19045 $LIBTOOL --mode=install cp main$EXEEXT $instdir/bin/main$EXEEXT
19047 lt_exe=$instdir/bin/main; if test -f "$instdir/bin/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
19049 $as_echo "$at_srcdir/need_lib_prefix.at:195: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
19050 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "need_lib_prefix.at:195"
19051 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
19052 ) >>"$at_stdout" 2>>"$at_stderr"
19053 at_status=$? at_failed=false
19055 at_fn_diff_devnull "$at_stderr" || at_failed=:
19056 $at_diff expout "$at_stdout" || at_failed=:
19057 at_fn_check_status 0 $at_status "$at_srcdir/need_lib_prefix.at:195"
19058 $at_failed && at_fn_log_failure
19064 $at_times_p && times >"$at_times_file"
19065 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19066 read at_status <"$at_status_file"
19069 at_fn_group_banner 87 'standalone.at:31' \
19070 "compiling softlinked libltdl" " " 8
19073 $as_echo "87. $at_setup_line: testing $at_desc ..."
19078 $as_echo "$at_srcdir/standalone.at:33: \$LIBTOOLIZE --ltdl=.
19081 at_fn_check_prepare_notrace 'an embedded newline' "standalone.at:33"
19082 ( $at_check_trace; $LIBTOOLIZE --ltdl=.
19085 ) >>"$at_stdout" 2>>"$at_stderr"
19086 at_status=$? at_failed=false
19088 at_fn_diff_devnull "$at_stderr" || at_failed=:
19089 echo stdout:; cat "$at_stdout"
19090 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:33"
19091 $at_failed && at_fn_log_failure
19096 $as_echo "$at_srcdir/standalone.at:34: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
19097 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "standalone.at:34"
19098 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
19099 ) >>"$at_stdout" 2>>"$at_stderr"
19100 at_status=$? at_failed=false
19102 echo stderr:; cat "$at_stderr"
19103 echo stdout:; cat "$at_stdout"
19104 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:34"
19105 $at_failed && at_fn_log_failure
19109 for target in all $tst_dist
19112 $as_echo "$at_srcdir/standalone.at:35: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
19113 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "standalone.at:35"
19114 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
19115 ) >>"$at_stdout" 2>>"$at_stderr"
19116 at_status=$? at_failed=false
19118 echo stderr:; cat "$at_stderr"
19119 echo stdout:; cat "$at_stdout"
19120 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:35"
19121 $at_failed && at_fn_log_failure
19128 $as_echo "$at_srcdir/standalone.at:37: test -f libltdlc.la"
19129 at_fn_check_prepare_trace "standalone.at:37"
19130 ( $at_check_trace; test -f libltdlc.la
19131 ) >>"$at_stdout" 2>>"$at_stderr"
19132 at_status=$? at_failed=false
19134 at_fn_diff_devnull "$at_stderr" || at_failed=:
19135 at_fn_diff_devnull "$at_stdout" || at_failed=:
19136 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:37"
19137 $at_failed && at_fn_log_failure
19142 $at_times_p && times >"$at_times_file"
19143 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19144 read at_status <"$at_status_file"
19147 at_fn_group_banner 88 'standalone.at:46' \
19148 "compiling copied libltdl" " " 8
19151 $as_echo "88. $at_setup_line: testing $at_desc ..."
19156 $as_echo "$at_srcdir/standalone.at:48: \$LIBTOOLIZE --copy --ltdl=.
19159 at_fn_check_prepare_notrace 'an embedded newline' "standalone.at:48"
19160 ( $at_check_trace; $LIBTOOLIZE --copy --ltdl=.
19163 ) >>"$at_stdout" 2>>"$at_stderr"
19164 at_status=$? at_failed=false
19166 at_fn_diff_devnull "$at_stderr" || at_failed=:
19167 echo stdout:; cat "$at_stdout"
19168 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:48"
19169 $at_failed && at_fn_log_failure
19174 $as_echo "$at_srcdir/standalone.at:49: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
19175 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "standalone.at:49"
19176 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
19177 ) >>"$at_stdout" 2>>"$at_stderr"
19178 at_status=$? at_failed=false
19180 echo stderr:; cat "$at_stderr"
19181 echo stdout:; cat "$at_stdout"
19182 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:49"
19183 $at_failed && at_fn_log_failure
19187 for target in all $tst_dist
19190 $as_echo "$at_srcdir/standalone.at:50: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
19191 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "standalone.at:50"
19192 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
19193 ) >>"$at_stdout" 2>>"$at_stderr"
19194 at_status=$? at_failed=false
19196 echo stderr:; cat "$at_stderr"
19197 echo stdout:; cat "$at_stdout"
19198 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:50"
19199 $at_failed && at_fn_log_failure
19206 $as_echo "$at_srcdir/standalone.at:52: test -f libltdlc.la"
19207 at_fn_check_prepare_trace "standalone.at:52"
19208 ( $at_check_trace; test -f libltdlc.la
19209 ) >>"$at_stdout" 2>>"$at_stderr"
19210 at_status=$? at_failed=false
19212 at_fn_diff_devnull "$at_stderr" || at_failed=:
19213 at_fn_diff_devnull "$at_stdout" || at_failed=:
19214 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:52"
19215 $at_failed && at_fn_log_failure
19220 $at_times_p && times >"$at_times_file"
19221 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19222 read at_status <"$at_status_file"
19225 at_fn_group_banner 89 'standalone.at:61' \
19226 "installable libltdl" " " 8
19229 $as_echo "89. $at_setup_line: testing $at_desc ..."
19236 $as_echo "$at_srcdir/standalone.at:65: \$LIBTOOLIZE --copy --ltdl=.
19239 at_fn_check_prepare_notrace 'an embedded newline' "standalone.at:65"
19240 ( $at_check_trace; $LIBTOOLIZE --copy --ltdl=.
19243 ) >>"$at_stdout" 2>>"$at_stderr"
19244 at_status=$? at_failed=false
19246 at_fn_diff_devnull "$at_stderr" || at_failed=:
19247 echo stdout:; cat "$at_stdout"
19248 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:65"
19249 $at_failed && at_fn_log_failure
19254 $as_echo "$at_srcdir/standalone.at:66: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --enable-ltdl-install --prefix=\$prefix"
19255 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "standalone.at:66"
19256 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --enable-ltdl-install --prefix=$prefix
19257 ) >>"$at_stdout" 2>>"$at_stderr"
19258 at_status=$? at_failed=false
19260 echo stderr:; cat "$at_stderr"
19261 echo stdout:; cat "$at_stdout"
19262 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:66"
19263 $at_failed && at_fn_log_failure
19267 for target in all install $tst_dist
19270 $as_echo "$at_srcdir/standalone.at:67: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
19271 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "standalone.at:67"
19272 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
19273 ) >>"$at_stdout" 2>>"$at_stderr"
19274 at_status=$? at_failed=false
19276 echo stderr:; cat "$at_stderr"
19277 echo stdout:; cat "$at_stdout"
19278 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:67"
19279 $at_failed && at_fn_log_failure
19286 $as_echo "$at_srcdir/standalone.at:69: test -f \$prefix/lib/libltdl.la"
19287 at_fn_check_prepare_dynamic "test -f $prefix/lib/libltdl.la" "standalone.at:69"
19288 ( $at_check_trace; test -f $prefix/lib/libltdl.la
19289 ) >>"$at_stdout" 2>>"$at_stderr"
19290 at_status=$? at_failed=false
19292 at_fn_diff_devnull "$at_stderr" || at_failed=:
19293 at_fn_diff_devnull "$at_stdout" || at_failed=:
19294 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:69"
19295 $at_failed && at_fn_log_failure
19299 $as_echo "$at_srcdir/standalone.at:70: test -f \$prefix/include/ltdl.h"
19300 at_fn_check_prepare_dynamic "test -f $prefix/include/ltdl.h" "standalone.at:70"
19301 ( $at_check_trace; test -f $prefix/include/ltdl.h
19302 ) >>"$at_stdout" 2>>"$at_stderr"
19303 at_status=$? at_failed=false
19305 at_fn_diff_devnull "$at_stderr" || at_failed=:
19306 at_fn_diff_devnull "$at_stdout" || at_failed=:
19307 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:70"
19308 $at_failed && at_fn_log_failure
19313 $at_times_p && times >"$at_times_file"
19314 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19315 read at_status <"$at_status_file"
19318 at_fn_group_banner 90 'standalone.at:79' \
19319 "linking libltdl without autotools" " " 8
19322 $as_echo "90. $at_setup_line: testing $at_desc ..."
19326 cat >module.c <<'_ATEOF'
19338 cat >main.c <<'_ATEOF'
19345 lt_dlhandle module;
19346 const char *(*func) (void) = 0;
19349 LTDL_SET_PRELOADED_SYMBOLS();
19350 if (lt_dlinit() != 0) {
19351 fprintf (stderr, "error during initialisation: %s\n", lt_dlerror());
19355 module = lt_dlopen("./module.la");
19357 fprintf (stderr, "error dlopening ./module.la: %s\n", lt_dlerror());
19361 func = (const char *(*)(void)) lt_dlsym (module, "hello");
19363 fprintf (stderr, "error fetching func: %s\n", lt_dlerror());
19367 printf ("%s\n", (*func) ());
19371 if (lt_dlexit() != 0) {
19372 fprintf (stderr, "error during finalisation: %s\n", lt_dlerror());
19382 cat >Makefile <<'_ATEOF'
19384 LIBTOOL = ./libltdl/libtool
19385 INCLUDES = -I./libltdl
19386 MODFLAGS = -module -avoid-version -no-undefined
19388 LTCOMPILE = $(LIBTOOL) --tag=CC $(LIBTOOLFLAGS) --mode=compile \
19389 $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
19390 LTLINK = $(LIBTOOL) --tag=CC $(LIBTOOLFLAGS) --mode=link \
19391 $(CC) $(CFLAGS) $(LDFLAGS)
19393 TARGETS = libltdl/libltdlc.la module.la ltdldemo$(EXEEXT)
19397 libltdl/libltdlc.la: $(LIBTOOL) libltdl/Makefile
19398 MAKE='$(MAKE)'; test -n "$$MAKE" || MAKE=make; \
19399 cd libltdl && $$MAKE CC="$(CC)" LIBTOOLFLAGS="$(LIBTOOLFLAGS)" \
19400 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
19401 CONFIGURE_OPTIONS="$(CONFIGURE_OPTIONS)"
19403 $(LIBTOOL): libltdl/Makefile
19406 cd libltdl && CONFIG_SHELL="$(SHELL)" $(SHELL) ./configure $(CONFIGURE_OPTIONS)
19408 ltdldemo$(EXEEXT): $(LIBTOOL) module.la libltdl/libltdlc.la main.lo
19409 $(LTLINK) -o ltdldemo$(EXEEXT) main.lo -dlopen module.la ./libltdl/libltdlc.la
19411 main.lo: $(LIBTOOL) main.c
19412 $(LTCOMPILE) -c main.c
19414 module.la: $(LIBTOOL) module.lo
19415 $(LTLINK) -o module.la module.lo $(MODFLAGS) -rpath /dev/null
19417 module.lo: $(LIBTOOL) module.c
19418 $(LTCOMPILE) -c module.c
19421 cat >> Makefile <<EOF
19428 $as_echo "$at_srcdir/standalone.at:82: \$LIBTOOLIZE --copy --ltdl
19431 at_fn_check_prepare_notrace 'an embedded newline' "standalone.at:82"
19432 ( $at_check_trace; $LIBTOOLIZE --copy --ltdl
19435 ) >>"$at_stdout" 2>>"$at_stderr"
19436 at_status=$? at_failed=false
19438 at_fn_diff_devnull "$at_stderr" || at_failed=:
19439 echo stdout:; cat "$at_stdout"
19440 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:82"
19441 $at_failed && at_fn_log_failure
19448 $as_echo "$at_srcdir/standalone.at:83: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target CC=\"\$CC\" LIBTOOLFLAGS=\"\$LIBTOOLFLAGS\" CPPFLAGS=\"\$CPPFLAGS\" CFLAGS=\"\$CFLAGS\" LDFLAGS=\"\$LDFLAGS\" CONFIGURE_OPTIONS=\"\$configure_options\""
19449 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target CC=\"$CC\" LIBTOOLFLAGS=\"$LIBTOOLFLAGS\" CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\" CONFIGURE_OPTIONS=\"$configure_options\"" "standalone.at:83"
19450 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target CC="$CC" LIBTOOLFLAGS="$LIBTOOLFLAGS" CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CONFIGURE_OPTIONS="$configure_options"
19451 ) >>"$at_stdout" 2>>"$at_stderr"
19452 at_status=$? at_failed=false
19454 echo stderr:; cat "$at_stderr"
19455 echo stdout:; cat "$at_stdout"
19456 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:83"
19457 $at_failed && at_fn_log_failure
19463 lt_exe=./ltdldemo; if test -f "./ltdldemo$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
19465 $as_echo "$at_srcdir/standalone.at:87: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
19466 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "standalone.at:87"
19467 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
19468 ) >>"$at_stdout" 2>>"$at_stderr"
19469 at_status=$? at_failed=false
19471 at_fn_diff_devnull "$at_stderr" || at_failed=:
19472 echo stdout:; cat "$at_stdout"
19473 at_fn_check_status 0 $at_status "$at_srcdir/standalone.at:87"
19474 $at_failed && at_fn_log_failure
19480 $at_times_p && times >"$at_times_file"
19481 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19482 read at_status <"$at_status_file"
19485 at_fn_group_banner 91 'subproject.at:57' \
19486 "compiling softlinked libltdl" " " 9
19488 test "$ACLOCAL" = no && at_xfail=yes
19489 test "$AUTOMAKE" = no && at_xfail=yes
19490 test "$AUTOCONF" = no && at_xfail=yes
19492 $as_echo "91. $at_setup_line: testing $at_desc ..."
19496 cat >configure.ac <<'_ATEOF'
19497 AC_INIT([subproject-demo], 2.4.2, bug-libtool@gnu.org)
19498 LT_CONFIG_LTDL_DIR([sub/ltdl])
19499 AC_CONFIG_AUX_DIR([sub/ltdl/config])
19500 AC_CONFIG_MACRO_DIR([sub/ltdl/m4])
19501 AM_INIT_AUTOMAKE([foreign])
19504 AC_CONFIG_FILES([Makefile])
19509 cat >Makefile.am <<'_ATEOF'
19510 ACLOCAL_AMFLAGS = -I sub/ltdl/m4
19511 AUTOMAKE_OPTIONS = 1.9
19513 lib_LTLIBRARIES = foo.la
19514 foo_la_LDFLAGS = -module -avoid-version -no-undefined
19518 echo 'int dummy = 0;' > foo.c
19525 $as_echo "$at_srcdir/subproject.at:61: \$ACLOCAL -I sub/ltdl/m4"
19526 at_fn_check_prepare_dynamic "$ACLOCAL -I sub/ltdl/m4" "subproject.at:61"
19527 ( $at_check_trace; $ACLOCAL -I sub/ltdl/m4
19528 ) >>"$at_stdout" 2>>"$at_stderr"
19529 at_status=$? at_failed=false
19531 echo stderr:; cat "$at_stderr"
19532 echo stdout:; cat "$at_stdout"
19533 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:61"
19534 $at_failed && at_fn_log_failure
19542 $as_echo "$at_srcdir/subproject.at:61: \$AUTOMAKE --add-missing --copy"
19543 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing --copy" "subproject.at:61"
19544 ( $at_check_trace; $AUTOMAKE --add-missing --copy
19545 ) >>"$at_stdout" 2>>"$at_stderr"
19546 at_status=$? at_failed=false
19548 echo stderr:; tee stderr <"$at_stderr"
19549 echo stdout:; cat "$at_stdout"
19550 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:61"
19551 if $at_failed; then :
19553 $as_echo "$at_srcdir/subproject.at:61: grep 'require .*but have' stderr && (exit 77)"
19554 at_fn_check_prepare_trace "subproject.at:61"
19555 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
19556 ) >>"$at_stdout" 2>>"$at_stderr"
19557 at_status=$? at_failed=false
19559 at_fn_diff_devnull "$at_stderr" || at_failed=:
19560 at_fn_diff_devnull "$at_stdout" || at_failed=:
19561 at_fn_check_status 1 $at_status "$at_srcdir/subproject.at:61"
19562 $at_failed && at_fn_log_failure
19566 $at_failed && at_fn_log_failure
19573 $as_echo "$at_srcdir/subproject.at:61: \$AUTOCONF "
19574 at_fn_check_prepare_dynamic "$AUTOCONF " "subproject.at:61"
19575 ( $at_check_trace; $AUTOCONF
19576 ) >>"$at_stdout" 2>>"$at_stderr"
19577 at_status=$? at_failed=false
19579 echo stderr:; cat "$at_stderr"
19580 echo stdout:; cat "$at_stdout"
19581 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:61"
19582 $at_failed && at_fn_log_failure
19589 $as_echo "$at_srcdir/subproject.at:61: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
19590 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "subproject.at:61"
19591 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
19592 ) >>"$at_stdout" 2>>"$at_stderr"
19593 at_status=$? at_failed=false
19595 echo stderr:; cat "$at_stderr"
19596 echo stdout:; cat "$at_stdout"
19597 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:61"
19598 $at_failed && at_fn_log_failure
19602 for target in all $tst_dist
19605 $as_echo "$at_srcdir/subproject.at:61: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
19606 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "subproject.at:61"
19607 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
19608 ) >>"$at_stdout" 2>>"$at_stderr"
19609 at_status=$? at_failed=false
19611 echo stderr:; cat "$at_stderr"
19612 echo stdout:; cat "$at_stdout"
19613 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:61"
19614 $at_failed && at_fn_log_failure
19622 $as_echo "$at_srcdir/subproject.at:64: test -f sub/ltdl/libltdlc.la"
19623 at_fn_check_prepare_trace "subproject.at:64"
19624 ( $at_check_trace; test -f sub/ltdl/libltdlc.la
19625 ) >>"$at_stdout" 2>>"$at_stderr"
19626 at_status=$? at_failed=false
19628 at_fn_diff_devnull "$at_stderr" || at_failed=:
19629 at_fn_diff_devnull "$at_stdout" || at_failed=:
19630 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:64"
19631 $at_failed && at_fn_log_failure
19636 $at_times_p && times >"$at_times_file"
19637 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19638 read at_status <"$at_status_file"
19641 at_fn_group_banner 92 'subproject.at:73' \
19642 "compiling copied libltdl" " " 9
19644 test "$ACLOCAL" = no && at_xfail=yes
19645 test "$AUTOMAKE" = no && at_xfail=yes
19646 test "$AUTOCONF" = no && at_xfail=yes
19648 $as_echo "92. $at_setup_line: testing $at_desc ..."
19652 cat >configure.ac <<'_ATEOF'
19653 AC_INIT([subproject-demo], 2.4.2, bug-libtool@gnu.org)
19654 LT_CONFIG_LTDL_DIR([sub/ltdl])
19655 AC_CONFIG_AUX_DIR([sub/ltdl/config])
19656 AC_CONFIG_MACRO_DIR([sub/ltdl/m4])
19657 AM_INIT_AUTOMAKE([foreign])
19660 AC_CONFIG_FILES([Makefile])
19665 cat >Makefile.am <<'_ATEOF'
19666 ACLOCAL_AMFLAGS = -I sub/ltdl/m4
19667 AUTOMAKE_OPTIONS = 1.9
19669 lib_LTLIBRARIES = foo.la
19670 foo_la_LDFLAGS = -module -avoid-version -no-undefined
19674 echo 'int dummy = 0;' > foo.c
19677 $LIBTOOLIZE --copy --ltdl
19681 $as_echo "$at_srcdir/subproject.at:77: \$ACLOCAL -I sub/ltdl/m4"
19682 at_fn_check_prepare_dynamic "$ACLOCAL -I sub/ltdl/m4" "subproject.at:77"
19683 ( $at_check_trace; $ACLOCAL -I sub/ltdl/m4
19684 ) >>"$at_stdout" 2>>"$at_stderr"
19685 at_status=$? at_failed=false
19687 echo stderr:; cat "$at_stderr"
19688 echo stdout:; cat "$at_stdout"
19689 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:77"
19690 $at_failed && at_fn_log_failure
19698 $as_echo "$at_srcdir/subproject.at:77: \$AUTOMAKE --add-missing --copy"
19699 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing --copy" "subproject.at:77"
19700 ( $at_check_trace; $AUTOMAKE --add-missing --copy
19701 ) >>"$at_stdout" 2>>"$at_stderr"
19702 at_status=$? at_failed=false
19704 echo stderr:; tee stderr <"$at_stderr"
19705 echo stdout:; cat "$at_stdout"
19706 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:77"
19707 if $at_failed; then :
19709 $as_echo "$at_srcdir/subproject.at:77: grep 'require .*but have' stderr && (exit 77)"
19710 at_fn_check_prepare_trace "subproject.at:77"
19711 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
19712 ) >>"$at_stdout" 2>>"$at_stderr"
19713 at_status=$? at_failed=false
19715 at_fn_diff_devnull "$at_stderr" || at_failed=:
19716 at_fn_diff_devnull "$at_stdout" || at_failed=:
19717 at_fn_check_status 1 $at_status "$at_srcdir/subproject.at:77"
19718 $at_failed && at_fn_log_failure
19722 $at_failed && at_fn_log_failure
19729 $as_echo "$at_srcdir/subproject.at:77: \$AUTOCONF "
19730 at_fn_check_prepare_dynamic "$AUTOCONF " "subproject.at:77"
19731 ( $at_check_trace; $AUTOCONF
19732 ) >>"$at_stdout" 2>>"$at_stderr"
19733 at_status=$? at_failed=false
19735 echo stderr:; cat "$at_stderr"
19736 echo stdout:; cat "$at_stdout"
19737 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:77"
19738 $at_failed && at_fn_log_failure
19745 $as_echo "$at_srcdir/subproject.at:77: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
19746 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "subproject.at:77"
19747 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
19748 ) >>"$at_stdout" 2>>"$at_stderr"
19749 at_status=$? at_failed=false
19751 echo stderr:; cat "$at_stderr"
19752 echo stdout:; cat "$at_stdout"
19753 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:77"
19754 $at_failed && at_fn_log_failure
19758 for target in all $tst_dist
19761 $as_echo "$at_srcdir/subproject.at:77: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
19762 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "subproject.at:77"
19763 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
19764 ) >>"$at_stdout" 2>>"$at_stderr"
19765 at_status=$? at_failed=false
19767 echo stderr:; cat "$at_stderr"
19768 echo stdout:; cat "$at_stdout"
19769 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:77"
19770 $at_failed && at_fn_log_failure
19778 $as_echo "$at_srcdir/subproject.at:80: test -f sub/ltdl/libltdlc.la"
19779 at_fn_check_prepare_trace "subproject.at:80"
19780 ( $at_check_trace; test -f sub/ltdl/libltdlc.la
19781 ) >>"$at_stdout" 2>>"$at_stderr"
19782 at_status=$? at_failed=false
19784 at_fn_diff_devnull "$at_stderr" || at_failed=:
19785 at_fn_diff_devnull "$at_stdout" || at_failed=:
19786 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:80"
19787 $at_failed && at_fn_log_failure
19792 $at_times_p && times >"$at_times_file"
19793 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19794 read at_status <"$at_status_file"
19797 at_fn_group_banner 93 'subproject.at:89' \
19798 "installable libltdl" " " 9
19800 test "$ACLOCAL" = no && at_xfail=yes
19801 test "$AUTOMAKE" = no && at_xfail=yes
19802 test "$AUTOCONF" = no && at_xfail=yes
19804 $as_echo "93. $at_setup_line: testing $at_desc ..."
19810 cat >configure.ac <<'_ATEOF'
19811 AC_INIT([subproject-demo], 2.4.2, bug-libtool@gnu.org)
19812 LT_CONFIG_LTDL_DIR([sub/ltdl])
19813 AC_CONFIG_AUX_DIR([sub/ltdl/config])
19814 AC_CONFIG_MACRO_DIR([sub/ltdl/m4])
19815 AM_INIT_AUTOMAKE([foreign])
19818 AC_CONFIG_FILES([Makefile])
19823 cat >Makefile.am <<'_ATEOF'
19824 ACLOCAL_AMFLAGS = -I sub/ltdl/m4
19825 AUTOMAKE_OPTIONS = 1.9
19827 lib_LTLIBRARIES = foo.la
19828 foo_la_LDFLAGS = -module -avoid-version -no-undefined
19832 echo 'int dummy = 0;' > foo.c
19835 $LIBTOOLIZE --copy --ltdl
19839 $as_echo "$at_srcdir/subproject.at:95: \$ACLOCAL -I sub/ltdl/m4"
19840 at_fn_check_prepare_dynamic "$ACLOCAL -I sub/ltdl/m4" "subproject.at:95"
19841 ( $at_check_trace; $ACLOCAL -I sub/ltdl/m4
19842 ) >>"$at_stdout" 2>>"$at_stderr"
19843 at_status=$? at_failed=false
19845 echo stderr:; cat "$at_stderr"
19846 echo stdout:; cat "$at_stdout"
19847 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:95"
19848 $at_failed && at_fn_log_failure
19856 $as_echo "$at_srcdir/subproject.at:95: \$AUTOMAKE --add-missing --copy"
19857 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing --copy" "subproject.at:95"
19858 ( $at_check_trace; $AUTOMAKE --add-missing --copy
19859 ) >>"$at_stdout" 2>>"$at_stderr"
19860 at_status=$? at_failed=false
19862 echo stderr:; tee stderr <"$at_stderr"
19863 echo stdout:; cat "$at_stdout"
19864 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:95"
19865 if $at_failed; then :
19867 $as_echo "$at_srcdir/subproject.at:95: grep 'require .*but have' stderr && (exit 77)"
19868 at_fn_check_prepare_trace "subproject.at:95"
19869 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
19870 ) >>"$at_stdout" 2>>"$at_stderr"
19871 at_status=$? at_failed=false
19873 at_fn_diff_devnull "$at_stderr" || at_failed=:
19874 at_fn_diff_devnull "$at_stdout" || at_failed=:
19875 at_fn_check_status 1 $at_status "$at_srcdir/subproject.at:95"
19876 $at_failed && at_fn_log_failure
19880 $at_failed && at_fn_log_failure
19887 $as_echo "$at_srcdir/subproject.at:95: \$AUTOCONF "
19888 at_fn_check_prepare_dynamic "$AUTOCONF " "subproject.at:95"
19889 ( $at_check_trace; $AUTOCONF
19890 ) >>"$at_stdout" 2>>"$at_stderr"
19891 at_status=$? at_failed=false
19893 echo stderr:; cat "$at_stderr"
19894 echo stdout:; cat "$at_stdout"
19895 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:95"
19896 $at_failed && at_fn_log_failure
19903 $as_echo "$at_srcdir/subproject.at:95: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --enable-ltdl-install --prefix=\$prefix"
19904 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "subproject.at:95"
19905 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --enable-ltdl-install --prefix=$prefix
19906 ) >>"$at_stdout" 2>>"$at_stderr"
19907 at_status=$? at_failed=false
19909 echo stderr:; cat "$at_stderr"
19910 echo stdout:; cat "$at_stdout"
19911 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:95"
19912 $at_failed && at_fn_log_failure
19916 for target in all install $tst_dist
19919 $as_echo "$at_srcdir/subproject.at:95: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
19920 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "subproject.at:95"
19921 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
19922 ) >>"$at_stdout" 2>>"$at_stderr"
19923 at_status=$? at_failed=false
19925 echo stderr:; cat "$at_stderr"
19926 echo stdout:; cat "$at_stdout"
19927 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:95"
19928 $at_failed && at_fn_log_failure
19936 $as_echo "$at_srcdir/subproject.at:99: test -f \$prefix/lib/libltdl.la"
19937 at_fn_check_prepare_dynamic "test -f $prefix/lib/libltdl.la" "subproject.at:99"
19938 ( $at_check_trace; test -f $prefix/lib/libltdl.la
19939 ) >>"$at_stdout" 2>>"$at_stderr"
19940 at_status=$? at_failed=false
19942 at_fn_diff_devnull "$at_stderr" || at_failed=:
19943 at_fn_diff_devnull "$at_stdout" || at_failed=:
19944 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:99"
19945 $at_failed && at_fn_log_failure
19949 $as_echo "$at_srcdir/subproject.at:100: test -f \$prefix/include/ltdl.h"
19950 at_fn_check_prepare_dynamic "test -f $prefix/include/ltdl.h" "subproject.at:100"
19951 ( $at_check_trace; test -f $prefix/include/ltdl.h
19952 ) >>"$at_stdout" 2>>"$at_stderr"
19953 at_status=$? at_failed=false
19955 at_fn_diff_devnull "$at_stderr" || at_failed=:
19956 at_fn_diff_devnull "$at_stdout" || at_failed=:
19957 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:100"
19958 $at_failed && at_fn_log_failure
19963 $at_times_p && times >"$at_times_file"
19964 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19965 read at_status <"$at_status_file"
19968 at_fn_group_banner 94 'subproject.at:109' \
19969 "linking libltdl without autotools" " " 9
19972 $as_echo "94. $at_setup_line: testing $at_desc ..."
19976 cat >module.c <<'_ATEOF'
19988 cat >main.c <<'_ATEOF'
19995 lt_dlhandle module;
19996 const char *(*func) (void) = 0;
19999 LTDL_SET_PRELOADED_SYMBOLS();
20000 if (lt_dlinit() != 0) {
20001 fprintf (stderr, "error during initialisation: %s\n", lt_dlerror());
20005 module = lt_dlopen("./module.la");
20007 fprintf (stderr, "error dlopening ./module.la: %s\n", lt_dlerror());
20011 func = (const char *(*)(void)) lt_dlsym (module, "hello");
20013 fprintf (stderr, "error fetching func: %s\n", lt_dlerror());
20017 printf ("%s\n", (*func) ());
20021 if (lt_dlexit() != 0) {
20022 fprintf (stderr, "error during finalisation: %s\n", lt_dlerror());
20032 cat >Makefile <<'_ATEOF'
20034 LIBTOOL = ./sub/ltdl/libtool
20035 INCLUDES = -I./sub/ltdl
20036 MODFLAGS = -module -avoid-version -no-undefined
20038 LTCOMPILE = $(LIBTOOL) --tag=CC $(LIBTOOLFLAGS) --mode=compile \
20039 $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
20040 LTLINK = $(LIBTOOL) --tag=CC $(LIBTOOLFLAGS) --mode=link \
20041 $(CC) $(CFLAGS) $(LDFLAGS)
20043 TARGETS = sub/ltdl/libltdlc.la module.la ltdldemo$(EXEEXT)
20047 sub/ltdl/libltdlc.la: $(LIBTOOL) sub/ltdl/Makefile
20048 MAKE='$(MAKE)'; test -n "$$MAKE" || MAKE=make; \
20049 cd sub/ltdl && $$MAKE CC="$(CC)" LIBTOOLFLAGS="$(LIBTOOLFLAGS)" \
20050 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
20051 CONFIGURE_OPTIONS="$(CONFIGURE_OPTIONS)"
20053 $(LIBTOOL): sub/ltdl/Makefile
20056 cd sub/ltdl && CONFIG_SHELL="$(SHELL)" $(SHELL) ./configure $(CONFIGURE_OPTIONS)
20058 ltdldemo$(EXEEXT): $(LIBTOOL) module.la sub/ltdl/libltdlc.la main.lo
20059 $(LTLINK) -o ltdldemo$(EXEEXT) main.lo -dlopen module.la ./sub/ltdl/libltdlc.la
20061 main.lo: $(LIBTOOL) main.c
20062 $(LTCOMPILE) -c main.c
20064 module.la: $(LIBTOOL) module.lo
20065 $(LTLINK) -o module.la module.lo $(MODFLAGS) -rpath /dev/null
20067 module.lo: $(LIBTOOL) module.c
20068 $(LTCOMPILE) -c module.c
20071 cat >> Makefile <<EOF
20077 $LIBTOOLIZE --copy --ltdl=sub/ltdl
20083 $as_echo "$at_srcdir/subproject.at:113: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target CC=\"\$CC\" LIBTOOLFLAGS=\"\$LIBTOOLFLAGS\" CPPFLAGS=\"\$CPPFLAGS\" CFLAGS=\"\$CFLAGS\" LDFLAGS=\"\$LDFLAGS\" SHELL=\"\$SHELL\" MAKE=\"\${MAKE-make}\" CONFIGURE_OPTIONS=\"\$configure_options\""
20084 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "subproject.at:113"
20085 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target CC="$CC" LIBTOOLFLAGS="$LIBTOOLFLAGS" CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" SHELL="$SHELL" MAKE="${MAKE-make}" CONFIGURE_OPTIONS="$configure_options"
20086 ) >>"$at_stdout" 2>>"$at_stderr"
20087 at_status=$? at_failed=false
20089 echo stderr:; cat "$at_stderr"
20090 echo stdout:; cat "$at_stdout"
20091 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:113"
20092 $at_failed && at_fn_log_failure
20098 lt_exe=./ltdldemo; if test -f "./ltdldemo$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
20100 $as_echo "$at_srcdir/subproject.at:117: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
20101 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "subproject.at:117"
20102 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
20103 ) >>"$at_stdout" 2>>"$at_stderr"
20104 at_status=$? at_failed=false
20106 at_fn_diff_devnull "$at_stderr" || at_failed=:
20107 echo stdout:; cat "$at_stdout"
20108 at_fn_check_status 0 $at_status "$at_srcdir/subproject.at:117"
20109 $at_failed && at_fn_log_failure
20115 $at_times_p && times >"$at_times_file"
20116 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20117 read at_status <"$at_status_file"
20120 at_fn_group_banner 95 'nonrecursive.at:78' \
20121 "compiling softlinked libltdl" " " 10
20123 test "$ACLOCAL" = no && at_xfail=yes
20124 test "$AUTOHEADER" = no && at_xfail=yes
20125 test "$AUTOMAKE" = no && at_xfail=yes
20126 test "$AUTOCONF" = no && at_xfail=yes
20128 $as_echo "95. $at_setup_line: testing $at_desc ..."
20132 cat >configure.ac <<'_ATEOF'
20133 AC_INIT([subdirectory-demo], 2.4.2, bug-libtool@gnu.org)
20134 LT_CONFIG_LTDL_DIR([ltdl])
20135 AC_CONFIG_AUX_DIR([ltdl/config])
20136 AC_CONFIG_MACRO_DIR([ltdl/m4])
20137 AC_CONFIG_LIBOBJ_DIR([ltdl])
20138 AC_CONFIG_HEADERS([config.h:config.hin])
20139 AM_INIT_AUTOMAKE([foreign subdir-objects])
20143 LTDL_INIT([nonrecursive])
20144 AC_CONFIG_FILES([Makefile])
20149 cat >Makefile.am <<'_ATEOF'
20150 ACLOCAL_AMFLAGS = -I ltdl/m4
20151 AUTOMAKE_OPTIONS = 1.9.6
20158 noinst_LTLIBRARIES =
20159 lib_LTLIBRARIES = foo.la
20160 EXTRA_LTLIBRARIES =
20167 include ltdl/Makefile.inc
20169 foo_la_LDFLAGS = -module -avoid-version -no-undefined
20170 foo_la_SOURCES = foo.c
20174 echo 'int dummy = 0;' > foo.c
20181 $as_echo "$at_srcdir/nonrecursive.at:83: if test -f ltdl/configure.ac; then false; fi"
20182 at_fn_check_prepare_trace "nonrecursive.at:83"
20183 ( $at_check_trace; if test -f ltdl/configure.ac; then false; fi
20184 ) >>"$at_stdout" 2>>"$at_stderr"
20185 at_status=$? at_failed=false
20187 at_fn_diff_devnull "$at_stderr" || at_failed=:
20188 at_fn_diff_devnull "$at_stdout" || at_failed=:
20189 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:83"
20190 $at_failed && at_fn_log_failure
20194 # Support vanilla autoconf-2.59 & automake-1.9.6
20195 for file in argz.c lt__dirent.c lt__strl.c; do
20196 cp ltdl/$file $file
20201 $as_echo "$at_srcdir/nonrecursive.at:90: \$ACLOCAL -I ltdl/m4"
20202 at_fn_check_prepare_dynamic "$ACLOCAL -I ltdl/m4" "nonrecursive.at:90"
20203 ( $at_check_trace; $ACLOCAL -I ltdl/m4
20204 ) >>"$at_stdout" 2>>"$at_stderr"
20205 at_status=$? at_failed=false
20207 echo stderr:; cat "$at_stderr"
20208 echo stdout:; cat "$at_stdout"
20209 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:90"
20210 $at_failed && at_fn_log_failure
20217 $as_echo "$at_srcdir/nonrecursive.at:90: \$AUTOHEADER "
20218 at_fn_check_prepare_dynamic "$AUTOHEADER " "nonrecursive.at:90"
20219 ( $at_check_trace; $AUTOHEADER
20220 ) >>"$at_stdout" 2>>"$at_stderr"
20221 at_status=$? at_failed=false
20223 echo stderr:; cat "$at_stderr"
20224 echo stdout:; cat "$at_stdout"
20225 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:90"
20226 $at_failed && at_fn_log_failure
20233 $as_echo "$at_srcdir/nonrecursive.at:90: \$AUTOMAKE --add-missing --copy"
20234 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing --copy" "nonrecursive.at:90"
20235 ( $at_check_trace; $AUTOMAKE --add-missing --copy
20236 ) >>"$at_stdout" 2>>"$at_stderr"
20237 at_status=$? at_failed=false
20239 echo stderr:; tee stderr <"$at_stderr"
20240 echo stdout:; cat "$at_stdout"
20241 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:90"
20242 if $at_failed; then :
20244 $as_echo "$at_srcdir/nonrecursive.at:90: grep 'require .*but have' stderr && (exit 77)"
20245 at_fn_check_prepare_trace "nonrecursive.at:90"
20246 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
20247 ) >>"$at_stdout" 2>>"$at_stderr"
20248 at_status=$? at_failed=false
20250 at_fn_diff_devnull "$at_stderr" || at_failed=:
20251 at_fn_diff_devnull "$at_stdout" || at_failed=:
20252 at_fn_check_status 1 $at_status "$at_srcdir/nonrecursive.at:90"
20253 $at_failed && at_fn_log_failure
20257 $at_failed && at_fn_log_failure
20264 $as_echo "$at_srcdir/nonrecursive.at:90: \$AUTOCONF "
20265 at_fn_check_prepare_dynamic "$AUTOCONF " "nonrecursive.at:90"
20266 ( $at_check_trace; $AUTOCONF
20267 ) >>"$at_stdout" 2>>"$at_stderr"
20268 at_status=$? at_failed=false
20270 echo stderr:; cat "$at_stderr"
20271 echo stdout:; cat "$at_stdout"
20272 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:90"
20273 $at_failed && at_fn_log_failure
20280 $as_echo "$at_srcdir/nonrecursive.at:90: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
20281 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "nonrecursive.at:90"
20282 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
20283 ) >>"$at_stdout" 2>>"$at_stderr"
20284 at_status=$? at_failed=false
20286 echo stderr:; cat "$at_stderr"
20287 echo stdout:; cat "$at_stdout"
20288 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:90"
20289 $at_failed && at_fn_log_failure
20293 for target in all $tst_dist
20296 $as_echo "$at_srcdir/nonrecursive.at:90: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
20297 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "nonrecursive.at:90"
20298 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
20299 ) >>"$at_stdout" 2>>"$at_stderr"
20300 at_status=$? at_failed=false
20302 echo stderr:; cat "$at_stderr"
20303 echo stdout:; cat "$at_stdout"
20304 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:90"
20305 $at_failed && at_fn_log_failure
20313 $as_echo "$at_srcdir/nonrecursive.at:93: test -f ltdl/libltdlc.la"
20314 at_fn_check_prepare_trace "nonrecursive.at:93"
20315 ( $at_check_trace; test -f ltdl/libltdlc.la
20316 ) >>"$at_stdout" 2>>"$at_stderr"
20317 at_status=$? at_failed=false
20319 at_fn_diff_devnull "$at_stderr" || at_failed=:
20320 at_fn_diff_devnull "$at_stdout" || at_failed=:
20321 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:93"
20322 $at_failed && at_fn_log_failure
20327 $at_times_p && times >"$at_times_file"
20328 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20329 read at_status <"$at_status_file"
20332 at_fn_group_banner 96 'nonrecursive.at:102' \
20333 "compiling copied libltdl" " " 10
20335 test "$ACLOCAL" = no && at_xfail=yes
20336 test "$AUTOHEADER" = no && at_xfail=yes
20337 test "$AUTOMAKE" = no && at_xfail=yes
20338 test "$AUTOCONF" = no && at_xfail=yes
20340 $as_echo "96. $at_setup_line: testing $at_desc ..."
20344 cat >configure.ac <<'_ATEOF'
20345 AC_INIT([subdirectory-demo], 2.4.2, bug-libtool@gnu.org)
20346 LT_CONFIG_LTDL_DIR([ltdl])
20347 AC_CONFIG_AUX_DIR([ltdl/config])
20348 AC_CONFIG_MACRO_DIR([ltdl/m4])
20349 AC_CONFIG_LIBOBJ_DIR([ltdl])
20350 AC_CONFIG_HEADERS([config.h:config.hin])
20351 AM_INIT_AUTOMAKE([foreign subdir-objects])
20355 LTDL_INIT([nonrecursive])
20356 AC_CONFIG_FILES([Makefile])
20361 cat >Makefile.am <<'_ATEOF'
20362 ACLOCAL_AMFLAGS = -I ltdl/m4
20363 AUTOMAKE_OPTIONS = 1.9.6
20370 noinst_LTLIBRARIES =
20371 lib_LTLIBRARIES = foo.la
20372 EXTRA_LTLIBRARIES =
20379 include ltdl/Makefile.inc
20381 foo_la_LDFLAGS = -module -avoid-version -no-undefined
20382 foo_la_SOURCES = foo.c
20386 echo 'int dummy = 0;' > foo.c
20389 $LIBTOOLIZE --copy --ltdl
20393 $as_echo "$at_srcdir/nonrecursive.at:107: if test -f ltdl/configure.ac; then false; fi"
20394 at_fn_check_prepare_trace "nonrecursive.at:107"
20395 ( $at_check_trace; if test -f ltdl/configure.ac; then false; fi
20396 ) >>"$at_stdout" 2>>"$at_stderr"
20397 at_status=$? at_failed=false
20399 at_fn_diff_devnull "$at_stderr" || at_failed=:
20400 at_fn_diff_devnull "$at_stdout" || at_failed=:
20401 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:107"
20402 $at_failed && at_fn_log_failure
20406 # Support vanilla autoconf-2.59 & automake-1.9.6
20407 for file in argz.c lt__dirent.c lt__strl.c; do
20408 cp ltdl/$file $file
20413 $as_echo "$at_srcdir/nonrecursive.at:114: \$ACLOCAL -I ltdl/m4"
20414 at_fn_check_prepare_dynamic "$ACLOCAL -I ltdl/m4" "nonrecursive.at:114"
20415 ( $at_check_trace; $ACLOCAL -I ltdl/m4
20416 ) >>"$at_stdout" 2>>"$at_stderr"
20417 at_status=$? at_failed=false
20419 echo stderr:; cat "$at_stderr"
20420 echo stdout:; cat "$at_stdout"
20421 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:114"
20422 $at_failed && at_fn_log_failure
20429 $as_echo "$at_srcdir/nonrecursive.at:114: \$AUTOHEADER "
20430 at_fn_check_prepare_dynamic "$AUTOHEADER " "nonrecursive.at:114"
20431 ( $at_check_trace; $AUTOHEADER
20432 ) >>"$at_stdout" 2>>"$at_stderr"
20433 at_status=$? at_failed=false
20435 echo stderr:; cat "$at_stderr"
20436 echo stdout:; cat "$at_stdout"
20437 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:114"
20438 $at_failed && at_fn_log_failure
20445 $as_echo "$at_srcdir/nonrecursive.at:114: \$AUTOMAKE --add-missing --copy"
20446 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing --copy" "nonrecursive.at:114"
20447 ( $at_check_trace; $AUTOMAKE --add-missing --copy
20448 ) >>"$at_stdout" 2>>"$at_stderr"
20449 at_status=$? at_failed=false
20451 echo stderr:; tee stderr <"$at_stderr"
20452 echo stdout:; cat "$at_stdout"
20453 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:114"
20454 if $at_failed; then :
20456 $as_echo "$at_srcdir/nonrecursive.at:114: grep 'require .*but have' stderr && (exit 77)"
20457 at_fn_check_prepare_trace "nonrecursive.at:114"
20458 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
20459 ) >>"$at_stdout" 2>>"$at_stderr"
20460 at_status=$? at_failed=false
20462 at_fn_diff_devnull "$at_stderr" || at_failed=:
20463 at_fn_diff_devnull "$at_stdout" || at_failed=:
20464 at_fn_check_status 1 $at_status "$at_srcdir/nonrecursive.at:114"
20465 $at_failed && at_fn_log_failure
20469 $at_failed && at_fn_log_failure
20476 $as_echo "$at_srcdir/nonrecursive.at:114: \$AUTOCONF "
20477 at_fn_check_prepare_dynamic "$AUTOCONF " "nonrecursive.at:114"
20478 ( $at_check_trace; $AUTOCONF
20479 ) >>"$at_stdout" 2>>"$at_stderr"
20480 at_status=$? at_failed=false
20482 echo stderr:; cat "$at_stderr"
20483 echo stdout:; cat "$at_stdout"
20484 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:114"
20485 $at_failed && at_fn_log_failure
20492 $as_echo "$at_srcdir/nonrecursive.at:114: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
20493 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "nonrecursive.at:114"
20494 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
20495 ) >>"$at_stdout" 2>>"$at_stderr"
20496 at_status=$? at_failed=false
20498 echo stderr:; cat "$at_stderr"
20499 echo stdout:; cat "$at_stdout"
20500 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:114"
20501 $at_failed && at_fn_log_failure
20505 for target in all $tst_dist
20508 $as_echo "$at_srcdir/nonrecursive.at:114: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
20509 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "nonrecursive.at:114"
20510 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
20511 ) >>"$at_stdout" 2>>"$at_stderr"
20512 at_status=$? at_failed=false
20514 echo stderr:; cat "$at_stderr"
20515 echo stdout:; cat "$at_stdout"
20516 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:114"
20517 $at_failed && at_fn_log_failure
20525 $as_echo "$at_srcdir/nonrecursive.at:117: test -f ltdl/libltdlc.la"
20526 at_fn_check_prepare_trace "nonrecursive.at:117"
20527 ( $at_check_trace; test -f ltdl/libltdlc.la
20528 ) >>"$at_stdout" 2>>"$at_stderr"
20529 at_status=$? at_failed=false
20531 at_fn_diff_devnull "$at_stderr" || at_failed=:
20532 at_fn_diff_devnull "$at_stdout" || at_failed=:
20533 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:117"
20534 $at_failed && at_fn_log_failure
20539 $at_times_p && times >"$at_times_file"
20540 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20541 read at_status <"$at_status_file"
20544 at_fn_group_banner 97 'nonrecursive.at:126' \
20545 "installable libltdl" " " 10
20547 test "$ACLOCAL" = no && at_xfail=yes
20548 test "$AUTOHEADER" = no && at_xfail=yes
20549 test "$AUTOMAKE" = no && at_xfail=yes
20550 test "$AUTOCONF" = no && at_xfail=yes
20552 $as_echo "97. $at_setup_line: testing $at_desc ..."
20556 cat >configure.ac <<'_ATEOF'
20557 AC_INIT([subdirectory-demo], 2.4.2, bug-libtool@gnu.org)
20558 LT_CONFIG_LTDL_DIR([ltdl])
20559 AC_CONFIG_AUX_DIR([ltdl/config])
20560 AC_CONFIG_MACRO_DIR([ltdl/m4])
20561 AC_CONFIG_LIBOBJ_DIR([ltdl])
20562 AC_CONFIG_HEADERS([config.h:config.hin])
20563 AM_INIT_AUTOMAKE([foreign subdir-objects])
20567 LTDL_INIT([nonrecursive])
20568 AC_CONFIG_FILES([Makefile])
20573 cat >Makefile.am <<'_ATEOF'
20574 ACLOCAL_AMFLAGS = -I ltdl/m4
20575 AUTOMAKE_OPTIONS = 1.9.6
20582 noinst_LTLIBRARIES =
20583 lib_LTLIBRARIES = foo.la
20584 EXTRA_LTLIBRARIES =
20591 include ltdl/Makefile.inc
20593 foo_la_LDFLAGS = -module -avoid-version -no-undefined
20594 foo_la_SOURCES = foo.c
20598 echo 'int dummy = 0;' > foo.c
20603 $LIBTOOLIZE --copy --ltdl
20607 $as_echo "$at_srcdir/nonrecursive.at:133: if test -f ltdl/configure.ac; then false; fi"
20608 at_fn_check_prepare_trace "nonrecursive.at:133"
20609 ( $at_check_trace; if test -f ltdl/configure.ac; then false; fi
20610 ) >>"$at_stdout" 2>>"$at_stderr"
20611 at_status=$? at_failed=false
20613 at_fn_diff_devnull "$at_stderr" || at_failed=:
20614 at_fn_diff_devnull "$at_stdout" || at_failed=:
20615 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:133"
20616 $at_failed && at_fn_log_failure
20620 # Support vanilla autoconf-2.59 & automake-1.9.6
20621 for file in argz.c lt__dirent.c lt__strl.c; do
20622 cp ltdl/$file $file
20627 $as_echo "$at_srcdir/nonrecursive.at:140: \$ACLOCAL -I ltdl/m4"
20628 at_fn_check_prepare_dynamic "$ACLOCAL -I ltdl/m4" "nonrecursive.at:140"
20629 ( $at_check_trace; $ACLOCAL -I ltdl/m4
20630 ) >>"$at_stdout" 2>>"$at_stderr"
20631 at_status=$? at_failed=false
20633 echo stderr:; cat "$at_stderr"
20634 echo stdout:; cat "$at_stdout"
20635 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:140"
20636 $at_failed && at_fn_log_failure
20643 $as_echo "$at_srcdir/nonrecursive.at:140: \$AUTOHEADER "
20644 at_fn_check_prepare_dynamic "$AUTOHEADER " "nonrecursive.at:140"
20645 ( $at_check_trace; $AUTOHEADER
20646 ) >>"$at_stdout" 2>>"$at_stderr"
20647 at_status=$? at_failed=false
20649 echo stderr:; cat "$at_stderr"
20650 echo stdout:; cat "$at_stdout"
20651 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:140"
20652 $at_failed && at_fn_log_failure
20659 $as_echo "$at_srcdir/nonrecursive.at:140: \$AUTOMAKE --add-missing --copy"
20660 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing --copy" "nonrecursive.at:140"
20661 ( $at_check_trace; $AUTOMAKE --add-missing --copy
20662 ) >>"$at_stdout" 2>>"$at_stderr"
20663 at_status=$? at_failed=false
20665 echo stderr:; tee stderr <"$at_stderr"
20666 echo stdout:; cat "$at_stdout"
20667 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:140"
20668 if $at_failed; then :
20670 $as_echo "$at_srcdir/nonrecursive.at:140: grep 'require .*but have' stderr && (exit 77)"
20671 at_fn_check_prepare_trace "nonrecursive.at:140"
20672 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
20673 ) >>"$at_stdout" 2>>"$at_stderr"
20674 at_status=$? at_failed=false
20676 at_fn_diff_devnull "$at_stderr" || at_failed=:
20677 at_fn_diff_devnull "$at_stdout" || at_failed=:
20678 at_fn_check_status 1 $at_status "$at_srcdir/nonrecursive.at:140"
20679 $at_failed && at_fn_log_failure
20683 $at_failed && at_fn_log_failure
20690 $as_echo "$at_srcdir/nonrecursive.at:140: \$AUTOCONF "
20691 at_fn_check_prepare_dynamic "$AUTOCONF " "nonrecursive.at:140"
20692 ( $at_check_trace; $AUTOCONF
20693 ) >>"$at_stdout" 2>>"$at_stderr"
20694 at_status=$? at_failed=false
20696 echo stderr:; cat "$at_stderr"
20697 echo stdout:; cat "$at_stdout"
20698 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:140"
20699 $at_failed && at_fn_log_failure
20706 $as_echo "$at_srcdir/nonrecursive.at:140: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --enable-ltdl-install --prefix=\$prefix"
20707 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "nonrecursive.at:140"
20708 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --enable-ltdl-install --prefix=$prefix
20709 ) >>"$at_stdout" 2>>"$at_stderr"
20710 at_status=$? at_failed=false
20712 echo stderr:; cat "$at_stderr"
20713 echo stdout:; cat "$at_stdout"
20714 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:140"
20715 $at_failed && at_fn_log_failure
20719 for target in all install $tst_dist
20722 $as_echo "$at_srcdir/nonrecursive.at:140: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
20723 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "nonrecursive.at:140"
20724 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
20725 ) >>"$at_stdout" 2>>"$at_stderr"
20726 at_status=$? at_failed=false
20728 echo stderr:; cat "$at_stderr"
20729 echo stdout:; cat "$at_stdout"
20730 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:140"
20731 $at_failed && at_fn_log_failure
20739 $as_echo "$at_srcdir/nonrecursive.at:143: test -f \$prefix/lib/libltdl.la"
20740 at_fn_check_prepare_dynamic "test -f $prefix/lib/libltdl.la" "nonrecursive.at:143"
20741 ( $at_check_trace; test -f $prefix/lib/libltdl.la
20742 ) >>"$at_stdout" 2>>"$at_stderr"
20743 at_status=$? at_failed=false
20745 at_fn_diff_devnull "$at_stderr" || at_failed=:
20746 at_fn_diff_devnull "$at_stdout" || at_failed=:
20747 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:143"
20748 $at_failed && at_fn_log_failure
20752 $as_echo "$at_srcdir/nonrecursive.at:144: test -f \$prefix/include/ltdl.h"
20753 at_fn_check_prepare_dynamic "test -f $prefix/include/ltdl.h" "nonrecursive.at:144"
20754 ( $at_check_trace; test -f $prefix/include/ltdl.h
20755 ) >>"$at_stdout" 2>>"$at_stderr"
20756 at_status=$? at_failed=false
20758 at_fn_diff_devnull "$at_stderr" || at_failed=:
20759 at_fn_diff_devnull "$at_stdout" || at_failed=:
20760 at_fn_check_status 0 $at_status "$at_srcdir/nonrecursive.at:144"
20761 $at_failed && at_fn_log_failure
20766 $at_times_p && times >"$at_times_file"
20767 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20768 read at_status <"$at_status_file"
20771 at_fn_group_banner 98 'recursive.at:60' \
20772 "compiling softlinked libltdl" " " 11
20774 case ,$AUTORECONF,$AUTOCONF,$AUTOHEADER,$ACLOCAL,$AUTOMAKE, in *,no,*) :;; *) false;; esac && at_xfail=yes
20776 $as_echo "98. $at_setup_line: testing $at_desc ..."
20780 cat >configure.ac <<'_ATEOF'
20781 AC_INIT([subdirectory-demo], 2.4.2, bug-libtool@gnu.org)
20782 LT_CONFIG_LTDL_DIR([ltdl])
20783 AC_CONFIG_AUX_DIR([ltdl/config])
20784 AC_CONFIG_MACRO_DIR([ltdl/m4])
20785 AC_CONFIG_LIBOBJ_DIR([ltdl])
20786 AC_CONFIG_HEADERS([config.h:config.hin])
20787 AM_INIT_AUTOMAKE([foreign])
20789 LTDL_INIT([recursive])
20790 AC_CONFIG_FILES([Makefile ltdl/Makefile])
20795 cat >Makefile.am <<'_ATEOF'
20796 ACLOCAL_AMFLAGS = -I ltdl/m4
20797 AUTOMAKE_OPTIONS = 1.7
20799 lib_LTLIBRARIES = foo.la
20800 foo_la_LDFLAGS = -module -avoid-version -no-undefined
20801 foo_la_SOURCES = foo.c
20805 echo 'int dummy = 0;' > foo.c
20812 $as_echo "$at_srcdir/recursive.at:65: if test -f ltdl/configure.ac; then false; fi"
20813 at_fn_check_prepare_trace "recursive.at:65"
20814 ( $at_check_trace; if test -f ltdl/configure.ac; then false; fi
20815 ) >>"$at_stdout" 2>>"$at_stderr"
20816 at_status=$? at_failed=false
20818 at_fn_diff_devnull "$at_stderr" || at_failed=:
20819 at_fn_diff_devnull "$at_stdout" || at_failed=:
20820 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:65"
20821 $at_failed && at_fn_log_failure
20826 $as_echo "$at_srcdir/recursive.at:67: \$AUTORECONF --force --verbose --install"
20827 at_fn_check_prepare_dynamic "$AUTORECONF --force --verbose --install" "recursive.at:67"
20828 ( $at_check_trace; $AUTORECONF --force --verbose --install
20829 ) >>"$at_stdout" 2>>"$at_stderr"
20830 at_status=$? at_failed=false
20832 echo stderr:; tee stderr <"$at_stderr"
20833 echo stdout:; cat "$at_stdout"
20834 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:67"
20835 if $at_failed; then :
20837 $as_echo "$at_srcdir/recursive.at:67: grep 'require .*but have' stderr && (exit 77)"
20838 at_fn_check_prepare_trace "recursive.at:67"
20839 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
20840 ) >>"$at_stdout" 2>>"$at_stderr"
20841 at_status=$? at_failed=false
20843 at_fn_diff_devnull "$at_stderr" || at_failed=:
20844 at_fn_diff_devnull "$at_stdout" || at_failed=:
20845 at_fn_check_status 1 $at_status "$at_srcdir/recursive.at:67"
20846 $at_failed && at_fn_log_failure
20850 $at_failed && at_fn_log_failure
20857 $as_echo "$at_srcdir/recursive.at:68: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
20858 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "recursive.at:68"
20859 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
20860 ) >>"$at_stdout" 2>>"$at_stderr"
20861 at_status=$? at_failed=false
20863 echo stderr:; cat "$at_stderr"
20864 echo stdout:; cat "$at_stdout"
20865 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:68"
20866 $at_failed && at_fn_log_failure
20870 for target in all $tst_dist
20873 $as_echo "$at_srcdir/recursive.at:69: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
20874 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "recursive.at:69"
20875 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
20876 ) >>"$at_stdout" 2>>"$at_stderr"
20877 at_status=$? at_failed=false
20879 echo stderr:; cat "$at_stderr"
20880 echo stdout:; cat "$at_stdout"
20881 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:69"
20882 $at_failed && at_fn_log_failure
20889 $as_echo "$at_srcdir/recursive.at:71: test -f ltdl/libltdlc.la"
20890 at_fn_check_prepare_trace "recursive.at:71"
20891 ( $at_check_trace; test -f ltdl/libltdlc.la
20892 ) >>"$at_stdout" 2>>"$at_stderr"
20893 at_status=$? at_failed=false
20895 at_fn_diff_devnull "$at_stderr" || at_failed=:
20896 at_fn_diff_devnull "$at_stdout" || at_failed=:
20897 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:71"
20898 $at_failed && at_fn_log_failure
20903 $at_times_p && times >"$at_times_file"
20904 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20905 read at_status <"$at_status_file"
20908 at_fn_group_banner 99 'recursive.at:80' \
20909 "compiling copied libltdl" " " 11
20911 case ,$AUTORECONF,$AUTOCONF,$AUTOHEADER,$ACLOCAL,$AUTOMAKE, in *,no,*) :;; *) false;; esac && at_xfail=yes
20913 $as_echo "99. $at_setup_line: testing $at_desc ..."
20917 cat >configure.ac <<'_ATEOF'
20918 AC_INIT([subdirectory-demo], 2.4.2, bug-libtool@gnu.org)
20919 LT_CONFIG_LTDL_DIR([ltdl])
20920 AC_CONFIG_AUX_DIR([ltdl/config])
20921 AC_CONFIG_MACRO_DIR([ltdl/m4])
20922 AC_CONFIG_LIBOBJ_DIR([ltdl])
20923 AC_CONFIG_HEADERS([config.h:config.hin])
20924 AM_INIT_AUTOMAKE([foreign])
20926 LTDL_INIT([recursive])
20927 AC_CONFIG_FILES([Makefile ltdl/Makefile])
20932 cat >Makefile.am <<'_ATEOF'
20933 ACLOCAL_AMFLAGS = -I ltdl/m4
20934 AUTOMAKE_OPTIONS = 1.7
20936 lib_LTLIBRARIES = foo.la
20937 foo_la_LDFLAGS = -module -avoid-version -no-undefined
20938 foo_la_SOURCES = foo.c
20942 echo 'int dummy = 0;' > foo.c
20945 $LIBTOOLIZE --copy --ltdl
20949 $as_echo "$at_srcdir/recursive.at:85: if test -f ltdl/configure.ac; then false; fi"
20950 at_fn_check_prepare_trace "recursive.at:85"
20951 ( $at_check_trace; if test -f ltdl/configure.ac; then false; fi
20952 ) >>"$at_stdout" 2>>"$at_stderr"
20953 at_status=$? at_failed=false
20955 at_fn_diff_devnull "$at_stderr" || at_failed=:
20956 at_fn_diff_devnull "$at_stdout" || at_failed=:
20957 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:85"
20958 $at_failed && at_fn_log_failure
20963 $as_echo "$at_srcdir/recursive.at:87: \$AUTORECONF --force --verbose --install"
20964 at_fn_check_prepare_dynamic "$AUTORECONF --force --verbose --install" "recursive.at:87"
20965 ( $at_check_trace; $AUTORECONF --force --verbose --install
20966 ) >>"$at_stdout" 2>>"$at_stderr"
20967 at_status=$? at_failed=false
20969 echo stderr:; tee stderr <"$at_stderr"
20970 echo stdout:; cat "$at_stdout"
20971 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:87"
20972 if $at_failed; then :
20974 $as_echo "$at_srcdir/recursive.at:87: grep 'require .*but have' stderr && (exit 77)"
20975 at_fn_check_prepare_trace "recursive.at:87"
20976 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
20977 ) >>"$at_stdout" 2>>"$at_stderr"
20978 at_status=$? at_failed=false
20980 at_fn_diff_devnull "$at_stderr" || at_failed=:
20981 at_fn_diff_devnull "$at_stdout" || at_failed=:
20982 at_fn_check_status 1 $at_status "$at_srcdir/recursive.at:87"
20983 $at_failed && at_fn_log_failure
20987 $at_failed && at_fn_log_failure
20994 $as_echo "$at_srcdir/recursive.at:88: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
20995 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "recursive.at:88"
20996 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
20997 ) >>"$at_stdout" 2>>"$at_stderr"
20998 at_status=$? at_failed=false
21000 echo stderr:; cat "$at_stderr"
21001 echo stdout:; cat "$at_stdout"
21002 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:88"
21003 $at_failed && at_fn_log_failure
21007 for target in all $tst_dist
21010 $as_echo "$at_srcdir/recursive.at:89: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
21011 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "recursive.at:89"
21012 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
21013 ) >>"$at_stdout" 2>>"$at_stderr"
21014 at_status=$? at_failed=false
21016 echo stderr:; cat "$at_stderr"
21017 echo stdout:; cat "$at_stdout"
21018 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:89"
21019 $at_failed && at_fn_log_failure
21026 $as_echo "$at_srcdir/recursive.at:91: test -f ltdl/libltdlc.la"
21027 at_fn_check_prepare_trace "recursive.at:91"
21028 ( $at_check_trace; test -f ltdl/libltdlc.la
21029 ) >>"$at_stdout" 2>>"$at_stderr"
21030 at_status=$? at_failed=false
21032 at_fn_diff_devnull "$at_stderr" || at_failed=:
21033 at_fn_diff_devnull "$at_stdout" || at_failed=:
21034 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:91"
21035 $at_failed && at_fn_log_failure
21040 $at_times_p && times >"$at_times_file"
21041 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21042 read at_status <"$at_status_file"
21045 at_fn_group_banner 100 'recursive.at:100' \
21046 "installable libltdl" " " 11
21048 case ,$AUTORECONF,$AUTOCONF,$AUTOHEADER,$ACLOCAL,$AUTOMAKE, in *,no,*) :;; *) false;; esac && at_xfail=yes
21050 $as_echo "100. $at_setup_line: testing $at_desc ..."
21054 cat >configure.ac <<'_ATEOF'
21055 AC_INIT([subdirectory-demo], 2.4.2, bug-libtool@gnu.org)
21056 LT_CONFIG_LTDL_DIR([ltdl])
21057 AC_CONFIG_AUX_DIR([ltdl/config])
21058 AC_CONFIG_MACRO_DIR([ltdl/m4])
21059 AC_CONFIG_LIBOBJ_DIR([ltdl])
21060 AC_CONFIG_HEADERS([config.h:config.hin])
21061 AM_INIT_AUTOMAKE([foreign])
21063 LTDL_INIT([recursive])
21064 AC_CONFIG_FILES([Makefile ltdl/Makefile])
21069 cat >Makefile.am <<'_ATEOF'
21070 ACLOCAL_AMFLAGS = -I ltdl/m4
21071 AUTOMAKE_OPTIONS = 1.7
21073 lib_LTLIBRARIES = foo.la
21074 foo_la_LDFLAGS = -module -avoid-version -no-undefined
21075 foo_la_SOURCES = foo.c
21079 echo 'int dummy = 0;' > foo.c
21084 $LIBTOOLIZE --copy --ltdl
21088 $as_echo "$at_srcdir/recursive.at:107: if test -f ltdl/configure.ac; then false; fi"
21089 at_fn_check_prepare_trace "recursive.at:107"
21090 ( $at_check_trace; if test -f ltdl/configure.ac; then false; fi
21091 ) >>"$at_stdout" 2>>"$at_stderr"
21092 at_status=$? at_failed=false
21094 at_fn_diff_devnull "$at_stderr" || at_failed=:
21095 at_fn_diff_devnull "$at_stdout" || at_failed=:
21096 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:107"
21097 $at_failed && at_fn_log_failure
21102 $as_echo "$at_srcdir/recursive.at:109: \$AUTORECONF --force --verbose --install"
21103 at_fn_check_prepare_dynamic "$AUTORECONF --force --verbose --install" "recursive.at:109"
21104 ( $at_check_trace; $AUTORECONF --force --verbose --install
21105 ) >>"$at_stdout" 2>>"$at_stderr"
21106 at_status=$? at_failed=false
21108 echo stderr:; tee stderr <"$at_stderr"
21109 echo stdout:; cat "$at_stdout"
21110 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:109"
21111 if $at_failed; then :
21113 $as_echo "$at_srcdir/recursive.at:109: grep 'require .*but have' stderr && (exit 77)"
21114 at_fn_check_prepare_trace "recursive.at:109"
21115 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
21116 ) >>"$at_stdout" 2>>"$at_stderr"
21117 at_status=$? at_failed=false
21119 at_fn_diff_devnull "$at_stderr" || at_failed=:
21120 at_fn_diff_devnull "$at_stdout" || at_failed=:
21121 at_fn_check_status 1 $at_status "$at_srcdir/recursive.at:109"
21122 $at_failed && at_fn_log_failure
21126 $at_failed && at_fn_log_failure
21133 $as_echo "$at_srcdir/recursive.at:110: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --enable-ltdl-install --prefix=\$prefix"
21134 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "recursive.at:110"
21135 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --enable-ltdl-install --prefix=$prefix
21136 ) >>"$at_stdout" 2>>"$at_stderr"
21137 at_status=$? at_failed=false
21139 echo stderr:; cat "$at_stderr"
21140 echo stdout:; cat "$at_stdout"
21141 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:110"
21142 $at_failed && at_fn_log_failure
21146 for target in all install $tst_dist
21149 $as_echo "$at_srcdir/recursive.at:111: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
21150 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "recursive.at:111"
21151 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
21152 ) >>"$at_stdout" 2>>"$at_stderr"
21153 at_status=$? at_failed=false
21155 echo stderr:; cat "$at_stderr"
21156 echo stdout:; cat "$at_stdout"
21157 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:111"
21158 $at_failed && at_fn_log_failure
21165 $as_echo "$at_srcdir/recursive.at:113: test -f \$prefix/lib/libltdl.la"
21166 at_fn_check_prepare_dynamic "test -f $prefix/lib/libltdl.la" "recursive.at:113"
21167 ( $at_check_trace; test -f $prefix/lib/libltdl.la
21168 ) >>"$at_stdout" 2>>"$at_stderr"
21169 at_status=$? at_failed=false
21171 at_fn_diff_devnull "$at_stderr" || at_failed=:
21172 at_fn_diff_devnull "$at_stdout" || at_failed=:
21173 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:113"
21174 $at_failed && at_fn_log_failure
21178 $as_echo "$at_srcdir/recursive.at:114: test -f \$prefix/include/ltdl.h"
21179 at_fn_check_prepare_dynamic "test -f $prefix/include/ltdl.h" "recursive.at:114"
21180 ( $at_check_trace; test -f $prefix/include/ltdl.h
21181 ) >>"$at_stdout" 2>>"$at_stderr"
21182 at_status=$? at_failed=false
21184 at_fn_diff_devnull "$at_stderr" || at_failed=:
21185 at_fn_diff_devnull "$at_stdout" || at_failed=:
21186 at_fn_check_status 0 $at_status "$at_srcdir/recursive.at:114"
21187 $at_failed && at_fn_log_failure
21192 $at_times_p && times >"$at_times_file"
21193 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21194 read at_status <"$at_status_file"
21197 at_fn_group_banner 101 'template.at:27' \
21198 "simple template test" " " 12
21201 $as_echo "101. $at_setup_line: testing $at_desc ..."
21206 $as_echo "$at_srcdir/template.at:28: { test -n \"\$CXX\" && test \"X\$CXX\" != Xno; } || (exit 77)"
21207 at_fn_check_prepare_dynamic "{ test -n \"$CXX\" && test \"X$CXX\" != Xno; } || (exit 77)" "template.at:28"
21208 ( $at_check_trace; { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
21209 ) >>"$at_stdout" 2>>"$at_stderr"
21210 at_status=$? at_failed=false
21212 at_fn_diff_devnull "$at_stderr" || at_failed=:
21213 at_fn_diff_devnull "$at_stdout" || at_failed=:
21214 at_fn_check_status 0 $at_status "$at_srcdir/template.at:28"
21215 $at_failed && at_fn_log_failure
21219 $as_echo "$at_srcdir/template.at:28: test \"X\$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)"
21220 at_fn_check_prepare_dynamic "test \"X$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)" "template.at:28"
21221 ( $at_check_trace; test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)
21222 ) >>"$at_stdout" 2>>"$at_stderr"
21223 at_status=$? at_failed=false
21225 at_fn_diff_devnull "$at_stderr" || at_failed=:
21226 at_fn_diff_devnull "$at_stdout" || at_failed=:
21227 at_fn_check_status 0 $at_status "$at_srcdir/template.at:28"
21228 $at_failed && at_fn_log_failure
21234 cat >aclib.h <<'_ATEOF'
21239 cat >aclib.cpp <<'_ATEOF'
21241 template<typename T>
21255 cat >alib.h <<'_ATEOF'
21260 cat >alib.cpp <<'_ATEOF'
21263 template<typename T>
21276 cat >prog.cpp <<'_ATEOF'
21282 return f(3) + 3 - cf(3) != 0;
21288 $as_echo "$at_srcdir/template.at:79: \$LIBTOOL --tag=CXX --mode=compile \$CXX -I. \$CPPFLAGS \$CXXFLAGS -c -o alib.lo alib.cpp"
21289 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=compile $CXX -I. $CPPFLAGS $CXXFLAGS -c -o alib.lo alib.cpp" "template.at:79"
21290 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=compile $CXX -I. $CPPFLAGS $CXXFLAGS -c -o alib.lo alib.cpp
21291 ) >>"$at_stdout" 2>>"$at_stderr"
21292 at_status=$? at_failed=false
21294 echo stderr:; cat "$at_stderr"
21295 echo stdout:; cat "$at_stdout"
21296 at_fn_check_status 0 $at_status "$at_srcdir/template.at:79"
21297 $at_failed && at_fn_log_failure
21301 $as_echo "$at_srcdir/template.at:81: \$LIBTOOL --tag=CXX --mode=compile \$CXX -I. \$CPPFLAGS \$CXXFLAGS -c -o aclib.lo aclib.cpp"
21302 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=compile $CXX -I. $CPPFLAGS $CXXFLAGS -c -o aclib.lo aclib.cpp" "template.at:81"
21303 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=compile $CXX -I. $CPPFLAGS $CXXFLAGS -c -o aclib.lo aclib.cpp
21304 ) >>"$at_stdout" 2>>"$at_stderr"
21305 at_status=$? at_failed=false
21307 echo stderr:; cat "$at_stderr"
21308 echo stdout:; cat "$at_stdout"
21309 at_fn_check_status 0 $at_status "$at_srcdir/template.at:81"
21310 $at_failed && at_fn_log_failure
21314 $as_echo "$at_srcdir/template.at:83: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CPPFLAGS \$CXXFLAGS \$LDFLAGS -o libaclib.la aclib.lo"
21315 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o libaclib.la aclib.lo" "template.at:83"
21316 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o libaclib.la aclib.lo
21317 ) >>"$at_stdout" 2>>"$at_stderr"
21318 at_status=$? at_failed=false
21320 echo stderr:; cat "$at_stderr"
21321 echo stdout:; cat "$at_stdout"
21322 at_fn_check_status 0 $at_status "$at_srcdir/template.at:83"
21323 $at_failed && at_fn_log_failure
21327 $as_echo "$at_srcdir/template.at:85: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CPPFLAGS \$CXXFLAGS \$LDFLAGS -o libalib.la -rpath /nonexistent alib.lo libaclib.la"
21328 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o libalib.la -rpath /nonexistent alib.lo libaclib.la" "template.at:85"
21329 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o libalib.la -rpath /nonexistent alib.lo libaclib.la
21330 ) >>"$at_stdout" 2>>"$at_stderr"
21331 at_status=$? at_failed=false
21333 echo stderr:; cat "$at_stderr"
21334 echo stdout:; cat "$at_stdout"
21335 at_fn_check_status 0 $at_status "$at_srcdir/template.at:85"
21336 $at_failed && at_fn_log_failure
21340 $as_echo "$at_srcdir/template.at:87: \$CXX -I. \$CPPFLAGS \$CXXFLAGS -c prog.cpp"
21341 at_fn_check_prepare_dynamic "$CXX -I. $CPPFLAGS $CXXFLAGS -c prog.cpp" "template.at:87"
21342 ( $at_check_trace; $CXX -I. $CPPFLAGS $CXXFLAGS -c prog.cpp
21343 ) >>"$at_stdout" 2>>"$at_stderr"
21344 at_status=$? at_failed=false
21346 echo stderr:; cat "$at_stderr"
21347 echo stdout:; cat "$at_stdout"
21348 at_fn_check_status 0 $at_status "$at_srcdir/template.at:87"
21349 $at_failed && at_fn_log_failure
21353 $as_echo "$at_srcdir/template.at:89: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CPPFLAGS \$CXXFLAGS \$LDFLAGS -o prog\$EXEEXT prog.\$OBJEXT libalib.la"
21354 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o prog$EXEEXT prog.$OBJEXT libalib.la" "template.at:89"
21355 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CPPFLAGS $CXXFLAGS $LDFLAGS -o prog$EXEEXT prog.$OBJEXT libalib.la
21356 ) >>"$at_stdout" 2>>"$at_stderr"
21357 at_status=$? at_failed=false
21359 echo stderr:; cat "$at_stderr"
21360 echo stdout:; cat "$at_stdout"
21361 at_fn_check_status 0 $at_status "$at_srcdir/template.at:89"
21362 $at_failed && at_fn_log_failure
21366 lt_exe=./prog; if test -f "./prog$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
21368 $as_echo "$at_srcdir/template.at:92: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
21369 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "template.at:92"
21370 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
21371 ) >>"$at_stdout" 2>>"$at_stderr"
21372 at_status=$? at_failed=false
21374 echo stderr:; cat "$at_stderr"
21375 echo stdout:; cat "$at_stdout"
21376 at_fn_check_status 0 $at_status "$at_srcdir/template.at:92"
21377 $at_failed && at_fn_log_failure
21387 $at_times_p && times >"$at_times_file"
21388 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21389 read at_status <"$at_status_file"
21392 at_fn_group_banner 102 'template.at:126' \
21393 "template test with subdirs" " " 12
21396 $as_echo "102. $at_setup_line: testing $at_desc ..."
21401 $as_echo "$at_srcdir/template.at:127: { test -n \"\$CXX\" && test \"X\$CXX\" != Xno; } || (exit 77)"
21402 at_fn_check_prepare_dynamic "{ test -n \"$CXX\" && test \"X$CXX\" != Xno; } || (exit 77)" "template.at:127"
21403 ( $at_check_trace; { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
21404 ) >>"$at_stdout" 2>>"$at_stderr"
21405 at_status=$? at_failed=false
21407 at_fn_diff_devnull "$at_stderr" || at_failed=:
21408 at_fn_diff_devnull "$at_stdout" || at_failed=:
21409 at_fn_check_status 0 $at_status "$at_srcdir/template.at:127"
21410 $at_failed && at_fn_log_failure
21414 $as_echo "$at_srcdir/template.at:127: test \"X\$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)"
21415 at_fn_check_prepare_dynamic "test \"X$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)" "template.at:127"
21416 ( $at_check_trace; test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)
21417 ) >>"$at_stdout" 2>>"$at_stderr"
21418 at_status=$? at_failed=false
21420 at_fn_diff_devnull "$at_stderr" || at_failed=:
21421 at_fn_diff_devnull "$at_stdout" || at_failed=:
21422 at_fn_check_status 0 $at_status "$at_srcdir/template.at:127"
21423 $at_failed && at_fn_log_failure
21431 # The linker has issues with this test.
21433 *-darwin*) noskip=false ;;
21437 CPPFLAGS="$CPPFLAGS -I../src/lib -I../src/lib2"
21440 ( cd src; mkdir lib lib2 sub )
21441 ( cd obj; mkdir lib lib2 sub )
21443 cat >src/lib/a.hh <<'_ATEOF'
21445 unsigned int a(const T&);
21448 unsigned int a(const T& t)
21453 extern int a2(char t);
21455 inline int a3(const double* t)
21462 cat >src/lib/a.cpp <<'_ATEOF'
21472 cat >src/lib2/b.hh <<'_ATEOF'
21476 unsigned int b(T& t)
21480 extern int b2(char* t);
21481 struct bs { int bi; };
21482 extern int b3(bs t);
21486 cat >src/lib2/b.cpp <<'_ATEOF'
21501 cat >src/sub/main.cpp <<'_ATEOF'
21507 const char s = ' ';
21510 return b(foo) + a3(&foo) + b2(t) - a(s)
21511 - (sizeof(double) + sizeof(double*));
21518 # If the compiler supports -c -o, we want to use it:
21519 # it may make a difference for templates
21520 eval `$LIBTOOL --tag=CXX --config | grep ^compiler_c_o=`
21521 case $compiler_c_o in
21523 main_o=sub/main.$OBJEXT
21525 $as_echo "$at_srcdir/template.at:220: \$CXX \$CPPFLAGS \$CXXFLAGS -c -o \$main_o ../src/sub/main.cpp"
21526 at_fn_check_prepare_dynamic "$CXX $CPPFLAGS $CXXFLAGS -c -o $main_o ../src/sub/main.cpp" "template.at:220"
21527 ( $at_check_trace; $CXX $CPPFLAGS $CXXFLAGS -c -o $main_o ../src/sub/main.cpp
21528 ) >>"$at_stdout" 2>>"$at_stderr"
21529 at_status=$? at_failed=false
21531 echo stderr:; cat "$at_stderr"
21532 echo stdout:; cat "$at_stdout"
21533 at_fn_check_status 0 $at_status "$at_srcdir/template.at:220"
21534 $at_failed && at_fn_log_failure
21539 main_o=main.$OBJEXT
21541 $as_echo "$at_srcdir/template.at:225: \$CXX \$CPPFLAGS \$CXXFLAGS -c ../src/sub/main.cpp"
21542 at_fn_check_prepare_dynamic "$CXX $CPPFLAGS $CXXFLAGS -c ../src/sub/main.cpp" "template.at:225"
21543 ( $at_check_trace; $CXX $CPPFLAGS $CXXFLAGS -c ../src/sub/main.cpp
21544 ) >>"$at_stdout" 2>>"$at_stderr"
21545 at_status=$? at_failed=false
21547 echo stderr:; cat "$at_stderr"
21548 echo stdout:; cat "$at_stdout"
21549 at_fn_check_status 0 $at_status "$at_srcdir/template.at:225"
21550 $at_failed && at_fn_log_failure
21557 $as_echo "$at_srcdir/template.at:230: \$LIBTOOL --tag=CXX --mode=compile \$CXX \$CPPFLAGS \$CXXFLAGS -c -o lib/a.lo ../src/lib/a.cpp"
21558 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=compile $CXX $CPPFLAGS $CXXFLAGS -c -o lib/a.lo ../src/lib/a.cpp" "template.at:230"
21559 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=compile $CXX $CPPFLAGS $CXXFLAGS -c -o lib/a.lo ../src/lib/a.cpp
21560 ) >>"$at_stdout" 2>>"$at_stderr"
21561 at_status=$? at_failed=false
21563 echo stderr:; cat "$at_stderr"
21564 echo stdout:; cat "$at_stdout"
21565 at_fn_check_status 0 $at_status "$at_srcdir/template.at:230"
21566 $at_failed && at_fn_log_failure
21570 $as_echo "$at_srcdir/template.at:232: \$LIBTOOL --tag=CXX --mode=compile \$CXX \$CPPFLAGS \$CXXFLAGS -c -o lib2/b.lo ../src/lib2/b.cpp"
21571 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=compile $CXX $CPPFLAGS $CXXFLAGS -c -o lib2/b.lo ../src/lib2/b.cpp" "template.at:232"
21572 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=compile $CXX $CPPFLAGS $CXXFLAGS -c -o lib2/b.lo ../src/lib2/b.cpp
21573 ) >>"$at_stdout" 2>>"$at_stderr"
21574 at_status=$? at_failed=false
21576 echo stderr:; cat "$at_stderr"
21577 echo stdout:; cat "$at_stdout"
21578 at_fn_check_status 0 $at_status "$at_srcdir/template.at:232"
21579 $at_failed && at_fn_log_failure
21583 $as_echo "$at_srcdir/template.at:234: \$CXX \$CPPFLAGS \$CXXFLAGS -c ../src/sub/main.cpp"
21584 at_fn_check_prepare_dynamic "$CXX $CPPFLAGS $CXXFLAGS -c ../src/sub/main.cpp" "template.at:234"
21585 ( $at_check_trace; $CXX $CPPFLAGS $CXXFLAGS -c ../src/sub/main.cpp
21586 ) >>"$at_stdout" 2>>"$at_stderr"
21587 at_status=$? at_failed=false
21589 echo stderr:; cat "$at_stderr"
21590 echo stdout:; cat "$at_stdout"
21591 at_fn_check_status 0 $at_status "$at_srcdir/template.at:234"
21592 $at_failed && at_fn_log_failure
21597 $as_echo "$at_srcdir/template.at:237: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib/liba.la lib/a.lo"
21598 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la lib/a.lo" "template.at:237"
21599 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la lib/a.lo
21600 ) >>"$at_stdout" 2>>"$at_stderr"
21601 at_status=$? at_failed=false
21603 echo stderr:; cat "$at_stderr"
21604 echo stdout:; cat "$at_stdout"
21605 at_fn_check_status 0 $at_status "$at_srcdir/template.at:237"
21606 $at_failed && at_fn_log_failure
21610 $as_echo "$at_srcdir/template.at:239: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib2/libb.la lib2/b.lo"
21611 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo" "template.at:239"
21612 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo
21613 ) >>"$at_stdout" 2>>"$at_stderr"
21614 at_status=$? at_failed=false
21616 echo stderr:; cat "$at_stderr"
21617 echo stdout:; cat "$at_stdout"
21618 at_fn_check_status 0 $at_status "$at_srcdir/template.at:239"
21619 $at_failed && at_fn_log_failure
21623 $as_echo "$at_srcdir/template.at:241: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o sub/main\$EXEEXT \$main_o lib2/libb.la lib/liba.la"
21624 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la" "template.at:241"
21625 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la
21626 ) >>"$at_stdout" 2>>"$at_stderr"
21627 at_status=$? at_failed=false
21629 echo stderr:; cat "$at_stderr"
21630 echo stdout:; cat "$at_stdout"
21631 at_fn_check_status 0 $at_status "$at_srcdir/template.at:241"
21632 $at_failed && at_fn_log_failure
21635 lt_exe=./sub/main; if test -f "./sub/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
21637 $as_echo "$at_srcdir/template.at:243: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != ignore && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
21638 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != ignore && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "template.at:243"
21639 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != ignore && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
21640 ) >>"$at_stdout" 2>>"$at_stderr"
21641 at_status=$? at_failed=false
21643 at_fn_diff_devnull "$at_stderr" || at_failed=:
21644 at_fn_diff_devnull "$at_stdout" || at_failed=:
21645 at_fn_check_skip $at_status "$at_srcdir/template.at:243"
21646 $at_failed && at_fn_log_failure
21653 $as_echo "$at_srcdir/template.at:246: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /foo"
21654 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /foo" "template.at:246"
21655 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /foo
21656 ) >>"$at_stdout" 2>>"$at_stderr"
21657 at_status=$? at_failed=false
21659 echo stderr:; cat "$at_stderr"
21660 echo stdout:; cat "$at_stdout"
21661 at_fn_check_status 0 $at_status "$at_srcdir/template.at:246"
21662 $at_failed && at_fn_log_failure
21666 $as_echo "$at_srcdir/template.at:248: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o sub/main\$EXEEXT \$main_o lib2/libb.la lib/liba.la"
21667 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la" "template.at:248"
21668 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la
21669 ) >>"$at_stdout" 2>>"$at_stderr"
21670 at_status=$? at_failed=false
21672 echo stderr:; cat "$at_stderr"
21673 echo stdout:; cat "$at_stdout"
21674 at_fn_check_status 0 $at_status "$at_srcdir/template.at:248"
21675 $at_failed && at_fn_log_failure
21678 lt_exe=./sub/main; if test -f "./sub/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
21680 $as_echo "$at_srcdir/template.at:250: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
21681 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "template.at:250"
21682 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
21683 ) >>"$at_stdout" 2>>"$at_stderr"
21684 at_status=$? at_failed=false
21686 at_fn_diff_devnull "$at_stderr" || at_failed=:
21687 at_fn_diff_devnull "$at_stdout" || at_failed=:
21688 at_fn_check_status 0 $at_status "$at_srcdir/template.at:250"
21689 $at_failed && at_fn_log_failure
21697 $as_echo "$at_srcdir/template.at:254: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib/liba.la lib/a.lo -rpath /foo"
21698 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la lib/a.lo -rpath /foo" "template.at:254"
21699 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la lib/a.lo -rpath /foo
21700 ) >>"$at_stdout" 2>>"$at_stderr"
21701 at_status=$? at_failed=false
21703 echo stderr:; cat "$at_stderr"
21704 echo stdout:; cat "$at_stdout"
21705 at_fn_check_status 0 $at_status "$at_srcdir/template.at:254"
21706 $at_failed && at_fn_log_failure
21710 $as_echo "$at_srcdir/template.at:256: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /bar"
21711 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /bar" "template.at:256"
21712 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo -rpath /bar
21713 ) >>"$at_stdout" 2>>"$at_stderr"
21714 at_status=$? at_failed=false
21716 echo stderr:; cat "$at_stderr"
21717 echo stdout:; cat "$at_stdout"
21718 at_fn_check_status 0 $at_status "$at_srcdir/template.at:256"
21719 $at_failed && at_fn_log_failure
21723 $as_echo "$at_srcdir/template.at:258: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o sub/main\$EXEEXT \$main_o lib2/libb.la lib/liba.la"
21724 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la" "template.at:258"
21725 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la
21726 ) >>"$at_stdout" 2>>"$at_stderr"
21727 at_status=$? at_failed=false
21729 echo stderr:; cat "$at_stderr"
21730 echo stdout:; cat "$at_stdout"
21731 at_fn_check_status 0 $at_status "$at_srcdir/template.at:258"
21732 $at_failed && at_fn_log_failure
21735 lt_exe=./sub/main; if test -f "./sub/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
21737 $as_echo "$at_srcdir/template.at:260: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
21738 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "template.at:260"
21739 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
21740 ) >>"$at_stdout" 2>>"$at_stderr"
21741 at_status=$? at_failed=false
21743 at_fn_diff_devnull "$at_stderr" || at_failed=:
21744 at_fn_diff_devnull "$at_stdout" || at_failed=:
21745 at_fn_check_status 0 $at_status "$at_srcdir/template.at:260"
21746 $at_failed && at_fn_log_failure
21750 # both convenience, libb depending on liba
21752 $as_echo "$at_srcdir/template.at:262: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib/liba.la lib/a.lo"
21753 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la lib/a.lo" "template.at:262"
21754 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib/liba.la lib/a.lo
21755 ) >>"$at_stdout" 2>>"$at_stderr"
21756 at_status=$? at_failed=false
21758 echo stderr:; cat "$at_stderr"
21759 echo stdout:; cat "$at_stdout"
21760 at_fn_check_status 0 $at_status "$at_srcdir/template.at:262"
21761 $at_failed && at_fn_log_failure
21765 $as_echo "$at_srcdir/template.at:264: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la"
21766 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la" "template.at:264"
21767 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la
21768 ) >>"$at_stdout" 2>>"$at_stderr"
21769 at_status=$? at_failed=false
21771 echo stderr:; cat "$at_stderr"
21772 echo stdout:; cat "$at_stdout"
21773 at_fn_check_status 0 $at_status "$at_srcdir/template.at:264"
21774 $at_failed && at_fn_log_failure
21778 $as_echo "$at_srcdir/template.at:266: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o sub/main\$EXEEXT \$main_o lib2/libb.la"
21779 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la" "template.at:266"
21780 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la
21781 ) >>"$at_stdout" 2>>"$at_stderr"
21782 at_status=$? at_failed=false
21784 echo stderr:; cat "$at_stderr"
21785 echo stdout:; cat "$at_stdout"
21786 at_fn_check_status 0 $at_status "$at_srcdir/template.at:266"
21787 $at_failed && at_fn_log_failure
21790 lt_exe=./sub/main; if test -f "./sub/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
21792 $as_echo "$at_srcdir/template.at:268: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
21793 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "template.at:268"
21794 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
21795 ) >>"$at_stdout" 2>>"$at_stderr"
21796 at_status=$? at_failed=false
21798 at_fn_diff_devnull "$at_stderr" || at_failed=:
21799 at_fn_diff_devnull "$at_stdout" || at_failed=:
21800 at_fn_check_status 0 $at_status "$at_srcdir/template.at:268"
21801 $at_failed && at_fn_log_failure
21809 $as_echo "$at_srcdir/template.at:272: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /foo"
21810 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /foo" "template.at:272"
21811 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /foo
21812 ) >>"$at_stdout" 2>>"$at_stderr"
21813 at_status=$? at_failed=false
21815 echo stderr:; cat "$at_stderr"
21816 echo stdout:; cat "$at_stdout"
21817 at_fn_check_status 0 $at_status "$at_srcdir/template.at:272"
21818 $at_failed && at_fn_log_failure
21822 $as_echo "$at_srcdir/template.at:274: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o sub/main\$EXEEXT \$main_o lib2/libb.la"
21823 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la" "template.at:274"
21824 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la
21825 ) >>"$at_stdout" 2>>"$at_stderr"
21826 at_status=$? at_failed=false
21828 echo stderr:; cat "$at_stderr"
21829 echo stdout:; cat "$at_stdout"
21830 at_fn_check_status 0 $at_status "$at_srcdir/template.at:274"
21831 $at_failed && at_fn_log_failure
21834 lt_exe=./sub/main; if test -f "./sub/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
21836 $as_echo "$at_srcdir/template.at:276: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
21837 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "template.at:276"
21838 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
21839 ) >>"$at_stdout" 2>>"$at_stderr"
21840 at_status=$? at_failed=false
21842 at_fn_diff_devnull "$at_stderr" || at_failed=:
21843 at_fn_diff_devnull "$at_stdout" || at_failed=:
21844 at_fn_check_status 0 $at_status "$at_srcdir/template.at:276"
21845 $at_failed && at_fn_log_failure
21853 $as_echo "$at_srcdir/template.at:280: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /bar"
21854 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /bar" "template.at:280"
21855 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o lib2/libb.la lib2/b.lo lib/liba.la -rpath /bar
21856 ) >>"$at_stdout" 2>>"$at_stderr"
21857 at_status=$? at_failed=false
21859 echo stderr:; cat "$at_stderr"
21860 echo stdout:; cat "$at_stdout"
21861 at_fn_check_status 0 $at_status "$at_srcdir/template.at:280"
21862 $at_failed && at_fn_log_failure
21866 $as_echo "$at_srcdir/template.at:282: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS -o sub/main\$EXEEXT \$main_o lib2/libb.la"
21867 at_fn_check_prepare_dynamic "$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la" "template.at:282"
21868 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o sub/main$EXEEXT $main_o lib2/libb.la
21869 ) >>"$at_stdout" 2>>"$at_stderr"
21870 at_status=$? at_failed=false
21872 echo stderr:; cat "$at_stderr"
21873 echo stdout:; cat "$at_stdout"
21874 at_fn_check_status 0 $at_status "$at_srcdir/template.at:282"
21875 $at_failed && at_fn_log_failure
21878 lt_exe=./sub/main; if test -f "./sub/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
21880 $as_echo "$at_srcdir/template.at:284: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
21881 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "template.at:284"
21882 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
21883 ) >>"$at_stdout" 2>>"$at_stderr"
21884 at_status=$? at_failed=false
21886 at_fn_diff_devnull "$at_stderr" || at_failed=:
21887 at_fn_diff_devnull "$at_stdout" || at_failed=:
21888 at_fn_check_status 0 $at_status "$at_srcdir/template.at:284"
21889 $at_failed && at_fn_log_failure
21898 $as_echo "$at_srcdir/template.at:289: \$noskip || (exit 77)"
21899 at_fn_check_prepare_dynamic "$noskip || (exit 77)" "template.at:289"
21900 ( $at_check_trace; $noskip || (exit 77)
21901 ) >>"$at_stdout" 2>>"$at_stderr"
21902 at_status=$? at_failed=false
21904 at_fn_diff_devnull "$at_stderr" || at_failed=:
21905 at_fn_diff_devnull "$at_stdout" || at_failed=:
21906 at_fn_check_status 0 $at_status "$at_srcdir/template.at:289"
21907 $at_failed && at_fn_log_failure
21913 $at_times_p && times >"$at_times_file"
21914 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21915 read at_status <"$at_status_file"
21918 at_fn_group_banner 103 'ctor.at:27' \
21919 "C++ static constructors" " " 13
21922 $as_echo "103. $at_setup_line: testing $at_desc ..."
21927 $as_echo "$at_srcdir/ctor.at:28: { test -n \"\$CXX\" && test \"X\$CXX\" != Xno; } || (exit 77)"
21928 at_fn_check_prepare_dynamic "{ test -n \"$CXX\" && test \"X$CXX\" != Xno; } || (exit 77)" "ctor.at:28"
21929 ( $at_check_trace; { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
21930 ) >>"$at_stdout" 2>>"$at_stderr"
21931 at_status=$? at_failed=false
21933 at_fn_diff_devnull "$at_stderr" || at_failed=:
21934 at_fn_diff_devnull "$at_stdout" || at_failed=:
21935 at_fn_check_status 0 $at_status "$at_srcdir/ctor.at:28"
21936 $at_failed && at_fn_log_failure
21940 $as_echo "$at_srcdir/ctor.at:28: test \"X\$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)"
21941 at_fn_check_prepare_dynamic "test \"X$CXX\" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)" "ctor.at:28"
21942 ( $at_check_trace; test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)
21943 ) >>"$at_stdout" 2>>"$at_stderr"
21944 at_status=$? at_failed=false
21946 at_fn_diff_devnull "$at_stderr" || at_failed=:
21947 at_fn_diff_devnull "$at_stdout" || at_failed=:
21948 at_fn_check_status 0 $at_status "$at_srcdir/ctor.at:28"
21949 $at_failed && at_fn_log_failure
21955 cat >class.h <<'_ATEOF'
21956 #define magic 0xaabbccdd
21959 Foo() { bar = magic; }
21963 extern Foo instance;
21967 cat >libctor.cpp <<'_ATEOF'
21973 cat >main.cpp <<'_ATEOF'
21978 return instance.bar != magic;
21984 $as_echo "$at_srcdir/ctor.at:56: \$LIBTOOL --tag=CXX --mode=compile \$CXX \$CPPFLAGS \$CXXFLAGS \\
21985 -c libctor.cpp -o libctor.lo"
21986 at_fn_check_prepare_notrace 'an embedded newline' "ctor.at:56"
21987 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=compile $CXX $CPPFLAGS $CXXFLAGS \
21988 -c libctor.cpp -o libctor.lo
21989 ) >>"$at_stdout" 2>>"$at_stderr"
21990 at_status=$? at_failed=false
21992 echo stderr:; cat "$at_stderr"
21993 echo stdout:; cat "$at_stdout"
21994 at_fn_check_status 0 $at_status "$at_srcdir/ctor.at:56"
21995 $at_failed && at_fn_log_failure
21999 $as_echo "$at_srcdir/ctor.at:58: \$LIBTOOL --tag=CXX --mode=compile \$CXX \$CPPFLAGS \$CXXFLAGS \\
22000 -c main.cpp -o main.lo"
22001 at_fn_check_prepare_notrace 'an embedded newline' "ctor.at:58"
22002 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=compile $CXX $CPPFLAGS $CXXFLAGS \
22003 -c main.cpp -o main.lo
22004 ) >>"$at_stdout" 2>>"$at_stderr"
22005 at_status=$? at_failed=false
22007 echo stderr:; cat "$at_stderr"
22008 echo stdout:; cat "$at_stdout"
22009 at_fn_check_status 0 $at_status "$at_srcdir/ctor.at:58"
22010 $at_failed && at_fn_log_failure
22014 $as_echo "$at_srcdir/ctor.at:60: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS \\
22015 libctor.lo -o libctor.la -rpath /none"
22016 at_fn_check_prepare_notrace 'an embedded newline' "ctor.at:60"
22017 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS \
22018 libctor.lo -o libctor.la -rpath /none
22019 ) >>"$at_stdout" 2>>"$at_stderr"
22020 at_status=$? at_failed=false
22022 echo stderr:; cat "$at_stderr"
22023 echo stdout:; cat "$at_stdout"
22024 at_fn_check_status 0 $at_status "$at_srcdir/ctor.at:60"
22025 $at_failed && at_fn_log_failure
22029 $as_echo "$at_srcdir/ctor.at:62: \$LIBTOOL --tag=CXX --mode=link \$CXX \$CXXFLAGS \$LDFLAGS \\
22030 main.lo libctor.la -o main\$EXEEXT"
22031 at_fn_check_prepare_notrace 'an embedded newline' "ctor.at:62"
22032 ( $at_check_trace; $LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS \
22033 main.lo libctor.la -o main$EXEEXT
22034 ) >>"$at_stdout" 2>>"$at_stderr"
22035 at_status=$? at_failed=false
22037 echo stderr:; cat "$at_stderr"
22038 echo stdout:; cat "$at_stdout"
22039 at_fn_check_status 0 $at_status "$at_srcdir/ctor.at:62"
22040 $at_failed && at_fn_log_failure
22044 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
22046 $as_echo "$at_srcdir/ctor.at:65: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
22047 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "ctor.at:65"
22048 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
22049 ) >>"$at_stdout" 2>>"$at_stderr"
22050 at_status=$? at_failed=false
22052 at_fn_diff_devnull "$at_stderr" || at_failed=:
22053 at_fn_diff_devnull "$at_stdout" || at_failed=:
22054 at_fn_check_status 0 $at_status "$at_srcdir/ctor.at:65"
22055 $at_failed && at_fn_log_failure
22061 $at_times_p && times >"$at_times_file"
22062 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22063 read at_status <"$at_status_file"
22066 at_fn_group_banner 104 'exceptions.at:24' \
22067 "C++ exception handling" " " 13
22070 $as_echo "104. $at_setup_line: testing $at_desc ..."
22076 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
22077 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
22079 # Skip this test when called from:
22080 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
22082 $as_echo "$at_srcdir/exceptions.at:33: case \$LIBLTDL in #(
22083 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
22085 at_fn_check_prepare_notrace 'an embedded newline' "exceptions.at:33"
22086 ( $at_check_trace; case $LIBLTDL in #(
22087 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
22089 ) >>"$at_stdout" 2>>"$at_stderr"
22090 at_status=$? at_failed=false
22092 at_fn_diff_devnull "$at_stderr" || at_failed=:
22093 echo stdout:; cat "$at_stdout"
22094 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:33"
22095 $at_failed && at_fn_log_failure
22099 CPPFLAGS="$LTDLINCL $CPPFLAGS"
22101 # Win32 (and cygwin) notes
22102 # ------------------------
22103 # When using C++ and Win32 DLLs, data types used in the DLL's interface
22104 # which are other-than-POD, must have vtables, typeinfo, and other
22105 # elements resolved when the client is linked. This includes exception
22106 # classes. Therefore, the exception class "modexc" thrown by the
22107 # dynamically-loaded module must be defined in a separate DLL, to which
22108 # both that module and main must be directly linked; hence, the 'common'
22109 # library. Not using a 'common' library in this manner represents an
22110 # ODR violation, unless the platform's runtime loader is capable of
22111 # rationalizing vague linkage items such as vtables, typeinfo, and
22112 # typename elements) at runtime. The Win32 loader is not capable of
22113 # this, but some ELF loaders appear to be.
22115 # Similar treatment is not necessary for liba (e.g. the libexc
22116 # exception class), because that library is not dynamically loaded. As a
22117 # consequence, vague linkage items for the class libexc are resolved at
22118 # link time using the vague linkage rules, for both Win32 and other
22119 # (e.g. ELF) platforms.
22121 # Also, when linking a C++ DLL with another C++ DLL, some versions of
22122 # the GNU toolchain on Win32 (or cygwin) mistakenly re-export symbols
22123 # that were imported from the other DLL, when the client DLL is linked
22124 # using -export-all-symbols. Similar issues MAY also arise with those
22125 # versions of the GNU toolchain if using the libtool link flags
22126 # -export-symbols LIST or -export-symbols-regex REGEX, if any symbols
22127 # from the dependency, rather than client, library are listed (or match
22128 # the regex). However, in this test, none of these situations apply,
22129 # so we don't directly address it. Otherwise, the correct mechanism
22130 # would be to avoid all of those flags, and instead explicitly decorate
22131 # all symbols with appropriate __declspec (dllexport) or
22132 # __declspec (dllimport) flags when building the DLLs and the clients.
22134 # For more information, see these two threads:
22135 # http://lists.gnu.org/archive/html/bug-libtool/2010-06/msg00069.html
22136 # http://cygwin.com/ml/cygwin/2010-06/msg00392.html
22137 # To sum up: C++ is complicated.
22138 cat >common.h <<'_ATEOF'
22139 #ifndef LIBTOOL_TEST_COMMON_HEADER
22140 #define LIBTOOL_TEST_COMMON_HEADER
22142 #include <exception>
22145 #if defined(__CYGWIN__) || defined(_WIN32)
22146 # if defined(DLL_EXPORT) || defined(USING_COMMON_DLL)
22147 # if defined(LIBTOOL_TEST_IN_COMMON)
22148 # define COMMON_IMPEXP __declspec (dllexport)
22150 # define COMMON_IMPEXP __declspec (dllimport)
22153 # define COMMON_IMPEXP
22156 # define COMMON_IMPEXP
22159 class COMMON_IMPEXP modexc : public std::exception {
22161 modexc (std::string str) : message (str) { }
22162 ~modexc () throw () { }
22163 virtual const char *what () const throw ()
22165 return message.c_str ();
22168 std::string message;
22171 extern "C" int COMMON_IMPEXP common_dummy (void);
22176 cat >common.cpp <<'_ATEOF'
22177 #define LIBTOOL_TEST_IN_COMMON
22178 #include "common.h"
22181 int common_dummy (void)
22188 cat >module.h <<'_ATEOF'
22189 #include "common.h"
22191 #if defined(__CYGWIN__) || defined(_WIN32)
22192 # if defined(DLL_EXPORT) || defined(USING_MODULE_DLL)
22193 # if defined(LIBTOOL_TEST_IN_MODULE)
22194 # define MODULE_IMPEXP __declspec (dllexport)
22196 # define MODULE_IMPEXP __declspec (dllimport)
22199 # define MODULE_IMPEXP
22202 # define MODULE_IMPEXP
22205 extern "C" int MODULE_IMPEXP modfoo () throw (modexc);
22209 cat >module.cpp <<'_ATEOF'
22210 #include <iostream>
22211 #define LIBTOOL_TEST_IN_MODULE
22212 #include "module.h"
22214 int modbar (void) throw (modexc)
22216 throw modexc ("exception in module");
22220 int modfoo (void) throw (modexc)
22226 std::cerr << "caught inside module: " << e.what () << '\n';
22227 throw modexc ("exception from module");
22234 cat >lib.h <<'_ATEOF'
22235 #include <exception>
22239 #if defined(__CYGWIN__) || defined(_WIN32)
22240 # if defined(DLL_EXPORT) || defined(USING_LIB_DLL)
22241 # if defined(LIBTOOL_TEST_IN_LIB)
22242 # define LIB_IMPEXP __declspec (dllexport)
22244 # define LIB_IMPEXP __declspec (dllimport)
22247 # define LIB_IMPEXP
22250 # define LIB_IMPEXP
22253 class LIB_IMPEXP libexc : public std::exception {
22255 libexc (std::string str) : message (str) { }
22256 ~libexc () throw () { }
22257 virtual const char *what () const throw ()
22259 return message.c_str ();
22262 std::string message;
22264 int LIB_IMPEXP libfoo () throw (libexc);
22268 cat >lib.cpp <<'_ATEOF'
22269 #include <iostream>
22270 #define LIBTOOL_TEST_IN_LIB
22273 int libbar (void) throw (libexc)
22275 throw libexc ("exception in library");
22278 int libfoo (void) throw (libexc)
22284 std::cerr << "caught inside lib: " << e.what () << '\n';
22285 throw libexc ("exception from library");
22292 cat >main.cpp <<'_ATEOF'
22295 #include <iostream>
22296 #include <exception>
22298 #include "common.h"
22300 #include "module.h"
22302 class exc : public std::exception {
22304 exc (std::string str) : message (str) { }
22305 ~exc () throw () { }
22306 virtual const char *what () const throw ()
22308 return message.c_str ();
22311 std::string message;
22314 int foo (void) throw (exc)
22316 throw exc ("exception in program");
22320 int exceptions_in_prog (void)
22322 std::cerr << "exceptions_in_prog\n";
22327 std::cerr << "caught: " << e.what () << '\n';
22333 int exceptions_in_lib (void)
22335 std::cerr << "exceptions_in_lib\n";
22340 std::cerr << "caught: " << e.what () << '\n';
22346 int exceptions_in_module (void)
22348 std::cerr << "exceptions_in_module\n";
22352 std::cerr << "init error: " << lt_dlerror () << '\n';
22356 // Some systems need RTLD_GLOBAL for exceptions to work in modules.
22357 lt_dladvise advise;
22358 if (lt_dladvise_init (&advise) || lt_dladvise_global (&advise))
22360 std::cerr << "error setting advise global\n";
22364 lt_dlhandle handle = lt_dlopenadvise ("module.la", advise);
22365 if (handle == NULL)
22367 std::cerr << "dlopen failed: " << lt_dlerror () << '\n';
22370 lt_dladvise_destroy (&advise);
22372 typedef int (*pfun) (void);
22373 pfun pf = (pfun) lt_dlsym (handle, "modfoo");
22376 std::cerr << "dlsym failed: " << lt_dlerror () << '\n';
22380 bool exception_caught = false;
22385 std::cerr << "caught: " << e.what () << '\n';
22386 exception_caught = true;
22389 /* Only close the module after all of its objects have gone out of scope. */
22390 if (exception_caught)
22392 if (lt_dlclose (handle))
22394 std::cerr << "dlclose failed: " << lt_dlerror () << '\n';
22399 std::cerr << "lt_dlexit failed: " << lt_dlerror () << '\n';
22410 LTDL_SET_PRELOADED_SYMBOLS();
22412 if (exceptions_in_prog ())
22414 if (exceptions_in_lib ())
22416 if (exceptions_in_module ())
22427 mkdir l m $inst $libdir $bindir $moddir
22429 # If the C++ compiler isn't capable, don't bother.
22431 $as_echo "$at_srcdir/exceptions.at:361: \$CXX \$CPPFLAGS \$CXXFLAGS -DUSING_COMMON_DLL -DUSING_MODULE_DLL -DUSING_LIB_DLL -c main.cpp || exit 77"
22432 at_fn_check_prepare_dynamic "$CXX $CPPFLAGS $CXXFLAGS -DUSING_COMMON_DLL -DUSING_MODULE_DLL -DUSING_LIB_DLL -c main.cpp || exit 77" "exceptions.at:361"
22433 ( $at_check_trace; $CXX $CPPFLAGS $CXXFLAGS -DUSING_COMMON_DLL -DUSING_MODULE_DLL -DUSING_LIB_DLL -c main.cpp || exit 77
22434 ) >>"$at_stdout" 2>>"$at_stderr"
22435 at_status=$? at_failed=false
22437 echo stderr:; cat "$at_stderr"
22438 echo stdout:; cat "$at_stdout"
22439 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:361"
22440 $at_failed && at_fn_log_failure
22445 $as_echo "$at_srcdir/exceptions.at:363: \$LIBTOOL --mode=compile --tag=CXX \$CXX \$CPPFLAGS \$CXXFLAGS -c common.cpp"
22446 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CXXFLAGS -c common.cpp" "exceptions.at:363"
22447 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CXXFLAGS -c common.cpp
22448 ) >>"$at_stdout" 2>>"$at_stderr"
22449 at_status=$? at_failed=false
22451 echo stderr:; cat "$at_stderr"
22452 echo stdout:; cat "$at_stdout"
22453 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:363"
22454 $at_failed && at_fn_log_failure
22458 $as_echo "$at_srcdir/exceptions.at:365: \$LIBTOOL --mode=compile --tag=CXX \$CXX \$CPPFLAGS \$CXXFLAGS -c lib.cpp"
22459 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CXXFLAGS -c lib.cpp" "exceptions.at:365"
22460 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CXXFLAGS -c lib.cpp
22461 ) >>"$at_stdout" 2>>"$at_stderr"
22462 at_status=$? at_failed=false
22464 echo stderr:; cat "$at_stderr"
22465 echo stdout:; cat "$at_stdout"
22466 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:365"
22467 $at_failed && at_fn_log_failure
22471 $as_echo "$at_srcdir/exceptions.at:367: \$LIBTOOL --mode=compile --tag=CXX \$CXX \$CPPFLAGS \$CXXFLAGS -DUSING_COMMON_DLL -c module.cpp"
22472 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CXXFLAGS -DUSING_COMMON_DLL -c module.cpp" "exceptions.at:367"
22473 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CXXFLAGS -DUSING_COMMON_DLL -c module.cpp
22474 ) >>"$at_stdout" 2>>"$at_stderr"
22475 at_status=$? at_failed=false
22477 echo stderr:; cat "$at_stderr"
22478 echo stdout:; cat "$at_stdout"
22479 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:367"
22480 $at_failed && at_fn_log_failure
22485 $as_echo "$at_srcdir/exceptions.at:370: \$LIBTOOL --mode=link --tag=CXX \$CXX \$CXXFLAGS \$LDFLAGS -o l/libcommon.la common.lo -no-undefined -version-info 1:0:0 -rpath \$libdir"
22486 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o l/libcommon.la common.lo -no-undefined -version-info 1:0:0 -rpath $libdir" "exceptions.at:370"
22487 ( $at_check_trace; $LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o l/libcommon.la common.lo -no-undefined -version-info 1:0:0 -rpath $libdir
22488 ) >>"$at_stdout" 2>>"$at_stderr"
22489 at_status=$? at_failed=false
22491 echo stderr:; cat "$at_stderr"
22492 echo stdout:; cat "$at_stdout"
22493 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:370"
22494 $at_failed && at_fn_log_failure
22498 $as_echo "$at_srcdir/exceptions.at:373: \$LIBTOOL --mode=link --tag=CXX \$CXX \$CXXFLAGS \$LDFLAGS -o l/liba.la lib.lo -no-undefined -version-info 1:0:0 -rpath \$libdir"
22499 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o l/liba.la lib.lo -no-undefined -version-info 1:0:0 -rpath $libdir" "exceptions.at:373"
22500 ( $at_check_trace; $LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o l/liba.la lib.lo -no-undefined -version-info 1:0:0 -rpath $libdir
22501 ) >>"$at_stdout" 2>>"$at_stderr"
22502 at_status=$? at_failed=false
22504 echo stderr:; cat "$at_stderr"
22505 echo stdout:; cat "$at_stdout"
22506 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:373"
22507 $at_failed && at_fn_log_failure
22511 $as_echo "$at_srcdir/exceptions.at:376: \$LIBTOOL --mode=link --tag=CXX \$CXX \$CXXFLAGS \$LDFLAGS -o m/module.la module.lo l/libcommon.la -module -avoid-version -no-undefined -rpath \$moddir"
22512 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o m/module.la module.lo l/libcommon.la -module -avoid-version -no-undefined -rpath $moddir" "exceptions.at:376"
22513 ( $at_check_trace; $LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o m/module.la module.lo l/libcommon.la -module -avoid-version -no-undefined -rpath $moddir
22514 ) >>"$at_stdout" 2>>"$at_stderr"
22515 at_status=$? at_failed=false
22517 echo stderr:; cat "$at_stderr"
22518 echo stdout:; cat "$at_stdout"
22519 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:376"
22520 $at_failed && at_fn_log_failure
22524 # We need -export-dynamic for the exception handling in modules to work.
22526 $as_echo "$at_srcdir/exceptions.at:381: \$LIBTOOL --mode=link --tag=CXX \$CXX \$CXXFLAGS \$LDFLAGS -o main\$EXEEXT main.\$OBJEXT l/liba.la l/libcommon.la -dlopen m/module.la \$LIBLTDL -export-dynamic"
22527 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT l/liba.la l/libcommon.la -dlopen m/module.la $LIBLTDL -export-dynamic" "exceptions.at:381"
22528 ( $at_check_trace; $LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT l/liba.la l/libcommon.la -dlopen m/module.la $LIBLTDL -export-dynamic
22529 ) >>"$at_stdout" 2>>"$at_stderr"
22530 at_status=$? at_failed=false
22532 echo stderr:; cat "$at_stderr"
22533 echo stdout:; cat "$at_stdout"
22534 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:381"
22535 $at_failed && at_fn_log_failure
22539 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
22541 $as_echo "$at_srcdir/exceptions.at:385: if \$LIBTOOL --mode=execute -dlopen m/module.la \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
22542 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute -dlopen m/module.la \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "exceptions.at:385"
22543 ( $at_check_trace; if $LIBTOOL --mode=execute -dlopen m/module.la "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
22544 ) >>"$at_stdout" 2>>"$at_stderr"
22545 at_status=$? at_failed=false
22547 echo stderr:; cat "$at_stderr"
22548 echo stdout:; cat "$at_stdout"
22549 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:385"
22550 $at_failed && at_fn_log_failure
22556 $as_echo "$at_srcdir/exceptions.at:387: \$LIBTOOL --mode=install cp l/libcommon.la \$libdir"
22557 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp l/libcommon.la $libdir" "exceptions.at:387"
22558 ( $at_check_trace; $LIBTOOL --mode=install cp l/libcommon.la $libdir
22559 ) >>"$at_stdout" 2>>"$at_stderr"
22560 at_status=$? at_failed=false
22562 echo stderr:; cat "$at_stderr"
22563 echo stdout:; cat "$at_stdout"
22564 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:387"
22565 $at_failed && at_fn_log_failure
22569 $as_echo "$at_srcdir/exceptions.at:389: \$LIBTOOL --mode=install cp l/liba.la \$libdir"
22570 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp l/liba.la $libdir" "exceptions.at:389"
22571 ( $at_check_trace; $LIBTOOL --mode=install cp l/liba.la $libdir
22572 ) >>"$at_stdout" 2>>"$at_stderr"
22573 at_status=$? at_failed=false
22575 echo stderr:; cat "$at_stderr"
22576 echo stdout:; cat "$at_stdout"
22577 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:389"
22578 $at_failed && at_fn_log_failure
22582 $as_echo "$at_srcdir/exceptions.at:391: \$LIBTOOL --mode=install cp m/module.la \$moddir"
22583 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp m/module.la $moddir" "exceptions.at:391"
22584 ( $at_check_trace; $LIBTOOL --mode=install cp m/module.la $moddir
22585 ) >>"$at_stdout" 2>>"$at_stderr"
22586 at_status=$? at_failed=false
22588 echo stderr:; cat "$at_stderr"
22589 echo stdout:; cat "$at_stdout"
22590 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:391"
22591 $at_failed && at_fn_log_failure
22595 $as_echo "$at_srcdir/exceptions.at:393: \$LIBTOOL --mode=install cp main\$EXEEXT \$bindir"
22596 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp main$EXEEXT $bindir" "exceptions.at:393"
22597 ( $at_check_trace; $LIBTOOL --mode=install cp main$EXEEXT $bindir
22598 ) >>"$at_stdout" 2>>"$at_stderr"
22599 at_status=$? at_failed=false
22601 echo stderr:; cat "$at_stderr"
22602 echo stdout:; cat "$at_stdout"
22603 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:393"
22604 $at_failed && at_fn_log_failure
22607 rm -rf l m main$EXEEXT
22609 LTDL_LIBRARY_PATH=$moddir
22610 export LTDL_LIBRARY_PATH
22611 lt_exe=$bindir/main; if test -f "$bindir/main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
22613 $as_echo "$at_srcdir/exceptions.at:399: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
22614 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "exceptions.at:399"
22615 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
22616 ) >>"$at_stdout" 2>>"$at_stderr"
22617 at_status=$? at_failed=false
22619 echo stderr:; cat "$at_stderr"
22620 echo stdout:; cat "$at_stdout"
22621 at_fn_check_status 0 $at_status "$at_srcdir/exceptions.at:399"
22622 $at_failed && at_fn_log_failure
22628 $at_times_p && times >"$at_times_file"
22629 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22630 read at_status <"$at_status_file"
22633 at_fn_group_banner 105 'early-libtool.at:32' \
22634 "config.status" " " 14
22636 test "$ACLOCAL" = no && at_xfail=yes
22637 test "$AUTOCONF" = no && at_xfail=yes
22639 $as_echo "105. $at_setup_line: testing $at_desc ..."
22643 cat >configure.ac <<'_ATEOF'
22644 AC_INIT([libtool-demo], 2.4.2, bug-libtool@gnu.org)
22645 AC_CONFIG_MACRO_DIR([m4])
22647 AC_CONFIG_FILES([Makefile])
22652 cat >Makefile.in <<'_ATEOF'
22657 DEFAULT_INCLUDES = -I. -I@srcdir@
22659 LIBTOOL = @LIBTOOL@
22662 CPPFLAGS = @CPPFLAGS@
22664 LDFLAGS = @LDFLAGS@
22666 COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFAULT_INCLUDES)
22667 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFAULT_INCLUDES)
22668 LINK = $(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) -o $@
22672 libhello.la: hello.lo
22673 $(LINK) -rpath $(libdir) hello.lo
22674 hell$(EXEEXT): main.$(OBJEXT) libhello.la
22675 $(LINK) main.$(OBJEXT) libhello.la
22678 .SUFFIXES: .c .$(OBJEXT) .lo
22683 $(LTCOMPILE) -c -o $@ $<
22687 cat >hello.c <<'_ATEOF'
22693 printf ("** This is not GNU Hello. There is no built-in mail reader. **\n");
22698 cat >main.c <<'_ATEOF'
22701 extern void hello (void);
22706 printf ("Welcome to GNU Hell!\n");
22715 cat > missing <<_EOF
22721 $LIBTOOLIZE --copy --verbose --install
22725 $as_echo "$at_srcdir/early-libtool.at:109: \$ACLOCAL -I m4"
22726 at_fn_check_prepare_dynamic "$ACLOCAL -I m4" "early-libtool.at:109"
22727 ( $at_check_trace; $ACLOCAL -I m4
22728 ) >>"$at_stdout" 2>>"$at_stderr"
22729 at_status=$? at_failed=false
22731 echo stderr:; cat "$at_stderr"
22732 echo stdout:; cat "$at_stdout"
22733 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:109"
22734 $at_failed && at_fn_log_failure
22741 $as_echo "$at_srcdir/early-libtool.at:110: \$AUTOCONF --force"
22742 at_fn_check_prepare_dynamic "$AUTOCONF --force" "early-libtool.at:110"
22743 ( $at_check_trace; $AUTOCONF --force
22744 ) >>"$at_stdout" 2>>"$at_stderr"
22745 at_status=$? at_failed=false
22747 echo stderr:; cat "$at_stderr"
22748 echo stdout:; cat "$at_stdout"
22749 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:110"
22750 $at_failed && at_fn_log_failure
22757 $as_echo "$at_srcdir/early-libtool.at:111: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
22758 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "early-libtool.at:111"
22759 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
22760 ) >>"$at_stdout" 2>>"$at_stderr"
22761 at_status=$? at_failed=false
22763 echo stderr:; cat "$at_stderr"
22764 echo stdout:; cat "$at_stdout"
22765 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:111"
22766 $at_failed && at_fn_log_failure
22773 $as_echo "$at_srcdir/early-libtool.at:112: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
22774 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "early-libtool.at:112"
22775 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
22776 ) >>"$at_stdout" 2>>"$at_stderr"
22777 at_status=$? at_failed=false
22779 echo stderr:; cat "$at_stderr"
22780 echo stdout:; cat "$at_stdout"
22781 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:112"
22782 $at_failed && at_fn_log_failure
22788 lt_exe=./hell; if test -f "./hell$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
22790 $as_echo "$at_srcdir/early-libtool.at:114: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
22791 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "early-libtool.at:114"
22792 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
22793 ) >>"$at_stdout" 2>>"$at_stderr"
22794 at_status=$? at_failed=false
22796 at_fn_diff_devnull "$at_stderr" || at_failed=:
22797 echo stdout:; tee stdout <"$at_stdout"
22798 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:114"
22799 $at_failed && at_fn_log_failure
22804 $as_echo "$at_srcdir/early-libtool.at:115: grep 'Welcome to GNU Hell' stdout"
22805 at_fn_check_prepare_trace "early-libtool.at:115"
22806 ( $at_check_trace; grep 'Welcome to GNU Hell' stdout
22807 ) >>"$at_stdout" 2>>"$at_stderr"
22808 at_status=$? at_failed=false
22810 at_fn_diff_devnull "$at_stderr" || at_failed=:
22811 echo stdout:; cat "$at_stdout"
22812 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:115"
22813 $at_failed && at_fn_log_failure
22817 $as_echo "$at_srcdir/early-libtool.at:116: grep 'This is not GNU Hello.' stdout"
22818 at_fn_check_prepare_trace "early-libtool.at:116"
22819 ( $at_check_trace; grep 'This is not GNU Hello.' stdout
22820 ) >>"$at_stdout" 2>>"$at_stderr"
22821 at_status=$? at_failed=false
22823 at_fn_diff_devnull "$at_stderr" || at_failed=:
22824 echo stdout:; cat "$at_stdout"
22825 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:116"
22826 $at_failed && at_fn_log_failure
22831 $at_times_p && times >"$at_times_file"
22832 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22833 read at_status <"$at_status_file"
22836 at_fn_group_banner 106 'early-libtool.at:126' \
22839 test "$ACLOCAL" = no && at_xfail=yes
22840 test "$AUTOCONF" = no && at_xfail=yes
22842 $as_echo "106. $at_setup_line: testing $at_desc ..."
22846 cat >configure.ac <<'_ATEOF'
22847 AC_INIT([libtool-demo], 2.4.2, bug-libtool@gnu.org)
22848 AC_CONFIG_MACRO_DIR([m4])
22852 cat >hello.c <<\_EOF
22858 printf ("** This is not GNU Hello. There is no built-in mail reader. **\n");
22862 # Prove that we can run libtool from inside configure:
22863 $SHELL ./libtool --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS \
22864 -I. -I$srcdir -c -o hello.lo hello.c || exit 1
22865 $SHELL ./libtool --mode=link --tag=CC $CC $CFLAGS $LDFLAGS \
22866 -o libhello.la -rpath /notexist hello.lo || exit 1
22868 AC_CONFIG_FILES([Makefile])
22873 cat >Makefile.in <<'_ATEOF'
22878 DEFAULT_INCLUDES = -I. -I@srcdir@
22880 LIBTOOL = @LIBTOOL@
22883 CPPFLAGS = @CPPFLAGS@
22885 LDFLAGS = @LDFLAGS@
22887 COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFAULT_INCLUDES)
22888 LINK = $(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) -o $@
22892 hell$(EXEEXT): main.$(OBJEXT) libhello.la
22893 $(LINK) main.$(OBJEXT) libhello.la
22896 .SUFFIXES: .c .$(OBJEXT)
22903 cat >hello.c <<'_ATEOF'
22909 printf ("** This is not GNU Hello. There is no built-in mail reader. **\n");
22914 cat >main.c <<'_ATEOF'
22917 extern void hello (void);
22920 main (int argc, char *argv[])
22922 printf ("Welcome to GNU Hell!\n");
22931 cat > missing <<_EOF
22937 $LIBTOOLIZE --copy --verbose --install
22941 $as_echo "$at_srcdir/early-libtool.at:216: \$ACLOCAL -I m4"
22942 at_fn_check_prepare_dynamic "$ACLOCAL -I m4" "early-libtool.at:216"
22943 ( $at_check_trace; $ACLOCAL -I m4
22944 ) >>"$at_stdout" 2>>"$at_stderr"
22945 at_status=$? at_failed=false
22947 echo stderr:; cat "$at_stderr"
22948 echo stdout:; cat "$at_stdout"
22949 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:216"
22950 $at_failed && at_fn_log_failure
22957 $as_echo "$at_srcdir/early-libtool.at:217: \$AUTOCONF --force"
22958 at_fn_check_prepare_dynamic "$AUTOCONF --force" "early-libtool.at:217"
22959 ( $at_check_trace; $AUTOCONF --force
22960 ) >>"$at_stdout" 2>>"$at_stderr"
22961 at_status=$? at_failed=false
22963 echo stderr:; cat "$at_stderr"
22964 echo stdout:; cat "$at_stdout"
22965 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:217"
22966 $at_failed && at_fn_log_failure
22973 $as_echo "$at_srcdir/early-libtool.at:218: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
22974 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "early-libtool.at:218"
22975 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
22976 ) >>"$at_stdout" 2>>"$at_stderr"
22977 at_status=$? at_failed=false
22979 echo stderr:; cat "$at_stderr"
22980 echo stdout:; cat "$at_stdout"
22981 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:218"
22982 $at_failed && at_fn_log_failure
22989 $as_echo "$at_srcdir/early-libtool.at:219: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
22990 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "early-libtool.at:219"
22991 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
22992 ) >>"$at_stdout" 2>>"$at_stderr"
22993 at_status=$? at_failed=false
22995 echo stderr:; cat "$at_stderr"
22996 echo stdout:; cat "$at_stdout"
22997 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:219"
22998 $at_failed && at_fn_log_failure
23004 lt_exe=./hell; if test -f "./hell$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
23006 $as_echo "$at_srcdir/early-libtool.at:221: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
23007 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "early-libtool.at:221"
23008 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
23009 ) >>"$at_stdout" 2>>"$at_stderr"
23010 at_status=$? at_failed=false
23012 at_fn_diff_devnull "$at_stderr" || at_failed=:
23013 echo stdout:; tee stdout <"$at_stdout"
23014 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:221"
23015 $at_failed && at_fn_log_failure
23020 $as_echo "$at_srcdir/early-libtool.at:222: grep 'Welcome to GNU Hell' stdout"
23021 at_fn_check_prepare_trace "early-libtool.at:222"
23022 ( $at_check_trace; grep 'Welcome to GNU Hell' stdout
23023 ) >>"$at_stdout" 2>>"$at_stderr"
23024 at_status=$? at_failed=false
23026 at_fn_diff_devnull "$at_stderr" || at_failed=:
23027 echo stdout:; cat "$at_stdout"
23028 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:222"
23029 $at_failed && at_fn_log_failure
23033 $as_echo "$at_srcdir/early-libtool.at:223: grep 'This is not GNU Hello.' stdout"
23034 at_fn_check_prepare_trace "early-libtool.at:223"
23035 ( $at_check_trace; grep 'This is not GNU Hello.' stdout
23036 ) >>"$at_stdout" 2>>"$at_stderr"
23037 at_status=$? at_failed=false
23039 at_fn_diff_devnull "$at_stderr" || at_failed=:
23040 echo stdout:; cat "$at_stdout"
23041 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:223"
23042 $at_failed && at_fn_log_failure
23046 # Make sure config.status --recheck updates the libtool script
23049 $as_echo "$at_srcdir/early-libtool.at:227: \$SHELL ./config.status --recheck"
23050 at_fn_check_prepare_dynamic "$SHELL ./config.status --recheck" "early-libtool.at:227"
23051 ( $at_check_trace; $SHELL ./config.status --recheck
23052 ) >>"$at_stdout" 2>>"$at_stderr"
23053 at_status=$? at_failed=false
23055 echo stderr:; cat "$at_stderr"
23056 echo stdout:; cat "$at_stdout"
23057 at_fn_check_status 0 $at_status "$at_srcdir/early-libtool.at:227"
23058 $at_failed && at_fn_log_failure
23063 $at_times_p && times >"$at_times_file"
23064 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23065 read at_status <"$at_status_file"
23068 at_fn_group_banner 107 'with-pic.at:24' \
23069 "test --with-pic" " " 14
23072 $as_echo "107. $at_setup_line: testing $at_desc ..."
23075 eval `$LIBTOOL --config | $EGREP '^(pic_flag|FGREP)='`
23078 $as_echo "$at_srcdir/with-pic.at:27: test \"z\$pic_flag\" != \"z\" || exit 77"
23079 at_fn_check_prepare_dynamic "test \"z$pic_flag\" != \"z\" || exit 77" "with-pic.at:27"
23080 ( $at_check_trace; test "z$pic_flag" != "z" || exit 77
23081 ) >>"$at_stdout" 2>>"$at_stderr"
23082 at_status=$? at_failed=false
23084 at_fn_diff_devnull "$at_stderr" || at_failed=:
23085 at_fn_diff_devnull "$at_stdout" || at_failed=:
23086 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:27"
23087 $at_failed && at_fn_log_failure
23091 $as_echo "$at_srcdir/with-pic.at:28: test \"\$at_srcdir\" != . || exit 77"
23092 at_fn_check_prepare_dynamic "test \"$at_srcdir\" != . || exit 77" "with-pic.at:28"
23093 ( $at_check_trace; test "$at_srcdir" != . || exit 77
23094 ) >>"$at_stdout" 2>>"$at_stderr"
23095 at_status=$? at_failed=false
23097 at_fn_diff_devnull "$at_stderr" || at_failed=:
23098 at_fn_diff_devnull "$at_stdout" || at_failed=:
23099 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:28"
23100 $at_failed && at_fn_log_failure
23104 CONFIGURE=$abs_top_srcdir/tests/demo/configure
23108 $as_echo "$at_srcdir/with-pic.at:33: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL \$CONFIGURE \$configure_options --disable-shared --with-pic=no"
23109 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "with-pic.at:33"
23110 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL $CONFIGURE $configure_options --disable-shared --with-pic=no
23111 ) >>"$at_stdout" 2>>"$at_stderr"
23112 at_status=$? at_failed=false
23114 echo stderr:; cat "$at_stderr"
23115 echo stdout:; cat "$at_stdout"
23116 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:33"
23117 $at_failed && at_fn_log_failure
23122 $as_echo "$at_srcdir/with-pic.at:34: \$MAKE"
23123 at_fn_check_prepare_dynamic "$MAKE" "with-pic.at:34"
23124 ( $at_check_trace; $MAKE
23125 ) >>"$at_stdout" 2>>"$at_stderr"
23126 at_status=$? at_failed=false
23128 echo stderr:; cat "$at_stderr"
23129 echo stdout:; tee stdout <"$at_stdout"
23130 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:34"
23131 $at_failed && at_fn_log_failure
23135 $as_echo "$at_srcdir/with-pic.at:35: \$FGREP -v \"\$pic_flag\" stdout"
23136 at_fn_check_prepare_dynamic "$FGREP -v \"$pic_flag\" stdout" "with-pic.at:35"
23137 ( $at_check_trace; $FGREP -v "$pic_flag" stdout
23138 ) >>"$at_stdout" 2>>"$at_stderr"
23139 at_status=$? at_failed=false
23141 echo stderr:; cat "$at_stderr"
23142 echo stdout:; cat "$at_stdout"
23143 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:35"
23144 $at_failed && at_fn_log_failure
23150 $as_echo "$at_srcdir/with-pic.at:38: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL \$CONFIGURE \$configure_options --disable-shared --with-pic=yes"
23151 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "with-pic.at:38"
23152 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL $CONFIGURE $configure_options --disable-shared --with-pic=yes
23153 ) >>"$at_stdout" 2>>"$at_stderr"
23154 at_status=$? at_failed=false
23156 echo stderr:; cat "$at_stderr"
23157 echo stdout:; cat "$at_stdout"
23158 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:38"
23159 $at_failed && at_fn_log_failure
23164 $as_echo "$at_srcdir/with-pic.at:39: \$MAKE"
23165 at_fn_check_prepare_dynamic "$MAKE" "with-pic.at:39"
23166 ( $at_check_trace; $MAKE
23167 ) >>"$at_stdout" 2>>"$at_stderr"
23168 at_status=$? at_failed=false
23170 echo stderr:; cat "$at_stderr"
23171 echo stdout:; tee stdout <"$at_stdout"
23172 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:39"
23173 $at_failed && at_fn_log_failure
23177 $as_echo "$at_srcdir/with-pic.at:40: \$FGREP \"\$pic_flag\" stdout"
23178 at_fn_check_prepare_dynamic "$FGREP \"$pic_flag\" stdout" "with-pic.at:40"
23179 ( $at_check_trace; $FGREP "$pic_flag" stdout
23180 ) >>"$at_stdout" 2>>"$at_stderr"
23181 at_status=$? at_failed=false
23183 echo stderr:; cat "$at_stderr"
23184 echo stdout:; cat "$at_stdout"
23185 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:40"
23186 $at_failed && at_fn_log_failure
23192 $as_echo "$at_srcdir/with-pic.at:43: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL \$CONFIGURE \$configure_options --disable-shared --with-pic=\"demo,foo,bar\""
23193 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "with-pic.at:43"
23194 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL $CONFIGURE $configure_options --disable-shared --with-pic="demo,foo,bar"
23195 ) >>"$at_stdout" 2>>"$at_stderr"
23196 at_status=$? at_failed=false
23198 echo stderr:; cat "$at_stderr"
23199 echo stdout:; cat "$at_stdout"
23200 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:43"
23201 $at_failed && at_fn_log_failure
23206 $as_echo "$at_srcdir/with-pic.at:44: \$MAKE"
23207 at_fn_check_prepare_dynamic "$MAKE" "with-pic.at:44"
23208 ( $at_check_trace; $MAKE
23209 ) >>"$at_stdout" 2>>"$at_stderr"
23210 at_status=$? at_failed=false
23212 echo stderr:; cat "$at_stderr"
23213 echo stdout:; tee stdout <"$at_stdout"
23214 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:44"
23215 $at_failed && at_fn_log_failure
23219 $as_echo "$at_srcdir/with-pic.at:45: \$FGREP \"\$pic_flag\" stdout"
23220 at_fn_check_prepare_dynamic "$FGREP \"$pic_flag\" stdout" "with-pic.at:45"
23221 ( $at_check_trace; $FGREP "$pic_flag" stdout
23222 ) >>"$at_stdout" 2>>"$at_stderr"
23223 at_status=$? at_failed=false
23225 echo stderr:; cat "$at_stderr"
23226 echo stdout:; cat "$at_stdout"
23227 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:45"
23228 $at_failed && at_fn_log_failure
23234 $as_echo "$at_srcdir/with-pic.at:48: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL \$CONFIGURE \$configure_options --disable-shared --with-pic=\"foo,bar\""
23235 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "with-pic.at:48"
23236 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL $CONFIGURE $configure_options --disable-shared --with-pic="foo,bar"
23237 ) >>"$at_stdout" 2>>"$at_stderr"
23238 at_status=$? at_failed=false
23240 echo stderr:; cat "$at_stderr"
23241 echo stdout:; cat "$at_stdout"
23242 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:48"
23243 $at_failed && at_fn_log_failure
23248 $as_echo "$at_srcdir/with-pic.at:49: \$MAKE"
23249 at_fn_check_prepare_dynamic "$MAKE" "with-pic.at:49"
23250 ( $at_check_trace; $MAKE
23251 ) >>"$at_stdout" 2>>"$at_stderr"
23252 at_status=$? at_failed=false
23254 echo stderr:; cat "$at_stderr"
23255 echo stdout:; tee stdout <"$at_stdout"
23256 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:49"
23257 $at_failed && at_fn_log_failure
23261 $as_echo "$at_srcdir/with-pic.at:50: \$FGREP -v \"\$pic_flag\" stdout"
23262 at_fn_check_prepare_dynamic "$FGREP -v \"$pic_flag\" stdout" "with-pic.at:50"
23263 ( $at_check_trace; $FGREP -v "$pic_flag" stdout
23264 ) >>"$at_stdout" 2>>"$at_stderr"
23265 at_status=$? at_failed=false
23267 echo stderr:; cat "$at_stderr"
23268 echo stdout:; cat "$at_stdout"
23269 at_fn_check_status 0 $at_status "$at_srcdir/with-pic.at:50"
23270 $at_failed && at_fn_log_failure
23276 $at_times_p && times >"$at_times_file"
23277 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23278 read at_status <"$at_status_file"
23281 at_fn_group_banner 108 'no-executables.at:25' \
23282 "AC_NO_EXECUTABLES" " " 15
23284 test "$ACLOCAL" = no && at_xfail=yes
23285 test "$AUTOCONF" = no && at_xfail=yes
23287 $as_echo "108. $at_setup_line: testing $at_desc ..."
23293 cat >configure.ac <<'_ATEOF'
23294 AC_INIT([no-exec], [1])
23295 AC_CONFIG_MACRO_DIR([m4])
23297 # We punt a bit here, to get the results of AC_PROG_CC
23298 # (and allow it to do link tests) but still error out on
23299 # link tests within Libtool macros.
23300 LDFLAGS=-lnosuchlibrary
23308 # Consequently, we have to set cache variables for each link
23309 # test we may need. For the purposes of this test, it shouldn't
23310 # matter much whether these values are actually wrong, the point
23311 # is that the linker should never be invoked.
23313 lt_cv_shlibpath_overrides_runpath=no
23314 lt_cv_archive_cmds_need_lc=no
23315 lt_cv_cc_needs_belf=no
23316 lt_cv_ld_exported_symbols_list=no
23317 lt_cv_prog_compiler_static_works=no
23318 lt_cv_aix_libpath="/usr/lib:/lib"
23319 lt_cv_irix_exported_symbol=yes
23321 # Deal with AC_LIBTOOL_DLOPEN in one of two possible ways:
23322 # - do not execute it at all in the ac_no_link case
23323 # - preset the individual Autoconf test variables
23325 if ${test_ac_libtool_dlopen-false}; then
23326 ac_cv_func_shl_load=no
23327 ac_cv_lib_dld_shl_load=no
23328 ac_cv_func_dlopen=no
23329 ac_cv_lib_dl_dlopen=no
23330 ac_cv_lib_svld_dlopen=no
23331 ac_cv_lib_dld_dld_link=no
23340 $LIBTOOLIZE --install
23344 $as_echo "$at_srcdir/no-executables.at:75: \$ACLOCAL -I m4"
23345 at_fn_check_prepare_dynamic "$ACLOCAL -I m4" "no-executables.at:75"
23346 ( $at_check_trace; $ACLOCAL -I m4
23347 ) >>"$at_stdout" 2>>"$at_stderr"
23348 at_status=$? at_failed=false
23350 echo stderr:; cat "$at_stderr"
23351 echo stdout:; cat "$at_stdout"
23352 at_fn_check_status 0 $at_status "$at_srcdir/no-executables.at:75"
23353 $at_failed && at_fn_log_failure
23362 $as_echo "$at_srcdir/no-executables.at:75: \$AUTOCONF "
23363 at_fn_check_prepare_dynamic "$AUTOCONF " "no-executables.at:75"
23364 ( $at_check_trace; $AUTOCONF
23365 ) >>"$at_stdout" 2>>"$at_stderr"
23366 at_status=$? at_failed=false
23368 echo stderr:; cat "$at_stderr"
23369 echo stdout:; cat "$at_stdout"
23370 at_fn_check_status 0 $at_status "$at_srcdir/no-executables.at:75"
23371 $at_failed && at_fn_log_failure
23381 $as_echo "$at_srcdir/no-executables.at:76: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
23382 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "no-executables.at:76"
23383 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
23384 ) >>"$at_stdout" 2>>"$at_stderr"
23385 at_status=$? at_failed=false
23387 echo stderr:; cat "$at_stderr"
23388 echo stdout:; cat "$at_stdout"
23389 at_fn_check_status 0 $at_status "$at_srcdir/no-executables.at:76"
23390 $at_failed && at_fn_log_failure
23395 $as_echo "$at_srcdir/no-executables.at:77: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options test_ac_libtool_dlopen=:"
23396 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "no-executables.at:77"
23397 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options test_ac_libtool_dlopen=:
23398 ) >>"$at_stdout" 2>>"$at_stderr"
23399 at_status=$? at_failed=false
23401 echo stderr:; cat "$at_stderr"
23402 echo stdout:; cat "$at_stdout"
23403 at_fn_check_status 0 $at_status "$at_srcdir/no-executables.at:77"
23404 $at_failed && at_fn_log_failure
23410 $at_times_p && times >"$at_times_file"
23411 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23412 read at_status <"$at_status_file"
23415 at_fn_group_banner 109 'deplibs-ident.at:32' \
23416 "build tree relpaths" " " 16
23419 *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*) false;;
23421 esac && at_xfail=yes
23423 $as_echo "109. $at_setup_line: testing $at_desc ..."
23429 echo 'int c() { return 0; }' > c/libcee.c
23431 $as_echo "$at_srcdir/deplibs-ident.at:37: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c c/libcee.c -o c/libcee.lo"
23432 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c c/libcee.c -o c/libcee.lo" "deplibs-ident.at:37"
23433 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c c/libcee.c -o c/libcee.lo
23434 ) >>"$at_stdout" 2>>"$at_stderr"
23435 at_status=$? at_failed=false
23437 echo stderr:; cat "$at_stderr"
23438 echo stdout:; cat "$at_stdout"
23439 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-ident.at:37"
23440 $at_failed && at_fn_log_failure
23444 $as_echo "$at_srcdir/deplibs-ident.at:39: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o c/libcee.la c/libcee.lo -rpath /nowhere"
23445 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o c/libcee.la c/libcee.lo -rpath /nowhere" "deplibs-ident.at:39"
23446 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o c/libcee.la c/libcee.lo -rpath /nowhere
23447 ) >>"$at_stdout" 2>>"$at_stderr"
23448 at_status=$? at_failed=false
23450 echo stderr:; cat "$at_stderr"
23451 echo stdout:; cat "$at_stdout"
23452 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-ident.at:39"
23453 $at_failed && at_fn_log_failure
23457 depl_1=../c/libcee.la
23458 depl_2=`pwd`/c/libcee.la
23459 depl_3="-L../c -lcee"
23464 eval depend_on_c=\"\$depl_$i\"
23465 echo "extern int c(void); int a$i() { return c(); }" > liba$i.c
23467 $as_echo "$at_srcdir/deplibs-ident.at:51: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c liba\$i.c"
23468 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba$i.c" "deplibs-ident.at:51"
23469 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba$i.c
23470 ) >>"$at_stdout" 2>>"$at_stderr"
23471 at_status=$? at_failed=false
23473 echo stderr:; cat "$at_stderr"
23474 echo stdout:; cat "$at_stdout"
23475 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-ident.at:51"
23476 $at_failed && at_fn_log_failure
23480 $as_echo "$at_srcdir/deplibs-ident.at:53: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba\$i.la liba\$i.lo \$depend_on_c -rpath /nowhere"
23481 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la liba$i.lo $depend_on_c -rpath /nowhere" "deplibs-ident.at:53"
23482 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la liba$i.lo $depend_on_c -rpath /nowhere
23483 ) >>"$at_stdout" 2>>"$at_stderr"
23484 at_status=$? at_failed=false
23486 echo stderr:; cat "$at_stderr"
23487 echo stdout:; cat "$at_stdout"
23488 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-ident.at:53"
23489 $at_failed && at_fn_log_failure
23495 cat >a/b/b.c <<'_ATEOF'
23496 extern int a1(void), a2(void), a3(void), c(void);
23497 int main() { return a1() + a2() + a3() + c(); }
23504 $as_echo "$at_srcdir/deplibs-ident.at:65: \$CC \$CFLAGS -c b.c"
23505 at_fn_check_prepare_dynamic "$CC $CFLAGS -c b.c" "deplibs-ident.at:65"
23506 ( $at_check_trace; $CC $CFLAGS -c b.c
23507 ) >>"$at_stdout" 2>>"$at_stderr"
23508 at_status=$? at_failed=false
23510 echo stderr:; cat "$at_stderr"
23511 echo stdout:; cat "$at_stdout"
23512 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-ident.at:65"
23513 $at_failed && at_fn_log_failure
23517 $as_echo "$at_srcdir/deplibs-ident.at:66: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o b\$EXEEXT b.\$OBJEXT ../liba1.la ../liba2.la ../liba3.la ../../c/libcee.la -rpath /nowhere"
23518 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o b$EXEEXT b.$OBJEXT ../liba1.la ../liba2.la ../liba3.la ../../c/libcee.la -rpath /nowhere" "deplibs-ident.at:66"
23519 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o b$EXEEXT b.$OBJEXT ../liba1.la ../liba2.la ../liba3.la ../../c/libcee.la -rpath /nowhere
23520 ) >>"$at_stdout" 2>>"$at_stderr"
23521 at_status=$? at_failed=false
23523 echo stderr:; cat "$at_stderr"
23524 echo stdout:; tee stdout <"$at_stdout"
23525 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-ident.at:66"
23526 $at_failed && at_fn_log_failure
23530 $as_echo "$at_srcdir/deplibs-ident.at:68: \$EGREP 'cee.*cee' stdout"
23531 at_fn_check_prepare_dynamic "$EGREP 'cee.*cee' stdout" "deplibs-ident.at:68"
23532 ( $at_check_trace; $EGREP 'cee.*cee' stdout
23533 ) >>"$at_stdout" 2>>"$at_stderr"
23534 at_status=$? at_failed=false
23536 echo stderr:; cat "$at_stderr"
23537 echo stdout:; cat "$at_stdout"
23538 at_fn_check_status 1 $at_status "$at_srcdir/deplibs-ident.at:68"
23539 $at_failed && at_fn_log_failure
23546 $at_times_p && times >"$at_times_file"
23547 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23548 read at_status <"$at_status_file"
23551 at_fn_group_banner 110 'configure-iface.at:102' \
23552 "installable libltdl" " " 17
23554 test "$ACLOCAL" = no && at_xfail=yes
23555 test "$AUTOHEADER" = no && at_xfail=yes
23556 test "$AUTOMAKE" = no && at_xfail=yes
23557 test "$AUTOCONF" = no && at_xfail=yes
23559 $as_echo "110. $at_setup_line: testing $at_desc ..."
23564 cat >main.c <<'_ATEOF'
23568 typedef int funcp (void);
23570 static int errors = 0;
23575 lt_dlhandle handle;
23577 LTDL_SET_PRELOADED_SYMBOLS();
23579 if (lt_dlinit () != 0)
23581 fprintf (stderr, "error during initialization: %s\n", lt_dlerror ());
23585 handle = lt_dlopenext ("libmodule");
23588 fprintf (stderr, "can't open libmodule: %s\n", lt_dlerror ());
23593 funcp *f = (funcp *) lt_dlsym (handle, "f");
23597 printf ("%d\n", f ());
23601 fprintf (stderr, "function `f' not found: %s\n", lt_dlerror ());
23606 if (lt_dlexit () != 0)
23608 fprintf (stderr, "error during exit: %s\n", lt_dlerror ());
23612 return (errors != 0);
23617 cat >libmodule.c <<'_ATEOF'
23621 int f (void) { return 5150; }
23628 cat >expout <<'_ATEOF'
23632 case $host_os in mingw*)
23633 while read -r l; do printf "%s\r\n" "$l"; done < expout > expout.t
23634 mv -f expout.t expout ;;
23638 cat >configure.ac <<'_ATEOF'
23639 AC_INIT([installable-ltdl-demo], 2.4.2, bug-libtool@gnu.org)
23640 AC_CONFIG_AUX_DIR([libltdl/config])
23641 AC_CONFIG_MACRO_DIR([libltdl/m4])
23642 AC_CONFIG_HEADERS([config.h:config.hin])
23643 LT_CONFIG_LTDL_DIR([libltdl])
23644 AM_INIT_AUTOMAKE([foreign])
23648 LTDL_INIT([installable])
23649 AC_CONFIG_FILES([Makefile])
23654 cat >Makefile.am <<'_ATEOF'
23655 AUTOMAKE_OPTIONS = 1.7
23659 AM_CPPFLAGS = $(LTDLINCL)
23661 lib_LTLIBRARIES = libmodule.la
23662 # Automake < 1.8 will use libmodule.la.c as default source,
23663 # while newer will choose libmodule.c; so specify it here.
23664 libmodule_la_SOURCES = libmodule.c
23665 libmodule_la_LDFLAGS = -module
23667 bin_PROGRAMS = main
23668 main_LDFLAGS = -dlopen libmodule.la
23669 main_LDADD = $(LIBLTDL)
23670 main_DEPENDENCIES = $(LTDLDEPS) libmodule.la
23674 # Install everything!
23681 $as_echo "$at_srcdir/configure-iface.at:144: \$ACLOCAL -I libltdl/m4"
23682 at_fn_check_prepare_dynamic "$ACLOCAL -I libltdl/m4" "configure-iface.at:144"
23683 ( $at_check_trace; $ACLOCAL -I libltdl/m4
23684 ) >>"$at_stdout" 2>>"$at_stderr"
23685 at_status=$? at_failed=false
23687 echo stderr:; cat "$at_stderr"
23688 echo stdout:; cat "$at_stdout"
23689 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:144"
23690 $at_failed && at_fn_log_failure
23697 $as_echo "$at_srcdir/configure-iface.at:144: \$AUTOHEADER "
23698 at_fn_check_prepare_dynamic "$AUTOHEADER " "configure-iface.at:144"
23699 ( $at_check_trace; $AUTOHEADER
23700 ) >>"$at_stdout" 2>>"$at_stderr"
23701 at_status=$? at_failed=false
23703 echo stderr:; cat "$at_stderr"
23704 echo stdout:; cat "$at_stdout"
23705 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:144"
23706 $at_failed && at_fn_log_failure
23713 $as_echo "$at_srcdir/configure-iface.at:144: \$AUTOMAKE --add-missing"
23714 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "configure-iface.at:144"
23715 ( $at_check_trace; $AUTOMAKE --add-missing
23716 ) >>"$at_stdout" 2>>"$at_stderr"
23717 at_status=$? at_failed=false
23719 echo stderr:; tee stderr <"$at_stderr"
23720 echo stdout:; cat "$at_stdout"
23721 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:144"
23722 if $at_failed; then :
23724 $as_echo "$at_srcdir/configure-iface.at:144: grep 'require .*but have' stderr && (exit 77)"
23725 at_fn_check_prepare_trace "configure-iface.at:144"
23726 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
23727 ) >>"$at_stdout" 2>>"$at_stderr"
23728 at_status=$? at_failed=false
23730 at_fn_diff_devnull "$at_stderr" || at_failed=:
23731 at_fn_diff_devnull "$at_stdout" || at_failed=:
23732 at_fn_check_status 1 $at_status "$at_srcdir/configure-iface.at:144"
23733 $at_failed && at_fn_log_failure
23737 $at_failed && at_fn_log_failure
23744 $as_echo "$at_srcdir/configure-iface.at:144: \$AUTOCONF "
23745 at_fn_check_prepare_dynamic "$AUTOCONF " "configure-iface.at:144"
23746 ( $at_check_trace; $AUTOCONF
23747 ) >>"$at_stdout" 2>>"$at_stderr"
23748 at_status=$? at_failed=false
23750 echo stderr:; cat "$at_stderr"
23751 echo stdout:; cat "$at_stdout"
23752 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:144"
23753 $at_failed && at_fn_log_failure
23760 $as_echo "$at_srcdir/configure-iface.at:144: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --with-included-ltdl --prefix=\$prefix"
23761 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "configure-iface.at:144"
23762 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --with-included-ltdl --prefix=$prefix
23763 ) >>"$at_stdout" 2>>"$at_stderr"
23764 at_status=$? at_failed=false
23766 echo stderr:; cat "$at_stderr"
23767 echo stdout:; cat "$at_stdout"
23768 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:144"
23769 $at_failed && at_fn_log_failure
23773 for target in all install
23776 $as_echo "$at_srcdir/configure-iface.at:144: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
23777 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "configure-iface.at:144"
23778 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
23779 ) >>"$at_stdout" 2>>"$at_stderr"
23780 at_status=$? at_failed=false
23782 echo stderr:; cat "$at_stderr"
23783 echo stdout:; cat "$at_stdout"
23784 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:144"
23785 $at_failed && at_fn_log_failure
23792 # TODO: Check that the installed program `main' is linked against our libltdl
23794 $as_echo "$at_srcdir/configure-iface.at:148: test -f \$prefix/lib/libltdl.la"
23795 at_fn_check_prepare_dynamic "test -f $prefix/lib/libltdl.la" "configure-iface.at:148"
23796 ( $at_check_trace; test -f $prefix/lib/libltdl.la
23797 ) >>"$at_stdout" 2>>"$at_stderr"
23798 at_status=$? at_failed=false
23800 at_fn_diff_devnull "$at_stderr" || at_failed=:
23801 at_fn_diff_devnull "$at_stdout" || at_failed=:
23802 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:148"
23803 $at_failed && at_fn_log_failure
23807 $as_echo "$at_srcdir/configure-iface.at:149: test -f \$prefix/include/ltdl.h"
23808 at_fn_check_prepare_dynamic "test -f $prefix/include/ltdl.h" "configure-iface.at:149"
23809 ( $at_check_trace; test -f $prefix/include/ltdl.h
23810 ) >>"$at_stdout" 2>>"$at_stderr"
23811 at_status=$? at_failed=false
23813 at_fn_diff_devnull "$at_stderr" || at_failed=:
23814 at_fn_diff_devnull "$at_stdout" || at_failed=:
23815 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:149"
23816 $at_failed && at_fn_log_failure
23820 # Check that main is rebuilt if libltdl.la is newer
23821 rm -f libltdl/libltdl.la
23823 $as_echo "$at_srcdir/configure-iface.at:153: \$MAKE -q main\$EXEEXT || exit 1"
23824 at_fn_check_prepare_dynamic "$MAKE -q main$EXEEXT || exit 1" "configure-iface.at:153"
23825 ( $at_check_trace; $MAKE -q main$EXEEXT || exit 1
23826 ) >>"$at_stdout" 2>>"$at_stderr"
23827 at_status=$? at_failed=false
23829 echo stderr:; cat "$at_stderr"
23830 echo stdout:; cat "$at_stdout"
23831 at_fn_check_status 1 $at_status "$at_srcdir/configure-iface.at:153"
23832 $at_failed && at_fn_log_failure
23837 $at_times_p && times >"$at_times_file"
23838 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23839 read at_status <"$at_status_file"
23842 at_fn_group_banner 111 'configure-iface.at:162' \
23843 "--with-ltdl-include/lib" " " 17
23845 test "$ACLOCAL" = no && at_xfail=yes
23846 test "$AUTOHEADER" = no && at_xfail=yes
23847 test "$AUTOMAKE" = no && at_xfail=yes
23848 test "$AUTOCONF" = no && at_xfail=yes
23850 $as_echo "111. $at_setup_line: testing $at_desc ..."
23858 $LIBTOOLIZE --copy --ltdl=ltdl
23864 $as_echo "$at_srcdir/configure-iface.at:171: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --enable-ltdl-install --prefix=\$prefix"
23865 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "configure-iface.at:171"
23866 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --enable-ltdl-install --prefix=$prefix
23867 ) >>"$at_stdout" 2>>"$at_stderr"
23868 at_status=$? at_failed=false
23870 echo stderr:; cat "$at_stderr"
23871 echo stdout:; cat "$at_stdout"
23872 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:171"
23873 $at_failed && at_fn_log_failure
23877 for target in all install
23880 $as_echo "$at_srcdir/configure-iface.at:172: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
23881 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "configure-iface.at:172"
23882 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
23883 ) >>"$at_stdout" 2>>"$at_stderr"
23884 at_status=$? at_failed=false
23886 echo stderr:; cat "$at_stderr"
23887 echo stdout:; cat "$at_stdout"
23888 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:172"
23889 $at_failed && at_fn_log_failure
23896 # Remove build files
23900 $as_echo "$at_srcdir/configure-iface.at:178: test -f \$prefix/lib/libltdl.la"
23901 at_fn_check_prepare_dynamic "test -f $prefix/lib/libltdl.la" "configure-iface.at:178"
23902 ( $at_check_trace; test -f $prefix/lib/libltdl.la
23903 ) >>"$at_stdout" 2>>"$at_stderr"
23904 at_status=$? at_failed=false
23906 at_fn_diff_devnull "$at_stderr" || at_failed=:
23907 at_fn_diff_devnull "$at_stdout" || at_failed=:
23908 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:178"
23909 $at_failed && at_fn_log_failure
23913 $as_echo "$at_srcdir/configure-iface.at:179: test -f \$prefix/include/ltdl.h"
23914 at_fn_check_prepare_dynamic "test -f $prefix/include/ltdl.h" "configure-iface.at:179"
23915 ( $at_check_trace; test -f $prefix/include/ltdl.h
23916 ) >>"$at_stdout" 2>>"$at_stderr"
23917 at_status=$? at_failed=false
23919 at_fn_diff_devnull "$at_stderr" || at_failed=:
23920 at_fn_diff_devnull "$at_stdout" || at_failed=:
23921 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:179"
23922 $at_failed && at_fn_log_failure
23926 cat >main.c <<'_ATEOF'
23930 typedef int funcp (void);
23932 static int errors = 0;
23937 lt_dlhandle handle;
23939 LTDL_SET_PRELOADED_SYMBOLS();
23941 if (lt_dlinit () != 0)
23943 fprintf (stderr, "error during initialization: %s\n", lt_dlerror ());
23947 handle = lt_dlopenext ("libmodule");
23950 fprintf (stderr, "can't open libmodule: %s\n", lt_dlerror ());
23955 funcp *f = (funcp *) lt_dlsym (handle, "f");
23959 printf ("%d\n", f ());
23963 fprintf (stderr, "function `f' not found: %s\n", lt_dlerror ());
23968 if (lt_dlexit () != 0)
23970 fprintf (stderr, "error during exit: %s\n", lt_dlerror ());
23974 return (errors != 0);
23979 cat >libmodule.c <<'_ATEOF'
23983 int f (void) { return 5150; }
23990 cat >expout <<'_ATEOF'
23994 case $host_os in mingw*)
23995 while read -r l; do printf "%s\r\n" "$l"; done < expout > expout.t
23996 mv -f expout.t expout ;;
24000 cat >configure.ac <<'_ATEOF'
24001 AC_INIT([configure-iface-demo], 2.4.2, bug-libtool@gnu.org)
24002 AC_CONFIG_MACRO_DIR([_inst/aclocal])
24003 AC_CONFIG_HEADERS([config.h:config.hin])
24004 AM_INIT_AUTOMAKE([foreign])
24009 AC_CONFIG_FILES([Makefile])
24014 cat >Makefile.am <<'_ATEOF'
24015 AUTOMAKE_OPTIONS = 1.7
24017 AM_CPPFLAGS = $(LTDLINCL)
24019 lib_LTLIBRARIES = libmodule.la
24020 # Automake < 1.8 will use libmodule.la.c as default source,
24021 # while newer will choose libmodule.c; so specify it here.
24022 libmodule_la_SOURCES = libmodule.c
24023 libmodule_la_LDFLAGS = -module
24025 bin_PROGRAMS = main
24026 main_LDFLAGS = -dlopen libmodule.la
24027 main_LDADD = $(LIBLTDL)
24028 main_DEPENDENCIES = $(LTDLDEPS) libmodule.la
24032 ## Try to avoid linking against a previously installed libltdl found
24033 ## with an explicit -L/path.
24034 save_LDFLAGS=$LDFLAGS
24036 for l in $save_LDFLAGS
24040 *) LDFLAGS="$LDFLAGS $l" ;;
24044 # We don't use 'libtoolize --ltdl', so that we get an error if the test
24045 # tries to build and link against its own ltdl sources:
24050 $as_echo "$at_srcdir/configure-iface.at:227: \$ACLOCAL -I _inst/aclocal"
24051 at_fn_check_prepare_dynamic "$ACLOCAL -I _inst/aclocal" "configure-iface.at:227"
24052 ( $at_check_trace; $ACLOCAL -I _inst/aclocal
24053 ) >>"$at_stdout" 2>>"$at_stderr"
24054 at_status=$? at_failed=false
24056 echo stderr:; cat "$at_stderr"
24057 echo stdout:; cat "$at_stdout"
24058 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:227"
24059 $at_failed && at_fn_log_failure
24066 $as_echo "$at_srcdir/configure-iface.at:227: \$AUTOHEADER "
24067 at_fn_check_prepare_dynamic "$AUTOHEADER " "configure-iface.at:227"
24068 ( $at_check_trace; $AUTOHEADER
24069 ) >>"$at_stdout" 2>>"$at_stderr"
24070 at_status=$? at_failed=false
24072 echo stderr:; cat "$at_stderr"
24073 echo stdout:; cat "$at_stdout"
24074 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:227"
24075 $at_failed && at_fn_log_failure
24082 $as_echo "$at_srcdir/configure-iface.at:227: \$AUTOMAKE --add-missing"
24083 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "configure-iface.at:227"
24084 ( $at_check_trace; $AUTOMAKE --add-missing
24085 ) >>"$at_stdout" 2>>"$at_stderr"
24086 at_status=$? at_failed=false
24088 echo stderr:; tee stderr <"$at_stderr"
24089 echo stdout:; cat "$at_stdout"
24090 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:227"
24091 if $at_failed; then :
24093 $as_echo "$at_srcdir/configure-iface.at:227: grep 'require .*but have' stderr && (exit 77)"
24094 at_fn_check_prepare_trace "configure-iface.at:227"
24095 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
24096 ) >>"$at_stdout" 2>>"$at_stderr"
24097 at_status=$? at_failed=false
24099 at_fn_diff_devnull "$at_stderr" || at_failed=:
24100 at_fn_diff_devnull "$at_stdout" || at_failed=:
24101 at_fn_check_status 1 $at_status "$at_srcdir/configure-iface.at:227"
24102 $at_failed && at_fn_log_failure
24106 $at_failed && at_fn_log_failure
24113 $as_echo "$at_srcdir/configure-iface.at:227: \$AUTOCONF "
24114 at_fn_check_prepare_dynamic "$AUTOCONF " "configure-iface.at:227"
24115 ( $at_check_trace; $AUTOCONF
24116 ) >>"$at_stdout" 2>>"$at_stderr"
24117 at_status=$? at_failed=false
24119 echo stderr:; cat "$at_stderr"
24120 echo stdout:; cat "$at_stdout"
24121 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:227"
24122 $at_failed && at_fn_log_failure
24129 $as_echo "$at_srcdir/configure-iface.at:227: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --with-ltdl-lib=\$prefix/lib --with-ltdl-include=\$prefix/include"
24130 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "configure-iface.at:227"
24131 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --with-ltdl-lib=$prefix/lib --with-ltdl-include=$prefix/include
24132 ) >>"$at_stdout" 2>>"$at_stderr"
24133 at_status=$? at_failed=false
24135 echo stderr:; cat "$at_stderr"
24136 echo stdout:; cat "$at_stdout"
24137 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:227"
24138 $at_failed && at_fn_log_failure
24145 $as_echo "$at_srcdir/configure-iface.at:227: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
24146 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "configure-iface.at:227"
24147 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
24148 ) >>"$at_stdout" 2>>"$at_stderr"
24149 at_status=$? at_failed=false
24151 echo stderr:; cat "$at_stderr"
24152 echo stdout:; cat "$at_stdout"
24153 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:227"
24154 $at_failed && at_fn_log_failure
24161 ## TODO: portable ldd check for correct libltdl
24162 ## Currently, this test doesn't fail if `main' ends up linking against a
24163 ## previously installed system libltdl.
24164 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
24166 $as_echo "$at_srcdir/configure-iface.at:234: if \$LIBTOOL --mode=execute -dlopen libmodule.la \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
24167 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute -dlopen libmodule.la \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "configure-iface.at:234"
24168 ( $at_check_trace; if $LIBTOOL --mode=execute -dlopen libmodule.la "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
24169 ) >>"$at_stdout" 2>>"$at_stderr"
24170 at_status=$? at_failed=false
24172 at_fn_diff_devnull "$at_stderr" || at_failed=:
24173 $at_diff expout "$at_stdout" || at_failed=:
24174 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:234"
24175 $at_failed && at_fn_log_failure
24181 $at_times_p && times >"$at_times_file"
24182 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24183 read at_status <"$at_status_file"
24186 at_fn_group_banner 112 'configure-iface.at:243' \
24187 "--with-included-ltdl" " " 17
24189 test "$ACLOCAL" = no && at_xfail=yes
24190 test "$AUTOHEADER" = no && at_xfail=yes
24191 test "$AUTOMAKE" = no && at_xfail=yes
24192 test "$AUTOCONF" = no && at_xfail=yes
24194 $as_echo "112. $at_setup_line: testing $at_desc ..."
24199 cat >main.c <<'_ATEOF'
24203 typedef int funcp (void);
24205 static int errors = 0;
24210 lt_dlhandle handle;
24212 LTDL_SET_PRELOADED_SYMBOLS();
24214 if (lt_dlinit () != 0)
24216 fprintf (stderr, "error during initialization: %s\n", lt_dlerror ());
24220 handle = lt_dlopenext ("libmodule");
24223 fprintf (stderr, "can't open libmodule: %s\n", lt_dlerror ());
24228 funcp *f = (funcp *) lt_dlsym (handle, "f");
24232 printf ("%d\n", f ());
24236 fprintf (stderr, "function `f' not found: %s\n", lt_dlerror ());
24241 if (lt_dlexit () != 0)
24243 fprintf (stderr, "error during exit: %s\n", lt_dlerror ());
24247 return (errors != 0);
24252 cat >libmodule.c <<'_ATEOF'
24256 int f (void) { return 5150; }
24263 cat >expout <<'_ATEOF'
24267 case $host_os in mingw*)
24268 while read -r l; do printf "%s\r\n" "$l"; done < expout > expout.t
24269 mv -f expout.t expout ;;
24273 cat >configure.ac <<'_ATEOF'
24274 AC_INIT([configure-iface-demo], 2.4.2, bug-libtool@gnu.org)
24275 AC_CONFIG_AUX_DIR([libltdl/config])
24276 AC_CONFIG_MACRO_DIR([libltdl/m4])
24277 AC_CONFIG_HEADERS([config.h:config.hin])
24278 LT_CONFIG_LTDL_DIR([libltdl])
24279 AM_INIT_AUTOMAKE([foreign])
24284 AC_CONFIG_FILES([Makefile])
24289 cat >Makefile.am <<'_ATEOF'
24290 AUTOMAKE_OPTIONS = 1.7
24294 AM_CPPFLAGS = $(LTDLINCL)
24296 lib_LTLIBRARIES = libmodule.la
24297 # Automake < 1.8 will use libmodule.la.c as default source,
24298 # while newer will choose libmodule.c; so specify it here.
24299 libmodule_la_SOURCES = libmodule.c
24300 libmodule_la_LDFLAGS = -module
24302 bin_PROGRAMS = main
24303 main_LDFLAGS = -dlopen libmodule.la
24304 main_LDADD = $(LIBLTDL)
24305 main_DEPENDENCIES = $(LTDLDEPS) libmodule.la
24313 $as_echo "$at_srcdir/configure-iface.at:282: \$ACLOCAL -I libltdl/m4"
24314 at_fn_check_prepare_dynamic "$ACLOCAL -I libltdl/m4" "configure-iface.at:282"
24315 ( $at_check_trace; $ACLOCAL -I libltdl/m4
24316 ) >>"$at_stdout" 2>>"$at_stderr"
24317 at_status=$? at_failed=false
24319 echo stderr:; cat "$at_stderr"
24320 echo stdout:; cat "$at_stdout"
24321 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:282"
24322 $at_failed && at_fn_log_failure
24329 $as_echo "$at_srcdir/configure-iface.at:282: \$AUTOHEADER "
24330 at_fn_check_prepare_dynamic "$AUTOHEADER " "configure-iface.at:282"
24331 ( $at_check_trace; $AUTOHEADER
24332 ) >>"$at_stdout" 2>>"$at_stderr"
24333 at_status=$? at_failed=false
24335 echo stderr:; cat "$at_stderr"
24336 echo stdout:; cat "$at_stdout"
24337 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:282"
24338 $at_failed && at_fn_log_failure
24345 $as_echo "$at_srcdir/configure-iface.at:282: \$AUTOMAKE --add-missing"
24346 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "configure-iface.at:282"
24347 ( $at_check_trace; $AUTOMAKE --add-missing
24348 ) >>"$at_stdout" 2>>"$at_stderr"
24349 at_status=$? at_failed=false
24351 echo stderr:; tee stderr <"$at_stderr"
24352 echo stdout:; cat "$at_stdout"
24353 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:282"
24354 if $at_failed; then :
24356 $as_echo "$at_srcdir/configure-iface.at:282: grep 'require .*but have' stderr && (exit 77)"
24357 at_fn_check_prepare_trace "configure-iface.at:282"
24358 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
24359 ) >>"$at_stdout" 2>>"$at_stderr"
24360 at_status=$? at_failed=false
24362 at_fn_diff_devnull "$at_stderr" || at_failed=:
24363 at_fn_diff_devnull "$at_stdout" || at_failed=:
24364 at_fn_check_status 1 $at_status "$at_srcdir/configure-iface.at:282"
24365 $at_failed && at_fn_log_failure
24369 $at_failed && at_fn_log_failure
24376 $as_echo "$at_srcdir/configure-iface.at:282: \$AUTOCONF "
24377 at_fn_check_prepare_dynamic "$AUTOCONF " "configure-iface.at:282"
24378 ( $at_check_trace; $AUTOCONF
24379 ) >>"$at_stdout" 2>>"$at_stderr"
24380 at_status=$? at_failed=false
24382 echo stderr:; cat "$at_stderr"
24383 echo stdout:; cat "$at_stdout"
24384 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:282"
24385 $at_failed && at_fn_log_failure
24392 $as_echo "$at_srcdir/configure-iface.at:282: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options --with-included-ltdl"
24393 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "configure-iface.at:282"
24394 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options --with-included-ltdl
24395 ) >>"$at_stdout" 2>>"$at_stderr"
24396 at_status=$? at_failed=false
24398 echo stderr:; cat "$at_stderr"
24399 echo stdout:; cat "$at_stdout"
24400 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:282"
24401 $at_failed && at_fn_log_failure
24408 $as_echo "$at_srcdir/configure-iface.at:282: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
24409 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "configure-iface.at:282"
24410 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
24411 ) >>"$at_stdout" 2>>"$at_stderr"
24412 at_status=$? at_failed=false
24414 echo stderr:; cat "$at_stderr"
24415 echo stdout:; cat "$at_stdout"
24416 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:282"
24417 $at_failed && at_fn_log_failure
24424 # --with-included-ltdl should build a convenience lib by default
24426 $as_echo "$at_srcdir/configure-iface.at:286: test -f libltdl/libltdlc.la"
24427 at_fn_check_prepare_trace "configure-iface.at:286"
24428 ( $at_check_trace; test -f libltdl/libltdlc.la
24429 ) >>"$at_stdout" 2>>"$at_stderr"
24430 at_status=$? at_failed=false
24432 at_fn_diff_devnull "$at_stderr" || at_failed=:
24433 at_fn_diff_devnull "$at_stdout" || at_failed=:
24434 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:286"
24435 $at_failed && at_fn_log_failure
24439 ## TODO: portable ldd check for correct libltdl
24440 ## Currently, this test doesn't fail if `main' ends up linking against a
24441 ## previously installed system libltdl.
24442 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
24444 $as_echo "$at_srcdir/configure-iface.at:291: if \$LIBTOOL --mode=execute -dlopen libmodule.la \"\$lt_exe\" ; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
24445 at_fn_check_prepare_dynamic "if $LIBTOOL --mode=execute -dlopen libmodule.la \"$lt_exe\" ; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "configure-iface.at:291"
24446 ( $at_check_trace; if $LIBTOOL --mode=execute -dlopen libmodule.la "$lt_exe" ; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
24447 ) >>"$at_stdout" 2>>"$at_stderr"
24448 at_status=$? at_failed=false
24450 at_fn_diff_devnull "$at_stderr" || at_failed=:
24451 $at_diff expout "$at_stdout" || at_failed=:
24452 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:291"
24453 $at_failed && at_fn_log_failure
24458 # Check that main is rebuilt if libltdlc.la is newer
24459 rm -f libltdl/libltdlc.la
24461 $as_echo "$at_srcdir/configure-iface.at:295: \$MAKE -q main\$EXEEXT || exit 1"
24462 at_fn_check_prepare_dynamic "$MAKE -q main$EXEEXT || exit 1" "configure-iface.at:295"
24463 ( $at_check_trace; $MAKE -q main$EXEEXT || exit 1
24464 ) >>"$at_stdout" 2>>"$at_stderr"
24465 at_status=$? at_failed=false
24467 echo stderr:; cat "$at_stderr"
24468 echo stdout:; cat "$at_stdout"
24469 at_fn_check_status 1 $at_status "$at_srcdir/configure-iface.at:295"
24470 $at_failed && at_fn_log_failure
24475 $at_times_p && times >"$at_times_file"
24476 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24477 read at_status <"$at_status_file"
24480 at_fn_group_banner 113 'configure-iface.at:304' \
24481 "convenience libltdl" " " 17
24483 test "$ACLOCAL" = no && at_xfail=yes
24484 test "$AUTOCONF" = no && at_xfail=yes
24486 $as_echo "113. $at_setup_line: testing $at_desc ..."
24490 cat >configure.ac <<'_ATEOF'
24492 AC_CONFIG_AUX_DIR([libltdl/config])
24493 AC_LIBLTDL_CONVENIENCE
24496 AC_CONFIG_FILES(Makefile)
24500 cat >Makefile.in <<'_ATEOF'
24501 LIBLTDL = @LIBLTDL@
24511 $as_echo "$at_srcdir/configure-iface.at:321: \$ACLOCAL -I libltdl/m4"
24512 at_fn_check_prepare_dynamic "$ACLOCAL -I libltdl/m4" "configure-iface.at:321"
24513 ( $at_check_trace; $ACLOCAL -I libltdl/m4
24514 ) >>"$at_stdout" 2>>"$at_stderr"
24515 at_status=$? at_failed=false
24517 echo stderr:; cat "$at_stderr"
24518 echo stdout:; cat "$at_stdout"
24519 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:321"
24520 $at_failed && at_fn_log_failure
24529 $as_echo "$at_srcdir/configure-iface.at:321: \$AUTOCONF "
24530 at_fn_check_prepare_dynamic "$AUTOCONF " "configure-iface.at:321"
24531 ( $at_check_trace; $AUTOCONF
24532 ) >>"$at_stdout" 2>>"$at_stderr"
24533 at_status=$? at_failed=false
24535 echo stderr:; cat "$at_stderr"
24536 echo stdout:; cat "$at_stdout"
24537 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:321"
24538 $at_failed && at_fn_log_failure
24545 $as_echo "$at_srcdir/configure-iface.at:321: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
24546 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "configure-iface.at:321"
24547 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
24548 ) >>"$at_stdout" 2>>"$at_stderr"
24549 at_status=$? at_failed=false
24551 echo stderr:; cat "$at_stderr"
24552 echo stdout:; cat "$at_stdout"
24553 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:321"
24554 $at_failed && at_fn_log_failure
24561 $as_echo "$at_srcdir/configure-iface.at:322: \$MAKE print-ltdl"
24562 at_fn_check_prepare_dynamic "$MAKE print-ltdl" "configure-iface.at:322"
24563 ( $at_check_trace; $MAKE print-ltdl
24564 ) >>"$at_stdout" 2>>"$at_stderr"
24565 at_status=$? at_failed=false
24567 echo stderr:; cat "$at_stderr"
24568 echo stdout:; tee stdout <"$at_stdout"
24569 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:322"
24570 $at_failed && at_fn_log_failure
24574 $as_echo "$at_srcdir/configure-iface.at:323: grep libltdl/libltdlc.la stdout"
24575 at_fn_check_prepare_trace "configure-iface.at:323"
24576 ( $at_check_trace; grep libltdl/libltdlc.la stdout
24577 ) >>"$at_stdout" 2>>"$at_stderr"
24578 at_status=$? at_failed=false
24580 at_fn_diff_devnull "$at_stderr" || at_failed=:
24581 echo stdout:; cat "$at_stdout"
24582 at_fn_check_status 0 $at_status "$at_srcdir/configure-iface.at:323"
24583 $at_failed && at_fn_log_failure
24588 $at_times_p && times >"$at_times_file"
24589 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24590 read at_status <"$at_status_file"
24593 at_fn_group_banner 114 'stresstest.at:31' \
24594 "Link option thorough search test" " " 18
24597 $as_echo "114. $at_setup_line: testing $at_desc ..."
24601 eval `$LIBTOOL --config | $EGREP '^(CC|objdir|allow_undefined_flag)='`
24603 mkdir sub sub2 sub3 2>/dev/null
24605 cat >a.c <<'_ATEOF'
24606 /* all kinds of data items */
24614 extern const int v5, v6;
24615 extern const char *v7;
24616 extern const char v8[];
24617 extern int (*const v12) (void);
24620 const char* v7 = "\01foo";
24621 const char v8[] = "\01bar";
24622 int v9(void) { return v2 + 1; }
24624 int (*v11) (void) = v9;
24625 int (*const v12) (void) = v9;
24627 typedef struct { int arr[1000]; } large;
24629 large v14 = { { 0 } };
24630 large v15 = { { 1 } };
24637 cat >asyms <<'_ATEOF'
24655 cat >b.c <<'_ATEOF'
24662 cat >main.c <<'_ATEOF'
24664 #if defined(LIBA_DLL_IMPORT)
24665 # if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__)
24666 # define LIBA_SCOPE extern __declspec(dllimport)
24667 # if defined(_MSC_VER)
24668 # define LIBA_SCOPE_VAR LIBA_SCOPE
24672 #if !defined(LIBA_SCOPE)
24673 # define LIBA_SCOPE extern
24675 #if !defined(LIBA_SCOPE_VAR)
24676 # define LIBA_SCOPE_VAR extern
24681 LIBA_SCOPE_VAR int v1;
24682 LIBA_SCOPE_VAR int v3, v4;
24683 LIBA_SCOPE const int v5, v6;
24684 LIBA_SCOPE_VAR const char* v7;
24685 LIBA_SCOPE_VAR const char v8[];
24686 extern int v9(void);
24687 LIBA_SCOPE_VAR int (*v10) (void);
24688 LIBA_SCOPE_VAR int (*v11) (void);
24689 LIBA_SCOPE int (*const v12) (void);
24694 typedef struct { int arr[1000]; } large;
24695 LIBA_SCOPE_VAR large v13, v14, v15;
24699 char s = v7[0] + v8[0];
24700 return s + v1 + v3 + v4 + v5 + v6 + v9() + v11() + v12()
24701 + v13.arr[0] + v14.arr[0] + v15.arr[0]
24707 cat >dlself.c <<'_ATEOF'
24709 #if defined(LIBA_DLL_IMPORT)
24710 # if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__)
24711 # define LIBA_SCOPE extern __declspec(dllimport)
24712 # if defined(_MSC_VER)
24713 # define LIBA_SCOPE_VAR LIBA_SCOPE
24717 #if !defined(LIBA_SCOPE)
24718 # define LIBA_SCOPE extern
24720 #if !defined(LIBA_SCOPE_VAR)
24721 # define LIBA_SCOPE_VAR extern
24726 LIBA_SCOPE_VAR int v1;
24727 LIBA_SCOPE_VAR int v3, v4;
24728 LIBA_SCOPE const int v5, v6;
24729 LIBA_SCOPE_VAR const char* v7;
24730 LIBA_SCOPE_VAR const char v8[];
24731 extern int v9(void);
24732 LIBA_SCOPE_VAR int (*v10) (void);
24733 LIBA_SCOPE_VAR int (*v11) (void);
24734 LIBA_SCOPE int (*const v12) (void);
24736 typedef struct { int arr[1000]; } large;
24737 LIBA_SCOPE_VAR large v13, v14, v15;
24741 extern const int w5, w6;
24742 extern const char* w7;
24743 extern const char w8[];
24744 extern int w9(void);
24745 extern int (*w10) (void);
24746 extern int (*w11) (void);
24747 extern int (*const w12) (void);
24748 extern large w13, w14, w15;
24755 char s = v7[0] + v8[0] + w7[0] + w8[0];
24756 return s + v1 + v3 + v4 + v5 + v6 + v9() + v11() + v12()
24757 + v13.arr[0] + v14.arr[0] + v15.arr[0]
24758 + w1 + w3 + w4 + w5 + w6 + w9() + w11() + w12()
24759 + w13.arr[0] + w14.arr[0] + w15.arr[0]
24773 const char* w7 = "\01foo";
24774 const char w8[] = "\01bar";
24775 int w9(void) { return w2 + 1; }
24777 int (*w11) (void) = w9;
24778 int (*const w12) (void) = w9;
24780 large w14 = { { 0 } };
24781 large w15 = { { 1 } };
24788 cat >dlselfsyms <<'_ATEOF'
24808 $as_echo "$at_srcdir/stresstest.at:233: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c a.c -o sub/a.lo"
24809 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c -o sub/a.lo" "stresstest.at:233"
24810 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c -o sub/a.lo
24811 ) >>"$at_stdout" 2>>"$at_stderr"
24812 at_status=$? at_failed=false
24814 echo stderr:; cat "$at_stderr"
24815 echo stdout:; cat "$at_stdout"
24816 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:233"
24817 $at_failed && at_fn_log_failure
24821 $as_echo "$at_srcdir/stresstest.at:235: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c b.c -o sub/b.lo"
24822 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c b.c -o sub/b.lo" "stresstest.at:235"
24823 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c b.c -o sub/b.lo
24824 ) >>"$at_stdout" 2>>"$at_stderr"
24825 at_status=$? at_failed=false
24827 echo stderr:; cat "$at_stderr"
24828 echo stdout:; cat "$at_stdout"
24829 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:235"
24830 $at_failed && at_fn_log_failure
24834 $as_echo "$at_srcdir/stresstest.at:237: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS -DLIBA_DLL_IMPORT \$CFLAGS -c main.c"
24835 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS -DLIBA_DLL_IMPORT $CFLAGS -c main.c" "stresstest.at:237"
24836 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS -DLIBA_DLL_IMPORT $CFLAGS -c main.c
24837 ) >>"$at_stdout" 2>>"$at_stderr"
24838 at_status=$? at_failed=false
24840 echo stderr:; cat "$at_stderr"
24841 echo stdout:; cat "$at_stdout"
24842 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:237"
24843 $at_failed && at_fn_log_failure
24847 $as_echo "$at_srcdir/stresstest.at:239: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c main.c -o main-static.lo"
24848 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c main.c -o main-static.lo" "stresstest.at:239"
24849 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c main.c -o main-static.lo
24850 ) >>"$at_stdout" 2>>"$at_stderr"
24851 at_status=$? at_failed=false
24853 echo stderr:; cat "$at_stderr"
24854 echo stdout:; cat "$at_stdout"
24855 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:239"
24856 $at_failed && at_fn_log_failure
24860 $as_echo "$at_srcdir/stresstest.at:241: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS -DLIBA_DLL_IMPORT \$CFLAGS -c dlself.c -o sub3/dlself.lo"
24861 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS -DLIBA_DLL_IMPORT $CFLAGS -c dlself.c -o sub3/dlself.lo" "stresstest.at:241"
24862 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS -DLIBA_DLL_IMPORT $CFLAGS -c dlself.c -o sub3/dlself.lo
24863 ) >>"$at_stdout" 2>>"$at_stderr"
24864 at_status=$? at_failed=false
24866 echo stderr:; cat "$at_stderr"
24867 echo stdout:; cat "$at_stdout"
24868 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:241"
24869 $at_failed && at_fn_log_failure
24873 $as_echo "$at_srcdir/stresstest.at:243: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c dlself.c -o sub3/dlself-static.lo"
24874 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c dlself.c -o sub3/dlself-static.lo" "stresstest.at:243"
24875 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c dlself.c -o sub3/dlself-static.lo
24876 ) >>"$at_stdout" 2>>"$at_stderr"
24877 at_status=$? at_failed=false
24879 echo stderr:; cat "$at_stderr"
24880 echo stdout:; cat "$at_stdout"
24881 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:243"
24882 $at_failed && at_fn_log_failure
24886 case $allow_undefined_flag in
24887 unsupported) undef_opts=-no-undefined ;;
24888 *) undef_opts='"" -no-undefined' ;;
24891 # expose problems with the regex:
24894 for l1 in $undef_opts
24896 for l2 in '' '-export-symbols-regex "v.*"' '-export-symbols asyms'
24898 for l3 in '' '-rpath /nonexistent'
24900 linkargs="$l1 $l2 $l3"
24901 for rel in '' ./ `pwd`/
24903 echo "eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o \"$rel\"sub2/liba.la \"$rel\"sub/a.lo' $linkargs"; { set +x
24904 $as_echo "$at_srcdir/stresstest.at:263: eval '\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o \"\$rel\"sub2/liba.la \"\$rel\"sub/a.lo' \$linkargs"
24905 at_fn_check_prepare_dynamic "eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o \"$rel\"sub2/liba.la \"$rel\"sub/a.lo' $linkargs" "stresstest.at:263"
24906 ( $at_check_trace; eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o "$rel"sub2/liba.la "$rel"sub/a.lo' $linkargs
24907 ) >>"$at_stdout" 2>>"$at_stderr"
24908 at_status=$? at_failed=false
24910 echo stderr:; cat "$at_stderr"
24911 echo stdout:; cat "$at_stdout"
24912 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:263"
24913 $at_failed && at_fn_log_failure
24916 for st in '' '-static' '-no-install'
24918 # if -static is not passed, and the library is shared, then we have
24919 # to use -DLIBA_DLL_IMPORT, thus main.lo (and not main-static.lo).
24921 -static,*) mst=-static ;;
24926 echo "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o \"$rel\"main$EXEEXT \"$rel\"main$mst.lo \"$rel\"sub2/liba.la"; { set +x
24927 $as_echo "$at_srcdir/stresstest.at:275: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS \$st -o \"\$rel\"main\$EXEEXT \"\$rel\"main\$mst.lo \"\$rel\"sub2/liba.la"
24928 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o \"$rel\"main$EXEEXT \"$rel\"main$mst.lo \"$rel\"sub2/liba.la" "stresstest.at:275"
24929 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o "$rel"main$EXEEXT "$rel"main$mst.lo "$rel"sub2/liba.la
24930 ) >>"$at_stdout" 2>>"$at_stderr"
24931 at_status=$? at_failed=false
24933 echo stderr:; cat "$at_stderr"
24934 echo stdout:; cat "$at_stdout"
24935 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:275"
24936 $at_failed && at_fn_log_failure
24939 lt_exe=./main; if test -f "./main$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
24941 $as_echo "$at_srcdir/stresstest.at:277: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
24942 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "stresstest.at:277"
24943 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
24944 ) >>"$at_stdout" 2>>"$at_stderr"
24945 at_status=$? at_failed=false
24947 at_fn_diff_devnull "$at_stderr" || at_failed=:
24948 at_fn_diff_devnull "$at_stdout" || at_failed=:
24949 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:277"
24950 $at_failed && at_fn_log_failure
24954 for l10 in '' '-export-symbols dlselfsyms'
24956 echo "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o \"$rel\"sub3/dlself$EXEEXT \"$rel\"sub3/dlself$mst.lo \"$rel\"sub2/liba.la sub/b.lo -dlopen self $l10"; { set +x
24957 $as_echo "$at_srcdir/stresstest.at:280: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS \$st -o \"\$rel\"sub3/dlself\$EXEEXT \"\$rel\"sub3/dlself\$mst.lo \"\$rel\"sub2/liba.la sub/b.lo -dlopen self \$l10"
24958 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o \"$rel\"sub3/dlself$EXEEXT \"$rel\"sub3/dlself$mst.lo \"$rel\"sub2/liba.la sub/b.lo -dlopen self $l10" "stresstest.at:280"
24959 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o "$rel"sub3/dlself$EXEEXT "$rel"sub3/dlself$mst.lo "$rel"sub2/liba.la sub/b.lo -dlopen self $l10
24960 ) >>"$at_stdout" 2>>"$at_stderr"
24961 at_status=$? at_failed=false
24963 echo stderr:; cat "$at_stderr"
24964 echo stdout:; cat "$at_stdout"
24965 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:280"
24966 $at_failed && at_fn_log_failure
24969 lt_exe=./sub3/dlself; if test -f "./sub3/dlself$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
24971 $as_echo "$at_srcdir/stresstest.at:282: if \"\$lt_exe\" ; then :; else lt_status=\$?; test \$lt_status != 0 && test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
24972 at_fn_check_prepare_dynamic "if \"$lt_exe\" ; then :; else lt_status=$?; test $lt_status != 0 && test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "stresstest.at:282"
24973 ( $at_check_trace; if "$lt_exe" ; then :; else lt_status=$?; test $lt_status != 0 && test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
24974 ) >>"$at_stdout" 2>>"$at_stderr"
24975 at_status=$? at_failed=false
24977 at_fn_diff_devnull "$at_stderr" || at_failed=:
24978 at_fn_diff_devnull "$at_stdout" || at_failed=:
24979 at_fn_check_status 0 $at_status "$at_srcdir/stresstest.at:282"
24980 $at_failed && at_fn_log_failure
24992 $at_times_p && times >"$at_times_file"
24993 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24994 read at_status <"$at_status_file"
24997 at_fn_group_banner 115 'cmdline_wrap.at:28' \
24998 "Run tests with low max_cmd_len" " " 18
25001 $as_echo "115. $at_setup_line: testing $at_desc ..."
25007 sed 's,max_cmd_len=.*,max_cmd_len="24",' < $LIBTOOL > libtool
25009 LIBTOOL=`pwd`/libtool
25011 # run the suite in a subdirectory, otherwise the two suites will compete
25012 # for the output file `testsuite.log'.
25015 INNER_TESTSUITEFLAGS="$INNER_TESTSUITEFLAGS abs_top_srcdir=$abs_top_srcdir \
25016 abs_builddir=$abs_builddir"
25018 $as_echo "$at_srcdir/cmdline_wrap.at:43: \$CONFIG_SHELL \$abs_srcdir/testsuite -k libtool\$INNER_TESTSUITEFLAGS"
25019 at_fn_check_prepare_dynamic "$CONFIG_SHELL $abs_srcdir/testsuite -k libtool$INNER_TESTSUITEFLAGS" "cmdline_wrap.at:43"
25020 ( $at_check_trace; $CONFIG_SHELL $abs_srcdir/testsuite -k libtool$INNER_TESTSUITEFLAGS
25021 ) >>"$at_stdout" 2>>"$at_stderr"
25022 at_status=$? at_failed=false
25024 echo stderr:; cat "$at_stderr"
25025 echo stdout:; cat "$at_stdout"
25026 at_fn_check_status 0 $at_status "$at_srcdir/cmdline_wrap.at:43"
25027 $at_failed && at_fn_log_failure \
25033 $at_times_p && times >"$at_times_file"
25034 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25035 read at_status <"$at_status_file"
25038 at_fn_group_banner 116 'pic_flag.at:24' \
25039 "override pic_flag at configure time" " " 18
25042 $as_echo "116. $at_setup_line: testing $at_desc ..."
25046 # Just try to configure the Libtool package with -fpic if we can compile
25047 # with it, for C and C++.
25049 cat >foo.c <<'_ATEOF'
25051 int func(void) { return data; }
25056 C_pic_flag='-fpic -DPIC'
25058 $as_echo "$at_srcdir/pic_flag.at:36: \$CC \$CPPFLAGS \$CFLAGS \$C_pic_flag -c foo.c || exit 77"
25059 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS $C_pic_flag -c foo.c || exit 77" "pic_flag.at:36"
25060 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS $C_pic_flag -c foo.c || exit 77
25061 ) >>"$at_stdout" 2>>"$at_stderr"
25062 at_status=$? at_failed=false
25064 echo stderr:; tee stderr <"$at_stderr"
25065 echo stdout:; tee stdout <"$at_stdout"
25066 at_fn_check_status 0 $at_status "$at_srcdir/pic_flag.at:36"
25067 $at_failed && at_fn_log_failure
25070 # The configure test for the PIC flag also checks for warnings.
25072 $as_echo "$at_srcdir/pic_flag.at:39: grep fpic stdout stderr && exit 77"
25073 at_fn_check_prepare_trace "pic_flag.at:39"
25074 ( $at_check_trace; grep fpic stdout stderr && exit 77
25075 ) >>"$at_stdout" 2>>"$at_stderr"
25076 at_status=$? at_failed=false
25078 at_fn_diff_devnull "$at_stderr" || at_failed=:
25079 at_fn_diff_devnull "$at_stdout" || at_failed=:
25080 at_fn_check_status 1 $at_status "$at_srcdir/pic_flag.at:39"
25081 $at_failed && at_fn_log_failure
25085 $as_echo "$at_srcdir/pic_flag.at:40: grep '[uU]nknown.*option' stdout stderr && exit 77"
25086 at_fn_check_prepare_trace "pic_flag.at:40"
25087 ( $at_check_trace; grep '[uU]nknown.*option' stdout stderr && exit 77
25088 ) >>"$at_stdout" 2>>"$at_stderr"
25089 at_status=$? at_failed=false
25091 at_fn_diff_devnull "$at_stderr" || at_failed=:
25092 at_fn_diff_devnull "$at_stdout" || at_failed=:
25093 at_fn_check_status 1 $at_status "$at_srcdir/pic_flag.at:40"
25094 $at_failed && at_fn_log_failure
25098 CXX_pic_flag='-fpic -DPIC'
25099 if $CXX $CPPFLAGS $CXXFLAGS $CXX_pic_flag -c foo.cpp; then :; else
25104 $as_echo "$at_srcdir/pic_flag.at:47: test \"\$at_srcdir\" != . || exit 77"
25105 at_fn_check_prepare_dynamic "test \"$at_srcdir\" != . || exit 77" "pic_flag.at:47"
25106 ( $at_check_trace; test "$at_srcdir" != . || exit 77
25107 ) >>"$at_stdout" 2>>"$at_stderr"
25108 at_status=$? at_failed=false
25110 at_fn_diff_devnull "$at_stderr" || at_failed=:
25111 at_fn_diff_devnull "$at_stdout" || at_failed=:
25112 at_fn_check_status 0 $at_status "$at_srcdir/pic_flag.at:47"
25113 $at_failed && at_fn_log_failure
25117 $as_echo "$at_srcdir/pic_flag.at:48: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL \"\$abs_top_srcdir\"/configure \$configure_options lt_cv_prog_compiler_pic=\"\$C_pic_flag\" lt_cv_prog_compiler_pic_CXX=\"\$CXX_pic_flag\""
25118 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "pic_flag.at:48"
25119 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL "$abs_top_srcdir"/configure $configure_options lt_cv_prog_compiler_pic="$C_pic_flag" lt_cv_prog_compiler_pic_CXX="$CXX_pic_flag"
25120 ) >>"$at_stdout" 2>>"$at_stderr"
25121 at_status=$? at_failed=false
25123 echo stderr:; cat "$at_stderr"
25124 echo stdout:; cat "$at_stdout"
25125 at_fn_check_status 0 $at_status "$at_srcdir/pic_flag.at:48"
25126 $at_failed && at_fn_log_failure
25132 $as_echo "$at_srcdir/pic_flag.at:52: \$MAKE"
25133 at_fn_check_prepare_dynamic "$MAKE" "pic_flag.at:52"
25134 ( $at_check_trace; $MAKE
25135 ) >>"$at_stdout" 2>>"$at_stderr"
25136 at_status=$? at_failed=false
25138 echo stderr:; cat "$at_stderr"
25139 echo stdout:; tee stdout <"$at_stdout"
25140 at_fn_check_status 0 $at_status "$at_srcdir/pic_flag.at:52"
25141 $at_failed && at_fn_log_failure
25145 $as_echo "$at_srcdir/pic_flag.at:53: if ./libtool --features | grep 'enable shared libraries'; then grep ' -fpic' stdout; else exit 77; fi"
25146 at_fn_check_prepare_notrace 'a shell pipeline' "pic_flag.at:53"
25147 ( $at_check_trace; if ./libtool --features | grep 'enable shared libraries'; then grep ' -fpic' stdout; else exit 77; fi
25148 ) >>"$at_stdout" 2>>"$at_stderr"
25149 at_status=$? at_failed=false
25151 echo stderr:; cat "$at_stderr"
25152 echo stdout:; cat "$at_stdout"
25153 at_fn_check_status 0 $at_status "$at_srcdir/pic_flag.at:53"
25154 $at_failed && at_fn_log_failure
25159 $at_times_p && times >"$at_times_file"
25160 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25161 read at_status <"$at_status_file"
25164 at_fn_group_banner 117 'darwin.at:26' \
25165 "darwin fat compile" " " 19
25168 $as_echo "117. $at_setup_line: testing $at_desc ..."
25177 cat >simple.c <<'_ATEOF'
25179 int main() { return 0;}
25184 $CC $CPPFLAGS $CFLAGS -arch ppc -arch i386 -o simple simple.c 2>&1 > /dev/null || noskip=false
25189 $as_echo "$at_srcdir/darwin.at:42: \$noskip || (exit 77)"
25190 at_fn_check_prepare_dynamic "$noskip || (exit 77)" "darwin.at:42"
25191 ( $at_check_trace; $noskip || (exit 77)
25192 ) >>"$at_stdout" 2>>"$at_stderr"
25193 at_status=$? at_failed=false
25195 at_fn_diff_devnull "$at_stderr" || at_failed=:
25196 at_fn_diff_devnull "$at_stdout" || at_failed=:
25197 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:42"
25198 $at_failed && at_fn_log_failure
25202 cat >foo.c <<'_ATEOF'
25208 cat >baz.c <<'_ATEOF'
25214 cat >bar.c <<'_ATEOF'
25218 int bar() { return x;}
25222 cat >main.c <<'_ATEOF'
25234 cat >bin/basename <<'_ATEOF'
25238 usage="usage: $0 argument"
25239 if test $# != 1; then
25244 echo $1 | sed "s,^.*/,,"
25248 chmod +x bin/basename
25250 PATH=`pwd`/bin:$PATH
25254 $as_echo "$at_srcdir/darwin.at:85: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o foo.lo \$CPPFLAGS \$CFLAGS -arch ppc -arch i386 foo.c"
25255 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 foo.c" "darwin.at:85"
25256 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 foo.c
25257 ) >>"$at_stdout" 2>>"$at_stderr"
25258 at_status=$? at_failed=false
25260 echo stderr:; cat "$at_stderr"
25261 echo stdout:; cat "$at_stdout"
25262 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:85"
25263 $at_failed && at_fn_log_failure
25268 $as_echo "$at_srcdir/darwin.at:87: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o baz.lo \$CPPFLAGS \$CFLAGS -arch ppc -arch i386 baz.c"
25269 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 baz.c" "darwin.at:87"
25270 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 baz.c
25271 ) >>"$at_stdout" 2>>"$at_stderr"
25272 at_status=$? at_failed=false
25274 echo stderr:; cat "$at_stderr"
25275 echo stdout:; cat "$at_stdout"
25276 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:87"
25277 $at_failed && at_fn_log_failure
25282 $as_echo "$at_srcdir/darwin.at:89: \$LIBTOOL --mode=link --tag=CC \$CC -o libfoo.la \$CPPFLAGS \$CFLAGS \$LDFLAGS -arch ppc -arch i386 foo.lo baz.lo"
25283 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 foo.lo baz.lo" "darwin.at:89"
25284 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -o libfoo.la $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 foo.lo baz.lo
25285 ) >>"$at_stdout" 2>>"$at_stderr"
25286 at_status=$? at_failed=false
25288 echo stderr:; cat "$at_stderr"
25289 echo stdout:; cat "$at_stdout"
25290 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:89"
25291 $at_failed && at_fn_log_failure
25296 $as_echo "$at_srcdir/darwin.at:91: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o bar.lo \$CPPFLAGS \$CFLAGS -arch ppc -arch i386 bar.c"
25297 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 bar.c" "darwin.at:91"
25298 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 bar.c
25299 ) >>"$at_stdout" 2>>"$at_stderr"
25300 at_status=$? at_failed=false
25302 echo stderr:; cat "$at_stderr"
25303 echo stdout:; cat "$at_stdout"
25304 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:91"
25305 $at_failed && at_fn_log_failure
25310 $as_echo "$at_srcdir/darwin.at:93: \$LIBTOOL --mode=link --tag=CC \$CC -o libbar.la \$CPPFLAGS \$CFLAGS \$LDFLAGS -arch ppc -arch i386 bar.lo libfoo.la -rpath /nonexistent"
25311 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -o libbar.la $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 bar.lo libfoo.la -rpath /nonexistent" "darwin.at:93"
25312 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -o libbar.la $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 bar.lo libfoo.la -rpath /nonexistent
25313 ) >>"$at_stdout" 2>>"$at_stderr"
25314 at_status=$? at_failed=false
25316 echo stderr:; cat "$at_stderr"
25317 echo stdout:; cat "$at_stdout"
25318 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:93"
25319 $at_failed && at_fn_log_failure
25324 $as_echo "$at_srcdir/darwin.at:95: \$LIBTOOL --mode=compile --tag=CC \$CC -c -o main.lo \$CPPFLAGS \$CFLAGS -arch ppc -arch i386 main.c"
25325 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 main.c" "darwin.at:95"
25326 ( $at_check_trace; $LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS -arch ppc -arch i386 main.c
25327 ) >>"$at_stdout" 2>>"$at_stderr"
25328 at_status=$? at_failed=false
25330 echo stderr:; cat "$at_stderr"
25331 echo stdout:; cat "$at_stdout"
25332 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:95"
25333 $at_failed && at_fn_log_failure
25338 $as_echo "$at_srcdir/darwin.at:97: \$LIBTOOL --mode=link --tag=CC \$CC -o main\$EXEEXT \$CPPFLAGS \$CFLAGS \$LDFLAGS -arch ppc -arch i386 main.lo libbar.la"
25339 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 main.lo libbar.la" "darwin.at:97"
25340 ( $at_check_trace; $LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LDFLAGS -arch ppc -arch i386 main.lo libbar.la
25341 ) >>"$at_stdout" 2>>"$at_stderr"
25342 at_status=$? at_failed=false
25344 echo stderr:; cat "$at_stderr"
25345 echo stdout:; cat "$at_stdout"
25346 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:97"
25347 $at_failed && at_fn_log_failure
25353 $at_times_p && times >"$at_times_file"
25354 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25355 read at_status <"$at_status_file"
25358 at_fn_group_banner 118 'darwin.at:103' \
25359 "darwin concurrent library extraction" " " 19
25362 $as_echo "118. $at_setup_line: testing $at_desc ..."
25366 cat >foo.c <<'_ATEOF'
25368 int foo (void) { return 0; }
25372 cat >bar.c <<'_ATEOF'
25374 extern int foo1 (void);
25375 int bar (void) { return foo1 (); }
25381 for obj in 1 2 3 4 5 6 7 8; do
25382 sed "s/foo/foo$obj/" < foo.c > foo$obj.c
25384 $as_echo "$at_srcdir/darwin.at:118: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c foo\$obj.c"
25385 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c foo$obj.c" "darwin.at:118"
25386 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c foo$obj.c
25387 ) >>"$at_stdout" 2>>"$at_stderr"
25388 at_status=$? at_failed=false
25390 echo stderr:; cat "$at_stderr"
25391 echo stdout:; cat "$at_stdout"
25392 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:118"
25393 $at_failed && at_fn_log_failure
25396 objects="$objects foo$obj.lo"
25399 $as_echo "$at_srcdir/darwin.at:122: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c bar.c"
25400 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c bar.c" "darwin.at:122"
25401 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c bar.c
25402 ) >>"$at_stdout" 2>>"$at_stderr"
25403 at_status=$? at_failed=false
25405 echo stderr:; cat "$at_stderr"
25406 echo stdout:; cat "$at_stdout"
25407 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:122"
25408 $at_failed && at_fn_log_failure
25412 $as_echo "$at_srcdir/darwin.at:124: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c baz.c"
25413 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c baz.c" "darwin.at:124"
25414 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c baz.c
25415 ) >>"$at_stdout" 2>>"$at_stderr"
25416 at_status=$? at_failed=false
25418 echo stderr:; cat "$at_stderr"
25419 echo stdout:; cat "$at_stdout"
25420 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:124"
25421 $at_failed && at_fn_log_failure
25425 $as_echo "$at_srcdir/darwin.at:126: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libfoo.la \$objects"
25426 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libfoo.la $objects" "darwin.at:126"
25427 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libfoo.la $objects
25428 ) >>"$at_stdout" 2>>"$at_stderr"
25429 at_status=$? at_failed=false
25431 echo stderr:; cat "$at_stderr"
25432 echo stdout:; cat "$at_stdout"
25433 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:126"
25434 $at_failed && at_fn_log_failure
25438 # Hypothesis: concurrent convenience archive extraction works.
25439 for i in 1 2 3 4 5; do
25440 rm -f libbar.la libbaz.la
25442 $as_echo "$at_srcdir/darwin.at:132: (\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la) & (\$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libbaz.la baz.lo -rpath /foo libfoo.la) & wait; test -f libbar.la && test -f libbaz.la"
25443 at_fn_check_prepare_dynamic "($LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la) & ($LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -rpath /foo libfoo.la) & wait; test -f libbar.la && test -f libbaz.la" "darwin.at:132"
25444 ( $at_check_trace; ($LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la) & ($LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -rpath /foo libfoo.la) & wait; test -f libbar.la && test -f libbaz.la
25445 ) >>"$at_stdout" 2>>"$at_stderr"
25446 at_status=$? at_failed=false
25448 echo stderr:; cat "$at_stderr"
25449 echo stdout:; cat "$at_stdout"
25450 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:132"
25451 $at_failed && at_fn_log_failure
25456 # Hypothesis: the lock is not used in dry run mode.
25457 eval "`$LIBTOOL --config | $EGREP '^(objdir)='`"
25458 # Next line is internal detail.
25459 lockfile=$objdir/libfoo.a.lock
25460 echo stamp > $lockfile
25462 $as_echo "$at_srcdir/darwin.at:145: \$LIBTOOL --dry-run --mode=link \$CC \$CFLAGS \$LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la"
25463 at_fn_check_prepare_dynamic "$LIBTOOL --dry-run --mode=link $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la" "darwin.at:145"
25464 ( $at_check_trace; $LIBTOOL --dry-run --mode=link $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la
25465 ) >>"$at_stdout" 2>>"$at_stderr"
25466 at_status=$? at_failed=false
25468 echo stderr:; cat "$at_stderr"
25469 echo stdout:; cat "$at_stdout"
25470 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:145"
25471 $at_failed && at_fn_log_failure
25475 $as_echo "$at_srcdir/darwin.at:148: grep stamp \$lockfile"
25476 at_fn_check_prepare_dynamic "grep stamp $lockfile" "darwin.at:148"
25477 ( $at_check_trace; grep stamp $lockfile
25478 ) >>"$at_stdout" 2>>"$at_stderr"
25479 at_status=$? at_failed=false
25481 at_fn_diff_devnull "$at_stderr" || at_failed=:
25482 echo stdout:; cat "$at_stdout"
25483 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:148"
25484 $at_failed && at_fn_log_failure
25489 $at_times_p && times >"$at_times_file"
25490 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25491 read at_status <"$at_status_file"
25494 at_fn_group_banner 119 'darwin.at:152' \
25495 "darwin gdb debug information" " " 19
25498 eval "`$LIBTOOL --config | $EGREP '^(whole_archive_flag_spec)='`"
25499 case $whole_archive_flag_spec:$host_os in
25502 esac && at_xfail=yes
25504 $as_echo "119. $at_setup_line: testing $at_desc ..."
25509 $as_echo "$at_srcdir/darwin.at:154: gdb --version || (exit 77)"
25510 at_fn_check_prepare_trace "darwin.at:154"
25511 ( $at_check_trace; gdb --version || (exit 77)
25512 ) >>"$at_stdout" 2>>"$at_stderr"
25513 at_status=$? at_failed=false
25515 echo stderr:; cat "$at_stderr"
25516 echo stdout:; cat "$at_stdout"
25517 at_fn_check_skip $at_status "$at_srcdir/darwin.at:154"
25518 $at_failed && at_fn_log_failure
25522 cat >foo.c <<'_ATEOF'
25524 int foo (void) { return 0; }
25528 cat >bar.c <<'_ATEOF'
25530 extern int foo (void);
25531 int bar (void) { return foo (); }
25535 cat >main.c <<'_ATEOF'
25537 extern int bar(void);
25539 int main() { return bar();}
25544 $as_echo "$at_srcdir/darwin.at:171: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c bar.c"
25545 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c bar.c" "darwin.at:171"
25546 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c bar.c
25547 ) >>"$at_stdout" 2>>"$at_stderr"
25548 at_status=$? at_failed=false
25550 echo stderr:; cat "$at_stderr"
25551 echo stdout:; cat "$at_stdout"
25552 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:171"
25553 $at_failed && at_fn_log_failure
25557 $as_echo "$at_srcdir/darwin.at:173: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c foo.c"
25558 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c foo.c" "darwin.at:173"
25559 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c foo.c
25560 ) >>"$at_stdout" 2>>"$at_stderr"
25561 at_status=$? at_failed=false
25563 echo stderr:; cat "$at_stderr"
25564 echo stdout:; cat "$at_stdout"
25565 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:173"
25566 $at_failed && at_fn_log_failure
25570 $as_echo "$at_srcdir/darwin.at:175: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c main.c"
25571 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c main.c" "darwin.at:175"
25572 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c main.c
25573 ) >>"$at_stdout" 2>>"$at_stderr"
25574 at_status=$? at_failed=false
25576 echo stderr:; cat "$at_stderr"
25577 echo stdout:; cat "$at_stdout"
25578 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:175"
25579 $at_failed && at_fn_log_failure
25584 $as_echo "$at_srcdir/darwin.at:178: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libfoo.la foo.lo"
25585 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libfoo.la foo.lo" "darwin.at:178"
25586 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libfoo.la foo.lo
25587 ) >>"$at_stdout" 2>>"$at_stderr"
25588 at_status=$? at_failed=false
25590 echo stderr:; cat "$at_stderr"
25591 echo stdout:; cat "$at_stdout"
25592 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:178"
25593 $at_failed && at_fn_log_failure
25598 $as_echo "$at_srcdir/darwin.at:181: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la "
25599 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la " "darwin.at:181"
25600 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /foo libfoo.la
25601 ) >>"$at_stdout" 2>>"$at_stderr"
25602 at_status=$? at_failed=false
25604 echo stderr:; cat "$at_stderr"
25605 echo stdout:; cat "$at_stdout"
25606 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:181"
25607 $at_failed && at_fn_log_failure
25612 $as_echo "$at_srcdir/darwin.at:185: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o main main.lo libbar.la"
25613 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.lo libbar.la" "darwin.at:185"
25614 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.lo libbar.la
25615 ) >>"$at_stdout" 2>>"$at_stderr"
25616 at_status=$? at_failed=false
25618 echo stderr:; cat "$at_stderr"
25619 echo stdout:; cat "$at_stdout"
25620 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:185"
25621 $at_failed && at_fn_log_failure
25625 $as_echo "$at_srcdir/darwin.at:187: echo quit | \$LIBTOOL --mode=execute gdb main"
25626 at_fn_check_prepare_notrace 'a shell pipeline' "darwin.at:187"
25627 ( $at_check_trace; echo quit | $LIBTOOL --mode=execute gdb main
25628 ) >>"$at_stdout" 2>>"$at_stderr"
25629 at_status=$? at_failed=false
25631 echo stderr:; tee stderr <"$at_stderr"
25632 echo stdout:; cat "$at_stdout"
25633 at_fn_check_skip $at_status "$at_srcdir/darwin.at:187"
25634 $at_failed && at_fn_log_failure
25639 $as_echo "$at_srcdir/darwin.at:190: grep 'Could not find object file' stderr"
25640 at_fn_check_prepare_trace "darwin.at:190"
25641 ( $at_check_trace; grep 'Could not find object file' stderr
25642 ) >>"$at_stdout" 2>>"$at_stderr"
25643 at_status=$? at_failed=false
25645 echo stderr:; cat "$at_stderr"
25646 echo stdout:; cat "$at_stdout"
25647 at_fn_check_status 1 $at_status "$at_srcdir/darwin.at:190"
25648 $at_failed && at_fn_log_failure
25654 # Remove any dSYM bundle
25655 rm -rf .libs/*.dSYM
25658 $as_echo "$at_srcdir/darwin.at:202: echo quit | \$LIBTOOL --mode=execute gdb main"
25659 at_fn_check_prepare_notrace 'a shell pipeline' "darwin.at:202"
25660 ( $at_check_trace; echo quit | $LIBTOOL --mode=execute gdb main
25661 ) >>"$at_stdout" 2>>"$at_stderr"
25662 at_status=$? at_failed=false
25664 echo stderr:; tee stderr <"$at_stderr"
25665 echo stdout:; cat "$at_stdout"
25666 at_fn_check_skip $at_status "$at_srcdir/darwin.at:202"
25667 $at_failed && at_fn_log_failure
25671 $as_echo "$at_srcdir/darwin.at:204: grep 'Could not find object file' stderr"
25672 at_fn_check_prepare_trace "darwin.at:204"
25673 ( $at_check_trace; grep 'Could not find object file' stderr
25674 ) >>"$at_stdout" 2>>"$at_stderr"
25675 at_status=$? at_failed=false
25677 echo stderr:; cat "$at_stderr"
25678 echo stdout:; cat "$at_stdout"
25679 at_fn_check_status 1 $at_status "$at_srcdir/darwin.at:204"
25680 $at_failed && at_fn_log_failure
25685 $at_times_p && times >"$at_times_file"
25686 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25687 read at_status <"$at_status_file"
25690 at_fn_group_banner 120 'darwin.at:208' \
25691 "darwin ld warnings changing configure results" " " 19
25693 case ,$AUTORECONF,$AUTOCONF,$AUTOHEADER,$ACLOCAL,$AUTOMAKE, in *,no,*) :;; *) false;; esac && at_xfail=yes
25695 $as_echo "120. $at_setup_line: testing $at_desc ..."
25699 cat >configure.ac <<'_ATEOF'
25700 AC_INIT([ld-stderr], 2.4.2, bug-libtool@gnu.org)
25701 AC_CONFIG_MACRO_DIR([m4])
25702 AM_INIT_AUTOMAKE([foreign])
25705 AC_CONFIG_FILES([Makefile])
25710 cat >Makefile.am <<'_ATEOF'
25712 ACLOCAL_AMFLAGS = -I m4
25715 $LIBTOOLIZE --copy --force
25719 $as_echo "$at_srcdir/darwin.at:224: \$AUTORECONF --force --install"
25720 at_fn_check_prepare_dynamic "$AUTORECONF --force --install" "darwin.at:224"
25721 ( $at_check_trace; $AUTORECONF --force --install
25722 ) >>"$at_stdout" 2>>"$at_stderr"
25723 at_status=$? at_failed=false
25725 echo stderr:; tee stderr <"$at_stderr"
25726 echo stdout:; cat "$at_stdout"
25727 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:224"
25728 if $at_failed; then :
25730 $as_echo "$at_srcdir/darwin.at:224: grep 'require .*but have' stderr && (exit 77)"
25731 at_fn_check_prepare_trace "darwin.at:224"
25732 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
25733 ) >>"$at_stdout" 2>>"$at_stderr"
25734 at_status=$? at_failed=false
25736 at_fn_diff_devnull "$at_stderr" || at_failed=:
25737 at_fn_diff_devnull "$at_stdout" || at_failed=:
25738 at_fn_check_status 1 $at_status "$at_srcdir/darwin.at:224"
25739 $at_failed && at_fn_log_failure
25743 $at_failed && at_fn_log_failure
25750 $as_echo "$at_srcdir/darwin.at:225: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
25751 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "darwin.at:225"
25752 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
25753 ) >>"$at_stdout" 2>>"$at_stderr"
25754 at_status=$? at_failed=false
25756 echo stderr:; cat "$at_stderr"
25757 echo stdout:; cat "$at_stdout"
25758 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:225"
25759 $at_failed && at_fn_log_failure
25764 $as_echo "$at_srcdir/darwin.at:226: ./libtool --config"
25765 at_fn_check_prepare_trace "darwin.at:226"
25766 ( $at_check_trace; ./libtool --config
25767 ) >>"$at_stdout" 2>>"$at_stderr"
25768 at_status=$? at_failed=false
25770 echo stderr:; cat "$at_stderr"
25771 echo stdout:; tee stdout <"$at_stdout"
25772 at_fn_check_skip $at_status "$at_srcdir/darwin.at:226"
25773 $at_failed && at_fn_log_failure
25778 $as_echo "$at_srcdir/darwin.at:228: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options LDFLAGS=-L/there/is/no/dir/here"
25779 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "darwin.at:228"
25780 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options LDFLAGS=-L/there/is/no/dir/here
25781 ) >>"$at_stdout" 2>>"$at_stderr"
25782 at_status=$? at_failed=false
25784 echo stderr:; cat "$at_stderr"
25785 echo stdout:; cat "$at_stdout"
25786 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:228"
25787 $at_failed && at_fn_log_failure
25792 $as_echo "$at_srcdir/darwin.at:229: ./libtool --config"
25793 at_fn_check_prepare_trace "darwin.at:229"
25794 ( $at_check_trace; ./libtool --config
25795 ) >>"$at_stdout" 2>>"$at_stderr"
25796 at_status=$? at_failed=false
25798 echo stderr:; cat "$at_stderr"
25799 $at_diff expout "$at_stdout" || at_failed=:
25800 at_fn_check_skip $at_status "$at_srcdir/darwin.at:229"
25801 $at_failed && at_fn_log_failure
25805 $at_times_p && times >"$at_times_file"
25806 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25807 read at_status <"$at_status_file"
25810 at_fn_group_banner 121 'darwin.at:232' \
25811 "darwin can lt_dlopen .dylib and .so files" " " 19
25814 $as_echo "121. $at_setup_line: testing $at_desc ..."
25820 # This test requires shared library support.
25822 $as_echo "$at_srcdir/darwin.at:237: \$LIBTOOL --features | grep 'enable shared libraries' || exit 77"
25823 at_fn_check_prepare_notrace 'a shell pipeline' "darwin.at:237"
25824 ( $at_check_trace; $LIBTOOL --features | grep 'enable shared libraries' || exit 77
25825 ) >>"$at_stdout" 2>>"$at_stderr"
25826 at_status=$? at_failed=false
25828 at_fn_diff_devnull "$at_stderr" || at_failed=:
25829 echo stdout:; cat "$at_stdout"
25830 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:237"
25831 $at_failed && at_fn_log_failure
25835 eval `$LIBTOOL --config | $EGREP '^shrext_cmds='`
25838 eval shared_ext=\"$shrext_cmds\"
25840 eval module_ext=\"$shrext_cmds\"
25842 # Only bother with this test if module extension is different from
25845 $as_echo "$at_srcdir/darwin.at:249: test \"\$shared_ext\" != \"\$module_ext\" || exit 77"
25846 at_fn_check_prepare_dynamic "test \"$shared_ext\" != \"$module_ext\" || exit 77" "darwin.at:249"
25847 ( $at_check_trace; test "$shared_ext" != "$module_ext" || exit 77
25848 ) >>"$at_stdout" 2>>"$at_stderr"
25849 at_status=$? at_failed=false
25851 at_fn_diff_devnull "$at_stderr" || at_failed=:
25852 at_fn_diff_devnull "$at_stdout" || at_failed=:
25853 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:249"
25854 $at_failed && at_fn_log_failure
25858 # Skip this test when called from:
25859 # make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install
25861 $as_echo "$at_srcdir/darwin.at:253: case \$LIBLTDL in #(
25862 */_inst/lib/*) test -f \$LIBLTDL || (exit 77) ;;
25864 at_fn_check_prepare_notrace 'an embedded newline' "darwin.at:253"
25865 ( $at_check_trace; case $LIBLTDL in #(
25866 */_inst/lib/*) test -f $LIBLTDL || (exit 77) ;;
25868 ) >>"$at_stdout" 2>>"$at_stderr"
25869 at_status=$? at_failed=false
25871 at_fn_diff_devnull "$at_stderr" || at_failed=:
25872 echo stdout:; cat "$at_stdout"
25873 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:253"
25874 $at_failed && at_fn_log_failure
25881 mkdir $prefix $libdir $bindir
25883 # This code is copied from the Autobook:
25884 # <http://sources.redhat.com/autobook/autobook/autobook_169.html>
25885 # so if it needs changes, be sure to notify the Autobook authors
25888 cat >simple-module.c <<'_ATEOF'
25896 run (const char *argument)
25898 printf ("Hello, %s!\n", argument);
25904 cat >ltdl-loader.c <<'_ATEOF'
25907 #include <stdlib.h>
25908 #ifndef EXIT_FAILURE
25909 # define EXIT_FAILURE 1
25910 # define EXIT_SUCCESS 0
25913 #include <limits.h>
25915 # define PATH_MAX 255
25918 #include <string.h>
25921 #ifndef MODULE_PATH_ENV
25922 # define MODULE_PATH_ENV "MODULE_PATH"
25925 typedef int entrypoint (const char *argument);
25927 /* Save and return a copy of the dlerror() error message,
25928 since the next API call may overwrite the original. */
25929 static char *dlerrordup (char *errormsg);
25932 main (int argc, const char *argv[])
25934 char *errormsg = NULL;
25935 lt_dlhandle module = NULL;
25936 entrypoint *run = NULL;
25941 fprintf (stderr, "USAGE: main MODULENAME ARGUMENT\n");
25942 exit (EXIT_FAILURE);
25945 /* Initialise libltdl. */
25946 errors = lt_dlinit ();
25948 /* Set the module search path. */
25951 const char *path = getenv (MODULE_PATH_ENV);
25954 errors = lt_dlsetsearchpath (path);
25957 /* Load the module. */
25959 module = lt_dlopenext (argv[1]);
25961 /* Find the entry point. */
25964 run = (entrypoint *) lt_dlsym (module, "run");
25966 /* In principle, run might legitimately be NULL, so
25967 I don't use run == NULL as an error indicator
25969 errormsg = dlerrordup (errormsg);
25970 if (errormsg != NULL)
25972 errors = lt_dlclose (module);
25979 /* Call the entry point function. */
25982 int result = (*run) (argv[2]);
25984 errormsg = strdup ("module entry point execution failed");
25986 printf ("\t=> %d\n", result);
25989 /* Unload the module, now that we are done with it. */
25991 errors = lt_dlclose (module);
25995 /* Diagnose the encountered error. */
25996 errormsg = dlerrordup (errormsg);
26000 fprintf (stderr, "%s: dlerror() failed.\n", argv[0]);
26001 return EXIT_FAILURE;
26005 /* Finished with ltdl now. */
26007 if (lt_dlexit () != 0)
26008 errormsg = dlerrordup (errormsg);
26012 fprintf (stderr, "%s: %s.\n", argv[0], errormsg);
26014 exit (EXIT_FAILURE);
26017 return EXIT_SUCCESS;
26020 /* Be careful to save a copy of the error message,
26021 since the next API call may overwrite the original. */
26023 dlerrordup (char *errormsg)
26025 char *error = (char *) lt_dlerror ();
26026 if (error && !errormsg)
26027 errormsg = strdup (error);
26033 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
26034 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
26036 CPPFLAGS="$LTDLINCL $CPPFLAGS"
26037 LDFLAGS="$LDFLAGS -no-undefined"
26040 $as_echo "$at_srcdir/darwin.at:416: \$LIBTOOL --mode=compile \$CC \$CPPFLAGS \$CFLAGS -c simple-module.c"
26041 at_fn_check_prepare_dynamic "$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c simple-module.c" "darwin.at:416"
26042 ( $at_check_trace; $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c simple-module.c
26043 ) >>"$at_stdout" 2>>"$at_stderr"
26044 at_status=$? at_failed=false
26046 echo stderr:; cat "$at_stderr"
26047 echo stdout:; cat "$at_stdout"
26048 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:416"
26049 $at_failed && at_fn_log_failure
26053 $as_echo "$at_srcdir/darwin.at:418: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o simple-module.la simple-module.lo -rpath \$libdir -module -avoid-version"
26054 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o simple-module.la simple-module.lo -rpath $libdir -module -avoid-version" "darwin.at:418"
26055 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o simple-module.la simple-module.lo -rpath $libdir -module -avoid-version
26056 ) >>"$at_stdout" 2>>"$at_stderr"
26057 at_status=$? at_failed=false
26059 echo stderr:; cat "$at_stderr"
26060 echo stdout:; cat "$at_stdout"
26061 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:418"
26062 $at_failed && at_fn_log_failure
26066 $as_echo "$at_srcdir/darwin.at:421: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libsimple-dylib.la simple-module.lo -rpath \$libdir -avoid-version"
26067 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libsimple-dylib.la simple-module.lo -rpath $libdir -avoid-version" "darwin.at:421"
26068 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libsimple-dylib.la simple-module.lo -rpath $libdir -avoid-version
26069 ) >>"$at_stdout" 2>>"$at_stderr"
26070 at_status=$? at_failed=false
26072 echo stderr:; cat "$at_stderr"
26073 echo stdout:; cat "$at_stdout"
26074 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:421"
26075 $at_failed && at_fn_log_failure
26079 $as_echo "$at_srcdir/darwin.at:424: \$CC \$CPPFLAGS \$CFLAGS -c ltdl-loader.c"
26080 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c ltdl-loader.c" "darwin.at:424"
26081 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c ltdl-loader.c
26082 ) >>"$at_stdout" 2>>"$at_stderr"
26083 at_status=$? at_failed=false
26085 echo stderr:; cat "$at_stderr"
26086 echo stdout:; cat "$at_stdout"
26087 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:424"
26088 $at_failed && at_fn_log_failure
26092 $as_echo "$at_srcdir/darwin.at:426: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o ltdl-loader\$EXEEXT ltdl-loader.\$OBJEXT -dlopen self \$LIBLTDL"
26093 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o ltdl-loader$EXEEXT ltdl-loader.$OBJEXT -dlopen self $LIBLTDL" "darwin.at:426"
26094 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o ltdl-loader$EXEEXT ltdl-loader.$OBJEXT -dlopen self $LIBLTDL
26095 ) >>"$at_stdout" 2>>"$at_stderr"
26096 at_status=$? at_failed=false
26098 echo stderr:; cat "$at_stderr"
26099 echo stdout:; cat "$at_stdout"
26100 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:426"
26101 $at_failed && at_fn_log_failure
26105 $as_echo "$at_srcdir/darwin.at:429: \$LIBTOOL --mode=install cp simple-module.la \$libdir/simple-module.la"
26106 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp simple-module.la $libdir/simple-module.la" "darwin.at:429"
26107 ( $at_check_trace; $LIBTOOL --mode=install cp simple-module.la $libdir/simple-module.la
26108 ) >>"$at_stdout" 2>>"$at_stderr"
26109 at_status=$? at_failed=false
26111 echo stderr:; cat "$at_stderr"
26112 echo stdout:; cat "$at_stdout"
26113 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:429"
26114 $at_failed && at_fn_log_failure
26118 $as_echo "$at_srcdir/darwin.at:430: \$LIBTOOL --mode=install cp libsimple-dylib.la \$libdir/libsimple-dylib.la"
26119 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp libsimple-dylib.la $libdir/libsimple-dylib.la" "darwin.at:430"
26120 ( $at_check_trace; $LIBTOOL --mode=install cp libsimple-dylib.la $libdir/libsimple-dylib.la
26121 ) >>"$at_stdout" 2>>"$at_stderr"
26122 at_status=$? at_failed=false
26124 echo stderr:; cat "$at_stderr"
26125 echo stdout:; cat "$at_stdout"
26126 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:430"
26127 $at_failed && at_fn_log_failure
26131 $as_echo "$at_srcdir/darwin.at:431: \$LIBTOOL --mode=clean rm -f simple-module.la"
26132 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f simple-module.la" "darwin.at:431"
26133 ( $at_check_trace; $LIBTOOL --mode=clean rm -f simple-module.la
26134 ) >>"$at_stdout" 2>>"$at_stderr"
26135 at_status=$? at_failed=false
26137 echo stderr:; cat "$at_stderr"
26138 echo stdout:; cat "$at_stdout"
26139 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:431"
26140 $at_failed && at_fn_log_failure
26144 $as_echo "$at_srcdir/darwin.at:432: \$LIBTOOL --mode=clean rm -f libsimple-dylib.la"
26145 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f libsimple-dylib.la" "darwin.at:432"
26146 ( $at_check_trace; $LIBTOOL --mode=clean rm -f libsimple-dylib.la
26147 ) >>"$at_stdout" 2>>"$at_stderr"
26148 at_status=$? at_failed=false
26150 echo stderr:; cat "$at_stderr"
26151 echo stdout:; cat "$at_stdout"
26152 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:432"
26153 $at_failed && at_fn_log_failure
26157 rm $libdir/simple-module.la
26158 rm $libdir/libsimple-dylib.la
26160 for dir in inst/lib "$libdir"; do
26161 lt_exe=./ltdl-loader; if test -f "./ltdl-loader$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
26163 $as_echo "$at_srcdir/darwin.at:438: if \"\$lt_exe\" \$dir/simple-module World; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
26164 at_fn_check_prepare_dynamic "if \"$lt_exe\" $dir/simple-module World; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "darwin.at:438"
26165 ( $at_check_trace; if "$lt_exe" $dir/simple-module World; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
26166 ) >>"$at_stdout" 2>>"$at_stderr"
26167 at_status=$? at_failed=false
26169 echo stderr:; cat "$at_stderr"
26170 echo stdout:; tee stdout <"$at_stdout"
26171 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:438"
26172 $at_failed && at_fn_log_failure
26177 $as_echo "$at_srcdir/darwin.at:440: grep \"Hello, World\" stdout"
26178 at_fn_check_prepare_trace "darwin.at:440"
26179 ( $at_check_trace; grep "Hello, World" stdout
26180 ) >>"$at_stdout" 2>>"$at_stderr"
26181 at_status=$? at_failed=false
26183 at_fn_diff_devnull "$at_stderr" || at_failed=:
26184 echo stdout:; cat "$at_stdout"
26185 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:440"
26186 $at_failed && at_fn_log_failure
26189 lt_exe=./ltdl-loader; if test -f "./ltdl-loader$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
26191 $as_echo "$at_srcdir/darwin.at:441: if \"\$lt_exe\" \$dir/libsimple-dylib World; then :; else lt_status=\$?; test \"X\$host\" != \"X\$build\" && test -x \"\$lt_exe\" && exit 77; exit \$lt_status; fi"
26192 at_fn_check_prepare_dynamic "if \"$lt_exe\" $dir/libsimple-dylib World; then :; else lt_status=$?; test \"X$host\" != \"X$build\" && test -x \"$lt_exe\" && exit 77; exit $lt_status; fi" "darwin.at:441"
26193 ( $at_check_trace; if "$lt_exe" $dir/libsimple-dylib World; then :; else lt_status=$?; test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; exit $lt_status; fi
26194 ) >>"$at_stdout" 2>>"$at_stderr"
26195 at_status=$? at_failed=false
26197 echo stderr:; cat "$at_stderr"
26198 echo stdout:; tee stdout <"$at_stdout"
26199 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:441"
26200 $at_failed && at_fn_log_failure
26205 $as_echo "$at_srcdir/darwin.at:443: grep \"Hello, World\" stdout"
26206 at_fn_check_prepare_trace "darwin.at:443"
26207 ( $at_check_trace; grep "Hello, World" stdout
26208 ) >>"$at_stdout" 2>>"$at_stderr"
26209 at_status=$? at_failed=false
26211 at_fn_diff_devnull "$at_stderr" || at_failed=:
26212 echo stdout:; cat "$at_stdout"
26213 at_fn_check_status 0 $at_status "$at_srcdir/darwin.at:443"
26214 $at_failed && at_fn_log_failure
26220 $at_times_p && times >"$at_times_file"
26221 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26222 read at_status <"$at_status_file"
26225 at_fn_group_banner 122 'dumpbin-symbols.at:25' \
26226 "dumpbin -symbols section hiding" " " 20
26229 $as_echo "122. $at_setup_line: testing $at_desc ..."
26233 # I don't know of a stable way to create a pair of objects that
26234 # exhibits the potential problem, so this test fakes it by
26235 # testing with output from a case that do have the potential
26238 # First check if the global_symbol_pipe can handle the below
26239 # test case at all, and skip if $NM is not MS dumpbin.
26241 cat >variable.c <<'_ATEOF'
26243 int some_variable = 0;
26248 $as_echo "$at_srcdir/dumpbin-symbols.at:40: \$CC \$CPPFLAGS \$CFLAGS -c variable.c"
26249 at_fn_check_prepare_dynamic "$CC $CPPFLAGS $CFLAGS -c variable.c" "dumpbin-symbols.at:40"
26250 ( $at_check_trace; $CC $CPPFLAGS $CFLAGS -c variable.c
26251 ) >>"$at_stdout" 2>>"$at_stderr"
26252 at_status=$? at_failed=false
26254 echo stderr:; cat "$at_stderr"
26255 echo stdout:; cat "$at_stdout"
26256 at_fn_check_status 0 $at_status "$at_srcdir/dumpbin-symbols.at:40"
26257 $at_failed && at_fn_log_failure
26261 $as_echo "$at_srcdir/dumpbin-symbols.at:41: \$NM variable.\$OBJEXT"
26262 at_fn_check_prepare_dynamic "$NM variable.$OBJEXT" "dumpbin-symbols.at:41"
26263 ( $at_check_trace; $NM variable.$OBJEXT
26264 ) >>"$at_stdout" 2>>"$at_stderr"
26265 at_status=$? at_failed=false
26267 echo stderr:; cat "$at_stderr"
26268 echo stdout:; tee stdout <"$at_stdout"
26269 at_fn_check_status 0 $at_status "$at_srcdir/dumpbin-symbols.at:41"
26270 $at_failed && at_fn_log_failure
26274 $as_echo "$at_srcdir/dumpbin-symbols.at:42: grep 'External.*some_variable' stdout || exit 77"
26275 at_fn_check_prepare_trace "dumpbin-symbols.at:42"
26276 ( $at_check_trace; grep 'External.*some_variable' stdout || exit 77
26277 ) >>"$at_stdout" 2>>"$at_stderr"
26278 at_status=$? at_failed=false
26280 at_fn_diff_devnull "$at_stderr" || at_failed=:
26281 echo stdout:; cat "$at_stdout"
26282 at_fn_check_status 0 $at_status "$at_srcdir/dumpbin-symbols.at:42"
26283 $at_failed && at_fn_log_failure
26287 eval `$LIBTOOL --config | $EGREP '^(global_symbol_pipe)='`
26289 cat >dumpbin-output <<'_ATEOF'
26291 Dump of file foo.obj
26293 File Type: COFF OBJECT
26296 000 00AB766F ABS notype Static | @comp.id
26297 001 00000001 ABS notype Static | @feat.00
26298 002 00000000 SECT1 notype Static | .drectve
26299 Section length 8F, #relocs 0, #linenums 0, checksum 0
26300 004 00000000 SECT2 notype Static | .debug$S
26301 Section length 44B4, #relocs 1C, #linenums 0, checksum 0
26302 006 00000000 SECT3 notype Static | .rdata
26303 Section length 1, #relocs 0, #linenums 0, checksum 0, selection 2 (pick any)
26304 008 00000000 SECT3 notype External | ?value@?$integral_constant@_N$0A@@tr1@std@@2_NB (public: static bool const std::tr1::integral_constant<bool,0>::value)
26305 009 00000000 SECT4 notype Static | .rdata
26306 Section length 1, #relocs 0, #linenums 0, checksum 77073096, selection 2 (pick any)
26307 *snip lots of uninteresting crap*
26308 12A 00000000 SECT5B notype Static | .text
26309 Section length 4B, #relocs 2, #linenums 0, checksum 22AE8362, selection 2 (pick any)
26310 12C 00000000 SECT5C notype Static | .debug$S
26311 Section length 150, #relocs B, #linenums 0, checksum 0, selection 5 (pick associative Section 0x5B)
26312 12F 00000000 SECT5D notype Static | .debug$T
26313 Section length 5C, #relocs 0, #linenums 0, checksum 0
26315 String Table Size = 0x15EF bytes
26318 Dump of file conv.lib
26323 000 00AB766F ABS notype Static | @comp.id
26324 001 00000001 ABS notype Static | @feat.00
26325 002 00000000 SECT1 notype Static | .drectve
26326 Section length 2F, #relocs 0, #linenums 0, checksum 0
26327 004 00000000 SECT2 notype Static | .debug$S
26328 Section length 70C, #relocs 5, #linenums 0, checksum 0
26329 006 00000000 SECT3 notype Static | .text
26330 Section length A, #relocs 0, #linenums 0, checksum BAFC81C1
26331 008 00000000 SECT3 notype () External | _convenience
26332 009 00000000 SECT4 notype Static | .debug$T
26333 Section length 5C, #relocs 0, #linenums 0, checksum 0
26335 String Table Size = 0x11 bytes
26350 # Check if the _convenience symbol from section SECT3 in conv.lib is
26351 # present even if section SECT3 in foo.obj is hidden.
26353 $as_echo "$at_srcdir/dumpbin-symbols.at:108: < dumpbin-output eval \"\$global_symbol_pipe\""
26354 at_fn_check_prepare_dynamic "< dumpbin-output eval \"$global_symbol_pipe\"" "dumpbin-symbols.at:108"
26355 ( $at_check_trace; < dumpbin-output eval "$global_symbol_pipe"
26356 ) >>"$at_stdout" 2>>"$at_stderr"
26357 at_status=$? at_failed=false
26359 at_fn_diff_devnull "$at_stderr" || at_failed=:
26360 echo stdout:; tee stdout <"$at_stdout"
26361 at_fn_check_status 0 $at_status "$at_srcdir/dumpbin-symbols.at:108"
26362 $at_failed && at_fn_log_failure
26366 $as_echo "$at_srcdir/dumpbin-symbols.at:109: grep convenience stdout"
26367 at_fn_check_prepare_trace "dumpbin-symbols.at:109"
26368 ( $at_check_trace; grep convenience stdout
26369 ) >>"$at_stdout" 2>>"$at_stderr"
26370 at_status=$? at_failed=false
26372 at_fn_diff_devnull "$at_stderr" || at_failed=:
26373 echo stdout:; cat "$at_stdout"
26374 at_fn_check_status 0 $at_status "$at_srcdir/dumpbin-symbols.at:109"
26375 $at_failed && at_fn_log_failure
26380 $at_times_p && times >"$at_times_file"
26381 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26382 read at_status <"$at_status_file"
26385 at_fn_group_banner 123 'deplibs-mingw.at:27' \
26386 "deplibs without file command" " " 20
26389 $as_echo "123. $at_setup_line: testing $at_desc ..."
26396 libdir=$instdir/lib
26397 bindir=$instdir/bin
26398 LDFLAGS="$LDFLAGS -no-undefined"
26400 mkdir inst inst/bin inst/lib
26402 cat >a.c <<'_ATEOF'
26403 int a () { return 0; }
26406 cat >b.c <<'_ATEOF'
26408 int b () { return a (); }
26412 for file in a.c b.c; do
26413 $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
26416 $as_echo "$at_srcdir/deplibs-mingw.at:49: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o liba.la a.lo -rpath \$libdir"
26417 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir" "deplibs-mingw.at:49"
26418 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath $libdir
26419 ) >>"$at_stdout" 2>>"$at_stderr"
26420 at_status=$? at_failed=false
26422 echo stderr:; cat "$at_stderr"
26423 echo stdout:; cat "$at_stdout"
26424 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:49"
26425 $at_failed && at_fn_log_failure
26429 $as_echo "$at_srcdir/deplibs-mingw.at:51: library_names= && . ./liba.la && if test -z \"\$library_names\"; then exit 77; fi "
26430 at_fn_check_prepare_dynamic "library_names= && . ./liba.la && if test -z \"$library_names\"; then exit 77; fi " "deplibs-mingw.at:51"
26431 ( $at_check_trace; library_names= && . ./liba.la && if test -z "$library_names"; then exit 77; fi
26432 ) >>"$at_stdout" 2>>"$at_stderr"
26433 at_status=$? at_failed=false
26435 echo stderr:; cat "$at_stderr"
26436 echo stdout:; cat "$at_stdout"
26437 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:51"
26438 $at_failed && at_fn_log_failure
26442 $as_echo "$at_srcdir/deplibs-mingw.at:53: \$LIBTOOL --mode=install cp liba.la \$libdir"
26443 at_fn_check_prepare_dynamic "$LIBTOOL --mode=install cp liba.la $libdir" "deplibs-mingw.at:53"
26444 ( $at_check_trace; $LIBTOOL --mode=install cp liba.la $libdir
26445 ) >>"$at_stdout" 2>>"$at_stderr"
26446 at_status=$? at_failed=false
26448 echo stderr:; cat "$at_stderr"
26449 echo stdout:; cat "$at_stdout"
26450 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:53"
26451 $at_failed && at_fn_log_failure
26455 $as_echo "$at_srcdir/deplibs-mingw.at:54: \$LIBTOOL --mode=clean rm -f liba.la"
26456 at_fn_check_prepare_dynamic "$LIBTOOL --mode=clean rm -f liba.la" "deplibs-mingw.at:54"
26457 ( $at_check_trace; $LIBTOOL --mode=clean rm -f liba.la
26458 ) >>"$at_stdout" 2>>"$at_stderr"
26459 at_status=$? at_failed=false
26461 echo stderr:; cat "$at_stderr"
26462 echo stdout:; cat "$at_stdout"
26463 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:54"
26464 $at_failed && at_fn_log_failure
26467 rm -f $libdir/liba.la
26469 # check once with `file' (if present) and once without, if on MinGW.
26470 for try in with-file without-file; do
26472 $as_echo "$at_srcdir/deplibs-mingw.at:59: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libb.la b.lo -rpath \$libdir -L\$libdir -la"
26473 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -rpath $libdir -L$libdir -la" "deplibs-mingw.at:59"
26474 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb.la b.lo -rpath $libdir -L$libdir -la
26475 ) >>"$at_stdout" 2>>"$at_stderr"
26476 at_status=$? at_failed=false
26478 echo stderr:; cat "$at_stderr"
26479 echo stdout:; cat "$at_stdout"
26480 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:59"
26481 $at_failed && at_fn_log_failure
26485 $as_echo "$at_srcdir/deplibs-mingw.at:62: library_names= && . ./libb.la && if test -z \"\$library_names\"; then exit 99; fi "
26486 at_fn_check_prepare_dynamic "library_names= && . ./libb.la && if test -z \"$library_names\"; then exit 99; fi " "deplibs-mingw.at:62"
26487 ( $at_check_trace; library_names= && . ./libb.la && if test -z "$library_names"; then exit 99; fi
26488 ) >>"$at_stdout" 2>>"$at_stderr"
26489 at_status=$? at_failed=false
26491 echo stderr:; cat "$at_stderr"
26492 echo stdout:; cat "$at_stdout"
26493 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:62"
26494 $at_failed && at_fn_log_failure
26501 mkdir bin new-libtool
26503 cat >bin/file <<\EOF
26508 PATH=`pwd`/bin${PATH_SEPARATOR-:}$PATH
26510 # configure might fail due to in-tree build of toplevel, or
26511 # missing configure flags and other reasons.
26513 $as_echo "$at_srcdir/deplibs-mingw.at:79: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL \"\$abs_top_srcdir\"/configure \$configure_options || exit 77"
26514 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "deplibs-mingw.at:79"
26515 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL "$abs_top_srcdir"/configure $configure_options || exit 77
26516 ) >>"$at_stdout" 2>>"$at_stderr"
26517 at_status=$? at_failed=false
26519 echo stderr:; cat "$at_stderr"
26520 echo stdout:; cat "$at_stdout"
26521 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:79"
26522 $at_failed && at_fn_log_failure
26527 LIBTOOL=new-libtool/libtool
26529 # Check whether the generated script is usable; otherwise, skip.
26531 $as_echo "$at_srcdir/deplibs-mingw.at:84: \$LIBTOOL --mode=link \$CC \$CFLAGS \$LDFLAGS -o libunrelated.la a.lo -rpath \$libdir || exit 77"
26532 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libunrelated.la a.lo -rpath $libdir || exit 77" "deplibs-mingw.at:84"
26533 ( $at_check_trace; $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libunrelated.la a.lo -rpath $libdir || exit 77
26534 ) >>"$at_stdout" 2>>"$at_stderr"
26535 at_status=$? at_failed=false
26537 echo stderr:; cat "$at_stderr"
26538 echo stdout:; cat "$at_stdout"
26539 at_fn_check_status 0 $at_status "$at_srcdir/deplibs-mingw.at:84"
26540 $at_failed && at_fn_log_failure
26552 $at_times_p && times >"$at_times_file"
26553 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26554 read at_status <"$at_status_file"
26557 at_fn_group_banner 124 'sysroot.at:203' \
26558 "-L=.../lib -l" " " 21
26560 test "$ACLOCAL" = no && at_xfail=yes
26561 test "$AUTOMAKE" = no && at_xfail=yes
26562 test "$AUTOCONF" = no && at_xfail=yes
26563 test "$ACLOCAL" = no && at_xfail=yes
26564 test "$AUTOMAKE" = no && at_xfail=yes
26565 test "$AUTOCONF" = no && at_xfail=yes
26566 test "$ACLOCAL" = no && at_xfail=yes
26567 test "$AUTOMAKE" = no && at_xfail=yes
26568 test "$AUTOCONF" = no && at_xfail=yes
26570 $as_echo "124. $at_setup_line: testing $at_desc ..."
26575 gcc_sysroot=`$CC --print-sysroot 2> /dev/null`
26576 if test $? != 0; then
26580 $as_echo "$at_srcdir/sysroot.at:203: test -n \"\$gcc_sysroot\" || exit 77"
26581 at_fn_check_prepare_dynamic "test -n \"$gcc_sysroot\" || exit 77" "sysroot.at:203"
26582 ( $at_check_trace; test -n "$gcc_sysroot" || exit 77
26583 ) >>"$at_stdout" 2>>"$at_stderr"
26584 at_status=$? at_failed=false
26586 at_fn_diff_devnull "$at_stderr" || at_failed=:
26587 at_fn_diff_devnull "$at_stdout" || at_failed=:
26588 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26589 $at_failed && at_fn_log_failure
26593 # Detect installation prefix for the compiler
26595 for i in crt0.o crt1.o crt2.o crti.o; do
26596 j=`$CC --print-file-name $i 2> /dev/null`
26597 test $? = 0 || continue
26599 $gcc_sysroot*/lib/$i)
26600 prefix=`echo "$j" | sed "s,^$gcc_sysroot\\(.*\\)/lib/$i\$,\\1,"`
26605 $as_echo "$at_srcdir/sysroot.at:203: test -n \"\$prefix\" || exit 77"
26606 at_fn_check_prepare_dynamic "test -n \"$prefix\" || exit 77" "sysroot.at:203"
26607 ( $at_check_trace; test -n "$prefix" || exit 77
26608 ) >>"$at_stdout" 2>>"$at_stderr"
26609 at_status=$? at_failed=false
26611 at_fn_diff_devnull "$at_stderr" || at_failed=:
26612 at_fn_diff_devnull "$at_stdout" || at_failed=:
26613 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26614 $at_failed && at_fn_log_failure
26618 sysroot=`pwd`/sys-root
26620 # difficult to use AS_DIRNAME inside the AT_CHECK macro, so
26621 # encapsulate as a shell function.
26623 $as_dirname -- "$1" ||
26624 $as_expr X"$1" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26625 X"$1" : 'X\(//\)[^/]' \| \
26626 X"$1" : 'X\(//\)$' \| \
26627 X"$1" : 'X\(/\)' \| . 2>/dev/null ||
26629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26633 /^X\(\/\/\)[^/].*/{
26649 $as_echo "$at_srcdir/sysroot.at:203:
26650 (cd \"\$gcc_sysroot\" && find \".\$prefix/bin\" \".\$prefix/include\" \".\$prefix/lib\" \\! -type d) | \\
26651 while read file; do
26652 dir=\`local_dirname \"\$sysroot/\$file\"\`
26653 test -d \"\$dir\" || mkdir -p \"\$dir\"
26654 rm -f \"\$sysroot/\$file\"
26655 ln -s \"\$gcc_sysroot/\$file\" \"\$sysroot/\$file\" || \\
26656 cp \"\$gcc_sysroot/\$file\" \"\$sysroot/\$file\"
26658 at_fn_check_prepare_notrace 'a `...` command substitution' "sysroot.at:203"
26660 (cd "$gcc_sysroot" && find ".$prefix/bin" ".$prefix/include" ".$prefix/lib" \! -type d) | \
26661 while read file; do
26662 dir=`local_dirname "$sysroot/$file"`
26663 test -d "$dir" || mkdir -p "$dir"
26664 rm -f "$sysroot/$file"
26665 ln -s "$gcc_sysroot/$file" "$sysroot/$file" || \
26666 cp "$gcc_sysroot/$file" "$sysroot/$file"
26668 ) >>"$at_stdout" 2>>"$at_stderr"
26669 at_status=$? at_failed=false
26671 at_fn_diff_devnull "$at_stderr" || at_failed=:
26672 at_fn_diff_devnull "$at_stdout" || at_failed=:
26673 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26674 $at_failed && at_fn_log_failure
26678 LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined"
26679 configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix"
26682 if test "$shlibpath_var" = PATH; then
26683 configure_options="$configure_options --libdir=/$prefix/bin"
26687 $as_echo "$at_srcdir/sysroot.at:203: mkdir lib1 lib2 prog"
26688 at_fn_check_prepare_trace "sysroot.at:203"
26689 ( $at_check_trace; mkdir lib1 lib2 prog
26690 ) >>"$at_stdout" 2>>"$at_stderr"
26691 at_status=$? at_failed=false
26693 at_fn_diff_devnull "$at_stderr" || at_failed=:
26694 at_fn_diff_devnull "$at_stdout" || at_failed=:
26695 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26696 $at_failed && at_fn_log_failure
26700 # Build and install package 1.
26701 cat >lib1/configure.ac <<'_ATEOF'
26702 AC_INIT([lib1], [1.0])
26703 AM_INIT_AUTOMAKE([foreign])
26705 AC_CONFIG_SRCDIR([lib1.c])
26707 AC_OUTPUT(Makefile)
26711 cat >lib1/Makefile.am <<'_ATEOF'
26712 lib_LTLIBRARIES = lib1.la
26713 lib1_la_SOURCES = lib1.c
26714 lib1_la_LDFLAGS = -rpath $(libdir)
26718 cat >lib1/lib1.c <<'_ATEOF'
26719 #include <string.h>
26720 #include <stdlib.h>
26721 char *f(const char *s)
26733 $as_echo "$at_srcdir/sysroot.at:203: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
26734 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:203"
26735 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
26736 ) >>"$at_stdout" 2>>"$at_stderr"
26737 at_status=$? at_failed=false
26739 echo stderr:; cat "$at_stderr"
26740 echo stdout:; cat "$at_stdout"
26741 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26742 $at_failed && at_fn_log_failure
26750 $as_echo "$at_srcdir/sysroot.at:203: \$AUTOMAKE --add-missing"
26751 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:203"
26752 ( $at_check_trace; $AUTOMAKE --add-missing
26753 ) >>"$at_stdout" 2>>"$at_stderr"
26754 at_status=$? at_failed=false
26756 echo stderr:; tee stderr <"$at_stderr"
26757 echo stdout:; cat "$at_stdout"
26758 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26759 if $at_failed; then :
26761 $as_echo "$at_srcdir/sysroot.at:203: grep 'require .*but have' stderr && (exit 77)"
26762 at_fn_check_prepare_trace "sysroot.at:203"
26763 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
26764 ) >>"$at_stdout" 2>>"$at_stderr"
26765 at_status=$? at_failed=false
26767 at_fn_diff_devnull "$at_stderr" || at_failed=:
26768 at_fn_diff_devnull "$at_stdout" || at_failed=:
26769 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:203"
26770 $at_failed && at_fn_log_failure
26774 $at_failed && at_fn_log_failure
26781 $as_echo "$at_srcdir/sysroot.at:203: \$AUTOCONF "
26782 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:203"
26783 ( $at_check_trace; $AUTOCONF
26784 ) >>"$at_stdout" 2>>"$at_stderr"
26785 at_status=$? at_failed=false
26787 echo stderr:; cat "$at_stderr"
26788 echo stdout:; cat "$at_stdout"
26789 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26790 $at_failed && at_fn_log_failure
26797 $as_echo "$at_srcdir/sysroot.at:203: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
26798 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:203"
26799 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
26800 ) >>"$at_stdout" 2>>"$at_stderr"
26801 at_status=$? at_failed=false
26803 echo stderr:; cat "$at_stderr"
26804 echo stdout:; cat "$at_stdout"
26805 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26806 $at_failed && at_fn_log_failure
26813 $as_echo "$at_srcdir/sysroot.at:203: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
26814 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:203"
26815 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
26816 ) >>"$at_stdout" 2>>"$at_stderr"
26817 at_status=$? at_failed=false
26819 echo stderr:; cat "$at_stderr"
26820 echo stdout:; cat "$at_stdout"
26821 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26822 $at_failed && at_fn_log_failure
26830 $as_echo "$at_srcdir/sysroot.at:203: \$MAKE install DESTDIR=\$sysroot"
26831 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:203"
26832 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
26833 ) >>"$at_stdout" 2>>"$at_stderr"
26834 at_status=$? at_failed=false
26836 echo stderr:; cat "$at_stderr"
26837 echo stdout:; cat "$at_stdout"
26838 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26839 $at_failed && at_fn_log_failure
26843 $as_echo "$at_srcdir/sysroot.at:203: test -f \"\$sysroot/\$prefix/lib/lib1.la\""
26844 at_fn_check_prepare_dynamic "test -f \"$sysroot/$prefix/lib/lib1.la\"" "sysroot.at:203"
26845 ( $at_check_trace; test -f "$sysroot/$prefix/lib/lib1.la"
26846 ) >>"$at_stdout" 2>>"$at_stderr"
26847 at_status=$? at_failed=false
26849 at_fn_diff_devnull "$at_stderr" || at_failed=:
26850 at_fn_diff_devnull "$at_stdout" || at_failed=:
26851 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26852 $at_failed && at_fn_log_failure
26856 $as_echo "$at_srcdir/sysroot.at:203: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/lib/lib1.la\""
26857 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/lib/lib1.la\"" "sysroot.at:203"
26858 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/lib/lib1.la"
26859 ) >>"$at_stdout" 2>>"$at_stderr"
26860 at_status=$? at_failed=false
26862 at_fn_diff_devnull "$at_stderr" || at_failed=:
26863 at_fn_diff_devnull "$at_stdout" || at_failed=:
26864 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:203"
26865 $at_failed && at_fn_log_failure
26870 # Build and install package 2.
26871 cat >lib2/configure.ac <<'_ATEOF'
26872 AC_INIT([lib2], [1.0])
26873 AM_INIT_AUTOMAKE([foreign])
26875 AC_CONFIG_SRCDIR([lib2.c])
26877 sysroot=$with_sysroot
26878 AC_SUBST([sysroot])
26879 AC_OUTPUT(Makefile)
26883 cat >lib2/Makefile.am <<'_ATEOF'
26884 lib_LTLIBRARIES = lib2.la
26885 lib2_la_SOURCES = lib2.c
26886 lib2_la_LDFLAGS = -rpath $(libdir)
26887 lib2_la_LIBADD = -L=$(libdir) -l1
26891 cat >lib2/lib2.c <<'_ATEOF'
26893 #include <string.h>
26894 #include <stdlib.h>
26895 extern char *f(const char *s);
26896 char *g(const char *s)
26910 $as_echo "$at_srcdir/sysroot.at:203: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
26911 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:203"
26912 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
26913 ) >>"$at_stdout" 2>>"$at_stderr"
26914 at_status=$? at_failed=false
26916 echo stderr:; cat "$at_stderr"
26917 echo stdout:; cat "$at_stdout"
26918 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26919 $at_failed && at_fn_log_failure
26927 $as_echo "$at_srcdir/sysroot.at:203: \$AUTOMAKE --add-missing"
26928 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:203"
26929 ( $at_check_trace; $AUTOMAKE --add-missing
26930 ) >>"$at_stdout" 2>>"$at_stderr"
26931 at_status=$? at_failed=false
26933 echo stderr:; tee stderr <"$at_stderr"
26934 echo stdout:; cat "$at_stdout"
26935 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26936 if $at_failed; then :
26938 $as_echo "$at_srcdir/sysroot.at:203: grep 'require .*but have' stderr && (exit 77)"
26939 at_fn_check_prepare_trace "sysroot.at:203"
26940 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
26941 ) >>"$at_stdout" 2>>"$at_stderr"
26942 at_status=$? at_failed=false
26944 at_fn_diff_devnull "$at_stderr" || at_failed=:
26945 at_fn_diff_devnull "$at_stdout" || at_failed=:
26946 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:203"
26947 $at_failed && at_fn_log_failure
26951 $at_failed && at_fn_log_failure
26958 $as_echo "$at_srcdir/sysroot.at:203: \$AUTOCONF "
26959 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:203"
26960 ( $at_check_trace; $AUTOCONF
26961 ) >>"$at_stdout" 2>>"$at_stderr"
26962 at_status=$? at_failed=false
26964 echo stderr:; cat "$at_stderr"
26965 echo stdout:; cat "$at_stdout"
26966 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26967 $at_failed && at_fn_log_failure
26974 $as_echo "$at_srcdir/sysroot.at:203: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
26975 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:203"
26976 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
26977 ) >>"$at_stdout" 2>>"$at_stderr"
26978 at_status=$? at_failed=false
26980 echo stderr:; cat "$at_stderr"
26981 echo stdout:; cat "$at_stdout"
26982 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26983 $at_failed && at_fn_log_failure
26990 $as_echo "$at_srcdir/sysroot.at:203: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
26991 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:203"
26992 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
26993 ) >>"$at_stdout" 2>>"$at_stderr"
26994 at_status=$? at_failed=false
26996 echo stderr:; cat "$at_stderr"
26997 echo stdout:; cat "$at_stdout"
26998 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
26999 $at_failed && at_fn_log_failure
27007 $as_echo "$at_srcdir/sysroot.at:203: \$MAKE install DESTDIR=\$sysroot"
27008 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:203"
27009 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
27010 ) >>"$at_stdout" 2>>"$at_stderr"
27011 at_status=$? at_failed=false
27013 echo stderr:; cat "$at_stderr"
27014 echo stdout:; cat "$at_stdout"
27015 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27016 $at_failed && at_fn_log_failure
27020 $as_echo "$at_srcdir/sysroot.at:203: test -f \$sysroot/\$prefix/lib/lib2.la"
27021 at_fn_check_prepare_dynamic "test -f $sysroot/$prefix/lib/lib2.la" "sysroot.at:203"
27022 ( $at_check_trace; test -f $sysroot/$prefix/lib/lib2.la
27023 ) >>"$at_stdout" 2>>"$at_stderr"
27024 at_status=$? at_failed=false
27026 at_fn_diff_devnull "$at_stderr" || at_failed=:
27027 at_fn_diff_devnull "$at_stdout" || at_failed=:
27028 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27029 $at_failed && at_fn_log_failure
27033 $as_echo "$at_srcdir/sysroot.at:203: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/lib/lib2.la\""
27034 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/lib/lib2.la\"" "sysroot.at:203"
27035 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/lib/lib2.la"
27036 ) >>"$at_stdout" 2>>"$at_stderr"
27037 at_status=$? at_failed=false
27039 at_fn_diff_devnull "$at_stderr" || at_failed=:
27040 at_fn_diff_devnull "$at_stdout" || at_failed=:
27041 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:203"
27042 $at_failed && at_fn_log_failure
27047 # Build and install a program.
27048 cat >prog/configure.ac <<'_ATEOF'
27049 AC_INIT([prog], [1.0])
27050 AM_INIT_AUTOMAKE([foreign])
27052 AC_CONFIG_SRCDIR([prog.c])
27054 sysroot=$with_sysroot
27055 AC_SUBST([sysroot])
27056 AC_OUTPUT(Makefile)
27060 cat >prog/Makefile.am <<'_ATEOF'
27061 bin_PROGRAMS = prog
27062 prog_SOURCES = prog.c
27063 prog_LDADD = -L=$(libdir) -l2
27067 cat >prog/prog.c <<'_ATEOF'
27069 #include <string.h>
27070 #include <stdlib.h>
27071 extern char *g(const char *s);
27074 char *q = g("hello world");
27086 $as_echo "$at_srcdir/sysroot.at:203: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
27087 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:203"
27088 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
27089 ) >>"$at_stdout" 2>>"$at_stderr"
27090 at_status=$? at_failed=false
27092 echo stderr:; cat "$at_stderr"
27093 echo stdout:; cat "$at_stdout"
27094 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27095 $at_failed && at_fn_log_failure
27103 $as_echo "$at_srcdir/sysroot.at:203: \$AUTOMAKE --add-missing"
27104 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:203"
27105 ( $at_check_trace; $AUTOMAKE --add-missing
27106 ) >>"$at_stdout" 2>>"$at_stderr"
27107 at_status=$? at_failed=false
27109 echo stderr:; tee stderr <"$at_stderr"
27110 echo stdout:; cat "$at_stdout"
27111 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27112 if $at_failed; then :
27114 $as_echo "$at_srcdir/sysroot.at:203: grep 'require .*but have' stderr && (exit 77)"
27115 at_fn_check_prepare_trace "sysroot.at:203"
27116 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
27117 ) >>"$at_stdout" 2>>"$at_stderr"
27118 at_status=$? at_failed=false
27120 at_fn_diff_devnull "$at_stderr" || at_failed=:
27121 at_fn_diff_devnull "$at_stdout" || at_failed=:
27122 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:203"
27123 $at_failed && at_fn_log_failure
27127 $at_failed && at_fn_log_failure
27134 $as_echo "$at_srcdir/sysroot.at:203: \$AUTOCONF "
27135 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:203"
27136 ( $at_check_trace; $AUTOCONF
27137 ) >>"$at_stdout" 2>>"$at_stderr"
27138 at_status=$? at_failed=false
27140 echo stderr:; cat "$at_stderr"
27141 echo stdout:; cat "$at_stdout"
27142 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27143 $at_failed && at_fn_log_failure
27150 $as_echo "$at_srcdir/sysroot.at:203: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
27151 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:203"
27152 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
27153 ) >>"$at_stdout" 2>>"$at_stderr"
27154 at_status=$? at_failed=false
27156 echo stderr:; cat "$at_stderr"
27157 echo stdout:; cat "$at_stdout"
27158 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27159 $at_failed && at_fn_log_failure
27166 $as_echo "$at_srcdir/sysroot.at:203: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
27167 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:203"
27168 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
27169 ) >>"$at_stdout" 2>>"$at_stderr"
27170 at_status=$? at_failed=false
27172 echo stderr:; cat "$at_stderr"
27173 echo stdout:; cat "$at_stdout"
27174 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27175 $at_failed && at_fn_log_failure
27183 $as_echo "$at_srcdir/sysroot.at:203: \$MAKE install DESTDIR=\$sysroot"
27184 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:203"
27185 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
27186 ) >>"$at_stdout" 2>>"$at_stderr"
27187 at_status=$? at_failed=false
27189 echo stderr:; cat "$at_stderr"
27190 echo stdout:; cat "$at_stdout"
27191 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27192 $at_failed && at_fn_log_failure
27196 $as_echo "$at_srcdir/sysroot.at:203: test -f \$sysroot/\$prefix/bin/prog\$EXEEXT"
27197 at_fn_check_prepare_dynamic "test -f $sysroot/$prefix/bin/prog$EXEEXT" "sysroot.at:203"
27198 ( $at_check_trace; test -f $sysroot/$prefix/bin/prog$EXEEXT
27199 ) >>"$at_stdout" 2>>"$at_stderr"
27200 at_status=$? at_failed=false
27202 at_fn_diff_devnull "$at_stderr" || at_failed=:
27203 at_fn_diff_devnull "$at_stdout" || at_failed=:
27204 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27205 $at_failed && at_fn_log_failure
27209 $as_echo "$at_srcdir/sysroot.at:203: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/bin/prog\$EXEEXT\""
27210 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/bin/prog$EXEEXT\"" "sysroot.at:203"
27211 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/bin/prog$EXEEXT"
27212 ) >>"$at_stdout" 2>>"$at_stderr"
27213 at_status=$? at_failed=false
27215 at_fn_diff_devnull "$at_stderr" || at_failed=:
27216 at_fn_diff_devnull "$at_stdout" || at_failed=:
27217 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:203"
27218 $at_failed && at_fn_log_failure
27222 $as_echo "$at_srcdir/sysroot.at:203: grep \"'.*=\" \$sysroot/\$prefix/lib/lib2.la"
27223 at_fn_check_prepare_dynamic "grep \"'.*=\" $sysroot/$prefix/lib/lib2.la" "sysroot.at:203"
27224 ( $at_check_trace; grep "'.*=" $sysroot/$prefix/lib/lib2.la
27225 ) >>"$at_stdout" 2>>"$at_stderr"
27226 at_status=$? at_failed=false
27228 at_fn_diff_devnull "$at_stderr" || at_failed=:
27229 echo stdout:; cat "$at_stdout"
27230 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27231 $at_failed && at_fn_log_failure
27235 $as_echo "$at_srcdir/sysroot.at:203: ./libtool --mode=finish \$sysroot/\$prefix/lib/lib[12].la"
27236 at_fn_check_prepare_dynamic "./libtool --mode=finish $sysroot/$prefix/lib/lib[12].la" "sysroot.at:203"
27237 ( $at_check_trace; ./libtool --mode=finish $sysroot/$prefix/lib/lib[12].la
27238 ) >>"$at_stdout" 2>>"$at_stderr"
27239 at_status=$? at_failed=false
27241 at_fn_diff_devnull "$at_stderr" || at_failed=:
27242 echo stdout:; cat "$at_stdout"
27243 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:203"
27244 $at_failed && at_fn_log_failure
27248 $as_echo "$at_srcdir/sysroot.at:203: grep \"'.*=\" \$sysroot/\$prefix/lib/lib[12].la"
27249 at_fn_check_prepare_dynamic "grep \"'.*=\" $sysroot/$prefix/lib/lib[12].la" "sysroot.at:203"
27250 ( $at_check_trace; grep "'.*=" $sysroot/$prefix/lib/lib[12].la
27251 ) >>"$at_stdout" 2>>"$at_stderr"
27252 at_status=$? at_failed=false
27254 at_fn_diff_devnull "$at_stderr" || at_failed=:
27255 at_fn_diff_devnull "$at_stdout" || at_failed=:
27256 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:203"
27257 $at_failed && at_fn_log_failure
27262 # 1) pass absolute .la files
27263 # 2) pass absolute -L
27264 # 2) pass relative .la files
27268 $at_times_p && times >"$at_times_file"
27269 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27270 read at_status <"$at_status_file"
27273 at_fn_group_banner 125 'sysroot.at:204' \
27274 "-L SYSROOT/.../lib -l" " " 21
27276 test "$ACLOCAL" = no && at_xfail=yes
27277 test "$AUTOMAKE" = no && at_xfail=yes
27278 test "$AUTOCONF" = no && at_xfail=yes
27279 test "$ACLOCAL" = no && at_xfail=yes
27280 test "$AUTOMAKE" = no && at_xfail=yes
27281 test "$AUTOCONF" = no && at_xfail=yes
27282 test "$ACLOCAL" = no && at_xfail=yes
27283 test "$AUTOMAKE" = no && at_xfail=yes
27284 test "$AUTOCONF" = no && at_xfail=yes
27286 $as_echo "125. $at_setup_line: testing $at_desc ..."
27291 gcc_sysroot=`$CC --print-sysroot 2> /dev/null`
27292 if test $? != 0; then
27296 $as_echo "$at_srcdir/sysroot.at:204: test -n \"\$gcc_sysroot\" || exit 77"
27297 at_fn_check_prepare_dynamic "test -n \"$gcc_sysroot\" || exit 77" "sysroot.at:204"
27298 ( $at_check_trace; test -n "$gcc_sysroot" || exit 77
27299 ) >>"$at_stdout" 2>>"$at_stderr"
27300 at_status=$? at_failed=false
27302 at_fn_diff_devnull "$at_stderr" || at_failed=:
27303 at_fn_diff_devnull "$at_stdout" || at_failed=:
27304 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27305 $at_failed && at_fn_log_failure
27309 # Detect installation prefix for the compiler
27311 for i in crt0.o crt1.o crt2.o crti.o; do
27312 j=`$CC --print-file-name $i 2> /dev/null`
27313 test $? = 0 || continue
27315 $gcc_sysroot*/lib/$i)
27316 prefix=`echo "$j" | sed "s,^$gcc_sysroot\\(.*\\)/lib/$i\$,\\1,"`
27321 $as_echo "$at_srcdir/sysroot.at:204: test -n \"\$prefix\" || exit 77"
27322 at_fn_check_prepare_dynamic "test -n \"$prefix\" || exit 77" "sysroot.at:204"
27323 ( $at_check_trace; test -n "$prefix" || exit 77
27324 ) >>"$at_stdout" 2>>"$at_stderr"
27325 at_status=$? at_failed=false
27327 at_fn_diff_devnull "$at_stderr" || at_failed=:
27328 at_fn_diff_devnull "$at_stdout" || at_failed=:
27329 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27330 $at_failed && at_fn_log_failure
27334 sysroot=`pwd`/sys-root
27336 # difficult to use AS_DIRNAME inside the AT_CHECK macro, so
27337 # encapsulate as a shell function.
27339 $as_dirname -- "$1" ||
27340 $as_expr X"$1" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27341 X"$1" : 'X\(//\)[^/]' \| \
27342 X"$1" : 'X\(//\)$' \| \
27343 X"$1" : 'X\(/\)' \| . 2>/dev/null ||
27345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27349 /^X\(\/\/\)[^/].*/{
27365 $as_echo "$at_srcdir/sysroot.at:204:
27366 (cd \"\$gcc_sysroot\" && find \".\$prefix/bin\" \".\$prefix/include\" \".\$prefix/lib\" \\! -type d) | \\
27367 while read file; do
27368 dir=\`local_dirname \"\$sysroot/\$file\"\`
27369 test -d \"\$dir\" || mkdir -p \"\$dir\"
27370 rm -f \"\$sysroot/\$file\"
27371 ln -s \"\$gcc_sysroot/\$file\" \"\$sysroot/\$file\" || \\
27372 cp \"\$gcc_sysroot/\$file\" \"\$sysroot/\$file\"
27374 at_fn_check_prepare_notrace 'a `...` command substitution' "sysroot.at:204"
27376 (cd "$gcc_sysroot" && find ".$prefix/bin" ".$prefix/include" ".$prefix/lib" \! -type d) | \
27377 while read file; do
27378 dir=`local_dirname "$sysroot/$file"`
27379 test -d "$dir" || mkdir -p "$dir"
27380 rm -f "$sysroot/$file"
27381 ln -s "$gcc_sysroot/$file" "$sysroot/$file" || \
27382 cp "$gcc_sysroot/$file" "$sysroot/$file"
27384 ) >>"$at_stdout" 2>>"$at_stderr"
27385 at_status=$? at_failed=false
27387 at_fn_diff_devnull "$at_stderr" || at_failed=:
27388 at_fn_diff_devnull "$at_stdout" || at_failed=:
27389 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27390 $at_failed && at_fn_log_failure
27394 LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined"
27395 configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix"
27398 if test "$shlibpath_var" = PATH; then
27399 configure_options="$configure_options --libdir=/$prefix/bin"
27403 $as_echo "$at_srcdir/sysroot.at:204: mkdir lib1 lib2 prog"
27404 at_fn_check_prepare_trace "sysroot.at:204"
27405 ( $at_check_trace; mkdir lib1 lib2 prog
27406 ) >>"$at_stdout" 2>>"$at_stderr"
27407 at_status=$? at_failed=false
27409 at_fn_diff_devnull "$at_stderr" || at_failed=:
27410 at_fn_diff_devnull "$at_stdout" || at_failed=:
27411 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27412 $at_failed && at_fn_log_failure
27416 # Build and install package 1.
27417 cat >lib1/configure.ac <<'_ATEOF'
27418 AC_INIT([lib1], [1.0])
27419 AM_INIT_AUTOMAKE([foreign])
27421 AC_CONFIG_SRCDIR([lib1.c])
27423 AC_OUTPUT(Makefile)
27427 cat >lib1/Makefile.am <<'_ATEOF'
27428 lib_LTLIBRARIES = lib1.la
27429 lib1_la_SOURCES = lib1.c
27430 lib1_la_LDFLAGS = -rpath $(libdir)
27434 cat >lib1/lib1.c <<'_ATEOF'
27435 #include <string.h>
27436 #include <stdlib.h>
27437 char *f(const char *s)
27449 $as_echo "$at_srcdir/sysroot.at:204: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
27450 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:204"
27451 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
27452 ) >>"$at_stdout" 2>>"$at_stderr"
27453 at_status=$? at_failed=false
27455 echo stderr:; cat "$at_stderr"
27456 echo stdout:; cat "$at_stdout"
27457 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27458 $at_failed && at_fn_log_failure
27466 $as_echo "$at_srcdir/sysroot.at:204: \$AUTOMAKE --add-missing"
27467 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:204"
27468 ( $at_check_trace; $AUTOMAKE --add-missing
27469 ) >>"$at_stdout" 2>>"$at_stderr"
27470 at_status=$? at_failed=false
27472 echo stderr:; tee stderr <"$at_stderr"
27473 echo stdout:; cat "$at_stdout"
27474 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27475 if $at_failed; then :
27477 $as_echo "$at_srcdir/sysroot.at:204: grep 'require .*but have' stderr && (exit 77)"
27478 at_fn_check_prepare_trace "sysroot.at:204"
27479 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
27480 ) >>"$at_stdout" 2>>"$at_stderr"
27481 at_status=$? at_failed=false
27483 at_fn_diff_devnull "$at_stderr" || at_failed=:
27484 at_fn_diff_devnull "$at_stdout" || at_failed=:
27485 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:204"
27486 $at_failed && at_fn_log_failure
27490 $at_failed && at_fn_log_failure
27497 $as_echo "$at_srcdir/sysroot.at:204: \$AUTOCONF "
27498 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:204"
27499 ( $at_check_trace; $AUTOCONF
27500 ) >>"$at_stdout" 2>>"$at_stderr"
27501 at_status=$? at_failed=false
27503 echo stderr:; cat "$at_stderr"
27504 echo stdout:; cat "$at_stdout"
27505 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27506 $at_failed && at_fn_log_failure
27513 $as_echo "$at_srcdir/sysroot.at:204: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
27514 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:204"
27515 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
27516 ) >>"$at_stdout" 2>>"$at_stderr"
27517 at_status=$? at_failed=false
27519 echo stderr:; cat "$at_stderr"
27520 echo stdout:; cat "$at_stdout"
27521 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27522 $at_failed && at_fn_log_failure
27529 $as_echo "$at_srcdir/sysroot.at:204: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
27530 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:204"
27531 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
27532 ) >>"$at_stdout" 2>>"$at_stderr"
27533 at_status=$? at_failed=false
27535 echo stderr:; cat "$at_stderr"
27536 echo stdout:; cat "$at_stdout"
27537 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27538 $at_failed && at_fn_log_failure
27546 $as_echo "$at_srcdir/sysroot.at:204: \$MAKE install DESTDIR=\$sysroot"
27547 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:204"
27548 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
27549 ) >>"$at_stdout" 2>>"$at_stderr"
27550 at_status=$? at_failed=false
27552 echo stderr:; cat "$at_stderr"
27553 echo stdout:; cat "$at_stdout"
27554 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27555 $at_failed && at_fn_log_failure
27559 $as_echo "$at_srcdir/sysroot.at:204: test -f \"\$sysroot/\$prefix/lib/lib1.la\""
27560 at_fn_check_prepare_dynamic "test -f \"$sysroot/$prefix/lib/lib1.la\"" "sysroot.at:204"
27561 ( $at_check_trace; test -f "$sysroot/$prefix/lib/lib1.la"
27562 ) >>"$at_stdout" 2>>"$at_stderr"
27563 at_status=$? at_failed=false
27565 at_fn_diff_devnull "$at_stderr" || at_failed=:
27566 at_fn_diff_devnull "$at_stdout" || at_failed=:
27567 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27568 $at_failed && at_fn_log_failure
27572 $as_echo "$at_srcdir/sysroot.at:204: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/lib/lib1.la\""
27573 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/lib/lib1.la\"" "sysroot.at:204"
27574 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/lib/lib1.la"
27575 ) >>"$at_stdout" 2>>"$at_stderr"
27576 at_status=$? at_failed=false
27578 at_fn_diff_devnull "$at_stderr" || at_failed=:
27579 at_fn_diff_devnull "$at_stdout" || at_failed=:
27580 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:204"
27581 $at_failed && at_fn_log_failure
27586 # Build and install package 2.
27587 cat >lib2/configure.ac <<'_ATEOF'
27588 AC_INIT([lib2], [1.0])
27589 AM_INIT_AUTOMAKE([foreign])
27591 AC_CONFIG_SRCDIR([lib2.c])
27593 sysroot=$with_sysroot
27594 AC_SUBST([sysroot])
27595 AC_OUTPUT(Makefile)
27599 cat >lib2/Makefile.am <<'_ATEOF'
27600 lib_LTLIBRARIES = lib2.la
27601 lib2_la_SOURCES = lib2.c
27602 lib2_la_LDFLAGS = -rpath $(libdir)
27603 lib2_la_LIBADD = -L$(sysroot)$(libdir) -l1
27607 cat >lib2/lib2.c <<'_ATEOF'
27609 #include <string.h>
27610 #include <stdlib.h>
27611 extern char *f(const char *s);
27612 char *g(const char *s)
27626 $as_echo "$at_srcdir/sysroot.at:204: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
27627 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:204"
27628 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
27629 ) >>"$at_stdout" 2>>"$at_stderr"
27630 at_status=$? at_failed=false
27632 echo stderr:; cat "$at_stderr"
27633 echo stdout:; cat "$at_stdout"
27634 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27635 $at_failed && at_fn_log_failure
27643 $as_echo "$at_srcdir/sysroot.at:204: \$AUTOMAKE --add-missing"
27644 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:204"
27645 ( $at_check_trace; $AUTOMAKE --add-missing
27646 ) >>"$at_stdout" 2>>"$at_stderr"
27647 at_status=$? at_failed=false
27649 echo stderr:; tee stderr <"$at_stderr"
27650 echo stdout:; cat "$at_stdout"
27651 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27652 if $at_failed; then :
27654 $as_echo "$at_srcdir/sysroot.at:204: grep 'require .*but have' stderr && (exit 77)"
27655 at_fn_check_prepare_trace "sysroot.at:204"
27656 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
27657 ) >>"$at_stdout" 2>>"$at_stderr"
27658 at_status=$? at_failed=false
27660 at_fn_diff_devnull "$at_stderr" || at_failed=:
27661 at_fn_diff_devnull "$at_stdout" || at_failed=:
27662 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:204"
27663 $at_failed && at_fn_log_failure
27667 $at_failed && at_fn_log_failure
27674 $as_echo "$at_srcdir/sysroot.at:204: \$AUTOCONF "
27675 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:204"
27676 ( $at_check_trace; $AUTOCONF
27677 ) >>"$at_stdout" 2>>"$at_stderr"
27678 at_status=$? at_failed=false
27680 echo stderr:; cat "$at_stderr"
27681 echo stdout:; cat "$at_stdout"
27682 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27683 $at_failed && at_fn_log_failure
27690 $as_echo "$at_srcdir/sysroot.at:204: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
27691 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:204"
27692 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
27693 ) >>"$at_stdout" 2>>"$at_stderr"
27694 at_status=$? at_failed=false
27696 echo stderr:; cat "$at_stderr"
27697 echo stdout:; cat "$at_stdout"
27698 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27699 $at_failed && at_fn_log_failure
27706 $as_echo "$at_srcdir/sysroot.at:204: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
27707 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:204"
27708 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
27709 ) >>"$at_stdout" 2>>"$at_stderr"
27710 at_status=$? at_failed=false
27712 echo stderr:; cat "$at_stderr"
27713 echo stdout:; cat "$at_stdout"
27714 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27715 $at_failed && at_fn_log_failure
27723 $as_echo "$at_srcdir/sysroot.at:204: \$MAKE install DESTDIR=\$sysroot"
27724 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:204"
27725 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
27726 ) >>"$at_stdout" 2>>"$at_stderr"
27727 at_status=$? at_failed=false
27729 echo stderr:; cat "$at_stderr"
27730 echo stdout:; cat "$at_stdout"
27731 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27732 $at_failed && at_fn_log_failure
27736 $as_echo "$at_srcdir/sysroot.at:204: test -f \$sysroot/\$prefix/lib/lib2.la"
27737 at_fn_check_prepare_dynamic "test -f $sysroot/$prefix/lib/lib2.la" "sysroot.at:204"
27738 ( $at_check_trace; test -f $sysroot/$prefix/lib/lib2.la
27739 ) >>"$at_stdout" 2>>"$at_stderr"
27740 at_status=$? at_failed=false
27742 at_fn_diff_devnull "$at_stderr" || at_failed=:
27743 at_fn_diff_devnull "$at_stdout" || at_failed=:
27744 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27745 $at_failed && at_fn_log_failure
27749 $as_echo "$at_srcdir/sysroot.at:204: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/lib/lib2.la\""
27750 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/lib/lib2.la\"" "sysroot.at:204"
27751 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/lib/lib2.la"
27752 ) >>"$at_stdout" 2>>"$at_stderr"
27753 at_status=$? at_failed=false
27755 at_fn_diff_devnull "$at_stderr" || at_failed=:
27756 at_fn_diff_devnull "$at_stdout" || at_failed=:
27757 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:204"
27758 $at_failed && at_fn_log_failure
27763 # Build and install a program.
27764 cat >prog/configure.ac <<'_ATEOF'
27765 AC_INIT([prog], [1.0])
27766 AM_INIT_AUTOMAKE([foreign])
27768 AC_CONFIG_SRCDIR([prog.c])
27770 sysroot=$with_sysroot
27771 AC_SUBST([sysroot])
27772 AC_OUTPUT(Makefile)
27776 cat >prog/Makefile.am <<'_ATEOF'
27777 bin_PROGRAMS = prog
27778 prog_SOURCES = prog.c
27779 prog_LDADD = -L$(sysroot)$(libdir) -l2
27783 cat >prog/prog.c <<'_ATEOF'
27785 #include <string.h>
27786 #include <stdlib.h>
27787 extern char *g(const char *s);
27790 char *q = g("hello world");
27802 $as_echo "$at_srcdir/sysroot.at:204: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
27803 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:204"
27804 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
27805 ) >>"$at_stdout" 2>>"$at_stderr"
27806 at_status=$? at_failed=false
27808 echo stderr:; cat "$at_stderr"
27809 echo stdout:; cat "$at_stdout"
27810 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27811 $at_failed && at_fn_log_failure
27819 $as_echo "$at_srcdir/sysroot.at:204: \$AUTOMAKE --add-missing"
27820 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:204"
27821 ( $at_check_trace; $AUTOMAKE --add-missing
27822 ) >>"$at_stdout" 2>>"$at_stderr"
27823 at_status=$? at_failed=false
27825 echo stderr:; tee stderr <"$at_stderr"
27826 echo stdout:; cat "$at_stdout"
27827 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27828 if $at_failed; then :
27830 $as_echo "$at_srcdir/sysroot.at:204: grep 'require .*but have' stderr && (exit 77)"
27831 at_fn_check_prepare_trace "sysroot.at:204"
27832 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
27833 ) >>"$at_stdout" 2>>"$at_stderr"
27834 at_status=$? at_failed=false
27836 at_fn_diff_devnull "$at_stderr" || at_failed=:
27837 at_fn_diff_devnull "$at_stdout" || at_failed=:
27838 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:204"
27839 $at_failed && at_fn_log_failure
27843 $at_failed && at_fn_log_failure
27850 $as_echo "$at_srcdir/sysroot.at:204: \$AUTOCONF "
27851 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:204"
27852 ( $at_check_trace; $AUTOCONF
27853 ) >>"$at_stdout" 2>>"$at_stderr"
27854 at_status=$? at_failed=false
27856 echo stderr:; cat "$at_stderr"
27857 echo stdout:; cat "$at_stdout"
27858 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27859 $at_failed && at_fn_log_failure
27866 $as_echo "$at_srcdir/sysroot.at:204: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
27867 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:204"
27868 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
27869 ) >>"$at_stdout" 2>>"$at_stderr"
27870 at_status=$? at_failed=false
27872 echo stderr:; cat "$at_stderr"
27873 echo stdout:; cat "$at_stdout"
27874 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27875 $at_failed && at_fn_log_failure
27882 $as_echo "$at_srcdir/sysroot.at:204: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
27883 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:204"
27884 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
27885 ) >>"$at_stdout" 2>>"$at_stderr"
27886 at_status=$? at_failed=false
27888 echo stderr:; cat "$at_stderr"
27889 echo stdout:; cat "$at_stdout"
27890 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27891 $at_failed && at_fn_log_failure
27899 $as_echo "$at_srcdir/sysroot.at:204: \$MAKE install DESTDIR=\$sysroot"
27900 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:204"
27901 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
27902 ) >>"$at_stdout" 2>>"$at_stderr"
27903 at_status=$? at_failed=false
27905 echo stderr:; cat "$at_stderr"
27906 echo stdout:; cat "$at_stdout"
27907 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27908 $at_failed && at_fn_log_failure
27912 $as_echo "$at_srcdir/sysroot.at:204: test -f \$sysroot/\$prefix/bin/prog\$EXEEXT"
27913 at_fn_check_prepare_dynamic "test -f $sysroot/$prefix/bin/prog$EXEEXT" "sysroot.at:204"
27914 ( $at_check_trace; test -f $sysroot/$prefix/bin/prog$EXEEXT
27915 ) >>"$at_stdout" 2>>"$at_stderr"
27916 at_status=$? at_failed=false
27918 at_fn_diff_devnull "$at_stderr" || at_failed=:
27919 at_fn_diff_devnull "$at_stdout" || at_failed=:
27920 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27921 $at_failed && at_fn_log_failure
27925 $as_echo "$at_srcdir/sysroot.at:204: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/bin/prog\$EXEEXT\""
27926 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/bin/prog$EXEEXT\"" "sysroot.at:204"
27927 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/bin/prog$EXEEXT"
27928 ) >>"$at_stdout" 2>>"$at_stderr"
27929 at_status=$? at_failed=false
27931 at_fn_diff_devnull "$at_stderr" || at_failed=:
27932 at_fn_diff_devnull "$at_stdout" || at_failed=:
27933 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:204"
27934 $at_failed && at_fn_log_failure
27938 $as_echo "$at_srcdir/sysroot.at:204: grep \"'.*=\" \$sysroot/\$prefix/lib/lib2.la"
27939 at_fn_check_prepare_dynamic "grep \"'.*=\" $sysroot/$prefix/lib/lib2.la" "sysroot.at:204"
27940 ( $at_check_trace; grep "'.*=" $sysroot/$prefix/lib/lib2.la
27941 ) >>"$at_stdout" 2>>"$at_stderr"
27942 at_status=$? at_failed=false
27944 at_fn_diff_devnull "$at_stderr" || at_failed=:
27945 echo stdout:; cat "$at_stdout"
27946 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27947 $at_failed && at_fn_log_failure
27951 $as_echo "$at_srcdir/sysroot.at:204: ./libtool --mode=finish \$sysroot/\$prefix/lib/lib[12].la"
27952 at_fn_check_prepare_dynamic "./libtool --mode=finish $sysroot/$prefix/lib/lib[12].la" "sysroot.at:204"
27953 ( $at_check_trace; ./libtool --mode=finish $sysroot/$prefix/lib/lib[12].la
27954 ) >>"$at_stdout" 2>>"$at_stderr"
27955 at_status=$? at_failed=false
27957 at_fn_diff_devnull "$at_stderr" || at_failed=:
27958 echo stdout:; cat "$at_stdout"
27959 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:204"
27960 $at_failed && at_fn_log_failure
27964 $as_echo "$at_srcdir/sysroot.at:204: grep \"'.*=\" \$sysroot/\$prefix/lib/lib[12].la"
27965 at_fn_check_prepare_dynamic "grep \"'.*=\" $sysroot/$prefix/lib/lib[12].la" "sysroot.at:204"
27966 ( $at_check_trace; grep "'.*=" $sysroot/$prefix/lib/lib[12].la
27967 ) >>"$at_stdout" 2>>"$at_stderr"
27968 at_status=$? at_failed=false
27970 at_fn_diff_devnull "$at_stderr" || at_failed=:
27971 at_fn_diff_devnull "$at_stdout" || at_failed=:
27972 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:204"
27973 $at_failed && at_fn_log_failure
27978 # 1) pass absolute .la files
27979 # 2) pass absolute -L
27980 # 2) pass relative .la files
27984 $at_times_p && times >"$at_times_file"
27985 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27986 read at_status <"$at_status_file"
27989 at_fn_group_banner 126 'sysroot.at:205' \
27990 "SYSROOT/.../*.la" " " 21
27992 test "$ACLOCAL" = no && at_xfail=yes
27993 test "$AUTOMAKE" = no && at_xfail=yes
27994 test "$AUTOCONF" = no && at_xfail=yes
27995 test "$ACLOCAL" = no && at_xfail=yes
27996 test "$AUTOMAKE" = no && at_xfail=yes
27997 test "$AUTOCONF" = no && at_xfail=yes
27998 test "$ACLOCAL" = no && at_xfail=yes
27999 test "$AUTOMAKE" = no && at_xfail=yes
28000 test "$AUTOCONF" = no && at_xfail=yes
28002 $as_echo "126. $at_setup_line: testing $at_desc ..."
28007 gcc_sysroot=`$CC --print-sysroot 2> /dev/null`
28008 if test $? != 0; then
28012 $as_echo "$at_srcdir/sysroot.at:205: test -n \"\$gcc_sysroot\" || exit 77"
28013 at_fn_check_prepare_dynamic "test -n \"$gcc_sysroot\" || exit 77" "sysroot.at:205"
28014 ( $at_check_trace; test -n "$gcc_sysroot" || exit 77
28015 ) >>"$at_stdout" 2>>"$at_stderr"
28016 at_status=$? at_failed=false
28018 at_fn_diff_devnull "$at_stderr" || at_failed=:
28019 at_fn_diff_devnull "$at_stdout" || at_failed=:
28020 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28021 $at_failed && at_fn_log_failure
28025 # Detect installation prefix for the compiler
28027 for i in crt0.o crt1.o crt2.o crti.o; do
28028 j=`$CC --print-file-name $i 2> /dev/null`
28029 test $? = 0 || continue
28031 $gcc_sysroot*/lib/$i)
28032 prefix=`echo "$j" | sed "s,^$gcc_sysroot\\(.*\\)/lib/$i\$,\\1,"`
28037 $as_echo "$at_srcdir/sysroot.at:205: test -n \"\$prefix\" || exit 77"
28038 at_fn_check_prepare_dynamic "test -n \"$prefix\" || exit 77" "sysroot.at:205"
28039 ( $at_check_trace; test -n "$prefix" || exit 77
28040 ) >>"$at_stdout" 2>>"$at_stderr"
28041 at_status=$? at_failed=false
28043 at_fn_diff_devnull "$at_stderr" || at_failed=:
28044 at_fn_diff_devnull "$at_stdout" || at_failed=:
28045 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28046 $at_failed && at_fn_log_failure
28050 sysroot=`pwd`/sys-root
28052 # difficult to use AS_DIRNAME inside the AT_CHECK macro, so
28053 # encapsulate as a shell function.
28055 $as_dirname -- "$1" ||
28056 $as_expr X"$1" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28057 X"$1" : 'X\(//\)[^/]' \| \
28058 X"$1" : 'X\(//\)$' \| \
28059 X"$1" : 'X\(/\)' \| . 2>/dev/null ||
28061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28065 /^X\(\/\/\)[^/].*/{
28081 $as_echo "$at_srcdir/sysroot.at:205:
28082 (cd \"\$gcc_sysroot\" && find \".\$prefix/bin\" \".\$prefix/include\" \".\$prefix/lib\" \\! -type d) | \\
28083 while read file; do
28084 dir=\`local_dirname \"\$sysroot/\$file\"\`
28085 test -d \"\$dir\" || mkdir -p \"\$dir\"
28086 rm -f \"\$sysroot/\$file\"
28087 ln -s \"\$gcc_sysroot/\$file\" \"\$sysroot/\$file\" || \\
28088 cp \"\$gcc_sysroot/\$file\" \"\$sysroot/\$file\"
28090 at_fn_check_prepare_notrace 'a `...` command substitution' "sysroot.at:205"
28092 (cd "$gcc_sysroot" && find ".$prefix/bin" ".$prefix/include" ".$prefix/lib" \! -type d) | \
28093 while read file; do
28094 dir=`local_dirname "$sysroot/$file"`
28095 test -d "$dir" || mkdir -p "$dir"
28096 rm -f "$sysroot/$file"
28097 ln -s "$gcc_sysroot/$file" "$sysroot/$file" || \
28098 cp "$gcc_sysroot/$file" "$sysroot/$file"
28100 ) >>"$at_stdout" 2>>"$at_stderr"
28101 at_status=$? at_failed=false
28103 at_fn_diff_devnull "$at_stderr" || at_failed=:
28104 at_fn_diff_devnull "$at_stdout" || at_failed=:
28105 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28106 $at_failed && at_fn_log_failure
28110 LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined"
28111 configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix"
28114 if test "$shlibpath_var" = PATH; then
28115 configure_options="$configure_options --libdir=/$prefix/bin"
28119 $as_echo "$at_srcdir/sysroot.at:205: mkdir lib1 lib2 prog"
28120 at_fn_check_prepare_trace "sysroot.at:205"
28121 ( $at_check_trace; mkdir lib1 lib2 prog
28122 ) >>"$at_stdout" 2>>"$at_stderr"
28123 at_status=$? at_failed=false
28125 at_fn_diff_devnull "$at_stderr" || at_failed=:
28126 at_fn_diff_devnull "$at_stdout" || at_failed=:
28127 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28128 $at_failed && at_fn_log_failure
28132 # Build and install package 1.
28133 cat >lib1/configure.ac <<'_ATEOF'
28134 AC_INIT([lib1], [1.0])
28135 AM_INIT_AUTOMAKE([foreign])
28137 AC_CONFIG_SRCDIR([lib1.c])
28139 AC_OUTPUT(Makefile)
28143 cat >lib1/Makefile.am <<'_ATEOF'
28144 lib_LTLIBRARIES = lib1.la
28145 lib1_la_SOURCES = lib1.c
28146 lib1_la_LDFLAGS = -rpath $(libdir)
28150 cat >lib1/lib1.c <<'_ATEOF'
28151 #include <string.h>
28152 #include <stdlib.h>
28153 char *f(const char *s)
28165 $as_echo "$at_srcdir/sysroot.at:205: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
28166 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:205"
28167 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
28168 ) >>"$at_stdout" 2>>"$at_stderr"
28169 at_status=$? at_failed=false
28171 echo stderr:; cat "$at_stderr"
28172 echo stdout:; cat "$at_stdout"
28173 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28174 $at_failed && at_fn_log_failure
28182 $as_echo "$at_srcdir/sysroot.at:205: \$AUTOMAKE --add-missing"
28183 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:205"
28184 ( $at_check_trace; $AUTOMAKE --add-missing
28185 ) >>"$at_stdout" 2>>"$at_stderr"
28186 at_status=$? at_failed=false
28188 echo stderr:; tee stderr <"$at_stderr"
28189 echo stdout:; cat "$at_stdout"
28190 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28191 if $at_failed; then :
28193 $as_echo "$at_srcdir/sysroot.at:205: grep 'require .*but have' stderr && (exit 77)"
28194 at_fn_check_prepare_trace "sysroot.at:205"
28195 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
28196 ) >>"$at_stdout" 2>>"$at_stderr"
28197 at_status=$? at_failed=false
28199 at_fn_diff_devnull "$at_stderr" || at_failed=:
28200 at_fn_diff_devnull "$at_stdout" || at_failed=:
28201 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:205"
28202 $at_failed && at_fn_log_failure
28206 $at_failed && at_fn_log_failure
28213 $as_echo "$at_srcdir/sysroot.at:205: \$AUTOCONF "
28214 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:205"
28215 ( $at_check_trace; $AUTOCONF
28216 ) >>"$at_stdout" 2>>"$at_stderr"
28217 at_status=$? at_failed=false
28219 echo stderr:; cat "$at_stderr"
28220 echo stdout:; cat "$at_stdout"
28221 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28222 $at_failed && at_fn_log_failure
28229 $as_echo "$at_srcdir/sysroot.at:205: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
28230 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:205"
28231 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
28232 ) >>"$at_stdout" 2>>"$at_stderr"
28233 at_status=$? at_failed=false
28235 echo stderr:; cat "$at_stderr"
28236 echo stdout:; cat "$at_stdout"
28237 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28238 $at_failed && at_fn_log_failure
28245 $as_echo "$at_srcdir/sysroot.at:205: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
28246 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:205"
28247 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
28248 ) >>"$at_stdout" 2>>"$at_stderr"
28249 at_status=$? at_failed=false
28251 echo stderr:; cat "$at_stderr"
28252 echo stdout:; cat "$at_stdout"
28253 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28254 $at_failed && at_fn_log_failure
28262 $as_echo "$at_srcdir/sysroot.at:205: \$MAKE install DESTDIR=\$sysroot"
28263 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:205"
28264 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
28265 ) >>"$at_stdout" 2>>"$at_stderr"
28266 at_status=$? at_failed=false
28268 echo stderr:; cat "$at_stderr"
28269 echo stdout:; cat "$at_stdout"
28270 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28271 $at_failed && at_fn_log_failure
28275 $as_echo "$at_srcdir/sysroot.at:205: test -f \"\$sysroot/\$prefix/lib/lib1.la\""
28276 at_fn_check_prepare_dynamic "test -f \"$sysroot/$prefix/lib/lib1.la\"" "sysroot.at:205"
28277 ( $at_check_trace; test -f "$sysroot/$prefix/lib/lib1.la"
28278 ) >>"$at_stdout" 2>>"$at_stderr"
28279 at_status=$? at_failed=false
28281 at_fn_diff_devnull "$at_stderr" || at_failed=:
28282 at_fn_diff_devnull "$at_stdout" || at_failed=:
28283 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28284 $at_failed && at_fn_log_failure
28288 $as_echo "$at_srcdir/sysroot.at:205: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/lib/lib1.la\""
28289 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/lib/lib1.la\"" "sysroot.at:205"
28290 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/lib/lib1.la"
28291 ) >>"$at_stdout" 2>>"$at_stderr"
28292 at_status=$? at_failed=false
28294 at_fn_diff_devnull "$at_stderr" || at_failed=:
28295 at_fn_diff_devnull "$at_stdout" || at_failed=:
28296 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:205"
28297 $at_failed && at_fn_log_failure
28302 # Build and install package 2.
28303 cat >lib2/configure.ac <<'_ATEOF'
28304 AC_INIT([lib2], [1.0])
28305 AM_INIT_AUTOMAKE([foreign])
28307 AC_CONFIG_SRCDIR([lib2.c])
28309 sysroot=$with_sysroot
28310 AC_SUBST([sysroot])
28311 AC_OUTPUT(Makefile)
28315 cat >lib2/Makefile.am <<'_ATEOF'
28316 lib_LTLIBRARIES = lib2.la
28317 lib2_la_SOURCES = lib2.c
28318 lib2_la_LDFLAGS = -rpath $(libdir)
28319 lib2_la_LIBADD = $(sysroot)$(libdir)/lib1.la
28323 cat >lib2/lib2.c <<'_ATEOF'
28325 #include <string.h>
28326 #include <stdlib.h>
28327 extern char *f(const char *s);
28328 char *g(const char *s)
28342 $as_echo "$at_srcdir/sysroot.at:205: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
28343 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:205"
28344 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
28345 ) >>"$at_stdout" 2>>"$at_stderr"
28346 at_status=$? at_failed=false
28348 echo stderr:; cat "$at_stderr"
28349 echo stdout:; cat "$at_stdout"
28350 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28351 $at_failed && at_fn_log_failure
28359 $as_echo "$at_srcdir/sysroot.at:205: \$AUTOMAKE --add-missing"
28360 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:205"
28361 ( $at_check_trace; $AUTOMAKE --add-missing
28362 ) >>"$at_stdout" 2>>"$at_stderr"
28363 at_status=$? at_failed=false
28365 echo stderr:; tee stderr <"$at_stderr"
28366 echo stdout:; cat "$at_stdout"
28367 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28368 if $at_failed; then :
28370 $as_echo "$at_srcdir/sysroot.at:205: grep 'require .*but have' stderr && (exit 77)"
28371 at_fn_check_prepare_trace "sysroot.at:205"
28372 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
28373 ) >>"$at_stdout" 2>>"$at_stderr"
28374 at_status=$? at_failed=false
28376 at_fn_diff_devnull "$at_stderr" || at_failed=:
28377 at_fn_diff_devnull "$at_stdout" || at_failed=:
28378 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:205"
28379 $at_failed && at_fn_log_failure
28383 $at_failed && at_fn_log_failure
28390 $as_echo "$at_srcdir/sysroot.at:205: \$AUTOCONF "
28391 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:205"
28392 ( $at_check_trace; $AUTOCONF
28393 ) >>"$at_stdout" 2>>"$at_stderr"
28394 at_status=$? at_failed=false
28396 echo stderr:; cat "$at_stderr"
28397 echo stdout:; cat "$at_stdout"
28398 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28399 $at_failed && at_fn_log_failure
28406 $as_echo "$at_srcdir/sysroot.at:205: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
28407 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:205"
28408 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
28409 ) >>"$at_stdout" 2>>"$at_stderr"
28410 at_status=$? at_failed=false
28412 echo stderr:; cat "$at_stderr"
28413 echo stdout:; cat "$at_stdout"
28414 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28415 $at_failed && at_fn_log_failure
28422 $as_echo "$at_srcdir/sysroot.at:205: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
28423 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:205"
28424 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
28425 ) >>"$at_stdout" 2>>"$at_stderr"
28426 at_status=$? at_failed=false
28428 echo stderr:; cat "$at_stderr"
28429 echo stdout:; cat "$at_stdout"
28430 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28431 $at_failed && at_fn_log_failure
28439 $as_echo "$at_srcdir/sysroot.at:205: \$MAKE install DESTDIR=\$sysroot"
28440 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:205"
28441 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
28442 ) >>"$at_stdout" 2>>"$at_stderr"
28443 at_status=$? at_failed=false
28445 echo stderr:; cat "$at_stderr"
28446 echo stdout:; cat "$at_stdout"
28447 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28448 $at_failed && at_fn_log_failure
28452 $as_echo "$at_srcdir/sysroot.at:205: test -f \$sysroot/\$prefix/lib/lib2.la"
28453 at_fn_check_prepare_dynamic "test -f $sysroot/$prefix/lib/lib2.la" "sysroot.at:205"
28454 ( $at_check_trace; test -f $sysroot/$prefix/lib/lib2.la
28455 ) >>"$at_stdout" 2>>"$at_stderr"
28456 at_status=$? at_failed=false
28458 at_fn_diff_devnull "$at_stderr" || at_failed=:
28459 at_fn_diff_devnull "$at_stdout" || at_failed=:
28460 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28461 $at_failed && at_fn_log_failure
28465 $as_echo "$at_srcdir/sysroot.at:205: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/lib/lib2.la\""
28466 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/lib/lib2.la\"" "sysroot.at:205"
28467 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/lib/lib2.la"
28468 ) >>"$at_stdout" 2>>"$at_stderr"
28469 at_status=$? at_failed=false
28471 at_fn_diff_devnull "$at_stderr" || at_failed=:
28472 at_fn_diff_devnull "$at_stdout" || at_failed=:
28473 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:205"
28474 $at_failed && at_fn_log_failure
28479 # Build and install a program.
28480 cat >prog/configure.ac <<'_ATEOF'
28481 AC_INIT([prog], [1.0])
28482 AM_INIT_AUTOMAKE([foreign])
28484 AC_CONFIG_SRCDIR([prog.c])
28486 sysroot=$with_sysroot
28487 AC_SUBST([sysroot])
28488 AC_OUTPUT(Makefile)
28492 cat >prog/Makefile.am <<'_ATEOF'
28493 bin_PROGRAMS = prog
28494 prog_SOURCES = prog.c
28495 prog_LDADD = $(sysroot)$(libdir)/lib2.la
28499 cat >prog/prog.c <<'_ATEOF'
28501 #include <string.h>
28502 #include <stdlib.h>
28503 extern char *g(const char *s);
28506 char *q = g("hello world");
28518 $as_echo "$at_srcdir/sysroot.at:205: \$ACLOCAL -I \$abs_top_srcdir/libltdl/m4"
28519 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/libltdl/m4" "sysroot.at:205"
28520 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/libltdl/m4
28521 ) >>"$at_stdout" 2>>"$at_stderr"
28522 at_status=$? at_failed=false
28524 echo stderr:; cat "$at_stderr"
28525 echo stdout:; cat "$at_stdout"
28526 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28527 $at_failed && at_fn_log_failure
28535 $as_echo "$at_srcdir/sysroot.at:205: \$AUTOMAKE --add-missing"
28536 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "sysroot.at:205"
28537 ( $at_check_trace; $AUTOMAKE --add-missing
28538 ) >>"$at_stdout" 2>>"$at_stderr"
28539 at_status=$? at_failed=false
28541 echo stderr:; tee stderr <"$at_stderr"
28542 echo stdout:; cat "$at_stdout"
28543 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28544 if $at_failed; then :
28546 $as_echo "$at_srcdir/sysroot.at:205: grep 'require .*but have' stderr && (exit 77)"
28547 at_fn_check_prepare_trace "sysroot.at:205"
28548 ( $at_check_trace; grep 'require .*but have' stderr && (exit 77)
28549 ) >>"$at_stdout" 2>>"$at_stderr"
28550 at_status=$? at_failed=false
28552 at_fn_diff_devnull "$at_stderr" || at_failed=:
28553 at_fn_diff_devnull "$at_stdout" || at_failed=:
28554 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:205"
28555 $at_failed && at_fn_log_failure
28559 $at_failed && at_fn_log_failure
28566 $as_echo "$at_srcdir/sysroot.at:205: \$AUTOCONF "
28567 at_fn_check_prepare_dynamic "$AUTOCONF " "sysroot.at:205"
28568 ( $at_check_trace; $AUTOCONF
28569 ) >>"$at_stdout" 2>>"$at_stderr"
28570 at_status=$? at_failed=false
28572 echo stderr:; cat "$at_stderr"
28573 echo stdout:; cat "$at_stdout"
28574 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28575 $at_failed && at_fn_log_failure
28582 $as_echo "$at_srcdir/sysroot.at:205: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; \$CONFIG_SHELL ./configure \$configure_options "
28583 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "sysroot.at:205"
28584 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; $CONFIG_SHELL ./configure $configure_options
28585 ) >>"$at_stdout" 2>>"$at_stderr"
28586 at_status=$? at_failed=false
28588 echo stderr:; cat "$at_stderr"
28589 echo stdout:; cat "$at_stdout"
28590 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28591 $at_failed && at_fn_log_failure
28598 $as_echo "$at_srcdir/sysroot.at:205: \$unset LIBTOOL LIBTOOLIZE; \$MAKE \$target "
28599 at_fn_check_prepare_dynamic "$unset LIBTOOL LIBTOOLIZE; $MAKE $target " "sysroot.at:205"
28600 ( $at_check_trace; $unset LIBTOOL LIBTOOLIZE; $MAKE $target
28601 ) >>"$at_stdout" 2>>"$at_stderr"
28602 at_status=$? at_failed=false
28604 echo stderr:; cat "$at_stderr"
28605 echo stdout:; cat "$at_stdout"
28606 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28607 $at_failed && at_fn_log_failure
28615 $as_echo "$at_srcdir/sysroot.at:205: \$MAKE install DESTDIR=\$sysroot"
28616 at_fn_check_prepare_dynamic "$MAKE install DESTDIR=$sysroot" "sysroot.at:205"
28617 ( $at_check_trace; $MAKE install DESTDIR=$sysroot
28618 ) >>"$at_stdout" 2>>"$at_stderr"
28619 at_status=$? at_failed=false
28621 echo stderr:; cat "$at_stderr"
28622 echo stdout:; cat "$at_stdout"
28623 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28624 $at_failed && at_fn_log_failure
28628 $as_echo "$at_srcdir/sysroot.at:205: test -f \$sysroot/\$prefix/bin/prog\$EXEEXT"
28629 at_fn_check_prepare_dynamic "test -f $sysroot/$prefix/bin/prog$EXEEXT" "sysroot.at:205"
28630 ( $at_check_trace; test -f $sysroot/$prefix/bin/prog$EXEEXT
28631 ) >>"$at_stdout" 2>>"$at_stderr"
28632 at_status=$? at_failed=false
28634 at_fn_diff_devnull "$at_stderr" || at_failed=:
28635 at_fn_diff_devnull "$at_stdout" || at_failed=:
28636 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28637 $at_failed && at_fn_log_failure
28641 $as_echo "$at_srcdir/sysroot.at:205: grep -F \"\$sysroot\" \"\$sysroot/\$prefix/bin/prog\$EXEEXT\""
28642 at_fn_check_prepare_dynamic "grep -F \"$sysroot\" \"$sysroot/$prefix/bin/prog$EXEEXT\"" "sysroot.at:205"
28643 ( $at_check_trace; grep -F "$sysroot" "$sysroot/$prefix/bin/prog$EXEEXT"
28644 ) >>"$at_stdout" 2>>"$at_stderr"
28645 at_status=$? at_failed=false
28647 at_fn_diff_devnull "$at_stderr" || at_failed=:
28648 at_fn_diff_devnull "$at_stdout" || at_failed=:
28649 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:205"
28650 $at_failed && at_fn_log_failure
28654 $as_echo "$at_srcdir/sysroot.at:205: grep \"'.*=\" \$sysroot/\$prefix/lib/lib2.la"
28655 at_fn_check_prepare_dynamic "grep \"'.*=\" $sysroot/$prefix/lib/lib2.la" "sysroot.at:205"
28656 ( $at_check_trace; grep "'.*=" $sysroot/$prefix/lib/lib2.la
28657 ) >>"$at_stdout" 2>>"$at_stderr"
28658 at_status=$? at_failed=false
28660 at_fn_diff_devnull "$at_stderr" || at_failed=:
28661 echo stdout:; cat "$at_stdout"
28662 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28663 $at_failed && at_fn_log_failure
28667 $as_echo "$at_srcdir/sysroot.at:205: ./libtool --mode=finish \$sysroot/\$prefix/lib/lib[12].la"
28668 at_fn_check_prepare_dynamic "./libtool --mode=finish $sysroot/$prefix/lib/lib[12].la" "sysroot.at:205"
28669 ( $at_check_trace; ./libtool --mode=finish $sysroot/$prefix/lib/lib[12].la
28670 ) >>"$at_stdout" 2>>"$at_stderr"
28671 at_status=$? at_failed=false
28673 at_fn_diff_devnull "$at_stderr" || at_failed=:
28674 echo stdout:; cat "$at_stdout"
28675 at_fn_check_status 0 $at_status "$at_srcdir/sysroot.at:205"
28676 $at_failed && at_fn_log_failure
28680 $as_echo "$at_srcdir/sysroot.at:205: grep \"'.*=\" \$sysroot/\$prefix/lib/lib[12].la"
28681 at_fn_check_prepare_dynamic "grep \"'.*=\" $sysroot/$prefix/lib/lib[12].la" "sysroot.at:205"
28682 ( $at_check_trace; grep "'.*=" $sysroot/$prefix/lib/lib[12].la
28683 ) >>"$at_stdout" 2>>"$at_stderr"
28684 at_status=$? at_failed=false
28686 at_fn_diff_devnull "$at_stderr" || at_failed=:
28687 at_fn_diff_devnull "$at_stdout" || at_failed=:
28688 at_fn_check_status 1 $at_status "$at_srcdir/sysroot.at:205"
28689 $at_failed && at_fn_log_failure
28694 # 1) pass absolute .la files
28695 # 2) pass absolute -L
28696 # 2) pass relative .la files
28700 $at_times_p && times >"$at_times_file"
28701 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28702 read at_status <"$at_status_file"