From 13b21e2fe5341b1d510148e17915a095618e8180 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 5 Dec 2022 07:45:47 +0400 Subject: [PATCH] Some improvements * Require Autoconf 2.70 * Add table of contents * Reorder configuration --- README.md | 14 ++++++++++++++ configure.ac | 15 ++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 52a2c3a..1104096 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,20 @@ Autotools project This is a template of an Autotools project. + + +Table of contents +----------------- + +* [Overview](#autotools-project) +* [Table of contents](#table-of-contents) +* [Usage](#usage) + + + +Usage +----- + Don't forget to change the following files: * `.gitignore` diff --git a/configure.ac b/configure.ac index 4823716..eadd294 100644 --- a/configure.ac +++ b/configure.ac @@ -2,14 +2,14 @@ # Specify program versions # ############################ -AC_PREREQ([2.68]) +AC_PREREQ([2.70]) LT_PREREQ([2.4.6]) -####################### -# Initialize Autoconf # -####################### +################################## +# Initialize Autoconf & Automake # +################################## AC_INIT([autotools-project], m4_normalize(m4_include([VERSION])), @@ -28,12 +28,6 @@ AC_CONFIG_FILES([ include/Makefile ]) - - -####################### -# Initialize Automake # -####################### - AM_INIT_AUTOMAKE([1.16 subdir-objects]) @@ -47,7 +41,6 @@ AC_LANG([C]) AM_PROG_AR AM_PROG_AS AC_PROG_CC -AC_PROG_CC_C99 AC_C_INLINE AC_CHECK_HEADER_STDBOOL AC_CHECK_HEADERS([stdarg.h stddef.h stdint.h])