On 2014/10/19 08:09, Kenneth Westerback wrote: > On 19 October 2014 07:29, R . <ren_zokuke...@hotmail.com> wrote: > > i know that m4 comes bundled together as part of the OS and typically only > > gets built every build of OpenBSD, but is there a way to compile just the > > m4 under MinGW?? i only need the binaries, no need for the manuals or > > things like that. > > > > I would think > > 1) Get the source tree. > 2) cd /usr/src/usr.bin/m4 > 3) make clean; make obj; make > 4) take your obj/m4 to wherever it needs to go. > > is sufficient. I ignore any complications due to trying this under > MinGW since I still have nightmares from my brief exposure to it. > > .... Ken >
This isn't a complete method, but in general both ports and the base OS should honour CC in the environment, so you can use this to select a different compiler.