m4/dc1394.m4
raw| 1 | |
| 2 | dnl AM_PATH_DC1394([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
| 3 | dnl test for libdc1394_control |
| 4 | dnl defines DC1394_CFLAGS and DC1394_LIBS |
| 5 | |
| 6 | AC_DEFUN([AM_PATH_DC1394], |
| 7 | [ |
| 8 | AC_AVM_CHECK_LIB(dc1394, [for dc1394_create_handle in -ldc1394_control], |
| 9 | [where DC1394 is installed], [-ldc1394_control -lraw1394], |
| 10 | [#include <libdc1394/dc1394_control.h>], |
| 11 | [dc1394_create_handle(0)], [$1], [$2]) |
| 12 | ]) |
| 13 |