GNU getopt and AIX
Jan. 29th, 2009 09:13 pmSpent most of today tweaking my own bits and pieces of software to get them to build under AIX, only to encounter an annoying snag whilst trying to get colortail to compile: it seems as though colortail requires
When my quick fixes, such as installing the glibc RPMs on the system, failed to work, I ended up writing a quick and dirty patch. Essentially, I added checks for
But my basic question remains: where should I expect to find
getopt_long, a routine that IBM, in their wisdom, seem to have failed to include.When my quick fixes, such as installing the glibc RPMs on the system, failed to work, I ended up writing a quick and dirty patch. Essentially, I added checks for
getopt.h and getopt_long to the autoconf scripts and defined a couple of pre-processor macros to replace the call to the GNU routine with a basic getopts, all of which turned out to be relatively straight forward, thanks to the clean way the option handling was implemented in colortail.But my basic question remains: where should I expect to find
getopts_long? And why can't I seem to find it on AIX?