forked from enlightenment/efl
+ Add a check for linux/input.h, this isnt acutally the best way,
because we have to check the code inside, not only the file, maybe a test app will be usefull but i dont know much of autotools. + make ecore_evas_fb dependant to ecore_fb + on ecore_fb_private.h add a hack in case the linux headers are broken (2.6.15 - 2.6.17), thanks blak. for other kernels i still need more info to acutally fix the issues. SVN revision: 24845
This commit is contained in:
parent
f4d36eeddd
commit
ed7d138bbc
|
@ -589,10 +589,16 @@ AC_ARG_ENABLE(ecore-fb,
|
|||
if test "x$want_ecore_fb" = "xyes"; then
|
||||
AC_CHECK_HEADER(linux/fb.h,
|
||||
[
|
||||
AM_CONDITIONAL(BUILD_ECORE_FB, true)
|
||||
AC_DEFINE(BUILD_ECORE_FB, 1, [Build Ecore_FB Module])
|
||||
have_ecore_fb="yes"
|
||||
ecore_fb_libs="-lecore_fb";
|
||||
AC_CHECK_HEADER(linux/input.h,
|
||||
[
|
||||
AM_CONDITIONAL(BUILD_ECORE_FB, true)
|
||||
AC_DEFINE(BUILD_ECORE_FB, 1, [Build Ecore_FB Module])
|
||||
have_ecore_fb="yes"
|
||||
ecore_fb_libs="-lecore_fb";
|
||||
], [
|
||||
AM_CONDITIONAL(BUILD_ECORE_FB, false)
|
||||
]
|
||||
)
|
||||
], [
|
||||
AM_CONDITIONAL(BUILD_ECORE_FB, false)
|
||||
]
|
||||
|
@ -783,8 +789,7 @@ AC_ARG_ENABLE(ecore-evas-fb,
|
|||
AC_MSG_RESULT(yes)
|
||||
]
|
||||
)
|
||||
|
||||
if test "x$want_ecore_evas_fb" = "xyes"; then
|
||||
if test "x$want_ecore_evas_fb" = "xyes" -a "x$have_ecore_fb" = "xyes"; then
|
||||
AC_CHECK_HEADER(Evas_Engine_FB.h,
|
||||
[
|
||||
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, true)
|
||||
|
|
|
@ -11,10 +11,20 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/version.h>
|
||||
#include <linux/kd.h>
|
||||
#include <linux/vt.h>
|
||||
#include <linux/fb.h>
|
||||
#include <linux/input.h>
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
|
||||
#define kernel_ulong_t unsigned long
|
||||
#define BITS_PER_LONG 32
|
||||
#include <linux/input.h>
|
||||
#undef kernel_ulong_t <-added
|
||||
#undef BITS_PER_LONG <-added
|
||||
#else
|
||||
#include <linux/input.h>
|
||||
#endif
|
||||
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
|
Loading…
Reference in New Issue