mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
- (autotools) libdl check for freebsd
This commit is contained in:
parent
c4d933c668
commit
f767216b2e
47
configure
vendored
47
configure
vendored
@ -16680,7 +16680,7 @@ fi
|
||||
fi
|
||||
|
||||
|
||||
# Check whether librt is necessary
|
||||
# Check which libs are necessary
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
|
||||
$as_echo_n "checking for shm_open in -lrt... " >&6; }
|
||||
if ${ac_cv_lib_rt_shm_open+:} false; then :
|
||||
@ -16726,6 +16726,51 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
||||
$as_echo_n "checking for dlopen in -ldl... " >&6; }
|
||||
if ${ac_cv_lib_dl_dlopen+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-ldl $LIBS"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char dlopen ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return dlopen ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_cxx_try_link "$LINENO"; then :
|
||||
ac_cv_lib_dl_dlopen=yes
|
||||
else
|
||||
ac_cv_lib_dl_dlopen=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
||||
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
||||
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBDL 1
|
||||
_ACEOF
|
||||
|
||||
LIBS="-ldl $LIBS"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# Check for SDL - Will accept 1.2 and 1.3
|
||||
|
||||
|
@ -57,8 +57,9 @@ AX_BOOST_THREAD
|
||||
AX_BOOST_IOSTREAMS
|
||||
AX_BOOST_PROGRAM_OPTIONS
|
||||
|
||||
# Check whether librt is necessary
|
||||
# Check which libs are necessary
|
||||
AC_CHECK_LIB(rt, shm_open)
|
||||
AC_CHECK_LIB(dl, dlopen)
|
||||
|
||||
# Check for SDL - Will accept 1.2 and 1.3
|
||||
AM_PATH_SDL("1.2.0", :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
|
||||
|
@ -3,7 +3,7 @@ StdInc.h.gch: StdInc.h
|
||||
$(CXXCOMPILE) -DVCMI_DLL -fPIC -c $<
|
||||
|
||||
pkglib_LTLIBRARIES = libvcmi.la
|
||||
libvcmi_la_LIBADD = @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @BOOST_IOSTREAMS_LIB@ -lz -lpthread -ldl
|
||||
libvcmi_la_LIBADD = @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @BOOST_IOSTREAMS_LIB@ -lz -lpthread
|
||||
libvcmi_la_CXXFLAGS = @SDL_CFLAGS@ -DVCMI_DLL
|
||||
libvcmi_la_SOURCES = \
|
||||
BattleAction.cpp \
|
||||
|
@ -285,7 +285,7 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
BUILT_SOURCES = StdInc.h.gch
|
||||
pkglib_LTLIBRARIES = libvcmi.la
|
||||
libvcmi_la_LIBADD = @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @BOOST_IOSTREAMS_LIB@ -lz -lpthread -ldl
|
||||
libvcmi_la_LIBADD = @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @BOOST_IOSTREAMS_LIB@ -lz -lpthread
|
||||
libvcmi_la_CXXFLAGS = @SDL_CFLAGS@ -DVCMI_DLL
|
||||
libvcmi_la_SOURCES = \
|
||||
BattleAction.cpp \
|
||||
|
Loading…
x
Reference in New Issue
Block a user