From c2df1cf497add618c56f9ff12097efa00e5e8a0e Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Thu, 10 May 2012 00:34:31 -0700 Subject: libdnet: fix for autoreconf error on Lion Libdnet is used by snort, but the manual autoreconf statements cause a build error on Lion. This is likely due to some subtle changes in autoconf-2.69. * Remove manual autotools statements. * Set `ACLOCAL` to include the `config` directory. * Use `autoreconf -ivf` the way the `autoconf` docs recommend. * Remove the unrecognized `--disable-debug` flag. This compiles with or without the `--with-python` flag, and it functions well in `snort` using all five compilers from XCode 4.3.2 and 4.0.2 on Lion and Snow Leopard. It's interesting to see software from 2007 build the python bindings and install them into the HB site-packages correctly. Fixes #12174 Signed-off-by: Adam Vandenberg --- Library/Formula/libdnet.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'Library') diff --git a/Library/Formula/libdnet.rb b/Library/Formula/libdnet.rb index 17d9fcf4b..11e5684bc 100644 --- a/Library/Formula/libdnet.rb +++ b/Library/Formula/libdnet.rb @@ -15,16 +15,15 @@ class Libdnet < Formula end def install - # "manual" autoreconf to get '.dylib' extension on shared lib - system "aclocal --force -I config" - system "glibtoolize --copy --force" - system "autoconf --force" - system "autoheader --force" - system "automake --add-missing --copy --force-missing" + # autoreconf to get '.dylib' extension on shared lib + ENV['ACLOCAL'] = 'aclocal -I config' + system 'autoreconf', '-ivf' - args = ["--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--mandir=#{man}"] + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + --mandir=#{man} + ] args << "--with-python" if ARGV.include? "--with-python" system "./configure", *args system "make install" -- cgit v1.2.3