<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv1458350538"><table id="yiv1458350538bodyDrftID" class="yiv1458350538" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td id="yiv1458350538drftMsgContent" style="font:inherit;font-family:arial;font-size:10pt;">I am very stubborn about putting my files where I want them, not where installers want to put them (flat /Applications directories, feugh), and so I'm trying to get MacPorts installed to a custom directory $PREFIX, using an XCode install in the custom location $XCODE. After much fiddling, I get to the following.<br>{{{<br>export XCODESDK=$XCODE/System/SDKs/MacOSX10.6.sdk<br>export PATH=$PATH:$XCODE/usr/bin LDFLAGS="-L$XCODESDK/usr/lib -I$XCODESDK/usr/include -F$XCODESDK/System/Library/Frameworks" CPPFLAGS="-I$XCODESDK/usr/include"<br><br>./configure --prefix=$PREFIX/base --with-no-root-privileges
--with-tclinclude=$XCODESDK/Tcl.framework/Headers<br>}}}<br>I'm not sure why I need both LDFLAGS and CPPFLAGS passing the same information; but, without it, ./configure fails at the cpp
stage.<br><br>Anyway, all this works fine until ./configure goes looking for tclConfig.sh, and doesn't find it. I know that I could pass it in using --with-tcl; but I don't *have* it anywhere. Some Googling suggests that it should probably be in $XCODESDK/Tcl.framework next to the Tcl executable (or in /usr/lib), but it's not. Did Apple change something with XCode 3.2.6, so that this file is missing? Is there anything that I can do to get the configuration to complete? (I can attach config.log if it helps, but I'm not sure what the etiquette is; and all it shows is that ./configure failed when it tried to find tclConfig.sh.)<br><br>Thanks in advance for your help.<br>
</td></tr></tbody></table></div></td></tr></table><br>