[135462] trunk/dports/devel/libtool/Portfile

larryv at macports.org larryv at macports.org
Thu Apr 23 15:25:08 PDT 2015


Revision: 135462
          https://trac.macports.org/changeset/135462
Author:   larryv at macports.org
Date:     2015-04-23 15:25:08 -0700 (Thu, 23 Apr 2015)
Log Message:
-----------
libtool: Only use system M4 on Leopard and later (#47545)

Modified Paths:
--------------
    trunk/dports/devel/libtool/Portfile

Modified: trunk/dports/devel/libtool/Portfile
===================================================================
--- trunk/dports/devel/libtool/Portfile	2015-04-23 22:25:03 UTC (rev 135461)
+++ trunk/dports/devel/libtool/Portfile	2015-04-23 22:25:08 UTC (rev 135462)
@@ -19,10 +19,17 @@
                     libraries behind a consistent, portable interface.
 homepage            http://www.gnu.org/software/libtool/
 
-# libtoolize requires GNU M4 at runtime as of 2.4.3 and at configure
-# time as of 2.4.5.
-# (http://lists.gnu.org/archive/html/libtool/2014-12/msg00000.html).
-depends_lib         bin:gm4:m4
+# As of 2.4.5, libtoolize requires a compatible GNU M4 at configure
+# time. Leopard and later provide M4 1.4.6, which works fine. Tiger's M4
+# 1.4.2 does not.
+#   - http://lists.gnu.org/archive/html/libtool/2014-12/msg00000.html
+#   - http://lists.gnu.org/archive/html/libtool/2015-01/msg00004.html
+#   - https://trac.macports.org/ticket/47545
+if {${os.platform} eq "darwin" && ${os.major} >= 9} {
+    depends_lib     bin:gm4:m4
+} else {
+    depends_lib     port:m4
+}
 
 # https://trac.macports.org/ticket/19237
 if {${os.platform} ne "darwin"} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150423/a5971cf8/attachment.html>


More information about the macports-changes mailing list