libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ltmain.in incompatibility with GNU textutils 2.0.21


From: Boehne, Robert
Subject: Re: ltmain.in incompatibility with GNU textutils 2.0.21
Date: Mon, 06 May 2002 09:47:23 -0500

Paul,

I've approved this patch, and am checking it in to the relevant
branches.

Thanks,

Robert


2002-05-06  Paul Eggert  <address@hidden>

        * ltmain.in: Don't assume that "sort +2" works, as POSIX
        1003.1-2001 says that "sort +2" is supposed to sort the file
        named "+2".  An example host that behaves like this is
        textutils 2.0.21 with _POSIX2_VERSION=200112.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.295
diff -u -r1.295 ltmain.in
--- ltmain.in   6 May 2002 13:38:11 -0000       1.295
+++ ltmain.in   6 May 2002 14:46:34 -0000
@@ -3812,7 +3812,13 @@
            fi
 
            # Try sorting and uniquifying the output.
-           if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
+           if grep -v "^: " < "$nlist" |
+               if sort -k 3 </dev/null >/dev/null 2>&1; then
+                 sort -k 3
+               else
+                 sort +2
+               fi |
+               uniq > "$nlist"S; then
              :
            else
              grep -v "^: " < "$nlist" > "$nlist"S


-- 
Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  rboehne AT ricardo-us DOT com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]