浏览代码

configure.ac: fix detection of linux systems

Nathalie Furmento 12 年之前
父节点
当前提交
34502a9cdf
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      configure.ac

+ 2 - 5
configure.ac

@@ -134,15 +134,12 @@ case "$target" in
   libext=a
   AC_DEFINE(STARPU_HAVE_WINDOWS, [], [Define this on windows.])
   ;;
-esac
-AM_CONDITIONAL([STARPU_HAVE_WINDOWS], [test "x$starpu_windows" = "xyes"])
-
-case "$target_os" in
 *linux*)
   starpu_linux=yes
   ;;
 esac
-AM_CONDITIONAL(STARPU_LINUX_SYS, [test "x$starpu_linux" = "xyes"])
+AM_CONDITIONAL([STARPU_HAVE_WINDOWS], [test "x$starpu_windows" = "xyes"])
+AM_CONDITIONAL([STARPU_LINUX_SYS], [test "x$starpu_linux" = "xyes"])
 
 # on Darwin, GCC targets i386 by default, so we don't have atomic ops
 AC_CHECK_SIZEOF([void *])