* tests/Makefile.am (XFAIL_TESTS): Removed nolink.test.
* lib/am/program.am (%PROGRAM%%EXEEXT%): Use %EXEEXT%.
* automake.in (am_install_var): Only rewrite PROGRAMS if
$seen_exeext.
(make_paragraphs): Always define %EXEEXT%.
+2001-07-04 Tom Tromey <tromey@redhat.com>
+
+ Fix for nolink.test:
+ * tests/Makefile.am (XFAIL_TESTS): Removed nolink.test.
+ * lib/am/program.am (%PROGRAM%%EXEEXT%): Use %EXEEXT%.
+ * automake.in (am_install_var): Only rewrite PROGRAMS if
+ $seen_exeext.
+ (make_paragraphs): Always define %EXEEXT%.
+
2001-07-04 Alexandre Duret-Lutz <duret_g@epita.fr>
* tests/nolink.test: New file.
'HOST' => $seen_canonical,
'TARGET' => $seen_canonical == $AC_CANONICAL_SYSTEM,
+ 'EXEEXT' => ($seen_exeext ? '$(EXEEXT)' : ''),
+
'LIBTOOL' => defined $configure_vars{'LIBTOOL'})
# We don't need more than two consecutive new-lines.
. 's/\n{3,}/\n\n/g';
push (@result, $rcurs);
}
- # A blatant hack: we rewrite each _PROGRAMS primary to
- # include EXEEXT when in Cygwin32 mode.
- if ($primary eq 'PROGRAMS')
+ # A blatant hack: we rewrite each _PROGRAMS primary to include
+ # EXEEXT when in Cygwin32 mode. You might think we could
+ # simply always use $(EXEEXT), since we define it as empty
+ # when it isn't available. However, it isn't that simple.
+ # See nolink.test.
+ if ($seen_exeext && $primary eq 'PROGRAMS')
{
my @conds = &variable_conditions ($one_name);
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
-%PROGRAM%$(EXEEXT): $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_DEPENDENCIES)
+%PROGRAM%%EXEEXT%: $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_DEPENDENCIES)
## Remove program before linking. Otherwise the link will fail if the
## program is running somewhere. FIXME: this could be a loss if
## you're using an incremental linker. Maybe we should think twice?
## Or maybe not... sadly, incremental linkers are rarer than losing
## systems.
- @rm -f %PROGRAM%$(EXEEXT)
+ @rm -f %PROGRAM%%EXEEXT%
$(%XLINK%) $(%XPROGRAM%_LDFLAGS) $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_LDADD) $(LIBS)
## Process this file with automake to create Makefile.in
-XFAIL_TESTS = nolink.test subdir5.test
+XFAIL_TESTS = subdir5.test
TESTS = \
acinclude.test \
nodist.test \
noinst.test \
noinstdir.test \
+nolink.test \
nostdinc.test \
number.test \
obsolete.test \