oap and gtphub tests must only be compiled of LIBGTP is present!
diff --git a/openbsc/tests/Makefile.am b/openbsc/tests/Makefile.am
index aacfe0b..995660a 100644
--- a/openbsc/tests/Makefile.am
+++ b/openbsc/tests/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = gsm0408 db channel mgcp gprs abis gbproxy trau subscr oap gtphub
+SUBDIRS = gsm0408 db channel mgcp gprs abis gbproxy trau subscr
 
 if BUILD_NAT
 SUBDIRS += bsc-nat bsc-nat-trie
@@ -13,7 +13,7 @@
 endif
 
 if HAVE_LIBGTP
-SUBDIRS += sgsn
+SUBDIRS += sgsn oap gtphub
 endif