135 |
]) |
]) |
136 |
if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
137 |
AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], |
AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], |
138 |
[Define if the OS needs help to load dependent libraries for dlopen()]) |
[Define if the OS needs help to load dependent libraries for dlopen().]) |
139 |
fi |
fi |
140 |
])# AC_LTDL_SYS_DLOPEN_DEPLIBS |
])# AC_LTDL_SYS_DLOPEN_DEPLIBS |
141 |
|
|
156 |
]) |
]) |
157 |
if test -n "$libltdl_cv_shlibext"; then |
if test -n "$libltdl_cv_shlibext"; then |
158 |
AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext", |
AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext", |
159 |
[Define to the extension used for shared libraries, say, ".so". ]) |
[Define to the extension used for shared libraries, say, ".so".]) |
160 |
fi |
fi |
161 |
])# AC_LTDL_SHLIBEXT |
])# AC_LTDL_SHLIBEXT |
162 |
|
|
169 |
[libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) |
[libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) |
170 |
if test -n "$libltdl_cv_shlibpath_var"; then |
if test -n "$libltdl_cv_shlibpath_var"; then |
171 |
AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var", |
AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var", |
172 |
[Define to the name of the environment variable that determines the dynamic library search path. ]) |
[Define to the name of the environment variable that determines the dynamic library search path.]) |
173 |
fi |
fi |
174 |
])# AC_LTDL_SHLIBPATH |
])# AC_LTDL_SHLIBPATH |
175 |
|
|
191 |
fi |
fi |
192 |
done |
done |
193 |
AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path", |
AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path", |
194 |
[Define to the system default library search path. ]) |
[Define to the system default library search path.]) |
195 |
fi |
fi |
196 |
])# AC_LTDL_SYSSEARCHPATH |
])# AC_LTDL_SYSSEARCHPATH |
197 |
|
|
217 |
fi |
fi |
218 |
]) |
]) |
219 |
AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/", |
AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/", |
220 |
[Define to the sub-directory in which libtool stores uninstalled libraries. ]) |
[Define to the sub-directory in which libtool stores uninstalled libraries.]) |
221 |
])# AC_LTDL_OBJDIR |
])# AC_LTDL_OBJDIR |
222 |
|
|
223 |
|
|
235 |
]) |
]) |
236 |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
237 |
AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1, |
AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1, |
238 |
[Define if libtool can extract symbol lists from object files. ]) |
[Define if libtool can extract symbol lists from object files.]) |
239 |
fi |
fi |
240 |
])# AC_LTDL_DLPREOPEN |
])# AC_LTDL_DLPREOPEN |
241 |
|
|
248 |
AC_LANG_PUSH([C]) |
AC_LANG_PUSH([C]) |
249 |
AC_CHECK_LIB([dl], [dlopen], |
AC_CHECK_LIB([dl], [dlopen], |
250 |
[AC_DEFINE([HAVE_LIBDL], [1], |
[AC_DEFINE([HAVE_LIBDL], [1], |
251 |
[Define if you have the libdl library or equivalent. ]) |
[Define if you have the libdl library or equivalent.]) |
252 |
LIBADD_DL="-ldl"], |
LIBADD_DL="-ldl"], |
253 |
[AC_TRY_LINK([#if HAVE_DLFCN_H |
[AC_TRY_LINK([#if HAVE_DLFCN_H |
254 |
# include <dlfcn.h> |
# include <dlfcn.h> |
256 |
], |
], |
257 |
[dlopen();], |
[dlopen();], |
258 |
[AC_DEFINE(HAVE_LIBDL, 1, |
[AC_DEFINE(HAVE_LIBDL, 1, |
259 |
[Define if you have the libdl library or equivalent. ])], |
[Define if you have the libdl library or equivalent.])], |
260 |
[AC_CHECK_LIB(svld, dlopen, |
[AC_CHECK_LIB(svld, dlopen, |
261 |
[AC_DEFINE(HAVE_LIBDL, 1, |
[AC_DEFINE(HAVE_LIBDL, 1, |
262 |
[Define if you have the libdl library or equivalent. ]) |
[Define if you have the libdl library or equivalent.]) |
263 |
LIBADD_DL="-lsvld" |
LIBADD_DL="-lsvld" |
264 |
]) |
]) |
265 |
]) |
]) |
267 |
|
|
268 |
AC_CHECK_FUNC(shl_load, |
AC_CHECK_FUNC(shl_load, |
269 |
[AC_DEFINE([HAVE_SHL_LOAD], [1], |
[AC_DEFINE([HAVE_SHL_LOAD], [1], |
270 |
[Define if you have the shl_load function. ])], |
[Define if you have the shl_load function.])], |
271 |
[AC_CHECK_LIB([dld], [shl_load], |
[AC_CHECK_LIB([dld], [shl_load], |
272 |
[AC_DEFINE([HAVE_SHL_LOAD], [1], |
[AC_DEFINE([HAVE_SHL_LOAD], [1], |
273 |
[Define if you have the shl_load function. ]) |
[Define if you have the shl_load function.]) |
274 |
LIBADD_DL="$LIBADD_DL -ldld" |
LIBADD_DL="$LIBADD_DL -ldld" |
275 |
]) |
]) |
276 |
]) |
]) |
352 |
|
|
353 |
if test x"$libltdl_cv_need_uscore" = xyes; then |
if test x"$libltdl_cv_need_uscore" = xyes; then |
354 |
AC_DEFINE(NEED_USCORE, 1, |
AC_DEFINE(NEED_USCORE, 1, |
355 |
[Define if dlsym() requires a leading underscode in symbol names. ]) |
[Define if dlsym() requires a leading underscode in symbol names.]) |
356 |
fi |
fi |
357 |
])# AC_LTDL_DLSYM_USCORE |
])# AC_LTDL_DLSYM_USCORE |
358 |
|
|
364 |
AC_CHECK_TYPES([error_t], |
AC_CHECK_TYPES([error_t], |
365 |
[], |
[], |
366 |
[AC_DEFINE([error_t], [int], |
[AC_DEFINE([error_t], [int], |
367 |
[Define to a type to use for `error_t' if it is not otherwise available])], |
[Define to a type to use for `error_t' if it is not otherwise available.])], |
368 |
[#if HAVE_ARGZ_H |
[#if HAVE_ARGZ_H |
369 |
# include <argz.h> |
# include <argz.h> |
370 |
#endif]) |
#endif]) |