From 0d95b33e1ba23a63d49bdf632538c3d23ab5dfa5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 21 Mar 1997 00:25:04 +0000 Subject: [PATCH] fixlet --- lib/am/program.am | 9 ++++++++- program.am | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/am/program.am b/lib/am/program.am index 3d8d411..a4ca3e6 100644 --- a/lib/am/program.am +++ b/lib/am/program.am @@ -17,4 +17,11 @@ ## 02111-1307, USA. @PROGRAM@: $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_DEPENDENCIES) $(@XLINK@) $(@XPROGRAM@_LDFLAGS) $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_LDADD) $(LIBS) -CYGWIN @test -n "$(EXEEXT)" && echo timestamp > @PROGRAM@ +## Why take such a funny approach to Cygwin32 executables? Why not +## just rewrite this file to PROGRAM$(EXEEXT), and then rewrite +## foo_PROGRAMS similarly? Because then EXTRA_PROGRAMS won't work +## correctly -- every configure.in will have to know to add $(EXEEXT) +## when putting a program name into a variable. By doing things this +## way we can get Cygwin32 support by adding a single macro to +## configure.in and then re-running automake. +CYGWIN @test -z "$(EXEEXT)" || echo timestamp > @PROGRAM@ diff --git a/program.am b/program.am index 3d8d411..a4ca3e6 100644 --- a/program.am +++ b/program.am @@ -17,4 +17,11 @@ ## 02111-1307, USA. @PROGRAM@: $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_DEPENDENCIES) $(@XLINK@) $(@XPROGRAM@_LDFLAGS) $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_LDADD) $(LIBS) -CYGWIN @test -n "$(EXEEXT)" && echo timestamp > @PROGRAM@ +## Why take such a funny approach to Cygwin32 executables? Why not +## just rewrite this file to PROGRAM$(EXEEXT), and then rewrite +## foo_PROGRAMS similarly? Because then EXTRA_PROGRAMS won't work +## correctly -- every configure.in will have to know to add $(EXEEXT) +## when putting a program name into a variable. By doing things this +## way we can get Cygwin32 support by adding a single macro to +## configure.in and then re-running automake. +CYGWIN @test -z "$(EXEEXT)" || echo timestamp > @PROGRAM@ -- 2.7.4