diff --git a/configure.in b/configure.in index 286e3202df..32041f951c 100644 --- a/configure.in +++ b/configure.in @@ -64,6 +64,16 @@ AC_INIT(configure.in) AC_PROG_LN_S AC_PROG_MAKE_SET + AC_PATH_PROG(HAVE_PKG_CONFIG, pkg-config, "no") + if test "$HAVE_PKG_CONFIG" = "no"; then + echo + echo " ERROR! pkg-config not found, go get it " + echo " http://pkg-config.freedesktop.org/wiki/ " + echo " or install from your distribution " + echo + exit 1 + fi + # Checks for libraries. # Checks for header files. diff --git a/doc/INSTALL b/doc/INSTALL index 8c6fca63b0..010e165e05 100644 --- a/doc/INSTALL +++ b/doc/INSTALL @@ -19,7 +19,7 @@ If building from the git repository you will also need: automake autoconf libtool - +pkg-config Library Requirements ==================== @@ -41,7 +41,7 @@ For Debian/Ubuntu Users sudo apt-get -y install libpcre3 libpcre3-dbg libpcre3-dev \ build-essential autoconf automake libtool libpcap-dev libnet1-dev \ - libyaml-0-1 libyaml-dev zlib1g zlib1g-dev + libyaml-0-1 libyaml-dev zlib1g zlib1g-dev pkg-config #if using ubuntu-8.04 to use prebuilt yaml packages you need to uncomment the following two lines in your /etc/apt/sources.list to @@ -82,7 +82,7 @@ For Fedora Core Users sudo yum -y install libpcap libpcap-devel libnet libnet-devel pcre \ pcre-devel gcc gcc-c++ automake autoconf libtool make libyaml \ - libyaml-devel zlib zlib-devel + libyaml-devel zlib zlib-devel pkgconfig #if building with IPS capabilities via ./configure --enable-nfq sudo yum -y install libnfnetlink libnfnetlink-devel \ @@ -120,7 +120,7 @@ For CentOS5 Users sudo yum -y install libpcap libpcap-devel libnet libnet-devel pcre \ pcre-devel gcc automake autoconf libtool make gcc-c++ libyaml \ - libyaml-devel zlib zlib-devel + libyaml-devel zlib zlib-devel pkgconfig #if building with IPS capabilities via ./configure --enable-nfq there are no pre-built packages in CentOS base or EPEL for libnfnetlink and @@ -206,7 +206,7 @@ For FreeBSD 8 Users =================== pkg_add -r autoconf262 automake19 gcc45 libyaml pcre libtool \ - libnet11 libpcap gmake + libnet11 libpcap gmake pkg-config ### Suricata: #Retrieve and install Suricata