TEA (tclconfig) Source Code

Check-in [cbe95d1d87]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove support for Windows CE. It doesn't work anyway (since it's already unsupported for a long time, even by Microsoft)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cbe95d1d87d11ba5d8b08e20803295a0f461e5be5b5670e7d4ac477b51edc9d4
User & Date: jan.nijtmans 2019-01-23 08:16:03
Context
2019-08-21
12:06
integrate msys-windows-fix: fix system recognition for some msys toolchains (providing uname -s = MSYS_NT-10.0) Leaf check-in: fb89855ce1 user: sebres tags: trunk
2019-08-20
11:31
fix system recognition for some msys toolchains (providing uname -s = MSYS_NT-10.0) Closed-Leaf check-in: 812ab92b3a user: sebres tags: msys-windows-fix
2019-01-23
08:16
Remove support for Windows CE. It doesn't work anyway (since it's already unsupported for a long time, even by Microsoft) check-in: cbe95d1d87 user: jan.nijtmans tags: trunk
2019-01-22
15:40
Don't use -prebind option on MacOSX any more: was only needed for OSX < 10.4, which is no longer supported (2005!!!) check-in: 33407d14ed user: jan.nijtmans tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tcl.m4.

  1145   1145       AC_MSG_CHECKING([if rpath support is requested])
  1146   1146       AC_ARG_ENABLE(rpath,
  1147   1147   	AC_HELP_STRING([--disable-rpath],
  1148   1148   	    [disable rpath support (default: on)]),
  1149   1149   	[doRpath=$enableval], [doRpath=yes])
  1150   1150       AC_MSG_RESULT([$doRpath])
  1151   1151   
  1152         -    # TEA specific: Cross-compiling options for Windows/CE builds?
  1153         -
  1154         -    doWince=${enable_wince-no}
  1155         -    AS_IF([test "${TEA_PLATFORM}" = windows], [
  1156         -	AC_MSG_CHECKING([if Windows/CE build is requested])
  1157         -	AC_ARG_ENABLE(wince,
  1158         -	    AC_HELP_STRING([--enable-wince],
  1159         -		[enable Win/CE support (where applicable)]),
  1160         -	    [doWince=$enableval], [doWince=no])
  1161         -	AC_MSG_RESULT([$doWince])
  1162         -    ])
  1163         -
  1164   1152       # Set the variable "system" to hold the name and version number
  1165   1153       # for the system.
  1166   1154   
  1167   1155       TEA_CONFIG_SYSTEM
  1168   1156   
  1169   1157       # Require ranlib early so we can override it in special cases below.
  1170   1158   
................................................................................
  1229   1217   		    do64bit="no"
  1230   1218   		else
  1231   1219   		    AC_MSG_RESULT([   Using 64-bit $MACHINE mode])
  1232   1220   		    do64bit_ok="yes"
  1233   1221   		fi
  1234   1222   	    fi
  1235   1223   
  1236         -	    if test "$doWince" != "no" ; then
  1237         -		if test "$do64bit" != "no" ; then
  1238         -		    AC_MSG_ERROR([Windows/CE and 64-bit builds incompatible])
  1239         -		fi
  1240         -		if test "$GCC" = "yes" ; then
  1241         -		    AC_MSG_ERROR([Windows/CE and GCC builds incompatible])
  1242         -		fi
  1243         -		TEA_PATH_CELIB
  1244         -		# Set defaults for common evc4/PPC2003 setup
  1245         -		# Currently Tcl requires 300+, possibly 420+ for sockets
  1246         -		CEVERSION=420; 		# could be 211 300 301 400 420 ...
  1247         -		TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
  1248         -		ARCH=ARM;		# could be ARM MIPS X86EM ...
  1249         -		PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
  1250         -		if test "$doWince" != "yes"; then
  1251         -		    # If !yes then the user specified something
  1252         -		    # Reset ARCH to allow user to skip specifying it
  1253         -		    ARCH=
  1254         -		    eval `echo $doWince | awk -F, '{ \
  1255         -	    if (length([$]1)) { printf "CEVERSION=\"%s\"\n", [$]1; \
  1256         -	    if ([$]1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
  1257         -	    if (length([$]2)) { printf "TARGETCPU=\"%s\"\n", toupper([$]2) }; \
  1258         -	    if (length([$]3)) { printf "ARCH=\"%s\"\n", toupper([$]3) }; \
  1259         -	    if (length([$]4)) { printf "PLATFORM=\"%s\"\n", [$]4 }; \
  1260         -		    }'`
  1261         -		    if test "x${ARCH}" = "x" ; then
  1262         -			ARCH=$TARGETCPU;
  1263         -		    fi
  1264         -		fi
  1265         -		OSVERSION=WCE$CEVERSION;
  1266         -	    	if test "x${WCEROOT}" = "x" ; then
  1267         -			WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
  1268         -		    if test ! -d "${WCEROOT}" ; then
  1269         -			WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
  1270         -		    fi
  1271         -		fi
  1272         -		if test "x${SDKROOT}" = "x" ; then
  1273         -		    SDKROOT="C:/Program Files/Windows CE Tools"
  1274         -		    if test ! -d "${SDKROOT}" ; then
  1275         -			SDKROOT="C:/Windows CE Tools"
  1276         -		    fi
  1277         -		fi
  1278         -		WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
  1279         -		SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
  1280         -		if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
  1281         -		    -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
  1282         -		    AC_MSG_ERROR([could not find PocketPC SDK or target compiler to enable WinCE mode [$CEVERSION,$TARGETCPU,$ARCH,$PLATFORM]])
  1283         -		    doWince="no"
  1284         -		else
  1285         -		    # We could PATH_NOSPACE these, but that's not important,
  1286         -		    # as long as we quote them when used.
  1287         -		    CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
  1288         -		    if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
  1289         -			CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
  1290         -		    fi
  1291         -		    CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
  1292         -    		fi
  1293         -	    fi
  1294         -
  1295   1224   	    if test "$GCC" != "yes" ; then
  1296   1225   	        if test "${SHARED_BUILD}" = "0" ; then
  1297   1226   		    runtime=-MT
  1298   1227   	        else
  1299   1228   		    runtime=-MD
  1300   1229   	        fi
  1301   1230   	        case "x`echo \${VisualStudioVersion}`" in
................................................................................
  1315   1244   		    lflags="${lflags} -nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
  1316   1245   		    LINKBIN="\"${PATH64}/link.exe\""
  1317   1246   		    CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
  1318   1247   		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
  1319   1248   		    # Avoid 'unresolved external symbol __security_cookie'
  1320   1249   		    # errors, c.f. http://support.microsoft.com/?id=894573
  1321   1250   		    TEA_ADD_LIBS([bufferoverflowU.lib])
  1322         -		elif test "$doWince" != "no" ; then
  1323         -		    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
  1324         -		    if test "${TARGETCPU}" = "X86"; then
  1325         -			CC="\"${CEBINROOT}/cl.exe\""
  1326         -		    else
  1327         -			CC="\"${CEBINROOT}/cl${ARCH}.exe\""
  1328         -		    fi
  1329         -		    CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
  1330         -		    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
  1331         -		    arch=`echo ${ARCH} | awk '{print tolower([$]0)}'`
  1332         -		    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
  1333         -		    if test "${SHARED_BUILD}" = "1" ; then
  1334         -			# Static CE builds require static celib as well
  1335         -		    	defs="${defs} _DLL"
  1336         -		    fi
  1337         -		    for i in $defs ; do
  1338         -			AC_DEFINE_UNQUOTED($i, 1, [WinCE def ]$i)
  1339         -		    done
  1340         -		    AC_DEFINE_UNQUOTED(_WIN32_WCE, $CEVERSION, [_WIN32_WCE version])
  1341         -		    AC_DEFINE_UNQUOTED(UNDER_CE, $CEVERSION, [UNDER_CE version])
  1342         -		    CFLAGS_DEBUG="-nologo -Zi -Od"
  1343         -		    CFLAGS_OPTIMIZE="-nologo -Ox"
  1344         -		    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
  1345         -		    lflags="${lflags} -MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
  1346         -		    LINKBIN="\"${CEBINROOT}/link.exe\""
  1347         -		    AC_SUBST(CELIB_DIR)
  1348   1251   		else
  1349   1252   		    RC="rc"
  1350   1253   		    lflags="${lflags} -nologo"
  1351   1254   		    LINKBIN="link"
  1352   1255   		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
  1353   1256   		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
  1354   1257   		fi
................................................................................
  1402   1305   		# For information on what debugtype is most useful, see:
  1403   1306   		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
  1404   1307   		# and also
  1405   1308   		# http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
  1406   1309   		# This essentially turns it all on.
  1407   1310   		LDFLAGS_DEBUG="-debug -debugtype:cv"
  1408   1311   		LDFLAGS_OPTIMIZE="-release"
  1409         -		if test "$doWince" != "no" ; then
  1410         -		    LDFLAGS_CONSOLE="-link ${lflags}"
  1411         -		    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
  1412         -		else
  1413         -		    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
  1414         -		    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
  1415         -		fi
         1312  +		LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
         1313  +		LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
  1416   1314   	    fi
  1417   1315   
  1418   1316   	    SHLIB_SUFFIX=".dll"
  1419   1317   	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
  1420   1318   
  1421   1319   	    TCL_LIB_VERSIONS_OK=nodots
  1422   1320       	    ;;
................................................................................
  3952   3850   
  3953   3851       AC_SUBST(MAJOR_VERSION)
  3954   3852       AC_SUBST(MINOR_VERSION)
  3955   3853       AC_SUBST(PATCHLEVEL)
  3956   3854   ])
  3957   3855   
  3958   3856   
  3959         -#------------------------------------------------------------------------
  3960         -# TEA_PATH_CELIB --
  3961         -#
  3962         -#	Locate Keuchel's celib emulation layer for targeting Win/CE
  3963         -#
  3964         -# Arguments:
  3965         -#	none
  3966         -#
  3967         -# Results:
  3968         -#
  3969         -#	Adds the following arguments to configure:
  3970         -#		--with-celib=...
  3971         -#
  3972         -#	Defines the following vars:
  3973         -#		CELIB_DIR	Full path to the directory containing
  3974         -#				the include and platform lib files
  3975         -#------------------------------------------------------------------------
  3976         -
  3977         -AC_DEFUN([TEA_PATH_CELIB], [
  3978         -    # First, look for one uninstalled.
  3979         -    # the alternative search directory is invoked by --with-celib
  3980         -
  3981         -    if test x"${no_celib}" = x ; then
  3982         -	# we reset no_celib in case something fails here
  3983         -	no_celib=true
  3984         -	AC_ARG_WITH(celib,[  --with-celib=DIR        use Windows/CE support library from DIR], with_celibconfig=${withval})
  3985         -	AC_MSG_CHECKING([for Windows/CE celib directory])
  3986         -	AC_CACHE_VAL(ac_cv_c_celibconfig,[
  3987         -	    # First check to see if --with-celibconfig was specified.
  3988         -	    if test x"${with_celibconfig}" != x ; then
  3989         -		if test -d "${with_celibconfig}/inc" ; then
  3990         -		    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
  3991         -		else
  3992         -		    AC_MSG_ERROR([${with_celibconfig} directory doesn't contain inc directory])
  3993         -		fi
  3994         -	    fi
  3995         -
  3996         -	    # then check for a celib library
  3997         -	    if test x"${ac_cv_c_celibconfig}" = x ; then
  3998         -		for i in \
  3999         -			../celib-palm-3.0 \
  4000         -			../celib \
  4001         -			../../celib-palm-3.0 \
  4002         -			../../celib \
  4003         -			`ls -dr ../celib-*3.[[0-9]]* 2>/dev/null` \
  4004         -			${srcdir}/../celib-palm-3.0 \
  4005         -			${srcdir}/../celib \
  4006         -			`ls -dr ${srcdir}/../celib-*3.[[0-9]]* 2>/dev/null` \
  4007         -			; do
  4008         -		    if test -d "$i/inc" ; then
  4009         -			ac_cv_c_celibconfig=`(cd $i; pwd)`
  4010         -			break
  4011         -		    fi
  4012         -		done
  4013         -	    fi
  4014         -	])
  4015         -	if test x"${ac_cv_c_celibconfig}" = x ; then
  4016         -	    AC_MSG_ERROR([Cannot find celib support library directory])
  4017         -	else
  4018         -	    no_celib=
  4019         -	    CELIB_DIR=${ac_cv_c_celibconfig}
  4020         -	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
  4021         -	    AC_MSG_RESULT([found $CELIB_DIR])
  4022         -	fi
  4023         -    fi
  4024         -])
  4025         -
  4026   3857   #------------------------------------------------------------------------
  4027   3858   # TEA_INSTALLER --
  4028   3859   #
  4029   3860   #	Configure the installer.
  4030   3861   #
  4031   3862   # Arguments:
  4032   3863   #	none