Rename configure.in to configure.ac

This commit is contained in:
Andrew Bettison 2016-09-23 13:58:16 +09:30
parent cd40025533
commit 4b2060554e
5 changed files with 7 additions and 10 deletions

View File

@ -36,7 +36,7 @@ GitHub. You can use [Git][] to download the latest version:
Dependencies Dependencies
------------ ------------
The dependencies for build are expressed in [configure.in](./configure.in). The dependencies for build are expressed in [configure.ac](./configure.ac).
Most mandatory dependencies are present in the standard Linux development Most mandatory dependencies are present in the standard Linux development
environment. environment.
@ -91,7 +91,6 @@ A successful session should appear something like:
$ cd $HOME/src/serval-dna $ cd $HOME/src/serval-dna
$ autoreconf -f -i -I m4 $ autoreconf -f -i -I m4
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
$ ./configure $ ./configure
checking build system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu

View File

@ -136,7 +136,7 @@ Makefile: Makefile.in config.status
config.status: configure config.status: configure
$(warning config.status may be out of date, please run ./configure) $(warning config.status may be out of date, please run ./configure)
configure: configure.in configure: configure.ac
$(warning configure may be out of date, please run autoreconf -f -i -I m4) $(warning configure may be out of date, please run autoreconf -f -i -I m4)
$(OBJSDIR_TOOLS)/version.o: $(ALL_SOURCES) $(HDRS) version_servald.c version_string.sh $(wildcard VERSION.txt) COPYRIGHT.txt $(OBJSDIR_TOOLS)/version.o: $(ALL_SOURCES) $(HDRS) version_servald.c version_string.sh $(wildcard VERSION.txt) COPYRIGHT.txt

View File

@ -11,7 +11,7 @@ non-developers who are experiencing errors in the [build][] process.
Autoconf Autoconf
-------- --------
The [configure.in](../configure.in) file is an [autoconf][] script that The [configure.ac](../configure.ac) file is an [autoconf][] script that
contains instructions for adapting the build of Serval DNA to different contains instructions for adapting the build of Serval DNA to different
platforms and CPU architectures. This script makes use of many [GNU M4][] platforms and CPU architectures. This script makes use of many [GNU M4][]
macros, each of which tests an aspect of the build environment, such as the macros, each of which tests an aspect of the build environment, such as the
@ -27,7 +27,7 @@ sub-directory.
The [autoreconf][] command used in the [build][] instructions generates an The [autoreconf][] command used in the [build][] instructions generates an
`aclocal.m4` file that includes all the necessary files from the [m4](../m4) `aclocal.m4` file that includes all the necessary files from the [m4](../m4)
directory. In turn, it then includes this `aclocal.m4` file when invoking [GNU directory. In turn, it then includes this `aclocal.m4` file when invoking [GNU
M4][] to convert the [configure.in](../configure.in) file into the M4][] to convert the [configure.ac](../configure.ac) file into the
`./configure` script. `./configure` script.
Internally, [autoconf][] generates the `aclocal.m4` file by invoking the Internally, [autoconf][] generates the `aclocal.m4` file by invoking the
@ -36,8 +36,7 @@ messages that look like this:
$ cd serval-dna $ cd serval-dna
$ aclocal $ aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.ac:18: warning: Unsupported attribute section, the test may fail
configure.in:18: warning: Unsupported attribute section, the test may fail
../../lib/autoconf/lang.m4:224: AC_LANG_SOURCE is expanded from... ../../lib/autoconf/lang.m4:224: AC_LANG_SOURCE is expanded from...
../../lib/autoconf/lang.m4:241: AC_LANG_PROGRAM is expanded from... ../../lib/autoconf/lang.m4:241: AC_LANG_PROGRAM is expanded from...
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
@ -47,7 +46,7 @@ messages that look like this:
../../lib/autoconf/general.m4:2042: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2042: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2063: AC_CACHE_CHECK is expanded from... ../../lib/autoconf/general.m4:2063: AC_CACHE_CHECK is expanded from...
/usr/share/aclocal/ax_gcc_var_attribute.m4:57: AX_GCC_VAR_ATTRIBUTE is expanded from... /usr/share/aclocal/ax_gcc_var_attribute.m4:57: AX_GCC_VAR_ATTRIBUTE is expanded from...
configure.in:18: the top level configure.ac:18: the top level
$ $
These messages are harmless; the correct `aclocal.m4` is still generated. To These messages are harmless; the correct `aclocal.m4` is still generated. To
@ -56,7 +55,6 @@ suppress most of these messages from the output of [aclocal][] and
$ cd serval-dna $ cd serval-dna
$ autoreconf -f -i -I m4 $ autoreconf -f -i -I m4
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
$ $
libsodium libsodium

View File

@ -2,6 +2,6 @@ The Autoconf macros in this directory were copied from the GNU Autoconf Archive
http://www.gnu.org/software/autoconf-archive/, and modified as needed. http://www.gnu.org/software/autoconf-archive/, and modified as needed.
The autoreconf(1) command generates an aclocal.m4 file, which includes all the The autoreconf(1) command generates an aclocal.m4 file, which includes all the
files in this directory that define macros that are used by configure.in. files in this directory that define macros that are used by configure.ac.
See INSTALL.md for more information. See INSTALL.md for more information.