+# We check for this here, because if pkg-config is not found in the
+# system, it's likely that the pkg.m4 macro file is also not present,
+# which will make PKG_PROG_PKG_CONFIG be undefined and the generated
+# configure file faulty.
+if ! pkg-config --version &>/dev/null; then
+ echo "pkg-config is required to bootstrap this program" &>/dev/null
+ DIE=1
+fi
+
+# Other necessary programs
+intltoolize --version >/dev/null || DIE=1
+test "$DIE" = 1 && exit 1
+
+if type -p colorgcc > /dev/null ; then
+ export CC=colorgcc
+fi