1 dnl Check to find out whether the running kernel has support for TUN/TAP
5 AC_CACHE_CHECK([for linux/if_tun.h], tinc_cv_linux_if_tun_h,
6 [ AC_TRY_COMPILE([#include <linux/if_tun.h>],
8 if_tun_h="linux/if_tun.h",
10 if test $if_tun_h = no; then
11 tinc_cv_linux_if_tun_h=none
13 tinc_cv_linux_if_tun_h=$if_tun_h
17 if test $tinc_cv_linux_if_tun_h != none; then
18 AC_DEFINE(HAVE_TUNTAP)
19 AC_DEFINE_UNQUOTED(LINUX_IF_TUN_H, "$tinc_cv_linux_if_tun_h")
20 AC_SUBST(LINUX_IF_TUN_H)