I thought about using __MINGW32__, but I was trying not to restrict
the fix to just mingw32. Apparently, I ended up being too general.
This looks like an acceptable alternative.
Andy Piper writes:
This should do it I think.
andy
1999-09-20 Andy Piper <andy(a)xemacs.org>
* Makefile.in.in: use __CYGWIN32__ and __MINGW32__ to predicate
installation linkage.
Index: Makefile.in.in
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/Attic/Makefile.in.in,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 Makefile.in.in
--- Makefile.in.in 1999/08/31 21:27:42 1.1.2.12
+++ Makefile.in.in 1999/09/20 15:50:30
@@ -412,14 +412,18 @@
for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS
-print` ; \
do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \
else true; fi
-#ifdef WINDOWSNT
+#ifdef __MINGW32__
${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}
-chmod 0755 ${bindir}/${PROGNAME}
#else
${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}-${version}
-chmod 0755 ${bindir}/${PROGNAME}-${version}
+# ifdef __CYGWIN32__
+ cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S}
${PROGNAME}-${version}.exe ./${PROGNAME}
+# else
cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version}
./${PROGNAME}
-#endif
+# endif /* __CYGWIN32__ */
+#endif /* __MINGW32__ */
if test "${prefix}" != "${exec_prefix}"; then \
for dir in \
lib/${inststaticdir} \
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd
--
----------------------------------------------------------------------
Craig Lanning Principal Engineer
Logicon, Inc.
a Northrop Grumman company E-Mail: Lanning(a)scra.org
5300 International Blvd. Voice: 843-760-3246
North Charleston, SC 29418 FAX: 843-760-3780
USA