[oe-commits] pieterg : fixed crosscompile badness; when --with-driver is not used, we should NOT use -I/include
git version control
git at git.openembedded.org
Sun Oct 4 19:27:20 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: d26616e57926542f48d3c151ced0deb0362bf015
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d26616e57926542f48d3c151ced0deb0362bf015
Author: pieterg <pieterg at users.sourceforge.net>
Date: Sat Oct 3 20:50:47 2009 +0200
fixed crosscompile badness; when --with-driver is not used, we should NOT use -I/include
---
packages/tuxbox/files/acinclude.m4 | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/packages/tuxbox/files/acinclude.m4 b/packages/tuxbox/files/acinclude.m4
index ecb6a64..3c26669 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],[
More information about the Openembedded-commits
mailing list