mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
2a659ba160
Autoconf 2.70 (released in 2020-12) produces warning messages about obsolete constructs by default. Running regen.sh with autoconf 2.70 installed produces the following warnings: .. configure.ac:7: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:21: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete configure.ac:21: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:21: warning: The macro `AC_HEADER_TIME' is obsolete. .. Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS Add the noyywrap parameter to AC_PROG_LEX. Use the noyywrap option since we already provide a yywrap function in the .l sources. Remove AC_HEADER_STDC. There are no references to the the autoconf variable set by this macro. This macro was marked as obsolete prior to autoconf 2.64 with the following note: "This macro is obsolescent, as current systems have conforming header files. New programs need not use this macro." AC_HEADER_TIME was marked as obsolete prior to autoconf 2.64 with the following note: "This macro is obsolescent, as current systems can include both files when they exist. New programs need not use this macro." The only reference that requires AC_HEADER_TIME is within the external roken code pulled from heimdal. Compiles that use the external upstream heimdal packages result in a build error if TIME_WITH_SYS_TIME is not defined: building src/crypto/hcrypto src/external/heimdal/hcrypto/camellia.c include/roken.h:803:58: error: ‘struct tm’ declared inside Update autoheader.m4 so a define for TIME_WITH_SYS_TIME is created. This avoids modifying the external heimdal/roken code. Change-Id: If4d6c0650aac617f535b35f81994b54a3b8ac021 Reviewed-on: https://gerrit.openafs.org/14838 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
28 lines
700 B
Plaintext
28 lines
700 B
Plaintext
AC_PRERQ([2.60])
|
|
AC_INIT([OpenAFS],[m4_esyscmd(build-tools/git-version .)],[openafs-bugs@openafs.org],[],[http://www.openafs.org/])
|
|
AC_CONFIG_AUX_DIR([build-tools])
|
|
AC_CONFIG_SRCDIR([src/libafs/Makefile.common.in])
|
|
|
|
AC_CONFIG_HEADERS([src/config/afsconfig.h])
|
|
MACOS_VERSION=1.9.1
|
|
|
|
AC_SUBST([MACOS_VERSION])
|
|
|
|
dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
|
|
AS_IF([test -z "$CFLAGS"], [CFLAGS=" "], [])
|
|
AC_PROG_CC
|
|
|
|
OPENAFS_CONFIGURE_COMMON
|
|
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
src/config/Makefile
|
|
src/config/Makefile.config
|
|
src/config/Makefile.lwp
|
|
src/config/Makefile.version-CML
|
|
src/config/Makefile.version-NOCML
|
|
src/libafs/Makefile.common
|
|
src/libafs/MakefileProto
|
|
])
|
|
AC_OUTPUT
|