cross compilation fixes

This commit is contained in:
Bill Currie 2001-10-16 16:16:52 +00:00
parent 2f5e58be2d
commit 294e8b5dea
2 changed files with 8 additions and 2 deletions

View file

@ -31,6 +31,9 @@ AC_SUBST(ISODATE)
AC_LANG_C
if test ${AR-unset} = unset; then
AR="ar"
fi
endian=""
case "$host_os" in
mingw32*)
@ -38,11 +41,14 @@ case "$host_os" in
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32"
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32/resources"
if test $host != $build; then
CC=$host_cpu-$host_os-gcc
CC="$host_cpu-$host_os-gcc"
AR="$host_cpu-$host_os-ar"
RANLIB="$host_cpu-$host_os-ranlib"
endian="little"
fi
;;
esac
AC_SUBST(AR)
dnl ==================================================================
dnl Checks for programs.

View file

@ -32,7 +32,7 @@ AUTOMAKE_OPTIONS= foreign
# Stuff that is common to both client and server
#
INCLUDES= -I$(top_srcdir)/include $(GGI_CFLAGS) $(MGL_CFLAGS) $(SVGA_CFLAGS) $(X_CFLAGS) $(GLX_CFLAGS) $(TDFXGL_CFLAGS)
AR=@AR@
bin_PROGRAMS = @TARGETS@
EXTRA_PROGRAMS= qf-server \