autoconf: dlfcn.h is required for dlopen, dlsym etc

Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
This commit is contained in:
Tushar Gohad
2014-06-29 13:01:55 -07:00
parent a720ed6e8f
commit da182c01c7
2 changed files with 4 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ dnl Check for C library headers
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h
malloc.h memory.h string.h strings.h inttypes.h
stdint.h ctype.h math.h iconv.h signal.h)
stdint.h ctype.h math.h iconv.h signal.h dlfcn.h)
AC_CHECK_FUNCS(malloc calloc realloc free)
# C sources

View File

@@ -70,6 +70,9 @@
#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
# include <iconv.h>
#endif
#ifdef HAVE_DLFCN_H
# include <dlfcn.h>
#endif
#if defined(__GNUC__) && __GNUC__ >= 4
# define DECLSPEC __attribute__ ((visibility("default")))