This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[RFA] tcl/cygwin build fix
- To: insight at sources dot redhat dot com
- Subject: [RFA] tcl/cygwin build fix
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Fri, 5 Oct 2001 16:28:15 -0400
This allows building of tcl without special options on Windows.
It is similar to a test in the tcl/cygwin directory.
Ok to apply?
cgf
Fri Oct 5 16:03:53 2001 Christopher Faylor <cgf@cygnus.com>
* win/configure.in: Add detection for -mwin32 option requirement under
cygwin.
* win/configure: Regenerate
Index: win/configure.in
===================================================================
RCS file: /cvs/uberbaum/tcl/win/configure.in,v
retrieving revision 1.5
diff -p -r1.5 configure.in
*** configure.in 2001/09/13 00:38:49 1.5
--- configure.in 2001/10/05 20:20:52
*************** AC_PROG_MAKE_SET
*** 41,46 ****
--- 41,59 ----
AC_CYGWIN
+ case "${target}" in
+ *-*-cygwin*)
+ touch ac$$.c
+ if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
+ case "$EXTRA_CFLAGS" in
+ *-mwin32*) ;;
+ *) EXTRA_CFLAGS="-mwin32 $EXTRA_CFLAGS" ;;
+ esac
+ fi
+ rm -f ac$$.o ac$$.c
+ ;;
+ esac
+
#--------------------------------------------------------------------
# Determines the correct binary file extension (.o, .obj, .exe etc.)
#--------------------------------------------------------------------