summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-11-16 11:14:54 +0100
committerJaroslav Kysela <perex@perex.cz>2009-11-16 11:31:23 +0100
commitabac6ff1eb537d28b52f1ed3e61146f97ef68954 (patch)
treef69d57dfc74918bbdc86732c24ced2491a6c915c
parentf75f1da1b78e5faaea88311b6f488899c6b17f4c (diff)
configure.in: fix --without-softfloat
Using --without-softfloat or --with-softfloat=no results in using softfloat. This patch fixes the problem. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--configure.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index cc8950f9..88bc0e36 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)