Check for fchdir syscall.
authorroland <roland>
Tue, 24 Oct 1995 19:22:27 +0000 (19:22 +0000)
committerroland <roland>
Tue, 24 Oct 1995 19:22:27 +0000 (19:22 +0000)
Improve sed script to allow / on rhs without / on lhs.

sysdeps/unix/configure.in

index 74456fe..37b6dca 100644 (file)
@@ -72,6 +72,7 @@ for unix_function in \
   getitimer setitimer \
   getdomainname/getdomain=bsd/bsd4.4 \
   setdomainname/setdomain=bsd/bsd4.4 \
+  fchdir=bsd/bsd4.4 \
   profil=bsd readv=bsd writev=bsd \
   getpriority setpriority \
   getrlimit setrlimit
@@ -83,8 +84,8 @@ do
   unix_srcname=
   unix_srcdir=common
   eval "unix_syscall=`echo $unix_function | \
-                      sed -e 's@=\(.*\)$@ unix_srcdir=\1@' \
-                          -e 's@/\(.*\)$@ unix_srcname=\1@'`"
+                     sed -e 's@=\(.*\)$@ unix_srcdir=\1@' \
+                         -e 's@/\([^=/]*\)$@ unix_srcname=\1@'`"
   test -z "$unix_srcname" && unix_srcname=$unix_syscall
 
   unix_implementor=none