<p></p>
<p><code>./confiugre</code> set the <code>CFLAGS</code> accordingly.<br>
Yes, via cmdline means.<br>
That's why I said “ as little defines […] as possible“<br>
imho '-DHAVE_CONFIG_H" should be the only define besides Debug flags.</p>
<p>some makefile generators also are pretty good at also maintaining the debugflags, but that's out of scope here.</p>
<p>So something like</p>
<div class="highlight highlight-source-c"><pre>#<span class="pl-k">ifdef</span> HAVE_CONFIG_H
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>config.h<span class="pl-pds">"</span></span>
#<span class="pl-k">else</span>
#<span class="pl-k">error</span> Please run WHATEVER_OUR_CONFIG_GENERATOR IS first
#<span class="pl-k">endif</span></pre></div>
<p>Which would fit nicely in either <code>sq.h</code>, or more appropriately probably in <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/platforms/unix/vm/sqConfig.h#L3"><code>sqConfig.h</code></a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/47b8d5202b835b5d9d1556ed0cf0dda11e5b246c#commitcomment-42779032">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW2LOEEMVHKXV6TDBVLSIBN3PANCNFSM4R2XKNSA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEWYTXTH6MCCIX46WEK3SIBN3PA5CNFSM4R2XKNSKYY3PNVWWK3TUL52HS4DFVVBW63LNNF2EG33NNVSW45FKMNXW23LFNZ2F62LEZYBIZQMY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/47b8d5202b835b5d9d1556ed0cf0dda11e5b246c#commitcomment-42779032",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/47b8d5202b835b5d9d1556ed0cf0dda11e5b246c#commitcomment-42779032",
"name": "View Commit"
},
"description": "View this Commit on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>