configure.in: fix linuxhooking compilation

The commit "autotools: don't compile linuxhooking on non-linux"
broke the linuxhooking compilation on Linux. We use
AC_CANONICAL_SYSTEM instead of AC_CANONICAL_HOST now and check
$target_os for "linux-gnu". That seems to finally work.