aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tuxbox/files/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tuxbox/files/acinclude.m4')
-rw-r--r--packages/tuxbox/files/acinclude.m416
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/tuxbox/files/acinclude.m4 b/packages/tuxbox/files/acinclude.m4
index ecb6a64123..3c26669091 100644
--- a/packages/tuxbox/files/acinclude.m4
+++ b/packages/tuxbox/files/acinclude.m4
@@ -149,15 +149,17 @@ AC_ARG_WITH(driver,
[ --with-driver=PATH path for driver sources [[NONE]]],
[DRIVER="$withval"],[DRIVER=""])
-if test -d "$DRIVER/include"; then
- AC_DEFINE(HAVE_DBOX2_DRIVER,1,[Define to 1 if you have the dbox2 driver sources])
-#else
-# AC_MSG_ERROR([can't find driver sources])
-fi
+if test "$DRIVER"; then
+ if test -d "$DRIVER/include"; then
+ AC_DEFINE(HAVE_DBOX2_DRIVER,1,[Define to 1 if you have the dbox2 driver sources])
+ #else
+ # AC_MSG_ERROR([can't find driver sources])
+ fi
-AC_SUBST(DRIVER)
+ AC_SUBST(DRIVER)
-CPPFLAGS="$CPPFLAGS -I$DRIVER/include"
+ CPPFLAGS="$CPPFLAGS -I$DRIVER/include"
+fi
])
AC_DEFUN([TUXBOX_APPS_DVB],[