mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-29 03:21:05 +00:00
* config/objc-con-autoload.m4: Test for constructors directly. * config/objc-sys-dynamic.m4: Check for dl lib if we are using dladdr. * Source/objc-load.m (objc_get_uninstalled_dtable): Remove unused. * Source/Additions/GSXML.m (unparsedEntityDeclFunction): Add block around START so it will compile on GCC 2. * Testing/nsbundle.m: Errors to stdout. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16836 72102866-910b-0410-8b05-ffd578937521
33 lines
1 KiB
Text
33 lines
1 KiB
Text
AC_DEFUN(OBJC_SYS_DYNAMIC_LINKER,
|
|
[dnl
|
|
AC_REQUIRE([OBJC_CON_AUTOLOAD])dnl
|
|
#--------------------------------------------------------------------
|
|
# Guess the type of dynamic linker for the system
|
|
#
|
|
# Makes the following substitutions:
|
|
# DYNAMIC_LINKER - cooresponds to the interface that is included
|
|
# in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
|
|
#--------------------------------------------------------------------
|
|
DYNAMIC_LINKER=null
|
|
AC_CHECK_HEADER(dlfcn.h, DYNAMIC_LINKER=simple)
|
|
if test $DYNAMIC_LINKER = null; then
|
|
AC_CHECK_HEADER(dl.h, DYNAMIC_LINKER=hpux)
|
|
fi
|
|
if test $DYNAMIC_LINKER = null; then
|
|
AC_CHECK_HEADER(windows.h, DYNAMIC_LINKER=win32)
|
|
fi
|
|
if test $DYNAMIC_LINKER = null; then
|
|
AC_CHECK_HEADER(dld/defs.h, DYNAMIC_LINKER=dld)
|
|
fi
|
|
|
|
# NB: This is used as follows: in Source/Makefile.postamble we copy
|
|
# $(DYNAMIC_LINKER)-load.h into dynamic-load.h
|
|
AC_MSG_CHECKING([for dynamic linker type])
|
|
AC_MSG_RESULT([$DYNAMIC_LINKER])
|
|
|
|
if test $DYNAMIC_LINKER = simple; then
|
|
AC_CHECK_LIB(dl, dladdr)
|
|
fi
|
|
|
|
AC_SUBST(DYNAMIC_LINKER)dnl
|
|
])
|