tinc_TUNTAP now substitutes the values outside the AC_CACHE_CHECK

block.  configure should now correctly set HAVE_TUNTAP.
This commit is contained in:
Ivo Timmermans 2001-02-18 02:13:26 +00:00
parent bb08704980
commit 11f8465dd9

View file

@ -10,11 +10,14 @@ AC_CACHE_CHECK([for linux/if_tun.h], tinc_cv_linux_if_tun_h,
if test $if_tun_h = no; then
tinc_cv_linux_if_tun_h=none
else
AC_DEFINE(HAVE_TUNTAP)
AC_DEFINE_UNQUOTED(LINUX_IF_TUN_H, "$if_tun_h")
AC_SUBST(LINUX_IF_TUN_H)
tinc_cv_linux_if_tun_h=$if_tun_h
fi
AC_SUBST(HAVE_TUNTAP)
])
if test $tinc_cv_linux_if_tun_h != none; then
AC_DEFINE(HAVE_TUNTAP)
AC_DEFINE_UNQUOTED(LINUX_IF_TUN_H, "$tinc_cv_linux_if_tun_h")
AC_SUBST(LINUX_IF_TUN_H)
fi
AC_SUBST(HAVE_TUNTAP)
])