#!/bin/sh

if [ "$help" != "1" ]
then
	pkg-config swfdec-0.8 2> /dev/null
	disable_swfdec=$?
	if [ "$disable_swfdec" != "0" ]
	then
		pkg-config swfdec-0.9 2> /dev/null
		disable_swfdec=$?
		if [ "$disable_swfdec" != "0" ]
		then
			echo "- swfdec not found: disabling"
			touch ../disable-swfdec
			exit 0
		fi
	fi
fi
