#!/bin/sh

autoreconf -fiv

#!/bin/sh

# check if pkg-config is installed, otherwise ./configure will fail.
pkg-config --version > /dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "Required package "pkg-config" not found."
	exit 1
fi

autoreconf -fiv

Verify that pkg-config exists on system.
Verify that pkg-config exists on system.

If pkg-config does not exist on system while running autogen.sh, the
resulting configure script will most likely not work.

The reason is that a used pkg-config macro will not expand if
pkg.m4 is not found.

Spotted and reported by Ted Moseley.

Signed-off-by: Tobias Stoeckmann <059b8b880f8441509ec8a65b50b4c6ae74ebea76@stoeckmann.org>
