[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] configure: remove bogus linux-user check
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 5/5] configure: remove bogus linux-user check |
Date: |
Tue, 30 Jun 2009 17:15:11 +0300 |
From: Riku Voipio <address@hidden>
linux-user=yes is not a reliable identifier that linux-user targets
have been selected. user targets can be selected via --target-list
as well.
Signed-off-by: Riku Voipio <address@hidden>
---
configure | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/configure b/configure
index 33e3c41..caa5a52 100755
--- a/configure
+++ b/configure
@@ -1245,8 +1245,7 @@ fi
# have syscall stubs for these implemented.
#
atfile=no
-if [ "$linux_user" = "yes" ] ; then
- cat > $TMPC << EOF
+cat > $TMPC << EOF
#define _ATFILE_SOURCE
#include <sys/types.h>
#include <fcntl.h>
@@ -1259,9 +1258,8 @@ main(void)
return (unlinkat(AT_FDCWD, "nonexistent_file", 0));
}
EOF
- if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then
- atfile=yes
- fi
+if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then
+ atfile=yes
fi
# Check for inotify functions when we are building linux-user
@@ -1270,8 +1268,7 @@ fi
# don't provide them even if kernel supports them.
#
inotify=no
-if [ "$linux_user" = "yes" ] ; then
- cat > $TMPC << EOF
+cat > $TMPC << EOF
#include <sys/inotify.h>
int
@@ -1281,9 +1278,8 @@ main(void)
return inotify_init();
}
EOF
- if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then
- inotify=yes
- fi
+if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then
+ inotify=yes
fi
# check if utimensat and futimens are supported
--
1.6.2.1