--- configure.in 2007-01-11 02:09:52.000000000 +0100 +++ configure.in.new 2007-01-11 02:04:21.000000000 +0100 @@ -45,8 +45,13 @@ AC_SUBST(FL_API_VERSION) dnl Get the operating system and version number... -uname=`uname` -uversion=`uname -r | sed -e '1,$s/[[^0-9]]//g'` +if test "x$cross_compiling" = x; then + uname=`uname` + uversion=`uname -r | sed -e '1,$s/[[^0-9]]//g'` +else + uname=${host} +fi + if test "x$uname" = xIRIX64; then uname="IRIX" fi @@ -69,7 +74,7 @@ dnl OS-specific pre-tests... case $uname in - CYGWIN* | MINGW*) + CYGWIN* | *mingw*| MINGW*) # Handle Cygwin option *first*, before all other tests. AC_ARG_ENABLE(cygwin, [ --enable-cygwin use the CygWin libraries [default=no]]) if test x$enable_cygwin != xyes; then @@ -80,6 +85,7 @@ CPPFLAGS="$CPPFLAGS -mno-cygwin" CXXFLAGS="$CXXFLAGS -mno-cygwin" LDFLAGS="$LDFLAGS -mno-cygwin" + AC_CHECK_TOOL(WINDRES,windres) fi ;; esac @@ -191,7 +197,7 @@ DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-bexpall,-bM:SRE,-bnoentry -o" SHAREDSUFFIX="_s" ;; - CYGWIN* | MINGW*) + CYGWIN* | *mingw*| MINGW*) PICFLAG=0 if test x$enable_cygwin != xyes; then DSONAME="mgwfltknox-$FL_API_VERSION.dll" @@ -274,6 +280,7 @@ NROFF="$GROFF -T ascii" fi fi +AC_SUBST(WINDRES) AC_PATH_PROG(HTMLDOC,htmldoc) dnl How do we make libraries? @@ -437,7 +444,7 @@ AUDIOLIBS="" case $uname in - CYGWIN* | MINGW*) + CYGWIN* | *mingw*| MINGW*) dnl Cygwin environment... AUDIOLIBS="-lwinmm" ;; @@ -572,7 +579,7 @@ UNINSTALL_DESKTOP="" case $uname in - CYGWIN* | MINGW*) + CYGWIN* | *mingw*| MINGW*) dnl Cygwin environment... CFLAGS="-mwindows -DWIN32 $CFLAGS" CXXFLAGS="-mwindows -DWIN32 $CXXFLAGS" --- makeinclude.in 2007-01-11 02:09:53.000000000 +0100 +++ makeinclude.in.new 2007-01-11 00:50:50.000000000 +0100 @@ -51,6 +51,7 @@ # compiler names: CXX = @CXX@ CC = @CC@ +WINDRES = @WINDRES@ MAKEDEPEND = @MAKEDEPEND@ # flags for C++ compiler: --- test/Makefile 2007-01-11 02:09:30.000000000 +0100 +++ test/Makefile.new 2007-01-11 02:09:07.000000000 +0100 @@ -247,7 +247,7 @@ # FLUID file rules .fl.cxx .fl.h: ../fluid/fluid$(EXEEXT) echo Generating $<... - ../fluid/fluid$(EXEEXT) -c $< + wine ../fluid/fluid$(EXEEXT) -c $< # All demos depend on the FLTK library... $(ALL): ../lib/$(LIBNAME) @@ -411,7 +411,7 @@ sudoku.exe: sudoku.o sudoku.rc echo Linking $@... - windres sudoku.rc sudokures.o + ${WINDRES} sudoku.rc sudokures.o $(CXX) $(ARCHFLAGS) $(LDFLAGS) sudoku.o sudokures.o -o $@ $(AUDIOLIBS) $(LINKFLTKIMG) $(LDLIBS) symbols$(EXEEXT): symbols.o