This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Augment #5865.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 22 Mar 2000 14:16:54 +0000 (14:16 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 22 Mar 2000 14:16:54 +0000 (14:16 +0000)
p4raw-id: //depot/cfgperl@5870

hints/unicosmk.sh

index 1e6f0f0..f3416ff 100644 (file)
@@ -20,8 +20,13 @@ esac
 # (an attempt to use them causes a runtime error)
 # XXX Configure probe for really functional shm*() is needed XXX
 if test "$d_shm" = ""; then
-    test "$d_shmctl" = "" && d_shmctl="$undef"
-    test "$d_shmget" = "" && d_shmget="$undef"
-    d_shm="$undef"
+    d_shmat=${d_shmat:-undef}
+    d_shmdt=${d_shmdt:-undef}
+    d_shmget=${d_shmget:-undef}
+    d_shmctl=${d_shmctl:-undef}
+    case "$d_shmat$d_shmctl$d_shmdt$d_shmget" in
+    *"undef"*) d_shm="$undef" ;;
+    esac
 fi
 
+