]> granicus.if.org Git - graphviz/commitdiff
Add all header checks from configure.ac to CMake
authorErwin Janssen <erwinjanssen@outlook.com>
Wed, 8 Feb 2017 20:38:41 +0000 (21:38 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 6 Apr 2017 19:38:02 +0000 (21:38 +0200)
The CMake build now checks for the same headers as the Autotools build.
The following headers checks were added:
- crt_externs.h
- fcntl.h
- memory.h
- search.h
- sys/inotify.h
- sys/ioctl.h
- sys/mman.h
- sys/select.h
- sys/time.h
- sys/vfork.h
- termios.h
- vfork.h
- X11/Intrinsic.h
- X11/Xaw/Text.h

cmake/config_checks.cmake
config-cmake.h.in

index ce3f730214a740821d151a3dc962d0fe55aae0c1..dd9778fbd16a8d34893c753e437d8310d1468b2d 100644 (file)
@@ -1,12 +1,25 @@
 # Header checks
 include(CheckIncludeFile)
 
-check_include_file( malloc.h        HAVE_MALLOC_H       )
-check_include_file( stat.h          HAVE_STAT_H         )
-check_include_file( strings.h       HAVE_STRINGS_H      )
-check_include_file( sys/stat.h      HAVE_SYS_STAT_H     )
-check_include_file( sys/types.h     HAVE_SYS_TYPES_H    )
-check_include_file( unistd.h        HAVE_UNISTD_H       )
+check_include_file( crt_externs.h       HAVE_CRT_EXTERNS_H      )
+check_include_file( fcntl .h            HAVE_FCNTL_H            )
+check_include_file( malloc.h            HAVE_MALLOC_H           )
+check_include_file( search.h            HAVE_SEARCH_H           )
+check_include_file( stat.h              HAVE_STAT_H             )
+check_include_file( strings.h           HAVE_STRINGS_H          )
+check_include_file( sys/inotify.h       HAVE_SYS_INOTIFY_H      )
+check_include_file( sys/ioctl.h         HAVE_SYS_IOCTL_H        )
+check_include_file( sys/mman.h          HAVE_SYS_MMAN_H         )
+check_include_file( sys/select.h        HAVE_SYS_SELECT_H       )
+check_include_file( sys/stat.h          HAVE_SYS_STAT_H         )
+check_include_file( sys/time.h          HAVE_SYS_TIME_H         )
+check_include_file( sys/types.h         HAVE_SYS_TYPES_H        )
+check_include_file( sys/vfork.h         HAVE_SYS_VFORK_H        )
+check_include_file( termios.h           HAVE_TERMIOS_H          )
+check_include_file( unistd.h            HAVE_UNISTD_H           )
+check_include_file( vfork.h             HAVE_VFORK_H            )
+check_include_file( X11/Intrinsic.h     HAVE_X11_INTRINSIC_H    )
+check_include_file( X11/Xaw/Text.h      HAVE_X11_XAW_TEXT_H     )
 
 # Function checks
 include(CheckFunctionExists)
index ec6a36f7a1aff0f7a8688e146be8cfefd16e23b2..de5ddfe07cf024cfc2cfb7361e16e7764aa2b6ac 100644 (file)
@@ -3,12 +3,25 @@
 #define PACKAGE_VERSION "@GRAPHVIZ_VERSION_FULL@"
 
 // Include headers
+#cmakedefine HAVE_CRT_EXTERNS_H
+#cmakedefine HAVE_FCNTL_H
 #cmakedefine HAVE_MALLOC_H
+#cmakedefine HAVE_SEARCH_H
 #cmakedefine HAVE_STAT_H
 #cmakedefine HAVE_STRINGS_H
+#cmakedefine HAVE_SYS_INOTIFY_H
+#cmakedefine HAVE_SYS_IOCTL_H
+#cmakedefine HAVE_SYS_MMAN_H
+#cmakedefine HAVE_SYS_SELECT_H
 #cmakedefine HAVE_SYS_STAT_H
+#cmakedefine HAVE_SYS_TIME_H
 #cmakedefine HAVE_SYS_TYPES_H
+#cmakedefine HAVE_SYS_VFORK_H
+#cmakedefine HAVE_TERMIOS_H
 #cmakedefine HAVE_UNISTD_H
+#cmakedefine HAVE_VFORK_H
+#cmakedefine HAVE_X11_INTRINSIC_H
+#cmakedefine HAVE_X11_XAW_TEXT_H
 
 // Functions
 #cmakedefine HAVE_DRAND48