diff --git a/configure.ac b/configure.ac
index dbc59bae0c8041441f976900eff3d91250a4c7e2..00633e24250448ce3fdf69042f14e66325d9e5ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,6 +102,7 @@ AC_MSG_RESULT($need_no_undefined)
 AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
 
 AC_MSG_CHECKING([if we need -mimpure-text])
+mimpure=no
 case $host in
   *-*-solaris2*)
     if test "$GCC" = "yes"; then
@@ -109,13 +110,13 @@ case $host in
     fi
     ;;
   *)
-    mimpure=no
     ;;
 esac
 AC_MSG_RESULT($mimpure)
 AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes)
 
 AC_MSG_CHECKING([if we need _XOPEN_SOURCE defined to 500])
+xopen=no
 case $host in
   mips-sgi-irix*)
     if test "$GCC" != "yes"; then
@@ -124,7 +125,6 @@ case $host in
     fi
     ;;
   *)
-    xopen=no
     ;;
 esac
 AC_MSG_RESULT($xopen)