From 38f0428c42094507427668d70095f61988f86b31 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Wed, 21 Oct 2015 07:25:26 +0200 Subject: [PATCH] Check existence of required tr headers --- .gitignore | 2 -- configure.ac | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ba44cd4..0f3bd91 100644 --- a/.gitignore +++ b/.gitignore @@ -39,5 +39,3 @@ gmon.out test-driver /assets/html/_documentation.html tags -trdata.h -trdata.h.in diff --git a/configure.ac b/configure.ac index 9c0c695..2384ab8 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,7 @@ AM_SILENT_RULES([yes]) AC_COPYRIGHT([Copyright © 2013 Georg Hopp]) AC_REVISION([0.0.0]) AC_CONFIG_SRCDIR([src/tree/tree.c]) -AC_CONFIG_HEADERS([trdata.h]) +AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) m4_include([m4/gcov.m4]) @@ -37,7 +37,17 @@ AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile])]) # Checks for header files. -AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h sys/types.h]) +AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h \ + sys/types.h]) +AC_CHECK_HEADER(trbase.h, [], [ + AC_MSG_ERROR([unable to find the trbase header]) +]) +AC_CHECK_HEADER(trio.h, [], [ + AC_MSG_ERROR([unable to find the trio header]) +]) +AC_CHECK_HEADER(trhash.h, [], [ + AC_MSG_ERROR([unable to find the trhash header]) +]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL