(uname): Check for uname in syscalls.list files.
authorroland <roland>
Mon, 29 Jan 1996 18:51:55 +0000 (18:51 +0000)
committerroland <roland>
Mon, 29 Jan 1996 18:51:55 +0000 (18:51 +0000)
configure.in

index 891859c..6ad4e51 100644 (file)
@@ -419,8 +419,11 @@ for dir in $sysnames; do
     . $sysdep_dir/$dir/configure
   fi
   if test -z "$uname"; then
-    { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
-    && uname=$dir
+    if test -r $sysdep_dir/$dir/uname.c ||
+       test -r $sysdep_dir/$dir/uname.S ||
+       { test -r $sysdep_dir/$dir/syscalls.list &&
+        grep '^uname[  ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
+      uname=$dir
   fi
 done