It have to add some detection logic for libcam into cmake.
In autoconf based build system, the test would be
  AC_CHECK_HEADERS([camlib.h])

But scsi-bsd.c includes <cam/cam.h> and not camlib.h, maybe I should
check for that?


It includes both, but "HAVE_CAMLIB_H" is used to select support via -lcam.
Also <camlib.h> comes from libcam-dev, which contains /usr/lib/libcam.so

Regards

                Petr


libscg/scsi-bsd.c:

#ifndef HAVE_CAMLIB_H
...
#else
...
#include <cam/cam.h>
#include <cam/cam_ccb.h>
#include <cam/scsi/scsi_message.h>
#include <cam/scsi/scsi_pass.h>
#include <camlib.h>
...
#endif


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to