Ignore:
Timestamp:
Jun 8, 2015, 6:06:10 PM (4 years ago)
Author:
larryv@…
Message:

autoconf, libtool: Use system M4 on Leopard and later

Still trying to minimize dependencies of Autotools and Libtool.

Specific to libtool:

  • Avoid a weird, inadvertent dependency on the m4 port if it's present at compile time.
  • Bake the path to the system M4 into libtoolize to prevent it from picking up different executables depending on whether said m4 port is installed or not. (Setting "M4" in the calling environment will still override libtoolize's default.)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/autoconf/Portfile

    r137298 r137299  
    77epoch               1
    88version             2.69
    9 revision            4
     9revision            5
    1010categories          devel
    1111# the license is GPL-3+ with an exception:
     
    2828homepage            http://www.gnu.org/software/autoconf/
    2929
     30depends_lib         port:gettext
    3031installs_libs       no
    31 depends_lib         port:gettext port:m4
    3232
    3333master_sites        gnu
     
    4646        0001-tests-avoid-spurious-test-failure-with-libtool-2.4.3.patch
    4747
     48# The README prescribes GNU M4 1.4.6 or later, which Leopard and later
     49# have. Tiger only provides 1.4.2.
     50if {${os.platform} eq "darwin" && ${os.major} >= 9} {
     51    configure.env       M4=/usr/bin/m4
     52} else {
     53    depends_lib-append  port:m4
     54}
     55
    4856# It should be safe to use the system Perl, since the scripts only use
    4957# core modules. The README prescribes 5.6 or later, and Tiger has 5.8.6.
Note: See TracChangeset for help on using the changeset viewer.