Skip to content

Commit

Permalink
Add some checks suggested by autoscan
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Oct 17, 2011
1 parent 046ecbd commit 6aad8b8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
22 changes: 22 additions & 0 deletions config.h.in
Expand Up @@ -68,6 +68,9 @@
/* Define to 1 if you have the `rmdir' function. */ /* Define to 1 if you have the `rmdir' function. */
#undef HAVE_RMDIR #undef HAVE_RMDIR


/* Define to 1 if you have the `setenv' function. */
#undef HAVE_SETENV

/* Define to 1 if stdbool.h conforms to C99. */ /* Define to 1 if stdbool.h conforms to C99. */
#undef HAVE_STDBOOL_H #undef HAVE_STDBOOL_H


Expand Down Expand Up @@ -107,6 +110,9 @@
/* Define to 1 if you have the <sys/param.h> header file. */ /* Define to 1 if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H #undef HAVE_SYS_PARAM_H


/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H

/* Define to 1 if you have the <sys/stat.h> header file. */ /* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H #undef HAVE_SYS_STAT_H


Expand Down Expand Up @@ -181,6 +187,11 @@
#define below would cause a syntax error. */ #define below would cause a syntax error. */
#undef _UINT32_T #undef _UINT32_T


/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */
#undef _UINT64_T

/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>, /* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */ #define below would cause a syntax error. */
Expand All @@ -200,6 +211,10 @@
such a type exists and the standard includes do not define it. */ such a type exists and the standard includes do not define it. */
#undef int32_t #undef int32_t


/* Define to the type of a signed integer type of width exactly 64 bits if
such a type exists and the standard includes do not define it. */
#undef int64_t

/* Define to the type of a signed integer type of width exactly 8 bits if such /* Define to the type of a signed integer type of width exactly 8 bits if such
a type exists and the standard includes do not define it. */ a type exists and the standard includes do not define it. */
#undef int8_t #undef int8_t
Expand All @@ -216,6 +231,9 @@
/* Define to `unsigned int' if <sys/types.h> does not define. */ /* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t #undef size_t


/* Define to `int' if <sys/types.h> does not define. */
#undef ssize_t

/* Define to the type of an unsigned integer type of width exactly 16 bits if /* Define to the type of an unsigned integer type of width exactly 16 bits if
such a type exists and the standard includes do not define it. */ such a type exists and the standard includes do not define it. */
#undef uint16_t #undef uint16_t
Expand All @@ -224,6 +242,10 @@
such a type exists and the standard includes do not define it. */ such a type exists and the standard includes do not define it. */
#undef uint32_t #undef uint32_t


/* Define to the type of an unsigned integer type of width exactly 64 bits if
such a type exists and the standard includes do not define it. */
#undef uint64_t

/* Define to the type of an unsigned integer type of width exactly 8 bits if /* Define to the type of an unsigned integer type of width exactly 8 bits if
such a type exists and the standard includes do not define it. */ such a type exists and the standard includes do not define it. */
#undef uint8_t #undef uint8_t
Expand Down
12 changes: 8 additions & 4 deletions configure.ac
Expand Up @@ -18,12 +18,15 @@ AC_PROG_RANLIB
AC_C_INLINE AC_C_INLINE


AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_INT8_T
AC_TYPE_INT16_T AC_TYPE_INT16_T
AC_TYPE_INT32_T AC_TYPE_INT32_T
AC_TYPE_INT8_T AC_TYPE_INT64_T
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T AC_TYPE_UINT16_T
AC_TYPE_UINT32_T AC_TYPE_UINT32_T
AC_TYPE_UINT8_T AC_TYPE_UINT64_T
AC_TYPE_PID_T AC_TYPE_PID_T


AC_FUNC_MMAP AC_FUNC_MMAP
Expand All @@ -32,10 +35,11 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC AC_FUNC_REALLOC
AC_FUNC_FORK AC_FUNC_FORK
AC_CHECK_FUNCS([strdup mkdir realpath rmdir strerror strcasecmp \ AC_CHECK_FUNCS([strdup mkdir realpath rmdir strerror strcasecmp \
memset strchr strrchr strstr]) memset strchr strrchr strstr setenv])


AC_HEADER_STDBOOL AC_HEADER_STDBOOL
AC_CHECK_HEADERS([limits.h stddef.h fcntl.h libintl.h malloc.h]) AC_CHECK_HEADERS([limits.h stddef.h fcntl.h libintl.h malloc.h \
sys/socket.h])


AX_LLVM_C([engine bitreader bitwriter]) AX_LLVM_C([engine bitreader bitwriter])


Expand Down

0 comments on commit 6aad8b8

Please sign in to comment.