1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00
Commit Graph

48 Commits

Author SHA1 Message Date
Bruno Haible
46db237ecc 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.
2025-04-16 23:21:12 +02:00
Bruno Haible
6ca5ea1384 build: Use more gnulib modules.
* autogen.sh (GNULIB_MODULES): Add read-file.
Copy also config.guess and config.sub.
* lib/Makefile.am (BUILT_SOURCES, MOSTLYCLEANDIRS): New variables.
(libgp_a_SOURCES): Remove getline.h, getline.cc.
* lib/getline.h: Remove file.
* lib/getline.cc: Remove file.
* src/configure.ac: Change config.h to also include ../lib/config.h.
* src/output.cc: Include <config.h> first.
* src/search.cc: Likewise.
* src/bool-array.cc: Include <config.h>.
* src/keyword.cc: Likewise.
* src/keyword-list.cc: Likewise.
* src/hash-table.cc: Likewise.
* src/main.cc: Likewise.
* src/options.cc: Likewise.
* src/positions.cc: Likewise.
* src/version.cc: Likewise.
* src/input.cc: Likewise. Include read-file.h instead of getline.h.
(Input<KT>::read_input): Use fread_file instead of get_delim.
2025-04-16 22:28:11 +02:00
Bruno Haible
ad7a21f223 build: Use gnulib-tool with a module list.
* .gitmodules: New file.
* gitsub.sh: New file, from gnulib/top/gitsub.sh.
* autopull.sh: Use gitsub.sh to check out gnulib.
* autogen.sh: Accept --skip-gnulib option. Invoke gnulib-tool, assuming
a gnulib checkout is already present.
* Makefile.devel (lib/aclocal.m4): Update reference to macros directory.
* lib/configure.ac: Likewise. Invoke gl_EARLY, gl_INIT.
* lib/Makefile.am (EXTRA_DIST, MOSTLYCLEANFILES): New variables.
Include Makefile.gnulib.
2025-04-16 22:05:58 +02:00
Bruno Haible
e60835d424 build: Use Automake in lib/.
* autopull.sh: Copy also m4/init-package-version.m4.
* autogen.sh: Mention the requirement for Automake.
* Makefile.devel (lib/aclocal.m4, lib/config.h.in, lib/Makefile.in): New
rules.
(lib/configure): Use lib/aclocal.m4 instead of the top-level aclocal.m4.
(src/config.h.in): Fix rule.
(totally-clean): Remove the new generated files.
* lib/configure.ac: Require Autoconf >= 2.70. Change AC_INIT invocation.
Invoke AC_CONFIG_MACRO_DIRS, gl_INIT_PACKAGE_VERSION, AM_INIT_AUTOMAKE,
AC_CONFIG_HEADERS. Don't invoke AC_MAKE_SET, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_PROG_INSTALL.
* lib/Makefile.am: New file.
* lib/Makefile.in: Remove file.
* Makefile.in (IMPORTED_FILES): Remove lib/filename.h.
2025-04-16 22:02:43 +02:00
Bruno Haible
0246553284 Fix build (regression 2024-04-04).
Reported by Pádraig Brady <P@draigBrady.com> in
<https://lists.gnu.org/archive/html/bug-gperf/2024-06/msg00000.html>.

* doc/configure.ac: Invoke AC_CONFIG_AUX_DIR, needed for locating
install-sh.
* lib/configure.ac: Likewise.
* src/configure.ac: Likewise.
* tests/configure.ac: Likewise.
2024-06-05 11:31:18 +02:00
Bruno Haible
84183912e0 Remove outdated Autoconf macro.
* aclocal.m4 (CL_PROG_INSTALL): Remove macro.
* doc/configure.ac: Invoke AC_PROG_INSTALL instead of CL_PROG_INSTALL.
* lib/configure.ac: Likewise.
* src/configure.ac: Likewise.
2024-04-04 15:10:51 +02:00
Bruno Haible
09844ce4ca Fix a warning regarding strncmp.
Reported by Sam James in <https://savannah.gnu.org/bugs/?63031>.

* lib/getopt.c (strncmp): Declare with a prototype.
2022-09-08 04:45:03 +02:00
Bruno Haible
1862c6e57a Add support for reproducible builds.
Suggested by Richard Purdie <richard.purdie@linuxfoundation.org> in
<https://lists.gnu.org/archive/html/bug-gperf/2022-07/msg00000.html>.

* autogen.sh: Import also lib/filename.h.
* Makefile.in (IMPORTED_FILES): Add lib/filename.h.
* src/options.cc: Include filename.h.
(Options::print_options): Print only the base name of the program name.
* tests/*.exp: Update.
2022-07-05 07:51:46 +02:00
Bruno Haible
8cb07d4235 Fix warnings from Autoconf 2.69c.
* configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments.
* doc/configure.ac: Likewise.
* lib/configure.ac: Likewise.
* src/configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments. Use
AC_CACHE_CHECK, AC_LANG_PUSH/AC_LANG_POP, AC_COMPILE_IFELSE
* tests/configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments. Use
ac_cv_c_compiler_gnu instead of ac_cv_prog_gcc, and
ac_cv_cxx_compiler_gnu instead of ac_cv_prog_gxx. Don't use 'test' with
option '-a'.
2020-10-05 00:45:25 +02:00
Bruno Haible
a63b830554 Make the code C++17 compliant.
* lib/getline.cc (getstr): Don't use the 'register' keyword.
2020-08-30 12:36:15 +02:00
Bruno Haible
4706572628 Update after gnulib changed.
* configure.ac (AC_PREREQ): Require Autoconf >= 2.64.
* doc/configure.ac (AC_PREREQ): Likewise.
* lib/configure.ac (AC_PREREQ): Likewise.
* src/configure.ac (AC_PREREQ): Likewise.
* tests/configure.ac (AC_PREREQ): Likewise.
* autogen.sh: Update comment.
2020-08-30 02:06:20 +02:00
Bruno Haible
9f4f11ab13 Update after gnulib changed. 2018-10-24 11:59:45 +02:00
Bruno Haible
b3c3566855 Prefer https URLs where possible. 2018-09-17 16:53:00 +02:00
Bruno Haible
825b077bf4 Fix copyright years. 2017-02-22 15:32:38 +01:00
Bruno Haible
13df195c62 Tweak last commit. 2016-11-27 19:52:08 +01:00
Bruno Haible
cabd2af10e Assume the available C compiler supports ANSI C. Remove K&R C cruft. 2016-11-27 18:18:00 +01:00
Bruno Haible
31784d388f Use proper 'ar' program when cross-compiling or when AR is specified. 2016-11-26 17:15:35 +01:00
Bruno Haible
dd4c596245 Support for building with MSVC much like for Unix. 2012-07-01 17:59:59 +02:00
Bruno Haible
008922a2e9 Remove autotools generated files from version control. 2012-07-01 16:04:36 +02:00
Bruno Haible
9386cd6fc4 Create tarballs through an Automake-like "make dist" command. 2012-07-01 15:40:25 +02:00
Bruno Haible
b392998058 Regenerated with autoconf-2.69. 2012-04-28 20:58:26 +02:00
Bruno Haible
61edba6dde Regenerated with autoconf-2.68. 2011-01-16 11:06:15 +01:00
Bruno Haible
181d4eaa29 Regenerated with autoconf-2.67. 2010-07-31 19:05:15 +02:00
Bruno Haible
22f5f3d712 Regenerated with autoconf 2.66. 2010-07-03 13:01:28 +02:00
Eric Blake
5860266d3b Avoid gcc warnings on Cygwin. 2009-12-22 12:26:30 +01:00
Bruno Haible
ce9b2f4eb4 Support CPPFLAGS as mandated by GNU standards. 2009-12-22 11:41:37 +01:00
Brendan Kehoe
2adc7253ae regen configure scripts 2009-02-02 09:50:33 +00:00
Bruno Haible
7fac4aa2b6 More consistent m4 quoting. 2009-01-15 00:24:30 +00:00
Bruno Haible
f6c3e9a753 Change source code license to GPLv3+. 2008-08-23 18:52:48 +00:00
Bruno Haible
f619b6d038 Require autoconf >= 2.60. 2007-04-05 01:16:56 +00:00
Bruno Haible
085770fbae Regenerated with autoconf 2.61. 2007-04-04 10:57:29 +00:00
Bruno Haible
7c3b9778da Move to configure.ac. 2007-04-04 10:31:19 +00:00
Bruno Haible
0335c31aa8 Move to here from configure.in. 2007-04-04 10:31:16 +00:00
Brendan Kehoe
19468ca54d fix regeneration 2006-01-22 12:31:59 +00:00
Brendan Kehoe
77072bfbb0 regen configure scripts since we updated copyrights
avoids invocations of autoconf as part of a downloaded build
2006-01-22 12:22:30 +00:00
Brendan Kehoe
2f5b580a54 * configure.in: Add AC_OBJEXT and AC_EXEEXT.
* lib/Makefile.in (OBJEXT): Define for subst.
	(OBJECTS): Use $(OBJEXT) instead of '.o'.
	* src/Makefile.in: Make dependencies use $(OBJEXT).
	(OBJEXT, EXEEXT): Define for subst.
	(TARGETPROG): Add $(EXEEXT).
	(OBJECTS): Use $(OBJEXT) instead of '.o'.
	(clean): Remove *.$(OBJEXT) instead of *.o.
2006-01-13 14:43:56 +00:00
Bruno Haible
aa14f60197 Fix ranlib detection when cross-compiling. 2005-08-29 10:50:26 +00:00
Bruno Haible
61ba5cd46a Update FSF postal address. 2005-05-14 14:22:35 +00:00
Bruno Haible
7f09156d07 Regenerated. 2003-05-07 13:27:28 +00:00
Bruno Haible
0a3597e6c2 Comments. 2003-01-20 14:16:08 +00:00
Bruno Haible
21cd7bfd24 Use 'unsigned char' instead of 'char' in many places, to reduce casts. 2002-12-16 14:40:19 +00:00
Bruno Haible
122b13cc95 Update copyright notice to GPL v2. 2002-11-25 13:05:18 +00:00
Bruno Haible
74672acb3e Don't assume a huge stack. 2002-10-18 11:47:02 +00:00
Bruno Haible
e57e4e84ad Update. 2000-08-28 10:50:53 +00:00
Bruno Haible
71a393d4b3 Avoid warnings from Sun CC and HP-UX aCC. 2000-08-28 10:43:20 +00:00
Bruno Haible
c0eb520394 Allow the use of embedded NULs in keys. 2000-08-20 16:50:54 +00:00
Bruno Haible
0703856e95 Regenerated with autoconf-2.13. 2000-08-19 13:40:37 +00:00
Bruno Haible
501ee3e640 Initial revision 2000-08-19 06:20:11 +00:00