autotools: adopt to new location for kernel headers
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Tested-by: Jan-Niklas Meier <dschanoeh@googlemail.com>pull/7/head
parent
1f41714125
commit
01fe103cf7
|
|
@ -9,7 +9,24 @@ LDADD = \
|
||||||
|
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
lib.h \
|
lib.h \
|
||||||
terminal.h
|
terminal.h \
|
||||||
|
include/linux/can/bcm.h \
|
||||||
|
include/linux/can/core.h \
|
||||||
|
include/linux/can/dev.h \
|
||||||
|
include/linux/can/error.h \
|
||||||
|
include/linux/can/gw.h \
|
||||||
|
include/linux/can.h \
|
||||||
|
include/linux/can/isotp.h \
|
||||||
|
include/linux/can/netlink.h \
|
||||||
|
include/linux/can/raw.h \
|
||||||
|
include/socketcan/can/bcm.h \
|
||||||
|
include/socketcan/can/error.h \
|
||||||
|
include/socketcan/can/gw.h \
|
||||||
|
include/socketcan/can.h \
|
||||||
|
include/socketcan/can/ioctl.h \
|
||||||
|
include/socketcan/can/isotp.h \
|
||||||
|
include/socketcan/can/netlink.h \
|
||||||
|
include/socketcan/can/raw.h
|
||||||
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = \
|
noinst_LTLIBRARIES = \
|
||||||
|
|
@ -27,30 +44,22 @@ bin_PROGRAMS = \
|
||||||
candump \
|
candump \
|
||||||
canfdtest \
|
canfdtest \
|
||||||
cangen \
|
cangen \
|
||||||
|
cangw \
|
||||||
canlogserver \
|
canlogserver \
|
||||||
canplayer \
|
canplayer \
|
||||||
cansend \
|
cansend \
|
||||||
cansniffer \
|
cansniffer \
|
||||||
log2asc \
|
|
||||||
log2long \
|
|
||||||
slcan_attach \
|
|
||||||
slcand \
|
|
||||||
slcanpty
|
|
||||||
|
|
||||||
if CONFIG_GW
|
|
||||||
bin_PROGRAMS += \
|
|
||||||
cangw
|
|
||||||
endif
|
|
||||||
|
|
||||||
if CONFIG_ISOTP
|
|
||||||
bin_PROGRAMS += \
|
|
||||||
isotpdump \
|
isotpdump \
|
||||||
isotprecv \
|
isotprecv \
|
||||||
isotpsend \
|
isotpsend \
|
||||||
isotpserver \
|
isotpserver \
|
||||||
isotpsniffer \
|
isotpsniffer \
|
||||||
isotptun
|
isotptun \
|
||||||
endif
|
log2asc \
|
||||||
|
log2long \
|
||||||
|
slcan_attach \
|
||||||
|
slcand \
|
||||||
|
slcanpty
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
autogen.sh
|
autogen.sh
|
||||||
|
|
|
||||||
41
configure.ac
41
configure.ac
|
|
@ -78,47 +78,6 @@ AC_CHECK_FUNCS([ \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# check for SOCKETCAN specific defines and headers
|
|
||||||
#
|
|
||||||
AC_ARG_WITH(linux-headers,
|
|
||||||
AS_HELP_STRING([--with-linux-headers=/path/to/kernel/include], [path to linux kernel headers]),
|
|
||||||
[case "${withval}" in
|
|
||||||
(""|y|ye|yes|n|no)
|
|
||||||
AC_MSG_ERROR([You must supply a PATH as argument to --with-linux-headers]) ;;
|
|
||||||
(*)
|
|
||||||
LINUX_HEADERS_DIR="$(cd "${withval}" && pwd)"
|
|
||||||
if test $? -ne 0; then
|
|
||||||
AC_MSG_ERROR(["${withval}" seems to be an invalid path!])
|
|
||||||
fi ;;
|
|
||||||
esac]
|
|
||||||
)
|
|
||||||
|
|
||||||
maybe_linux_headers_dir="../kernel/2.6/include"
|
|
||||||
if test -z "${LINUX_HEADERS_DIR}" -a -e "${maybe_linux_headers_dir}"; then
|
|
||||||
LINUX_HEADERS_DIR="$(cd "${maybe_linux_headers_dir}" && pwd)"
|
|
||||||
fi
|
|
||||||
if test -n "${LINUX_HEADERS_DIR}"; then
|
|
||||||
linux_CFLAGS="-I${LINUX_HEADERS_DIR}"
|
|
||||||
fi
|
|
||||||
CPPFLAGS="${CPPFLAGS} ${linux_CFLAGS}"
|
|
||||||
AC_SUBST(linux_CFLAGS)
|
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS([ \
|
|
||||||
linux/can/gw.h \
|
|
||||||
linux/can/isotp.h \
|
|
||||||
],[],[],
|
|
||||||
[
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
])
|
|
||||||
|
|
||||||
AM_CONDITIONAL(CONFIG_GW, [test "${ac_cv_header_linux_can_gw_h}" = "yes"])
|
|
||||||
AM_CONDITIONAL(CONFIG_ISOTP, [test "${ac_cv_header_linux_can_isotp_h}" = "yes"])
|
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_DECL(SO_RXQ_OVFL,,
|
AC_CHECK_DECL(SO_RXQ_OVFL,,
|
||||||
[AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])]
|
[AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue