Commit 67ba57f63da7cfbc6f34917ff5875f67dfbea9ba
1 parent
7b8118e8
configure: remove bogus linux-user check
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.
Showing
1 changed file
with
6 additions
and
10 deletions
configure
| @@ -1249,8 +1249,7 @@ fi | @@ -1249,8 +1249,7 @@ fi | ||
| 1249 | # have syscall stubs for these implemented. | 1249 | # have syscall stubs for these implemented. |
| 1250 | # | 1250 | # |
| 1251 | atfile=no | 1251 | atfile=no |
| 1252 | -if [ "$linux_user" = "yes" ] ; then | ||
| 1253 | - cat > $TMPC << EOF | 1252 | +cat > $TMPC << EOF |
| 1254 | #define _ATFILE_SOURCE | 1253 | #define _ATFILE_SOURCE |
| 1255 | #include <sys/types.h> | 1254 | #include <sys/types.h> |
| 1256 | #include <fcntl.h> | 1255 | #include <fcntl.h> |
| @@ -1263,9 +1262,8 @@ main(void) | @@ -1263,9 +1262,8 @@ main(void) | ||
| 1263 | return (unlinkat(AT_FDCWD, "nonexistent_file", 0)); | 1262 | return (unlinkat(AT_FDCWD, "nonexistent_file", 0)); |
| 1264 | } | 1263 | } |
| 1265 | EOF | 1264 | EOF |
| 1266 | - if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then | ||
| 1267 | - atfile=yes | ||
| 1268 | - fi | 1265 | +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then |
| 1266 | + atfile=yes | ||
| 1269 | fi | 1267 | fi |
| 1270 | 1268 | ||
| 1271 | # Check for inotify functions when we are building linux-user | 1269 | # Check for inotify functions when we are building linux-user |
| @@ -1274,8 +1272,7 @@ fi | @@ -1274,8 +1272,7 @@ fi | ||
| 1274 | # don't provide them even if kernel supports them. | 1272 | # don't provide them even if kernel supports them. |
| 1275 | # | 1273 | # |
| 1276 | inotify=no | 1274 | inotify=no |
| 1277 | -if [ "$linux_user" = "yes" ] ; then | ||
| 1278 | - cat > $TMPC << EOF | 1275 | +cat > $TMPC << EOF |
| 1279 | #include <sys/inotify.h> | 1276 | #include <sys/inotify.h> |
| 1280 | 1277 | ||
| 1281 | int | 1278 | int |
| @@ -1285,9 +1282,8 @@ main(void) | @@ -1285,9 +1282,8 @@ main(void) | ||
| 1285 | return inotify_init(); | 1282 | return inotify_init(); |
| 1286 | } | 1283 | } |
| 1287 | EOF | 1284 | EOF |
| 1288 | - if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then | ||
| 1289 | - inotify=yes | ||
| 1290 | - fi | 1285 | +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then |
| 1286 | + inotify=yes | ||
| 1291 | fi | 1287 | fi |
| 1292 | 1288 | ||
| 1293 | # check if utimensat and futimens are supported | 1289 | # check if utimensat and futimens are supported |