rendered paste bodydiff --git a/src/configure.in b/src/configure.in
index 824bea6..f0a4fbb 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -132,6 +132,15 @@ AC_SUBST([EMC2VERSION])
AC_PATH_PROG(GREP, grep)
AC_PATH_PROG(EGREP, egrep)
+#
+# check for pkg-config
+#
+
+AC_PATH_PROG([PKG_CONFIG], [pkg-config])
+if test -z "$PKG_CONFIG"; then
+ AC_MSG_ERROR([pkg-config is required to build LinuxCNC])
+fi
+
##############################################################################
# Section 2 #
# RealTime checking (either RTAI, or RT-Linux) #