On Thu, Aug 06, 2015 at 05:34:56PM +0300, Maxim Blumental wrote:
>  Applied the idea with python script alternative. Review, please.

> 2015-07-28  Maxim Blumenthal  <maxim.blument...@intel.com>
> 
>       * configure.ac: Add a check for xxd or python presence when the target
>       is intelmic or intelmicemul.
>       * configure: Regenerate.
>       * liboffloadmic/plugin/Makefile.am: Add a condition into
>       make_target_image.h generating code.  This condition performs an
>       action with either xxd or a special python script during the
>       generating.
>       * liboffloadmic/plugin/xxd.py: New file.
>       * liboffloadmic/plugin/Makefile.in: Regenerate.

I still don't like this, there should be no `which ...` uses in the
Makefile.
Instead, use AC_CHECK_PROG/AC_CHECK_PROGS in configure.ac, for python
perhaps search for python python2 python3 or what is common in the python
land.  And prepare the command line to use in the Makefile.am in configure
too, then AC_SUBST it and use the variable in there (and the variable will
use $@ etc.).

        Jakub

Reply via email to