There is no generic way to check apart presence of kernel headers and kernel devel packages.
If we know system, we could use package manager, but without this knowledge,
we can't distinguish which headers in kernel headers directory belongs to which package.
Resolves#280 issue
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Configure is not only supposed to check for tools required by itself but also
for those ones needed by OCL.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
Allows for faster configuration in known environments
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
To prevent using macros before they are defined, enfoce calling them in an
appropriate order.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
Functions and macros dependent on different kernel versions are now generated
before compilation basing on current kernel capabilities instead of hardcoding
them for specific kernels.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>