libiberty and getopt and getopt_long
Joseph S. Myers
jsm@polyomino.org.uk
Sun Jun 6 20:57:00 GMT 2004
On Sun, 6 Jun 2004, Andrew Pinski wrote:
> I am having problems compiling gcj on an OS which includes
> getopt and getopt_long already. Is there a reason why libiberty
> does not check if the OS includes getopt_long?
getopt.c and getopt1.c elide the code if compiling with GNU libc.
Traditionally this would have been enough, but the existence of other
libcs which also implement the getopt_long interface means such configure
checks might make sense, unless the argument is that the GNU version
should always be used in preference to a non-GNU version in another libc.
--
Joseph S. Myers
jsm@polyomino.org.uk
More information about the Gcc
mailing list