You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
926 B

AC_INIT([dml-dmr], [0.0], [jeroen@vreeken.net], [https://dmlinking.net/])
AM_INIT_AUTOMAKE([foreign dist-xz])
AM_SILENT_RULES([yes])
LT_INIT
AC_PROG_CC
AC_CONFIG_MACRO_DIR([m4])
# Check for DML library
dnl Search for libdml
AC_SEARCH_LIBS([dml_host_create], [dml], [], [
AC_MSG_ERROR([unable to find the dml_host functions in libdml])
])
AC_CHECK_HEADERS([dml/dml_host.h],
[dml_found_headers=yes; break;])
AS_IF([test "x$dml_found_headers" != "xyes"],
[AC_MSG_ERROR([Unable to find the dml headers])])
# Check for eth_ar library
dnl Search for libeth_ar
AC_SEARCH_LIBS([eth_ar_call2mac], [eth_ar], [], [
AC_MSG_ERROR([unable to find the eth_ar_call2mac function in libeth_ar])
])
AC_CHECK_HEADERS([eth_ar/eth_ar.h],
[eth_ar_found_headers=yes; break;])
AS_IF([test "x$eth_ar_found_headers" != "xyes"],
[AC_MSG_ERROR([Unable to find the eth_ar headers])])
AC_OUTPUT([Makefile])