[Lcdproc] [patch] hd44780 FTDI USB support

Markus Dolze bsdfan@nurfuerspam.de
Mon Nov 5 22:07:02 2007


Thomas Jarosch wrote:
> On Sunday, 4. November 2007, Markus Dolze wrote:
>> The hd44780-ftdi driver fails to compile. I think it is because it is
>> missing the local includes. However, the config.log shows that
>> LIBFTDI_CFLAGS and _LIBS are set correctly.
>>
>> I really don't understand what autotools are doing here, because e.g.
>> for hd44780-lcd2usb (just one line above) the LIBUSB_CFLAGS are set
>> correctly. Shouln't the _CFLAGS be the same for all hd44780 drivers?
> 
> I'm able to reproduce this if I move ftdi.h somewhere else
> and adjust the /usr/lib/pkgconfig/libftdi.pc file accordingly.
> 
> For some unknown reason hd44780_CFLAGS is ignored for hd44780-ftdi.c,
> only AM_CFLAGS is used. I tried to debug it for a while now and found
> the cause of this. The same "problem" is also true for the i2c driver.
> 
> Please have a look at the attached patch.
> 

The patch fixes compilation now. Thank you!

Regards
Markus