MiNT detection, cross-compiling fixes.

This commit is contained in:
Ryan C. Gordon 2003-08-26 19:43:04 +00:00
parent f920549378
commit f7577d417f
1 changed files with 21 additions and 11 deletions

View File

@ -39,9 +39,7 @@ AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE) AC_SUBST(LT_AGE)
dnl Detect the canonical host and target build environment dnl Detect the canonical host and target build environment
AC_CANONICAL_BUILD AC_CANONICAL_SYSTEM
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
dnl Setup for automake dnl Setup for automake
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
@ -340,7 +338,7 @@ fi
have_non_posix_threads=no have_non_posix_threads=no
AC_MSG_CHECKING([if this is BeOS]) AC_MSG_CHECKING([if this is BeOS])
if test x$build_os = xbeos; then if test x$target_os = xbeos; then
this_is_beos=yes this_is_beos=yes
enable_pthreads=no enable_pthreads=no
have_non_posix_threads=yes have_non_posix_threads=yes
@ -352,7 +350,7 @@ fi
AC_MSG_RESULT([$this_is_beos]) AC_MSG_RESULT([$this_is_beos])
AC_MSG_CHECKING([if this is Cygwin]) AC_MSG_CHECKING([if this is Cygwin])
if test x$build_os = xcygwin; then if test x$target_os = xcygwin; then
this_is_cygwin=yes this_is_cygwin=yes
PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32" PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32"
enable_pthreads=no enable_pthreads=no
@ -366,8 +364,8 @@ AC_MSG_RESULT([$this_is_cygwin])
this_is_macosx=no this_is_macosx=no
if test x$we_have_sed = xyes; then if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is MacOS X]) AC_MSG_CHECKING([if this is MacOS X])
x=`echo $build_os |sed "s/darwin.*/darwin/"` x=`echo $target_os |sed "s/darwin.*/darwin/"`
if test x$x = xdarwin -a x$build_vendor = xapple; then if test x$x = xdarwin -a x$target_vendor = xapple; then
this_is_macosx=yes this_is_macosx=yes
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit" PHYSFSLDFLAGS="$PHYSFSLDFLAGS -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit"
fi fi
@ -378,7 +376,7 @@ fi
this_is_freebsd=no this_is_freebsd=no
if test x$we_have_sed = xyes; then if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is FreeBSD]) AC_MSG_CHECKING([if this is FreeBSD])
x=`echo $build_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"` x=`echo $target_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"`
if test x$x = xfreebsd; then if test x$x = xfreebsd; then
this_is_freebsd=yes this_is_freebsd=yes
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread" PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
@ -390,7 +388,7 @@ fi
this_is_openbsd=no this_is_openbsd=no
if test x$we_have_sed = xyes; then if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is OpenBSD]) AC_MSG_CHECKING([if this is OpenBSD])
x=`echo $build_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"` x=`echo $target_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"`
if test x$x = xopenbsd; then if test x$x = xopenbsd; then
this_is_openbsd=yes this_is_openbsd=yes
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread" PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
@ -402,7 +400,7 @@ fi
this_is_atheos=no this_is_atheos=no
if test x$we_have_sed = xyes; then if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is AtheOS]) AC_MSG_CHECKING([if this is AtheOS])
x=`echo $build_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"` x=`echo $target_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"`
if test x$x = xatheos; then if test x$x = xatheos; then
this_is_atheos=yes this_is_atheos=yes
enable_cdrom=no enable_cdrom=no
@ -415,7 +413,7 @@ fi
this_is_os2=no this_is_os2=no
if test x$we_have_sed = xyes; then if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is OS/2]) AC_MSG_CHECKING([if this is OS/2])
x=`echo $build_os |tr A-Z a-z |sed "s/.*os2.*/os2/"` x=`echo $target_os |tr A-Z a-z |sed "s/.*os2.*/os2/"`
if test x$x = xos2; then if test x$x = xos2; then
this_is_os2=yes this_is_os2=yes
PHYSFSCFLAGS="$PHYSFSCFLAGS -DOS2" PHYSFSCFLAGS="$PHYSFSCFLAGS -DOS2"
@ -424,6 +422,18 @@ if test x$we_have_sed = xyes; then
AC_MSG_RESULT([$this_is_os2]) AC_MSG_RESULT([$this_is_os2])
fi fi
this_is_mint=no
if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is MiNT])
x=`echo $target_os |tr A-Z a-z |sed "s/.*mint.*/mint/"`
if test x$x = xmint; then
this_is_mint=yes
enable_cdrom=no
enable_pthreads=no
fi
AC_MSG_RESULT([$this_is_mint])
fi
dnl Some platform might disable this, so check this down here... dnl Some platform might disable this, so check this down here...