1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

build: Use more gnulib modules.

* autogen.sh (GNULIB_MODULES): Add getopt-gnu.
Use directory gnulib-local.
* gnulib-local/lib/getopt-pfx-ext.h.diff: New file.
* Makefile.in (SOURCE_FILES): Add it.
(distdir): Use 'mkdir -p' instead of 'mkdir'.
* lib/getopt.h: Remove file.
* lib/getopt.c: Remove file.
* lib/getopt1.c: Remove file.
* lib/Makefile.am (libgp_a_SOURCES): Remove them.
This commit is contained in:
Bruno Haible
2025-04-16 22:07:02 +02:00
parent 6ca5ea1384
commit 46db237ecc
9 changed files with 45 additions and 1296 deletions

View File

@@ -0,0 +1,16 @@
diff --git a/lib/getopt-pfx-ext.h b/lib/getopt-pfx-ext.h
index 1f2b2d71bf..a61c68c795 100644
--- a/lib/getopt-pfx-ext.h
+++ b/lib/getopt-pfx-ext.h
@@ -38,11 +38,9 @@
# endif
# undef getopt_long
# undef getopt_long_only
-# undef option
# undef _getopt_internal
# define getopt_long __GETOPT_ID (getopt_long)
# define getopt_long_only __GETOPT_ID (getopt_long_only)
-# define option __GETOPT_ID (option)
# define _getopt_internal __GETOPT_ID (getopt_internal)
/* The system's getopt.h may have already included getopt-ext.h to