summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2003-03-27 07:11:16 (GMT)
committermdejong <mdejong>2003-03-27 07:11:16 (GMT)
commit5775be2569a55d245b9f3dc34eefe98fc5e17cff (patch)
treea34d7090a3404299ca494dbf88be32bfab959f84 /unix/tcl.m4
parentf7123ccfd4a4cb32d8691f19b593337091b2431b (diff)
downloadtcl-5775be2569a55d245b9f3dc34eefe98fc5e17cff.zip
tcl-5775be2569a55d245b9f3dc34eefe98fc5e17cff.tar.gz
tcl-5775be2569a55d245b9f3dc34eefe98fc5e17cff.tar.bz2
* unix/configure: Regen.
* unix/tcl.m4 (SC_CONFIG_CFLAGS, SC_TCL_LINK_LIBS): Add BeOS system to SC_CONFIG_CFLAGS. Check for inet_ntoa in -lbind, needed for BeOS.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index a9baae1..239fe4c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -920,6 +920,15 @@ dnl AC_CHECK_TOOL(AR, ar)
fi
fi
;;
+ BeOS*)
+ SHLIB_CFLAGS="-fPIC"
+ SHLIB_LD="${CC} -nostart"
+ SHLIB_LD_LIBS='${LIBS}'
+ SHLIB_SUFFIX=".so"
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS="-ldl"
+ LDFLAGS=""
+ ;;
BSD/OS-2.1*|BSD/OS-3*)
SHLIB_CFLAGS=""
SHLIB_LD="shlicc -r"
@@ -2328,6 +2337,13 @@ AC_DEFUN(SC_TCL_LINK_LIBS, [
AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl, gethostbyname,
[LIBS="$LIBS -lnsl"])])
+ #--------------------------------------------------------------------
+ # Check for inet_ntoa in -lbind, for BeOS (which also needs -lsocket,
+ # even if the network functions are in -lnet which is always linked
+ # to, for compatibility.
+ #--------------------------------------------------------------------
+ AC_CHECK_LIB(bind, inet_ntoa, [LIBS="$LIBS -lbind -lsocket"])
+
# Don't perform the eval of the libraries here because DL_LIBS
# won't be set until we call SC_CONFIG_CFLAGS