3c790afd3b
Changes in 8.5.16 Changed Tcl behavior - Unicode 7.0 charset (within BMP) - [scan %E%G%X]. Updated packages - http 2.7.13 - tcltest 2.3.8 - platform 1.0.13 Changes in 8.5.17 Changed Tcl behavior - Fixed several I/O bugs introduced in 8.5.16. Changes in 8.5.18 (none) Changes in 8.5.19 New global variables - tcl_platform(engine) TIP440 Changed Tcl behavior - Update to Unicode 8.0 support.
178 lines
6.2 KiB
Text
178 lines
6.2 KiB
Text
$NetBSD: patch-unix_configure,v 1.2 2016/03/03 21:16:46 bsiegert Exp $
|
|
|
|
Add MirBSD and DragonFly support.
|
|
|
|
--- unix/configure.orig 2016-02-08 20:44:53.000000000 +0000
|
|
+++ unix/configure
|
|
@@ -7565,7 +7565,7 @@ fi
|
|
CC_SEARCH_FLAGS=""
|
|
LD_SEARCH_FLAGS=""
|
|
;;
|
|
- OpenBSD-*)
|
|
+ OpenBSD-*|MirBSD-*)
|
|
arch=`arch -s`
|
|
case "$arch" in
|
|
vax)
|
|
@@ -7646,11 +7646,10 @@ fi
|
|
fi
|
|
|
|
;;
|
|
- FreeBSD-*)
|
|
+ FreeBSD-*|DragonFly-*)
|
|
# This configuration from FreeBSD Ports.
|
|
SHLIB_CFLAGS="-fPIC"
|
|
SHLIB_LD="${CC} -shared"
|
|
- SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname,\$@"
|
|
SHLIB_SUFFIX=".so"
|
|
DL_OBJS="tclLoadDl.o"
|
|
DL_LIBS=""
|
|
@@ -7680,7 +7679,6 @@ fi
|
|
esac
|
|
;;
|
|
Darwin-*)
|
|
- CFLAGS_OPTIMIZE="-Os"
|
|
SHLIB_CFLAGS="-fno-common"
|
|
# To avoid discrepancies between what headers configure sees during
|
|
# preprocessing tests and compiling tests, move any -isysroot and
|
|
@@ -8854,7 +8852,7 @@ fi
|
|
BSD/OS*) ;;
|
|
CYGWIN_*|MINGW32_*) ;;
|
|
IRIX*) ;;
|
|
- NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
|
|
+ NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*|MirBSD-*) ;;
|
|
Darwin-*) ;;
|
|
SCO_SV-3.2*) ;;
|
|
*) SHLIB_CFLAGS="-fPIC" ;;
|
|
@@ -8885,7 +8883,11 @@ fi
|
|
|
|
else
|
|
|
|
- INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"'
|
|
+ if test "${SHLIB_SUFFIX}" = ".dylib" ; then
|
|
+ INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/libtcl$(MAJOR_VERSION)$(MINOR_VERSION).$(SHLIB_VERSION)$(SHLIB_SUFFIX)"'
|
|
+ else
|
|
+ INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE).$(SHLIB_VERSION)"'
|
|
+ fi
|
|
|
|
fi
|
|
|
|
@@ -8919,7 +8921,7 @@ fi
|
|
else
|
|
|
|
MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
|
|
- INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)" ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(STUB_LIB_FILE))'
|
|
+ INSTALL_STUB_LIB='$(INSTALL_DATA) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)" ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(STUB_LIB_FILE))'
|
|
|
|
fi
|
|
|
|
@@ -18692,9 +18694,9 @@ fi
|
|
# building libtcl as a shared library instead of a static library.
|
|
#--------------------------------------------------------------------
|
|
|
|
-TCL_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
|
|
-TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}
|
|
-eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
|
|
+TCL_UNSHARED_LIB_SUFFIX=${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}.a
|
|
+TCL_SHARED_LIB_SUFFIX=${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${SHLIB_SUFFIX}
|
|
+eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
|
|
|
|
# tclConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed
|
|
# since on some platforms TCL_LIB_FILE contains shell escapes.
|
|
@@ -18799,13 +18801,10 @@ _ACEOF
|
|
else
|
|
# libdir must be a fully qualified path and not ${exec_prefix}/lib
|
|
eval libdir="$libdir"
|
|
- if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
|
- TCL_LIB_FLAG="-ltcl${TCL_VERSION}"
|
|
- else
|
|
- TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`"
|
|
- fi
|
|
+ TCL_LIB_FLAG="-ltcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
|
|
TCL_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_LIB_FLAG}"
|
|
- TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}"
|
|
+ TCL_LIB_SPEC_RPATH="${COMPILER_RPATH_FLAG}${libdir}"
|
|
+ TCL_LIB_SPEC="${TCL_LIB_SPEC_RPATH} -L${libdir} ${TCL_LIB_FLAG}"
|
|
fi
|
|
VERSION='${VERSION}'
|
|
eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
|
|
@@ -18824,12 +18823,11 @@ if test "$FRAMEWORK_BUILD" = "1" ; then
|
|
TCL_PACKAGE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl ~/Library/Frameworks /Library/Frameworks /System/Library/Frameworks"
|
|
test -z "$TCL_MODULE_PATH" && \
|
|
TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
|
|
-elif test "$prefix/lib" != "$libdir"; then
|
|
- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}"
|
|
else
|
|
- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}"
|
|
+ TCL_PACKAGE_PATH="${prefix}/lib/tcl ${prefix}/lib"
|
|
fi
|
|
|
|
+
|
|
#--------------------------------------------------------------------
|
|
# The statements below define various symbols relating to Tcl
|
|
# stub support.
|
|
@@ -18842,12 +18840,7 @@ eval "TCL_STUB_LIB_FILE=libtclstub${TCL_
|
|
eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
|
|
eval "TCL_STUB_LIB_DIR=${libdir}"
|
|
|
|
-if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
|
- TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}"
|
|
-else
|
|
- TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`"
|
|
-fi
|
|
-
|
|
+TCL_STUB_LIB_FLAG="-ltclstub${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
|
|
TCL_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
|
|
TCL_STUB_LIB_SPEC="-L${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}"
|
|
TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
|
|
@@ -18999,34 +18992,15 @@ fi
|
|
# Transform confdefs.h into DEFS.
|
|
# Protect against shell expansion while executing Makefile rules.
|
|
# Protect against Makefile macro expansion.
|
|
-#
|
|
-# If the first sed substitution is executed (which looks for macros that
|
|
-# take arguments), then we branch to the quote section. Otherwise,
|
|
-# look for a macro that doesn't take arguments.
|
|
-cat >confdef2opt.sed <<\_ACEOF
|
|
-t clear
|
|
-: clear
|
|
-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
|
|
-t quote
|
|
-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
|
|
-t quote
|
|
-d
|
|
-: quote
|
|
-s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
|
|
-s,\[,\\&,g
|
|
-s,\],\\&,g
|
|
-s,\$,$$,g
|
|
-p
|
|
-_ACEOF
|
|
-# We use echo to avoid assuming a particular line-breaking character.
|
|
-# The extra dot is to prevent the shell from consuming trailing
|
|
-# line-breaks from the sub-command output. A line-break within
|
|
-# single-quotes doesn't work because, if this script is created in a
|
|
-# platform that uses two characters for line-breaks (e.g., DOS), tr
|
|
-# would break.
|
|
-ac_LF_and_DOT=`echo; echo .`
|
|
-DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
|
|
-rm -f confdef2opt.sed
|
|
+cat > conftest.defs <<\EOF
|
|
+s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
|
+s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
|
+s%\[%\\&%g
|
|
+s%\]%\\&%g
|
|
+s%\$%$$%g
|
|
+EOF
|
|
+DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
|
+rm -f conftest.defs
|
|
|
|
|
|
|
|
@@ -19648,6 +19622,7 @@ s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;
|
|
s,@EXTRA_TCLSH_LIBS@,$EXTRA_TCLSH_LIBS,;t t
|
|
s,@DLTEST_LD@,$DLTEST_LD,;t t
|
|
s,@DLTEST_SUFFIX@,$DLTEST_SUFFIX,;t t
|
|
+s,@SHLIB_VERSION@,$SHLIB_VERSION,;t t
|
|
CEOF
|
|
|
|
_ACEOF
|