summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-17 23:06:14 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-17 23:06:14 -0400
commit1239832a09b160a21a092cafcef56c3c16f554f1 (patch)
tree69fd7d3c60b6101dde9fafbba0cc07c2d08891c7 /cmake
parent32c5072fd65f4692a728c802adb403ccf5c8d7e9 (diff)
downloadlibgd-1239832a09b160a21a092cafcef56c3c16f554f1.tar.gz
configure/cmake: unify header checks and config.h generation
Rather than hand maintain config.h.cmake (which is already out of date), re-use the autogenerated config.h from autoheader.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AC_HEADER_STDC.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/AC_HEADER_STDC.cmake b/cmake/modules/AC_HEADER_STDC.cmake
index 9f054a3..d3775ea 100644
--- a/cmake/modules/AC_HEADER_STDC.cmake
+++ b/cmake/modules/AC_HEADER_STDC.cmake
@@ -1,6 +1,9 @@
+# Keep in sync with AC_CHECK_HEADERS in configure.ac.
+
check_include_files(dirent.h HAVE_DIRENT_H)
check_include_files(errno.h HAVE_ERRNO_H)
check_include_files(inttypes.h HAVE_INTTYPES_H)
+check_include_files(limits.h HAVE_LIMITS_H)
check_include_files(stddef.h HAVE_STDDEF_H)
check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(stdlib.h HAVE_STDLIB_H)