path: root/
diff options
authorDan Nicholson <>2008-04-30 13:53:37 -0700
committerDan Nicholson <>2008-04-30 14:05:57 -0700
commit7154d661a667681828efb75b3547c97484455d9e (patch)
tree64559f83870830f028edd3a5e8da03ffd254fec1 /
parent9a43570f8c8ba5b9803740a47227c296d547631e (diff)
autoconf: Fail from autoconf if the pkg-config macros aren't defined
Instead of postponing the error from missing pkg-config macros to when configure is run, make autoconf exit by using m4 macros.
Diffstat (limited to '')
1 files changed, 8 insertions, 3 deletions
diff --git a/ b/
index 43111b30626..672bab85c18 100644
--- a/
+++ b/
@@ -36,9 +36,14 @@ AC_CHECK_FUNC([dlopen], [],
dnl Make sure the pkg-config macros are defined
- AC_MSG_ERROR([The pkg-config autoconf macros are not defined.
- Did you run 'make configure'?])]
+ m4_errprint([Error: Could not locate the pkg-config autoconf macros.
+ These are usually located in /usr/share/aclocal/pkg.m4. If your
+ macros are in a different location, try setting the environment
+ variable ACLOCAL="aclocal -I/other/macro/dir" before running
+ autoreconf.
+ m4_exit([1])
dnl LIB_DIR - library basename