"Fossies" - the Fresh Open Source Software Archive

Member "libtool-2.4.6/tests/testsuite" (15 Feb 2015, 1651906 Bytes) of package /linux/misc/libtool-2.4.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 # Generated from tests/testsuite.at by GNU Autoconf 2.69.
    3 #
    4 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
    5 #
    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 ## -------------------- ##
   11 
   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 :
   15   emulate sh
   16   NULLCMD=:
   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+"$@"}'='"$@"'
   20   setopt NO_GLOB_SUBST
   21 else
   22   case `(set -o) 2>/dev/null` in #(
   23   *posix*) :
   24     set -o posix ;; #(
   25   *) :
   26      ;;
   27 esac
   28 fi
   29 
   30 
   31 as_nl='
   32 '
   33 export as_nl
   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
   42   as_echo='print -r --'
   43   as_echo_n='print -rn --'
   44 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   45   as_echo='printf %s\n'
   46   as_echo_n='printf %s'
   47 else
   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'
   51   else
   52     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   53     as_echo_n_body='eval
   54       arg=$1;
   55       case $arg in #(
   56       *"$as_nl"*)
   57     expr "X$arg" : "X\\(.*\\)$as_nl";
   58     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   59       esac;
   60       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   61     '
   62     export as_echo_n_body
   63     as_echo_n='sh -c $as_echo_n_body as_echo'
   64   fi
   65   export as_echo_body
   66   as_echo='sh -c $as_echo_body as_echo'
   67 fi
   68 
   69 # The user is always right.
   70 if test "${PATH_SEPARATOR+set}" != set; then
   71   PATH_SEPARATOR=:
   72   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   73     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   74       PATH_SEPARATOR=';'
   75   }
   76 fi
   77 
   78 
   79 # IFS
   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.)
   84 IFS=" ""    $as_nl"
   85 
   86 # Find who we are.  Look in the path if we contain no directory separator.
   87 as_myself=
   88 case $0 in #((
   89   *[\\/]* ) as_myself=$0 ;;
   90   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   91 for as_dir in $PATH
   92 do
   93   IFS=$as_save_IFS
   94   test -z "$as_dir" && as_dir=.
   95     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   96   done
   97 IFS=$as_save_IFS
   98 
   99      ;;
  100 esac
  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
  104   as_myself=$0
  105 fi
  106 if test ! -f "$as_myself"; then
  107   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  108   exit 1
  109 fi
  110 
  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 || :
  118 done
  119 PS1='$ '
  120 PS2='> '
  121 PS4='+ '
  122 
  123 # NLS nuisances.
  124 LC_ALL=C
  125 export LC_ALL
  126 LANGUAGE=C
  127 export LANGUAGE
  128 
  129 # CDPATH.
  130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  131 
  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 :
  134   emulate sh
  135   NULLCMD=:
  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+\"\$@\"}'='\"\$@\"'
  139   setopt NO_GLOB_SUBST
  140 else
  141   case \`(set -o) 2>/dev/null\` in #(
  142   *posix*) :
  143     set -o posix ;; #(
  144   *) :
  145      ;;
  146 esac
  147 fi
  148 "
  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; }
  154 
  155 exitcode=0
  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 :
  161 
  162 else
  163   exitcode=1; echo positional parameters were not saved.
  164 fi
  165 test x\$exitcode = x0 || exit 1
  166 test -x / || exit 1"
  167   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  168   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  169   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  170   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  171 test \$(( 1 + 1 )) = 2 || exit 1"
  172   if (eval "$as_required") 2>/dev/null; then :
  173   as_have_required=yes
  174 else
  175   as_have_required=no
  176 fi
  177   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  178 
  179 else
  180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  181 as_found=false
  182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  183 do
  184   IFS=$as_save_IFS
  185   test -z "$as_dir" && as_dir=.
  186   as_found=:
  187   case $as_dir in #(
  188      /*)
  189        for as_base in sh bash ksh sh5; do
  190          # Try only shells that exist, to save several forks.
  191          as_shell=$as_dir/$as_base
  192          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  193             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194   CONFIG_SHELL=$as_shell as_have_required=yes
  195            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  196   break 2
  197 fi
  198 fi
  199        done;;
  200        esac
  201   as_found=false
  202 done
  203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  204           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  205   CONFIG_SHELL=$SHELL as_have_required=yes
  206 fi; }
  207 IFS=$as_save_IFS
  208 
  209 
  210       if test "x$CONFIG_SHELL" != x; then :
  211   export CONFIG_SHELL
  212              # We cannot yet assume a decent shell, so we have to provide a
  213 # neutralization value for shells without unset; and this also
  214 # works around shells that cannot unset nonexistent variables.
  215 # Preserve -v and -x to the replacement shell.
  216 BASH_ENV=/dev/null
  217 ENV=/dev/null
  218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  219 case $- in # ((((
  220   *v*x* | *x*v* ) as_opts=-vx ;;
  221   *v* ) as_opts=-v ;;
  222   *x* ) as_opts=-x ;;
  223   * ) as_opts= ;;
  224 esac
  225 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  226 # Admittedly, this is quite paranoid, since all the known shells bail
  227 # out after a failed `exec'.
  228 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  229 exit 255
  230 fi
  231 
  232     if test x$as_have_required = xno; then :
  233   $as_echo "$0: This script requires a shell more modern than all"
  234   $as_echo "$0: the shells that I found on your system."
  235   if test x${ZSH_VERSION+set} = xset ; then
  236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  238   else
  239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  240 $0: including any error possibly output before this
  241 $0: message. Then install a modern shell, or manually run
  242 $0: the script under such a shell if you do have one."
  243   fi
  244   exit 1
  245 fi
  246 fi
  247 fi
  248 SHELL=${CONFIG_SHELL-/bin/sh}
  249 export SHELL
  250 # Unset more variables known to interfere with behavior of common tools.
  251 CLICOLOR_FORCE= GREP_OPTIONS=
  252 unset CLICOLOR_FORCE GREP_OPTIONS
  253 
  254 ## --------------------- ##
  255 ## M4sh Shell Functions. ##
  256 ## --------------------- ##
  257 # as_fn_unset VAR
  258 # ---------------
  259 # Portably unset VAR.
  260 as_fn_unset ()
  261 {
  262   { eval $1=; unset $1;}
  263 }
  264 as_unset=as_fn_unset
  265 
  266 # as_fn_set_status STATUS
  267 # -----------------------
  268 # Set $? to STATUS, without forking.
  269 as_fn_set_status ()
  270 {
  271   return $1
  272 } # as_fn_set_status
  273 
  274 # as_fn_exit STATUS
  275 # -----------------
  276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  277 as_fn_exit ()
  278 {
  279   set +e
  280   as_fn_set_status $1
  281   exit $1
  282 } # as_fn_exit
  283 
  284 # as_fn_mkdir_p
  285 # -------------
  286 # Create "$as_dir" as a directory, including parents if necessary.
  287 as_fn_mkdir_p ()
  288 {
  289 
  290   case $as_dir in #(
  291   -*) as_dir=./$as_dir;;
  292   esac
  293   test -d "$as_dir" || eval $as_mkdir_p || {
  294     as_dirs=
  295     while :; do
  296       case $as_dir in #(
  297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  298       *) as_qdir=$as_dir;;
  299       esac
  300       as_dirs="'$as_qdir' $as_dirs"
  301       as_dir=`$as_dirname -- "$as_dir" ||
  302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  303      X"$as_dir" : 'X\(//\)[^/]' \| \
  304      X"$as_dir" : 'X\(//\)$' \| \
  305      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  306 $as_echo X"$as_dir" |
  307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  308         s//\1/
  309         q
  310       }
  311       /^X\(\/\/\)[^/].*/{
  312         s//\1/
  313         q
  314       }
  315       /^X\(\/\/\)$/{
  316         s//\1/
  317         q
  318       }
  319       /^X\(\/\).*/{
  320         s//\1/
  321         q
  322       }
  323       s/.*/./; q'`
  324       test -d "$as_dir" && break
  325     done
  326     test -z "$as_dirs" || eval "mkdir $as_dirs"
  327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  328 
  329 
  330 } # as_fn_mkdir_p
  331 
  332 # as_fn_executable_p FILE
  333 # -----------------------
  334 # Test if FILE is an executable regular file.
  335 as_fn_executable_p ()
  336 {
  337   test -f "$1" && test -x "$1"
  338 } # as_fn_executable_p
  339 # as_fn_append VAR VALUE
  340 # ----------------------
  341 # Append the text in VALUE to the end of the definition contained in VAR. Take
  342 # advantage of any shell optimizations that allow amortized linear growth over
  343 # repeated appends, instead of the typical quadratic growth present in naive
  344 # implementations.
  345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  346   eval 'as_fn_append ()
  347   {
  348     eval $1+=\$2
  349   }'
  350 else
  351   as_fn_append ()
  352   {
  353     eval $1=\$$1\$2
  354   }
  355 fi # as_fn_append
  356 
  357 # as_fn_arith ARG...
  358 # ------------------
  359 # Perform arithmetic evaluation on the ARGs, and store the result in the
  360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  361 # must be portable across $(()) and expr.
  362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  363   eval 'as_fn_arith ()
  364   {
  365     as_val=$(( $* ))
  366   }'
  367 else
  368   as_fn_arith ()
  369   {
  370     as_val=`expr "$@" || test $? -eq 1`
  371   }
  372 fi # as_fn_arith
  373 
  374 
  375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  376 # ----------------------------------------
  377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  379 # script with STATUS, using 1 if that was 0.
  380 as_fn_error ()
  381 {
  382   as_status=$1; test $as_status -eq 0 && as_status=1
  383   if test "$4"; then
  384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  386   fi
  387   $as_echo "$as_me: error: $2" >&2
  388   as_fn_exit $as_status
  389 } # as_fn_error
  390 
  391 if expr a : '\(a\)' >/dev/null 2>&1 &&
  392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  393   as_expr=expr
  394 else
  395   as_expr=false
  396 fi
  397 
  398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399   as_basename=basename
  400 else
  401   as_basename=false
  402 fi
  403 
  404 as_me=`$as_basename -- "$0" ||
  405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  406      X"$0" : 'X\(//\)$' \| \
  407      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  408 $as_echo X/"$0" |
  409     sed '/^.*\/\([^/][^/]*\)\/*$/{
  410         s//\1/
  411         q
  412       }
  413       /^X\/\(\/\/\)$/{
  414         s//\1/
  415         q
  416       }
  417       /^X\/\(\/\).*/{
  418         s//\1/
  419         q
  420       }
  421       s/.*/./; q'`
  422 
  423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  424   as_dirname=dirname
  425 else
  426   as_dirname=false
  427 fi
  428 
  429 # Avoid depending upon Character Ranges.
  430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  433 as_cr_digits='0123456789'
  434 as_cr_alnum=$as_cr_Letters$as_cr_digits
  435 
  436 
  437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  442   sed -n '
  443     p
  444     /[$]LINENO/=
  445   ' <$as_myself |
  446     sed '
  447       s/[$]LINENO.*/&-/
  448       t lineno
  449       b
  450       :lineno
  451       N
  452       :loop
  453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  454       t loop
  455       s/-\n.*//
  456     ' >$as_me.lineno &&
  457   chmod +x "$as_me.lineno" ||
  458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  459 
  460   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  461   # already done that, so ensure we don't try to do so again and fall
  462   # in an infinite loop.  This has already happened in practice.
  463   _as_can_reexec=no; export _as_can_reexec
  464   # Don't try to exec as it changes $[0], causing all sort of problems
  465   # (the dirname of $[0] is not the place where we might find the
  466   # original and so on.  Autoconf is especially sensitive to this).
  467   . "./$as_me.lineno"
  468   # Exit status is that of the last command.
  469   exit
  470 }
  471 
  472 ECHO_C= ECHO_N= ECHO_T=
  473 case `echo -n x` in #(((((
  474 -n*)
  475   case `echo 'xy\c'` in
  476   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477   xy)  ECHO_C='\c';;
  478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479        ECHO_T=' ';;
  480   esac;;
  481 *)
  482   ECHO_N='-n';;
  483 esac
  484 
  485 rm -f conf$$ conf$$.exe conf$$.file
  486 if test -d conf$$.dir; then
  487   rm -f conf$$.dir/conf$$.file
  488 else
  489   rm -f conf$$.dir
  490   mkdir conf$$.dir 2>/dev/null
  491 fi
  492 if (echo >conf$$.file) 2>/dev/null; then
  493   if ln -s conf$$.file conf$$ 2>/dev/null; then
  494     as_ln_s='ln -s'
  495     # ... but there are two gotchas:
  496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  498     # In both cases, we have to default to `cp -pR'.
  499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  500       as_ln_s='cp -pR'
  501   elif ln conf$$.file conf$$ 2>/dev/null; then
  502     as_ln_s=ln
  503   else
  504     as_ln_s='cp -pR'
  505   fi
  506 else
  507   as_ln_s='cp -pR'
  508 fi
  509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  510 rmdir conf$$.dir 2>/dev/null
  511 
  512 if mkdir -p . 2>/dev/null; then
  513   as_mkdir_p='mkdir -p "$as_dir"'
  514 else
  515   test -d ./-p && rmdir ./-p
  516   as_mkdir_p=false
  517 fi
  518 
  519 as_test_x='test -x'
  520 as_executable_p=as_fn_executable_p
  521 
  522 # Sed expression to map a string onto a valid CPP name.
  523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  524 
  525 # Sed expression to map a string onto a valid variable name.
  526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  527 
  528 
  529 
  530 
  531 
  532 SHELL=${CONFIG_SHELL-/bin/sh}
  533 
  534 # How were we run?
  535 at_cli_args="$@"
  536 
  537 
  538 # Not all shells have the 'times' builtin; the subshell is needed to make
  539 # sure we discard the 'times: not found' message from the shell.
  540 at_times_p=false
  541 (times) >/dev/null 2>&1 && at_times_p=:
  542 
  543 # CLI Arguments to pass to the debugging scripts.
  544 at_debug_args=
  545 # -e sets to true
  546 at_errexit_p=false
  547 # Shall we be verbose?  ':' means no, empty means yes.
  548 at_verbose=:
  549 at_quiet=
  550 # Running several jobs in parallel, 0 means as many as test groups.
  551 at_jobs=1
  552 at_traceon=:
  553 at_trace_echo=:
  554 at_check_filter_trace=:
  555 
  556 # Shall we keep the debug scripts?  Must be `:' when the suite is
  557 # run by a debug script, so that the script doesn't remove itself.
  558 at_debug_p=false
  559 # Display help message?
  560 at_help_p=false
  561 # Display the version message?
  562 at_version_p=false
  563 # List test groups?
  564 at_list_p=false
  565 # --clean
  566 at_clean=false
  567 # Test groups to run
  568 at_groups=
  569 # Whether to rerun failed tests.
  570 at_recheck=
  571 # Whether a write failure occurred
  572 at_write_fail=0
  573 
  574 # The directory we run the suite in.  Default to . if no -C option.
  575 at_dir=`pwd`
  576 # An absolute reference to this testsuite script.
  577 case $as_myself in
  578   [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
  579   * ) at_myself=$at_dir/$as_myself ;;
  580 esac
  581 # Whether -C is in effect.
  582 at_change_dir=false
  583 
  584 # Whether to enable colored test results.
  585 at_color=auto
  586 # List of the tested programs.
  587 at_tested=''
  588 # As many question marks as there are digits in the last test group number.
  589 # Used to normalize the test group numbers so that `ls' lists them in
  590 # numerical order.
  591 at_format='???'
  592 # Description of all the test groups.
  593 at_help_all="1;configure-funcs.at:39;func_munge_path_list works;;
  594 2;libtoolize.at:84;libtoolize macro installation;libtoolize;
  595 3;libtoolize.at:109;libtoolize macro directory mismatch error;libtoolize;
  596 4;libtoolize.at:130;multiple AC_CONFIG_MACRO_DIRS invocation;libtoolize;
  597 5;libtoolize.at:158;multiple AC_CONFIG_MACRO_DIRS directories;libtoolize;
  598 6;libtoolize.at:190;libtoolize ACLOCAL_AMFLAGS extraction;libtoolize;
  599 7;libtoolize.at:225;libtoolize macro serial update;libtoolize;
  600 8;libtoolize.at:298;libtoolize config files serial update;libtoolize;
  601 9;libtoolize.at:378;diagnose missing LT_CONFIG_LTDL_DIR;libtoolize;
  602 10;libtoolize.at:523;copy ltdl.m4 with shared macro directory;libtoolize;
  603 11;libtoolize.at:535;correctly parse LTDL_INIT from configure.ac;libtoolize;
  604 12;libtoolize.at:547;diagnose missing LTDL_INIT invocation;libtoolize;
  605 13;libtoolize.at:624;upgrading verbatim style aclocal.m4;libtoolize automake;
  606 14;libtoolize.at:748;verbatim aclocal.m4 w/o AC_CONFIG_MACRO_DIRS;libtoolize automake;
  607 15;libtoolize.at:877;nonrecursive ltdl with AC_CONFIG_MACRO_DIRS;libtoolize;
  608 16;libtoolize.at:948;subproject ltdl with unconventional layout;libtoolize;
  609 17;libtoolize.at:1024;Subproject ltdl without GNU M4;;
  610 18;libtoolize.at:1096;LIBTOOLIZE_OPTIONS;libtoolize;
  611 19;libtoolize.at:1142;cleanup old installation;libtoolize;
  612 20;libtool.at:33;check help output;;
  613 21;libtool.at:48;diagnose no mode specified;;
  614 22;libtool.at:60;quote shell meta-characters in filenames;;
  615 23;libtool.at:155;transform source suffices;;
  616 24;libtool.at:183;check link mode operation;;
  617 25;libtool.at:205;check objectlist file operation;;
  618 26;libtool.at:217;test LT_SUPPORTED_TAG interface;;
  619 27;demo.at:383;link against a preloaded static library;libtoolize automake autoconf;
  620 28;demo.at:400;build and dynamically load a module;libtoolize automake autoconf;
  621 29;demo.at:417;preload static and dynamic module;libtoolize automake autoconf;
  622 30;demo.at:437;deplibs_check_method;libtoolize automake autoconf;
  623 31;demo.at:478;disable fast install;libtoolize automake autoconf;
  624 32;demo.at:496;force PIC objects;libtoolize automake autoconf;
  625 33;demo.at:510;force non-PIC objects;libtoolize automake autoconf;
  626 34;demo.at:548;hardcoding library path;libtoolize automake autoconf;
  627 35;demo.at:714;binary relinking at install time;interactive libtoolize automake autoconf;
  628 36;demo.at:786;uninstalled libraries have priority;libtoolize automake autoconf;
  629 37;demo.at:809;linking with long file names;libtoolize automake autoconf;
  630 38;pic_flag.at:24;override pic_flag at configure time;libtoolize automake autoconf;
  631 39;with-pic.at:24;test --with-pic;libtoolize automake autoconf;
  632 40;cdemo.at:135;build and link against a static library;libtoolize automake autoconf;
  633 41;cdemo.at:150;build and link against a dynamic library;libtoolize automake autoconf;
  634 42;cdemo.at:165;build both static and dynamic;libtoolize automake autoconf;
  635 43;cdemo.at:180;allow_undefined_flag;libtoolize automake autoconf;
  636 44;convenience.at:30;C convenience archives;libtool;
  637 45;convenience.at:69;C++ convenience archives;cxx libtool;
  638 46;convenience.at:109;F77 convenience archives;f77 libtool;
  639 47;convenience.at:169;FC convenience archives;fc libtool;
  640 48;convenience.at:229;Java convenience archives;gcj libtool;
  641 49;depdemo.at:285;static library interdependencies;libtoolize automake autoconf;
  642 50;depdemo.at:302;shared library interdependencies;libtoolize automake autoconf;
  643 51;depdemo.at:319;shared and static interdependencies;libtoolize automake autoconf;
  644 52;depdemo.at:336;disable fast install;libtoolize automake autoconf;
  645 53;depdemo.at:354;binary relinking at install time;interactive libtoolize automake autoconf;
  646 54;help.at:26;standard command line options;libtool libtoolize;
  647 55;help.at:45;mode short-hands;;
  648 56;help.at:97;debug tracing;;
  649 57;duplicate_members.at:26;duplicate members in archive tests;libtool;
  650 58;duplicate_conv.at:25;duplicate convenience archive names;libtool;
  651 59;duplicate_deps.at:25;preserve duplicate convenience deps;libtool;
  652 60;flags.at:116;passing CC flags through libtool;libtool cc;
  653 61;flags.at:116;passing CXX flags through libtool;libtool cxx;
  654 62;flags.at:116;passing F77 flags through libtool;libtool f77;
  655 63;flags.at:116;passing FC flags through libtool;libtool fc;
  656 64;flags.at:116;passing GCJ flags through libtool;libtool gcj;
  657 65;inherited_flags.at:26;inherited_linker_flags;libtool;
  658 66;link-order.at:27;Link order test;libtool;
  659 67;link-order2.at:46;Link order of deplibs;libtool interactive;
  660 68;fail.at:28;Failure tests;libtool;
  661 69;shlibpath.at:25;shlibpath_overrides_runpath;libtool;
  662 70;runpath-in-lalib.at:25;Runpath in libtool library files;libtool;
  663 71;static.at:68;static linking flags for programs;libtool interactive;
  664 72;static.at:359;ccache -all-static;;
  665 73;export.at:25;Export test;libtool;
  666 74;export-def.at:25;export from a DLL with a .def file;libtool;
  667 75;search-path.at:24;sys_lib_search_path;libtool;
  668 76;search-path.at:62;sys_lib_search_path on w32;libtool;
  669 77;indirect_deps.at:25;indirect convenience;libtool;
  670 78;indirect_deps.at:71;indirect uninstalled;libtool;
  671 79;archive-in-archive.at:26;static library contains static library;libtool;
  672 80;exeext.at:26;both of -o prog and -o prog\$EXEEXT work;libtool;
  673 81;execute-mode.at:25;execute mode;libtool;
  674 82;bindir.at:64;bindir basic lib test;;
  675 83;bindir.at:173;bindir install tests;;
  676 84;cwrapper.at:25;cwrapper for uninstalled executables;libtool;
  677 85;cwrapper.at:138;cwrapper string length;;
  678 86;cwrapper.at:201;cwrapper and installed shared libraries;libtool;
  679 87;deplib-in-subdir.at:34;deplib in subdir;libtool;
  680 88;infer-tag.at:30;inferred tag;libtool;
  681 89;infer-tag.at:42;CXX inferred tag;cxx libtool;
  682 90;infer-tag.at:55;F77 inferred tag;f77 libtool;
  683 91;infer-tag.at:69;FC inferred tag;fc libtool;
  684 92;infer-tag.at:83;GCJ inferred tag;gcj libtool;
  685 93;localization.at:24;localized compiler messages;libtool;
  686 94;nocase.at:26;nocase library search;libtool;
  687 95;install.at:25;Install tests;libtool;
  688 96;versioning.at:24;versioning;libtool;
  689 97;destdir.at:48;Simple DESTDIR install;libtool;
  690 98;destdir.at:75;DESTDIR with in-package deplibs;libtool;
  691 99;old-m4-iface.at:41;AM_PROG_LIBTOOL;libtoolize autoconf;
  692 100;old-m4-iface.at:113;AC_WITH_LTDL;libtoolize automake autoconf;
  693 101;old-m4-iface.at:173;AC_CONFIG_MACRO_DIR;libtoolize;
  694 102;old-ltdl-iface.at:35;Makefile.inc;libtoolize automake autoconf;
  695 103;am-subdir.at:33;C subdir-objects;libtoolize automake autoconf;
  696 104;am-subdir.at:93;C++ subdir-objects;cxx libtoolize automake autoconf;
  697 105;lt_dlexit.at:30;lt_dlexit unloading libs;libltdl;
  698 106;lt_dladvise.at:28;lt_dlopenadvise library loading;libltdl;
  699 107;lt_dlopen.at:23;lt_dlopen error messages;libltdl;
  700 108;lt_dlopen_a.at:23;lt_dlopen archive;libltdl lt_dlopen_a;
  701 109;lt_dlopenext.at:23;lt_dlopenext error messages;libltdl;
  702 110;ltdl-libdir.at:23;libdir of installed modules;libltdl;
  703 111;ltdl-api.at:25;ltdl API;libltdl;
  704 112;dlloader-api.at:23;dlloader API;libltdl;
  705 113;loadlibrary.at:23;loadlibrary error messages;libltdl;
  706 114;lalib-syntax.at:24;syntax of .la files;libtool libltdl;
  707 115;resident.at:27;resident modules;libltdl;
  708 116;slist.at:24;SList functionality;;
  709 117;need_lib_prefix.at:25;enforced lib prefix;libltdl libtool;
  710 118;mdemo.at:625;dynamically ltdl preload static modules;libtoolize automake autoconf;
  711 119;mdemo.at:642;dynamically ltdl load a shared module;libtoolize automake autoconf;
  712 120;mdemo.at:659;ltdl load shared and static modules;libtoolize automake autoconf;
  713 121;mdemo.at:676;ltdl dryrun;libtoolize automake autoconf;
  714 122;mdemo.at:777;link with library that loads ltdl modules;libtoolize automake autoconf;
  715 123;standalone.at:31;compiling softlinked libltdl;libtoolize;
  716 124;standalone.at:46;compiling copied libltdl;libtoolize;
  717 125;standalone.at:61;installable libltdl;libtoolize;
  718 126;standalone.at:79;linking libltdl without autotools;libtoolize;
  719 127;subproject.at:57;compiling softlinked libltdl;libtoolize automake autoconf;
  720 128;subproject.at:73;compiling copied libltdl;libtoolize automake autoconf;
  721 129;subproject.at:89;installable libltdl;libtoolize automake autoconf;
  722 130;subproject.at:109;linking libltdl without autotools;libtoolize;
  723 131;nonrecursive.at:79;compiling softlinked libltdl;libtoolize automake autoconf;
  724 132;nonrecursive.at:103;compiling copied libltdl;libtoolize automake autoconf;
  725 133;nonrecursive.at:127;installable libltdl;libtoolize automake autoconf;
  726 134;recursive.at:60;compiling softlinked libltdl;libtoolize autoconf automake;
  727 135;recursive.at:80;compiling copied libltdl;libtoolize autoconf automake;
  728 136;recursive.at:100;installable libltdl;libtoolize autoconf automake;
  729 137;tagdemo.at:338;static library;cxx libtool libtoolize automake autoconf;
  730 138;tagdemo.at:353;shared library;cxx libtool libtoolize automake autoconf;
  731 139;tagdemo.at:368;shared and static together;cxx libtool libtoolize automake autoconf;
  732 140;tagdemo.at:383;allow_undefined_flag;cxx libtool libtoolize automake autoconf;
  733 141;template.at:28;simple template test;cxx libtool;
  734 142;template.at:127;template test with subdirs;cxx libtool;
  735 143;ctor.at:27;C++ static constructors;cxx libtool;
  736 144;exceptions.at:24;C++ exception handling;libtool libltdl;
  737 145;early-libtool.at:32;config.status;libtoolize automake autoconf;
  738 146;early-libtool.at:126;config.lt;libtoolize automake autoconf;
  739 147;no-executables.at:25;AC_NO_EXECUTABLES;libtoolize automake autoconf;
  740 148;deplibs-ident.at:33;build tree relpaths;libtool;
  741 149;configure-iface.at:102;installable libltdl;libltdl libtoolize automake autoconf;
  742 150;configure-iface.at:162;--with-ltdl-include/lib;libltdl libtoolize automake autoconf;
  743 151;configure-iface.at:243;--with-included-ltdl;libltdl libtoolize automake autoconf;
  744 152;configure-iface.at:304;convenience libltdl;libtoolize automake autoconf;
  745 153;f77demo.at:296;static library;interactive f77 libtool autoconf libtoolize automake;
  746 154;f77demo.at:314;shared library;f77 libtool autoconf libtoolize automake;
  747 155;f77demo.at:329;shared and static together;f77 libtool autoconf libtoolize automake;
  748 156;fcdemo.at:310;static library;interactive fc libtool autoconf libtoolize automake;
  749 157;fcdemo.at:328;shared library;fc libtool autoconf libtoolize automake;
  750 158;fcdemo.at:343;shared and static together;fc libtool autoconf libtoolize automake;
  751 159;darwin.at:26;darwin fat compile;;
  752 160;darwin.at:103;darwin concurrent library extraction;;
  753 161;darwin.at:152;darwin gdb debug information;;
  754 162;darwin.at:208;darwin ld warnings changing configure results;libtoolize autoconf automake;
  755 163;darwin.at:232;darwin can lt_dlopen .dylib and .so files;libltdl dylib;
  756 164;dumpbin-symbols.at:25;dumpbin -symbols section hiding;;
  757 165;deplibs-mingw.at:27;deplibs without file command;libtool;
  758 166;sysroot.at:203;-L=.../lib -l;libtool sysroot libtoolize automake autoconf;
  759 167;sysroot.at:204;-L SYSROOT/.../lib -l;libtool sysroot libtoolize automake autoconf;
  760 168;sysroot.at:205;SYSROOT/.../*.la;libtool sysroot libtoolize automake autoconf;
  761 169;stresstest.at:31;Link option thorough search test;libtool expensive;
  762 170;cmdline_wrap.at:28;Run tests with low max_cmd_len;recursive expensive;
  763 "
  764 # List of the all the test groups.
  765 at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
  766 
  767 # at_fn_validate_ranges NAME...
  768 # -----------------------------
  769 # Validate and normalize the test group number contained in each variable
  770 # NAME. Leading zeroes are treated as decimal.
  771 at_fn_validate_ranges ()
  772 {
  773   for at_grp
  774   do
  775     eval at_value=\$$at_grp
  776     if test $at_value -lt 1 || test $at_value -gt 170; then
  777       $as_echo "invalid test group: $at_value" >&2
  778       exit 1
  779     fi
  780     case $at_value in
  781       0*) # We want to treat leading 0 as decimal, like expr and test, but
  782       # AS_VAR_ARITH treats it as octal if it uses $(( )).
  783       # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
  784       # expr fork, but it is not worth the effort to determine if the
  785       # shell supports XSI when the user can just avoid leading 0.
  786       eval $at_grp='`expr $at_value + 0`' ;;
  787     esac
  788   done
  789 }
  790 
  791 at_prev=
  792 for at_option
  793 do
  794   # If the previous option needs an argument, assign it.
  795   if test -n "$at_prev"; then
  796     at_option=$at_prev=$at_option
  797     at_prev=
  798   fi
  799 
  800   case $at_option in
  801   *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
  802   *)    at_optarg= ;;
  803   esac
  804 
  805   # Accept the important Cygnus configure options, so we can diagnose typos.
  806 
  807   case $at_option in
  808     --help | -h )
  809     at_help_p=:
  810     ;;
  811 
  812     --list | -l )
  813     at_list_p=:
  814     ;;
  815 
  816     --version | -V )
  817     at_version_p=:
  818     ;;
  819 
  820     --clean | -c )
  821     at_clean=:
  822     ;;
  823 
  824     --color )
  825     at_color=always
  826     ;;
  827     --color=* )
  828     case $at_optarg in
  829     no | never | none) at_color=never ;;
  830     auto | tty | if-tty) at_color=auto ;;
  831     always | yes | force) at_color=always ;;
  832     *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
  833        as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
  834     esac
  835     ;;
  836 
  837     --debug | -d )
  838     at_debug_p=:
  839     ;;
  840 
  841     --errexit | -e )
  842     at_debug_p=:
  843     at_errexit_p=:
  844     ;;
  845 
  846     --verbose | -v )
  847     at_verbose=; at_quiet=:
  848     ;;
  849 
  850     --trace | -x )
  851     at_traceon='set -x'
  852     at_trace_echo=echo
  853     at_check_filter_trace=at_fn_filter_trace
  854     ;;
  855 
  856     [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
  857     at_fn_validate_ranges at_option
  858     as_fn_append at_groups "$at_option$as_nl"
  859     ;;
  860 
  861     # Ranges
  862     [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
  863     at_range_start=`echo $at_option |tr -d X-`
  864     at_fn_validate_ranges at_range_start
  865     at_range=`$as_echo "$at_groups_all" | \
  866       sed -ne '/^'$at_range_start'$/,$p'`
  867     as_fn_append at_groups "$at_range$as_nl"
  868     ;;
  869 
  870     -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
  871     at_range_end=`echo $at_option |tr -d X-`
  872     at_fn_validate_ranges at_range_end
  873     at_range=`$as_echo "$at_groups_all" | \
  874       sed -ne '1,/^'$at_range_end'$/p'`
  875     as_fn_append at_groups "$at_range$as_nl"
  876     ;;
  877 
  878     [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
  879     [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
  880     [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
  881     [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
  882     [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
  883     [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
  884     at_range_start=`expr $at_option : '\(.*\)-'`
  885     at_range_end=`expr $at_option : '.*-\(.*\)'`
  886     if test $at_range_start -gt $at_range_end; then
  887       at_tmp=$at_range_end
  888       at_range_end=$at_range_start
  889       at_range_start=$at_tmp
  890     fi
  891     at_fn_validate_ranges at_range_start at_range_end
  892     at_range=`$as_echo "$at_groups_all" | \
  893       sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
  894     as_fn_append at_groups "$at_range$as_nl"
  895     ;;
  896 
  897     # Directory selection.
  898     --directory | -C )
  899     at_prev=--directory
  900     ;;
  901     --directory=* )
  902     at_change_dir=:
  903     at_dir=$at_optarg
  904     if test x- = "x$at_dir" ; then
  905       at_dir=./-
  906     fi
  907     ;;
  908 
  909     # Parallel execution.
  910     --jobs | -j )
  911     at_jobs=0
  912     ;;
  913     --jobs=* | -j[0-9]* )
  914     if test -n "$at_optarg"; then
  915       at_jobs=$at_optarg
  916     else
  917       at_jobs=`expr X$at_option : 'X-j\(.*\)'`
  918     fi
  919     case $at_jobs in *[!0-9]*)
  920       at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
  921       as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
  922     esac
  923     ;;
  924 
  925     # Keywords.
  926     --keywords | -k )
  927     at_prev=--keywords
  928     ;;
  929     --keywords=* )
  930     at_groups_selected=$at_help_all
  931     at_save_IFS=$IFS
  932     IFS=,
  933     set X $at_optarg
  934     shift
  935     IFS=$at_save_IFS
  936     for at_keyword
  937     do
  938       at_invert=
  939       case $at_keyword in
  940       '!'*)
  941         at_invert="-v"
  942         at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
  943         ;;
  944       esac
  945       # It is on purpose that we match the test group titles too.
  946       at_groups_selected=`$as_echo "$at_groups_selected" |
  947           grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
  948     done
  949     # Smash the keywords.
  950     at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
  951     as_fn_append at_groups "$at_groups_selected$as_nl"
  952     ;;
  953     --recheck)
  954     at_recheck=:
  955     ;;
  956 
  957     *=*)
  958     at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
  959     # Reject names that are not valid shell variable names.
  960     case $at_envvar in
  961       '' | [0-9]* | *[!_$as_cr_alnum]* )
  962         as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
  963     esac
  964     at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
  965     # Export now, but save eval for later and for debug scripts.
  966     export $at_envvar
  967     as_fn_append at_debug_args " $at_envvar='$at_value'"
  968     ;;
  969 
  970      *) $as_echo "$as_me: invalid option: $at_option" >&2
  971     $as_echo "Try \`$0 --help' for more information." >&2
  972     exit 1
  973     ;;
  974   esac
  975 done
  976 
  977 # Verify our last option didn't require an argument
  978 if test -n "$at_prev"; then :
  979   as_fn_error $? "\`$at_prev' requires an argument"
  980 fi
  981 
  982 # The file containing the suite.
  983 at_suite_log=$at_dir/$as_me.log
  984 
  985 # Selected test groups.
  986 if test -z "$at_groups$at_recheck"; then
  987   at_groups=$at_groups_all
  988 else
  989   if test -n "$at_recheck" && test -r "$at_suite_log"; then
  990     at_oldfails=`sed -n '
  991       /^Failed tests:$/,/^Skipped tests:$/{
  992     s/^[ ]*\([1-9][0-9]*\):.*/\1/p
  993       }
  994       /^Unexpected passes:$/,/^## Detailed failed tests/{
  995     s/^[ ]*\([1-9][0-9]*\):.*/\1/p
  996       }
  997       /^## Detailed failed tests/q
  998       ' "$at_suite_log"`
  999     as_fn_append at_groups "$at_oldfails$as_nl"
 1000   fi
 1001   # Sort the tests, removing duplicates.
 1002   at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
 1003 fi
 1004 
 1005 if test x"$at_color" = xalways \
 1006    || { test x"$at_color" = xauto && test -t 1; }; then
 1007   at_red=`printf '\033[0;31m'`
 1008   at_grn=`printf '\033[0;32m'`
 1009   at_lgn=`printf '\033[1;32m'`
 1010   at_blu=`printf '\033[1;34m'`
 1011   at_std=`printf '\033[m'`
 1012 else
 1013   at_red= at_grn= at_lgn= at_blu= at_std=
 1014 fi
 1015 
 1016 # Help message.
 1017 if $at_help_p; then
 1018   cat <<_ATEOF || at_write_fail=1
 1019 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
 1020 
 1021 Run all the tests, or the selected TESTS, given by numeric ranges, and
 1022 save a detailed log file.  Upon failure, create debugging scripts.
 1023 
 1024 Do not change environment variables directly.  Instead, set them via
 1025 command line arguments.  Set \`AUTOTEST_PATH' to select the executables
 1026 to exercise.  Each relative directory is expanded as build and source
 1027 directories relative to the top level of this distribution.
 1028 E.g., from within the build directory /tmp/foo-1.0, invoking this:
 1029 
 1030   $ $0 AUTOTEST_PATH=bin
 1031 
 1032 is equivalent to the following, assuming the source directory is /src/foo-1.0:
 1033 
 1034   PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
 1035 _ATEOF
 1036 cat <<_ATEOF || at_write_fail=1
 1037 
 1038 Operation modes:
 1039   -h, --help     print the help message, then exit
 1040   -V, --version  print version number, then exit
 1041   -c, --clean    remove all the files this test suite might create and exit
 1042   -l, --list     describes all the tests, or the selected TESTS
 1043 _ATEOF
 1044 cat <<_ATEOF || at_write_fail=1
 1045 
 1046 Execution tuning:
 1047   -C, --directory=DIR
 1048                  change to directory DIR before starting
 1049       --color[=never|auto|always]
 1050                  disable colored test results, or enable even without terminal
 1051   -j, --jobs[=N]
 1052                  Allow N jobs at once; infinite jobs with no arg (default 1)
 1053   -k, --keywords=KEYWORDS
 1054                  select the tests matching all the comma-separated KEYWORDS
 1055                  multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
 1056       --recheck  select all tests that failed or passed unexpectedly last time
 1057   -e, --errexit  abort as soon as a test fails; implies --debug
 1058   -v, --verbose  force more detailed output
 1059                  default for debugging scripts
 1060   -d, --debug    inhibit clean up and top-level logging
 1061                  default for debugging scripts
 1062   -x, --trace    enable tests shell tracing
 1063 _ATEOF
 1064 cat <<_ATEOF || at_write_fail=1
 1065 
 1066 Report bugs to <bug-libtool@gnu.org>.
 1067 GNU Libtool home page: <http://www.gnu.org/software/libtool/>.
 1068 General help using GNU software: <http://www.gnu.org/gethelp/>.
 1069 _ATEOF
 1070   exit $at_write_fail
 1071 fi
 1072 
 1073 # List of tests.
 1074 if $at_list_p; then
 1075   cat <<_ATEOF || at_write_fail=1
 1076 GNU Libtool 2.4.6 test suite test groups:
 1077 
 1078  NUM: FILE-NAME:LINE     TEST-GROUP-NAME
 1079       KEYWORDS
 1080 
 1081 _ATEOF
 1082   # Pass an empty line as separator between selected groups and help.
 1083   $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
 1084     awk 'NF == 1 && FS != ";" {
 1085        selected[$ 1] = 1
 1086        next
 1087      }
 1088      /^$/ { FS = ";" }
 1089      NF > 0 {
 1090        if (selected[$ 1]) {
 1091          printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
 1092          if ($ 4) {
 1093            lmax = 79
 1094            indent = "     "
 1095            line = indent
 1096            len = length (line)
 1097            n = split ($ 4, a, " ")
 1098            for (i = 1; i <= n; i++) {
 1099          l = length (a[i]) + 1
 1100          if (i > 1 && len + l > lmax) {
 1101            print line
 1102            line = indent " " a[i]
 1103            len = length (line)
 1104          } else {
 1105            line = line " " a[i]
 1106            len += l
 1107          }
 1108            }
 1109            if (n)
 1110          print line
 1111          }
 1112        }
 1113      }' || at_write_fail=1
 1114   exit $at_write_fail
 1115 fi
 1116 if $at_version_p; then
 1117   $as_echo "$as_me (GNU Libtool 2.4.6)" &&
 1118   cat <<\_ATEOF || at_write_fail=1
 1119 
 1120 Copyright (C) 2012 Free Software Foundation, Inc.
 1121 This test suite is free software; the Free Software Foundation gives
 1122 unlimited permission to copy, distribute and modify it.
 1123 _ATEOF
 1124   exit $at_write_fail
 1125 fi
 1126 
 1127 # Should we print banners?  Yes if more than one test is run.
 1128 case $at_groups in #(
 1129   *$as_nl* )
 1130       at_print_banners=: ;; #(
 1131   * ) at_print_banners=false ;;
 1132 esac
 1133 # Text for banner N, set to a single space once printed.
 1134 # Banner 1. configure-funcs.at:24
 1135 # Category starts at test group 1.
 1136 at_banner_text_1="Functions shared with configure and libtool."
 1137 # Banner 2. libtoolize.at:27
 1138 # Category starts at test group 2.
 1139 at_banner_text_2="Libtoolize operation."
 1140 # Banner 3. libtool.at:26
 1141 # Category starts at test group 20.
 1142 at_banner_text_3="Basic libtool operation."
 1143 # Banner 4. demo.at:26
 1144 # Category starts at test group 27.
 1145 at_banner_text_4="Linking and loading."
 1146 # Banner 5. cdemo.at:26
 1147 # Category starts at test group 40.
 1148 at_banner_text_5="Convenience libraries."
 1149 # Banner 6. depdemo.at:26
 1150 # Category starts at test group 49.
 1151 at_banner_text_6="Library interdependencies."
 1152 # Banner 7. help.at:24
 1153 # Category starts at test group 54.
 1154 at_banner_text_7="Testing libtool functions."
 1155 # Banner 8. destdir.at:25
 1156 # Category starts at test group 97.
 1157 at_banner_text_8="DESTDIR tests"
 1158 # Banner 9. old-m4-iface.at:27
 1159 # Category starts at test group 99.
 1160 at_banner_text_9="Support for older m4 interface."
 1161 # Banner 10. old-ltdl-iface.at:28
 1162 # Category starts at test group 102.
 1163 at_banner_text_10="Support for older libltdl interfaces."
 1164 # Banner 11. am-subdir.at:26
 1165 # Category starts at test group 103.
 1166 at_banner_text_11="Libtool subdir-objects support."
 1167 # Banner 12. lt_dlexit.at:28
 1168 # Category starts at test group 105.
 1169 at_banner_text_12="Libltdl functionality."
 1170 # Banner 13. mdemo.at:29
 1171 # Category starts at test group 118.
 1172 at_banner_text_13="Dynamic ltdl runtime loading."
 1173 # Banner 14. standalone.at:25
 1174 # Category starts at test group 123.
 1175 at_banner_text_14="Standalone Libltdl."
 1176 # Banner 15. subproject.at:25
 1177 # Category starts at test group 127.
 1178 at_banner_text_15="Subproject Libltdl."
 1179 # Banner 16. nonrecursive.at:27
 1180 # Category starts at test group 131.
 1181 at_banner_text_16="Nonrecursive Automake Libltdl."
 1182 # Banner 17. recursive.at:25
 1183 # Category starts at test group 134.
 1184 at_banner_text_17="Recursive Automake Libltdl."
 1185 # Banner 18. tagdemo.at:26
 1186 # Category starts at test group 137.
 1187 at_banner_text_18="C++ language support."
 1188 # Banner 19. template.at:26
 1189 # Category starts at test group 141.
 1190 at_banner_text_19="C++ template tests."
 1191 # Banner 20. ctor.at:25
 1192 # Category starts at test group 143.
 1193 at_banner_text_20="Constructors."
 1194 # Banner 21. early-libtool.at:25
 1195 # Category starts at test group 145.
 1196 at_banner_text_21="libtool script generation."
 1197 # Banner 22. no-executables.at:24
 1198 # Category starts at test group 147.
 1199 at_banner_text_22="Libtool usage in GCC"
 1200 # Banner 23. deplibs-ident.at:26
 1201 # Category starts at test group 148.
 1202 at_banner_text_23="Detecting identical deplibs."
 1203 # Banner 24. configure-iface.at:25
 1204 # Category starts at test group 149.
 1205 at_banner_text_24="configure interface to libltdl."
 1206 # Banner 25. f77demo.at:28
 1207 # Category starts at test group 153.
 1208 at_banner_text_25="F77 language support."
 1209 # Banner 26. fcdemo.at:28
 1210 # Category starts at test group 156.
 1211 at_banner_text_26="Fortran language support."
 1212 # Banner 27. darwin.at:25
 1213 # Category starts at test group 159.
 1214 at_banner_text_27="Mac OS X tests"
 1215 # Banner 28. dumpbin-symbols.at:24
 1216 # Category starts at test group 164.
 1217 at_banner_text_28="Windows tests."
 1218 # Banner 29. sysroot.at:202
 1219 # Category starts at test group 166.
 1220 at_banner_text_29="sysroot tests"
 1221 # Banner 30. stresstest.at:30
 1222 # Category starts at test group 169.
 1223 at_banner_text_30="Libtool stress test."
 1224 
 1225 # Take any -C into account.
 1226 if $at_change_dir ; then
 1227   test x != "x$at_dir" && cd "$at_dir" \
 1228     || as_fn_error $? "unable to change directory"
 1229   at_dir=`pwd`
 1230 fi
 1231 
 1232 # Load the config files for any default variable assignments.
 1233 for at_file in atconfig atlocal
 1234 do
 1235   test -r $at_file || continue
 1236   . ./$at_file || as_fn_error $? "invalid content: $at_file"
 1237 done
 1238 
 1239 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
 1240 : "${at_top_build_prefix=$at_top_builddir}"
 1241 
 1242 # Perform any assignments requested during argument parsing.
 1243 eval "$at_debug_args"
 1244 
 1245 # atconfig delivers names relative to the directory the test suite is
 1246 # in, but the groups themselves are run in testsuite-dir/group-dir.
 1247 if test -n "$at_top_srcdir"; then
 1248   builddir=../..
 1249   for at_dir_var in srcdir top_srcdir top_build_prefix
 1250   do
 1251     eval at_val=\$at_$at_dir_var
 1252     case $at_val in
 1253       [\\/$]* | ?:[\\/]* ) at_prefix= ;;
 1254       *) at_prefix=../../ ;;
 1255     esac
 1256     eval "$at_dir_var=\$at_prefix\$at_val"
 1257   done
 1258 fi
 1259 
 1260 ## -------------------- ##
 1261 ## Directory structure. ##
 1262 ## -------------------- ##
 1263 
 1264 # This is the set of directories and files used by this script
 1265 # (non-literals are capitalized):
 1266 #
 1267 # TESTSUITE         - the testsuite
 1268 # TESTSUITE.log     - summarizes the complete testsuite run
 1269 # TESTSUITE.dir/    - created during a run, remains after -d or failed test
 1270 # + at-groups/      - during a run: status of all groups in run
 1271 # | + NNN/          - during a run: meta-data about test group NNN
 1272 # | | + check-line  - location (source file and line) of current AT_CHECK
 1273 # | | + status      - exit status of current AT_CHECK
 1274 # | | + stdout      - stdout of current AT_CHECK
 1275 # | | + stder1      - stderr, including trace
 1276 # | | + stderr      - stderr, with trace filtered out
 1277 # | | + test-source - portion of testsuite that defines group
 1278 # | | + times       - timestamps for computing duration
 1279 # | | + pass        - created if group passed
 1280 # | | + xpass       - created if group xpassed
 1281 # | | + fail        - created if group failed
 1282 # | | + xfail       - created if group xfailed
 1283 # | | + skip        - created if group skipped
 1284 # + at-stop         - during a run: end the run if this file exists
 1285 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
 1286 # + 0..NNN/         - created for each group NNN, remains after -d or failed test
 1287 # | + TESTSUITE.log - summarizes the group results
 1288 # | + ...           - files created during the group
 1289 
 1290 # The directory the whole suite works in.
 1291 # Should be absolute to let the user `cd' at will.
 1292 at_suite_dir=$at_dir/$as_me.dir
 1293 # The file containing the suite ($at_dir might have changed since earlier).
 1294 at_suite_log=$at_dir/$as_me.log
 1295 # The directory containing helper files per test group.
 1296 at_helper_dir=$at_suite_dir/at-groups
 1297 # Stop file: if it exists, do not start new jobs.
 1298 at_stop_file=$at_suite_dir/at-stop
 1299 # The fifo used for the job dispatcher.
 1300 at_job_fifo=$at_suite_dir/at-job-fifo
 1301 
 1302 if $at_clean; then
 1303   test -d "$at_suite_dir" &&
 1304     find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
 1305   rm -f -r "$at_suite_dir" "$at_suite_log"
 1306   exit $?
 1307 fi
 1308 
 1309 # Don't take risks: use only absolute directories in PATH.
 1310 #
 1311 # For stand-alone test suites (ie. atconfig was not found),
 1312 # AUTOTEST_PATH is relative to `.'.
 1313 #
 1314 # For embedded test suites, AUTOTEST_PATH is relative to the top level
 1315 # of the package.  Then expand it into build/src parts, since users
 1316 # may create executables in both places.
 1317 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
 1318 at_path=
 1319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1320 for as_dir in $AUTOTEST_PATH $PATH
 1321 do
 1322   IFS=$as_save_IFS
 1323   test -z "$as_dir" && as_dir=.
 1324     test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
 1325 case $as_dir in
 1326   [\\/]* | ?:[\\/]* )
 1327     as_fn_append at_path "$as_dir"
 1328     ;;
 1329   * )
 1330     if test -z "$at_top_build_prefix"; then
 1331       # Stand-alone test suite.
 1332       as_fn_append at_path "$as_dir"
 1333     else
 1334       # Embedded test suite.
 1335       as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
 1336       as_fn_append at_path "$at_top_srcdir/$as_dir"
 1337     fi
 1338     ;;
 1339 esac
 1340   done
 1341 IFS=$as_save_IFS
 1342 
 1343 
 1344 # Now build and simplify PATH.
 1345 #
 1346 # There might be directories that don't exist, but don't redirect
 1347 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
 1348 at_new_path=
 1349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1350 for as_dir in $at_path
 1351 do
 1352   IFS=$as_save_IFS
 1353   test -z "$as_dir" && as_dir=.
 1354     test -d "$as_dir" || continue
 1355 case $as_dir in
 1356   [\\/]* | ?:[\\/]* ) ;;
 1357   * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
 1358 esac
 1359 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
 1360   *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
 1361   $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
 1362   *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
 1363 esac
 1364   done
 1365 IFS=$as_save_IFS
 1366 
 1367 PATH=$at_new_path
 1368 export PATH
 1369 
 1370 # Setting up the FDs.
 1371 
 1372 
 1373 
 1374 # 5 is the log file.  Not to be overwritten if `-d'.
 1375 if $at_debug_p; then
 1376   at_suite_log=/dev/null
 1377 else
 1378   : >"$at_suite_log"
 1379 fi
 1380 exec 5>>"$at_suite_log"
 1381 
 1382 # Banners and logs.
 1383 $as_echo "## ----------------------------- ##
 1384 ## GNU Libtool 2.4.6 test suite. ##
 1385 ## ----------------------------- ##"
 1386 {
 1387   $as_echo "## ----------------------------- ##
 1388 ## GNU Libtool 2.4.6 test suite. ##
 1389 ## ----------------------------- ##"
 1390   echo
 1391 
 1392   $as_echo "$as_me: command line was:"
 1393   $as_echo "  \$ $0 $at_cli_args"
 1394   echo
 1395 
 1396   # If ChangeLog exists, list a few lines in case it might help determining
 1397   # the exact version.
 1398   if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
 1399     $as_echo "## ---------- ##
 1400 ## ChangeLog. ##
 1401 ## ---------- ##"
 1402     echo
 1403     sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
 1404     echo
 1405   fi
 1406 
 1407   {
 1408 cat <<_ASUNAME
 1409 ## --------- ##
 1410 ## Platform. ##
 1411 ## --------- ##
 1412 
 1413 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 1414 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 1415 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 1416 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 1417 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 1418 
 1419 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 1420 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 1421 
 1422 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 1423 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 1424 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 1425 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 1426 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 1427 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 1428 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 1429 
 1430 _ASUNAME
 1431 
 1432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1433 for as_dir in $PATH
 1434 do
 1435   IFS=$as_save_IFS
 1436   test -z "$as_dir" && as_dir=.
 1437     $as_echo "PATH: $as_dir"
 1438   done
 1439 IFS=$as_save_IFS
 1440 
 1441 }
 1442   echo
 1443 
 1444   # Contents of the config files.
 1445   for at_file in atconfig atlocal
 1446   do
 1447     test -r $at_file || continue
 1448     $as_echo "$as_me: $at_file:"
 1449     sed 's/^/| /' $at_file
 1450     echo
 1451   done
 1452 } >&5
 1453 
 1454 : ${tst_dist=dist}
 1455 : ${ACLOCAL=aclocal}
 1456 : ${AUTOHEADER=autoheader}
 1457 : ${AUTOCONF=autoconf}
 1458 : ${AUTOMAKE=automake}
 1459 : ${AUTORECONF=autoreconf}
 1460 test set = "${ECHO+set}" || ECHO=${as_echo-'printf %s\n'}
 1461 : ${ECHO=$as_echo}
 1462 for tool in ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF; do
 1463   if eval \$$tool --version >/dev/null 2>&1; then :; else eval $tool=no; fi
 1464 done
 1465 export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF
 1466 eval `$LIBTOOL --config | $EGREP '^(objdir|objext)'`
 1467 eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|build_alias|to_host_file_cmd|to_tool_file_cmd)='`
 1468 configure_options=--prefix=/nonexistent
 1469 if test -n "$host_alias"; then
 1470   configure_options="$configure_options --host $host_alias"
 1471 fi
 1472 if test -n "$build_alias"; then
 1473   configure_options="$configure_options --build $build_alias"
 1474 fi
 1475 if test -n "$to_host_file_cmd"; then
 1476   configure_options="$configure_options lt_cv_to_host_file_cmd=$to_host_file_cmd"
 1477 fi
 1478 if test -n "$to_tool_file_cmd"; then
 1479   configure_options="$configure_options lt_cv_to_tool_file_cmd=$to_tool_file_cmd"
 1480 fi
 1481 : ${mkdir_p="$abs_top_srcdir/build-aux/install-sh -d"}
 1482 # Fix relative paths in $lt_INSTALL
 1483 case $lt_INSTALL in
 1484   *build-aux/install-sh*)
 1485     lt_INSTALL=$abs_top_srcdir/build-aux/install-sh
 1486     ;;
 1487 esac
 1488 
 1489 # func_extract_trace support
 1490 . "$abs_top_srcdir/build-aux/funclib.sh"
 1491 . "$abs_top_srcdir/build-aux/extract-trace"
 1492 
 1493 
 1494 # Unset some MAKE... variables that may cause $MAKE to act like a
 1495 # recursively invoked sub-make.  Any $MAKE invocation in a test is
 1496 # conceptually an independent invocation.
 1497 unset MFLAGS MAKEFLAGS MAKELEVEL __MKLVL__ MAKE_JOBS_FIFO
 1498 
 1499 # On AIX, shared libraries remain loaded in memory after use if they
 1500 # are world-readable, until root issues slibclean.  On NFS, this causes
 1501 # a testsuite rerun to fail to clean up test group directories.  Avoid
 1502 # this with a suitable umask.  Do not do this on other systems, for
 1503 # example HP-UX suffers unless shared libraries are mode 555.
 1504 case $host_os in
 1505 aix*) umask o-rwx ;;
 1506 esac
 1507 
 1508 ## ------------------------- ##
 1509 ## Autotest shell functions. ##
 1510 ## ------------------------- ##
 1511 
 1512 # at_fn_banner NUMBER
 1513 # -------------------
 1514 # Output banner NUMBER, provided the testsuite is running multiple groups and
 1515 # this particular banner has not yet been printed.
 1516 at_fn_banner ()
 1517 {
 1518   $at_print_banners || return 0
 1519   eval at_banner_text=\$at_banner_text_$1
 1520   test "x$at_banner_text" = "x " && return 0
 1521   eval "at_banner_text_$1=\" \""
 1522   if test -z "$at_banner_text"; then
 1523     $at_first || echo
 1524   else
 1525     $as_echo "$as_nl$at_banner_text$as_nl"
 1526   fi
 1527 } # at_fn_banner
 1528 
 1529 # at_fn_check_prepare_notrace REASON LINE
 1530 # ---------------------------------------
 1531 # Perform AT_CHECK preparations for the command at LINE for an untraceable
 1532 # command; REASON is the reason for disabling tracing.
 1533 at_fn_check_prepare_notrace ()
 1534 {
 1535   $at_trace_echo "Not enabling shell tracing (command contains $1)"
 1536   $as_echo "$2" >"$at_check_line_file"
 1537   at_check_trace=: at_check_filter=:
 1538   : >"$at_stdout"; : >"$at_stderr"
 1539 }
 1540 
 1541 # at_fn_check_prepare_trace LINE
 1542 # ------------------------------
 1543 # Perform AT_CHECK preparations for the command at LINE for a traceable
 1544 # command.
 1545 at_fn_check_prepare_trace ()
 1546 {
 1547   $as_echo "$1" >"$at_check_line_file"
 1548   at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
 1549   : >"$at_stdout"; : >"$at_stderr"
 1550 }
 1551 
 1552 # at_fn_check_prepare_dynamic COMMAND LINE
 1553 # ----------------------------------------
 1554 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
 1555 # preparation function.
 1556 at_fn_check_prepare_dynamic ()
 1557 {
 1558   case $1 in
 1559     *$as_nl*)
 1560       at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
 1561     *)
 1562       at_fn_check_prepare_trace "$2" ;;
 1563   esac
 1564 }
 1565 
 1566 # at_fn_filter_trace
 1567 # ------------------
 1568 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
 1569 # them to stderr.
 1570 at_fn_filter_trace ()
 1571 {
 1572   mv "$at_stderr" "$at_stder1"
 1573   grep '^ *+' "$at_stder1" >&2
 1574   grep -v '^ *+' "$at_stder1" >"$at_stderr"
 1575 }
 1576 
 1577 # at_fn_log_failure FILE-LIST
 1578 # ---------------------------
 1579 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
 1580 # with a failure exit code.
 1581 at_fn_log_failure ()
 1582 {
 1583   for file
 1584     do $as_echo "$file:"; sed 's/^/> /' "$file"; done
 1585   echo 1 > "$at_status_file"
 1586   exit 1
 1587 }
 1588 
 1589 # at_fn_check_skip EXIT-CODE LINE
 1590 # -------------------------------
 1591 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
 1592 # the test group subshell with that same exit code. Use LINE in any report
 1593 # about test failure.
 1594 at_fn_check_skip ()
 1595 {
 1596   case $1 in
 1597     99) echo 99 > "$at_status_file"; at_failed=:
 1598     $as_echo "$2: hard failure"; exit 99;;
 1599     77) echo 77 > "$at_status_file"; exit 77;;
 1600   esac
 1601 }
 1602 
 1603 # at_fn_check_status EXPECTED EXIT-CODE LINE
 1604 # ------------------------------------------
 1605 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
 1606 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
 1607 # exit code; if it is anything else print an error message referring to LINE,
 1608 # and fail the test.
 1609 at_fn_check_status ()
 1610 {
 1611   case $2 in
 1612     $1 ) ;;
 1613     77) echo 77 > "$at_status_file"; exit 77;;
 1614     99) echo 99 > "$at_status_file"; at_failed=:
 1615     $as_echo "$3: hard failure"; exit 99;;
 1616     *) $as_echo "$3: exit code was $2, expected $1"
 1617       at_failed=:;;
 1618   esac
 1619 }
 1620 
 1621 # at_fn_diff_devnull FILE
 1622 # -----------------------
 1623 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
 1624 # invocations.
 1625 at_fn_diff_devnull ()
 1626 {
 1627   test -s "$1" || return 0
 1628   $at_diff "$at_devnull" "$1"
 1629 }
 1630 
 1631 # at_fn_test NUMBER
 1632 # -----------------
 1633 # Parse out test NUMBER from the tail of this file.
 1634 at_fn_test ()
 1635 {
 1636   eval at_sed=\$at_sed$1
 1637   sed "$at_sed" "$at_myself" > "$at_test_source"
 1638 }
 1639 
 1640 # at_fn_create_debugging_script
 1641 # -----------------------------
 1642 # Create the debugging script $at_group_dir/run which will reproduce the
 1643 # current test group.
 1644 at_fn_create_debugging_script ()
 1645 {
 1646   {
 1647     echo "#! /bin/sh" &&
 1648     echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
 1649     $as_echo "cd '$at_dir'" &&
 1650     $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
 1651     echo 'exit 1'
 1652   } >"$at_group_dir/run" &&
 1653   chmod +x "$at_group_dir/run"
 1654 }
 1655 
 1656 ## -------------------------------- ##
 1657 ## End of autotest shell functions. ##
 1658 ## -------------------------------- ##
 1659 {
 1660   $as_echo "## ---------------- ##
 1661 ## Tested programs. ##
 1662 ## ---------------- ##"
 1663   echo
 1664 } >&5
 1665 
 1666 # Report what programs are being tested.
 1667 for at_program in : $at_tested
 1668 do
 1669   test "$at_program" = : && continue
 1670   case $at_program in
 1671     [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
 1672     * )
 1673     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1674 for as_dir in $PATH
 1675 do
 1676   IFS=$as_save_IFS
 1677   test -z "$as_dir" && as_dir=.
 1678     test -f "$as_dir/$at_program" && break
 1679   done
 1680 IFS=$as_save_IFS
 1681 
 1682     at_program_=$as_dir/$at_program ;;
 1683   esac
 1684   if test -f "$at_program_"; then
 1685     {
 1686       $as_echo "$at_srcdir/testsuite.at:529: $at_program_ --version"
 1687       "$at_program_" --version </dev/null
 1688       echo
 1689     } >&5 2>&1
 1690   else
 1691     as_fn_error $? "cannot find $at_program" "$LINENO" 5
 1692   fi
 1693 done
 1694 
 1695 {
 1696   $as_echo "## ------------------ ##
 1697 ## Running the tests. ##
 1698 ## ------------------ ##"
 1699 } >&5
 1700 
 1701 at_start_date=`date`
 1702 at_start_time=`date +%s 2>/dev/null`
 1703 $as_echo "$as_me: starting at: $at_start_date" >&5
 1704 
 1705 # Create the master directory if it doesn't already exist.
 1706 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
 1707   as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
 1708 
 1709 # Can we diff with `/dev/null'?  DU 5.0 refuses.
 1710 if diff /dev/null /dev/null >/dev/null 2>&1; then
 1711   at_devnull=/dev/null
 1712 else
 1713   at_devnull=$at_suite_dir/devnull
 1714   >"$at_devnull"
 1715 fi
 1716 
 1717 # Use `diff -u' when possible.
 1718 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
 1719 then
 1720   at_diff='diff -u'
 1721 else
 1722   at_diff=diff
 1723 fi
 1724 
 1725 # Get the last needed group.
 1726 for at_group in : $at_groups; do :; done
 1727 
 1728 # Extract the start and end lines of each test group at the tail
 1729 # of this file
 1730 awk '
 1731 BEGIN { FS="" }
 1732 /^#AT_START_/ {
 1733   start = NR
 1734 }
 1735 /^#AT_STOP_/ {
 1736   test = substr ($ 0, 10)
 1737   print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
 1738   if (test == "'"$at_group"'") exit
 1739 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
 1740 . "$at_suite_dir/at-source-lines" ||
 1741   as_fn_error $? "cannot create test line number cache" "$LINENO" 5
 1742 rm -f "$at_suite_dir/at-source-lines"
 1743 
 1744 # Set number of jobs for `-j'; avoid more jobs than test groups.
 1745 set X $at_groups; shift; at_max_jobs=$#
 1746 if test $at_max_jobs -eq 0; then
 1747   at_jobs=1
 1748 fi
 1749 if test $at_jobs -ne 1 &&
 1750    { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
 1751   at_jobs=$at_max_jobs
 1752 fi
 1753 
 1754 # If parallel mode, don't output banners, don't split summary lines.
 1755 if test $at_jobs -ne 1; then
 1756   at_print_banners=false
 1757   at_quiet=:
 1758 fi
 1759 
 1760 # Set up helper dirs.
 1761 rm -rf "$at_helper_dir" &&
 1762 mkdir "$at_helper_dir" &&
 1763 cd "$at_helper_dir" &&
 1764 { test -z "$at_groups" || mkdir $at_groups; } ||
 1765 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
 1766 
 1767 # Functions for running a test group.  We leave the actual
 1768 # test group execution outside of a shell function in order
 1769 # to avoid hitting zsh 4.x exit status bugs.
 1770 
 1771 # at_fn_group_prepare
 1772 # -------------------
 1773 # Prepare for running a test group.
 1774 at_fn_group_prepare ()
 1775 {
 1776   # The directory for additional per-group helper files.
 1777   at_job_dir=$at_helper_dir/$at_group
 1778   # The file containing the location of the last AT_CHECK.
 1779   at_check_line_file=$at_job_dir/check-line
 1780   # The file containing the exit status of the last command.
 1781   at_status_file=$at_job_dir/status
 1782   # The files containing the output of the tested commands.
 1783   at_stdout=$at_job_dir/stdout
 1784   at_stder1=$at_job_dir/stder1
 1785   at_stderr=$at_job_dir/stderr
 1786   # The file containing the code for a test group.
 1787   at_test_source=$at_job_dir/test-source
 1788   # The file containing dates.
 1789   at_times_file=$at_job_dir/times
 1790 
 1791   # Be sure to come back to the top test directory.
 1792   cd "$at_suite_dir"
 1793 
 1794   # Clearly separate the test groups when verbose.
 1795   $at_first || $at_verbose echo
 1796 
 1797   at_group_normalized=$at_group
 1798 
 1799   eval 'while :; do
 1800     case $at_group_normalized in #(
 1801     '"$at_format"'*) break;;
 1802     esac
 1803     at_group_normalized=0$at_group_normalized
 1804   done'
 1805 
 1806 
 1807   # Create a fresh directory for the next test group, and enter.
 1808   # If one already exists, the user may have invoked ./run from
 1809   # within that directory; we remove the contents, but not the
 1810   # directory itself, so that we aren't pulling the rug out from
 1811   # under the shell's notion of the current directory.
 1812   at_group_dir=$at_suite_dir/$at_group_normalized
 1813   at_group_log=$at_group_dir/$as_me.log
 1814   if test -d "$at_group_dir"; then
 1815   find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
 1816   rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
 1817 fi ||
 1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
 1819 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
 1820   # Be tolerant if the above `rm' was not able to remove the directory.
 1821   as_dir="$at_group_dir"; as_fn_mkdir_p
 1822 
 1823   echo 0 > "$at_status_file"
 1824 
 1825   # In verbose mode, append to the log file *and* show on
 1826   # the standard output; in quiet mode only write to the log.
 1827   if test -z "$at_verbose"; then
 1828     at_tee_pipe='tee -a "$at_group_log"'
 1829   else
 1830     at_tee_pipe='cat >> "$at_group_log"'
 1831   fi
 1832 }
 1833 
 1834 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
 1835 # -------------------------------------------------
 1836 # Declare the test group ORDINAL, located at LINE with group description DESC,
 1837 # and residing under BANNER. Use PAD to align the status column.
 1838 at_fn_group_banner ()
 1839 {
 1840   at_setup_line="$2"
 1841   test -n "$5" && at_fn_banner $5
 1842   at_desc="$3"
 1843   case $1 in
 1844     [0-9])      at_desc_line="  $1: ";;
 1845     [0-9][0-9]) at_desc_line=" $1: " ;;
 1846     *)          at_desc_line="$1: "  ;;
 1847   esac
 1848   as_fn_append at_desc_line "$3$4"
 1849   $at_quiet $as_echo_n "$at_desc_line"
 1850   echo "#                             -*- compilation -*-" >> "$at_group_log"
 1851 }
 1852 
 1853 # at_fn_group_postprocess
 1854 # -----------------------
 1855 # Perform cleanup after running a test group.
 1856 at_fn_group_postprocess ()
 1857 {
 1858   # Be sure to come back to the suite directory, in particular
 1859   # since below we might `rm' the group directory we are in currently.
 1860   cd "$at_suite_dir"
 1861 
 1862   if test ! -f "$at_check_line_file"; then
 1863     sed "s/^ */$as_me: WARNING: /" <<_ATEOF
 1864       A failure happened in a test group before any test could be
 1865       run. This means that test suite is improperly designed.  Please
 1866       report this failure to <bug-libtool@gnu.org>.
 1867 _ATEOF
 1868     $as_echo "$at_setup_line" >"$at_check_line_file"
 1869     at_status=99
 1870   fi
 1871   $at_verbose $as_echo_n "$at_group. $at_setup_line: "
 1872   $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
 1873   case $at_xfail:$at_status in
 1874     yes:0)
 1875     at_msg="UNEXPECTED PASS"
 1876     at_res=xpass
 1877     at_errexit=$at_errexit_p
 1878     at_color=$at_red
 1879     ;;
 1880     no:0)
 1881     at_msg="ok"
 1882     at_res=pass
 1883     at_errexit=false
 1884     at_color=$at_grn
 1885     ;;
 1886     *:77)
 1887     at_msg='skipped ('`cat "$at_check_line_file"`')'
 1888     at_res=skip
 1889     at_errexit=false
 1890     at_color=$at_blu
 1891     ;;
 1892     no:* | *:99)
 1893     at_msg='FAILED ('`cat "$at_check_line_file"`')'
 1894     at_res=fail
 1895     at_errexit=$at_errexit_p
 1896     at_color=$at_red
 1897     ;;
 1898     yes:*)
 1899     at_msg='expected failure ('`cat "$at_check_line_file"`')'
 1900     at_res=xfail
 1901     at_errexit=false
 1902     at_color=$at_lgn
 1903     ;;
 1904   esac
 1905   echo "$at_res" > "$at_job_dir/$at_res"
 1906   # In parallel mode, output the summary line only afterwards.
 1907   if test $at_jobs -ne 1 && test -n "$at_verbose"; then
 1908     $as_echo "$at_desc_line $at_color$at_msg$at_std"
 1909   else
 1910     # Make sure there is a separator even with long titles.
 1911     $as_echo " $at_color$at_msg$at_std"
 1912   fi
 1913   at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
 1914   case $at_status in
 1915     0|77)
 1916       # $at_times_file is only available if the group succeeded.
 1917       # We're not including the group log, so the success message
 1918       # is written in the global log separately.  But we also
 1919       # write to the group log in case they're using -d.
 1920       if test -f "$at_times_file"; then
 1921     at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
 1922     rm -f "$at_times_file"
 1923       fi
 1924       $as_echo "$at_log_msg" >> "$at_group_log"
 1925       $as_echo "$at_log_msg" >&5
 1926 
 1927       # Cleanup the group directory, unless the user wants the files
 1928       # or the success was unexpected.
 1929       if $at_debug_p || test $at_res = xpass; then
 1930     at_fn_create_debugging_script
 1931     if test $at_res = xpass && $at_errexit; then
 1932       echo stop > "$at_stop_file"
 1933     fi
 1934       else
 1935     if test -d "$at_group_dir"; then
 1936       find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
 1937       rm -fr "$at_group_dir"
 1938     fi
 1939     rm -f "$at_test_source"
 1940       fi
 1941       ;;
 1942     *)
 1943       # Upon failure, include the log into the testsuite's global
 1944       # log.  The failure message is written in the group log.  It
 1945       # is later included in the global log.
 1946       $as_echo "$at_log_msg" >> "$at_group_log"
 1947 
 1948       # Upon failure, keep the group directory for autopsy, and create
 1949       # the debugging script.  With -e, do not start any further tests.
 1950       at_fn_create_debugging_script
 1951       if $at_errexit; then
 1952     echo stop > "$at_stop_file"
 1953       fi
 1954       ;;
 1955   esac
 1956 }
 1957 
 1958 
 1959 ## ------------ ##
 1960 ## Driver loop. ##
 1961 ## ------------ ##
 1962 
 1963 
 1964 if (set -m && set +m && set +b) >/dev/null 2>&1; then
 1965   set +b
 1966   at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
 1967 else
 1968   at_job_control_on=: at_job_control_off=: at_job_group=
 1969 fi
 1970 
 1971 for at_signal in 1 2 15; do
 1972   trap 'set +x; set +e
 1973     $at_job_control_off
 1974     at_signal='"$at_signal"'
 1975     echo stop > "$at_stop_file"
 1976     trap "" $at_signal
 1977     at_pgids=
 1978     for at_pgid in `jobs -p 2>/dev/null`; do
 1979       at_pgids="$at_pgids $at_job_group$at_pgid"
 1980     done
 1981     test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
 1982     wait
 1983     if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
 1984       echo >&2
 1985     fi
 1986     at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
 1987     set x $at_signame
 1988     test 0 -gt 2 && at_signame=$at_signal
 1989     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
 1990 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
 1991     as_fn_arith 128 + $at_signal && exit_status=$as_val
 1992     as_fn_exit $exit_status' $at_signal
 1993 done
 1994 
 1995 rm -f "$at_stop_file"
 1996 at_first=:
 1997 
 1998 if test $at_jobs -ne 1 &&
 1999      rm -f "$at_job_fifo" &&
 2000      test -n "$at_job_group" &&
 2001      ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
 2002 then
 2003   # FIFO job dispatcher.
 2004 
 2005   trap 'at_pids=
 2006     for at_pid in `jobs -p`; do
 2007       at_pids="$at_pids $at_job_group$at_pid"
 2008     done
 2009     if test -n "$at_pids"; then
 2010       at_sig=TSTP
 2011       test "${TMOUT+set}" = set && at_sig=STOP
 2012       kill -$at_sig $at_pids 2>/dev/null
 2013     fi
 2014     kill -STOP $$
 2015     test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
 2016 
 2017   echo
 2018   # Turn jobs into a list of numbers, starting from 1.
 2019   at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
 2020 
 2021   set X $at_joblist
 2022   shift
 2023   for at_group in $at_groups; do
 2024     $at_job_control_on 2>/dev/null
 2025     (
 2026       # Start one test group.
 2027       $at_job_control_off
 2028       if $at_first; then
 2029     exec 7>"$at_job_fifo"
 2030       else
 2031     exec 6<&-
 2032       fi
 2033       trap 'set +x; set +e
 2034         trap "" PIPE
 2035         echo stop > "$at_stop_file"
 2036         echo >&7
 2037         as_fn_exit 141' PIPE
 2038       at_fn_group_prepare
 2039       if cd "$at_group_dir" &&
 2040      at_fn_test $at_group &&
 2041      . "$at_test_source"
 2042       then :; else
 2043     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
 2044 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
 2045     at_failed=:
 2046       fi
 2047       at_fn_group_postprocess
 2048       echo >&7
 2049     ) &
 2050     $at_job_control_off
 2051     if $at_first; then
 2052       at_first=false
 2053       exec 6<"$at_job_fifo" 7>"$at_job_fifo"
 2054     fi
 2055     shift # Consume one token.
 2056     if test $# -gt 0; then :; else
 2057       read at_token <&6 || break
 2058       set x $*
 2059     fi
 2060     test -f "$at_stop_file" && break
 2061   done
 2062   exec 7>&-
 2063   # Read back the remaining ($at_jobs - 1) tokens.
 2064   set X $at_joblist
 2065   shift
 2066   if test $# -gt 0; then
 2067     shift
 2068     for at_job
 2069     do
 2070       read at_token
 2071     done <&6
 2072   fi
 2073   exec 6<&-
 2074   wait
 2075 else
 2076   # Run serially, avoid forks and other potential surprises.
 2077   for at_group in $at_groups; do
 2078     at_fn_group_prepare
 2079     if cd "$at_group_dir" &&
 2080        at_fn_test $at_group &&
 2081        . "$at_test_source"; then :; else
 2082       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
 2083 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
 2084       at_failed=:
 2085     fi
 2086     at_fn_group_postprocess
 2087     test -f "$at_stop_file" && break
 2088     at_first=false
 2089   done
 2090 fi
 2091 
 2092 # Wrap up the test suite with summary statistics.
 2093 cd "$at_helper_dir"
 2094 
 2095 # Use ?..???? when the list must remain sorted, the faster * otherwise.
 2096 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
 2097 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
 2098 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
 2099 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
 2100          echo $f; done | sed '/?/d; s,/xpass,,'`
 2101 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
 2102         echo $f; done | sed '/?/d; s,/fail,,'`
 2103 
 2104 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
 2105 shift; at_group_count=$#
 2106 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
 2107 set X $at_xfail_list; shift; at_xfail_count=$#
 2108 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
 2109 set X $at_skip_list; shift; at_skip_count=$#
 2110 
 2111 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
 2112 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
 2113 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
 2114 
 2115 # Back to the top directory.
 2116 cd "$at_dir"
 2117 rm -rf "$at_helper_dir"
 2118 
 2119 # Compute the duration of the suite.
 2120 at_stop_date=`date`
 2121 at_stop_time=`date +%s 2>/dev/null`
 2122 $as_echo "$as_me: ending at: $at_stop_date" >&5
 2123 case $at_start_time,$at_stop_time in
 2124   [0-9]*,[0-9]*)
 2125     as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
 2126     as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
 2127     as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
 2128     as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
 2129     as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
 2130     at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
 2131     $as_echo "$as_me: test suite duration: $at_duration" >&5
 2132     ;;
 2133 esac
 2134 
 2135 echo
 2136 $as_echo "## ------------- ##
 2137 ## Test results. ##
 2138 ## ------------- ##"
 2139 echo
 2140 {
 2141   echo
 2142   $as_echo "## ------------- ##
 2143 ## Test results. ##
 2144 ## ------------- ##"
 2145   echo
 2146 } >&5
 2147 
 2148 if test $at_run_count = 1; then
 2149   at_result="1 test"
 2150   at_were=was
 2151 else
 2152   at_result="$at_run_count tests"
 2153   at_were=were
 2154 fi
 2155 if $at_errexit_p && test $at_unexpected_count != 0; then
 2156   if test $at_xpass_count = 1; then
 2157     at_result="$at_result $at_were run, one passed"
 2158   else
 2159     at_result="$at_result $at_were run, one failed"
 2160   fi
 2161   at_result="$at_result unexpectedly and inhibited subsequent tests."
 2162   at_color=$at_red
 2163 else
 2164   # Don't you just love exponential explosion of the number of cases?
 2165   at_color=$at_red
 2166   case $at_xpass_count:$at_fail_count:$at_xfail_count in
 2167     # So far, so good.
 2168     0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
 2169     0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
 2170 
 2171     # Some unexpected failures
 2172     0:*:0) at_result="$at_result $at_were run,
 2173 $at_fail_count failed unexpectedly." ;;
 2174 
 2175     # Some failures, both expected and unexpected
 2176     0:*:1) at_result="$at_result $at_were run,
 2177 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
 2178     0:*:*) at_result="$at_result $at_were run,
 2179 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
 2180 
 2181     # No unexpected failures, but some xpasses
 2182     *:0:*) at_result="$at_result $at_were run,
 2183 $at_xpass_count passed unexpectedly." ;;
 2184 
 2185     # No expected failures, but failures and xpasses
 2186     *:1:0) at_result="$at_result $at_were run,
 2187 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
 2188     *:*:0) at_result="$at_result $at_were run,
 2189 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
 2190 
 2191     # All of them.
 2192     *:*:1) at_result="$at_result $at_were run,
 2193 $at_xpass_count passed unexpectedly,
 2194 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
 2195     *:*:*) at_result="$at_result $at_were run,
 2196 $at_xpass_count passed unexpectedly,
 2197 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
 2198   esac
 2199 
 2200   if test $at_skip_count = 0 && test $at_run_count -gt 1; then
 2201     at_result="All $at_result"
 2202   fi
 2203 fi
 2204 
 2205 # Now put skips in the mix.
 2206 case $at_skip_count in
 2207   0) ;;
 2208   1) at_result="$at_result
 2209 1 test was skipped." ;;
 2210   *) at_result="$at_result
 2211 $at_skip_count tests were skipped." ;;
 2212 esac
 2213 
 2214 if test $at_unexpected_count = 0; then
 2215   echo "$at_color$at_result$at_std"
 2216   echo "$at_result" >&5
 2217 else
 2218   echo "${at_color}ERROR: $at_result$at_std" >&2
 2219   echo "ERROR: $at_result" >&5
 2220   {
 2221     echo
 2222     $as_echo "## ------------------------ ##
 2223 ## Summary of the failures. ##
 2224 ## ------------------------ ##"
 2225 
 2226     # Summary of failed and skipped tests.
 2227     if test $at_fail_count != 0; then
 2228       echo "Failed tests:"
 2229       $SHELL "$at_myself" $at_fail_list --list
 2230       echo
 2231     fi
 2232     if test $at_skip_count != 0; then
 2233       echo "Skipped tests:"
 2234       $SHELL "$at_myself" $at_skip_list --list
 2235       echo
 2236     fi
 2237     if test $at_xpass_count != 0; then
 2238       echo "Unexpected passes:"
 2239       $SHELL "$at_myself" $at_xpass_list --list
 2240       echo
 2241     fi
 2242     if test $at_fail_count != 0; then
 2243       $as_echo "## ---------------------- ##
 2244 ## Detailed failed tests. ##
 2245 ## ---------------------- ##"
 2246       echo
 2247       for at_group in $at_fail_list
 2248       do
 2249     at_group_normalized=$at_group
 2250 
 2251   eval 'while :; do
 2252     case $at_group_normalized in #(
 2253     '"$at_format"'*) break;;
 2254     esac
 2255     at_group_normalized=0$at_group_normalized
 2256   done'
 2257 
 2258     cat "$at_suite_dir/$at_group_normalized/$as_me.log"
 2259     echo
 2260       done
 2261       echo
 2262     fi
 2263     if test -n "$at_top_srcdir"; then
 2264       sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 2265 ## ${at_top_build_prefix}config.log ##
 2266 _ASBOX
 2267       sed 's/^/| /' ${at_top_build_prefix}config.log
 2268       echo
 2269     fi
 2270   } >&5
 2271 
 2272   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 2273 ## $as_me.log was created. ##
 2274 _ASBOX
 2275 
 2276   echo
 2277   if $at_debug_p; then
 2278     at_msg='per-test log files'
 2279   else
 2280     at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
 2281   fi
 2282   $as_echo "Please send $at_msg and all information you think might help:
 2283 
 2284    To: <bug-libtool@gnu.org>
 2285    Subject: [GNU Libtool 2.4.6] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
 2286 
 2287 You may investigate any problem if you feel able to do so, in which
 2288 case the test suite provides a good starting point.  Its output may
 2289 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
 2290 "
 2291   exit 1
 2292 fi
 2293 
 2294 exit 0
 2295 
 2296 ## ------------- ##
 2297 ## Actual tests. ##
 2298 ## ------------- ##
 2299 #AT_START_1
 2300 at_fn_group_banner 1 'configure-funcs.at:39' \
 2301   "func_munge_path_list works" "                     " 1
 2302 at_xfail=no
 2303 (
 2304   $as_echo "1. $at_setup_line: testing $at_desc ..."
 2305   $at_traceon
 2306 _lt_bin=$abs_top_builddir/libtool
 2307 re_begincf='^# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE'
 2308 re_endcf='^# ### END FUNCTIONS SHARED WITH CONFIGURE'
 2309 
 2310 $ECHO '#!/bin/sh'       > "func_munge_path_list"
 2311 $ECHO '#: ${SED=sed}'   >> "func_munge_path_list"
 2312 $ECHO '#: ${ECHO=echo}' >> "func_munge_path_list"
 2313 
 2314 sed "1,/$re_begincf/d;/$re_endcf/,\$d" < "$_lt_bin" >> "func_munge_path_list"
 2315 
 2316 
 2317 cat <<\EOF >> func_munge_path_list
 2318 for orig in "/usr/lib" " /lib /usr/lib "; do
 2319   $ECHO "'$orig':"
 2320   for path in "/p1:" "/p3:/p2:" ":/a1" ":/a2:/a3" "/p4::/a4" "/p6:/p5::/a5:/a6"; do
 2321     old=$orig
 2322     func_munge_path_list orig "$path" || exit 1
 2323     $ECHO "munge ($path) = $orig"
 2324   done
 2325 done
 2326 EOF
 2327 chmod +x func_munge_path_list
 2328 
 2329 { set +x
 2330 $as_echo "$at_srcdir/configure-funcs.at:68: ECHO=\"\$ECHO\" SED=\"\$SED\" ./func_munge_path_list"
 2331 at_fn_check_prepare_dynamic "ECHO=\"$ECHO\" SED=\"$SED\" ./func_munge_path_list" "configure-funcs.at:68"
 2332 ( $at_check_trace; ECHO="$ECHO" SED="$SED" ./func_munge_path_list
 2333 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2334 at_status=$? at_failed=false
 2335 $at_check_filter
 2336 at_fn_diff_devnull "$at_stderr" || at_failed=:
 2337 echo >>"$at_stdout"; $as_echo "'/usr/lib':
 2338 munge (/p1:) = /p1 /usr/lib
 2339 munge (/p3:/p2:) = /p3 /p2 /p1 /usr/lib
 2340 munge (:/a1) = /p3 /p2 /p1 /usr/lib /a1
 2341 munge (:/a2:/a3) = /p3 /p2 /p1 /usr/lib /a1 /a2 /a3
 2342 munge (/p4::/a4) = /p4 /p3 /p2 /p1 /usr/lib /a1 /a2 /a3 /a4
 2343 munge (/p6:/p5::/a5:/a6) = /p6 /p5 /p4 /p3 /p2 /p1 /usr/lib /a1 /a2 /a3 /a4 /a5 /a6
 2344 ' /lib /usr/lib ':
 2345 munge (/p1:) = /p1  /lib /usr/lib 
 2346 munge (/p3:/p2:) = /p3 /p2 /p1  /lib /usr/lib 
 2347 munge (:/a1) = /p3 /p2 /p1  /lib /usr/lib  /a1
 2348 munge (:/a2:/a3) = /p3 /p2 /p1  /lib /usr/lib  /a1 /a2 /a3
 2349 munge (/p4::/a4) = /p4 /p3 /p2 /p1  /lib /usr/lib  /a1 /a2 /a3 /a4
 2350 munge (/p6:/p5::/a5:/a6) = /p6 /p5 /p4 /p3 /p2 /p1  /lib /usr/lib  /a1 /a2 /a3 /a4 /a5 /a6
 2351 " | \
 2352   $at_diff - "$at_stdout" || at_failed=:
 2353 at_fn_check_status 0 $at_status "$at_srcdir/configure-funcs.at:68"
 2354 $at_failed && at_fn_log_failure
 2355 $at_traceon; }
 2356 
 2357 
 2358   set +x
 2359   $at_times_p && times >"$at_times_file"
 2360 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 2361 read at_status <"$at_status_file"
 2362 #AT_STOP_1
 2363 #AT_START_2
 2364 at_fn_group_banner 2 'libtoolize.at:84' \
 2365   "libtoolize macro installation" "                  " 2
 2366 at_xfail=no
 2367 (
 2368   $as_echo "2. $at_setup_line: testing $at_desc ..."
 2369   $at_traceon
 2370 
 2371 
 2372 cat >configure.ac <<'_ATEOF'
 2373 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 2374 AC_CONFIG_AUX_DIR([build-aux])
 2375 AC_CONFIG_MACRO_DIRS([m4])
 2376 LT_INIT
 2377 AC_OUTPUT
 2378 _ATEOF
 2379 
 2380 
 2381 
 2382 cat >expout <<'_ATEOF'
 2383 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 2384 libtoolize: copying file 'build-aux/ltmain.sh'
 2385 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 2386 libtoolize: copying file 'm4/libtool.m4'
 2387 libtoolize: copying file 'm4/ltoptions.m4'
 2388 libtoolize: copying file 'm4/ltsugar.m4'
 2389 libtoolize: copying file 'm4/ltversion.m4'
 2390 libtoolize: copying file 'm4/lt~obsolete.m4'
 2391 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 2392 _ATEOF
 2393 
 2394 
 2395 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2396 $SED "s/libtoolize/$lt_name/g
 2397 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2398 mv -f expout.t expout
 2399 { set +x
 2400 $as_echo "$at_srcdir/libtoolize.at:100: \$LIBTOOLIZE --copy
 2401 
 2402 "
 2403 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:100"
 2404 ( $at_check_trace; $LIBTOOLIZE --copy
 2405 
 2406 
 2407 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2408 at_status=$? at_failed=false
 2409 $at_check_filter
 2410 at_fn_diff_devnull "$at_stderr" || at_failed=:
 2411 $at_diff expout "$at_stdout" || at_failed=:
 2412 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:100"
 2413 $at_failed && at_fn_log_failure
 2414 $at_traceon; }
 2415 
 2416 
 2417 
 2418   set +x
 2419   $at_times_p && times >"$at_times_file"
 2420 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 2421 read at_status <"$at_status_file"
 2422 #AT_STOP_2
 2423 #AT_START_3
 2424 at_fn_group_banner 3 'libtoolize.at:109' \
 2425   "libtoolize macro directory mismatch error" "      " 2
 2426 at_xfail=no
 2427 (
 2428   $as_echo "3. $at_setup_line: testing $at_desc ..."
 2429   $at_traceon
 2430 
 2431 
 2432 cat >configure.ac <<'_ATEOF'
 2433 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 2434 AC_CONFIG_AUX_DIR([build-aux])
 2435 AC_CONFIG_MACRO_DIRS([m4])
 2436 LT_INIT
 2437 AC_OUTPUT
 2438 _ATEOF
 2439 
 2440 
 2441 
 2442 cat >Makefile.am <<'_ATEOF'
 2443 ACLOCAL_AMFLAGS = -I me2
 2444 _ATEOF
 2445 
 2446 
 2447 cat >experr <<'_ATEOF'
 2448 libtoolize:   error: AC_CONFIG_MACRO_DIRS([m4]) conflicts with ACLOCAL_AMFLAGS=-I me2.
 2449 _ATEOF
 2450 
 2451 
 2452 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2453 $SED "s/libtoolize/$lt_name/g
 2454 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 2455 mv -f experr.t experr
 2456 { set +x
 2457 $as_echo "$at_srcdir/libtoolize.at:121: \$LIBTOOLIZE --copy
 2458 
 2459 "
 2460 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:121"
 2461 ( $at_check_trace; $LIBTOOLIZE --copy
 2462 
 2463 
 2464 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2465 at_status=$? at_failed=false
 2466 $at_check_filter
 2467 $at_diff experr "$at_stderr" || at_failed=:
 2468 echo stdout:; cat "$at_stdout"
 2469 at_fn_check_status 1 $at_status "$at_srcdir/libtoolize.at:121"
 2470 $at_failed && at_fn_log_failure
 2471 $at_traceon; }
 2472 
 2473 
 2474 
 2475   set +x
 2476   $at_times_p && times >"$at_times_file"
 2477 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 2478 read at_status <"$at_status_file"
 2479 #AT_STOP_3
 2480 #AT_START_4
 2481 at_fn_group_banner 4 'libtoolize.at:130' \
 2482   "multiple AC_CONFIG_MACRO_DIRS invocation" "       " 2
 2483 at_xfail=no
 2484 (
 2485   $as_echo "4. $at_setup_line: testing $at_desc ..."
 2486   $at_traceon
 2487 
 2488 
 2489 cat >configure.ac <<'_ATEOF'
 2490 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 2491 AC_CONFIG_AUX_DIR([build-aux])
 2492 AC_CONFIG_MACRO_DIRS([first])
 2493 AC_CONFIG_MACRO_DIRS([second])
 2494 LT_INIT
 2495 AC_OUTPUT
 2496 _ATEOF
 2497 
 2498 
 2499 cat >expout <<'_ATEOF'
 2500 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 2501 libtoolize: copying file 'build-aux/ltmain.sh'
 2502 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'first'.
 2503 libtoolize: copying file 'first/libtool.m4'
 2504 libtoolize: copying file 'first/ltoptions.m4'
 2505 libtoolize: copying file 'first/ltsugar.m4'
 2506 libtoolize: copying file 'first/ltversion.m4'
 2507 libtoolize: copying file 'first/lt~obsolete.m4'
 2508 libtoolize: Consider adding '-I first' to ACLOCAL_AMFLAGS in Makefile.am.
 2509 _ATEOF
 2510 
 2511 
 2512 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2513 $SED "s/libtoolize/$lt_name/g
 2514 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2515 mv -f expout.t expout
 2516 { set +x
 2517 $as_echo "$at_srcdir/libtoolize.at:153: \$LIBTOOLIZE --copy
 2518 
 2519 "
 2520 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:153"
 2521 ( $at_check_trace; $LIBTOOLIZE --copy
 2522 
 2523 
 2524 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2525 at_status=$? at_failed=false
 2526 $at_check_filter
 2527 at_fn_diff_devnull "$at_stderr" || at_failed=:
 2528 $at_diff expout "$at_stdout" || at_failed=:
 2529 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:153"
 2530 $at_failed && at_fn_log_failure
 2531 $at_traceon; }
 2532 
 2533 
 2534 
 2535   set +x
 2536   $at_times_p && times >"$at_times_file"
 2537 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 2538 read at_status <"$at_status_file"
 2539 #AT_STOP_4
 2540 #AT_START_5
 2541 at_fn_group_banner 5 'libtoolize.at:158' \
 2542   "multiple AC_CONFIG_MACRO_DIRS directories" "      " 2
 2543 at_xfail=no
 2544 (
 2545   $as_echo "5. $at_setup_line: testing $at_desc ..."
 2546   $at_traceon
 2547 
 2548 
 2549 cat >configure.ac <<'_ATEOF'
 2550 AC_INIT([libtooize-demo], 2.4.6, bug-libtool@gnu.org)
 2551 AC_CONFIG_AUX_DIR([build-aux])
 2552 AC_CONFIG_MACRO_DIRS([first second third])
 2553 LT_INIT
 2554 AC_OUTPUT
 2555 _ATEOF
 2556 
 2557 
 2558 cat >expout <<'_ATEOF'
 2559 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 2560 libtoolize: copying file 'build-aux/ltmain.sh'
 2561 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'first'.
 2562 libtoolize: copying file 'first/libtool.m4'
 2563 libtoolize: copying file 'first/ltoptions.m4'
 2564 libtoolize: copying file 'first/ltsugar.m4'
 2565 libtoolize: copying file 'first/ltversion.m4'
 2566 libtoolize: copying file 'first/lt~obsolete.m4'
 2567 libtoolize: Consider adding '-I first' to ACLOCAL_AMFLAGS in Makefile.am.
 2568 _ATEOF
 2569 
 2570 
 2571 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2572 $SED "s/libtoolize/$lt_name/g
 2573 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2574 mv -f expout.t expout
 2575 { set +x
 2576 $as_echo "$at_srcdir/libtoolize.at:180: \$LIBTOOLIZE --copy
 2577 
 2578 "
 2579 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:180"
 2580 ( $at_check_trace; $LIBTOOLIZE --copy
 2581 
 2582 
 2583 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2584 at_status=$? at_failed=false
 2585 $at_check_filter
 2586 at_fn_diff_devnull "$at_stderr" || at_failed=:
 2587 $at_diff expout "$at_stdout" || at_failed=:
 2588 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:180"
 2589 $at_failed && at_fn_log_failure
 2590 $at_traceon; }
 2591 
 2592 
 2593 
 2594   set +x
 2595   $at_times_p && times >"$at_times_file"
 2596 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 2597 read at_status <"$at_status_file"
 2598 #AT_STOP_5
 2599 #AT_START_6
 2600 at_fn_group_banner 6 'libtoolize.at:190' \
 2601   "libtoolize ACLOCAL_AMFLAGS extraction" "          " 2
 2602 at_xfail=no
 2603 (
 2604   $as_echo "6. $at_setup_line: testing $at_desc ..."
 2605   $at_traceon
 2606 
 2607 
 2608 cat >configure.ac <<'_ATEOF'
 2609 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 2610 AC_CONFIG_AUX_DIR([build-aux])
 2611 LT_INIT
 2612 AC_OUTPUT
 2613 _ATEOF
 2614 
 2615 
 2616 cat >Makefile.am <<'_ATEOF'
 2617 ACLOCAL_AMFLAGS = -I first -I second
 2618 _ATEOF
 2619 
 2620 
 2621 cat >expout <<'_ATEOF'
 2622 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 2623 libtoolize: copying file 'build-aux/ltmain.sh'
 2624 libtoolize: putting macros in 'first'.
 2625 libtoolize: copying file 'first/libtool.m4'
 2626 libtoolize: copying file 'first/ltoptions.m4'
 2627 libtoolize: copying file 'first/ltsugar.m4'
 2628 libtoolize: copying file 'first/ltversion.m4'
 2629 libtoolize: copying file 'first/lt~obsolete.m4'
 2630 libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([first])' to configure.ac,
 2631 libtoolize: and rerunning libtoolize and aclocal.
 2632 _ATEOF
 2633 
 2634 
 2635 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2636 $SED "s/libtoolize/$lt_name/g
 2637 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2638 mv -f expout.t expout
 2639 { set +x
 2640 $as_echo "$at_srcdir/libtoolize.at:216: \$LIBTOOLIZE --copy
 2641 
 2642 "
 2643 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:216"
 2644 ( $at_check_trace; $LIBTOOLIZE --copy
 2645 
 2646 
 2647 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2648 at_status=$? at_failed=false
 2649 $at_check_filter
 2650 at_fn_diff_devnull "$at_stderr" || at_failed=:
 2651 $at_diff expout "$at_stdout" || at_failed=:
 2652 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:216"
 2653 $at_failed && at_fn_log_failure
 2654 $at_traceon; }
 2655 
 2656 
 2657 
 2658   set +x
 2659   $at_times_p && times >"$at_times_file"
 2660 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 2661 read at_status <"$at_status_file"
 2662 #AT_STOP_6
 2663 #AT_START_7
 2664 at_fn_group_banner 7 'libtoolize.at:225' \
 2665   "libtoolize macro serial update" "                 " 2
 2666 at_xfail=no
 2667 (
 2668   $as_echo "7. $at_setup_line: testing $at_desc ..."
 2669   $at_traceon
 2670 
 2671 
 2672 cat >configure.ac <<'_ATEOF'
 2673 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 2674 AC_CONFIG_AUX_DIR([build-aux])
 2675 AC_CONFIG_MACRO_DIRS([m4])
 2676 LT_INIT
 2677 AC_OUTPUT
 2678 _ATEOF
 2679 
 2680 
 2681 
 2682 test -d m4 || { rm -f m4 && mkdir m4; }
 2683 
 2684 rm -f m4/libtool.m4 m4/ltoptions.m4 build-aux/ltmain.sh
 2685 
 2686 cat >Makefile.am <<'_ATEOF'
 2687 ACLOCAL_AMFLAGS = -I m4
 2688 _ATEOF
 2689 
 2690 
 2691 # This file should be upgraded.
 2692 cat >m4/libtool.m4 <<'_ATEOF'
 2693 
 2694 # serial 25 LT_INIT
 2695 _ATEOF
 2696 
 2697 
 2698 # This file has a very high serial number, and should be left unchanged
 2699 # until --force is passed.
 2700 cat >m4/ltoptions.m4 <<'_ATEOF'
 2701 
 2702 # serial 99999 ltoptions.m4
 2703 _ATEOF
 2704 
 2705 
 2706 test -d build-aux || { rm -f build-aux && mkdir build-aux; }
 2707 
 2708 # This file has a very high serial number, and needs --force to be updated.
 2709 cat >build-aux/ltmain.sh <<'_ATEOF'
 2710 
 2711 package_revision=9999.9999
 2712 _ATEOF
 2713 
 2714 
 2715 # This file has a very old serial number, but should be left unchanged
 2716 # unless the --install flag is invoked.
 2717 cat >build-aux/config.guess <<'_ATEOF'
 2718 
 2719 timestamp='1970-01-01'
 2720 _ATEOF
 2721 
 2722 
 2723 
 2724 
 2725 
 2726 ## -------------------------------------------------------------------- ##
 2727 ## First we try to update with some newer files in the destination dir. ##
 2728 ## -------------------------------------------------------------------- ##
 2729 
 2730 cat >expout <<'_ATEOF'
 2731 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 2732 libtoolize: copying file 'm4/libtool.m4'
 2733 libtoolize: copying file 'm4/ltsugar.m4'
 2734 libtoolize: copying file 'm4/ltversion.m4'
 2735 libtoolize: copying file 'm4/lt~obsolete.m4'
 2736 _ATEOF
 2737 
 2738 
 2739 cat >experr <<'_ATEOF'
 2740 libtoolize:   error: 'build-aux/ltmain.sh' is newer: use '--force' to overwrite
 2741 libtoolize:   error: 'm4/ltoptions.m4' is newer: use '--force' to overwrite
 2742 _ATEOF
 2743 
 2744 
 2745 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2746 $SED "s/libtoolize/$lt_name/g
 2747 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2748 mv -f expout.t expout
 2749 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2750 $SED "s/libtoolize/$lt_name/g
 2751 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 2752 mv -f experr.t experr
 2753 { set +x
 2754 $as_echo "$at_srcdir/libtoolize.at:248: \$LIBTOOLIZE --copy
 2755 
 2756 "
 2757 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:248"
 2758 ( $at_check_trace; $LIBTOOLIZE --copy
 2759 
 2760 
 2761 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2762 at_status=$? at_failed=false
 2763 $at_check_filter
 2764 $at_diff experr "$at_stderr" || at_failed=:
 2765 $at_diff expout "$at_stdout" || at_failed=:
 2766 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:248"
 2767 $at_failed && at_fn_log_failure
 2768 $at_traceon; }
 2769 
 2770 
 2771 
 2772 
 2773 ## ---------------------------------------------------------- ##
 2774 ## Next, a second update attempt with everything now updated. ##
 2775 ## ---------------------------------------------------------- ##
 2776 
 2777 : >expout
 2778 
 2779 cat >experr <<'_ATEOF'
 2780 libtoolize:   error: 'build-aux/ltmain.sh' is newer: use '--force' to overwrite
 2781 libtoolize:   error: 'm4/ltoptions.m4' is newer: use '--force' to overwrite
 2782 _ATEOF
 2783 
 2784 
 2785 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2786 $SED "s/libtoolize/$lt_name/g
 2787 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2788 mv -f expout.t expout
 2789 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2790 $SED "s/libtoolize/$lt_name/g
 2791 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 2792 mv -f experr.t experr
 2793 { set +x
 2794 $as_echo "$at_srcdir/libtoolize.at:262: \$LIBTOOLIZE --copy
 2795 
 2796 "
 2797 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:262"
 2798 ( $at_check_trace; $LIBTOOLIZE --copy
 2799 
 2800 
 2801 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2802 at_status=$? at_failed=false
 2803 $at_check_filter
 2804 $at_diff experr "$at_stderr" || at_failed=:
 2805 $at_diff expout "$at_stdout" || at_failed=:
 2806 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:262"
 2807 $at_failed && at_fn_log_failure
 2808 $at_traceon; }
 2809 
 2810 
 2811 
 2812 
 2813 ## ----------------------------------------------------------- ##
 2814 ## Now, a forced update to downgrade files with newer serials. ##
 2815 ## ----------------------------------------------------------- ##
 2816 
 2817 cat >expout <<'_ATEOF'
 2818 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 2819 libtoolize: copying file 'build-aux/ltmain.sh'
 2820 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 2821 libtoolize: copying file 'm4/libtool.m4'
 2822 libtoolize: copying file 'm4/ltoptions.m4'
 2823 libtoolize: copying file 'm4/ltsugar.m4'
 2824 libtoolize: copying file 'm4/ltversion.m4'
 2825 libtoolize: copying file 'm4/lt~obsolete.m4'
 2826 _ATEOF
 2827 
 2828 
 2829 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2830 $SED "s/libtoolize/$lt_name/g
 2831 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2832 mv -f expout.t expout
 2833 { set +x
 2834 $as_echo "$at_srcdir/libtoolize.at:280: \$LIBTOOLIZE --copy --force
 2835 
 2836 "
 2837 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:280"
 2838 ( $at_check_trace; $LIBTOOLIZE --copy --force
 2839 
 2840 
 2841 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2842 at_status=$? at_failed=false
 2843 $at_check_filter
 2844 at_fn_diff_devnull "$at_stderr" || at_failed=:
 2845 $at_diff expout "$at_stdout" || at_failed=:
 2846 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:280"
 2847 $at_failed && at_fn_log_failure
 2848 $at_traceon; }
 2849 
 2850 
 2851 
 2852 
 2853 ## ---------------------------------------------------------------- ##
 2854 ## A final update attempt with everything previously force updated. ##
 2855 ## ---------------------------------------------------------------- ##
 2856 
 2857 : >expout
 2858 
 2859 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2860 $SED "s/libtoolize/$lt_name/g
 2861 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2862 mv -f expout.t expout
 2863 { set +x
 2864 $as_echo "$at_srcdir/libtoolize.at:289: \$LIBTOOLIZE --copy
 2865 
 2866 "
 2867 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:289"
 2868 ( $at_check_trace; $LIBTOOLIZE --copy
 2869 
 2870 
 2871 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2872 at_status=$? at_failed=false
 2873 $at_check_filter
 2874 at_fn_diff_devnull "$at_stderr" || at_failed=:
 2875 $at_diff expout "$at_stdout" || at_failed=:
 2876 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:289"
 2877 $at_failed && at_fn_log_failure
 2878 $at_traceon; }
 2879 
 2880 
 2881 
 2882   set +x
 2883   $at_times_p && times >"$at_times_file"
 2884 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 2885 read at_status <"$at_status_file"
 2886 #AT_STOP_7
 2887 #AT_START_8
 2888 at_fn_group_banner 8 'libtoolize.at:298' \
 2889   "libtoolize config files serial update" "          " 2
 2890 at_xfail=no
 2891 (
 2892   $as_echo "8. $at_setup_line: testing $at_desc ..."
 2893   $at_traceon
 2894 
 2895 
 2896 cat >configure.ac <<'_ATEOF'
 2897 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 2898 AC_CONFIG_AUX_DIR([build-aux])
 2899 AC_CONFIG_MACRO_DIRS([m4])
 2900 LT_INIT
 2901 AC_OUTPUT
 2902 _ATEOF
 2903 
 2904 
 2905 
 2906 test -d m4 || { rm -f m4 && mkdir m4; }
 2907 
 2908 rm -f m4/libtool.m4 m4/ltoptions.m4 build-aux/ltmain.sh
 2909 
 2910 cat >Makefile.am <<'_ATEOF'
 2911 ACLOCAL_AMFLAGS = -I m4
 2912 _ATEOF
 2913 
 2914 
 2915 # This file should be upgraded.
 2916 cat >m4/libtool.m4 <<'_ATEOF'
 2917 
 2918 # serial 25 LT_INIT
 2919 _ATEOF
 2920 
 2921 
 2922 # This file has a very high serial number, and should be left unchanged
 2923 # until --force is passed.
 2924 cat >m4/ltoptions.m4 <<'_ATEOF'
 2925 
 2926 # serial 99999 ltoptions.m4
 2927 _ATEOF
 2928 
 2929 
 2930 test -d build-aux || { rm -f build-aux && mkdir build-aux; }
 2931 
 2932 # This file has a very high serial number, and needs --force to be updated.
 2933 cat >build-aux/ltmain.sh <<'_ATEOF'
 2934 
 2935 package_revision=9999.9999
 2936 _ATEOF
 2937 
 2938 
 2939 # This file has a very old serial number, but should be left unchanged
 2940 # unless the --install flag is invoked.
 2941 cat >build-aux/config.guess <<'_ATEOF'
 2942 
 2943 timestamp='1970-01-01'
 2944 _ATEOF
 2945 
 2946 
 2947 
 2948 
 2949 
 2950 ## -------------------------------------------------------------------- ##
 2951 ## First we try to update with some newer files in the destination dir. ##
 2952 ## -------------------------------------------------------------------- ##
 2953 
 2954 cat >expout <<'_ATEOF'
 2955 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 2956 libtoolize: copying file 'build-aux/config.guess'
 2957 libtoolize: copying file 'build-aux/config.sub'
 2958 libtoolize: copying file 'build-aux/install-sh'
 2959 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 2960 libtoolize: copying file 'm4/libtool.m4'
 2961 libtoolize: copying file 'm4/ltsugar.m4'
 2962 libtoolize: copying file 'm4/ltversion.m4'
 2963 libtoolize: copying file 'm4/lt~obsolete.m4'
 2964 _ATEOF
 2965 
 2966 
 2967 cat >experr <<'_ATEOF'
 2968 libtoolize:   error: 'build-aux/ltmain.sh' is newer: use '--force' to overwrite
 2969 libtoolize:   error: 'm4/ltoptions.m4' is newer: use '--force' to overwrite
 2970 _ATEOF
 2971 
 2972 
 2973 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2974 $SED "s/libtoolize/$lt_name/g
 2975 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 2976 mv -f expout.t expout
 2977 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 2978 $SED "s/libtoolize/$lt_name/g
 2979 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 2980 mv -f experr.t experr
 2981 { set +x
 2982 $as_echo "$at_srcdir/libtoolize.at:325: \$LIBTOOLIZE --copy --install
 2983 
 2984 "
 2985 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:325"
 2986 ( $at_check_trace; $LIBTOOLIZE --copy --install
 2987 
 2988 
 2989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 2990 at_status=$? at_failed=false
 2991 $at_check_filter
 2992 $at_diff experr "$at_stderr" || at_failed=:
 2993 $at_diff expout "$at_stdout" || at_failed=:
 2994 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:325"
 2995 $at_failed && at_fn_log_failure
 2996 $at_traceon; }
 2997 
 2998 
 2999 
 3000 
 3001 ## ---------------------------------------------------------- ##
 3002 ## Next, a second update attempt with everything now updated. ##
 3003 ## ---------------------------------------------------------- ##
 3004 
 3005 : >expout
 3006 
 3007 cat >experr <<'_ATEOF'
 3008 libtoolize:   error: 'build-aux/ltmain.sh' is newer: use '--force' to overwrite
 3009 libtoolize:   error: 'm4/ltoptions.m4' is newer: use '--force' to overwrite
 3010 _ATEOF
 3011 
 3012 
 3013 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3014 $SED "s/libtoolize/$lt_name/g
 3015 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3016 mv -f expout.t expout
 3017 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3018 $SED "s/libtoolize/$lt_name/g
 3019 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 3020 mv -f experr.t experr
 3021 { set +x
 3022 $as_echo "$at_srcdir/libtoolize.at:339: \$LIBTOOLIZE --copy --install
 3023 
 3024 "
 3025 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:339"
 3026 ( $at_check_trace; $LIBTOOLIZE --copy --install
 3027 
 3028 
 3029 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3030 at_status=$? at_failed=false
 3031 $at_check_filter
 3032 $at_diff experr "$at_stderr" || at_failed=:
 3033 $at_diff expout "$at_stdout" || at_failed=:
 3034 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:339"
 3035 $at_failed && at_fn_log_failure
 3036 $at_traceon; }
 3037 
 3038 
 3039 
 3040 
 3041 ## ----------------------------------------------------------- ##
 3042 ## Now, a forced update to downgrade files with newer serials. ##
 3043 ## ----------------------------------------------------------- ##
 3044 
 3045 cat >expout <<'_ATEOF'
 3046 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 3047 libtoolize: copying file 'build-aux/config.guess'
 3048 libtoolize: copying file 'build-aux/config.sub'
 3049 libtoolize: copying file 'build-aux/install-sh'
 3050 libtoolize: copying file 'build-aux/ltmain.sh'
 3051 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3052 libtoolize: copying file 'm4/libtool.m4'
 3053 libtoolize: copying file 'm4/ltoptions.m4'
 3054 libtoolize: copying file 'm4/ltsugar.m4'
 3055 libtoolize: copying file 'm4/ltversion.m4'
 3056 libtoolize: copying file 'm4/lt~obsolete.m4'
 3057 _ATEOF
 3058 
 3059 
 3060 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3061 $SED "s/libtoolize/$lt_name/g
 3062 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3063 mv -f expout.t expout
 3064 { set +x
 3065 $as_echo "$at_srcdir/libtoolize.at:360: \$LIBTOOLIZE --copy --force --install
 3066 
 3067 "
 3068 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:360"
 3069 ( $at_check_trace; $LIBTOOLIZE --copy --force --install
 3070 
 3071 
 3072 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3073 at_status=$? at_failed=false
 3074 $at_check_filter
 3075 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3076 $at_diff expout "$at_stdout" || at_failed=:
 3077 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:360"
 3078 $at_failed && at_fn_log_failure
 3079 $at_traceon; }
 3080 
 3081 
 3082 
 3083 
 3084 ## ---------------------------------------------------------------- ##
 3085 ## A final update attempt with everything previously force updated. ##
 3086 ## ---------------------------------------------------------------- ##
 3087 
 3088 : >expout
 3089 
 3090 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3091 $SED "s/libtoolize/$lt_name/g
 3092 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3093 mv -f expout.t expout
 3094 { set +x
 3095 $as_echo "$at_srcdir/libtoolize.at:369: \$LIBTOOLIZE --copy --install
 3096 
 3097 "
 3098 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:369"
 3099 ( $at_check_trace; $LIBTOOLIZE --copy --install
 3100 
 3101 
 3102 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3103 at_status=$? at_failed=false
 3104 $at_check_filter
 3105 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3106 $at_diff expout "$at_stdout" || at_failed=:
 3107 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:369"
 3108 $at_failed && at_fn_log_failure
 3109 $at_traceon; }
 3110 
 3111 
 3112 
 3113   set +x
 3114   $at_times_p && times >"$at_times_file"
 3115 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 3116 read at_status <"$at_status_file"
 3117 #AT_STOP_8
 3118 #AT_START_9
 3119 at_fn_group_banner 9 'libtoolize.at:378' \
 3120   "diagnose missing LT_CONFIG_LTDL_DIR" "            " 2
 3121 at_xfail=no
 3122 (
 3123   $as_echo "9. $at_setup_line: testing $at_desc ..."
 3124   $at_traceon
 3125 
 3126 
 3127 cat >expout <<'_ATEOF'
 3128 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 3129 libtoolize: copying file 'build-aux/config.guess'
 3130 libtoolize: copying file 'build-aux/config.sub'
 3131 libtoolize: copying file 'build-aux/install-sh'
 3132 libtoolize: copying file 'build-aux/ltmain.sh'
 3133 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3134 libtoolize: copying file 'm4/libtool.m4'
 3135 libtoolize: copying file 'm4/ltargz.m4'
 3136 libtoolize: copying file 'm4/ltdl.m4'
 3137 libtoolize: copying file 'm4/ltoptions.m4'
 3138 libtoolize: copying file 'm4/ltsugar.m4'
 3139 libtoolize: copying file 'm4/ltversion.m4'
 3140 libtoolize: copying file 'm4/lt~obsolete.m4'
 3141 libtoolize: putting libltdl files in 'ltdl'.
 3142 libtoolize: copying file 'ltdl/COPYING.LIB'
 3143 libtoolize: copying file 'ltdl/README'
 3144 libtoolize: copying file 'ltdl/libltdl/lt__alloc.h'
 3145 libtoolize: copying file 'ltdl/libltdl/lt__argz_.h'
 3146 libtoolize: copying file 'ltdl/libltdl/lt__dirent.h'
 3147 libtoolize: copying file 'ltdl/libltdl/lt__glibc.h'
 3148 libtoolize: copying file 'ltdl/libltdl/lt__private.h'
 3149 libtoolize: copying file 'ltdl/libltdl/lt__strl.h'
 3150 libtoolize: copying file 'ltdl/libltdl/lt_dlloader.h'
 3151 libtoolize: copying file 'ltdl/libltdl/lt_error.h'
 3152 libtoolize: copying file 'ltdl/libltdl/lt_system.h'
 3153 libtoolize: copying file 'ltdl/libltdl/slist.h'
 3154 libtoolize: copying file 'ltdl/loaders/dld_link.c'
 3155 libtoolize: copying file 'ltdl/loaders/dlopen.c'
 3156 libtoolize: copying file 'ltdl/loaders/dyld.c'
 3157 libtoolize: copying file 'ltdl/loaders/load_add_on.c'
 3158 libtoolize: copying file 'ltdl/loaders/loadlibrary.c'
 3159 libtoolize: copying file 'ltdl/loaders/preopen.c'
 3160 libtoolize: copying file 'ltdl/loaders/shl_load.c'
 3161 libtoolize: copying file 'ltdl/lt__alloc.c'
 3162 libtoolize: copying file 'ltdl/lt__argz.c'
 3163 libtoolize: copying file 'ltdl/lt__dirent.c'
 3164 libtoolize: copying file 'ltdl/lt__strl.c'
 3165 libtoolize: copying file 'ltdl/lt_dlloader.c'
 3166 libtoolize: copying file 'ltdl/lt_error.c'
 3167 libtoolize: copying file 'ltdl/ltdl.c'
 3168 libtoolize: copying file 'ltdl/ltdl.h'
 3169 libtoolize: creating file 'ltdl/ltdl.mk'
 3170 libtoolize: copying file 'ltdl/slist.c'
 3171 libtoolize: Remember to add 'LT_CONFIG_LTDL_DIR([ltdl])' to 'configure.ac'.
 3172 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 3173 _ATEOF
 3174 
 3175 
 3176 cat >configure.ac <<'_ATEOF'
 3177 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 3178 AC_CONFIG_AUX_DIR([build-aux])
 3179 AC_CONFIG_MACRO_DIRS([m4])
 3180 LT_INIT
 3181 LTDL_INIT([nonrecursive])
 3182 AC_OUTPUT
 3183 _ATEOF
 3184 
 3185 
 3186 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3187 $SED "s/libtoolize/$lt_name/g
 3188 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3189 mv -f expout.t expout
 3190 { set +x
 3191 $as_echo "$at_srcdir/libtoolize.at:437: \$LIBTOOLIZE --copy --install --ltdl=ltdl
 3192 
 3193 "
 3194 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:437"
 3195 ( $at_check_trace; $LIBTOOLIZE --copy --install --ltdl=ltdl
 3196 
 3197 
 3198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3199 at_status=$? at_failed=false
 3200 $at_check_filter
 3201 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3202 $at_diff expout "$at_stdout" || at_failed=:
 3203 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:437"
 3204 $at_failed && at_fn_log_failure
 3205 $at_traceon; }
 3206 
 3207 
 3208 
 3209   set +x
 3210   $at_times_p && times >"$at_times_file"
 3211 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 3212 read at_status <"$at_status_file"
 3213 #AT_STOP_9
 3214 #AT_START_10
 3215 at_fn_group_banner 10 'libtoolize.at:523' \
 3216   "copy ltdl.m4 with shared macro directory" "       " 2
 3217 at_xfail=no
 3218 (
 3219   $as_echo "10. $at_setup_line: testing $at_desc ..."
 3220   $at_traceon
 3221 
 3222 
 3223 cat >expout <<'_ATEOF'
 3224 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 3225 libtoolize: linking file 'build-aux/compile'
 3226 libtoolize: linking file 'build-aux/config.guess'
 3227 libtoolize: linking file 'build-aux/config.sub'
 3228 libtoolize: linking file 'build-aux/depcomp'
 3229 libtoolize: linking file 'build-aux/install-sh'
 3230 libtoolize: linking file 'build-aux/missing'
 3231 libtoolize: linking file 'build-aux/ltmain.sh'
 3232 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3233 libtoolize: linking file 'm4/libtool.m4'
 3234 libtoolize: linking file 'm4/ltargz.m4'
 3235 libtoolize: linking file 'm4/ltdl.m4'
 3236 libtoolize: linking file 'm4/ltoptions.m4'
 3237 libtoolize: linking file 'm4/ltsugar.m4'
 3238 libtoolize: linking file 'm4/ltversion.m4'
 3239 libtoolize: linking file 'm4/lt~obsolete.m4'
 3240 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, 'ltdl'.
 3241 libtoolize: linking file 'ltdl/COPYING.LIB'
 3242 libtoolize: linking file 'ltdl/Makefile.am'
 3243 libtoolize: linking file 'ltdl/README'
 3244 libtoolize: linking file 'ltdl/configure.ac'
 3245 libtoolize: copying file 'ltdl/aclocal.m4'
 3246 libtoolize: linking file 'ltdl/Makefile.in'
 3247 libtoolize: linking file 'ltdl/config-h.in'
 3248 libtoolize: copying file 'ltdl/configure'
 3249 libtoolize: linking file 'ltdl/libltdl/lt__alloc.h'
 3250 libtoolize: linking file 'ltdl/libltdl/lt__argz_.h'
 3251 libtoolize: linking file 'ltdl/libltdl/lt__dirent.h'
 3252 libtoolize: linking file 'ltdl/libltdl/lt__glibc.h'
 3253 libtoolize: linking file 'ltdl/libltdl/lt__private.h'
 3254 libtoolize: linking file 'ltdl/libltdl/lt__strl.h'
 3255 libtoolize: linking file 'ltdl/libltdl/lt_dlloader.h'
 3256 libtoolize: linking file 'ltdl/libltdl/lt_error.h'
 3257 libtoolize: linking file 'ltdl/libltdl/lt_system.h'
 3258 libtoolize: linking file 'ltdl/libltdl/slist.h'
 3259 libtoolize: linking file 'ltdl/loaders/dld_link.c'
 3260 libtoolize: linking file 'ltdl/loaders/dlopen.c'
 3261 libtoolize: linking file 'ltdl/loaders/dyld.c'
 3262 libtoolize: linking file 'ltdl/loaders/load_add_on.c'
 3263 libtoolize: linking file 'ltdl/loaders/loadlibrary.c'
 3264 libtoolize: linking file 'ltdl/loaders/preopen.c'
 3265 libtoolize: linking file 'ltdl/loaders/shl_load.c'
 3266 libtoolize: linking file 'ltdl/lt__alloc.c'
 3267 libtoolize: linking file 'ltdl/lt__argz.c'
 3268 libtoolize: linking file 'ltdl/lt__dirent.c'
 3269 libtoolize: linking file 'ltdl/lt__strl.c'
 3270 libtoolize: linking file 'ltdl/lt_dlloader.c'
 3271 libtoolize: linking file 'ltdl/lt_error.c'
 3272 libtoolize: linking file 'ltdl/ltdl.c'
 3273 libtoolize: linking file 'ltdl/ltdl.h'
 3274 libtoolize: linking file 'ltdl/slist.c'
 3275 _ATEOF
 3276 
 3277 
 3278 cat >configure.ac <<'_ATEOF'
 3279 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 3280 LT_CONFIG_LTDL_DIR([ltdl])
 3281 AC_CONFIG_AUX_DIR([build-aux])
 3282 AC_CONFIG_MACRO_DIRS([m4])
 3283 LT_INIT
 3284 LTDL_INIT
 3285 AC_OUTPUT
 3286 _ATEOF
 3287 
 3288 
 3289 cat >Makefile.am <<'_ATEOF'
 3290 ACLOCAL_AMFLAGS = -I m4
 3291 _ATEOF
 3292 
 3293 
 3294 
 3295 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3296 $SED "s/libtoolize/$lt_name/g
 3297 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3298 mv -f expout.t expout
 3299 { set +x
 3300 $as_echo "$at_srcdir/libtoolize.at:527: \$LIBTOOLIZE --ltdl
 3301 
 3302 "
 3303 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:527"
 3304 ( $at_check_trace; $LIBTOOLIZE --ltdl
 3305 
 3306 
 3307 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3308 at_status=$? at_failed=false
 3309 $at_check_filter
 3310 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3311 $at_diff expout "$at_stdout" || at_failed=:
 3312 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:527"
 3313 $at_failed && at_fn_log_failure
 3314 $at_traceon; }
 3315 
 3316 
 3317 
 3318   set +x
 3319   $at_times_p && times >"$at_times_file"
 3320 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 3321 read at_status <"$at_status_file"
 3322 #AT_STOP_10
 3323 #AT_START_11
 3324 at_fn_group_banner 11 'libtoolize.at:535' \
 3325   "correctly parse LTDL_INIT from configure.ac" "    " 2
 3326 at_xfail=no
 3327 (
 3328   $as_echo "11. $at_setup_line: testing $at_desc ..."
 3329   $at_traceon
 3330 
 3331 
 3332 cat >expout <<'_ATEOF'
 3333 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 3334 libtoolize: linking file 'build-aux/compile'
 3335 libtoolize: linking file 'build-aux/config.guess'
 3336 libtoolize: linking file 'build-aux/config.sub'
 3337 libtoolize: linking file 'build-aux/depcomp'
 3338 libtoolize: linking file 'build-aux/install-sh'
 3339 libtoolize: linking file 'build-aux/missing'
 3340 libtoolize: linking file 'build-aux/ltmain.sh'
 3341 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3342 libtoolize: linking file 'm4/libtool.m4'
 3343 libtoolize: linking file 'm4/ltargz.m4'
 3344 libtoolize: linking file 'm4/ltdl.m4'
 3345 libtoolize: linking file 'm4/ltoptions.m4'
 3346 libtoolize: linking file 'm4/ltsugar.m4'
 3347 libtoolize: linking file 'm4/ltversion.m4'
 3348 libtoolize: linking file 'm4/lt~obsolete.m4'
 3349 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, 'ltdl'.
 3350 libtoolize: linking file 'ltdl/COPYING.LIB'
 3351 libtoolize: linking file 'ltdl/Makefile.am'
 3352 libtoolize: linking file 'ltdl/README'
 3353 libtoolize: linking file 'ltdl/configure.ac'
 3354 libtoolize: copying file 'ltdl/aclocal.m4'
 3355 libtoolize: linking file 'ltdl/Makefile.in'
 3356 libtoolize: linking file 'ltdl/config-h.in'
 3357 libtoolize: copying file 'ltdl/configure'
 3358 libtoolize: linking file 'ltdl/libltdl/lt__alloc.h'
 3359 libtoolize: linking file 'ltdl/libltdl/lt__argz_.h'
 3360 libtoolize: linking file 'ltdl/libltdl/lt__dirent.h'
 3361 libtoolize: linking file 'ltdl/libltdl/lt__glibc.h'
 3362 libtoolize: linking file 'ltdl/libltdl/lt__private.h'
 3363 libtoolize: linking file 'ltdl/libltdl/lt__strl.h'
 3364 libtoolize: linking file 'ltdl/libltdl/lt_dlloader.h'
 3365 libtoolize: linking file 'ltdl/libltdl/lt_error.h'
 3366 libtoolize: linking file 'ltdl/libltdl/lt_system.h'
 3367 libtoolize: linking file 'ltdl/libltdl/slist.h'
 3368 libtoolize: linking file 'ltdl/loaders/dld_link.c'
 3369 libtoolize: linking file 'ltdl/loaders/dlopen.c'
 3370 libtoolize: linking file 'ltdl/loaders/dyld.c'
 3371 libtoolize: linking file 'ltdl/loaders/load_add_on.c'
 3372 libtoolize: linking file 'ltdl/loaders/loadlibrary.c'
 3373 libtoolize: linking file 'ltdl/loaders/preopen.c'
 3374 libtoolize: linking file 'ltdl/loaders/shl_load.c'
 3375 libtoolize: linking file 'ltdl/lt__alloc.c'
 3376 libtoolize: linking file 'ltdl/lt__argz.c'
 3377 libtoolize: linking file 'ltdl/lt__dirent.c'
 3378 libtoolize: linking file 'ltdl/lt__strl.c'
 3379 libtoolize: linking file 'ltdl/lt_dlloader.c'
 3380 libtoolize: linking file 'ltdl/lt_error.c'
 3381 libtoolize: linking file 'ltdl/ltdl.c'
 3382 libtoolize: linking file 'ltdl/ltdl.h'
 3383 libtoolize: linking file 'ltdl/slist.c'
 3384 _ATEOF
 3385 
 3386 
 3387 cat >configure.ac <<'_ATEOF'
 3388 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 3389 LT_CONFIG_LTDL_DIR([ltdl])
 3390 AC_CONFIG_AUX_DIR([build-aux])
 3391 AC_CONFIG_MACRO_DIRS([m4])
 3392 LT_INIT
 3393 LTDL_INIT
 3394 AC_OUTPUT
 3395 _ATEOF
 3396 
 3397 
 3398 cat >Makefile.am <<'_ATEOF'
 3399 ACLOCAL_AMFLAGS = -I m4
 3400 _ATEOF
 3401 
 3402 
 3403 
 3404 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3405 $SED "s/libtoolize/$lt_name/g
 3406 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3407 mv -f expout.t expout
 3408 { set +x
 3409 $as_echo "$at_srcdir/libtoolize.at:539: \$LIBTOOLIZE
 3410 
 3411 "
 3412 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:539"
 3413 ( $at_check_trace; $LIBTOOLIZE
 3414 
 3415 
 3416 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3417 at_status=$? at_failed=false
 3418 $at_check_filter
 3419 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3420 $at_diff expout "$at_stdout" || at_failed=:
 3421 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:539"
 3422 $at_failed && at_fn_log_failure
 3423 $at_traceon; }
 3424 
 3425 
 3426 
 3427   set +x
 3428   $at_times_p && times >"$at_times_file"
 3429 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 3430 read at_status <"$at_status_file"
 3431 #AT_STOP_11
 3432 #AT_START_12
 3433 at_fn_group_banner 12 'libtoolize.at:547' \
 3434   "diagnose missing LTDL_INIT invocation" "          " 2
 3435 at_xfail=no
 3436 (
 3437   $as_echo "12. $at_setup_line: testing $at_desc ..."
 3438   $at_traceon
 3439 
 3440 
 3441 cat >expout <<'_ATEOF'
 3442 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 3443 libtoolize: copying file 'build-aux/compile'
 3444 libtoolize: copying file 'build-aux/config.guess'
 3445 libtoolize: copying file 'build-aux/config.sub'
 3446 libtoolize: copying file 'build-aux/depcomp'
 3447 libtoolize: copying file 'build-aux/install-sh'
 3448 libtoolize: copying file 'build-aux/missing'
 3449 libtoolize: copying file 'build-aux/ltmain.sh'
 3450 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3451 libtoolize: copying file 'm4/libtool.m4'
 3452 libtoolize: copying file 'm4/ltargz.m4'
 3453 libtoolize: copying file 'm4/ltdl.m4'
 3454 libtoolize: copying file 'm4/ltoptions.m4'
 3455 libtoolize: copying file 'm4/ltsugar.m4'
 3456 libtoolize: copying file 'm4/ltversion.m4'
 3457 libtoolize: copying file 'm4/lt~obsolete.m4'
 3458 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, 'ltdl'.
 3459 libtoolize: copying file 'ltdl/COPYING.LIB'
 3460 libtoolize: copying file 'ltdl/Makefile.am'
 3461 libtoolize: copying file 'ltdl/README'
 3462 libtoolize: copying file 'ltdl/configure.ac'
 3463 libtoolize: copying file 'ltdl/aclocal.m4'
 3464 libtoolize: copying file 'ltdl/Makefile.in'
 3465 libtoolize: copying file 'ltdl/config-h.in'
 3466 libtoolize: copying file 'ltdl/configure'
 3467 libtoolize: copying file 'ltdl/libltdl/lt__alloc.h'
 3468 libtoolize: copying file 'ltdl/libltdl/lt__argz_.h'
 3469 libtoolize: copying file 'ltdl/libltdl/lt__dirent.h'
 3470 libtoolize: copying file 'ltdl/libltdl/lt__glibc.h'
 3471 libtoolize: copying file 'ltdl/libltdl/lt__private.h'
 3472 libtoolize: copying file 'ltdl/libltdl/lt__strl.h'
 3473 libtoolize: copying file 'ltdl/libltdl/lt_dlloader.h'
 3474 libtoolize: copying file 'ltdl/libltdl/lt_error.h'
 3475 libtoolize: copying file 'ltdl/libltdl/lt_system.h'
 3476 libtoolize: copying file 'ltdl/libltdl/slist.h'
 3477 libtoolize: copying file 'ltdl/loaders/dld_link.c'
 3478 libtoolize: copying file 'ltdl/loaders/dlopen.c'
 3479 libtoolize: copying file 'ltdl/loaders/dyld.c'
 3480 libtoolize: copying file 'ltdl/loaders/load_add_on.c'
 3481 libtoolize: copying file 'ltdl/loaders/loadlibrary.c'
 3482 libtoolize: copying file 'ltdl/loaders/preopen.c'
 3483 libtoolize: copying file 'ltdl/loaders/shl_load.c'
 3484 libtoolize: copying file 'ltdl/lt__alloc.c'
 3485 libtoolize: copying file 'ltdl/lt__argz.c'
 3486 libtoolize: copying file 'ltdl/lt__dirent.c'
 3487 libtoolize: copying file 'ltdl/lt__strl.c'
 3488 libtoolize: copying file 'ltdl/lt_dlloader.c'
 3489 libtoolize: copying file 'ltdl/lt_error.c'
 3490 libtoolize: copying file 'ltdl/ltdl.c'
 3491 libtoolize: copying file 'ltdl/ltdl.h'
 3492 libtoolize: copying file 'ltdl/slist.c'
 3493 libtoolize: Remember to add 'LTDL_INIT' to configure.ac.
 3494 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 3495 _ATEOF
 3496 
 3497 
 3498 cat >configure.ac <<'_ATEOF'
 3499 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 3500 LT_CONFIG_LTDL_DIR([ltdl])
 3501 AC_CONFIG_AUX_DIR([build-aux])
 3502 AC_CONFIG_MACRO_DIRS([m4])
 3503 LT_INIT
 3504 AC_OUTPUT
 3505 _ATEOF
 3506 
 3507 
 3508 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3509 $SED "s/libtoolize/$lt_name/g
 3510 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3511 mv -f expout.t expout
 3512 { set +x
 3513 $as_echo "$at_srcdir/libtoolize.at:614: \$LIBTOOLIZE --ltdl --copy
 3514 
 3515 "
 3516 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:614"
 3517 ( $at_check_trace; $LIBTOOLIZE --ltdl --copy
 3518 
 3519 
 3520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3521 at_status=$? at_failed=false
 3522 $at_check_filter
 3523 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3524 $at_diff expout "$at_stdout" || at_failed=:
 3525 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:614"
 3526 $at_failed && at_fn_log_failure
 3527 $at_traceon; }
 3528 
 3529 
 3530 
 3531   set +x
 3532   $at_times_p && times >"$at_times_file"
 3533 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 3534 read at_status <"$at_status_file"
 3535 #AT_STOP_12
 3536 #AT_START_13
 3537 at_fn_group_banner 13 'libtoolize.at:624' \
 3538   "upgrading verbatim style aclocal.m4" "            " 2
 3539 at_xfail=no
 3540       test no = "$ACLOCAL" && at_xfail=yes
 3541 (
 3542   $as_echo "13. $at_setup_line: testing $at_desc ..."
 3543   $at_traceon
 3544 
 3545 
 3546 cat >configure.ac <<'_ATEOF'
 3547 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 3548 AC_CONFIG_AUX_DIR([build-aux])
 3549 LT_INIT
 3550 AC_OUTPUT
 3551 _ATEOF
 3552 
 3553 
 3554 cat >expout <<'_ATEOF'
 3555 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 3556 libtoolize: copying file 'build-aux/ltmain.sh'
 3557 libtoolize: You should add the contents of the following files to 'aclocal.m4':
 3558 libtoolize:   '/usr/local/share/aclocal/libtool.m4'
 3559 libtoolize:   '/usr/local/share/aclocal/ltoptions.m4'
 3560 libtoolize:   '/usr/local/share/aclocal/ltsugar.m4'
 3561 libtoolize:   '/usr/local/share/aclocal/ltversion.m4'
 3562 libtoolize:   '/usr/local/share/aclocal/lt~obsolete.m4'
 3563 libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
 3564 libtoolize: and rerunning libtoolize and aclocal.
 3565 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 3566 _ATEOF
 3567 
 3568 
 3569 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3570 $SED "s/libtoolize/$lt_name/g
 3571 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3572 mv -f expout.t expout
 3573 { set +x
 3574 $as_echo "$at_srcdir/libtoolize.at:647: \$LIBTOOLIZE --copy
 3575 
 3576 "
 3577 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:647"
 3578 ( $at_check_trace; $LIBTOOLIZE --copy
 3579 
 3580 
 3581 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3582 at_status=$? at_failed=false
 3583 $at_check_filter
 3584 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3585 $at_diff expout "$at_stdout" || at_failed=:
 3586 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:647"
 3587 $at_failed && at_fn_log_failure
 3588 $at_traceon; }
 3589 
 3590 
 3591 
 3592 
 3593 ## --------------------------------------- ##
 3594 ## Upgrading a hand maintained aclocal.m4. ##
 3595 ## --------------------------------------- ##
 3596 
 3597 cat >configure.ac <<'_ATEOF'
 3598 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 3599 AC_CONFIG_AUX_DIR([build-aux])
 3600 AC_CONFIG_MACRO_DIRS([m4])
 3601 LT_INIT
 3602 AC_OUTPUT
 3603 _ATEOF
 3604 
 3605 
 3606 cat >Makefile.am <<'_ATEOF'
 3607 ACLOCAL_AMFLAGS = -I m4
 3608 _ATEOF
 3609 
 3610 
 3611 cat >aclocal.m4 <<'_ATEOF'
 3612 # This should need upgrading:
 3613 # serial 25 LT_INIT
 3614 AC_DEFUN([LT_INIT],
 3615 [blah])
 3616 
 3617 # This is newer than the upgrade version:
 3618 # serial 99999 ltoptions.m4
 3619 
 3620 # This is older than the upgrade version:
 3621 # serial 1 ltversion.m4
 3622 _ATEOF
 3623 
 3624 
 3625 cat >expout <<'_ATEOF'
 3626 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3627 libtoolize: copying file 'm4/libtool.m4'
 3628 libtoolize: copying file 'm4/ltoptions.m4'
 3629 libtoolize: copying file 'm4/ltsugar.m4'
 3630 libtoolize: You should add the contents of 'm4/ltsugar.m4' to 'aclocal.m4'.
 3631 libtoolize: copying file 'm4/ltversion.m4'
 3632 libtoolize: You should add the contents of 'm4/ltversion.m4' to 'aclocal.m4'.
 3633 libtoolize: copying file 'm4/lt~obsolete.m4'
 3634 libtoolize: You should add the contents of 'm4/lt~obsolete.m4' to 'aclocal.m4'.
 3635 _ATEOF
 3636 
 3637 
 3638 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3639 $SED "s/libtoolize/$lt_name/g
 3640 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3641 mv -f expout.t expout
 3642 { set +x
 3643 $as_echo "$at_srcdir/libtoolize.at:691: \$LIBTOOLIZE --copy
 3644 
 3645 "
 3646 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:691"
 3647 ( $at_check_trace; $LIBTOOLIZE --copy
 3648 
 3649 
 3650 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3651 at_status=$? at_failed=false
 3652 $at_check_filter
 3653 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3654 $at_diff expout "$at_stdout" || at_failed=:
 3655 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:691"
 3656 $at_failed && at_fn_log_failure
 3657 $at_traceon; }
 3658 
 3659 
 3660 
 3661 
 3662 ## ------------------------------------------- ##
 3663 ## Upgrading an aclocal maintained aclocal.m4. ##
 3664 ## ------------------------------------------- ##
 3665 
 3666 macro_dir=
 3667 func_extract_trace AC_CONFIG_MACRO_DIRS
 3668 test -n "$func_extract_trace_result" \
 3669     || func_extract_trace AC_CONFIG_MACRO_DIR
 3670 test -n "$func_extract_trace_result" \
 3671     && macro_dir=" -I $func_extract_trace_result"
 3672 cat >acinclude.m4 <<'_ATEOF'
 3673 m4_ifndef([AC_CONFIG_MACRO_DIRS],
 3674       [m4_define([AC_CONFIG_MACRO_DIRS], m4_defn([AC_CONFIG_MACRO_DIR]))])
 3675 _ATEOF
 3676 
 3677 echo "$ACLOCAL -I m4$macro_dir"; { set +x
 3678 $as_echo "$at_srcdir/libtoolize.at:698: \$ACLOCAL -I m4\$macro_dir"
 3679 at_fn_check_prepare_dynamic "$ACLOCAL -I m4$macro_dir" "libtoolize.at:698"
 3680 ( $at_check_trace; $ACLOCAL -I m4$macro_dir
 3681 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3682 at_status=$? at_failed=false
 3683 $at_check_filter
 3684 echo stderr:; cat "$at_stderr"
 3685 echo stdout:; cat "$at_stdout"
 3686 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:698"
 3687 $at_failed && at_fn_log_failure
 3688 $at_traceon; }
 3689 
 3690 # After the 'aclocal' run sleep 1 second to guarantee that aclocal.m4 is going
 3691 # to have older timestamp than other autotools later-generated files (concretely
 3692 # for libtool case, we speak about config.h.in generated autoheader).
 3693 # Autoreconf does the same (after the first aclocal run).
 3694 sleep 1
 3695 
 3696 
 3697 
 3698 
 3699 rm -f m4/libtool.m4 m4/ltoptions.m4
 3700 
 3701 # This file should be upgraded.
 3702 cat >m4/libtool.m4 <<'_ATEOF'
 3703 
 3704 # serial 25 LT_INIT
 3705 AC_DEFUN([LT_INIT])
 3706 _ATEOF
 3707 
 3708 
 3709 # This file has a very high serial number, and should be left unchanged.
 3710 cat >m4/ltoptions.m4 <<'_ATEOF'
 3711 
 3712 # serial 99999 ltoptions.m4
 3713 _ATEOF
 3714 
 3715 
 3716 cat >expout <<'_ATEOF'
 3717 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3718 libtoolize: copying file 'm4/libtool.m4'
 3719 _ATEOF
 3720 
 3721 
 3722 cat >experr <<'_ATEOF'
 3723 libtoolize:   error: 'm4/ltoptions.m4' is newer: use '--force' to overwrite
 3724 _ATEOF
 3725 
 3726 
 3727 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3728 $SED "s/libtoolize/$lt_name/g
 3729 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3730 mv -f expout.t expout
 3731 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3732 $SED "s/libtoolize/$lt_name/g
 3733 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 3734 mv -f experr.t experr
 3735 { set +x
 3736 $as_echo "$at_srcdir/libtoolize.at:722: \$LIBTOOLIZE --copy
 3737 
 3738 "
 3739 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:722"
 3740 ( $at_check_trace; $LIBTOOLIZE --copy
 3741 
 3742 
 3743 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3744 at_status=$? at_failed=false
 3745 $at_check_filter
 3746 $at_diff experr "$at_stderr" || at_failed=:
 3747 $at_diff expout "$at_stdout" || at_failed=:
 3748 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:722"
 3749 $at_failed && at_fn_log_failure
 3750 $at_traceon; }
 3751 
 3752 
 3753 
 3754 ## ----------------------------------------------------------- ##
 3755 ## Now, a forced update to downgrade files with newer serials. ##
 3756 ## ----------------------------------------------------------- ##
 3757 
 3758 cat >expout <<'_ATEOF'
 3759 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 3760 libtoolize: copying file 'build-aux/ltmain.sh'
 3761 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 3762 libtoolize: copying file 'm4/libtool.m4'
 3763 libtoolize: copying file 'm4/ltoptions.m4'
 3764 libtoolize: copying file 'm4/ltsugar.m4'
 3765 libtoolize: copying file 'm4/ltversion.m4'
 3766 libtoolize: copying file 'm4/lt~obsolete.m4'
 3767 _ATEOF
 3768 
 3769 
 3770 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3771 $SED "s/libtoolize/$lt_name/g
 3772 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3773 mv -f expout.t expout
 3774 { set +x
 3775 $as_echo "$at_srcdir/libtoolize.at:739: \$LIBTOOLIZE --copy --force
 3776 
 3777 "
 3778 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:739"
 3779 ( $at_check_trace; $LIBTOOLIZE --copy --force
 3780 
 3781 
 3782 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3783 at_status=$? at_failed=false
 3784 $at_check_filter
 3785 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3786 $at_diff expout "$at_stdout" || at_failed=:
 3787 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:739"
 3788 $at_failed && at_fn_log_failure
 3789 $at_traceon; }
 3790 
 3791 
 3792 
 3793   set +x
 3794   $at_times_p && times >"$at_times_file"
 3795 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 3796 read at_status <"$at_status_file"
 3797 #AT_STOP_13
 3798 #AT_START_14
 3799 at_fn_group_banner 14 'libtoolize.at:748' \
 3800   "verbatim aclocal.m4 w/o AC_CONFIG_MACRO_DIRS" "   " 2
 3801 at_xfail=no
 3802       test no = "$ACLOCAL" && at_xfail=yes
 3803 (
 3804   $as_echo "14. $at_setup_line: testing $at_desc ..."
 3805   $at_traceon
 3806 
 3807 
 3808 cat >configure.ac <<'_ATEOF'
 3809 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 3810 LT_INIT
 3811 AC_OUTPUT
 3812 _ATEOF
 3813 
 3814 
 3815 cat >aclocal.m4 <<'_ATEOF'
 3816 # This should need upgrading:
 3817 # serial 25 LT_INIT
 3818 AC_DEFUN([LT_INIT],
 3819 [blah])
 3820 
 3821 # This is newer than the upgrade version:
 3822 # serial 99999 ltoptions.m4
 3823 
 3824 # This is older than the upgrade version:
 3825 # serial 1 ltversion.m4
 3826 _ATEOF
 3827 
 3828 
 3829 cat >expout <<'_ATEOF'
 3830 libtoolize: putting auxiliary files in '.'.
 3831 libtoolize: copying file './ltmain.sh'
 3832 libtoolize: You should add the contents of the following files to 'aclocal.m4':
 3833 libtoolize:   '/usr/local/share/aclocal/libtool.m4'
 3834 libtoolize:   '/usr/local/share/aclocal/ltsugar.m4'
 3835 libtoolize:   '/usr/local/share/aclocal/ltversion.m4'
 3836 libtoolize:   '/usr/local/share/aclocal/lt~obsolete.m4'
 3837 libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
 3838 libtoolize: and rerunning libtoolize and aclocal.
 3839 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 3840 _ATEOF
 3841 
 3842 
 3843 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3844 $SED "s/libtoolize/$lt_name/g
 3845 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3846 mv -f expout.t expout
 3847 { set +x
 3848 $as_echo "$at_srcdir/libtoolize.at:782: \$LIBTOOLIZE --copy
 3849 
 3850 "
 3851 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:782"
 3852 ( $at_check_trace; $LIBTOOLIZE --copy
 3853 
 3854 
 3855 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3856 at_status=$? at_failed=false
 3857 $at_check_filter
 3858 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3859 $at_diff expout "$at_stdout" || at_failed=:
 3860 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:782"
 3861 $at_failed && at_fn_log_failure
 3862 $at_traceon; }
 3863 
 3864 
 3865 
 3866 
 3867 ## ------------------------------------------------------------------------ ##
 3868 ## Upgrading an aclocal maintained aclocal.m4 without AC_CONFIG_MACRO_DIRS. ##
 3869 ## ------------------------------------------------------------------------ ##
 3870 
 3871 macro_dir=
 3872 func_extract_trace AC_CONFIG_MACRO_DIRS
 3873 test -n "$func_extract_trace_result" \
 3874     || func_extract_trace AC_CONFIG_MACRO_DIR
 3875 test -n "$func_extract_trace_result" \
 3876     && macro_dir=" -I $func_extract_trace_result"
 3877 cat >acinclude.m4 <<'_ATEOF'
 3878 m4_ifndef([AC_CONFIG_MACRO_DIRS],
 3879       [m4_define([AC_CONFIG_MACRO_DIRS], m4_defn([AC_CONFIG_MACRO_DIR]))])
 3880 _ATEOF
 3881 
 3882 echo "$ACLOCAL -I $abs_top_srcdir/m4$macro_dir"; { set +x
 3883 $as_echo "$at_srcdir/libtoolize.at:789: \$ACLOCAL -I \$abs_top_srcdir/m4\$macro_dir"
 3884 at_fn_check_prepare_dynamic "$ACLOCAL -I $abs_top_srcdir/m4$macro_dir" "libtoolize.at:789"
 3885 ( $at_check_trace; $ACLOCAL -I $abs_top_srcdir/m4$macro_dir
 3886 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3887 at_status=$? at_failed=false
 3888 $at_check_filter
 3889 echo stderr:; cat "$at_stderr"
 3890 echo stdout:; cat "$at_stdout"
 3891 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:789"
 3892 $at_failed && at_fn_log_failure
 3893 $at_traceon; }
 3894 
 3895 # After the 'aclocal' run sleep 1 second to guarantee that aclocal.m4 is going
 3896 # to have older timestamp than other autotools later-generated files (concretely
 3897 # for libtool case, we speak about config.h.in generated autoheader).
 3898 # Autoreconf does the same (after the first aclocal run).
 3899 sleep 1
 3900 
 3901 
 3902 
 3903 
 3904 ## The following code is adapted (and simplified) from libtoolize.in
 3905 ####
 3906 basename='s|^.*/||'
 3907 
 3908 # func_grep expression filename
 3909 # Check whether EXPRESSION matches any line of FILENAME, without output.
 3910 func_grep ()
 3911 {
 3912     $GREP "$1" "$2" >/dev/null 2>&1
 3913 }
 3914 
 3915 # func_serial filename [macro_regex]
 3916 # Output the value of the serial number comment in FILENAME, where the
 3917 # comment line must also match MACRO_REGEX, if given.
 3918 func_serial ()
 3919 {
 3920     my_filename=$1
 3921     my_macro_regex=$2
 3922     my_sed_serial='
 3923     /^# serial [1-9][0-9.]*[     ]*'"$my_macro_regex"'[  ]*$/ {
 3924         s|^# serial \([1-9][0-9.]*\).*$|\1|
 3925         q
 3926     }
 3927     d'
 3928 
 3929     # Search FILENAME and all the files it m4_includes for a serial number
 3930     # in the file that AC_DEFUNs MACRO_REGEX.
 3931     my_serial=
 3932     if test -z "$my_macro_regex" ||
 3933        test aclocal.m4 = "$my_filename" ||
 3934        test "$my_macro_regex" = `echo "$my_filename" | $SED "$basename"` ||
 3935        func_grep '^AC_DEFUN(\['"$my_macro_regex" "$my_filename"
 3936     then
 3937       my_serial=`$SED -e "$my_sed_serial" "$my_filename"`
 3938     fi
 3939 
 3940     # If the file has no serial number, something is badly wrong!
 3941     test -n "$my_serial" || exit 1
 3942 
 3943     echo $my_serial
 3944 }
 3945 
 3946 # Make the serial number in aclocal.m4 higher than installed ltoptions.m4,
 3947 # and the others match the macro files that libtoolize will compare against.
 3948 libtool_serial=`func_serial "$tst_aclocaldir/libtool.m4" LT_INIT`
 3949 ltversion_serial=`func_serial "$tst_aclocaldir/ltversion.m4" ltversion.m4`
 3950 ltsugar_serial=`func_serial "$tst_aclocaldir/ltsugar.m4" ltsugar.m4`
 3951 lt_obsolete_serial=`func_serial "$tst_aclocaldir/lt~obsolete.m4" lt~obsolete.m4`
 3952 $SED -e 's|^#.*serial.*ltoptions.m4$|# serial 99999 ltoptions.m4|' \
 3953    -e "s|^#.*serial.*libtool.m4\$|# serial $libtool_serial libtool.m4|" \
 3954   -e "s|^#.*serial.*ltversion.m4\$|# serial $ltversion_serial ltversion.m4|" \
 3955   -e "s|^#.*serial.*ltsugar.m4\$|# serial $ltsugar_serial ltsugar.m4|" \
 3956   -e "s|^#.*serial.*lt~obsolete.m4\$|# serial $lt_obsolete_serial lt~obsolete.m4|" \
 3957  < aclocal.m4 > aclocal.m4t
 3958 mv -f aclocal.m4t aclocal.m4
 3959 
 3960 cat >expout <<'_ATEOF'
 3961 libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
 3962 libtoolize: and rerunning libtoolize and aclocal.
 3963 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 3964 _ATEOF
 3965 
 3966 
 3967 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 3968 $SED "s/libtoolize/$lt_name/g
 3969 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 3970 mv -f expout.t expout
 3971 { set +x
 3972 $as_echo "$at_srcdir/libtoolize.at:853: \$LIBTOOLIZE --copy
 3973 
 3974 "
 3975 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:853"
 3976 ( $at_check_trace; $LIBTOOLIZE --copy
 3977 
 3978 
 3979 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 3980 at_status=$? at_failed=false
 3981 $at_check_filter
 3982 at_fn_diff_devnull "$at_stderr" || at_failed=:
 3983 $at_diff expout "$at_stdout" || at_failed=:
 3984 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:853"
 3985 $at_failed && at_fn_log_failure
 3986 $at_traceon; }
 3987 
 3988 
 3989 
 3990 
 3991 ## --------------------- ##
 3992 ## Now, a forced update. ##
 3993 ## --------------------- ##
 3994 
 3995 cat >expout <<'_ATEOF'
 3996 libtoolize: putting auxiliary files in '.'.
 3997 libtoolize: copying file './ltmain.sh'
 3998 libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
 3999 libtoolize: and rerunning libtoolize and aclocal.
 4000 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 4001 _ATEOF
 4002 
 4003 
 4004 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 4005 $SED "s/libtoolize/$lt_name/g
 4006 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 4007 mv -f expout.t expout
 4008 { set +x
 4009 $as_echo "$at_srcdir/libtoolize.at:868: \$LIBTOOLIZE --copy --force
 4010 
 4011 "
 4012 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:868"
 4013 ( $at_check_trace; $LIBTOOLIZE --copy --force
 4014 
 4015 
 4016 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4017 at_status=$? at_failed=false
 4018 $at_check_filter
 4019 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4020 $at_diff expout "$at_stdout" || at_failed=:
 4021 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:868"
 4022 $at_failed && at_fn_log_failure
 4023 $at_traceon; }
 4024 
 4025 
 4026 
 4027   set +x
 4028   $at_times_p && times >"$at_times_file"
 4029 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4030 read at_status <"$at_status_file"
 4031 #AT_STOP_14
 4032 #AT_START_15
 4033 at_fn_group_banner 15 'libtoolize.at:877' \
 4034   "nonrecursive ltdl with AC_CONFIG_MACRO_DIRS" "    " 2
 4035 at_xfail=no
 4036 (
 4037   $as_echo "15. $at_setup_line: testing $at_desc ..."
 4038   $at_traceon
 4039 
 4040 
 4041 cat >expout <<'_ATEOF'
 4042 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
 4043 libtoolize: copying file 'build-aux/config.guess'
 4044 libtoolize: copying file 'build-aux/config.sub'
 4045 libtoolize: copying file 'build-aux/install-sh'
 4046 libtoolize: copying file 'build-aux/ltmain.sh'
 4047 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
 4048 libtoolize: copying file 'm4/libtool.m4'
 4049 libtoolize: copying file 'm4/ltargz.m4'
 4050 libtoolize: copying file 'm4/ltdl.m4'
 4051 libtoolize: copying file 'm4/ltoptions.m4'
 4052 libtoolize: copying file 'm4/ltsugar.m4'
 4053 libtoolize: copying file 'm4/ltversion.m4'
 4054 libtoolize: copying file 'm4/lt~obsolete.m4'
 4055 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, 'ltdl'.
 4056 libtoolize: copying file 'ltdl/COPYING.LIB'
 4057 libtoolize: copying file 'ltdl/README'
 4058 libtoolize: copying file 'ltdl/libltdl/lt__alloc.h'
 4059 libtoolize: copying file 'ltdl/libltdl/lt__argz_.h'
 4060 libtoolize: copying file 'ltdl/libltdl/lt__dirent.h'
 4061 libtoolize: copying file 'ltdl/libltdl/lt__glibc.h'
 4062 libtoolize: copying file 'ltdl/libltdl/lt__private.h'
 4063 libtoolize: copying file 'ltdl/libltdl/lt__strl.h'
 4064 libtoolize: copying file 'ltdl/libltdl/lt_dlloader.h'
 4065 libtoolize: copying file 'ltdl/libltdl/lt_error.h'
 4066 libtoolize: copying file 'ltdl/libltdl/lt_system.h'
 4067 libtoolize: copying file 'ltdl/libltdl/slist.h'
 4068 libtoolize: copying file 'ltdl/loaders/dld_link.c'
 4069 libtoolize: copying file 'ltdl/loaders/dlopen.c'
 4070 libtoolize: copying file 'ltdl/loaders/dyld.c'
 4071 libtoolize: copying file 'ltdl/loaders/load_add_on.c'
 4072 libtoolize: copying file 'ltdl/loaders/loadlibrary.c'
 4073 libtoolize: copying file 'ltdl/loaders/preopen.c'
 4074 libtoolize: copying file 'ltdl/loaders/shl_load.c'
 4075 libtoolize: copying file 'ltdl/lt__alloc.c'
 4076 libtoolize: copying file 'ltdl/lt__argz.c'
 4077 libtoolize: copying file 'ltdl/lt__dirent.c'
 4078 libtoolize: copying file 'ltdl/lt__strl.c'
 4079 libtoolize: copying file 'ltdl/lt_dlloader.c'
 4080 libtoolize: copying file 'ltdl/lt_error.c'
 4081 libtoolize: copying file 'ltdl/ltdl.c'
 4082 libtoolize: copying file 'ltdl/ltdl.h'
 4083 libtoolize: creating file 'ltdl/ltdl.mk'
 4084 libtoolize: copying file 'ltdl/slist.c'
 4085 _ATEOF
 4086 
 4087 
 4088 cat >configure.ac <<'_ATEOF'
 4089 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 4090 LT_CONFIG_LTDL_DIR([ltdl])
 4091 AC_CONFIG_AUX_DIR([build-aux])
 4092 AC_CONFIG_MACRO_DIRS([m4])
 4093 LT_INIT
 4094 LTDL_INIT([nonrecursive])
 4095 AC_OUTPUT
 4096 _ATEOF
 4097 
 4098 
 4099 cat >Makefile.am <<'_ATEOF'
 4100 ACLOCAL_AMFLAGS = -I m4
 4101 _ATEOF
 4102 
 4103 
 4104 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 4105 $SED "s/libtoolize/$lt_name/g
 4106 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 4107 mv -f expout.t expout
 4108 { set +x
 4109 $as_echo "$at_srcdir/libtoolize.at:939: \$LIBTOOLIZE --copy --install --ltdl=ltdl
 4110 
 4111 "
 4112 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:939"
 4113 ( $at_check_trace; $LIBTOOLIZE --copy --install --ltdl=ltdl
 4114 
 4115 
 4116 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4117 at_status=$? at_failed=false
 4118 $at_check_filter
 4119 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4120 $at_diff expout "$at_stdout" || at_failed=:
 4121 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:939"
 4122 $at_failed && at_fn_log_failure
 4123 $at_traceon; }
 4124 
 4125 
 4126 
 4127   set +x
 4128   $at_times_p && times >"$at_times_file"
 4129 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4130 read at_status <"$at_status_file"
 4131 #AT_STOP_15
 4132 #AT_START_16
 4133 at_fn_group_banner 16 'libtoolize.at:948' \
 4134   "subproject ltdl with unconventional layout" "     " 2
 4135 at_xfail=no
 4136 (
 4137   $as_echo "16. $at_setup_line: testing $at_desc ..."
 4138   $at_traceon
 4139 
 4140 
 4141 cat >expout <<'_ATEOF'
 4142 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'acaux'.
 4143 libtoolize: copying file 'acaux/compile'
 4144 libtoolize: copying file 'acaux/config.guess'
 4145 libtoolize: copying file 'acaux/config.sub'
 4146 libtoolize: copying file 'acaux/depcomp'
 4147 libtoolize: copying file 'acaux/install-sh'
 4148 libtoolize: copying file 'acaux/missing'
 4149 libtoolize: copying file 'acaux/ltmain.sh'
 4150 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'acm4'.
 4151 libtoolize: copying file 'acm4/libtool.m4'
 4152 libtoolize: copying file 'acm4/ltargz.m4'
 4153 libtoolize: copying file 'acm4/ltdl.m4'
 4154 libtoolize: copying file 'acm4/ltoptions.m4'
 4155 libtoolize: copying file 'acm4/ltsugar.m4'
 4156 libtoolize: copying file 'acm4/ltversion.m4'
 4157 libtoolize: copying file 'acm4/lt~obsolete.m4'
 4158 libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, 'ltdl'.
 4159 libtoolize: copying file 'ltdl/COPYING.LIB'
 4160 libtoolize: creating file 'ltdl/Makefile.am'
 4161 libtoolize: copying file 'ltdl/README'
 4162 libtoolize: creating file 'ltdl/configure.ac'
 4163 libtoolize: creating file 'ltdl/aclocal.m4'
 4164 libtoolize: creating file 'ltdl/Makefile.in'
 4165 libtoolize: copying file 'ltdl/config-h.in'
 4166 libtoolize: creating file 'ltdl/configure'
 4167 libtoolize: copying file 'ltdl/libltdl/lt__alloc.h'
 4168 libtoolize: copying file 'ltdl/libltdl/lt__argz_.h'
 4169 libtoolize: copying file 'ltdl/libltdl/lt__dirent.h'
 4170 libtoolize: copying file 'ltdl/libltdl/lt__glibc.h'
 4171 libtoolize: copying file 'ltdl/libltdl/lt__private.h'
 4172 libtoolize: copying file 'ltdl/libltdl/lt__strl.h'
 4173 libtoolize: copying file 'ltdl/libltdl/lt_dlloader.h'
 4174 libtoolize: copying file 'ltdl/libltdl/lt_error.h'
 4175 libtoolize: copying file 'ltdl/libltdl/lt_system.h'
 4176 libtoolize: copying file 'ltdl/libltdl/slist.h'
 4177 libtoolize: copying file 'ltdl/loaders/dld_link.c'
 4178 libtoolize: copying file 'ltdl/loaders/dlopen.c'
 4179 libtoolize: copying file 'ltdl/loaders/dyld.c'
 4180 libtoolize: copying file 'ltdl/loaders/load_add_on.c'
 4181 libtoolize: copying file 'ltdl/loaders/loadlibrary.c'
 4182 libtoolize: copying file 'ltdl/loaders/preopen.c'
 4183 libtoolize: copying file 'ltdl/loaders/shl_load.c'
 4184 libtoolize: copying file 'ltdl/lt__alloc.c'
 4185 libtoolize: copying file 'ltdl/lt__argz.c'
 4186 libtoolize: copying file 'ltdl/lt__dirent.c'
 4187 libtoolize: copying file 'ltdl/lt__strl.c'
 4188 libtoolize: copying file 'ltdl/lt_dlloader.c'
 4189 libtoolize: copying file 'ltdl/lt_error.c'
 4190 libtoolize: copying file 'ltdl/ltdl.c'
 4191 libtoolize: copying file 'ltdl/ltdl.h'
 4192 libtoolize: copying file 'ltdl/slist.c'
 4193 libtoolize: Consider adding '-I acm4' to ACLOCAL_AMFLAGS in Makefile.am.
 4194 _ATEOF
 4195 
 4196 
 4197 cat >configure.ac <<'_ATEOF'
 4198 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 4199 LT_CONFIG_LTDL_DIR([ltdl])
 4200 AC_CONFIG_AUX_DIR([acaux])
 4201 AC_CONFIG_MACRO_DIRS([acm4])
 4202 LT_INIT
 4203 LTDL_INIT([subproject])
 4204 AC_OUTPUT
 4205 _ATEOF
 4206 
 4207 
 4208 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 4209 $SED "s/libtoolize/$lt_name/g
 4210 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < expout > expout.t
 4211 mv -f expout.t expout
 4212 { set +x
 4213 $as_echo "$at_srcdir/libtoolize.at:1015: \$LIBTOOLIZE --copy --install
 4214 
 4215 "
 4216 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:1015"
 4217 ( $at_check_trace; $LIBTOOLIZE --copy --install
 4218 
 4219 
 4220 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4221 at_status=$? at_failed=false
 4222 $at_check_filter
 4223 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4224 $at_diff expout "$at_stdout" || at_failed=:
 4225 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1015"
 4226 $at_failed && at_fn_log_failure
 4227 $at_traceon; }
 4228 
 4229 
 4230 
 4231   set +x
 4232   $at_times_p && times >"$at_times_file"
 4233 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4234 read at_status <"$at_status_file"
 4235 #AT_STOP_16
 4236 #AT_START_17
 4237 at_fn_group_banner 17 'libtoolize.at:1024' \
 4238   "Subproject ltdl without GNU M4" "                 " 2
 4239 at_xfail=no
 4240 (
 4241   $as_echo "17. $at_setup_line: testing $at_desc ..."
 4242   $at_traceon
 4243 
 4244 
 4245 cat >expout <<'_ATEOF'
 4246 libtoolize: putting auxiliary files in 'ltdl'.
 4247 libtoolize: linking file 'ltdl/compile'
 4248 libtoolize: linking file 'ltdl/config.guess'
 4249 libtoolize: linking file 'ltdl/config.sub'
 4250 libtoolize: linking file 'ltdl/depcomp'
 4251 libtoolize: linking file 'ltdl/install-sh'
 4252 libtoolize: linking file 'ltdl/missing'
 4253 libtoolize: linking file 'ltdl/ltmain.sh'
 4254 libtoolize: putting macros in 'ltdl/m4'.
 4255 libtoolize: linking file 'ltdl/m4/libtool.m4'
 4256 libtoolize: linking file 'ltdl/m4/ltargz.m4'
 4257 libtoolize: linking file 'ltdl/m4/ltdl.m4'
 4258 libtoolize: linking file 'ltdl/m4/ltoptions.m4'
 4259 libtoolize: linking file 'ltdl/m4/ltsugar.m4'
 4260 libtoolize: linking file 'ltdl/m4/ltversion.m4'
 4261 libtoolize: linking file 'ltdl/m4/lt~obsolete.m4'
 4262 libtoolize: putting libltdl files in 'ltdl'.
 4263 libtoolize: linking file 'ltdl/COPYING.LIB'
 4264 libtoolize: creating file 'ltdl/Makefile.am'
 4265 libtoolize: linking file 'ltdl/README'
 4266 libtoolize: creating file 'ltdl/configure.ac'
 4267 libtoolize: creating file 'ltdl/aclocal.m4'
 4268 libtoolize: creating file 'ltdl/Makefile.in'
 4269 libtoolize: linking file 'ltdl/config-h.in'
 4270 libtoolize: creating file 'ltdl/configure'
 4271 libtoolize: linking file 'ltdl/libltdl/lt__alloc.h'
 4272 libtoolize: linking file 'ltdl/libltdl/lt__argz_.h'
 4273 libtoolize: linking file 'ltdl/libltdl/lt__dirent.h'
 4274 libtoolize: linking file 'ltdl/libltdl/lt__glibc.h'
 4275 libtoolize: linking file 'ltdl/libltdl/lt__private.h'
 4276 libtoolize: linking file 'ltdl/libltdl/lt__strl.h'
 4277 libtoolize: linking file 'ltdl/libltdl/lt_dlloader.h'
 4278 libtoolize: linking file 'ltdl/libltdl/lt_error.h'
 4279 libtoolize: linking file 'ltdl/libltdl/lt_system.h'
 4280 libtoolize: linking file 'ltdl/libltdl/slist.h'
 4281 libtoolize: linking file 'ltdl/loaders/dld_link.c'
 4282 libtoolize: linking file 'ltdl/loaders/dlopen.c'
 4283 libtoolize: linking file 'ltdl/loaders/dyld.c'
 4284 libtoolize: linking file 'ltdl/loaders/load_add_on.c'
 4285 libtoolize: linking file 'ltdl/loaders/loadlibrary.c'
 4286 libtoolize: linking file 'ltdl/loaders/preopen.c'
 4287 libtoolize: linking file 'ltdl/loaders/shl_load.c'
 4288 libtoolize: linking file 'ltdl/lt__alloc.c'
 4289 libtoolize: linking file 'ltdl/lt__argz.c'
 4290 libtoolize: linking file 'ltdl/lt__dirent.c'
 4291 libtoolize: linking file 'ltdl/lt__strl.c'
 4292 libtoolize: linking file 'ltdl/lt_dlloader.c'
 4293 libtoolize: linking file 'ltdl/lt_error.c'
 4294 libtoolize: linking file 'ltdl/ltdl.c'
 4295 libtoolize: linking file 'ltdl/ltdl.h'
 4296 libtoolize: linking file 'ltdl/slist.c'
 4297 _ATEOF
 4298 
 4299 
 4300 cat >no-m4 <<'_ATEOF'
 4301 #! /bin/sh
 4302 echo 'error: do not call m4' >&2
 4303 exit 1
 4304 _ATEOF
 4305 
 4306 chmod a+x ./no-m4
 4307 
 4308 { set +x
 4309 $as_echo "$at_srcdir/libtoolize.at:1087: PATH=\`pwd\`:\$PATH M4=\`pwd\`/no-m4 \$LIBTOOLIZE --ltdl=ltdl"
 4310 at_fn_check_prepare_notrace 'a `...` command substitution' "libtoolize.at:1087"
 4311 ( $at_check_trace; PATH=`pwd`:$PATH M4=`pwd`/no-m4 $LIBTOOLIZE --ltdl=ltdl
 4312 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4313 at_status=$? at_failed=false
 4314 $at_check_filter
 4315 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4316 $at_diff expout "$at_stdout" || at_failed=:
 4317 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1087"
 4318 $at_failed && at_fn_log_failure
 4319 $at_traceon; }
 4320 
 4321 
 4322   set +x
 4323   $at_times_p && times >"$at_times_file"
 4324 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4325 read at_status <"$at_status_file"
 4326 #AT_STOP_17
 4327 #AT_START_18
 4328 at_fn_group_banner 18 'libtoolize.at:1096' \
 4329   "LIBTOOLIZE_OPTIONS" "                             " 2
 4330 at_xfail=no
 4331 (
 4332   $as_echo "18. $at_setup_line: testing $at_desc ..."
 4333   $at_traceon
 4334 
 4335 
 4336 cat >configure.ac <<'_ATEOF'
 4337 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 4338 AC_CONFIG_AUX_DIR([build-aux])
 4339 AC_CONFIG_MACRO_DIRS([m4])
 4340 LT_INIT
 4341 AC_OUTPUT
 4342 _ATEOF
 4343 
 4344 
 4345 
 4346 LIBTOOLIZE_OPTIONS=narf
 4347 export LIBTOOLIZE_OPTIONS
 4348 
 4349 cat >experr <<'_ATEOF'
 4350 libtoolize:   error: garbled LIBTOOLIZE_OPTIONS near 'narf'
 4351 _ATEOF
 4352 
 4353 
 4354 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 4355 $SED "s/libtoolize/$lt_name/g
 4356 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 4357 mv -f experr.t experr
 4358 { set +x
 4359 $as_echo "$at_srcdir/libtoolize.at:1107: \$LIBTOOLIZE --copy
 4360 
 4361 "
 4362 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:1107"
 4363 ( $at_check_trace; $LIBTOOLIZE --copy
 4364 
 4365 
 4366 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4367 at_status=$? at_failed=false
 4368 $at_check_filter
 4369 $at_diff experr "$at_stderr" || at_failed=:
 4370 echo stdout:; cat "$at_stdout"
 4371 at_fn_check_status 1 $at_status "$at_srcdir/libtoolize.at:1107"
 4372 $at_failed && at_fn_log_failure
 4373 $at_traceon; }
 4374 
 4375 
 4376 
 4377 
 4378 ## --------------------------- ##
 4379 ## Unknown LIBTOOLIZE_OPTIONS. ##
 4380 ## --------------------------- ##
 4381 
 4382 LIBTOOLIZE_OPTIONS=--no-such-option
 4383 export LIBTOOLIZE_OPTIONS
 4384 
 4385 cat >experr <<'_ATEOF'
 4386 libtoolize: warning: unrecognized environment option '--no-such-option'
 4387 _ATEOF
 4388 
 4389 
 4390 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 4391 $SED "s/libtoolize/$lt_name/g
 4392 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 4393 mv -f experr.t experr
 4394 { set +x
 4395 $as_echo "$at_srcdir/libtoolize.at:1121: \$LIBTOOLIZE --copy
 4396 
 4397 "
 4398 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:1121"
 4399 ( $at_check_trace; $LIBTOOLIZE --copy
 4400 
 4401 
 4402 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4403 at_status=$? at_failed=false
 4404 $at_check_filter
 4405 $at_diff experr "$at_stderr" || at_failed=:
 4406 echo stdout:; cat "$at_stdout"
 4407 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1121"
 4408 $at_failed && at_fn_log_failure
 4409 $at_traceon; }
 4410 
 4411 
 4412 
 4413 
 4414 ## ----------------------------- ##
 4415 ## --no-warn environment option. ##
 4416 ## ----------------------------- ##
 4417 
 4418 LIBTOOLIZE_OPTIONS=--no-warn,--no-such-option
 4419 export LIBTOOLIZE_OPTIONS
 4420 
 4421 : >experr
 4422 
 4423 lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
 4424 $SED "s/libtoolize/$lt_name/g
 4425 s|/usr/local/share/aclocal/|${tst_aclocaldir-$abs_top_srcdir/libltdl/m4}/|" < experr > experr.t
 4426 mv -f experr.t experr
 4427 { set +x
 4428 $as_echo "$at_srcdir/libtoolize.at:1133: \$LIBTOOLIZE --copy
 4429 
 4430 "
 4431 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:1133"
 4432 ( $at_check_trace; $LIBTOOLIZE --copy
 4433 
 4434 
 4435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4436 at_status=$? at_failed=false
 4437 $at_check_filter
 4438 $at_diff experr "$at_stderr" || at_failed=:
 4439 echo stdout:; cat "$at_stdout"
 4440 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1133"
 4441 $at_failed && at_fn_log_failure
 4442 $at_traceon; }
 4443 
 4444 
 4445 
 4446   set +x
 4447   $at_times_p && times >"$at_times_file"
 4448 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4449 read at_status <"$at_status_file"
 4450 #AT_STOP_18
 4451 #AT_START_19
 4452 at_fn_group_banner 19 'libtoolize.at:1142' \
 4453   "cleanup old installation" "                       " 2
 4454 at_xfail=no
 4455 (
 4456   $as_echo "19. $at_setup_line: testing $at_desc ..."
 4457   $at_traceon
 4458 
 4459 
 4460 cat >configure.ac <<'_ATEOF'
 4461 AC_INIT([libtoolize-demo], 2.4.6, bug-libtool@gnu.org)
 4462 AC_CONFIG_AUX_DIR([build-aux])
 4463 AC_CONFIG_MACRO_DIRS([m4])
 4464 LT_INIT
 4465 AC_OUTPUT
 4466 _ATEOF
 4467 
 4468 
 4469 
 4470 cat >Makefile.am <<'_ATEOF'
 4471 ACLOCAL_AMFLAGS = -I m4
 4472 _ATEOF
 4473 
 4474 
 4475 cat >acinclude.m4 <<'_ATEOF'
 4476 AC_DEFUN([LT_INIT],
 4477 [: keep me, I might be hand maintained!]) # LT_INIT
 4478 _ATEOF
 4479 
 4480 
 4481 cat >libltdl/acinclude.m4 <<'_ATEOF'
 4482 AC_DEFUN([LT_INIT],
 4483 [: delete me, I was left here by on old libltdl build]) # LT_INIT
 4484 _ATEOF
 4485 
 4486 
 4487 { set +x
 4488 $as_echo "$at_srcdir/libtoolize.at:1160: \$LIBTOOLIZE --copy --force --ltdl
 4489 
 4490 "
 4491 at_fn_check_prepare_notrace 'an embedded newline' "libtoolize.at:1160"
 4492 ( $at_check_trace; $LIBTOOLIZE --copy --force --ltdl
 4493 
 4494 
 4495 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4496 at_status=$? at_failed=false
 4497 $at_check_filter
 4498 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4499 echo stdout:; cat "$at_stdout"
 4500 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1160"
 4501 $at_failed && at_fn_log_failure
 4502 $at_traceon; }
 4503 
 4504 
 4505 
 4506 # check files are left as expected
 4507 { set +x
 4508 $as_echo "$at_srcdir/libtoolize.at:1163: \$GREP 'keep me' acinclude.m4"
 4509 at_fn_check_prepare_dynamic "$GREP 'keep me' acinclude.m4" "libtoolize.at:1163"
 4510 ( $at_check_trace; $GREP 'keep me' acinclude.m4
 4511 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4512 at_status=$? at_failed=false
 4513 $at_check_filter
 4514 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4515 echo stdout:; cat "$at_stdout"
 4516 at_fn_check_status 0 $at_status "$at_srcdir/libtoolize.at:1163"
 4517 $at_failed && at_fn_log_failure
 4518 $at_traceon; }
 4519 
 4520 { set +x
 4521 $as_echo "$at_srcdir/libtoolize.at:1164: test -f libltdl/acinclude.m4"
 4522 at_fn_check_prepare_trace "libtoolize.at:1164"
 4523 ( $at_check_trace; test -f libltdl/acinclude.m4
 4524 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4525 at_status=$? at_failed=false
 4526 $at_check_filter
 4527 echo stderr:; cat "$at_stderr"
 4528 echo stdout:; cat "$at_stdout"
 4529 at_fn_check_status 1 $at_status "$at_srcdir/libtoolize.at:1164"
 4530 $at_failed && at_fn_log_failure
 4531 $at_traceon; }
 4532 
 4533 
 4534   set +x
 4535   $at_times_p && times >"$at_times_file"
 4536 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4537 read at_status <"$at_status_file"
 4538 #AT_STOP_19
 4539 #AT_START_20
 4540 at_fn_group_banner 20 'libtool.at:33' \
 4541   "check help output" "                              " 3
 4542 at_xfail=no
 4543 (
 4544   $as_echo "20. $at_setup_line: testing $at_desc ..."
 4545   $at_traceon
 4546 
 4547 
 4548 { set +x
 4549 $as_echo "$at_srcdir/libtool.at:35: \$LIBTOOL --help"
 4550 at_fn_check_prepare_dynamic "$LIBTOOL --help" "libtool.at:35"
 4551 ( $at_check_trace; $LIBTOOL --help
 4552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4553 at_status=$? at_failed=false
 4554 $at_check_filter
 4555 echo stderr:; tee stderr <"$at_stderr"
 4556 echo stdout:; tee stdout <"$at_stdout"
 4557 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:35"
 4558 $at_failed && at_fn_log_failure
 4559 $at_traceon; }
 4560 
 4561 { set +x
 4562 $as_echo "$at_srcdir/libtool.at:36: \$GREP '^Usage:' stdout stderr"
 4563 at_fn_check_prepare_dynamic "$GREP '^Usage:' stdout stderr" "libtool.at:36"
 4564 ( $at_check_trace; $GREP '^Usage:' stdout stderr
 4565 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4566 at_status=$? at_failed=false
 4567 $at_check_filter
 4568 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4569 echo stdout:; cat "$at_stdout"
 4570 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:36"
 4571 $at_failed && at_fn_log_failure
 4572 $at_traceon; }
 4573 
 4574 
 4575 { set +x
 4576 $as_echo "$at_srcdir/libtool.at:38: \$LIBTOOL --mode=link --help"
 4577 at_fn_check_prepare_dynamic "$LIBTOOL --mode=link --help" "libtool.at:38"
 4578 ( $at_check_trace; $LIBTOOL --mode=link --help
 4579 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4580 at_status=$? at_failed=false
 4581 $at_check_filter
 4582 echo stderr:; tee stderr <"$at_stderr"
 4583 echo stdout:; tee stdout <"$at_stdout"
 4584 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:38"
 4585 $at_failed && at_fn_log_failure
 4586 $at_traceon; }
 4587 
 4588 { set +x
 4589 $as_echo "$at_srcdir/libtool.at:39: \$GREP '^Usage:' stdout stderr"
 4590 at_fn_check_prepare_dynamic "$GREP '^Usage:' stdout stderr" "libtool.at:39"
 4591 ( $at_check_trace; $GREP '^Usage:' stdout stderr
 4592 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4593 at_status=$? at_failed=false
 4594 $at_check_filter
 4595 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4596 echo stdout:; cat "$at_stdout"
 4597 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:39"
 4598 $at_failed && at_fn_log_failure
 4599 $at_traceon; }
 4600 
 4601 
 4602   set +x
 4603   $at_times_p && times >"$at_times_file"
 4604 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4605 read at_status <"$at_status_file"
 4606 #AT_STOP_20
 4607 #AT_START_21
 4608 at_fn_group_banner 21 'libtool.at:48' \
 4609   "diagnose no mode specified" "                     " 3
 4610 at_xfail=no
 4611 (
 4612   $as_echo "21. $at_setup_line: testing $at_desc ..."
 4613   $at_traceon
 4614 
 4615 
 4616 { set +x
 4617 $as_echo "$at_srcdir/libtool.at:50: \$LIBTOOL"
 4618 at_fn_check_prepare_dynamic "$LIBTOOL" "libtool.at:50"
 4619 ( $at_check_trace; $LIBTOOL
 4620 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4621 at_status=$? at_failed=false
 4622 $at_check_filter
 4623 echo stderr:; tee stderr <"$at_stderr"
 4624 echo stdout:; cat "$at_stdout"
 4625 at_fn_check_status 1 $at_status "$at_srcdir/libtool.at:50"
 4626 $at_failed && at_fn_log_failure
 4627 $at_traceon; }
 4628 
 4629 { set +x
 4630 $as_echo "$at_srcdir/libtool.at:51: \$GREP 'you must specify a MODE' stderr"
 4631 at_fn_check_prepare_dynamic "$GREP 'you must specify a MODE' stderr" "libtool.at:51"
 4632 ( $at_check_trace; $GREP 'you must specify a MODE' stderr
 4633 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4634 at_status=$? at_failed=false
 4635 $at_check_filter
 4636 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4637 echo stdout:; cat "$at_stdout"
 4638 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:51"
 4639 $at_failed && at_fn_log_failure
 4640 $at_traceon; }
 4641 
 4642 
 4643   set +x
 4644   $at_times_p && times >"$at_times_file"
 4645 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4646 read at_status <"$at_status_file"
 4647 #AT_STOP_21
 4648 #AT_START_22
 4649 at_fn_group_banner 22 'libtool.at:60' \
 4650   "quote shell meta-characters in filenames" "       " 3
 4651 at_xfail=no
 4652 (
 4653   $as_echo "22. $at_setup_line: testing $at_desc ..."
 4654   $at_traceon
 4655 
 4656 
 4657 eval `$LIBTOOL --config | $GREP '^wl='`
 4658 
 4659 # Do the torture test.
 4660 for mode in compile link install; do
 4661 
 4662   # Unfortunately, without an array data type, it is nearly impossible
 4663   # to protect libtool from metacharacters in filenames.  So, we just
 4664   # try metacharacters in the options it needs to pass to other programs.
 4665 
 4666   # preargs and postargs need to go through libtool unmodified.
 4667   case $mode in
 4668   compile)
 4669     preargs="$CC -c"
 4670     preflag=
 4671     match_preflag=
 4672     flag=-DVAR=
 4673     postargs=foo.c
 4674     ;;
 4675 
 4676   link)
 4677     preargs="$CC -o hell -g -O"
 4678     preflag=-Wl,
 4679     match_preflag=$wl
 4680     flag=-someflag=
 4681     postargs=foo.o
 4682     ;;
 4683 
 4684   install)
 4685     preargs="install -c"
 4686     preflag=
 4687     match_preflag=
 4688     flag=--something=
 4689     postargs="hell /usr/local/bin/hell"
 4690     ;;
 4691   esac
 4692 
 4693 
 4694   # Trivial...
 4695 
 4696   { set +x
 4697 $as_echo "$at_srcdir/libtool.at:102: \$LIBTOOL -n --mode=\$mode \$preargs \$preflag\"\$flag:test\" \$postargs"
 4698 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=$mode $preargs $preflag\"$flag:test\" $postargs" "libtool.at:102"
 4699 ( $at_check_trace; $LIBTOOL -n --mode=$mode $preargs $preflag"$flag:test" $postargs
 4700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4701 at_status=$? at_failed=false
 4702 $at_check_filter
 4703 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4704 echo stdout:; tee stdout <"$at_stdout"
 4705 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:102"
 4706 $at_failed && at_fn_log_failure
 4707 $at_traceon; }
 4708 
 4709   # We must not attempt to match $preargs in the output, because libtool
 4710   # may modify them.  For example, on Cygwin, 'libtool --mode=link gcc -o
 4711   # foo foo.o'  becomes 'gcc -o foo.exe foo.o'.
 4712   { set +x
 4713 $as_echo "$at_srcdir/libtool.at:106: \$GREP \"\$mode:.*\$match_preflag\$flag:test \" stdout"
 4714 at_fn_check_prepare_dynamic "$GREP \"$mode:.*$match_preflag$flag:test \" stdout" "libtool.at:106"
 4715 ( $at_check_trace; $GREP "$mode:.*$match_preflag$flag:test " stdout
 4716 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4717 at_status=$? at_failed=false
 4718 $at_check_filter
 4719 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4720 echo stdout:; cat "$at_stdout"
 4721 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:106"
 4722 $at_failed && at_fn_log_failure
 4723 $at_traceon; }
 4724 
 4725 
 4726 
 4727   # Non-trivial...
 4728 
 4729   # Backslash needs to be double-escaped: one escape is stripped as the shell
 4730   # collects arguments for grep (\\\\\\\\ => \\\\), and then another escape
 4731   # is stripped by grep itself (\\\\ => \\) before the resulting expression is
 4732   # matched (grepping for \\ matches \):
 4733   { set +x
 4734 $as_echo "$at_srcdir/libtool.at:116: \$LIBTOOL -n --mode=\$mode \$preargs \$preflag\"\$flag\\\\:test\\\\\" \$postargs"
 4735 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=$mode $preargs $preflag\"$flag\\\\:test\\\\\" $postargs" "libtool.at:116"
 4736 ( $at_check_trace; $LIBTOOL -n --mode=$mode $preargs $preflag"$flag\\:test\\" $postargs
 4737 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4738 at_status=$? at_failed=false
 4739 $at_check_filter
 4740 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4741 echo stdout:; tee stdout <"$at_stdout"
 4742 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:116"
 4743 $at_failed && at_fn_log_failure
 4744 $at_traceon; }
 4745 
 4746   # NOTE: we use "..."'"'"..." to insert a literal quote into the expression
 4747   #       because "...\"..." is not expanded consistently by all shells.
 4748   { set +x
 4749 $as_echo "$at_srcdir/libtool.at:120: \$GREP \"\$mode:.*\$match_preflag\"'\"\\{0,1\\}'\"\$flag\\\\\\\\\\\\\\\\:test\\\\\\\\\\\\\\\\\"'\"\\{0,1\\} ' stdout"
 4750 at_fn_check_prepare_dynamic "$GREP \"$mode:.*$match_preflag\"'\"\\{0,1\\}'\"$flag\\\\\\\\\\\\\\\\:test\\\\\\\\\\\\\\\\\"'\"\\{0,1\\} ' stdout" "libtool.at:120"
 4751 ( $at_check_trace; $GREP "$mode:.*$match_preflag"'"\{0,1\}'"$flag\\\\\\\\:test\\\\\\\\"'"\{0,1\} ' stdout
 4752 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4753 at_status=$? at_failed=false
 4754 $at_check_filter
 4755 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4756 echo stdout:; cat "$at_stdout"
 4757 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:120"
 4758 $at_failed && at_fn_log_failure
 4759 $at_traceon; }
 4760 
 4761 
 4762   # Shell metacharacters that should be backslashified by libtool.
 4763   for mchar in \" \` \$; do
 4764     { set +x
 4765 $as_echo "$at_srcdir/libtool.at:125: \$LIBTOOL -n --mode=\$mode \$preargs \$preflag\"\$flag\$mchar:test\$mchar\" \$postargs"
 4766 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=$mode $preargs $preflag\"$flag$mchar:test$mchar\" $postargs" "libtool.at:125"
 4767 ( $at_check_trace; $LIBTOOL -n --mode=$mode $preargs $preflag"$flag$mchar:test$mchar" $postargs
 4768 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4769 at_status=$? at_failed=false
 4770 $at_check_filter
 4771 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4772 echo stdout:; tee stdout <"$at_stdout"
 4773 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:125"
 4774 $at_failed && at_fn_log_failure
 4775 $at_traceon; }
 4776 
 4777     { set +x
 4778 $as_echo "$at_srcdir/libtool.at:126: \$GREP \"\$mode:.*\$match_preflag\"'\"'\"\\{0,1\\}\$flag\\\\\\\\\$mchar:test\\\\\\\\\$mchar\"'\"'\"\\{0,1\\} \" stdout"
 4779 at_fn_check_prepare_dynamic "$GREP \"$mode:.*$match_preflag\"'\"'\"\\{0,1\\}$flag\\\\\\\\$mchar:test\\\\\\\\$mchar\"'\"'\"\\{0,1\\} \" stdout" "libtool.at:126"
 4780 ( $at_check_trace; $GREP "$mode:.*$match_preflag"'"'"\{0,1\}$flag\\\\$mchar:test\\\\$mchar"'"'"\{0,1\} " stdout
 4781 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4782 at_status=$? at_failed=false
 4783 $at_check_filter
 4784 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4785 echo stdout:; cat "$at_stdout"
 4786 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:126"
 4787 $at_failed && at_fn_log_failure
 4788 $at_traceon; }
 4789 
 4790   done
 4791 
 4792   # Shell metacharacters that should be double quoted by libtool, and need
 4793   # backslash escaping for input to grep.
 4794   for mchar in "[" "]" "^" "*"; do
 4795 
 4796     { set +x
 4797 $as_echo "$at_srcdir/libtool.at:134: \$LIBTOOL -n --mode=\$mode \$preargs \$preflag\"\$flag\$mchar:test\$mchar\" \$postargs"
 4798 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=$mode $preargs $preflag\"$flag$mchar:test$mchar\" $postargs" "libtool.at:134"
 4799 ( $at_check_trace; $LIBTOOL -n --mode=$mode $preargs $preflag"$flag$mchar:test$mchar" $postargs
 4800 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4801 at_status=$? at_failed=false
 4802 $at_check_filter
 4803 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4804 echo stdout:; tee stdout <"$at_stdout"
 4805 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:134"
 4806 $at_failed && at_fn_log_failure
 4807 $at_traceon; }
 4808 
 4809     { set +x
 4810 $as_echo "$at_srcdir/libtool.at:135: \$GREP \"\$mode:.*\$match_preflag\\\"\$flag\\\\\$mchar:test\\\\\$mchar\\\" \" stdout"
 4811 at_fn_check_prepare_dynamic "$GREP \"$mode:.*$match_preflag\\\"$flag\\\\$mchar:test\\\\$mchar\\\" \" stdout" "libtool.at:135"
 4812 ( $at_check_trace; $GREP "$mode:.*$match_preflag\"$flag\\$mchar:test\\$mchar\" " stdout
 4813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4814 at_status=$? at_failed=false
 4815 $at_check_filter
 4816 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4817 echo stdout:; cat "$at_stdout"
 4818 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:135"
 4819 $at_failed && at_fn_log_failure
 4820 $at_traceon; }
 4821 
 4822   done
 4823 
 4824   # Metacharacters that should be double quoted by libtool, but which are
 4825   # not special to grep (NOTE: Some of these ARE special to $EGREP!!).
 4826   for mchar in "~" "#" "&" "(" ")" "{" "}" "|" ";" "<" ">" "?" "'" " " "    "; do
 4827 
 4828     { set +x
 4829 $as_echo "$at_srcdir/libtool.at:143: \$LIBTOOL -n --mode=\$mode \$preargs \$preflag\"\$flag\$mchar:test\$mchar\" \$postargs"
 4830 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=$mode $preargs $preflag\"$flag$mchar:test$mchar\" $postargs" "libtool.at:143"
 4831 ( $at_check_trace; $LIBTOOL -n --mode=$mode $preargs $preflag"$flag$mchar:test$mchar" $postargs
 4832 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4833 at_status=$? at_failed=false
 4834 $at_check_filter
 4835 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4836 echo stdout:; tee stdout <"$at_stdout"
 4837 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:143"
 4838 $at_failed && at_fn_log_failure
 4839 $at_traceon; }
 4840 
 4841     { set +x
 4842 $as_echo "$at_srcdir/libtool.at:144: \$GREP \"\$mode:.*\$match_preflag\\\"\$flag\$mchar:test\$mchar\\\" \" stdout"
 4843 at_fn_check_prepare_dynamic "$GREP \"$mode:.*$match_preflag\\\"$flag$mchar:test$mchar\\\" \" stdout" "libtool.at:144"
 4844 ( $at_check_trace; $GREP "$mode:.*$match_preflag\"$flag$mchar:test$mchar\" " stdout
 4845 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4846 at_status=$? at_failed=false
 4847 $at_check_filter
 4848 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4849 echo stdout:; cat "$at_stdout"
 4850 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:144"
 4851 $at_failed && at_fn_log_failure
 4852 $at_traceon; }
 4853 
 4854   done
 4855 done
 4856 
 4857   set +x
 4858   $at_times_p && times >"$at_times_file"
 4859 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4860 read at_status <"$at_status_file"
 4861 #AT_STOP_22
 4862 #AT_START_23
 4863 at_fn_group_banner 23 'libtool.at:155' \
 4864   "transform source suffices" "                      " 3
 4865 at_xfail=no
 4866 (
 4867   $as_echo "23. $at_setup_line: testing $at_desc ..."
 4868   $at_traceon
 4869 
 4870 
 4871 # Extensions taken from the ones that Automake recognizes, plus Objective C,
 4872 # and GNU Ada.  Also test that multiple dots are handled correctly.
 4873 extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 F90 f95 F95 f03 F03 for go m s sx ada.ada"
 4874 bad_names=foo.
 4875 
 4876 for ext in $extensions; do
 4877   # Try a sample compile command.
 4878   { set +x
 4879 $as_echo "$at_srcdir/libtool.at:165: \$LIBTOOL -n --mode=compile compiler -c foo.\$ext"
 4880 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=compile compiler -c foo.$ext" "libtool.at:165"
 4881 ( $at_check_trace; $LIBTOOL -n --mode=compile compiler -c foo.$ext
 4882 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4883 at_status=$? at_failed=false
 4884 $at_check_filter
 4885 echo stderr:; tee stderr <"$at_stderr"
 4886 echo stdout:; cat "$at_stdout"
 4887 at_fn_check_status 1 $at_status "$at_srcdir/libtool.at:165"
 4888 $at_failed && at_fn_log_failure
 4889 $at_traceon; }
 4890 
 4891   { set +x
 4892 $as_echo "$at_srcdir/libtool.at:166: \$GREP 'cannot' stderr"
 4893 at_fn_check_prepare_dynamic "$GREP 'cannot' stderr" "libtool.at:166"
 4894 ( $at_check_trace; $GREP 'cannot' stderr
 4895 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4896 at_status=$? at_failed=false
 4897 $at_check_filter
 4898 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4899 echo stdout:; cat "$at_stdout"
 4900 at_fn_check_status 1 $at_status "$at_srcdir/libtool.at:166"
 4901 $at_failed && at_fn_log_failure
 4902 $at_traceon; }
 4903 
 4904 done
 4905 
 4906 # Make sure that invalid suffixes are not recognized.
 4907 for name in $bad_names; do
 4908   { set +x
 4909 $as_echo "$at_srcdir/libtool.at:172: \$LIBTOOL -n --mode=compile compiler -c \$name"
 4910 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=compile compiler -c $name" "libtool.at:172"
 4911 ( $at_check_trace; $LIBTOOL -n --mode=compile compiler -c $name
 4912 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4913 at_status=$? at_failed=false
 4914 $at_check_filter
 4915 echo stderr:; tee stderr <"$at_stderr"
 4916 echo stdout:; cat "$at_stdout"
 4917 at_fn_check_status 1 $at_status "$at_srcdir/libtool.at:172"
 4918 $at_failed && at_fn_log_failure
 4919 $at_traceon; }
 4920 
 4921   { set +x
 4922 $as_echo "$at_srcdir/libtool.at:173: \$GREP 'cannot' stderr"
 4923 at_fn_check_prepare_dynamic "$GREP 'cannot' stderr" "libtool.at:173"
 4924 ( $at_check_trace; $GREP 'cannot' stderr
 4925 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4926 at_status=$? at_failed=false
 4927 $at_check_filter
 4928 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4929 echo stdout:; cat "$at_stdout"
 4930 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:173"
 4931 $at_failed && at_fn_log_failure
 4932 $at_traceon; }
 4933 
 4934 done
 4935 
 4936   set +x
 4937   $at_times_p && times >"$at_times_file"
 4938 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 4939 read at_status <"$at_status_file"
 4940 #AT_STOP_23
 4941 #AT_START_24
 4942 at_fn_group_banner 24 'libtool.at:183' \
 4943   "check link mode operation" "                      " 3
 4944 at_xfail=no
 4945 (
 4946   $as_echo "24. $at_setup_line: testing $at_desc ..."
 4947   $at_traceon
 4948 
 4949 
 4950 { set +x
 4951 $as_echo "$at_srcdir/libtool.at:185: \$LIBTOOL -n --mode=link \$CC -o gettext ../lib/libnlsut.a"
 4952 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=link $CC -o gettext ../lib/libnlsut.a" "libtool.at:185"
 4953 ( $at_check_trace; $LIBTOOL -n --mode=link $CC -o gettext ../lib/libnlsut.a
 4954 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4955 at_status=$? at_failed=false
 4956 $at_check_filter
 4957 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4958 echo stdout:; tee stdout <"$at_stdout"
 4959 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:185"
 4960 $at_failed && at_fn_log_failure
 4961 $at_traceon; }
 4962 
 4963 { set +x
 4964 $as_echo "$at_srcdir/libtool.at:186: \$EGREP '../lib/libnlsut.a' stdout"
 4965 at_fn_check_prepare_dynamic "$EGREP '../lib/libnlsut.a' stdout" "libtool.at:186"
 4966 ( $at_check_trace; $EGREP '../lib/libnlsut.a' stdout
 4967 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4968 at_status=$? at_failed=false
 4969 $at_check_filter
 4970 at_fn_diff_devnull "$at_stderr" || at_failed=:
 4971 echo stdout:; cat "$at_stdout"
 4972 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:186"
 4973 $at_failed && at_fn_log_failure
 4974 $at_traceon; }
 4975 
 4976 
 4977 
 4978 cat >hell.lo <<'_ATEOF'
 4979 # Generated by libtool
 4980 pic_object=none
 4981 non_pic_object=hell.o
 4982 _ATEOF
 4983 
 4984 
 4985 { set +x
 4986 $as_echo "$at_srcdir/libtool.at:195: \$LIBTOOL -n --mode=link \$CC -o something foo.o hell.lo"
 4987 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=link $CC -o something foo.o hell.lo" "libtool.at:195"
 4988 ( $at_check_trace; $LIBTOOL -n --mode=link $CC -o something foo.o hell.lo
 4989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 4990 at_status=$? at_failed=false
 4991 $at_check_filter
 4992 echo stderr:; cat "$at_stderr"
 4993 echo stdout:; tee stdout <"$at_stdout"
 4994 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:195"
 4995 $at_failed && at_fn_log_failure
 4996 $at_traceon; }
 4997 
 4998 { set +x
 4999 $as_echo "$at_srcdir/libtool.at:196: \$FGREP '.lo ' stdout"
 5000 at_fn_check_prepare_dynamic "$FGREP '.lo ' stdout" "libtool.at:196"
 5001 ( $at_check_trace; $FGREP '.lo ' stdout
 5002 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5003 at_status=$? at_failed=false
 5004 $at_check_filter
 5005 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5006 echo stdout:; cat "$at_stdout"
 5007 at_fn_check_status 1 $at_status "$at_srcdir/libtool.at:196"
 5008 $at_failed && at_fn_log_failure
 5009 $at_traceon; }
 5010 
 5011 
 5012   set +x
 5013   $at_times_p && times >"$at_times_file"
 5014 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 5015 read at_status <"$at_status_file"
 5016 #AT_STOP_24
 5017 #AT_START_25
 5018 at_fn_group_banner 25 'libtool.at:205' \
 5019   "check objectlist file operation" "                " 3
 5020 at_xfail=no
 5021 (
 5022   $as_echo "25. $at_setup_line: testing $at_desc ..."
 5023   $at_traceon
 5024 
 5025 
 5026 { set +x
 5027 $as_echo "$at_srcdir/libtool.at:207: \$LIBTOOL -n --mode=link \$CC -objectlist nonexistent"
 5028 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=link $CC -objectlist nonexistent" "libtool.at:207"
 5029 ( $at_check_trace; $LIBTOOL -n --mode=link $CC -objectlist nonexistent
 5030 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5031 at_status=$? at_failed=false
 5032 $at_check_filter
 5033 echo stderr:; tee stderr <"$at_stderr"
 5034 echo stdout:; cat "$at_stdout"
 5035 at_fn_check_status 1 $at_status "$at_srcdir/libtool.at:207"
 5036 $at_failed && at_fn_log_failure
 5037 $at_traceon; }
 5038 
 5039 { set +x
 5040 $as_echo "$at_srcdir/libtool.at:208: \$GREP 'nonexistent' stderr"
 5041 at_fn_check_prepare_dynamic "$GREP 'nonexistent' stderr" "libtool.at:208"
 5042 ( $at_check_trace; $GREP 'nonexistent' stderr
 5043 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5044 at_status=$? at_failed=false
 5045 $at_check_filter
 5046 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5047 echo stdout:; cat "$at_stdout"
 5048 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:208"
 5049 $at_failed && at_fn_log_failure
 5050 $at_traceon; }
 5051 
 5052 
 5053   set +x
 5054   $at_times_p && times >"$at_times_file"
 5055 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 5056 read at_status <"$at_status_file"
 5057 #AT_STOP_25
 5058 #AT_START_26
 5059 at_fn_group_banner 26 'libtool.at:217' \
 5060   "test LT_SUPPORTED_TAG interface" "                " 3
 5061 at_xfail=no
 5062 (
 5063   $as_echo "26. $at_setup_line: testing $at_desc ..."
 5064   $at_traceon
 5065 
 5066 
 5067 { set +x
 5068 $as_echo "$at_srcdir/libtool.at:219: test no != \"\$AUTOCONF\" || exit 77"
 5069 at_fn_check_prepare_dynamic "test no != \"$AUTOCONF\" || exit 77" "libtool.at:219"
 5070 ( $at_check_trace; test no != "$AUTOCONF" || exit 77
 5071 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5072 at_status=$? at_failed=false
 5073 $at_check_filter
 5074 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5075 at_fn_diff_devnull "$at_stdout" || at_failed=:
 5076 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:219"
 5077 $at_failed && at_fn_log_failure
 5078 $at_traceon; }
 5079 
 5080 
 5081 cp $abs_top_srcdir/aclocal.m4 ./aclocal.m4
 5082 cp $abs_top_srcdir/configure.ac ./configure.ac
 5083 cp -r $abs_top_srcdir/build-aux ./build-aux
 5084 cp -r $abs_top_srcdir/m4 ./m4
 5085 
 5086 # Retrieve the list of tags supported by our main libtool script.
 5087 traced_tags=`$AUTOCONF --trace 'LT_SUPPORTED_TAG:$1'`
 5088 { set +x
 5089 $as_echo "$at_srcdir/libtool.at:228: test -n \"\$traced_tags\""
 5090 at_fn_check_prepare_dynamic "test -n \"$traced_tags\"" "libtool.at:228"
 5091 ( $at_check_trace; test -n "$traced_tags"
 5092 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5093 at_status=$? at_failed=false
 5094 $at_check_filter
 5095 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5096 at_fn_diff_devnull "$at_stdout" || at_failed=:
 5097 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:228"
 5098 $at_failed && at_fn_log_failure
 5099 $at_traceon; }
 5100 
 5101 
 5102 # Ensure each of them is accepted by --tag.
 5103 # (We do some useless operation like erasing an empty file, because
 5104 # we are just interested in whether --tag accepts the tag or not.)
 5105 for tag in $traced_tags; do
 5106   { set +x
 5107 $as_echo "$at_srcdir/libtool.at:235: \$LIBTOOL -n --mode=link --tag=\$tag compiler -o liba.la foo.lo"
 5108 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=link --tag=$tag compiler -o liba.la foo.lo" "libtool.at:235"
 5109 ( $at_check_trace; $LIBTOOL -n --mode=link --tag=$tag compiler -o liba.la foo.lo
 5110 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5111 at_status=$? at_failed=false
 5112 $at_check_filter
 5113 echo stderr:; tee stderr <"$at_stderr"
 5114 echo stdout:; cat "$at_stdout"
 5115 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:235"
 5116 $at_failed && at_fn_log_failure
 5117 $at_traceon; }
 5118 
 5119   { set +x
 5120 $as_echo "$at_srcdir/libtool.at:236: \$GREP 'ignoring unknown tag' stderr"
 5121 at_fn_check_prepare_dynamic "$GREP 'ignoring unknown tag' stderr" "libtool.at:236"
 5122 ( $at_check_trace; $GREP 'ignoring unknown tag' stderr
 5123 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5124 at_status=$? at_failed=false
 5125 $at_check_filter
 5126 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5127 echo stdout:; cat "$at_stdout"
 5128 at_fn_check_status 1 $at_status "$at_srcdir/libtool.at:236"
 5129 $at_failed && at_fn_log_failure
 5130 $at_traceon; }
 5131 
 5132 done
 5133 
 5134 # Ensure the above command would have failed for unknown tags
 5135 { set +x
 5136 $as_echo "$at_srcdir/libtool.at:241: \$LIBTOOL -n --mode=link --tag=UnKnOwN compiler -o liba.la foo.lo"
 5137 at_fn_check_prepare_dynamic "$LIBTOOL -n --mode=link --tag=UnKnOwN compiler -o liba.la foo.lo" "libtool.at:241"
 5138 ( $at_check_trace; $LIBTOOL -n --mode=link --tag=UnKnOwN compiler -o liba.la foo.lo
 5139 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5140 at_status=$? at_failed=false
 5141 $at_check_filter
 5142 echo stderr:; tee stderr <"$at_stderr"
 5143 echo stdout:; cat "$at_stdout"
 5144 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:241"
 5145 $at_failed && at_fn_log_failure
 5146 $at_traceon; }
 5147 
 5148 { set +x
 5149 $as_echo "$at_srcdir/libtool.at:242: \$GREP 'ignoring unknown tag' stderr"
 5150 at_fn_check_prepare_dynamic "$GREP 'ignoring unknown tag' stderr" "libtool.at:242"
 5151 ( $at_check_trace; $GREP 'ignoring unknown tag' stderr
 5152 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5153 at_status=$? at_failed=false
 5154 $at_check_filter
 5155 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5156 echo stdout:; cat "$at_stdout"
 5157 at_fn_check_status 0 $at_status "$at_srcdir/libtool.at:242"
 5158 $at_failed && at_fn_log_failure
 5159 $at_traceon; }
 5160 
 5161 
 5162   set +x
 5163   $at_times_p && times >"$at_times_file"
 5164 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 5165 read at_status <"$at_status_file"
 5166 #AT_STOP_26
 5167 #AT_START_27
 5168 at_fn_group_banner 27 'demo.at:383' \
 5169   "link against a preloaded static library" "        " 4
 5170 at_xfail=no
 5171       test no = "$ACLOCAL" && at_xfail=yes
 5172       test no = "$AUTOHEADER" && at_xfail=yes
 5173       test no = "$AUTOMAKE" && at_xfail=yes
 5174       test no = "$AUTOCONF" && at_xfail=yes
 5175 (
 5176   $as_echo "27. $at_setup_line: testing $at_desc ..."
 5177   $at_traceon
 5178 
 5179 
 5180 cat >configure.ac <<'_ATEOF'
 5181 AC_INIT([demo], 2.4.6, bug-libtool@gnu.org)
 5182 AC_CONFIG_AUX_DIR([build-aux])
 5183 AC_CONFIG_MACRO_DIRS([m4])
 5184 AM_INIT_AUTOMAKE
 5185 AC_PROG_CC
 5186 
 5187 LT_INIT([dlopen win32-dll])
 5188 AC_SUBST([LIBTOOL_DEPS])
 5189 STATIC=
 5190 test yes = "$enable_static" && STATIC=-static
 5191 AC_SUBST([STATIC])
 5192 
 5193 case $lt_cv_sys_global_symbol_pipe in
 5194   ?*) binary_helldl=yes ;;
 5195 esac
 5196 AM_CONDITIONAL([BINARY_HELLDL], [test yes = "$binary_helldl"])
 5197 
 5198 LT_LIB_M
 5199 AC_CONFIG_FILES([Makefile])
 5200 AC_CONFIG_HEADERS([config.h:config.in.h])
 5201 AC_OUTPUT
 5202 _ATEOF
 5203 
 5204 
 5205 cat >Makefile.am <<'_ATEOF'
 5206 AUTOMAKE_OPTIONS = no-dependencies foreign
 5207 ACLOCAL_AMFLAGS = -I m4
 5208 
 5209 # Build a libtool library, libhello.la for installation in libdir.
 5210 lib_LTLIBRARIES = libhello.la
 5211 libhello_la_SOURCES = hello.c foo.c
 5212 libhello_la_LIBADD = $(LIBM)
 5213 libhello_la_LDFLAGS = -no-undefined -version-info 3:12:1
 5214 libhello_la_CPPFLAGS = $(AM_CPPFLAGS) -DBUILDING_LIBHELLO
 5215 
 5216 include_HEADERS = foo.h
 5217 
 5218 if BINARY_HELLDL
 5219 BUILD_helldl = helldl
 5220 else
 5221 BUILD_helldl =
 5222 endif
 5223 
 5224 bin_PROGRAMS = hell hell_static $(BUILD_helldl)
 5225 
 5226 # Build hell from main.c and libhello.la
 5227 hell_SOURCES = main.c
 5228 hell_LDADD = libhello.la
 5229 
 5230 # Create a statically linked version of hell.
 5231 hell_static_SOURCES = main.c
 5232 hell_static_LDADD = libhello.la
 5233 hell_static_LDFLAGS = $(STATIC)
 5234 
 5235 if BINARY_HELLDL
 5236 
 5237 # Create a version of hell that does a preloaded dlopen.
 5238 helldl_SOURCES = dlmain.c
 5239 helldl_LDFLAGS = -export-dynamic -dlpreopen libhello.la
 5240 helldl_DEPENDENCIES = libhello.la
 5241 
 5242 else
 5243 
 5244 # Create a script that says that -dlopen is not supported.
 5245 bin_SCRIPTS = helldl
 5246 helldl helldl$(EXEEXT):
 5247     rm -rf
 5248     echo '#! /bin/sh' >
 5249     echo 'echo sorry, -dlopen is unsupported' >>
 5250     chmod +x
 5251 
 5252 endif
 5253 
 5254 libtool: $(LIBTOOL_DEPS)
 5255     $(SHELL) ./config.status --recheck
 5256 
 5257 include $(srcdir)/demo.mk
 5258 _ATEOF
 5259 
 5260 
 5261 cat >demo.mk <<'_ATEOF'
 5262 ## Don't abort for lack of demo.mk
 5263 _ATEOF
 5264 
 5265 
 5266 cat >foo.h <<'_ATEOF'
 5267 #ifndef FOO_H
 5268 #define FOO_H
 5269 
 5270 /* At some point, cygwin will stop defining __CYGWIN32__, but b19 and
 5271  * earlier do not define __CYGWIN__.  This snippet allows us to check
 5272  * for __CYGWIN__ reliably for both current, old, and (probable) future
 5273  * releases.
 5274  */
 5275 #ifdef __CYGWIN32__
 5276 #  ifndef __CYGWIN__
 5277 #    define __CYGWIN__
 5278 #  endif
 5279 #endif
 5280 
 5281 #if (defined _WIN32 || defined _WIN32_WCE) && !defined __GNUC__
 5282 # ifdef BUILDING_LIBHELLO
 5283 #  ifdef DLL_EXPORT
 5284 #   define LIBHELLO_SCOPE extern __declspec (dllexport)
 5285 #  endif
 5286 # else
 5287 #  define LIBHELLO_SCOPE extern __declspec (dllimport)
 5288 # endif
 5289 #endif
 5290 #ifndef LIBHELLO_SCOPE
 5291 # define LIBHELLO_SCOPE extern
 5292 #endif
 5293 
 5294 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 5295 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 5296 /* DATA imports from DLLs on WIN32 can't be const, because runtime
 5297    relocations are performed -- see ld's documentation on pseudo-relocs.  */
 5298 # define LT_DLSYM_CONST
 5299 #elif defined __osf__
 5300 /* This system does not cope well with relocations in const data.  */
 5301 # define LT_DLSYM_CONST
 5302 #else
 5303 # define LT_DLSYM_CONST const
 5304 #endif
 5305 
 5306 /* Silly constants that the functions return. */
 5307 #define HELLO_RET 0xe110
 5308 #define FOO_RET 0xf00
 5309 
 5310 #ifdef __cplusplus
 5311 extern "C" {
 5312 #endif
 5313 
 5314 int foo (void);
 5315 int hello (void);
 5316 LIBHELLO_SCOPE int nothing;
 5317 
 5318 #ifdef __cplusplus
 5319 }
 5320 #endif
 5321 
 5322 #endif
 5323 _ATEOF
 5324 
 5325 
 5326 cat >foo.c <<'_ATEOF'
 5327 #include <config.h>
 5328 #include <stdio.h>
 5329 #include <math.h>
 5330 
 5331 #include "foo.h"
 5332 
 5333 /* Give a global variable definition. */
 5334 int nothing = FOO_RET;
 5335 
 5336 int foo (void) {
 5337   printf ("cos (0.0) = %g\n", (double) cos ((double) 0.0));
 5338   return FOO_RET;
 5339 }
 5340 _ATEOF
 5341 
 5342 
 5343 cat >hell1.c <<'_ATEOF'
 5344 #include <config.h>
 5345 int hell1 (void) { return 1; }
 5346 _ATEOF
 5347 
 5348 
 5349 cat >hell2.c <<'_ATEOF'
 5350 #include <config.h>
 5351 int hell2 (void) { return 2; }
 5352 _ATEOF
 5353 
 5354 
 5355 cat >hello.c <<'_ATEOF'
 5356 #include <config.h>
 5357 #include <stdio.h>
 5358 
 5359 #include "foo.h"
 5360 
 5361 int hello (void) {
 5362   printf ("** This is not GNU Hello. There is no built-in mail reader. **\n");
 5363   return HELLO_RET;
 5364 }
 5365 _ATEOF
 5366 
 5367 
 5368 cat >main.c <<'_ATEOF'
 5369 #include <config.h>
 5370 #include <stdio.h>
 5371 
 5372 #include "foo.h"
 5373 
 5374 int main ()
 5375 {
 5376   printf ("Welcome to GNU Hell!\n");
 5377 
 5378   /* Try assigning to the nothing variable. */
 5379   nothing = 1;
 5380 
 5381   /* Just call the functions and check return values. */
 5382   if (foo () != FOO_RET)
 5383     return 1;
 5384 
 5385   if (hello () != HELLO_RET)
 5386     return 2;
 5387 
 5388   return 0;
 5389 }
 5390 _ATEOF
 5391 
 5392 
 5393 cat >dlmain.c <<'_ATEOF'
 5394 #include <config.h>
 5395 #include <stdio.h>
 5396 #include <string.h>
 5397 
 5398 #include "foo.h"
 5399 
 5400 #define STREQ !strcmp
 5401 
 5402 #define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
 5403 
 5404 typedef struct
 5405 {
 5406   const char *name;
 5407   void *address;
 5408 } lt_dlsymlist;
 5409 
 5410 extern LT_DLSYM_CONST lt_dlsymlist lt_preloaded_symbols[];
 5411 
 5412 int main ()
 5413 {
 5414   const lt_dlsymlist *s;
 5415   int (*pfoo)() = 0;
 5416   int (*phello)() = 0;
 5417   int *pnothing = 0;
 5418 
 5419   printf ("Welcome to *modular* GNU Hell!\n");
 5420 
 5421   /* Look up the symbols we require for this demonstration. */
 5422   s = lt_preloaded_symbols;
 5423   while (s->name)
 5424     {
 5425       if (s->address) {
 5426         const char *name = s->name;
 5427         printf ("found symbol: %s\n", name);
 5428         if (STREQ ("@INIT@", name))
 5429       ((void(*)())s->address)();
 5430         if (STREQ ("hello", name))
 5431       phello = (int(*)())s->address;
 5432         else if (STREQ ("foo", name))
 5433       pfoo = (int(*)())s->address;
 5434         else if (STREQ ("nothing", name))
 5435 #ifndef _WIN32
 5436       /* In an ideal world we could do this... */
 5437       pnothing = (int*)s->address;
 5438 #else /* !_WIN32 */
 5439       /* In an ideal world a shared lib would be able to export data */
 5440       pnothing = (int*)&nothing;
 5441 #endif
 5442       } else
 5443         printf ("found file: %s\n", s->name);
 5444       s ++;
 5445     }
 5446 
 5447   /* Try assigning to the nothing variable. */
 5448   if (pnothing)
 5449     *pnothing = 1;
 5450   else
 5451     fprintf (stderr, "did not find the 'nothing' variable\n");
 5452 
 5453   /* Just call the functions and check return values. */
 5454   if (pfoo)
 5455     {
 5456       if ((*pfoo) () != FOO_RET)
 5457     return 1;
 5458     }
 5459   else
 5460     fprintf (stderr, "did not find the 'foo' function\n");
 5461 
 5462   if (phello)
 5463     {
 5464       if ((*phello) () != HELLO_RET)
 5465     return 3;
 5466     }
 5467   else
 5468     fprintf (stderr, "did not find the 'hello' function\n");
 5469 
 5470   return 0;
 5471 }
 5472 _ATEOF
 5473 
 5474 
 5475 cat >expout <<'_ATEOF'
 5476 Welcome to GNU Hell!
 5477 cos (0.0) = 1
 5478 ** This is not GNU Hello. There is no built-in mail reader. **
 5479 _ATEOF
 5480 
 5481 case $host_os in mingw*)
 5482   awk '{printf ("%s\r\n", $0);}' < expout > expout.t && mv -f expout.t expout ;;
 5483 esac
 5484 
 5485 prefix=`pwd`/_inst
 5486 
 5487 
 5488 $LIBTOOLIZE
 5489 
 5490 
 5491 macro_dir=
 5492 func_extract_trace AC_CONFIG_MACRO_DIRS
 5493 test -n "$func_extract_trace_result" \
 5494     || func_extract_trace AC_CONFIG_MACRO_DIR
 5495 test -n "$func_extract_trace_result" \
 5496     && macro_dir=" -I $func_extract_trace_result"
 5497 cat >acinclude.m4 <<'_ATEOF'
 5498 m4_ifndef([AC_CONFIG_MACRO_DIRS],
 5499       [m4_define([AC_CONFIG_MACRO_DIRS], m4_defn([AC_CONFIG_MACRO_DIR]))])
 5500 _ATEOF
 5501 
 5502 echo "$ACLOCAL -I m4$macro_dir"; { set +x
 5503 $as_echo "$at_srcdir/demo.at:388: \$ACLOCAL -I m4\$macro_dir"
 5504 at_fn_check_prepare_dynamic "$ACLOCAL -I m4$macro_dir" "demo.at:388"
 5505 ( $at_check_trace; $ACLOCAL -I m4$macro_dir
 5506 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5507 at_status=$? at_failed=false
 5508 $at_check_filter
 5509 echo stderr:; cat "$at_stderr"
 5510 echo stdout:; cat "$at_stdout"
 5511 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:388"
 5512 $at_failed && at_fn_log_failure
 5513 $at_traceon; }
 5514 
 5515 # After the 'aclocal' run sleep 1 second to guarantee that aclocal.m4 is going
 5516 # to have older timestamp than other autotools later-generated files (concretely
 5517 # for libtool case, we speak about config.h.in generated autoheader).
 5518 # Autoreconf does the same (after the first aclocal run).
 5519 sleep 1
 5520 
 5521 
 5522 
 5523 { set +x
 5524 $as_echo "$at_srcdir/demo.at:388: \$AUTOHEADER "
 5525 at_fn_check_prepare_dynamic "$AUTOHEADER " "demo.at:388"
 5526 ( $at_check_trace; $AUTOHEADER
 5527 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5528 at_status=$? at_failed=false
 5529 $at_check_filter
 5530 echo stderr:; cat "$at_stderr"
 5531 echo stdout:; cat "$at_stdout"
 5532 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:388"
 5533 $at_failed && at_fn_log_failure
 5534 $at_traceon; }
 5535 
 5536 
 5537 
 5538 
 5539 { set +x
 5540 $as_echo "$at_srcdir/demo.at:388: \$AUTOMAKE --add-missing"
 5541 at_fn_check_prepare_dynamic "$AUTOMAKE --add-missing" "demo.at:388"
 5542 ( $at_check_trace; $AUTOMAKE --add-missing
 5543 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5544 at_status=$? at_failed=false
 5545 $at_check_filter
 5546 echo stderr:; tee stderr <"$at_stderr"
 5547 echo stdout:; cat "$at_stdout"
 5548 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:388"
 5549 if $at_failed; then :
 5550   { set +x
 5551 $as_echo "$at_srcdir/demo.at:388: \$GREP 'require .*but have' stderr && (exit 77)"
 5552 at_fn_check_prepare_dynamic "$GREP 'require .*but have' stderr && (exit 77)" "demo.at:388"
 5553 ( $at_check_trace; $GREP 'require .*but have' stderr && (exit 77)
 5554 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5555 at_status=$? at_failed=false
 5556 $at_check_filter
 5557 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5558 at_fn_diff_devnull "$at_stdout" || at_failed=:
 5559 at_fn_check_status 1 $at_status "$at_srcdir/demo.at:388"
 5560 $at_failed && at_fn_log_failure
 5561 $at_traceon; }
 5562 
 5563 fi
 5564 $at_failed && at_fn_log_failure
 5565 $at_traceon; }
 5566 
 5567 
 5568 
 5569 
 5570 { set +x
 5571 $as_echo "$at_srcdir/demo.at:388: \$AUTOCONF "
 5572 at_fn_check_prepare_dynamic "$AUTOCONF " "demo.at:388"
 5573 ( $at_check_trace; $AUTOCONF
 5574 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5575 at_status=$? at_failed=false
 5576 $at_check_filter
 5577 echo stderr:; cat "$at_stderr"
 5578 echo stdout:; cat "$at_stdout"
 5579 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:388"
 5580 $at_failed && at_fn_log_failure
 5581 $at_traceon; }
 5582 
 5583 
 5584 
 5585 
 5586 { set +x
 5587 $as_echo "$at_srcdir/demo.at:388: : \${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL;    \$CONFIG_SHELL ./configure \$configure_options           --prefix=\"\$prefix\" --exec-prefix=\"\$prefix\" --bindir=\"\$prefix/bin\" --libdir=\"\$prefix/lib\" --disable-shared"
 5588 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "demo.at:388"
 5589 ( $at_check_trace; : ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL;    $CONFIG_SHELL ./configure $configure_options           --prefix="$prefix" --exec-prefix="$prefix" --bindir="$prefix/bin" --libdir="$prefix/lib" --disable-shared
 5590 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5591 at_status=$? at_failed=false
 5592 $at_check_filter
 5593 echo stderr:; cat "$at_stderr"
 5594 echo stdout:; cat "$at_stdout"
 5595 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:388"
 5596 $at_failed && at_fn_log_failure
 5597 $at_traceon; }
 5598 
 5599 
 5600 
 5601 
 5602 { set +x
 5603 $as_echo "$at_srcdir/demo.at:388: \$EGREP '^build_old_libs=yes' libtool"
 5604 at_fn_check_prepare_dynamic "$EGREP '^build_old_libs=yes' libtool" "demo.at:388"
 5605 ( $at_check_trace; $EGREP '^build_old_libs=yes' libtool
 5606 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5607 at_status=$? at_failed=false
 5608 $at_check_filter
 5609 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5610 echo stdout:; cat "$at_stdout"
 5611 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:388"
 5612 $at_failed && at_fn_log_failure
 5613 $at_traceon; }
 5614 
 5615  { set +x
 5616 $as_echo "$at_srcdir/demo.at:388: \$EGREP '^build_libtool_libs=no' libtool"
 5617 at_fn_check_prepare_dynamic "$EGREP '^build_libtool_libs=no' libtool" "demo.at:388"
 5618 ( $at_check_trace; $EGREP '^build_libtool_libs=no' libtool
 5619 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5620 at_status=$? at_failed=false
 5621 $at_check_filter
 5622 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5623 echo stdout:; cat "$at_stdout"
 5624 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:388"
 5625 $at_failed && at_fn_log_failure
 5626 $at_traceon; }
 5627 
 5628 
 5629 
 5630 
 5631 
 5632 for target in all
 5633 do
 5634   { set +x
 5635 $as_echo "$at_srcdir/demo.at:389: \$as_unset LIBTOOL; \$as_unset LIBTOOLIZE; \$MAKE \$target "
 5636 at_fn_check_prepare_dynamic "$as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE $target " "demo.at:389"
 5637 ( $at_check_trace; $as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE $target
 5638 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5639 at_status=$? at_failed=false
 5640 $at_check_filter
 5641 echo stderr:; cat "$at_stderr"
 5642 echo stdout:; cat "$at_stdout"
 5643 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:389"
 5644 $at_failed && at_fn_log_failure
 5645 $at_traceon; }
 5646 
 5647 done
 5648 
 5649 lt_exe=./hell_static; if test -f "./hell_static$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
 5650 { set +x
 5651 $as_echo "$at_srcdir/demo.at:389: 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"
 5652 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" "demo.at:389"
 5653 ( $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
 5654 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5655 at_status=$? at_failed=false
 5656 $at_check_filter
 5657 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5658 $at_diff expout "$at_stdout" || at_failed=:
 5659 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:389"
 5660 $at_failed && at_fn_log_failure
 5661 $at_traceon; }
 5662 
 5663 
 5664 lt_exe=./hell; if test -f "./hell$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
 5665 { set +x
 5666 $as_echo "$at_srcdir/demo.at:389: 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"
 5667 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" "demo.at:389"
 5668 ( $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
 5669 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5670 at_status=$? at_failed=false
 5671 $at_check_filter
 5672 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5673 $at_diff expout "$at_stdout" || at_failed=:
 5674 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:389"
 5675 $at_failed && at_fn_log_failure
 5676 $at_traceon; }
 5677 
 5678 
 5679 
 5680 
 5681 
 5682 
 5683 { set +x
 5684 $as_echo "$at_srcdir/demo.at:389: ./helldl\$EXEEXT |
 5685     \$EGREP '(Welcome to .*GNU Hell|unsupported)'"
 5686 at_fn_check_prepare_notrace 'an embedded newline' "demo.at:389"
 5687 ( $at_check_trace; ./helldl$EXEEXT |
 5688     $EGREP '(Welcome to .*GNU Hell|unsupported)'
 5689 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5690 at_status=$? at_failed=false
 5691 $at_check_filter
 5692 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5693 echo stdout:; cat "$at_stdout"
 5694 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:389"
 5695 $at_failed && at_fn_log_failure
 5696 $at_traceon; }
 5697 
 5698 
 5699 # Windows hosts search for dlls in the command path.
 5700 PATH=$prefix/lib:$PATH
 5701 
 5702 for target in install
 5703 do
 5704   { set +x
 5705 $as_echo "$at_srcdir/demo.at:390: \$as_unset LIBTOOL; \$as_unset LIBTOOLIZE; \$MAKE \$target "
 5706 at_fn_check_prepare_dynamic "$as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE $target " "demo.at:390"
 5707 ( $at_check_trace; $as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE $target
 5708 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5709 at_status=$? at_failed=false
 5710 $at_check_filter
 5711 echo stderr:; cat "$at_stderr"
 5712 echo stdout:; cat "$at_stdout"
 5713 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:390"
 5714 $at_failed && at_fn_log_failure
 5715 $at_traceon; }
 5716 
 5717 done
 5718 
 5719 lt_exe=$prefix/bin/hell_static; if test -f "$prefix/bin/hell_static$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
 5720 { set +x
 5721 $as_echo "$at_srcdir/demo.at:390: 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"
 5722 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" "demo.at:390"
 5723 ( $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
 5724 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5725 at_status=$? at_failed=false
 5726 $at_check_filter
 5727 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5728 $at_diff expout "$at_stdout" || at_failed=:
 5729 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:390"
 5730 $at_failed && at_fn_log_failure
 5731 $at_traceon; }
 5732 
 5733 
 5734 lt_exe=$prefix/bin/hell; if test -f "$prefix/bin/hell$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
 5735 { set +x
 5736 $as_echo "$at_srcdir/demo.at:390: 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"
 5737 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" "demo.at:390"
 5738 ( $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
 5739 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5740 at_status=$? at_failed=false
 5741 $at_check_filter
 5742 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5743 $at_diff expout "$at_stdout" || at_failed=:
 5744 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:390"
 5745 $at_failed && at_fn_log_failure
 5746 $at_traceon; }
 5747 
 5748 
 5749 
 5750 
 5751 
 5752 
 5753 { set +x
 5754 $as_echo "$at_srcdir/demo.at:390: \$prefix/bin/helldl\$EXEEXT |
 5755     \$EGREP '(Welcome to .*GNU Hell|unsupported)'"
 5756 at_fn_check_prepare_notrace 'an embedded newline' "demo.at:390"
 5757 ( $at_check_trace; $prefix/bin/helldl$EXEEXT |
 5758     $EGREP '(Welcome to .*GNU Hell|unsupported)'
 5759 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5760 at_status=$? at_failed=false
 5761 $at_check_filter
 5762 at_fn_diff_devnull "$at_stderr" || at_failed=:
 5763 echo stdout:; cat "$at_stdout"
 5764 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:390"
 5765 $at_failed && at_fn_log_failure
 5766 $at_traceon; }
 5767 
 5768 
 5769 for target in uninstall
 5770 do
 5771   { set +x
 5772 $as_echo "$at_srcdir/demo.at:391: \$as_unset LIBTOOL; \$as_unset LIBTOOLIZE; \$MAKE \$target "
 5773 at_fn_check_prepare_dynamic "$as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE $target " "demo.at:391"
 5774 ( $at_check_trace; $as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE $target
 5775 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 5776 at_status=$? at_failed=false
 5777 $at_check_filter
 5778 echo stderr:; cat "$at_stderr"
 5779 echo stdout:; cat "$at_stdout"
 5780 at_fn_check_status 0 $at_status "$at_srcdir/demo.at:391"
 5781 $at_failed && at_fn_log_failure
 5782 $at_traceon; }
 5783 
 5784 done
 5785 
 5786 
 5787 leftovers=`find $prefix ! -type d ! -name '.*' -print`
 5788 { set +x
 5789 $as_echo "$at_srcdir/demo.at:391: test -z \"\$leftovers\""
 5790 at_fn_check_prepare_dynamic "test -z \"