AM_CPPFLAGS += -DWITHOUT_LZO
endif
-if HAVE_EXECINFO
-AM_CPPFLAGS += -DHAVE_EXECINFO
-endif
-
sbin_PROGRAMS =
sbin_SCRIPTS =
noinst_LIBRARIES =
PKG_CHECK_MODULES(CMOCKA, [cmocka], [], [cmocka_missing="yes"])
fi
-AC_CHECK_HEADERS([execinfo.h], [execinfo_found=yes])
+AC_CHECK_HEADERS([execinfo.h])
##### produce summary on dependencies #####
AM_CONDITIONAL([WITHOUT_LZO], [test "x$need_lzo" != "xyes"])
AM_CONDITIONAL([WITHOUT_XATTR], [test "x$need_xattr" != "xyes"])
-AM_CONDITIONAL([HAVE_EXECINFO], [test "x$execinfo_found" == "xyes"])
AC_CHECK_SIZEOF([off_t])
AC_CHECK_SIZEOF([loff_t])
#ifndef LIBMISSING_H
#define LIBMISSING_H
-#ifdef HAVE_EXECINFO
+#include "config.h"
+
+#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
-#ifndef HAVE_EXECINFO
+#ifndef HAVE_EXECINFO_H
int backtrace(void **buffer, int size);
char **backtrace_symbols(void *const *buffer, int size);
void backtrace_symbols_fd(void *const *buffer, int size, int fd);
#include "libmissing.h"
-#ifndef HAVE_EXECINFO
+#ifndef HAVE_EXECINFO_H
#define PROGRAM_NAME "libmissing"
#include "common.h"
{
errmsg("backtrace_symbols_fd() is not implemented");
}
-#endif /* !HAVE_EXECINFO */
+#endif /* !HAVE_EXECINFO_H */
integck_SOURCES = tests/fs-tests/integrity/integck.c
-integck_LDADD = libubi.a
+integck_LDADD = libubi.a libmissing.a
integck_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include
-if HAVE_EXECINFO
-else
-integck_LDADD += libmissing.a
-endif
-
test_1_SOURCES = tests/fs-tests/simple/test_1.c tests/fs-tests/lib/tests.c
test_1_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib