2001-04-09 09:31:03 +00:00
|
|
|
--- configure.in.orig Thu Apr 5 14:51:27 2001
|
|
|
|
+++ configure.in Thu Apr 5 15:08:05 2001
|
1999-04-02 02:35:55 +00:00
|
|
|
@@ -851,15 +851,21 @@
|
1998-09-27 11:17:07 +00:00
|
|
|
NetBSD-*|FreeBSD-*|OpenBSD-*)
|
|
|
|
# Not available on all versions: check for include file.
|
|
|
|
AC_CHECK_HEADER(dlfcn.h, [
|
|
|
|
+ # FreeBSD-current supports elf format, now.
|
|
|
|
+ if test "X$PORTOBJFORMAT" = "Xelf"; then
|
|
|
|
+ SHLIB_LD='${CC} -shared -Wl,-x'
|
|
|
|
+ TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
|
|
|
|
+ else
|
|
|
|
+ SHLIB_LD="ld -Bshareable -x"
|
1999-04-02 02:35:55 +00:00
|
|
|
+ TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.5'
|
1998-09-27 11:17:07 +00:00
|
|
|
+ fi
|
|
|
|
SHLIB_CFLAGS="-fpic"
|
|
|
|
- SHLIB_LD="ld -Bshareable -x"
|
|
|
|
SHLIB_LD_LIBS=""
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
DL_OBJS="tclLoadDl.o"
|
1998-05-10 08:09:18 +00:00
|
|
|
DL_LIBS=""
|
|
|
|
LD_FLAGS=""
|
|
|
|
LD_SEARCH_FLAGS=""
|
1998-09-27 11:17:07 +00:00
|
|
|
- TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
1998-05-10 08:09:18 +00:00
|
|
|
], [
|
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
|
1999-04-02 02:35:55 +00:00
|
|
|
@@ -1222,6 +1228,7 @@
|
1998-09-27 11:17:07 +00:00
|
|
|
if test "$TCL_UNSHARED_LIB_SUFFIX" = "" ; then
|
|
|
|
TCL_UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
|
|
|
|
fi
|
|
|
|
+TCL_STATIC_LIB_FILE=""
|
|
|
|
AC_ARG_ENABLE(shared,
|
|
|
|
[ --enable-shared build libtcl as a shared library],
|
|
|
|
[tcl_ok=$enableval], [tcl_ok=no])
|
1999-04-02 02:35:55 +00:00
|
|
|
@@ -1230,10 +1237,15 @@
|
1998-09-27 11:17:07 +00:00
|
|
|
TCL_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
|
|
|
|
TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
|
|
|
|
eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
|
|
|
|
+ eval "TCL_STATIC_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}"
|
|
|
|
if test "x$DL_OBJS" = "xtclLoadAout.o"; then
|
|
|
|
MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}"
|
|
|
|
else
|
|
|
|
- MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
|
|
|
|
+ if test "X$PORTOBJFORMAT" = "Xelf"; then
|
1999-12-23 18:21:28 +00:00
|
|
|
+ MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} -Wl,-S,-soname=${TCL_LIB_FILE} ${SHLIB_LD_LIBS}"
|
1998-09-27 11:17:07 +00:00
|
|
|
+ else
|
|
|
|
+ MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
|
|
|
|
+ fi
|
|
|
|
RANLIB=":"
|
|
|
|
fi
|
|
|
|
else
|
2001-04-09 09:31:03 +00:00
|
|
|
@@ -1272,8 +1284,9 @@
|
|
|
|
# so that the backslashes quoting the DBX braces are dropped.
|
|
|
|
|
1998-09-27 11:17:07 +00:00
|
|
|
# Trick to replace DBGX with TCL_DBGX
|
2001-04-09 09:31:03 +00:00
|
|
|
-DBGX='${TCL_DBGX}'
|
|
|
|
+DBGX=${TCL_DBGX}
|
1998-09-27 11:17:07 +00:00
|
|
|
eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
|
|
|
|
+eval "TCL_STATIC_LIB_FILE=${TCL_STATIC_LIB_FILE}"
|
|
|
|
|
|
|
|
VERSION='${VERSION}'
|
|
|
|
eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
|
1999-04-02 02:35:55 +00:00
|
|
|
@@ -1313,6 +1326,7 @@
|
1998-09-27 11:17:07 +00:00
|
|
|
AC_SUBST(TCL_BUILD_LIB_SPEC)
|
|
|
|
AC_SUBST(TCL_LD_SEARCH_FLAGS)
|
|
|
|
AC_SUBST(TCL_LIB_FILE)
|
|
|
|
+AC_SUBST(TCL_STATIC_LIB_FILE)
|
|
|
|
AC_SUBST(TCL_LIB_FLAG)
|
|
|
|
AC_SUBST(TCL_LIB_SPEC)
|
|
|
|
AC_SUBST(TCL_LIB_VERSIONS_OK)
|
2001-04-09 09:31:03 +00:00
|
|
|
@@ -1327,4 +1341,4 @@
|
|
|
|
AC_SUBST(TCL_UNSHARED_LIB_SUFFIX)
|
|
|
|
AC_SUBST(TCL_VERSION)
|
|
|
|
|
|
|
|
-AC_OUTPUT(Makefile tclConfig.sh)
|
|
|
|
+AC_OUTPUT(Makefile tclConfig.sh ../README.FreeBSD.JP)
|