]> git.lyx.org Git - features.git/commitdiff
fixing linking on solaris
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 9 Dec 2005 13:42:23 +0000 (13:42 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 9 Dec 2005 13:42:23 +0000 (13:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10650 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
configure.ac
src/ChangeLog
src/Makefile.am
src/client/ChangeLog
src/client/Makefile.am

index 3ddc5ac0409ddfc9cad6a14e0ba4166d4fcf482c..ff59cbfa0fd4233cde9d9bf9d02a84120056ba2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-07  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * configure.ac: add to SOCKET_LIBS the libraries required by
+       socket code (useful for solaris).
+
 2005-12-06  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * configure.ac: remove dead gnome stuff
index 807c5b75cbfd56408d587fad1b4ee3a9bc660944..4fb2b20495832ac81e120646ea9ddd156d2fc833 100644 (file)
@@ -289,7 +289,17 @@ LYX_CHECK_SPELL_ENGINES
 
 lyx_client_subdir=true
 AC_LANG_PUSH(C)
-AC_CHECK_FUNCS(fcntl,, [lyx_client_subdir=false])
+dnl LIBS already contains some X extra libs that may interfere.
+save_LIBS="$LIBS"
+LIBS=
+AC_CHECK_FUNCS(fcntl,
+  [AC_SEARCH_LIBS([gethostbyname], [nsl])
+   AC_SEARCH_LIBS([socket], [socket], [], 
+     [AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"],
+                [], [-lnsl])])], 
+  [lyx_client_subdir=false])
+AC_SUBST(SOCKET_LIBS,$LIBS)
+LIBS="$save_LIBS"
 AM_CONDITIONAL(BUILD_CLIENT_SUBDIR, $lyx_client_subdir)
 AC_LANG_POP(C)
 
index 534104a6a83d5b4cc824f6494b92effd605a31e5..41742be6f076f59dfda95d25f0daa2ef91d9606c 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-07  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * Makefile.am (OTHERLIBS): add SOCKET_LIBS in case we compile
+       without X support.
+
 2005-12-06  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * exporter.C (Export): Don't try to copy a file if it does not exist
index 509cd7f63ba71893213a25e9162dfe2caf8bebbe..c5aa12b6ce833940c2ac0b5fa0b1f58952ff2098 100644 (file)
@@ -27,7 +27,7 @@ LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
 
 BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS) $(BOOST_FILESYSTEM)
 
-OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
+OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
 
 bin_PROGRAMS = lyx
 noinst_PROGRAMS = $(FRONTENDS_PROGS)
index 091d55c6dad9ef2c68e9fd02e3c1ae501da28023..740b05c4e69675fe045acca573cddcf39ebf81b8 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-07  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * Makefile.am (lyxclient_LDADD): link against SOCKET_LIBS (needed
+       for solaris).
+
 2005-07-17  Michael Schmitt  <michqel.schmitt@teststep.org>
 
        * debug.C: fix typo
index 4929396271942f5cee474f26e0bbfe576525931e..6ff899186c945df3a3d7d5b899e226747b9d4c43 100644 (file)
@@ -16,7 +16,7 @@ BOOST_LIBS = $(BOOST_REGEX) $(BOOST_FILESYSTEM)
 
 lyxclient_LDADD = \
        $(top_builddir)/src/support/libsupport.la \
-       $(BOOST_LIBS) $(INTLLIBS)
+       $(BOOST_LIBS) $(INTLLIBS) $(SOCKET_LIBS)
 
 lyxclient_SOURCES = \
        boost.C \