<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Hi Eliot<br></div><div><br></div><div>Thanks for the reply.</div><div><br></div><div><br></div><div>&gt;&gt;Well, if you're doing CMake then you'll want to use whatever CMake uses to generate config.h. &nbsp;platforms/unix/conf/configure runs automake.</div><div><br></div><div>Yeah, its on my list. I don't know what (or if)&nbsp; cmake uses to generate config.h. Ian's configure script looks like a hand-coded bash script that does in bash what</div><div>we are doing in Squeak, the penultimate line in that script reads like this:</div><div> <br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div>&nbsp;cmake "${unix}" -DVM_HOST="${host}" -DVM_VERSION="${VM_VERSION}" -DPLATFORM_SOURCE_VERSION="${PLATFORM_SOURCE_VERSION}" -DSRC="${src}" -DOPT--CMAKE_C_FLAGS="${cflags}" ${args}<br></div></blockquote><br></div><div>I will get to that, but I have bigger fish to fry beforehand. I do believe the problem is solvable in a clean way.</div><div><br></div><div>An interim solution hit me on my way to friends house for dinner a while ago.</div><div><br>The VMMakerCMake(Squeak) system generates a 'build.sh' script that reads..<br></div><div><br></div><div><br><br></div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div>#!/usr/bin/env bash</div><div><br></div><div>if [ ! -e vmVersionInfo.h ]; then<br>        ../scripts/extract-commit-info.sh<br>fi<br>cmake .<br>make<br></div></div></blockquote> <br><div>What I can do in the interim is utilize the configure line from the mvm files and do ....</div><div><br></div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div><br></div><div><div>#!/usr/bin/env bash</div><div><br></div><div>if [ ! -e vmVersionInfo.h ]; then<br>        ../scripts/extract-commit-info.sh<br>fi</div><div>../../platforms/unix/config/configure --with the flags I store in the configuration class for this configuration/buildType<br>cmake .<br>make</div></div></div></blockquote> <br><div><br></div><div>That is the autoconfig stuff for now.</div><div><br></div><div><br></div><div>I will give that a go in the a.m. &nbsp;Then/if the cmake system has the config.h generation capabilities, I will roll that into the system.</div><div><br></div><div>Then, when I have the system in place, I can study what Ian is doing and modify the script to something like</div><div><br></div><div><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div><br></div><div><div>#!/usr/bin/env bash</div><div><br></div><div>if [ ! -e vmVersionInfo.h ]; then<br>        ../scripts/extract-commit-info.sh<br>fi</div><div>cmake "${unix}" -DVM_HOST="${host}" -DVM_VERSION="${VM_VERSION}" -DPLATFORM_SOURCE_VERSION="${PLATFORM_SOURCE_VERSION}" -DSRC="${src}" -DOPT--CMAKE_C_FLAGS="${cflags}" ${args}<br>make</div></div></div></blockquote></div><div><div><br></div></div><div><br></div><div>cheers.</div><div><br></div><div>tty.</div><div><br></div><div>P.S. That&nbsp;</div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div>cmake "${unix}" -DVM_HOST="${host}" -DVM_VERSION="${VM_VERSION}" -DPLATFORM_SOURCE_VERSION="${PLATFORM_SOURCE_VERSION}" -DSRC="${src}" -DOPT--CMAKE_C_FLAGS="${cflags}" ${args}</div><div></div></div></blockquote> <br><div>command does in fact generate a config.h, so the problem is solvable in principle. I just have a lot of boilerplate heavy lifting to do prior to turning my attention to that line and learning how it interacts with the existing CMakeLists.text.</div><div><br></div><div>Thanks for your patience. Sometimes it helps to just talk out loud about a problem.</div><div><br></div><div>cheers again.</div><div><br></div><div>tty</div><div><br></div><br></div></body></html>