tdbc::postgres

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

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

Overview
Comment:TEA update. Change some macro references to direct calls
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256:1266c370d90cc067ec3834a6eb0b35f43cc6e2f486c84c0642f1f40ed69b4685
User & Date: jan.nijtmans 2019-02-26 20:24:50
Context
2019-02-26
20:24
TEA update. Change some macro references to direct calls Leaf check-in: 1266c370d9 user: jan.nijtmans tags: trunk
2018-11-01
16:09
TEA update check-in: aa013c1409 user: dgp tags: trunk, tdbcpostgres-1-1-0
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to configure.

   636    636   SHLIB_LD_LIBS
   637    637   SHLIB_LD
   638    638   STLIB_LD
   639    639   CFLAGS_WARNING
   640    640   CFLAGS_OPTIMIZE
   641    641   CFLAGS_DEBUG
   642    642   RC
   643         -CELIB_DIR
   644    643   AR
   645    644   STUBS_BUILD
   646    645   SHARED_BUILD
   647    646   TCL_THREADS
   648    647   TCL_INCLUDES
   649    648   PKG_OBJECTS
   650    649   PKG_SOURCES
................................................................................
   719    718   pdfdir
   720    719   dvidir
   721    720   htmldir
   722    721   infodir
   723    722   docdir
   724    723   oldincludedir
   725    724   includedir
          725  +runstatedir
   726    726   localstatedir
   727    727   sharedstatedir
   728    728   sysconfdir
   729    729   datadir
   730    730   datarootdir
   731    731   libexecdir
   732    732   sbindir
................................................................................
   750    750   with_tclinclude
   751    751   enable_threads
   752    752   enable_shared
   753    753   enable_stubs
   754    754   enable_64bit
   755    755   enable_64bit_vis
   756    756   enable_rpath
   757         -enable_wince
   758         -with_celib
   759    757   enable_symbols
   760    758   '
   761    759         ac_precious_vars='build_alias
   762    760   host_alias
   763    761   target_alias
   764    762   CC
   765    763   CFLAGS
................................................................................
   801    799   sbindir='${exec_prefix}/sbin'
   802    800   libexecdir='${exec_prefix}/libexec'
   803    801   datarootdir='${prefix}/share'
   804    802   datadir='${datarootdir}'
   805    803   sysconfdir='${prefix}/etc'
   806    804   sharedstatedir='${prefix}/com'
   807    805   localstatedir='${prefix}/var'
          806  +runstatedir='${localstatedir}/run'
   808    807   includedir='${prefix}/include'
   809    808   oldincludedir='/usr/include'
   810    809   docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   811    810   infodir='${datarootdir}/info'
   812    811   htmldir='${docdir}'
   813    812   dvidir='${docdir}'
   814    813   pdfdir='${docdir}'
................................................................................
  1052   1051       ac_prev=psdir ;;
  1053   1052     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1054   1053       psdir=$ac_optarg ;;
  1055   1054   
  1056   1055     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1057   1056     | -silent | --silent | --silen | --sile | --sil)
  1058   1057       silent=yes ;;
         1058  +
         1059  +  -runstatedir | --runstatedir | --runstatedi | --runstated \
         1060  +  | --runstate | --runstat | --runsta | --runst | --runs \
         1061  +  | --run | --ru | --r)
         1062  +    ac_prev=runstatedir ;;
         1063  +  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
         1064  +  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
         1065  +  | --run=* | --ru=* | --r=*)
         1066  +    runstatedir=$ac_optarg ;;
  1059   1067   
  1060   1068     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1061   1069       ac_prev=sbindir ;;
  1062   1070     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1063   1071     | --sbi=* | --sb=*)
  1064   1072       sbindir=$ac_optarg ;;
  1065   1073   
................................................................................
  1190   1198     esac
  1191   1199   fi
  1192   1200   
  1193   1201   # Check all directory arguments for consistency.
  1194   1202   for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1195   1203   		datadir sysconfdir sharedstatedir localstatedir includedir \
  1196   1204   		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1197         -		libdir localedir mandir
         1205  +		libdir localedir mandir runstatedir
  1198   1206   do
  1199   1207     eval ac_val=\$$ac_var
  1200   1208     # Remove trailing slashes.
  1201   1209     case $ac_val in
  1202   1210       */ )
  1203   1211         ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1204   1212         eval $ac_var=\$ac_val;;
................................................................................
  1343   1351   Fine tuning of the installation directories:
  1344   1352     --bindir=DIR            user executables [EPREFIX/bin]
  1345   1353     --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1346   1354     --libexecdir=DIR        program executables [EPREFIX/libexec]
  1347   1355     --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1348   1356     --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1349   1357     --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
         1358  +  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  1350   1359     --libdir=DIR            object code libraries [EPREFIX/lib]
  1351   1360     --includedir=DIR        C header files [PREFIX/include]
  1352   1361     --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1353   1362     --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1354   1363     --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1355   1364     --infodir=DIR           info documentation [DATAROOTDIR/info]
  1356   1365     --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
................................................................................
  1379   1388     --enable-threads        build with threads (default: on)
  1380   1389     --enable-shared         build and link with shared libraries (default: on)
  1381   1390     --enable-stubs          build and link with stub libraries. Always true for
  1382   1391                             shared builds (default: on)
  1383   1392     --enable-64bit          enable 64bit support (default: off)
  1384   1393     --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
  1385   1394     --disable-rpath         disable rpath support (default: on)
  1386         -  --enable-wince          enable Win/CE support (where applicable)
  1387   1395     --enable-symbols        build with debugging symbols (default: off)
  1388   1396   
  1389   1397   Optional Packages:
  1390   1398     --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1391   1399     --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1392   1400     --with-tcl              directory containing tcl configuration
  1393   1401                             (tclConfig.sh)
  1394   1402     --with-tdbc              directory containing tdbc configuration (tdbcConfig.sh)
  1395   1403     --with-tclinclude       directory containing the public Tcl header files
  1396         -  --with-celib=DIR        use Windows/CE support library from DIR
  1397   1404   
  1398   1405   Some influential environment variables:
  1399   1406     CC          C compiler command
  1400   1407     CFLAGS      C compiler flags
  1401   1408     LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1402   1409                 nonstandard directory <lib dir>
  1403   1410     LIBS        libraries to pass to the linker, e.g. -l<library>
................................................................................
  3566   3573   
  3567   3574     ;
  3568   3575     return 0;
  3569   3576   }
  3570   3577   _ACEOF
  3571   3578   if ac_fn_c_try_compile "$LINENO"; then :
  3572   3579   
  3573         -	    TEA_PLATFORM="unix"
         3580  +	    # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
         3581  +	    TEA_PLATFORM="${TEA_PLATFORM-unix}"
  3574   3582   	    CYGPATH=echo
  3575   3583   
  3576   3584   else
  3577   3585   
  3578   3586   	    TEA_PLATFORM="windows"
  3579   3587   	    # Extract the first word of "cygpath", so it can be a program name with args.
  3580   3588   set dummy cygpath; ac_word=$2
................................................................................
  6030   6038       Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
  6031   6039       that IS thread-enabled.  It is recommended to use --enable-threads." >&5
  6032   6040   $as_echo "$as_me: WARNING:
  6033   6041       Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
  6034   6042       that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
  6035   6043   	    fi
  6036   6044   	    ;;
  6037         -	*)
  6038         -	    if test "${TCL_THREADS}" = "1"; then
  6039         -		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  6040         -    --enable-threads requested, but building against a Tcl that is NOT
  6041         -    thread-enabled.  This is an OK configuration that will also run in
  6042         -    a thread-enabled core." >&5
  6043         -$as_echo "$as_me: WARNING:
  6044         -    --enable-threads requested, but building against a Tcl that is NOT
  6045         -    thread-enabled.  This is an OK configuration that will also run in
  6046         -    a thread-enabled core." >&2;}
  6047         -	    fi
  6048         -	    ;;
  6049   6045       esac
  6050   6046   
  6051   6047   
  6052   6048   
  6053   6049   #--------------------------------------------------------------------
  6054   6050   # The statement below defines a collection of symbols related to
  6055   6051   # building as a shared library instead of a static library.
................................................................................
  6313   6309   else
  6314   6310     doRpath=yes
  6315   6311   fi
  6316   6312   
  6317   6313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
  6318   6314   $as_echo "$doRpath" >&6; }
  6319   6315   
  6320         -    # TEA specific: Cross-compiling options for Windows/CE builds?
  6321         -
  6322         -    if test "${TEA_PLATFORM}" = windows; then :
  6323         -
  6324         -	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5
  6325         -$as_echo_n "checking if Windows/CE build is requested... " >&6; }
  6326         -	# Check whether --enable-wince was given.
  6327         -if test "${enable_wince+set}" = set; then :
  6328         -  enableval=$enable_wince; doWince=$enableval
  6329         -else
  6330         -  doWince=no
  6331         -fi
  6332         -
  6333         -	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5
  6334         -$as_echo "$doWince" >&6; }
  6335         -
  6336         -fi
  6337         -
  6338   6316       # Set the variable "system" to hold the name and version number
  6339   6317       # for the system.
  6340   6318   
  6341   6319   
  6342   6320       { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
  6343   6321   $as_echo_n "checking system version... " >&6; }
  6344   6322   if ${tcl_cv_sys_version+:} false; then :
................................................................................
  6532   6510   		else
  6533   6511   		    { $as_echo "$as_me:${as_lineno-$LINENO}: result:    Using 64-bit $MACHINE mode" >&5
  6534   6512   $as_echo "   Using 64-bit $MACHINE mode" >&6; }
  6535   6513   		    do64bit_ok="yes"
  6536   6514   		fi
  6537   6515   	    fi
  6538   6516   
  6539         -	    if test "$doWince" != "no" ; then
  6540         -		if test "$do64bit" != "no" ; then
  6541         -		    as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5
  6542         -		fi
  6543         -		if test "$GCC" = "yes" ; then
  6544         -		    as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5
  6545         -		fi
  6546         -
  6547         -    # First, look for one uninstalled.
  6548         -    # the alternative search directory is invoked by --with-celib
  6549         -
  6550         -    if test x"${no_celib}" = x ; then
  6551         -	# we reset no_celib in case something fails here
  6552         -	no_celib=true
  6553         -
  6554         -# Check whether --with-celib was given.
  6555         -if test "${with_celib+set}" = set; then :
  6556         -  withval=$with_celib; with_celibconfig=${withval}
  6557         -fi
  6558         -
  6559         -	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5
  6560         -$as_echo_n "checking for Windows/CE celib directory... " >&6; }
  6561         -	if ${ac_cv_c_celibconfig+:} false; then :
  6562         -  $as_echo_n "(cached) " >&6
  6563         -else
  6564         -
  6565         -	    # First check to see if --with-celibconfig was specified.
  6566         -	    if test x"${with_celibconfig}" != x ; then
  6567         -		if test -d "${with_celibconfig}/inc" ; then
  6568         -		    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
  6569         -		else
  6570         -		    as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5
  6571         -		fi
  6572         -	    fi
  6573         -
  6574         -	    # then check for a celib library
  6575         -	    if test x"${ac_cv_c_celibconfig}" = x ; then
  6576         -		for i in \
  6577         -			../celib-palm-3.0 \
  6578         -			../celib \
  6579         -			../../celib-palm-3.0 \
  6580         -			../../celib \
  6581         -			`ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
  6582         -			${srcdir}/../celib-palm-3.0 \
  6583         -			${srcdir}/../celib \
  6584         -			`ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
  6585         -			; do
  6586         -		    if test -d "$i/inc" ; then
  6587         -			ac_cv_c_celibconfig=`(cd $i; pwd)`
  6588         -			break
  6589         -		    fi
  6590         -		done
  6591         -	    fi
  6592         -
  6593         -fi
  6594         -
  6595         -	if test x"${ac_cv_c_celibconfig}" = x ; then
  6596         -	    as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5
  6597         -	else
  6598         -	    no_celib=
  6599         -	    CELIB_DIR=${ac_cv_c_celibconfig}
  6600         -	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
  6601         -	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5
  6602         -$as_echo "found $CELIB_DIR" >&6; }
  6603         -	fi
  6604         -    fi
  6605         -
  6606         -		# Set defaults for common evc4/PPC2003 setup
  6607         -		# Currently Tcl requires 300+, possibly 420+ for sockets
  6608         -		CEVERSION=420; 		# could be 211 300 301 400 420 ...
  6609         -		TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
  6610         -		ARCH=ARM;		# could be ARM MIPS X86EM ...
  6611         -		PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
  6612         -		if test "$doWince" != "yes"; then
  6613         -		    # If !yes then the user specified something
  6614         -		    # Reset ARCH to allow user to skip specifying it
  6615         -		    ARCH=
  6616         -		    eval `echo $doWince | awk -F, '{ \
  6617         -	    if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
  6618         -	    if ($1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
  6619         -	    if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
  6620         -	    if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
  6621         -	    if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
  6622         -		    }'`
  6623         -		    if test "x${ARCH}" = "x" ; then
  6624         -			ARCH=$TARGETCPU;
  6625         -		    fi
  6626         -		fi
  6627         -		OSVERSION=WCE$CEVERSION;
  6628         -	    	if test "x${WCEROOT}" = "x" ; then
  6629         -			WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
  6630         -		    if test ! -d "${WCEROOT}" ; then
  6631         -			WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
  6632         -		    fi
  6633         -		fi
  6634         -		if test "x${SDKROOT}" = "x" ; then
  6635         -		    SDKROOT="C:/Program Files/Windows CE Tools"
  6636         -		    if test ! -d "${SDKROOT}" ; then
  6637         -			SDKROOT="C:/Windows CE Tools"
  6638         -		    fi
  6639         -		fi
  6640         -		WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
  6641         -		SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
  6642         -		if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
  6643         -		    -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
  6644         -		    as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5
  6645         -		    doWince="no"
  6646         -		else
  6647         -		    # We could PATH_NOSPACE these, but that's not important,
  6648         -		    # as long as we quote them when used.
  6649         -		    CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
  6650         -		    if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
  6651         -			CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
  6652         -		    fi
  6653         -		    CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
  6654         -    		fi
  6655         -	    fi
  6656         -
  6657   6517   	    if test "$GCC" != "yes" ; then
  6658   6518   	        if test "${SHARED_BUILD}" = "0" ; then
  6659   6519   		    runtime=-MT
  6660   6520   	        else
  6661   6521   		    runtime=-MD
  6662   6522   	        fi
  6663   6523   	        case "x`echo \${VisualStudioVersion}`" in
................................................................................
  6697   6557   	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
  6698   6558   	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
  6699   6559   	fi
  6700   6560   	PKG_LIBS="$PKG_LIBS $i"
  6701   6561       done
  6702   6562   
  6703   6563   
  6704         -		elif test "$doWince" != "no" ; then
  6705         -		    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
  6706         -		    if test "${TARGETCPU}" = "X86"; then
  6707         -			CC="\"${CEBINROOT}/cl.exe\""
  6708         -		    else
  6709         -			CC="\"${CEBINROOT}/cl${ARCH}.exe\""
  6710         -		    fi
  6711         -		    CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
  6712         -		    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
  6713         -		    arch=`echo ${ARCH} | awk '{print tolower($0)}'`
  6714         -		    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
  6715         -		    if test "${SHARED_BUILD}" = "1" ; then
  6716         -			# Static CE builds require static celib as well
  6717         -		    	defs="${defs} _DLL"
  6718         -		    fi
  6719         -		    for i in $defs ; do
  6720         -
  6721         -cat >>confdefs.h <<_ACEOF
  6722         -#define $i 1
  6723         -_ACEOF
  6724         -
  6725         -		    done
  6726         -
  6727         -cat >>confdefs.h <<_ACEOF
  6728         -#define _WIN32_WCE $CEVERSION
  6729         -_ACEOF
  6730         -
  6731         -
  6732         -cat >>confdefs.h <<_ACEOF
  6733         -#define UNDER_CE $CEVERSION
  6734         -_ACEOF
  6735         -
  6736         -		    CFLAGS_DEBUG="-nologo -Zi -Od"
  6737         -		    CFLAGS_OPTIMIZE="-nologo -Ox"
  6738         -		    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
  6739         -		    lflags="${lflags} -MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
  6740         -		    LINKBIN="\"${CEBINROOT}/link.exe\""
  6741         -
  6742   6564   		else
  6743   6565   		    RC="rc"
  6744   6566   		    lflags="${lflags} -nologo"
  6745   6567   		    LINKBIN="link"
  6746   6568   		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
  6747   6569   		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
  6748   6570   		fi
................................................................................
  6907   6729   		# For information on what debugtype is most useful, see:
  6908   6730   		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
  6909   6731   		# and also
  6910   6732   		# http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
  6911   6733   		# This essentially turns it all on.
  6912   6734   		LDFLAGS_DEBUG="-debug -debugtype:cv"
  6913   6735   		LDFLAGS_OPTIMIZE="-release"
  6914         -		if test "$doWince" != "no" ; then
  6915         -		    LDFLAGS_CONSOLE="-link ${lflags}"
  6916         -		    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
  6917         -		else
  6918         -		    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
  6919         -		    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
  6920         -		fi
         6736  +		LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
         6737  +		LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
  6921   6738   	    fi
  6922   6739   
  6923   6740   	    SHLIB_SUFFIX=".dll"
  6924   6741   	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
  6925   6742   
  6926   6743   	    TCL_LIB_VERSIONS_OK=nodots
  6927   6744       	    ;;
................................................................................
  7597   7414   		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
  7598   7415   
  7599   7416   fi
  7600   7417   	    # TEA specific: link shlib with current and compatibility version flags
  7601   7418   	    vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
  7602   7419   	    SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
  7603   7420   	    SHLIB_SUFFIX=".dylib"
  7604         -	    # Don't use -prebind when building for Mac OS X 10.4 or later only:
  7605         -	    if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
  7606         -		"`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then :
  7607         -
  7608         -		LDFLAGS="$LDFLAGS -prebind"
  7609         -fi
  7610   7421   	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
  7611   7422   	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
  7612   7423   $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
  7613   7424   if ${tcl_cv_ld_search_paths_first+:} false; then :
  7614   7425     $as_echo_n "(cached) " >&6
  7615   7426   else
  7616   7427   

Changes to generic/tdbcpostgres.c.

   783    783       Tcl_ListObjAppendElement(NULL, errorCode, Tcl_NewStringObj("TDBC", -1));
   784    784       Tcl_ListObjAppendElement(NULL, errorCode,
   785    785   			     Tcl_NewStringObj("GENERAL_ERROR", -1));
   786    786       Tcl_ListObjAppendElement(NULL, errorCode,
   787    787   			     Tcl_NewStringObj("HY000", -1));
   788    788       Tcl_ListObjAppendElement(NULL, errorCode, Tcl_NewStringObj("POSTGRES", -1));
   789    789       Tcl_ListObjAppendElement(NULL, errorCode,
   790         -			     Tcl_NewIntObj(-1));
          790  +			     Tcl_NewWideIntObj(-1));
   791    791       Tcl_SetObjErrorCode(interp, errorCode);
   792    792       Tcl_SetObjResult(interp, Tcl_NewStringObj(PQerrorMessage(pgPtr), -1));
   793    793   }
   794    794   
   795    795   /*
   796    796    *-----------------------------------------------------------------------------
   797    797    *
................................................................................
   834    834   	Tcl_ListObjAppendElement(NULL, errorCode,
   835    835   		Tcl_NewStringObj(Tdbc_MapSqlState(sqlstate), -1));
   836    836   	Tcl_ListObjAppendElement(NULL, errorCode,
   837    837   		Tcl_NewStringObj(sqlstate, -1));
   838    838   	Tcl_ListObjAppendElement(NULL, errorCode,
   839    839   				 Tcl_NewStringObj("POSTGRES", -1));
   840    840   	Tcl_ListObjAppendElement(NULL, errorCode,
   841         -		Tcl_NewIntObj(error));
          841  +		Tcl_NewWideIntObj(error));
   842    842   	Tcl_SetObjErrorCode(interp, errorCode);
   843    843   	if (error == PGRES_EMPTY_QUERY) {
   844    844   	    Tcl_SetObjResult(interp, Tcl_NewStringObj("empty query", -1));
   845    845   	} else {
   846    846   	    Tcl_SetObjResult(interp, Tcl_NewStringObj(
   847    847   		PQresultErrorField(res, PG_DIAG_MESSAGE_PRIMARY), -1));
   848    848   	}
................................................................................
  1131   1131   	    cdata->savedOpts[ConnOptions[optionIndex].info] =
  1132   1132   		Tcl_GetString(objv[i+1]);
  1133   1133   	    break;
  1134   1134   	case TYPE_ENCODING:
  1135   1135   	    encoding = Tcl_GetString(objv[i+1]);
  1136   1136   	    break;
  1137   1137   	case TYPE_ISOLATION:
  1138         -	    if (Tcl_GetIndexFromObj(interp, objv[i+1], TclIsolationLevels,
  1139         -				    "isolation level", TCL_EXACT, &isolation)
         1138  +	    if (Tcl_GetIndexFromObjStruct(interp, objv[i+1], TclIsolationLevels,
         1139  +				    sizeof(char *), "isolation level", TCL_EXACT, &isolation)
  1140   1140   		!= TCL_OK) {
  1141   1141   		return TCL_ERROR;
  1142   1142   	    }
  1143   1143   	    break;
  1144   1144   	case TYPE_PORT:
  1145   1145   	    if (Tcl_GetIntFromObj(interp, objv[i+1], &optionValue) != TCL_OK) {
  1146   1146   		return TCL_ERROR;
................................................................................
  1574   1574   		Tcl_DictObjPut(NULL, attrs, literals[LIT_SCALE],
  1575   1575   			Tcl_NewStringObj(PQgetvalue(res, i, 3), -1));
  1576   1576   	    }
  1577   1577   
  1578   1578   	    /* 4 is is_nullable column number */
  1579   1579   
  1580   1580   	    Tcl_DictObjPut(NULL, attrs, literals[LIT_NULLABLE],
  1581         -		    Tcl_NewIntObj(strcmp("YES",
         1581  +		    Tcl_NewWideIntObj(strcmp("YES",
  1582   1582   			    PQgetvalue(res, i, 4)) == 0));
  1583   1583   	    Tcl_DictObjPut(NULL, retval, name, attrs);
  1584   1584   	}
  1585   1585   
  1586   1586   	Tcl_DecrRefCount(sqlQuery);
  1587   1587   	Tcl_SetObjResult(interp, retval);
  1588   1588   	Tcl_DecrRefCount(retval);
................................................................................
  2372   2372   	    Tcl_FindHashEntry(&(pidata->typeNumHash),
  2373   2373   			      INT2PTR(sdata->paramDataTypes[i]));
  2374   2374   	if (typeHashEntry != NULL) {
  2375   2375   	    dataTypeName = (Tcl_Obj*) Tcl_GetHashValue(typeHashEntry);
  2376   2376   	    Tcl_DictObjPut(NULL, paramDesc, literals[LIT_TYPE], dataTypeName);
  2377   2377   	}
  2378   2378   	Tcl_DictObjPut(NULL, paramDesc, literals[LIT_PRECISION],
  2379         -		       Tcl_NewIntObj(sdata->params[i].precision));
         2379  +		       Tcl_NewWideIntObj(sdata->params[i].precision));
  2380   2380   	Tcl_DictObjPut(NULL, paramDesc, literals[LIT_SCALE],
  2381         -		       Tcl_NewIntObj(sdata->params[i].scale));
         2381  +		       Tcl_NewWideIntObj(sdata->params[i].scale));
  2382   2382   	Tcl_DictObjPut(NULL, retVal, paramName, paramDesc);
  2383   2383       }
  2384   2384   
  2385   2385       Tcl_SetObjResult(interp, retVal);
  2386   2386       return TCL_OK;
  2387   2387   }
  2388   2388   
................................................................................
  3230   3230       }
  3231   3231       if (Tdbc_InitStubs(interp) == NULL) {
  3232   3232   	return TCL_ERROR;
  3233   3233       }
  3234   3234   
  3235   3235       /* Provide the current package */
  3236   3236   
  3237         -    if (Tcl_PkgProvide(interp, "tdbc::postgres", PACKAGE_VERSION) != TCL_OK) {
         3237  +    if (Tcl_PkgProvideEx(interp, "tdbc::postgres", PACKAGE_VERSION, NULL) != TCL_OK) {
  3238   3238   	return TCL_ERROR;
  3239   3239       }
  3240   3240   
  3241   3241       /*
  3242   3242        * Create per-interpreter data for the package
  3243   3243        */
  3244   3244