This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
oslevel can fail on AIX, but the output generated would confuse
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 16 Jul 2004 10:28:42 +0000 (10:28 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 16 Jul 2004 10:28:42 +0000 (10:28 +0000)
       Configure (backport 23122)

p4raw-id: //depot/metaconfig@23123

U/modified/Oldconfig.U

index 34a3074..9b6a821 100644 (file)
@@ -294,7 +294,9 @@ EOM
 ?X: it puts out something like  4.1.1.0
                        tmp=`( (oslevel) 2>/dev/null || echo "not found") 2>&1`
                        case "$tmp" in
-                       'not found') osvers="$4"."$3" ;;
+                       # oslevel can fail with:
+                       # oslevel: Unable to acquire lock.
+                       *not\ found) osvers="$4"."$3" ;;
                        '<3240'|'<>3240') osvers=3.2.0 ;;
                        '=3240'|'>3240'|'<3250'|'<>3250') osvers=3.2.4 ;;
                        '=3250'|'>3250') osvers=3.2.5 ;;