]> granicus.if.org Git - graphviz/commitdiff
Remove unused header checks and defines
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 12 Dec 2016 15:12:49 +0000 (16:12 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 21 Dec 2016 13:54:25 +0000 (14:54 +0100)
congigure.ac checkes for the presence of header files and creates
define indicating if it was found. Some of these defines are never
used, so the check (and the static define for Windows) can be safely
removed. This is the case for the following headers:
- langinfo.h
- libintl.h
- pthread.h
- setjmp.h
- sys/times.h

configure.ac
windows/include/config.h

index 8278e0d03ba3915696d4faedf14f4aa4cded31ff..9e1e87116a7cc5616ce9811b52e80e5b47cccf5b 100644 (file)
@@ -426,11 +426,11 @@ dnl Checks for header files
 
 # AC_HEADER_STDC
 AC_CHECK_HEADERS(malloc.h \
-       fcntl.h search.h pthread.h values.h limits.h termios.h \
-       errno.h unistd.h strings.h setjmp.h \
-       sys/time.h sys/times.h sys/types.h sys/select.h \
+       fcntl.h search.h values.h limits.h termios.h \
+       errno.h unistd.h strings.h \
+       sys/time.h sys/types.h sys/select.h \
        sys/stat.h sys/mman.h \
-       sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h)
+       sys/ioctl.h sys/inotify.h crt_externs.h)
 AC_HEADER_TIME
 AC_HEADER_DIRENT
 AC_HEADER_STDBOOL
index 0aa927027c3c6032f25222482921da475ff3da44..aeed7fca265e3b4811018a985230c25688b021f2 100644 (file)
 /* Define if intptr_t is declared */
 #define HAVE_INTPTR_T 1
 
-/* Define to 1 if you have the <langinfo.h> header file. */
-/* #undef HAVE_LANGINFO_H */
-
 /* Define if you have the lasi library */
 /* #undef HAVE_LASI */
 
 /* Define if the LIBGEN library has the basename feature */
 /* #undef HAVE_LIBGEN */
 
-/* Define to 1 if you have the <libintl.h> header file. */
-#define HAVE_LIBINTL_H 1
-
 /* Define if you have the JPEG library */
 #define HAVE_LIBJPEG 1
 
 /* Define to 1 if you have the `pow' function. */
 #define HAVE_POW 1
 
-/* Define to 1 if you have the <pthread.h> header file. */
-/* #undef HAVE_PTHREAD_H */
-
 /* Define if you have the Quartz framework for Mac OS X */
 /* #undef HAVE_QUARTZ */
 
 /* Define to 1 if you have the `setenv' function. */
 /* #undef HAVE_SETENV */
 
-/* Define to 1 if you have the <setjmp.h> header file. */
-#define HAVE_SETJMP_H 1
-
 /* Define to 1 if you have the `setmode' function. */
 #define HAVE_SETMODE 1
 
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #define HAVE_SYS_STAT_H 1
 
-/* Define to 1 if you have the <sys/times.h> header file. */
-/* #undef HAVE_SYS_TIMES_H */
-
 /* Define to 1 if you have the <sys/time.h> header file. */
 #define HAVE_SYS_TIME_H 1