autoconf: Ran autoupdate and moved .in to .ac

This commit is contained in:
Andrea Rogers 2024-06-23 06:27:17 -05:00
parent 263327c7cd
commit 2da4aa5692

View file

@ -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