The autotools setup could not bootstrap with modern autoconf/libtool:
`autoreconf -fi` failed with "possibly undefined macro: AC_PROG_LIBTOOL",
and several other macros used here were removed or deprecated long ago.
configure.ac:
- AC_PROG_LIBTOOL -> LT_INIT (with AC_CONFIG_MACRO_DIRS/AC_CONFIG_AUX_DIR);
add AM_PROG_AR required by newer libtool/automake.
- AM_CONFIG_HEADER -> AC_CONFIG_HEADERS; AC_OUTPUT(files...) -> AC_OUTPUT
with an explicit AC_CONFIG_FILES list.
- AC_TRY_COMPILE -> AC_COMPILE_IFELSE; drop AC_HEADER_STDC,
AC_PROG_GCC_TRADITIONAL, AC_STRUCT_ST_RDEV, AC_C_CONST and AC_C_INLINE
(all obsolete or unconditionally available).
- Drop AC_FUNC_MEMCMP/STRFTIME/VPRINTF; the corresponding HAVE_* macros
were never referenced. Keep the register_printf_* check but test the
ac_cv_func_* names that AC_CHECK_FUNCS actually sets.
- Pin -std=gnu11 (the sources predate C99 and rely on implicit-int-era
behaviour that newer C standards reject) and fix the -Wuninitialized
probe, which never set its cache variable.
- off_t/blkcnt_t sizeof fallbacks 64 -> 8 (bytes, not bits).
reiserfscore.pc.in: substitute @PACKAGE_VERSION@; REISERFSPROGS_VERSION was
never defined, so the generated .pc always carried an empty Version.
lib/parse_time.c: define _GNU_SOURCE, not _XOPEN_SOURCE. The valueless
_XOPEN_SOURCE disables _DEFAULT_SOURCE, which hides loff_t in <sys/types.h>
and broke the build. Every other translation unit already uses _GNU_SOURCE.
reiserfscore/xattr.c: drop the unused <sys/acl.h> include; no libacl symbol
is used (the reiserfs_acl_* structs come from reiserfs_fs.h), and the header
is not a declared build dependency.
Add autogen.sh to regenerate the build system after a fresh clone, and
update .gitignore for the build-aux/m4 layout and generated artifacts.
Verified: ./autogen.sh && ./configure && make completes on gcc 16 /
automake 1.18 / autoconf 2.72. mkreiserfs, reiserfsck --check,
debugreiserfs -S and reiserfstune all run against a freshly formatted
64 MiB image.
55 lines
726 B
Plaintext
55 lines
726 B
Plaintext
# Editor / OS cruft
|
|
*~
|
|
core
|
|
tags
|
|
|
|
# Autotools generated files (run ./autogen.sh to regenerate)
|
|
INSTALL
|
|
Makefile.in
|
|
aclocal.m4
|
|
autom4te.cache/
|
|
compile
|
|
config.guess
|
|
config.sub
|
|
config.h.in
|
|
configure
|
|
depcomp
|
|
install-sh
|
|
missing
|
|
ltmain.sh
|
|
ar-lib
|
|
/build-aux/
|
|
/m4/
|
|
|
|
# configure / make output
|
|
Makefile
|
|
.deps/
|
|
.libs/
|
|
*.o
|
|
*.a
|
|
*.lo
|
|
*.la
|
|
config.log
|
|
config.status
|
|
config.h
|
|
include/config.h
|
|
include/credits.h
|
|
include/stamp-h1
|
|
libtool
|
|
reiserfscore/reiserfs_err.c
|
|
reiserfscore/reiserfs_err.h
|
|
reiserfscore/reiserfscore.pc
|
|
|
|
# Generated man pages (from *.8.in)
|
|
*.8
|
|
|
|
# Built programs
|
|
/debugreiserfs/debugreiserfs
|
|
/fsck/reiserfsck
|
|
/mkreiserfs/mkreiserfs
|
|
/resize_reiserfs/resize_reiserfs
|
|
/tune/reiserfstune
|
|
|
|
# Release tarballs
|
|
reiserfsprogs-*.tar.*
|