unix/configure: Disable some tests when cross-compiling

This commit is contained in:
GOUJON Alexandre 2013-07-19 11:29:34 +02:00
parent 712fee03b1
commit 4b632fb830
2 changed files with 12 additions and 0 deletions

6
unix/configure vendored
View File

@ -3416,6 +3416,8 @@ fi
# Test what compiler flags we should use.
# If cross-compiling, we need to disable some tests
if test "x$cross_compiling" == "xno"; then
# Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then :
enableval=$enable_debug;
@ -4269,6 +4271,7 @@ $as_echo "no" >&6; }
fi
fi # fi not cross-compiling
# Check if the OS is Linux.
@ -5797,6 +5800,8 @@ done
# Check whether the size of pointer is int.
# If cross-compiling, we need to disable some tests
if test "x$cross_compiling" == "xno"; then
if test "x$snes9x_have_stdint_h" = "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the size of pointer is int" >&5
$as_echo_n "checking whether the size of pointer is int... " >&6; }
@ -6104,6 +6109,7 @@ if test "x$snes9x_sar_int8" = "xyes" -a "x$snes9x_sar_int16" = "xyes" -a "x$snes
S9XDEFS="`echo \"$S9XDEFS\" | sed -e 's/-DRIGHTSHIFT_int64_IS_SAR//'`"
S9XDEFS="$S9XDEFS -DRIGHTSHIFT_IS_SAR"
fi
fi # fi not cross-compiling
# Check if we have sound code for this platform.

View File

@ -70,6 +70,8 @@ fi
# Test what compiler flags we should use.
# If cross-compiling, we need to disable some tests
if test "x$cross_compiling" == "xno"; then
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[leave debug information in the final binary (default: no)])],
@ -105,6 +107,7 @@ AC_S9X_COMPILER_FLAG([-pedantic], [pedantic])
AC_S9X_COMPILER_FLAG([-Wall], [Wall])
AC_S9X_COMPILER_FLAG([-W], [W])
AC_S9X_COMPILER_FLAG([-Wno-unused-parameter], [Wno_unused_parameter])
fi # fi not cross-compiling
# Check if the OS is Linux.
@ -332,6 +335,8 @@ AC_CHECK_HEADERS([unistd.h sys/socket.h])
# Check whether the size of pointer is int.
# If cross-compiling, we need to disable some tests
if test "x$cross_compiling" == "xno"; then
if test "x$snes9x_have_stdint_h" = "x"; then
AC_MSG_CHECKING([whether the size of pointer is int])
@ -413,6 +418,7 @@ if test "x$snes9x_sar_int8" = "xyes" -a "x$snes9x_sar_int16" = "xyes" -a "x$snes
S9XDEFS="`echo \"$S9XDEFS\" | sed -e 's/-DRIGHTSHIFT_int64_IS_SAR//'`"
S9XDEFS="$S9XDEFS -DRIGHTSHIFT_IS_SAR"
fi
fi # fi not cross-compiling
# Check if we have sound code for this platform.