From 95588f61c79116127637a2522b9d2b44c74f158e Mon Sep 17 00:00:00 2001 From: oncemoreification Date: Sat, 16 Feb 2013 21:02:32 -0800 Subject: [PATCH] Branch for different aclocal dirs --- configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index ae953e0fe0d..c325bf5e731 100755 --- a/configure +++ b/configure @@ -391,7 +391,14 @@ if [ $CFG_OSTYPE = "apple-darwin" ] then # pkg-config is installed in a different place on mac (via homebrew? not sure) # and the way to set this seems to be calling aclocal by hand (instead of via autoreconf) - OSX_PKG_CONFIG_M4_MACROS="-I/usr/share/aclocal -I/usr/local/share/aclocal" + if [ -d "/usr/local/share/aclocal" ] + then + OSX_PKG_CONFIG_M4_MACROS="-I/usr/local/share/aclocal" + fi + if [ -d "/usr/share/aclocal" ] + then + OSX_PKG_CONFIG_M4_MACROS="-I/usr/share/aclocal" + fi LIBTOOLIZE=glibtoolize else OSX_PKG_CONFIG_M4_MACROS=""