Reject really old Zaptel that does not support ZT_GETVERSION.

git-svn-id: http://voip.null.ro/svn/yate@4579 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-08-30 10:12:09 +00:00
parent 4557d1d974
commit e8da4872cd
1 changed files with 4 additions and 2 deletions

View File

@ -550,7 +550,8 @@ if [[ "x$want_zaptel" = "xyes" ]]; then
AC_MSG_CHECKING([for Zaptel generic headers])
AC_TRY_COMPILE([
#include <zaptel/zaptel.h>
],[],
#include <sys/ioctl.h>
],[ioctl(0,ZT_GETVERSION,(void*)0)],
HAVE_ZAP="yes"
ZAP_FLAGS="-DNEW_ZAPTEL_LOCATION -DHAVE_ZAP"
)
@ -559,7 +560,8 @@ if [[ "x$HAVE_ZAP" = "xno" ]]; then
AC_MSG_CHECKING([for Zaptel linux headers])
AC_TRY_COMPILE([
#include <linux/zaptel.h>
],[],
#include <sys/ioctl.h>
],[ioctl(0,ZT_GETVERSION,(void*)0)],
HAVE_ZAP="yes"
ZAP_FLAGS="-DHAVE_ZAP"
)