[alsa-devel] [PATCH 1/2] configure.in: fix --without-softfloat

Marc Kleine-Budde mkl at pengutronix.de
Mon Nov 16 11:14:54 CET 2009


Using --without-softfloat or --with-softfloat=no results in using
softfloat. This patch fixes the problem.

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 configure.in |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index cc8950f..040a3e7 100644
--- a/configure.in
+++ b/configure.in
@@ -206,9 +206,12 @@ AC_MSG_CHECKING(for softfloat)
 AC_ARG_WITH(softfloat,
   AS_HELP_STRING([--with-softfloat],
     [do you have floating point unit on this machine? (optional)]),
-  [  AC_DEFINE(HAVE_SOFT_FLOAT, "1", [Avoid calculation in float])
-     softfloat=yes ],)
+  [case "$withval" in
+  	y|yes) softfloat=yes ;;
+	*) softfloat=no ;;
+   esac],)
 if test "$softfloat" = "yes" ; then
+  AC_DEFINE(HAVE_SOFT_FLOAT, "1", [Avoid calculation in float])
   AC_MSG_RESULT(yes)
 else
   AC_MSG_RESULT(no)
-- 
1.6.5.2



More information about the Alsa-devel mailing list