Another round in fixing getopt problems. Hopefully the last one!
commite40673b298b8fb866c1ef91622a85a52ea09d705
authorWerner LEMBERG <wl@gnu.org>
Thu, 23 Jun 2005 11:33:00 +0000 (23 11:33 +0000)
committerWerner LEMBERG <wl@gnu.org>
Thu, 23 Jun 2005 11:33:00 +0000 (23 11:33 +0000)
treec2e4436a98617acc84418ce172f2ead52032c615
parent51fb9fc8108613f3ea14e14c9096163c09ba6f45
Another round in fixing getopt problems.  Hopefully the last one!
This time we use the getopt stuff from gnulib and define a prefix
unconditionally so that there are no collisions with any other
getopt implementations.  This is a slight waste of space in case
we already use a GNU getopt implementation, but on
the other hand it really simplifies life.

* src/include/getopt.h: Use gnulib version.

* src/include/getopt_int.h: Use gnulib version.

* src/include/groff-getopt.h: Removed.  Obsolete now.

* src/include/lib.h: Regarding getopt, don't handle any platform
specially; just include getopt.h.
(__GETOPT_PREFIX): Define (before getopt.h).

* src/include/Makefile.sub (HDRS): Updated.

* src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
gnulib version.

* src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
__GETOPT_PREFIX.

* src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
(__GETOPT_PREFIX): Define (before getopt.h).
ChangeLog
src/include/Makefile.sub
src/include/getopt.h
src/include/getopt_int.h
src/include/groff-getopt.h [deleted file]
src/include/lib.h
src/libs/libgroff/Makefile.sub
src/libs/libgroff/getopt.c
src/libs/libgroff/getopt1.c
src/utils/pfbtops/pfbtops.c
src/utils/xtotroff/xtotroff.c