summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-11-19 22:06:32 (GMT)
committernijtmans <nijtmans>2009-11-19 22:06:32 (GMT)
commitcf20f0bed2369b03a48196a130f6ccab9912ad61 (patch)
tree65719d1acacbd9dfee01f78998c3f54207ec42eb /unix/tcl.m4
parentc9d79e955d95910cce7d1a96e2b1b7e128c51412 (diff)
downloadtcl-cf20f0bed2369b03a48196a130f6ccab9912ad61.zip
tcl-cf20f0bed2369b03a48196a130f6ccab9912ad61.tar.gz
tcl-cf20f0bed2369b03a48196a130f6ccab9912ad61.tar.bz2
[Tcl Patch #2883533] tcl.m4 support for Haiku OS
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 479ea08..ed46d61 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1102,7 +1102,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
TCL_LIB_VERSIONS_OK=ok
CFLAGS_DEBUG=-g
AS_IF([test "$GCC" = yes], [
- CFLAGS_OPTIMIZE="-O2"
+ CFLAGS_OPTIMIZE=-O2
CFLAGS_WARNING="-Wall"
], [
CFLAGS_OPTIMIZE=-O
@@ -1256,6 +1256,16 @@ dnl AC_CHECK_TOOL(AR, ar)
CC_SEARCH_FLAGS=""
LD_SEARCH_FLAGS=""
;;
+ Haiku*)
+ LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+ SHLIB_CFLAGS="-fPIC"
+ SHLIB_LD_LIBS='${LIBS}'
+ SHLIB_SUFFIX=".so"
+ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS="-lroot"
+ AC_CHECK_LIB(network, inet_ntoa, [LIBS="$LIBS -lnetwork"])
+ ;;
HP-UX-*.11.*)
# Use updated header definitions where possible
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?])