ShabbyX / RTAI

(NO LONGER MAINTAINED) Clone of RTAI from https://www.rtai.org
28 stars 17 forks source link

Fix comedilib headers #21

Closed zultron closed 9 years ago

zultron commented 9 years ago

This is a patch from the upstream Debian RTAI packaging, maintained by Roland Stigge.

It fixes the autoconf m4 macros to look for comedilib.h in /usr/include rather than /usr/include/linux:

$ find /usr/include -name comedilib.h
/usr/include/comedilib.h
$ dpkg-query -S /usr/include/comedilib.h
libcomedi-dev: /usr/include/comedilib.h
$ dpkg-query -L libcomedi-dev | grep linux/
$

After investigation, I found no case where the header's location might be in /usr/include/linux/comedilib.h. Debian, Ubuntu and Fedora all install into /usr/include/comedilib.h, and building comedilib from source apparently does, too. It's starting to look like /usr/include/linux/comedilib.h is an outdated location, or maybe completely bogus: this problem has been reported since at least 2004, and hacking around the problem with a symlink is part of at least one RTAI tutorial!

This is related to discussion in my GitHub RTAI package repo.