diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-01-03 04:07:18 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-01-03 04:07:18 +0100 |
commit | 0f6fe3e044519d15d1e54d3ef1088b5107bc21a9 (patch) | |
tree | a6f80c9d23e1136f0c7aea11bf18d417a6df3950 | |
parent | 22bcb9599c83f396c54b09408beb9d8c2e5cff92 (diff) | |
download | blogc-0f6fe3e044519d15d1e54d3ef1088b5107bc21a9.tar.gz blogc-0f6fe3e044519d15d1e54d3ef1088b5107bc21a9.tar.bz2 blogc-0f6fe3e044519d15d1e54d3ef1088b5107bc21a9.zip |
make: check for headers
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0fdbf6a..8b3b44e 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,9 @@ AC_ARG_ENABLE([make-embedded], AS_HELP_STRING([--enable-make-embedded], AC_ARG_ENABLE([make], AS_HELP_STRING([--enable-make], [build blogc-make tool])) AS_IF([test "x$enable_make" = "xyes" -o "x$enable_make_embedded" = "xyes"], [ + AC_CHECK_HEADERS([dirent.h fcntl.h libgen.h sys/stat.h sys/wait.h time.h unistd.h],, [ + AC_MSG_ERROR([blogc-make tool requested but required headers not found]) + ]) AX_PTHREAD([], [ AC_MSG_ERROR([blogc-make tool requested but pthread is not supported]) ]) |