<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[117623] trunk/base/configure</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/117623">117623</a></dd>
<dt>Author</dt> <dd>cal@macports.org</dd>
<dt>Date</dt> <dd>2014-03-05 14:21:43 -0800 (Wed, 05 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>configure: re-generate after <a href="https://trac.macports.org/changeset/117621">r117621</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbaseconfigure">trunk/base/configure</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbaseconfigure"></a>
<div class="modfile"><h4>Modified: trunk/base/configure (117622 => 117623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/configure        2014-03-05 22:21:12 UTC (rev 117622)
+++ trunk/base/configure        2014-03-05 22:21:43 UTC (rev 117623)
</span><span class="lines">@@ -623,25 +623,38 @@
</span><span class="cx"> #endif&quot;
</span><span class="cx"> 
</span><span class="cx"> ac_default_prefix=/opt/local
</span><del>-enable_option_checking=no
</del><span class="cx"> ac_subst_vars='LTLIBOBJS
</span><span class="cx"> LIBOBJS
</span><ins>+INCLUDES
+INTREE_TCLSH
+TCLSH
+TCL_PACKAGE_PATH
+TCL_PREFIX
+SHLIB_SUFFIX
+SHLIB_CFLAGS
+STLIB_LD
+SHLIB_LD
+TCL_STUB_LIB_SPEC
+TCL_STUB_LIB_FLAG
+TCL_STUB_LIB_FILE
+TCL_LIB_SPEC
+TCL_LIB_FLAG
+TCL_LIB_FILE
+TCL_SRC_DIR
+TCL_BIN_DIR
+TCL_VERSION
+VENDOR_TCLLIB_INSTALL
+VENDOR_TCLLIB_SUBDIR
+VENDOR_TCLTHREAD_INSTALL
+VENDOR_TCLTHREAD_SUBDIR
+VENDOR_DESTROOT
+VENDOR_TCL_INSTALL
+VENDOR_TCL_SUBDIR
</ins><span class="cx"> macports_tcl_dir
</span><span class="cx"> localstatedir_expanded
</span><span class="cx"> MPCONFIGDIR_EXPANDED
</span><span class="cx"> prefix_expanded
</span><del>-OUR_INCLUDED_PACKAGES
-TCL_CC
-TCL_DEFS
-SHLIB_SUFFIX
-SHLIB_LDFLAGS
-SHLIB_CFLAGS
-SHLIB_LD
-STLIB_LD
-INCLUDES
-subdirs
</del><span class="cx"> TRACEMODE_SUPPORT
</span><del>-SQLITE3_TCL_DIR
</del><span class="cx"> LDFLAGS_SQLITE3
</span><span class="cx"> CFLAGS_SQLITE3
</span><span class="cx"> PKG_CONFIG
</span><span class="lines">@@ -650,17 +663,6 @@
</span><span class="cx"> CURL_CONFIG
</span><span class="cx"> OS_MAJOR
</span><span class="cx"> OS_PLATFORM
</span><del>-TCLSH
-TCL_INCLUDES
-TCL_STUB_LIB_SPEC
-TCL_STUB_LIB_FLAG
-TCL_STUB_LIB_FILE
-TCL_LIB_SPEC
-TCL_LIB_FLAG
-TCL_LIB_FILE
-TCL_SRC_DIR
-TCL_BIN_DIR
-TCL_VERSION
</del><span class="cx"> READLINE_LIBS
</span><span class="cx"> MD5_LIBS
</span><span class="cx"> READLINK_IS_NOT_P1003_1A
</span><span class="lines">@@ -671,7 +673,6 @@
</span><span class="cx"> MPFRAMEWORKSDIR
</span><span class="cx"> MPAPPLICATIONSDIR
</span><span class="cx"> DSTMODE
</span><del>-TCL_PACKAGE_DIR
</del><span class="cx"> RUNUSR
</span><span class="cx"> DSTGRP
</span><span class="cx"> DSTUSR
</span><span class="lines">@@ -838,13 +839,8 @@
</span><span class="cx"> with_frameworks_dir
</span><span class="cx"> with_universal_archs
</span><span class="cx"> enable_readline
</span><del>-with_tcl
-with_tclinclude
-with_tclpackage
</del><span class="cx"> with_curlprefix
</span><span class="cx"> with_sqlite3prefix
</span><del>-with_tcl_sqlite3
-with_included_tclthread
</del><span class="cx"> enable_shared
</span><span class="cx"> '
</span><span class="cx">       ac_precious_vars='build_alias
</span><span class="lines">@@ -876,8 +872,8 @@
</span><span class="cx"> XZ
</span><span class="cx"> OBJCPP
</span><span class="cx"> CPP'
</span><del>-ac_subdirs_all='src/thread2.6'
</del><span class="cx"> 
</span><ins>+
</ins><span class="cx"> # Initialize some variables set by options.
</span><span class="cx"> ac_init_help=
</span><span class="cx"> ac_init_version=false
</span><span class="lines">@@ -1521,14 +1517,8 @@
</span><span class="cx">   --with-frameworks-dir   Frameworks installation directory.
</span><span class="cx">   --with-universal-archs=&quot;CPU&quot;
</span><span class="cx">                           Universal CPU architectures (space separated)
</span><del>-  --with-tcl              directory containing tcl configuration (tclConfig.sh)
-  --with-tclinclude       directory containing the public Tcl header files.
-  --with-tclpackage       Tcl package installation directory.
</del><span class="cx">   --with-curlprefix       base directory for the cURL install '/usr', '/usr/local',...
</span><span class="cx">   --with-sqlite3prefix       base directory for the sqlite3 install '/usr', '/usr/local',...
</span><del>-  --with-tcl-sqlite3=DIR  directory for Tcl sqlite3 (default /usr/lib/sqlite3)
-  --with-included-tclthread
-                          install included Thread package.
</del><span class="cx"> 
</span><span class="cx"> Some influential environment variables:
</span><span class="cx">   CC          C compiler command
</span><span class="lines">@@ -7795,22 +7785,22 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-    { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for whether we will build daemondo&quot; &gt;&amp;5
</del><ins>+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for whether we will build daemondo&quot; &gt;&amp;5
</ins><span class="cx"> $as_echo_n &quot;checking for whether we will build daemondo... &quot; &gt;&amp;6; }
</span><del>-    result=no
</del><ins>+        result=no
</ins><span class="cx">         case $host_os in
</span><del>-        darwin*)
-                if test &quot;x$mp_cv_have_framework_corefoundation&quot; == &quot;xyes&quot; &amp;&amp;
-                   test &quot;x$mp_cv_have_framework_systemconfiguration&quot; == &quot;xyes&quot; &amp;&amp;
-                   test &quot;x$mp_cv_have_framework_iokit&quot; == &quot;xyes&quot; &amp;&amp;
-                   test &quot;x$mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter&quot; == &quot;xyes&quot;; then
-                        result=yes
-                        EXTRA_PROGS=&quot;$EXTRA_PROGS daemondo&quot;
-                        ac_config_files=&quot;$ac_config_files src/programs/daemondo/Makefile&quot;
</del><ins>+                darwin*)
+                        if test &quot;x$mp_cv_have_framework_corefoundation&quot; == &quot;xyes&quot; &amp;&amp;
+                           test &quot;x$mp_cv_have_framework_systemconfiguration&quot; == &quot;xyes&quot; &amp;&amp;
+                           test &quot;x$mp_cv_have_framework_iokit&quot; == &quot;xyes&quot; &amp;&amp;
+                           test &quot;x$mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter&quot; == &quot;xyes&quot;; then
+                                result=yes
+                                EXTRA_PROGS=&quot;$EXTRA_PROGS daemondo&quot;
+                                ac_config_files=&quot;$ac_config_files src/programs/daemondo/Makefile&quot;
</ins><span class="cx"> 
</span><del>-                fi
</del><ins>+                        fi
</ins><span class="cx">                 ;
</span><del>-        *)
</del><ins>+                *)
</ins><span class="cx">         esac
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: ${result}&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;${result}&quot; &gt;&amp;6; }
</span><span class="lines">@@ -7900,7 +7890,6 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx">         if test &quot;${ROOTPRIVS+set}&quot; = set; then
</span><del>-
</del><span class="cx">                 # Set install-user to current user
</span><span class="cx">                 { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for install user&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for install user... &quot; &gt;&amp;6; }
</span><span class="lines">@@ -7924,21 +7913,6 @@
</span><span class="cx">                 { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $RUNUSR&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$RUNUSR&quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><del>-
-                # Set Tcl package directory to ~/Library/Tcl
-            { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl package directory&quot; &gt;&amp;5
-$as_echo_n &quot;checking for Tcl package directory... &quot; &gt;&amp;6; }
-                ac_cv_c_tclpkgd=`eval echo ~$DSTUSR/Library/Tcl`
-            # Convert to a native path and substitute into the output files.
-            PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
-            TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
-
-                if test x&quot;${ac_cv_c_tclpkgd}&quot; = x ; then
-                        as_fn_error $? &quot;Tcl package directory not found.  Please specify its location with --with-tclpackage&quot; &quot;$LINENO&quot; 5
-            else
-                        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclpkgd}&quot; &gt;&amp;5
-$as_echo &quot;${ac_cv_c_tclpkgd}&quot; &gt;&amp;6; }
-            fi
</del><span class="cx">         fi
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -7957,7 +7931,7 @@
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for install user&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for install user... &quot; &gt;&amp;6; }
</span><span class="cx">         if test &quot;x$DSTUSR&quot; = &quot;x&quot; ; then
</span><del>-           DSTUSR=root
</del><ins>+                DSTUSR=root
</ins><span class="cx">         fi
</span><span class="cx"> 
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $DSTUSR&quot; &gt;&amp;5
</span><span class="lines">@@ -7977,21 +7951,20 @@
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for install group&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for install group... &quot; &gt;&amp;6; }
</span><span class="cx">         if test &quot;x$DSTGRP&quot; = &quot;x&quot; ; then
</span><del>-
-           case $host_os in
-           darwin*)
-                DSTGRP=&quot;admin&quot;
-                ;
-           freebsd*)
-                DSTGRP=&quot;wheel&quot;
-                ;
-           linux*)
-                DSTGRP=&quot;root&quot;
-                ;
-           *)
-                DSTGRP=&quot;wheel&quot;
-                ;
-           esac
</del><ins>+                case $host_os in
+                        darwin*)
+                                DSTGRP=&quot;admin&quot;
+                        ;
+                        freebsd*)
+                                DSTGRP=&quot;wheel&quot;
+                        ;
+                        linux*)
+                                DSTGRP=&quot;root&quot;
+                        ;
+                        *)
+                                DSTGRP=&quot;wheel&quot;
+                        ;
+                esac
</ins><span class="cx">         fi
</span><span class="cx"> 
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $DSTGRP&quot; &gt;&amp;5
</span><span class="lines">@@ -8011,7 +7984,7 @@
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for macports user&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for macports user... &quot; &gt;&amp;6; }
</span><span class="cx">         if test &quot;x$RUNUSR&quot; = &quot;x&quot; ; then
</span><del>-           RUNUSR=macports
</del><ins>+                RUNUSR=macports
</ins><span class="cx">         fi
</span><span class="cx"> 
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $RUNUSR&quot; &gt;&amp;5
</span><span class="lines">@@ -8031,7 +8004,7 @@
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking what permissions to use for installation directories&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking what permissions to use for installation directories... &quot; &gt;&amp;6; }
</span><span class="cx">         if test &quot;x$DSTMODE&quot; = &quot;x&quot; ; then
</span><del>-           DSTMODE=0755
</del><ins>+                DSTMODE=0755
</ins><span class="cx">         fi
</span><span class="cx"> 
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $DSTMODE&quot; &gt;&amp;5
</span><span class="lines">@@ -8051,7 +8024,7 @@
</span><span class="cx">         if test &quot;${SHAREDIR+set}&quot; = set; then
</span><span class="cx">                 { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking whether to share the install directory with all members of the install group&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking whether to share the install directory with all members of the install group... &quot; &gt;&amp;6; }
</span><del>-            DSTMODE=0775
</del><ins>+                DSTMODE=0775
</ins><span class="cx"> 
</span><span class="cx">                 { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $DSTMODE&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$DSTMODE&quot; &gt;&amp;6; }
</span><span class="lines">@@ -8070,25 +8043,25 @@
</span><span class="cx"> fi
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-    oldprefix=$prefix
-    if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
-        prefix=$ac_default_prefix
-    fi
-    { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Applications installation directory&quot; &gt;&amp;5
</del><ins>+        oldprefix=$prefix
+        if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
+                prefix=$ac_default_prefix
+        fi
+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Applications installation directory&quot; &gt;&amp;5
</ins><span class="cx"> $as_echo_n &quot;checking for Applications installation directory... &quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><span class="cx">         if test &quot;x$MPAPPLICATIONSDIR&quot; = &quot;x&quot; ; then
</span><del>-            if test &quot;$DSTUSR&quot; = &quot;root&quot; ; then
-                MPAPPLICATIONSDIR=&quot;/Applications/MacPorts&quot;
-            else
-                MPAPPLICATIONSDIR=&quot;$(eval echo ~$DSTUSR)/Applications/MacPorts&quot;
-            fi
</del><ins>+                if test &quot;$DSTUSR&quot; = &quot;root&quot; ; then
+                        MPAPPLICATIONSDIR=&quot;/Applications/MacPorts&quot;
+                else
+                        MPAPPLICATIONSDIR=&quot;$(eval echo ~$DSTUSR)/Applications/MacPorts&quot;
+                fi
</ins><span class="cx">         fi
</span><span class="cx"> 
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $MPAPPLICATIONSDIR&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$MPAPPLICATIONSDIR&quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><del>-    prefix=$oldprefix
</del><ins>+        prefix=$oldprefix
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -8100,11 +8073,11 @@
</span><span class="cx"> fi
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-    oldprefix=$prefix
-    if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
-        prefix=$ac_default_prefix
-    fi
-    { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Frameworks installation directory&quot; &gt;&amp;5
</del><ins>+        oldprefix=$prefix
+        if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
+                prefix=$ac_default_prefix
+        fi
+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Frameworks installation directory&quot; &gt;&amp;5
</ins><span class="cx"> $as_echo_n &quot;checking for Frameworks installation directory... &quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><span class="cx">         if test &quot;x$MPFRAMEWORKSDIR&quot; = &quot;x&quot; ; then
</span><span class="lines">@@ -8114,7 +8087,7 @@
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $MPFRAMEWORKSDIR&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$MPFRAMEWORKSDIR&quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><del>-    prefix=$oldprefix
</del><ins>+        prefix=$oldprefix
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> # Check for universal options
</span><span class="lines">@@ -8126,28 +8099,28 @@
</span><span class="cx"> fi
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-  if test &quot;x$UNIVERSAL_ARCHS&quot; = &quot;x&quot;; then
-    case &quot;$MACOSX_VERSION&quot; in
-      10.1[0-9]*)
-        UNIVERSAL_ARCHS=&quot;x86_64 i386&quot;
-        ;;
-      10.[0-5]*)
-        UNIVERSAL_ARCHS=&quot;i386 ppc&quot;
-        ;;
-      *)
-        UNIVERSAL_ARCHS=&quot;x86_64 i386&quot;
-        ;;
-    esac
-  fi
</del><ins>+        if test &quot;x$UNIVERSAL_ARCHS&quot; = &quot;x&quot;; then
+                case &quot;$MACOSX_VERSION&quot; in
+                        10.1[0-9]*)
+                                UNIVERSAL_ARCHS=&quot;x86_64 i386&quot;
+                        ;
+                        10.[0-5]*)
+                                UNIVERSAL_ARCHS=&quot;i386 ppc&quot;
+                        ;
+                        *)
+                                UNIVERSAL_ARCHS=&quot;x86_64 i386&quot;
+                        ;
+                esac
+        fi
</ins><span class="cx"> 
</span><del>-  UNIVERSAL_ARCHFLAGS=
-  for arch in $UNIVERSAL_ARCHS; do
-    UNIVERSAL_ARCHFLAGS=&quot;$UNIVERSAL_ARCHFLAGS -arch $arch&quot;
-  done
</del><ins>+        UNIVERSAL_ARCHFLAGS=
+        for arch in $UNIVERSAL_ARCHS; do
+                UNIVERSAL_ARCHFLAGS=&quot;$UNIVERSAL_ARCHFLAGS -arch $arch&quot;
+        done
</ins><span class="cx"> 
</span><del>-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Universal CPU architectures&quot; &gt;&amp;5
</del><ins>+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Universal CPU architectures&quot; &gt;&amp;5
</ins><span class="cx"> $as_echo_n &quot;checking for Universal CPU architectures... &quot; &gt;&amp;6; }
</span><del>-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $UNIVERSAL_ARCHS&quot; &gt;&amp;5
</del><ins>+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $UNIVERSAL_ARCHS&quot; &gt;&amp;5
</ins><span class="cx"> $as_echo &quot;$UNIVERSAL_ARCHS&quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -8619,8 +8592,6 @@
</span><span class="cx"> done
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-INCLUDES=&quot;-I.. -I. $INCLUDES&quot;
-
</del><span class="cx"> # Checks for library functions.
</span><span class="cx"> for ac_func in OSAtomicCompareAndSwap32 OSAtomicCompareAndSwap64 OSAtomicCompareAndSwapPtr bzero \
</span><span class="cx">         clearenv copyfile fgetln flock fls kqueue lockf memset posix_spawn setmode strcasecmp strlcat \
</span><span class="lines">@@ -8698,7 +8669,6 @@
</span><span class="cx"> 
</span><span class="cx"> else
</span><span class="cx"> 
</span><del>-
</del><span class="cx">         # Check for libmd from FreeBSD, which is preferred
</span><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for MD5File in -lmd&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for MD5File in -lmd... &quot; &gt;&amp;6; }
</span><span class="lines">@@ -9048,428 +9018,18 @@
</span><span class="cx"> $as_echo &quot;#define MIN_USABLE_GID 500&quot; &gt;&gt;confdefs.h
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-# Load tclConfig.sh
</del><ins>+# Substitute platform for base compatibility check
</ins><span class="cx"> 
</span><del>-    #
-    # Ok, lets find the tcl configuration
-    # First, look for one uninstalled.
-    # the alternative search directory is invoked by --with-tcl
-    #
-
-    if test x&quot;${no_tcl}&quot; = x ; then
-        # we reset no_tcl in case something fails here
-        no_tcl=true
-
-# Check whether --with-tcl was given.
-if test &quot;${with_tcl+set}&quot; = set; then :
-  withval=$with_tcl; with_tclconfig=${withval}
-fi
-
-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl configuration&quot; &gt;&amp;5
-$as_echo_n &quot;checking for Tcl configuration... &quot; &gt;&amp;6; }
-        if ${ac_cv_c_tclconfig+:} false; then :
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-
-
-            # First check to see if --with-tcl was specified.
-            if test x&quot;${with_tclconfig}&quot; != x ; then
-                if test -f &quot;${with_tclconfig}/tclConfig.sh&quot; ; then
-                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
-                else
-                    as_fn_error $? &quot;${with_tclconfig} directory doesn't contain tclConfig.sh&quot; &quot;$LINENO&quot; 5
-                fi
-            fi
-
-            # then check for a private Tcl installation
-            if test x&quot;${ac_cv_c_tclconfig}&quot; = x ; then
-                for i in \
-                        ../tcl \
-                        `ls -dr ../tcl[8-9].[0-9]* 2&gt;/dev/null` \
-                        ../../tcl \
-                        `ls -dr ../../tcl[8-9].[0-9]* 2&gt;/dev/null` \
-                        ../../../tcl \
-                        `ls -dr ../../../tcl[8-9].[0-9]* 2&gt;/dev/null` ; do
-                    if test -f &quot;$i/unix/tclConfig.sh&quot; ; then
-                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
-                        break
-                    fi
-                done
-            fi
-
-            # check in a few common install locations
-            if test x&quot;${ac_cv_c_tclconfig}&quot; = x ; then
-                for i in `ls -d ${libdir} 2&gt;/dev/null` \
-                        `ls -d /usr/lib 2&gt;/dev/null` \
-                        `ls -d /usr/local/lib 2&gt;/dev/null` \
-                        `ls -d /usr/contrib/lib 2&gt;/dev/null` \
-                        `ls -d /usr/pkg/lib 2&gt;/dev/null` \
-                        `ls -d /usr/local/lib/tcl8.6 2&gt;/dev/null` \
-                        `ls -d /usr/local/lib/tcl8.5 2&gt;/dev/null` \
-                        `ls -d /usr/local/lib/tcl8.4 2&gt;/dev/null` \
-                        `ls -d /usr/lib/tcl8.6 2&gt;/dev/null` \
-                        `ls -d /usr/lib/tcl8.5 2&gt;/dev/null` \
-                        `ls -d /usr/lib/tcl8.4 2&gt;/dev/null` \
-                         do
-                    if test -f &quot;$i/tclConfig.sh&quot; ; then
-                        ac_cv_c_tclconfig=`(cd $i; pwd)`
-                        break
-                    fi
-                done
-            fi
-
-            # check in a few other private locations
-            if test x&quot;${ac_cv_c_tclconfig}&quot; = x ; then
-                for i in \
-                        ${srcdir}/../tcl \
-                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2&gt;/dev/null` ; do
-                    if test -f &quot;$i/unix/tclConfig.sh&quot; ; then
-                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
-                    break
-                fi
-                done
-            fi
-
-fi
-
-
-        if test x&quot;${ac_cv_c_tclconfig}&quot; = x ; then
-            TCL_BIN_DIR=&quot;# no Tcl configs found&quot;
-            as_fn_error $? &quot;Can't find Tcl configuration definitions&quot; &quot;$LINENO&quot; 5
-        else
-            no_tcl=
-            TCL_BIN_DIR=${ac_cv_c_tclconfig}
-            { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh&quot; &gt;&amp;5
-$as_echo &quot;found $TCL_BIN_DIR/tclConfig.sh&quot; &gt;&amp;6; }
-        fi
-    fi
-
-
-    { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh&quot; &gt;&amp;5
-$as_echo_n &quot;checking for existence of $TCL_BIN_DIR/tclConfig.sh... &quot; &gt;&amp;6; }
-
-    if test -f &quot;$TCL_BIN_DIR/tclConfig.sh&quot; ; then
-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: loading&quot; &gt;&amp;5
-$as_echo &quot;loading&quot; &gt;&amp;6; }
-        . $TCL_BIN_DIR/tclConfig.sh
-    else
-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: file not found&quot; &gt;&amp;5
-$as_echo &quot;file not found&quot; &gt;&amp;6; }
-    fi
-
-    #
-    # If the TCL_BIN_DIR is the build directory (not the install directory),
-    # then set the common variable name to the value of the build variables.
-    # For example, the variable TCL_LIB_SPEC will be set to the value
-    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
-    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
-    # installed and uninstalled version of Tcl.
-    #
-
-    if test -f $TCL_BIN_DIR/Makefile ; then
-        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
-        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
-        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
-    fi
-
-    #
-    # eval is required to do the TCL_DBGX substitution
-    #
-
-    eval &quot;TCL_LIB_FILE=\&quot;${TCL_LIB_FILE}\&quot;&quot;
-    eval &quot;TCL_LIB_FLAG=\&quot;${TCL_LIB_FLAG}\&quot;&quot;
-    eval &quot;TCL_LIB_SPEC=\&quot;${TCL_LIB_SPEC}\&quot;&quot;
-
-    eval &quot;TCL_STUB_LIB_FILE=\&quot;${TCL_STUB_LIB_FILE}\&quot;&quot;
-    eval &quot;TCL_STUB_LIB_FLAG=\&quot;${TCL_STUB_LIB_FLAG}\&quot;&quot;
-    eval &quot;TCL_STUB_LIB_SPEC=\&quot;${TCL_STUB_LIB_SPEC}\&quot;&quot;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-# Check for Tcl public headers
-CYGPATH=echo
-
-    { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl public headers&quot; &gt;&amp;5
-$as_echo_n &quot;checking for Tcl public headers... &quot; &gt;&amp;6; }
-
-
-# Check whether --with-tclinclude was given.
-if test &quot;${with_tclinclude+set}&quot; = set; then :
-  withval=$with_tclinclude; with_tclinclude=${withval}
-fi
-
-
-    if test x&quot;${with_tclinclude}&quot; != x ; then
-        if test -f &quot;${with_tclinclude}/tcl.h&quot; ; then
-            ac_cv_c_tclh=${with_tclinclude}
-        else
-            as_fn_error $? &quot;${with_tclinclude} directory does not contain Tcl public header file tcl.h&quot; &quot;$LINENO&quot; 5
-        fi
-    else
-        if ${ac_cv_c_tclh+:} false; then :
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-
-            # Use the value from --with-tclinclude, if it was given
-
-            if test x&quot;${with_tclinclude}&quot; != x ; then
-                ac_cv_c_tclh=${with_tclinclude}
-            else
-                # Do NOT check in $includedir, we need to prevent automatic
-                # location of Tcl headers in $prefix/include unless explicitly
-                # specified with the --with-tclinclude option. But go ahead and
-                # check some other possible local system locations.
-
-                for i in \
-                        /usr/include /usr/local/include /usr/local/include/tcl${TCL_VERSION} /usr/include/tcl${TCL_VERSION}; do
-                    if test -f &quot;$i/tcl.h&quot; ; then
-                        ac_cv_c_tclh=$i
-                        break
-                    fi
-                done
-            fi
-
-fi
-
-    fi
-
-    # Print a message based on how we determined the include path
-
-    if test x&quot;${ac_cv_c_tclh}&quot; = x ; then
-        as_fn_error $? &quot;tcl.h not found.  Please specify its location with --with-tclinclude&quot; &quot;$LINENO&quot; 5
-    else
-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}&quot; &gt;&amp;5
-$as_echo &quot;${ac_cv_c_tclh}&quot; &gt;&amp;6; }
-    fi
-
-    # Convert to a native path and substitute into the output files.
-
-    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
-
-    TCL_INCLUDES=-I\&quot;${INCLUDE_DIR_NATIVE}\&quot;
-
-
-
-
-# Check for tclsh binary
-
-
-
-        case $host_os in
-                freebsd*)
-                        # FreeBSD installs a dummy tclsh (annoying)
-                        # Look for a real versioned tclsh with threads first
-                        # Look for a real versioned tclsh without threads second
-                        # Extract the first word of &quot;tclsh${TCL_VERSION}-threads tclsh${TCL_VERSION} tclsh&quot;, so it can be a program name with args.
-set dummy tclsh${TCL_VERSION}-threads tclsh${TCL_VERSION} tclsh; ac_word=$2
-{ $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for $ac_word&quot; &gt;&amp;5
-$as_echo_n &quot;checking for $ac_word... &quot; &gt;&amp;6; }
-if ${ac_cv_path_TCLSH+:} false; then :
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  case $TCLSH in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_TCLSH=&quot;$TCLSH&quot; # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if as_fn_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
-    ac_cv_path_TCLSH=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
-    $as_echo &quot;$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-  ;;
-esac
-fi
-TCLSH=$ac_cv_path_TCLSH
-if test -n &quot;$TCLSH&quot;; then
-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $TCLSH&quot; &gt;&amp;5
-$as_echo &quot;$TCLSH&quot; &gt;&amp;6; }
-else
-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: no&quot; &gt;&amp;5
-$as_echo &quot;no&quot; &gt;&amp;6; }
-fi
-
-
-                        ;
-                *)
-                        # Otherwise, look for a non-versioned tclsh
-                        # Extract the first word of &quot;tclsh tclsh${TCL_VERSION}&quot;, so it can be a program name with args.
-set dummy tclsh tclsh${TCL_VERSION}; ac_word=$2
-{ $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for $ac_word&quot; &gt;&amp;5
-$as_echo_n &quot;checking for $ac_word... &quot; &gt;&amp;6; }
-if ${ac_cv_path_TCLSH+:} false; then :
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  case $TCLSH in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_TCLSH=&quot;$TCLSH&quot; # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if as_fn_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
-    ac_cv_path_TCLSH=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
-    $as_echo &quot;$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-  ;;
-esac
-fi
-TCLSH=$ac_cv_path_TCLSH
-if test -n &quot;$TCLSH&quot;; then
-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $TCLSH&quot; &gt;&amp;5
-$as_echo &quot;$TCLSH&quot; &gt;&amp;6; }
-else
-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: no&quot; &gt;&amp;5
-$as_echo &quot;no&quot; &gt;&amp;6; }
-fi
-
-
-                        ;
-        esac
-        if test &quot;x$TCLSH&quot; = &quot;x&quot; ; then
-                as_fn_error $? &quot;Could not find tclsh&quot; &quot;$LINENO&quot; 5
-        fi
-
-
-
-
-# Substitute Tcl platform for base compatibility check
-
-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl target platform&quot; &gt;&amp;5
-$as_echo_n &quot;checking for Tcl target platform... &quot; &gt;&amp;6; }
-        OS_PLATFORM=`echo 'puts -nonewline [string tolower \$tcl_platform(os)]' | $TCLSH`
-        OS_MAJOR=`echo 'puts -nonewline [lindex [split \$tcl_platform(osVersion) .] 0]' | $TCLSH`
</del><ins>+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for target platform&quot; &gt;&amp;5
+$as_echo_n &quot;checking for target platform... &quot; &gt;&amp;6; }
+        OS_PLATFORM=`uname -s | tr '[:upper:]' '[:lower:]'`
+                OS_MAJOR=`uname -r | cut -d '.' -f 1`
</ins><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $OS_PLATFORM $OS_MAJOR&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$OS_PLATFORM $OS_MAJOR&quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-# Check for Tcl package path
-
-
-
-    { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl package directory&quot; &gt;&amp;5
-$as_echo_n &quot;checking for Tcl package directory... &quot; &gt;&amp;6; }
-
-
-# Check whether --with-tclpackage was given.
-if test &quot;${with_tclpackage+set}&quot; = set; then :
-  withval=$with_tclpackage; with_tclpackagedir=${withval}
-fi
-
-
-    if test x&quot;${with_tclpackagedir}&quot; != x ; then
-        ac_cv_c_tclpkgd=${with_tclpackagedir}
-    else
-        if ${ac_cv_c_tclpkgd+:} false; then :
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-
-            # Use the value from --with-tclpackage, if it was given
-
-            if test x&quot;${with_tclpackagedir}&quot; != x ; then
-                echo &quot;tclpackagedir&quot;
-                ac_cv_c_tclpkgd=${with_tclpackagedir}
-            else
-                # On darwin we can do some intelligent guessing
-                case $host_os in
-                    darwin*)
-                            tcl_autopath=`echo 'puts -nonewline \$auto_path' | $TCLSH`
-                        for path in $tcl_autopath; do
-                        if test &quot;$DSTUSR&quot; = &quot;root&quot; ; then
-                            if test &quot;$path&quot; = &quot;/Library/Tcl&quot;; then
-                                ac_cv_c_tclpkgd=&quot;$path&quot;
-                                break
-                            fi
-                            if test &quot;$path&quot; = &quot;/System/Library/Tcl&quot;; then
-                                if test -d &quot;$path&quot;; then
-                                    ac_cv_c_tclpkgd=&quot;$path&quot;
-                                    break
-                                fi
-                            fi
-                        elif test &quot;$path&quot; = &quot;~/Library/Tcl&quot;; then
-                            ac_cv_c_tclpkgd=`eval echo ~$DSTUSR/Library/Tcl`
-                            break
-                        fi
-                        done
-                    ;;
-                esac
-                    if test x&quot;${ac_cv_c_tclpkgd}&quot; = x ; then
-                    # Fudge a path from the first entry in the auto_path
-                    tcl_pkgpath=`echo 'puts -nonewline [lindex \$auto_path 0]' | $TCLSH`
-                    if test -d &quot;$tcl_pkgpath&quot;; then
-                        ac_cv_c_tclpkgd=&quot;$tcl_pkgpath&quot;
-                    fi
-                    # If the first entry does not exist, do nothing
-                fi
-            fi
-
-fi
-
-    fi
-
-    if test x&quot;${ac_cv_c_tclpkgd}&quot; = x ; then
-        as_fn_error $? &quot;Tcl package directory not found.  Please specify its location with --with-tclpackage&quot; &quot;$LINENO&quot; 5
-    else
-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclpkgd}&quot; &gt;&amp;5
-$as_echo &quot;${ac_cv_c_tclpkgd}&quot; &gt;&amp;6; }
-    fi
-
-    # Convert to a native path and substitute into the output files.
-
-    PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
-
-    TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
-
-
-
-
-# Check if thread is enabled.
-
-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking whether tclsh was compiled with threads&quot; &gt;&amp;5
-$as_echo_n &quot;checking whether tclsh was compiled with threads... &quot; &gt;&amp;6; }
-        tcl_threadenabled=`echo 'puts -nonewline [info exists tcl_platform(threaded)]' | $TCLSH`
-        if test &quot;$tcl_threadenabled&quot; = &quot;1&quot; ; then
-                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: yes&quot; &gt;&amp;5
-$as_echo &quot;yes&quot; &gt;&amp;6; }
-        else
-                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: no&quot; &gt;&amp;5
-$as_echo &quot;no&quot; &gt;&amp;6; }
-                as_fn_error $? &quot;tcl wasn't compiled with threads enabled&quot; &quot;$LINENO&quot; 5
-        fi
-
-
</del><span class="cx"> ## libcurl
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -9661,10 +9221,10 @@
</span><span class="cx">                 LDFLAGS_SQLITE3=&quot;-L${sqlite3prefix}/lib -lsqlite3&quot;
</span><span class="cx">         fi
</span><span class="cx"> 
</span><del>-    # check if we have sqlite3ext.h, using the appropriate cppflags
-    CPPFLAGS_OLD=&quot;${CPPFLAGS}&quot;
-    CPPFLAGS=&quot;${CPPFLAGS} ${CFLAGS_SQLITE3}&quot;
-    for ac_header in sqlite3ext.h
</del><ins>+        # check if we have sqlite3ext.h, using the appropriate cppflags
+        CPPFLAGS_OLD=&quot;${CPPFLAGS}&quot;
+        CPPFLAGS=&quot;${CPPFLAGS} ${CFLAGS_SQLITE3}&quot;
+        for ac_header in sqlite3ext.h
</ins><span class="cx"> do :
</span><span class="cx">   ac_fn_c_check_header_mongrel &quot;$LINENO&quot; &quot;sqlite3ext.h&quot; &quot;ac_cv_header_sqlite3ext_h&quot; &quot;$ac_includes_default&quot;
</span><span class="cx"> if test &quot;x$ac_cv_header_sqlite3ext_h&quot; = xyes; then :
</span><span class="lines">@@ -9676,52 +9236,15 @@
</span><span class="cx"> 
</span><span class="cx"> done
</span><span class="cx"> 
</span><del>-    CPPFLAGS=&quot;${CPPFLAGS_OLD}&quot;
</del><ins>+        CPPFLAGS=&quot;${CPPFLAGS_OLD}&quot;
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-        # now the sqlite Tcl bindings
</del><span class="cx"> 
</span><del>-# Check whether --with-tcl-sqlite3 was given.
-if test &quot;${with_tcl_sqlite3+set}&quot; = set; then :
-  withval=$with_tcl_sqlite3; mp_sqlite3_dir=$withval
-fi
</del><span class="cx"> 
</span><span class="cx"> 
</span><del>-    if test &quot;x$mp_sqlite3_dir&quot; = &quot;x&quot;; then
-        case $host_os in
-            darwin*)
-                mp_sqlite3_dir=&quot;/usr/lib/sqlite3&quot;
-                ;;
-            freebsd*)
-                mp_sqlite3_dir=&quot;/usr/local/lib/sqlite&quot;
-                ;;
-            *)
-                mp_sqlite3_dir=&quot;/usr/share/tcl${TCL_VERSION}/sqlite3&quot;
-                ;;
-        esac
-    fi
</del><span class="cx"> 
</span><del>-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl sqlite3 location&quot; &gt;&amp;5
-$as_echo_n &quot;checking for Tcl sqlite3 location... &quot; &gt;&amp;6; }
-if ${mp_cv_sqlite3_dir+:} false; then :
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  mp_cv_sqlite3_dir=
-                test -r &quot;${mp_sqlite3_dir}/pkgIndex.tcl&quot; &amp;&amp; mp_cv_sqlite3_dir=$mp_sqlite3_dir
-
-fi
-{ $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $mp_cv_sqlite3_dir&quot; &gt;&amp;5
-$as_echo &quot;$mp_cv_sqlite3_dir&quot; &gt;&amp;6; }
-
-        SQLITE3_TCL_DIR=$mp_cv_sqlite3_dir
-
-
-
-
-
-
</del><span class="cx">         { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for SQLite &gt;= 3003011&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for SQLite &gt;= 3003011... &quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><span class="lines">@@ -9864,50 +9387,1049 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+# misc variables that need to be expanded for substitution into tcl
+oldprefix=$prefix
+oldexec_prefix=$exec_prefix
+if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
+   prefix=$ac_default_prefix
+fi
+if test &quot;x$exec_prefix&quot; = &quot;xNONE&quot; ; then
+        exec_prefix=$prefix
+fi
+eval &quot;prefix_expanded=$prefix&quot;
+eval &quot;exec_prefix_expanded=$exec_prefix&quot;
+
+# do this twice, since there is a nested variable of
+# ${prefix} inside of ${sysconfdir}
+eval &quot;MPCONFIGDIR_EXPANDED=$MPCONFIGDIR&quot;
+eval &quot;MPCONFIGDIR_EXPANDED=$MPCONFIGDIR_EXPANDED&quot;
+
+eval &quot;localstatedir_expanded=$localstatedir&quot;
+
+eval &quot;macports_tcl_dir=${datadir}/macports/Tcl&quot;
+eval &quot;macports_tcl_dir=$macports_tcl_dir&quot;
+
+# Compute the libexec dir for the vendor packages
+eval &quot;macports_libexec_dir=${libexecdir}/macports&quot;
+eval &quot;macports_libexec_dir=$macports_libexec_dir&quot;
+prefix=$oldprefix
+exec_prefix=$oldexec_prefix
+
</ins><span class="cx"> # Determine if we need to install some bundled packages
</span><del>-OUR_INCLUDED_PACKAGES=
</del><ins>+VENDOR_PACKAGES=
</ins><span class="cx"> 
</span><del>-## Thread package.
</del><ins>+## Tcl package
+tcl_version=8.5.15
+tcl_thread_version=2.7.0
+tcllib_version=1.15
+        mp_fn_var_prepend() {
+                eval &quot;$1=\&quot;$2\$$1\&quot;&quot;
+        }
</ins><span class="cx"> 
</span><del>-# Check whether --with-included-tclthread was given.
-if test &quot;${with_included_tclthread+set}&quot; = set; then :
-  withval=$with_included_tclthread; with_included_tclthread=$withval
-else
-  with_included_tclthread=&quot;unspecified&quot;
-fi
</del><span class="cx"> 
</span><ins>+        mp_tarball=&quot;vendor/tcl${tcl_version}-src.tar.gz&quot;
+        ac_dir=vendor/tcl${tcl_version}/unix
</ins><span class="cx"> 
</span><del>-# Check if thread package is already installed.
-if test &quot;x$with_included_tclthread&quot; = &quot;xunspecified&quot; ; then
</del><ins>+        if test &quot;$no_recursion&quot; != yes; then
+                mp_popdir=$(pwd)
+                if ! test -d &quot;$ac_dir&quot;; then
+                        mp_tarball_vendordir=&quot;$(dirname &quot;$mp_tarball&quot;)&quot;
+                        as_dir=&quot;$mp_tarball_vendordir&quot;; as_fn_mkdir_p
+                        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === extracting $mp_tarball&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === extracting $mp_tarball&quot; &gt;&amp;6;}
+                        (cd &quot;$mp_tarball_vendordir&quot;; gzip -d &lt; &quot;$ac_abs_confdir/$mp_tarball&quot; | tar xf - || as_fn_error $? &quot;failed to extract $mp_tarball&quot; &quot;$LINENO&quot; 5)
+                fi
+                if ! test -d &quot;$ac_dir&quot;; then
+                        as_fn_error $? &quot;tarball $mp_tarball did not extract to $ac_dir&quot; &quot;$LINENO&quot; 5
+                fi
</ins><span class="cx"> 
</span><del>-        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl Thread package&quot; &gt;&amp;5
-$as_echo_n &quot;checking for Tcl Thread package... &quot; &gt;&amp;6; }
-        package_present=`echo 'if {[catch {package require Thread}]} {puts -nonewline 0} else {puts -nonewline 1}' | $TCLSH`
-        if test &quot;$package_present&quot; = &quot;1&quot;; then :
-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: yes&quot; &gt;&amp;5
-$as_echo &quot;yes&quot; &gt;&amp;6; }; with_included_tclthread=no
-else
-  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: no&quot; &gt;&amp;5
-$as_echo &quot;no&quot; &gt;&amp;6; }; with_included_tclthread=yes
-fi
</del><ins>+                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;6;}
+                as_dir=&quot;$ac_dir&quot;; as_fn_mkdir_p
+                ac_builddir=.
</ins><span class="cx"> 
</span><del>-fi
</del><ins>+case &quot;$ac_dir&quot; in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`$as_echo &quot;$ac_dir&quot; | sed 's|^\.[\\/]||'`
+  # A &quot;..&quot; for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`$as_echo &quot;$ac_dir_suffix&quot; | sed 's|/[^\\/]*|/..|g;s|/||'`
+  case $ac_top_builddir_sub in
+  &quot;&quot;) ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
</ins><span class="cx"> 
</span><del>-# If thread package isn't installed, configure and install thread package.
-if test &quot;$with_included_tclthread&quot; = &quot;yes&quot;; then
-        OUR_INCLUDED_PACKAGES=&quot;$OUR_INCLUDED_PACKAGES thread2.6&quot;
</del><ins>+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
</ins><span class="cx"> 
</span><ins>+                cd &quot;$ac_dir&quot;
+                if test -f &quot;$ac_srcdir/configure&quot;; then
+                        mp_sub_configure_args=
+                        mp_sub_configure_keys=
+                        # Compile a list of keys that have been given to the MP_CONFIG_TARBALL
+                        # macro; we want to skip copying those parameters from the original
+                        # configure invocation.
+                        for mp_arg in --prefix=${macports_libexec_dir} --enable-threads; do
+                                case $mp_arg in
+                                        --*=* | -*=*)
+                                                        mp_arg_key=$($as_echo &quot;$mp_arg&quot; | sed -E 's/^--?(^=+)=.*$/\1/')
+                                                                case $mp_arg_key in
+                *\'*)
+                        mp_arg_key=$($as_echo &quot;$mp_arg_key&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg_key=&quot;'$mp_arg_key'&quot;
+        as_fn_append mp_sub_configure_keys &quot; $mp_arg_key&quot;
</ins><span class="cx"> 
</span><del>-subdirs=&quot;$subdirs src/thread2.6&quot;
</del><ins>+                                        ;
+                                esac
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
</ins><span class="cx"> 
</span><del>-        # Extract thread package
-        (cd src/; gzip -d &lt; thread2.6.tar.gz | tar xf -)
-        # Patch thread package (so thread2.6 is the vanilla distribution directory)
-        patch -p0 &lt; src/thread2.6.diff
-fi
</del><ins>+                        done
+                        # Walk the list of arguments given to the original configure script;
+                        # filter out a few common ones we likely would not want to pass along,
+                        # add --disable-option-checking and filter those already given as
+                        # argument to MP_CONFIG_TARBALL.
+                        # Most of this code is adapted from _AC_OUTPUT_SUBDIRS in
+                        # $prefix/share/autoconf/autoconf/status.m4.
+                        mp_prev=
+                        eval &quot;set x $ac_configure_args&quot;
+                        shift
+                        for mp_arg; do
+                                if test -n &quot;$mp_prev&quot;; then
+                                        mp_prev=
+                                        continue
+                                fi
+                                case $mp_arg in
+                                          -cache-file \
+                                        | --cache-file \
+                                        | --cache-fil \
+                                        | --cache-fi \
+                                        | --cache-f \
+                                        | --cache- \
+                                        | --cache \
+                                        | --cach \
+                                        | --cac \
+                                        | --ca \
+                                        | --c)
+                                                mp_prev=cache_file
+                                        ;
+                                          -cache-file=* \
+                                        | --cache-file=* \
+                                        | --cache-fil=* \
+                                        | --cache-fi=* \
+                                        | --cache-f=* \
+                                        | --cache-=* \
+                                        | --cache=* \
+                                        | --cach=* \
+                                        | --cac=* \
+                                        | --ca=* \
+                                        | --c=*)
+                                                # ignore --cache-file
+                                        ;
+                                          --config-cache \
+                                        | -C)
+                                                # ignore -C
+                                        ;
+                                          -srcdir \
+                                        | --srcdir \
+                                        | -srcdi \
+                                        | -srcd \
+                                        | -src \
+                                        | -sr)
+                                                mp_prev=srcdir
+                                        ;
+                                          -srcdir=* \
+                                        | --srcdir=* \
+                                        | --srcdi=* \
+                                        | --srcd=* \
+                                        | --src=* \
+                                        | --sr=*)
+                                                # ignore --srcdir
+                                        ;
+                                          -prefix \
+                                        | --prefix \
+                                        | --prefi \
+                                        | --pref \
+                                        | --pre \
+                                        | --pr \
+                                        | --p)
+                                                mp_prev=prefix
+                                        ;
+                                          -prefix=* \
+                                        | --prefix=* \
+                                        | --prefi=* \
+                                        | --pref=* \
+                                        | --pre=* \
+                                        | --pr=* \
+                                        | --p=*)
+                                                # ignore --prefix
+                                        ;
+                                        --disable-option-checking)
+                                                # ignore --disable-option-checking
+                                        ;
+                                        --*=* | -*=*)
+                                                        mp_arg_key=$($as_echo &quot;$mp_arg&quot; | sed -E 's/^--?(^=+)=.*$/\1/')
+                                                        mp_list_contains_present=
+        eval &quot;mp_list_contains_list=\&quot;$mp_sub_configure_keys\&quot;&quot;
+        for mp_list_contains_entry in $mp_list_contains_list; do
+                test -z &quot;$mp_list_contains_entry&quot; &amp;&amp; continue
+                if test &quot;x$mp_arg_key&quot; = &quot;x$mp_list_contains_entry&quot;; then
+                        mp_list_contains_present=1
+                        break
+                fi
+        done
+        if test &quot;x$mp_list_contains_present&quot; = &quot;x&quot;; then
+                :
+                else
+                                                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
</ins><span class="cx"> 
</span><del>-# Allows building of shared libraries
</del><span class="cx"> 
</span><ins>+        fi
+
+                                        ;
+                                        *)
+                                                # always pass positional arguments
+                                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+                                        ;
+                                esac
+                        done
+
+                        # Now prepend some arguments that should always be present unless
+                        # overriden, such as --prefix, --silent, --disable-option-checking,
+                        # --cache-file, --srcdir
+                        # Pass --prefix unless already given
+                        mp_arg_key=prefix
+                                mp_list_contains_present=
+        eval &quot;mp_list_contains_list=\&quot;$mp_sub_configure_args\&quot;&quot;
+        for mp_list_contains_entry in $mp_list_contains_list; do
+                test -z &quot;$mp_list_contains_entry&quot; &amp;&amp; continue
+                if test &quot;x$mp_arg_key&quot; = &quot;x$mp_list_contains_entry&quot;; then
+                        mp_list_contains_present=1
+                        break
+                fi
+        done
+        if test &quot;x$mp_list_contains_present&quot; = &quot;x&quot;; then
+                :
+                else
+                                mp_arg=&quot;--prefix=$prefix&quot;
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+        fi
+
+
+                        # Pass --silent
+                        if test &quot;$silent&quot; = yes; then
+                                mp_arg=&quot;--silent&quot;
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+                        fi
+
+                        # Always prepend --disable-option-checking to silence warnings, since
+                        # different subdirs can have different --enable and --with options.
+                        mp_arg=&quot;--disable-option-checking&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+                        # Make the cache file name correct relative to the subdirectory.
+                        case $cache_file in
+                                [\\/]* | ?:[\\/]* )
+                                        mp_sub_cache_file=$cache_file
+                                ;
+                                *) # Relative name.
+                                        mp_sub_cache_file=$ac_top_build_prefix$cache_file
+                                ;
+                        esac
+                        mp_arg=&quot;--cache-file=$mp_sub_cache_file&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+                        mp_arg=&quot;--srcdir=$ac_srcdir&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+
+                        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: running $SHELL $ac_srcdir/configure $mp_sub_configure_args in $ac_dir&quot; &gt;&amp;5
+$as_echo &quot;$as_me: running $SHELL $ac_srcdir/configure $mp_sub_configure_args in $ac_dir&quot; &gt;&amp;6;}
+                        eval &quot;\$SHELL \$ac_srcdir/configure $mp_sub_configure_args&quot; || as_fn_error $? &quot;configure failed for $ac_dir&quot; &quot;$LINENO&quot; 5
+                else
+                        as_fn_error $? &quot;no configure script found in $ac_dir&quot; &quot;$LINENO&quot; 5
+                fi
+                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === finished configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === finished configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;6;}
+
+                cd &quot;$mp_popdir&quot;
+        fi
+
+VENDOR_TCL_SUBDIR=tcl${tcl_version}/unix
+VENDOR_TCL_INSTALL=&quot;install-binaries install-libraries&quot;
+
+
+
+# Set up some variables needed by MacPorts' Tcl setup
+VENDOR_DESTROOT=vendor/vendor-destroot
+
+
+## Tcl Thread package
+# Tcl supports Threads internally, but to use threads from Tcl code we need
+# this package
+
+        mp_tarball=&quot;vendor/thread${tcl_thread_version}.tar.gz&quot;
+        ac_dir=vendor/thread${tcl_thread_version}
+
+        if test &quot;$no_recursion&quot; != yes; then
+                mp_popdir=$(pwd)
+                if ! test -d &quot;$ac_dir&quot;; then
+                        mp_tarball_vendordir=&quot;$(dirname &quot;$mp_tarball&quot;)&quot;
+                        as_dir=&quot;$mp_tarball_vendordir&quot;; as_fn_mkdir_p
+                        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === extracting $mp_tarball&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === extracting $mp_tarball&quot; &gt;&amp;6;}
+                        (cd &quot;$mp_tarball_vendordir&quot;; gzip -d &lt; &quot;$ac_abs_confdir/$mp_tarball&quot; | tar xf - || as_fn_error $? &quot;failed to extract $mp_tarball&quot; &quot;$LINENO&quot; 5)
+                fi
+                if ! test -d &quot;$ac_dir&quot;; then
+                        as_fn_error $? &quot;tarball $mp_tarball did not extract to $ac_dir&quot; &quot;$LINENO&quot; 5
+                fi
+
+                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;6;}
+                as_dir=&quot;$ac_dir&quot;; as_fn_mkdir_p
+                ac_builddir=.
+
+case &quot;$ac_dir&quot; in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`$as_echo &quot;$ac_dir&quot; | sed 's|^\.[\\/]||'`
+  # A &quot;..&quot; for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`$as_echo &quot;$ac_dir_suffix&quot; | sed 's|/[^\\/]*|/..|g;s|/||'`
+  case $ac_top_builddir_sub in
+  &quot;&quot;) ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+                cd &quot;$ac_dir&quot;
+                if test -f &quot;$ac_srcdir/configure&quot;; then
+                        mp_sub_configure_args=
+                        mp_sub_configure_keys=
+                        # Compile a list of keys that have been given to the MP_CONFIG_TARBALL
+                        # macro; we want to skip copying those parameters from the original
+                        # configure invocation.
+                        for mp_arg in --prefix=${macports_libexec_dir}; do
+                                case $mp_arg in
+                                        --*=* | -*=*)
+                                                        mp_arg_key=$($as_echo &quot;$mp_arg&quot; | sed -E 's/^--?(^=+)=.*$/\1/')
+                                                                case $mp_arg_key in
+                *\'*)
+                        mp_arg_key=$($as_echo &quot;$mp_arg_key&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg_key=&quot;'$mp_arg_key'&quot;
+        as_fn_append mp_sub_configure_keys &quot; $mp_arg_key&quot;
+
+                                        ;
+                                esac
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+                        done
+                        # Walk the list of arguments given to the original configure script;
+                        # filter out a few common ones we likely would not want to pass along,
+                        # add --disable-option-checking and filter those already given as
+                        # argument to MP_CONFIG_TARBALL.
+                        # Most of this code is adapted from _AC_OUTPUT_SUBDIRS in
+                        # $prefix/share/autoconf/autoconf/status.m4.
+                        mp_prev=
+                        eval &quot;set x $ac_configure_args&quot;
+                        shift
+                        for mp_arg; do
+                                if test -n &quot;$mp_prev&quot;; then
+                                        mp_prev=
+                                        continue
+                                fi
+                                case $mp_arg in
+                                          -cache-file \
+                                        | --cache-file \
+                                        | --cache-fil \
+                                        | --cache-fi \
+                                        | --cache-f \
+                                        | --cache- \
+                                        | --cache \
+                                        | --cach \
+                                        | --cac \
+                                        | --ca \
+                                        | --c)
+                                                mp_prev=cache_file
+                                        ;
+                                          -cache-file=* \
+                                        | --cache-file=* \
+                                        | --cache-fil=* \
+                                        | --cache-fi=* \
+                                        | --cache-f=* \
+                                        | --cache-=* \
+                                        | --cache=* \
+                                        | --cach=* \
+                                        | --cac=* \
+                                        | --ca=* \
+                                        | --c=*)
+                                                # ignore --cache-file
+                                        ;
+                                          --config-cache \
+                                        | -C)
+                                                # ignore -C
+                                        ;
+                                          -srcdir \
+                                        | --srcdir \
+                                        | -srcdi \
+                                        | -srcd \
+                                        | -src \
+                                        | -sr)
+                                                mp_prev=srcdir
+                                        ;
+                                          -srcdir=* \
+                                        | --srcdir=* \
+                                        | --srcdi=* \
+                                        | --srcd=* \
+                                        | --src=* \
+                                        | --sr=*)
+                                                # ignore --srcdir
+                                        ;
+                                          -prefix \
+                                        | --prefix \
+                                        | --prefi \
+                                        | --pref \
+                                        | --pre \
+                                        | --pr \
+                                        | --p)
+                                                mp_prev=prefix
+                                        ;
+                                          -prefix=* \
+                                        | --prefix=* \
+                                        | --prefi=* \
+                                        | --pref=* \
+                                        | --pre=* \
+                                        | --pr=* \
+                                        | --p=*)
+                                                # ignore --prefix
+                                        ;
+                                        --disable-option-checking)
+                                                # ignore --disable-option-checking
+                                        ;
+                                        --*=* | -*=*)
+                                                        mp_arg_key=$($as_echo &quot;$mp_arg&quot; | sed -E 's/^--?(^=+)=.*$/\1/')
+                                                        mp_list_contains_present=
+        eval &quot;mp_list_contains_list=\&quot;$mp_sub_configure_keys\&quot;&quot;
+        for mp_list_contains_entry in $mp_list_contains_list; do
+                test -z &quot;$mp_list_contains_entry&quot; &amp;&amp; continue
+                if test &quot;x$mp_arg_key&quot; = &quot;x$mp_list_contains_entry&quot;; then
+                        mp_list_contains_present=1
+                        break
+                fi
+        done
+        if test &quot;x$mp_list_contains_present&quot; = &quot;x&quot;; then
+                :
+                else
+                                                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+
+        fi
+
+                                        ;
+                                        *)
+                                                # always pass positional arguments
+                                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+                                        ;
+                                esac
+                        done
+
+                        # Now prepend some arguments that should always be present unless
+                        # overriden, such as --prefix, --silent, --disable-option-checking,
+                        # --cache-file, --srcdir
+                        # Pass --prefix unless already given
+                        mp_arg_key=prefix
+                                mp_list_contains_present=
+        eval &quot;mp_list_contains_list=\&quot;$mp_sub_configure_args\&quot;&quot;
+        for mp_list_contains_entry in $mp_list_contains_list; do
+                test -z &quot;$mp_list_contains_entry&quot; &amp;&amp; continue
+                if test &quot;x$mp_arg_key&quot; = &quot;x$mp_list_contains_entry&quot;; then
+                        mp_list_contains_present=1
+                        break
+                fi
+        done
+        if test &quot;x$mp_list_contains_present&quot; = &quot;x&quot;; then
+                :
+                else
+                                mp_arg=&quot;--prefix=$prefix&quot;
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+        fi
+
+
+                        # Pass --silent
+                        if test &quot;$silent&quot; = yes; then
+                                mp_arg=&quot;--silent&quot;
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+                        fi
+
+                        # Always prepend --disable-option-checking to silence warnings, since
+                        # different subdirs can have different --enable and --with options.
+                        mp_arg=&quot;--disable-option-checking&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+                        # Make the cache file name correct relative to the subdirectory.
+                        case $cache_file in
+                                [\\/]* | ?:[\\/]* )
+                                        mp_sub_cache_file=$cache_file
+                                ;
+                                *) # Relative name.
+                                        mp_sub_cache_file=$ac_top_build_prefix$cache_file
+                                ;
+                        esac
+                        mp_arg=&quot;--cache-file=$mp_sub_cache_file&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+                        mp_arg=&quot;--srcdir=$ac_srcdir&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+
+                        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: running $SHELL $ac_srcdir/configure $mp_sub_configure_args in $ac_dir&quot; &gt;&amp;5
+$as_echo &quot;$as_me: running $SHELL $ac_srcdir/configure $mp_sub_configure_args in $ac_dir&quot; &gt;&amp;6;}
+                        eval &quot;\$SHELL \$ac_srcdir/configure $mp_sub_configure_args&quot; || as_fn_error $? &quot;configure failed for $ac_dir&quot; &quot;$LINENO&quot; 5
+                else
+                        as_fn_error $? &quot;no configure script found in $ac_dir&quot; &quot;$LINENO&quot; 5
+                fi
+                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === finished configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === finished configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;6;}
+
+                cd &quot;$mp_popdir&quot;
+        fi
+
+VENDOR_TCLTHREAD_SUBDIR=thread${tcl_thread_version}
+VENDOR_TCLTHREAD_INSTALL=&quot;install-binaries install-libraries&quot;
+
+
+
+## Tcllib package
+# Note that Tcllib needs a Tcl interpreter during installation; it will *not*
+# be the one we configure above, because that one isn't built yet. That's not
+# a problem, though -- it's only used during installation.
+
+        mp_tarball=&quot;vendor/tcllib-${tcllib_version}.tar.gz&quot;
+        ac_dir=vendor/tcllib-${tcllib_version}
+
+        if test &quot;$no_recursion&quot; != yes; then
+                mp_popdir=$(pwd)
+                if ! test -d &quot;$ac_dir&quot;; then
+                        mp_tarball_vendordir=&quot;$(dirname &quot;$mp_tarball&quot;)&quot;
+                        as_dir=&quot;$mp_tarball_vendordir&quot;; as_fn_mkdir_p
+                        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === extracting $mp_tarball&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === extracting $mp_tarball&quot; &gt;&amp;6;}
+                        (cd &quot;$mp_tarball_vendordir&quot;; gzip -d &lt; &quot;$ac_abs_confdir/$mp_tarball&quot; | tar xf - || as_fn_error $? &quot;failed to extract $mp_tarball&quot; &quot;$LINENO&quot; 5)
+                fi
+                if ! test -d &quot;$ac_dir&quot;; then
+                        as_fn_error $? &quot;tarball $mp_tarball did not extract to $ac_dir&quot; &quot;$LINENO&quot; 5
+                fi
+
+                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;6;}
+                as_dir=&quot;$ac_dir&quot;; as_fn_mkdir_p
+                ac_builddir=.
+
+case &quot;$ac_dir&quot; in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`$as_echo &quot;$ac_dir&quot; | sed 's|^\.[\\/]||'`
+  # A &quot;..&quot; for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`$as_echo &quot;$ac_dir_suffix&quot; | sed 's|/[^\\/]*|/..|g;s|/||'`
+  case $ac_top_builddir_sub in
+  &quot;&quot;) ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+                cd &quot;$ac_dir&quot;
+                if test -f &quot;$ac_srcdir/configure&quot;; then
+                        mp_sub_configure_args=
+                        mp_sub_configure_keys=
+                        # Compile a list of keys that have been given to the MP_CONFIG_TARBALL
+                        # macro; we want to skip copying those parameters from the original
+                        # configure invocation.
+                        for mp_arg in --prefix=${macports_libexec_dir}; do
+                                case $mp_arg in
+                                        --*=* | -*=*)
+                                                        mp_arg_key=$($as_echo &quot;$mp_arg&quot; | sed -E 's/^--?(^=+)=.*$/\1/')
+                                                                case $mp_arg_key in
+                *\'*)
+                        mp_arg_key=$($as_echo &quot;$mp_arg_key&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg_key=&quot;'$mp_arg_key'&quot;
+        as_fn_append mp_sub_configure_keys &quot; $mp_arg_key&quot;
+
+                                        ;
+                                esac
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+                        done
+                        # Walk the list of arguments given to the original configure script;
+                        # filter out a few common ones we likely would not want to pass along,
+                        # add --disable-option-checking and filter those already given as
+                        # argument to MP_CONFIG_TARBALL.
+                        # Most of this code is adapted from _AC_OUTPUT_SUBDIRS in
+                        # $prefix/share/autoconf/autoconf/status.m4.
+                        mp_prev=
+                        eval &quot;set x $ac_configure_args&quot;
+                        shift
+                        for mp_arg; do
+                                if test -n &quot;$mp_prev&quot;; then
+                                        mp_prev=
+                                        continue
+                                fi
+                                case $mp_arg in
+                                          -cache-file \
+                                        | --cache-file \
+                                        | --cache-fil \
+                                        | --cache-fi \
+                                        | --cache-f \
+                                        | --cache- \
+                                        | --cache \
+                                        | --cach \
+                                        | --cac \
+                                        | --ca \
+                                        | --c)
+                                                mp_prev=cache_file
+                                        ;
+                                          -cache-file=* \
+                                        | --cache-file=* \
+                                        | --cache-fil=* \
+                                        | --cache-fi=* \
+                                        | --cache-f=* \
+                                        | --cache-=* \
+                                        | --cache=* \
+                                        | --cach=* \
+                                        | --cac=* \
+                                        | --ca=* \
+                                        | --c=*)
+                                                # ignore --cache-file
+                                        ;
+                                          --config-cache \
+                                        | -C)
+                                                # ignore -C
+                                        ;
+                                          -srcdir \
+                                        | --srcdir \
+                                        | -srcdi \
+                                        | -srcd \
+                                        | -src \
+                                        | -sr)
+                                                mp_prev=srcdir
+                                        ;
+                                          -srcdir=* \
+                                        | --srcdir=* \
+                                        | --srcdi=* \
+                                        | --srcd=* \
+                                        | --src=* \
+                                        | --sr=*)
+                                                # ignore --srcdir
+                                        ;
+                                          -prefix \
+                                        | --prefix \
+                                        | --prefi \
+                                        | --pref \
+                                        | --pre \
+                                        | --pr \
+                                        | --p)
+                                                mp_prev=prefix
+                                        ;
+                                          -prefix=* \
+                                        | --prefix=* \
+                                        | --prefi=* \
+                                        | --pref=* \
+                                        | --pre=* \
+                                        | --pr=* \
+                                        | --p=*)
+                                                # ignore --prefix
+                                        ;
+                                        --disable-option-checking)
+                                                # ignore --disable-option-checking
+                                        ;
+                                        --*=* | -*=*)
+                                                        mp_arg_key=$($as_echo &quot;$mp_arg&quot; | sed -E 's/^--?(^=+)=.*$/\1/')
+                                                        mp_list_contains_present=
+        eval &quot;mp_list_contains_list=\&quot;$mp_sub_configure_keys\&quot;&quot;
+        for mp_list_contains_entry in $mp_list_contains_list; do
+                test -z &quot;$mp_list_contains_entry&quot; &amp;&amp; continue
+                if test &quot;x$mp_arg_key&quot; = &quot;x$mp_list_contains_entry&quot;; then
+                        mp_list_contains_present=1
+                        break
+                fi
+        done
+        if test &quot;x$mp_list_contains_present&quot; = &quot;x&quot;; then
+                :
+                else
+                                                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+
+        fi
+
+                                        ;
+                                        *)
+                                                # always pass positional arguments
+                                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+                                        ;
+                                esac
+                        done
+
+                        # Now prepend some arguments that should always be present unless
+                        # overriden, such as --prefix, --silent, --disable-option-checking,
+                        # --cache-file, --srcdir
+                        # Pass --prefix unless already given
+                        mp_arg_key=prefix
+                                mp_list_contains_present=
+        eval &quot;mp_list_contains_list=\&quot;$mp_sub_configure_args\&quot;&quot;
+        for mp_list_contains_entry in $mp_list_contains_list; do
+                test -z &quot;$mp_list_contains_entry&quot; &amp;&amp; continue
+                if test &quot;x$mp_arg_key&quot; = &quot;x$mp_list_contains_entry&quot;; then
+                        mp_list_contains_present=1
+                        break
+                fi
+        done
+        if test &quot;x$mp_list_contains_present&quot; = &quot;x&quot;; then
+                :
+                else
+                                mp_arg=&quot;--prefix=$prefix&quot;
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+        fi
+
+
+                        # Pass --silent
+                        if test &quot;$silent&quot; = yes; then
+                                mp_arg=&quot;--silent&quot;
+                                                case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+                        fi
+
+                        # Always prepend --disable-option-checking to silence warnings, since
+                        # different subdirs can have different --enable and --with options.
+                        mp_arg=&quot;--disable-option-checking&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+                        # Make the cache file name correct relative to the subdirectory.
+                        case $cache_file in
+                                [\\/]* | ?:[\\/]* )
+                                        mp_sub_cache_file=$cache_file
+                                ;
+                                *) # Relative name.
+                                        mp_sub_cache_file=$ac_top_build_prefix$cache_file
+                                ;
+                        esac
+                        mp_arg=&quot;--cache-file=$mp_sub_cache_file&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+                        mp_fn_var_prepend mp_sub_configure_args &quot;$mp_arg &quot;
+
+
+
+                        mp_arg=&quot;--srcdir=$ac_srcdir&quot;
+                                        case $mp_arg in
+                *\'*)
+                        mp_arg=$($as_echo &quot;$mp_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;)
+                ;
+        esac
+        mp_arg=&quot;'$mp_arg'&quot;
+        as_fn_append mp_sub_configure_args &quot; $mp_arg&quot;
+
+
+                        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: running $SHELL $ac_srcdir/configure $mp_sub_configure_args in $ac_dir&quot; &gt;&amp;5
+$as_echo &quot;$as_me: running $SHELL $ac_srcdir/configure $mp_sub_configure_args in $ac_dir&quot; &gt;&amp;6;}
+                        eval &quot;\$SHELL \$ac_srcdir/configure $mp_sub_configure_args&quot; || as_fn_error $? &quot;configure failed for $ac_dir&quot; &quot;$LINENO&quot; 5
+                else
+                        as_fn_error $? &quot;no configure script found in $ac_dir&quot; &quot;$LINENO&quot; 5
+                fi
+                { $as_echo &quot;$as_me:${as_lineno-$LINENO}: === finished configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;5
+$as_echo &quot;$as_me: === finished configuring in $ac_dir ($mp_popdir/$ac_dir)&quot; &gt;&amp;6;}
+
+                cd &quot;$mp_popdir&quot;
+        fi
+
+VENDOR_PACKAGES=&quot;$VENDOR_PACKAGES tcllib-${tcllib_version}&quot;
+VENDOR_TCLLIB_SUBDIR=tcllib-${tcllib_version}
+VENDOR_TCLLIB_INSTALL=&quot;install-libraries&quot;
+
+
+
+# Load tclConfig.sh from our private install of Tcl
+{ $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for Tcl configuration&quot; &gt;&amp;5
+$as_echo_n &quot;checking for Tcl configuration... &quot; &gt;&amp;6; }
+TCL_BIN_DIR=`(cd vendor/tcl${tcl_version}/unix; pwd)`
+{ $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh&quot; &gt;&amp;5
+$as_echo &quot;found $TCL_BIN_DIR/tclConfig.sh&quot; &gt;&amp;6; }
+
+    { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh&quot; &gt;&amp;5
+$as_echo_n &quot;checking for existence of $TCL_BIN_DIR/tclConfig.sh... &quot; &gt;&amp;6; }
+
+    if test -f &quot;$TCL_BIN_DIR/tclConfig.sh&quot; ; then
+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: loading&quot; &gt;&amp;5
+$as_echo &quot;loading&quot; &gt;&amp;6; }
+        . $TCL_BIN_DIR/tclConfig.sh
+    else
+        { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: file not found&quot; &gt;&amp;5
+$as_echo &quot;file not found&quot; &gt;&amp;6; }
+    fi
+
+    #
+    # If the TCL_BIN_DIR is the build directory (not the install directory),
+    # then set the common variable name to the value of the build variables.
+    # For example, the variable TCL_LIB_SPEC will be set to the value
+    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
+    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
+    # installed and uninstalled version of Tcl.
+    #
+
+    if test -f $TCL_BIN_DIR/Makefile ; then
+        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
+        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
+        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
+    fi
+
+    #
+    # eval is required to do the TCL_DBGX substitution
+    #
+
+    eval &quot;TCL_LIB_FILE=\&quot;${TCL_LIB_FILE}\&quot;&quot;
+    eval &quot;TCL_LIB_FLAG=\&quot;${TCL_LIB_FLAG}\&quot;&quot;
+    eval &quot;TCL_LIB_SPEC=\&quot;${TCL_LIB_SPEC}\&quot;&quot;
+
+    eval &quot;TCL_STUB_LIB_FILE=\&quot;${TCL_STUB_LIB_FILE}\&quot;&quot;
+    eval &quot;TCL_STUB_LIB_FLAG=\&quot;${TCL_STUB_LIB_FLAG}\&quot;&quot;
+    eval &quot;TCL_STUB_LIB_SPEC=\&quot;${TCL_STUB_LIB_SPEC}\&quot;&quot;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
</ins><span class="cx">     { $as_echo &quot;$as_me:${as_lineno-$LINENO}: checking how to build libraries&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking how to build libraries... &quot; &gt;&amp;6; }
</span><span class="cx">     # Check whether --enable-shared was given.
</span><span class="lines">@@ -9939,13 +10461,15 @@
</span><span class="cx">     fi
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-# Pull compiler / linker values from tclConfig.sh
-LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
-LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
</del><ins>+# Pull compiler/linker values from tclConfig.sh
</ins><span class="cx"> SHLIB_LD=${TCL_SHLIB_LD}
</span><span class="cx"> STLIB_LD=${TCL_STLIB_LD}
</span><span class="cx"> SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
</span><span class="cx"> SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
</span><ins>+TCLSH=${TCL_EXEC_PREFIX}/bin/tclsh${TCL_VERSION}
+INTREE_TCLSH=${TCL_BIN_DIR}/tclsh
+# strip possible whitespace at the end of TCL_PACKAGE_PATH
+eval &quot;TCL_PACKAGE_PATH=${TCL_PACKAGE_PATH}&quot;
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -9958,13 +10482,10 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-# misc variables that need to be expanded for substitution into tcl
</del><span class="cx"> 
</span><del>-oldprefix=$prefix
-if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
-   prefix=$ac_default_prefix
-fi
</del><ins>+INCLUDES=&quot;-I.. -I. $INCLUDES&quot;
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx"> # Check if there's an existing DP/MP install too old to upgrade
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -9981,24 +10502,8 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-eval &quot;prefix_expanded=$prefix&quot;
-
-# do this twice, since there is a nested variable of
-# ${prefix} inside of ${sysconfdir}
-eval &quot;MPCONFIGDIR_EXPANDED=$MPCONFIGDIR&quot;
-eval &quot;MPCONFIGDIR_EXPANDED=$MPCONFIGDIR_EXPANDED&quot;
-
-eval &quot;localstatedir_expanded=$localstatedir&quot;
-
-eval &quot;macports_tcl_dir=${datadir}/macports/Tcl&quot;
-eval &quot;macports_tcl_dir=$macports_tcl_dir&quot;
-
-
-prefix=$oldprefix
-
-
</del><span class="cx"> # Output
</span><del>-ac_config_files=&quot;$ac_config_files Doxyfile Makefile Mk/macports.autoconf.mk doc/base.mtree doc/macosx.mtree doc/macports.conf doc/prefix.mtree doc/pubkeys.conf portmgr/freebsd/Makefile setupenv.bash src/Makefile src/machista1.0/Makefile src/macports1.0/macports_autoconf.tcl src/macports1.0/macports_test_autoconf.tcl src/macports1.0/macports_fastload.tcl src/package1.0/package_test_autoconf.tcl src/pextlib1.0/Makefile src/port1.0/port_autoconf.tcl src/port1.0/port_test_autoconf.tcl src/programs/Makefile src/registry2.0/registry_autoconf.tcl&quot;
</del><ins>+ac_config_files=&quot;$ac_config_files Doxyfile Makefile Mk/macports.autoconf.mk doc/Makefile doc/base.mtree doc/macosx.mtree doc/macports.conf doc/prefix.mtree doc/pubkeys.conf portmgr/freebsd/Makefile setupenv.bash src/Makefile src/cflib1.0/Makefile src/cregistry/Makefile src/darwintracelib1.0/Makefile src/machista1.0/Makefile src/macports1.0/Makefile src/macports1.0/macports_autoconf.tcl src/macports1.0/macports_fastload.tcl src/macports1.0/macports_test_autoconf.tcl src/package1.0/Makefile src/package1.0/package_test_autoconf.tcl src/pextlib1.0/Makefile src/port/Makefile src/port1.0/Makefile src/port1.0/port_autoconf.tcl src/port1.0/port_test_autoconf.tcl src/programs/Makefile src/registry2.0/Makefile src/registry2.0/registry_autoconf.tcl tests/Makefile vendor/Makefile&quot;
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> ac_config_files=&quot;$ac_config_files src/pkg_mkindex.sh&quot;
</span><span class="lines">@@ -10699,6 +11204,7 @@
</span><span class="cx">     &quot;Doxyfile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES Doxyfile&quot; ;;
</span><span class="cx">     &quot;Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES Makefile&quot; ;;
</span><span class="cx">     &quot;Mk/macports.autoconf.mk&quot;) CONFIG_FILES=&quot;$CONFIG_FILES Mk/macports.autoconf.mk&quot; ;;
</span><ins>+    &quot;doc/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES doc/Makefile&quot; ;;
</ins><span class="cx">     &quot;doc/base.mtree&quot;) CONFIG_FILES=&quot;$CONFIG_FILES doc/base.mtree&quot; ;;
</span><span class="cx">     &quot;doc/macosx.mtree&quot;) CONFIG_FILES=&quot;$CONFIG_FILES doc/macosx.mtree&quot; ;;
</span><span class="cx">     &quot;doc/macports.conf&quot;) CONFIG_FILES=&quot;$CONFIG_FILES doc/macports.conf&quot; ;;
</span><span class="lines">@@ -10707,16 +11213,26 @@
</span><span class="cx">     &quot;portmgr/freebsd/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES portmgr/freebsd/Makefile&quot; ;;
</span><span class="cx">     &quot;setupenv.bash&quot;) CONFIG_FILES=&quot;$CONFIG_FILES setupenv.bash&quot; ;;
</span><span class="cx">     &quot;src/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/Makefile&quot; ;;
</span><ins>+    &quot;src/cflib1.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/cflib1.0/Makefile&quot; ;;
+    &quot;src/cregistry/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/cregistry/Makefile&quot; ;;
+    &quot;src/darwintracelib1.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/darwintracelib1.0/Makefile&quot; ;;
</ins><span class="cx">     &quot;src/machista1.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/machista1.0/Makefile&quot; ;;
</span><ins>+    &quot;src/macports1.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/macports1.0/Makefile&quot; ;;
</ins><span class="cx">     &quot;src/macports1.0/macports_autoconf.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/macports1.0/macports_autoconf.tcl&quot; ;;
</span><ins>+    &quot;src/macports1.0/macports_fastload.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/macports1.0/macports_fastload.tcl&quot; ;;
</ins><span class="cx">     &quot;src/macports1.0/macports_test_autoconf.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/macports1.0/macports_test_autoconf.tcl&quot; ;;
</span><del>-    &quot;src/macports1.0/macports_fastload.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/macports1.0/macports_fastload.tcl&quot; ;;
</del><ins>+    &quot;src/package1.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/package1.0/Makefile&quot; ;;
</ins><span class="cx">     &quot;src/package1.0/package_test_autoconf.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/package1.0/package_test_autoconf.tcl&quot; ;;
</span><span class="cx">     &quot;src/pextlib1.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/pextlib1.0/Makefile&quot; ;;
</span><ins>+    &quot;src/port/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/port/Makefile&quot; ;;
+    &quot;src/port1.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/port1.0/Makefile&quot; ;;
</ins><span class="cx">     &quot;src/port1.0/port_autoconf.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/port1.0/port_autoconf.tcl&quot; ;;
</span><span class="cx">     &quot;src/port1.0/port_test_autoconf.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/port1.0/port_test_autoconf.tcl&quot; ;;
</span><span class="cx">     &quot;src/programs/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/programs/Makefile&quot; ;;
</span><ins>+    &quot;src/registry2.0/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/registry2.0/Makefile&quot; ;;
</ins><span class="cx">     &quot;src/registry2.0/registry_autoconf.tcl&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/registry2.0/registry_autoconf.tcl&quot; ;;
</span><ins>+    &quot;tests/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES tests/Makefile&quot; ;;
+    &quot;vendor/Makefile&quot;) CONFIG_FILES=&quot;$CONFIG_FILES vendor/Makefile&quot; ;;
</ins><span class="cx">     &quot;src/pkg_mkindex.sh&quot;) CONFIG_FILES=&quot;$CONFIG_FILES src/pkg_mkindex.sh&quot; ;;
</span><span class="cx"> 
</span><span class="cx">   *) as_fn_error $? &quot;invalid argument: \`$ac_config_target'&quot; &quot;$LINENO&quot; 5;;
</span><span class="lines">@@ -11304,151 +11820,6 @@
</span><span class="cx">   # would make configure fail if this is the last instruction.
</span><span class="cx">   $ac_cs_success || as_fn_exit 1
</span><span class="cx"> fi
</span><del>-
-#
-# CONFIG_SUBDIRS section.
-#
-if test &quot;$no_recursion&quot; != yes; then
-
-  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
-  # so they do not pile up.
-  ac_sub_configure_args=
-  ac_prev=
-  eval &quot;set x $ac_configure_args&quot;
-  shift
-  for ac_arg
-  do
-    if test -n &quot;$ac_prev&quot;; then
-      ac_prev=
-      continue
-    fi
-    case $ac_arg in
-    -cache-file | --cache-file | --cache-fil | --cache-fi \
-    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
-      ac_prev=cache_file ;;
-    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
-    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
-    | --c=*)
-      ;;
-    --config-cache | -C)
-      ;;
-    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
-      ac_prev=srcdir ;;
-    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
-      ;;
-    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
-      ac_prev=prefix ;;
-    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
-      ;;
-    --disable-option-checking)
-      ;;
-    *)
-      case $ac_arg in
-      *\'*) ac_arg=`$as_echo &quot;$ac_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;` ;;
-      esac
-      as_fn_append ac_sub_configure_args &quot; '$ac_arg'&quot; ;;
-    esac
-  done
-
-  # Always prepend --prefix to ensure using the same prefix
-  # in subdir configurations.
-  ac_arg=&quot;--prefix=$prefix&quot;
-  case $ac_arg in
-  *\'*) ac_arg=`$as_echo &quot;$ac_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;` ;;
-  esac
-  ac_sub_configure_args=&quot;'$ac_arg' $ac_sub_configure_args&quot;
-
-  # Pass --silent
-  if test &quot;$silent&quot; = yes; then
-    ac_sub_configure_args=&quot;--silent $ac_sub_configure_args&quot;
-  fi
-
-  # Always prepend --disable-option-checking to silence warnings, since
-  # different subdirs can have different --enable and --with options.
-  ac_sub_configure_args=&quot;--disable-option-checking $ac_sub_configure_args&quot;
-
-  ac_popdir=`pwd`
-  for ac_dir in : $subdirs; do test &quot;x$ac_dir&quot; = x: &amp;&amp; continue
-
-    # Do not complain, so a configure script can configure whichever
-    # parts of a large source tree are present.
-    test -d &quot;$srcdir/$ac_dir&quot; || continue
-
-    ac_msg=&quot;=== configuring in $ac_dir (`pwd`/$ac_dir)&quot;
-    $as_echo &quot;$as_me:${as_lineno-$LINENO}: $ac_msg&quot; &gt;&amp;5
-    $as_echo &quot;$ac_msg&quot; &gt;&amp;6
-    as_dir=&quot;$ac_dir&quot;; as_fn_mkdir_p
-    ac_builddir=.
-
-case &quot;$ac_dir&quot; in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
-  ac_dir_suffix=/`$as_echo &quot;$ac_dir&quot; | sed 's|^\.[\\/]||'`
-  # A &quot;..&quot; for each directory in $ac_dir_suffix.
-  ac_top_builddir_sub=`$as_echo &quot;$ac_dir_suffix&quot; | sed 's|/[^\\/]*|/..|g;s|/||'`
-  case $ac_top_builddir_sub in
-  &quot;&quot;) ac_top_builddir_sub=. ac_top_build_prefix= ;;
-  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
-  esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
-  .)  # We are building in place.
-    ac_srcdir=.
-    ac_top_srcdir=$ac_top_builddir_sub
-    ac_abs_top_srcdir=$ac_pwd ;;
-  [\\/]* | ?:[\\/]* )  # Absolute name.
-    ac_srcdir=$srcdir$ac_dir_suffix;
-    ac_top_srcdir=$srcdir
-    ac_abs_top_srcdir=$srcdir ;;
-  *) # Relative name.
-    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
-    ac_top_srcdir=$ac_top_build_prefix$srcdir
-    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-
-    cd &quot;$ac_dir&quot;
-
-    # Check for guested configure; otherwise get Cygnus style configure.
-    if test -f &quot;$ac_srcdir/configure.gnu&quot;; then
-      ac_sub_configure=$ac_srcdir/configure.gnu
-    elif test -f &quot;$ac_srcdir/configure&quot;; then
-      ac_sub_configure=$ac_srcdir/configure
-    elif test -f &quot;$ac_srcdir/configure.in&quot;; then
-      # This should be Cygnus configure.
-      ac_sub_configure=$ac_aux_dir/configure
-    else
-      { $as_echo &quot;$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: no configuration information is in $ac_dir&quot; &gt;&amp;2;}
-      ac_sub_configure=
-    fi
-
-    # The recursion is here.
-    if test -n &quot;$ac_sub_configure&quot;; then
-      # Make the cache file name correct relative to the subdirectory.
-      case $cache_file in
-      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
-      *) # Relative name.
-        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
-      esac
-
-      { $as_echo &quot;$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir&quot; &gt;&amp;5
-$as_echo &quot;$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir&quot; &gt;&amp;6;}
-      # The eval makes quoting arguments work.
-      eval &quot;\$SHELL \&quot;\$ac_sub_configure\&quot; $ac_sub_configure_args \
-           --cache-file=\&quot;\$ac_sub_cache_file\&quot; --srcdir=\&quot;\$ac_srcdir\&quot;&quot; ||
-        as_fn_error $? &quot;$ac_sub_configure failed for $ac_dir&quot; &quot;$LINENO&quot; 5
-    fi
-
-    cd &quot;$ac_popdir&quot;
-  done
-fi
</del><span class="cx"> if test -n &quot;$ac_unrecognized_opts&quot; &amp;&amp; test &quot;$enable_option_checking&quot; != no; then
</span><span class="cx">   { $as_echo &quot;$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$as_me: WARNING: unrecognized options: $ac_unrecognized_opts&quot; &gt;&amp;2;}
</span></span></pre>
</div>
</div>

</body>
</html>