Commit 18aa8f9a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

minor fixes to the checks for assembler support.

2003-07-04  Sven Neumann  <sven@gimp.org>

	* configure.in: minor fixes to the checks for assembler support.
parent 8395e6e8
2003-07-04 Sven Neumann <sven@gimp.org>
* configure.in: minor fixes to the checks for assembler support.
2003-07-04 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpitemfactory.c (gimp_item_factory_set_color): use
......@@ -401,7 +401,7 @@ AC_ARG_ENABLE(mmx,
AC_ARG_ENABLE(sse,
[ --enable-sse enable SSE support (default=auto)],,
enable_sse=$have_x86)
enable_sse=$enable_mmx)
if test "x$enable_mmx" = xyes; then
......@@ -416,36 +416,33 @@ if test "x$enable_mmx" = xyes; then
AC_DEFINE(USE_MMX, 1, [Define to 1 if MMX assembly is available.])
AC_MSG_RESULT(yes)
AC_MSG_CHECKING(whether we can compile SSE code)
if test "x$enable_sse" = xyes; then
AC_MSG_CHECKING(whether we can compile SSE code)
echo " movntps %xmm0, 0" > conftest.S
if AC_TRY_EVAL(ac_compile); then
AC_DEFINE(USE_SSE, 1, [Define to 1 if SSE assembly is available.])
AC_MSG_RESULT(yes)
else
enable_sse=no
AC_MSG_RESULT(no)
AC_MSG_WARN([The assembler does not support the SSE command set.])
fi
echo " movntps %xmm0, 0" > conftest.S
if AC_TRY_EVAL(ac_compile); then
AC_DEFINE(USE_SSE, 1, [Define to 1 if SSE assembly is available.])
AC_MSG_RESULT(yes)
else
enable_sse=no
AC_MSG_RESULT(no)
AC_MSG_WARN([
****************************************************************
The installed assembler does not supports the SSE command set.
Update your binutils package, if you want to compile SSE code.
****************************************************************])
fi
else
enable_mmx=no
AC_MSG_RESULT(no)
AC_MSG_WARN([
****************************************************************
The installed assembler does not supports the MMX command set.
Update your binutils package, if you want to compile MMX code.
****************************************************************])
AC_MSG_WARN([The assembler does not support the MMX command set.])
fi
rm conftest*
ac_ext="$save_ac_ext"
else
enable_mmx=no
enable_sse=no
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment