fix the situation when one of sublibraries is not built
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0154f61aa8
commit
edd891e220
34
configure.in
34
configure.in
@ -3672,12 +3672,13 @@ dnl Checks specific to contrib libs (MMedia)
|
||||
dnl ------------------------------------------
|
||||
|
||||
dnl Check for ESD:
|
||||
ESD_LINK=
|
||||
AC_CHECK_HEADER([esd.h], [
|
||||
AC_CHECK_LIB(esd, esd_close, [
|
||||
ESD_LINK="-lesd"
|
||||
EXTRALIBS_ESD=
|
||||
AC_CHECK_LIB(esd, esd_close, [
|
||||
AC_CHECK_HEADERS([esd.h], [
|
||||
EXTRALIBS_ESD="-lesd"
|
||||
])
|
||||
])
|
||||
AC_SUBST(EXTRALIBS_ESD)
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
@ -5390,6 +5391,28 @@ AC_DEFINE_UNQUOTED(wxINSTALL_PREFIX, "$wxPREFIX")
|
||||
dnl define the variables used in wx-config
|
||||
top_builddir_wxconfig=`pwd`
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl define variables with all built libraries for wx-config
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
CORE_BASE_LIBS="net base"
|
||||
CORE_GUI_LIBS="adv core"
|
||||
|
||||
if test "$wxUSE_XML" = "yes" ; then
|
||||
CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
|
||||
fi
|
||||
if test "$wxUSE_ODBC" = "yes" ; then
|
||||
CORE_GUI_LIBS="odbc $CORE_GUI_LIBS"
|
||||
fi
|
||||
if test "$wxUSE_HTML" = "yes" ; then
|
||||
CORE_GUI_LIBS="html $CORE_GUI_LIBS"
|
||||
fi
|
||||
|
||||
AC_SUBST(CORE_BASE_LIBS)
|
||||
AC_SUBST(CORE_GUI_LIBS)
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Output the makefiles and such from the results found above
|
||||
dnl ---------------------------------------------------------------------------
|
||||
@ -5733,9 +5756,6 @@ AC_SUBST(MAKEINFO)
|
||||
AC_SUBST(INSTALL_LIBRARY)
|
||||
AC_SUBST(INSTALL_DIR)
|
||||
|
||||
dnl contrib tests results:
|
||||
AC_SUBST(ESD_LINK)
|
||||
|
||||
|
||||
dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE
|
||||
dnl itself (this macro is required if SUBDIRS variable is used in Makefile.am
|
||||
|
@ -57,8 +57,8 @@ LIBS="@LIBS@"
|
||||
|
||||
# Linker flags for sublibraries:
|
||||
|
||||
CORE_BASE_LIBS="xml net base"
|
||||
CORE_GUI_LIBS="html odbc adv core"
|
||||
CORE_BASE_LIBS="@CORE_BASE_LIBS@"
|
||||
CORE_GUI_LIBS="@CORE_GUI_LIBS@"
|
||||
|
||||
ldlibs_base="@WXCONFIG_EXTRALIBS@"
|
||||
ldlibs_core="@EXTRALIBS_GUI@"
|
||||
|
Loading…
Reference in New Issue
Block a user