Commit 38f0428c42094507427668d70095f61988f86b31

Authored by Georg Hopp
1 parent e2e67fcd

Check existence of required tr headers

Showing 2 changed files with 12 additions and 4 deletions
@@ -39,5 +39,3 @@ gmon.out @@ -39,5 +39,3 @@ gmon.out
39 test-driver 39 test-driver
40 /assets/html/_documentation.html 40 /assets/html/_documentation.html
41 tags 41 tags
42 -trdata.h  
43 -trdata.h.in  
@@ -12,7 +12,7 @@ AM_SILENT_RULES([yes]) @@ -12,7 +12,7 @@ AM_SILENT_RULES([yes])
12 AC_COPYRIGHT([Copyright © 2013 Georg Hopp]) 12 AC_COPYRIGHT([Copyright © 2013 Georg Hopp])
13 AC_REVISION([0.0.0]) 13 AC_REVISION([0.0.0])
14 AC_CONFIG_SRCDIR([src/tree/tree.c]) 14 AC_CONFIG_SRCDIR([src/tree/tree.c])
15 -AC_CONFIG_HEADERS([trdata.h]) 15 +AC_CONFIG_HEADERS([config.h])
16 AC_CONFIG_MACRO_DIR([m4]) 16 AC_CONFIG_MACRO_DIR([m4])
17 17
18 m4_include([m4/gcov.m4]) 18 m4_include([m4/gcov.m4])
@@ -37,7 +37,17 @@ AM_COND_IF([HAVE_DOXYGEN], @@ -37,7 +37,17 @@ AM_COND_IF([HAVE_DOXYGEN],
37 [AC_CONFIG_FILES([docs/Doxyfile])]) 37 [AC_CONFIG_FILES([docs/Doxyfile])])
38 38
39 # Checks for header files. 39 # Checks for header files.
40 -AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h sys/types.h]) 40 +AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h \
  41 + sys/types.h])
  42 +AC_CHECK_HEADER(trbase.h, [], [
  43 + AC_MSG_ERROR([unable to find the trbase header])
  44 +])
  45 +AC_CHECK_HEADER(trio.h, [], [
  46 + AC_MSG_ERROR([unable to find the trio header])
  47 +])
  48 +AC_CHECK_HEADER(trhash.h, [], [
  49 + AC_MSG_ERROR([unable to find the trhash header])
  50 +])
41 51
42 # Checks for typedefs, structures, and compiler characteristics. 52 # Checks for typedefs, structures, and compiler characteristics.
43 AC_HEADER_STDBOOL 53 AC_HEADER_STDBOOL
Please register or login to post a comment