Debian Codegraph @

m4/dts.m4

raw
1
2 dnl AM_PATH_DTS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3 dnl test for libdts
4 dnl defines DTS_CFLAGS and DTS_LIBS
5
6 AC_DEFUN([AM_PATH_DTS],
7 [
8 dnl dts.h needs stdint.h/inttypes.h for plain compile!
9 AC_AVM_CHECK_LIB(dts, [for dts_init in -ldts], [where DTS is installed],
10 [-ldts -lm], [
11 #if HAVE_INTTYPES_H
12 # include <inttypes.h>
13 #endif
14 #if HAVE_STDINT_H
15 # include <stdint.h>
16 #endif
17 #include <dts.h>], [dts_state_t* d = dts_init(0)], [$1], [$2])
18 ])
19