diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-12 07:59:00 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-12 07:59:00 +0000 |
commit | db4485a5633c5acd440bb0d29c02d28f0b13b90e (patch) | |
tree | 5428afec76f8e6a018be8f7134096db631f7a6b5 | |
parent | 5b3ef25d51691462730b000864e0eb09ebd34013 (diff) | |
download | gnulib-db4485a5633c5acd440bb0d29c02d28f0b13b90e.tar.gz |
(Files): Rename getopt.h to getopt_.h.
(Makefile.am): Rewrite, use logic from argz.
(Include): Use <getopt.h> instead of "getopt.h".
-rw-r--r-- | modules/getopt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/getopt b/modules/getopt index 149146c91d..0e15175cbb 100644 --- a/modules/getopt +++ b/modules/getopt @@ -2,7 +2,7 @@ Description: Process command line arguments. Files: -lib/getopt.h +lib/getopt_.h lib/getopt.c lib/getopt1.c lib/getopt_int.h @@ -15,10 +15,19 @@ configure.ac: gl_GETOPT Makefile.am: -lib_SOURCES += getopt.h getopt.c getopt1.c getopt_int.h +BUILT_SOURCES += $(GETOPT_H) +EXTRA_DIST += getopt_.h getopt_int.h + +# We need the following in order to create an <getopt.h> when the system +# doesn't have one that works with the given compiler. +all-local $(lib_OBJECTS): $(GETOPT_H) +getopt.h: getopt_.h + cp $(srcdir)/getopt_.h $@-t + mv $@-t $@ +MOSTLYCLEANFILES += getopt.h getopt.h-t Include: -"getopt.h" +<getopt.h> Maintainer: all, glibc |