| 1 |
# Configure paths for VIDIX |
| 2 |
|
| 3 |
dnl Check if vidix support should be build |
| 4 |
|
| 5 |
AC_DEFUN([AM_PATH_VIDIX], |
| 6 |
[ |
| 7 |
AC_ARG_ENABLE(vidix, [ --enable-vidix build vidix drivers. [[disabled]]], |
| 8 |
[], enable_vidix=no) |
| 9 |
AC_MSG_CHECKING([for vidix]) |
| 10 |
if test "$enable_vidix" = yes -a "$ac_cv_prog_AWK" != no; then |
| 11 |
case "$target" in |
| 12 |
i?86-*-linux* | k?-*-linux* | athlon-*-linux*) |
| 13 |
enable_vidix=yes |
| 14 |
enable_linux=yes |
| 15 |
;; |
| 16 |
i386-*-freebsd*) |
| 17 |
enable_vidix=yes |
| 18 |
enable_dha_kmod=no |
| 19 |
;; |
| 20 |
*) |
| 21 |
enable_dha_kmod=no |
| 22 |
enable_vidix=no |
| 23 |
;; |
| 24 |
esac |
| 25 |
fi |
| 26 |
dnl for now without linux kernel support |
| 27 |
enable_linux=no |
| 28 |
test "$have_x" = no && enable_vidix=no |
| 29 |
|
| 30 |
AC_MSG_RESULT([$enable_vidix]) |
| 31 |
|
| 32 |
if test "$enable_vidix" = yes ; then |
| 33 |
AC_DEFINE(HAVE_VIDIX, 1, [Define if you want to have vidix support.]) |
| 34 |
fi |
| 35 |
]) |
| 36 |
|