From 2da4aa56922c0491828ce8f097e0a4d0e6e1c008 Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Sun, 23 Jun 2024 06:27:17 -0500 Subject: [PATCH] autoconf: Ran autoupdate and moved .in to .ac --- configure.in => configure.ac | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) rename configure.in => configure.ac (89%) diff --git a/configure.in b/configure.ac similarity index 89% rename from configure.in rename to configure.ac index 90910dc..031c97b 100644 --- a/configure.in +++ b/configure.ac @@ -20,8 +20,9 @@ dnl dnl $Id: configure.in,v 1.10 1998/09/15 19:19:42 rob Exp $ dnl -AC_INIT(libhfs/libhfs.h) -AC_CONFIG_HEADER(config.h) +AC_INIT +AC_CONFIG_SRCDIR([libhfs/libhfs.h]) +AC_CONFIG_HEADERS([config.h]) AC_CONFIG_SUBDIRS(libhfs librsrc) @@ -63,11 +64,22 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_RANLIB -AC_PROG_GCC_TRADITIONAL +m4_warn([obsolete], +[AC_PROG_GCC_TRADITIONAL is obsolete; use AC_PROG_CC +])dnl +AC_REQUIRE(AC_PROG_CC) dnl Checks for header files. -AC_HEADER_STDC +m4_warn([obsolete], +[The preprocessor macro 'STDC_HEADERS' is obsolete. + Except in unusual embedded environments, you can safely include all + C89 headers unconditionally.])dnl +# Autoupdate added the next two lines to ensure that your configure +# script's behavior did not change. They are probably safe to remove. +AC_CHECK_INCLUDES_DEFAULT +AC_PROG_EGREP + AC_CHECK_HEADERS(unistd.h fcntl.h termios.h sys/ioctl.h) dnl Checks for typedefs, structures, and compiler characteristics. @@ -83,12 +95,12 @@ AC_REPLACE_FUNCS(strdup strerror strstr strtol) AC_CHECK_FUNCS(setreuid) AC_CACHE_CHECK(for sys_errlist, hfs_cv_decl_syserrlist, [ - AC_TRY_LINK([], [ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ extern char *sys_errlist[]; extern int sys_nerr; sys_errlist[sys_nerr - 1][0] = 0; - ], hfs_cv_decl_syserrlist=yes, hfs_cv_decl_syserrlist=no) + ]])],[hfs_cv_decl_syserrlist=yes],[hfs_cv_decl_syserrlist=no]) ]) if test "$hfs_cv_decl_syserrlist" = yes @@ -298,4 +310,5 @@ fi dnl Create output files. -AC_OUTPUT(hfsck/Makefile linux/Makefile Makefile) +AC_CONFIG_FILES([hfsck/Makefile linux/Makefile Makefile]) +AC_OUTPUT