diff options
-rw-r--r-- | configure.ac | 29 | ||||
-rw-r--r-- | headers.h | 9 |
2 files changed, 33 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index ecbbdc3..f142cb7 100644 --- a/configure.ac +++ b/configure.ac @@ -31,13 +31,16 @@ AC_HEADER_SYS_WAIT AC_CHECK_HEADERS_ONCE([ \ dirent.h \ dlfcn.h \ + elf.h \ errno.h \ + execinfo.h \ fcntl.h \ libgen.h \ limits.h \ memory.h \ signal.h \ stdarg.h \ + stdbool.h \ stddef.h \ stdio.h \ stdlib.h \ @@ -68,11 +71,27 @@ AC_FUNC_LSTAT AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK AC_TYPE_SIGNAL AC_FUNC_STAT -AC_CHECK_FUNCS([ \ - bzero ftruncate getcwd lchown memmove \ - memcpy memset mkdir pathconf realpath \ - rmdir setenv strcasecmp strchr strdup \ - strerror strndup strrchr strspn strstr \ +AC_CHECK_FUNCS_ONCE([ \ + backtrace \ + ftruncate \ + getcwd \ + lchown \ + memmove \ + memcpy \ + memset \ + mkdir \ + pathconf \ + realpath \ + rmdir \ + setenv \ + strcasecmp \ + strchr \ + strdup \ + strerror \ + strndup \ + strrchr \ + strspn \ + strstr \ strtok_r \ ]) dnl For librcutil @@ -15,9 +15,15 @@ #ifdef HAVE_DLFCN_H # include <dlfcn.h> #endif +#ifdef HAVE_ELF_H +# include <elf.h> +#endif #ifdef HAVE_ERRNO_H # include <errno.h> #endif +#ifdef HAVE_EXECINFO_H +# include <execinfo.h> +#endif #ifdef HAVE_FCNTL_H # include <fcntl.h> #endif @@ -36,6 +42,9 @@ #ifdef HAVE_STDARG_H # include <stdarg.h> #endif +#ifdef HAVE_STDBOOL_H +# include <stdbool.h> +#endif #ifdef HAVE_STDDEF_H # include <stddef.h> #endif |