#! /bin/sh

if [ "$help" != "1" ]
then

	echo "#include <frei0r.h> int main(){ f0r_plugin_info_t test; test.name;return 0;}"| $CC $(pkg-config --cflags frei0r) $CFLAGS -c -x c -  >/dev/null 2>&1

	if [ "$?" = "1" ]
	then
		touch ../disable-frei0r
		echo "- frei0r plugin disabled. Install frei0r-plugins and make sure frei0r.h is available." 
	fi

fi
