autoconf: dlfcn.h is required for dlopen, dlsym etc
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")))
|
||||
|
||||
Reference in New Issue
Block a user