Hi, Ciao, Marcus Changelog: Check and define AS (for cross/biarch compiler support). Add -gstabs to CFLAGS so our debugger is useable (gcc 3 uses dwarf as default, which the debugger does not understand). Index: Make.rules.in =================================================================== RCS file: /home/wine/wine/Make.rules.in,v retrieving revision 1.138 diff -u -r1.138 Make.rules.in --- Make.rules.in 4 Jan 2003 00:52:21 -0000 1.138 +++ Make.rules.in 8 Jan 2003 14:07:44 -0000 @@ -48,6 +48,7 @@ TOOLSDIR = @TOOLSDIR@ DIVINCL = -I$(SRCDIR) -I. -I$(TOPSRCDIR)/include -I$(TOPOBJDIR)/include $(EXTRAINCL) ALLCFLAGS = $(DIVINCL) $(CFLAGS) $(DEFS) $(OPTIONS) +AS = @AS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LDCOMBINE = $(LD) -r Index: configure.ac =================================================================== RCS file: /home/wine/wine/configure.ac,v retrieving revision 1.116 diff -u -r1.116 configure.ac --- configure.ac 4 Jan 2003 02:52:05 -0000 1.116 +++ configure.ac 8 Jan 2003 14:07:55 -0000 @@ -78,6 +79,7 @@ AC_MSG_ERROR([no suitable lex found. Please install the 'flex' package.]) fi +AC_CHECK_TOOL(AS,as,as) AC_CHECK_TOOL(LD,ld,ld) AC_CHECK_TOOL(AR,ar,ar) AC_PROG_RANLIB @@ -117,6 +119,16 @@ AC_SUBST(DB2PS) dnl **** Check for some libraries **** + +AC_MSG_CHECKING([whether compiler can use -gstabs]) +ac_save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -gstabs" +AC_TRY_COMPILE([#include <stdio.h>],[return 0;], + [AC_MSG_RESULT([yes])], + [CFLAGS="$ac_save_CFLAGS" + AC_MSG_RESULT([no]) + ] +) dnl Check for -lm AC_CHECK_LIB(m,sqrt)