If I build a package with autoconf, how can I copy everything in the source/build* directory to another location for further testing etc.?
To elaborate further, I would like to do a simple backup of some of my work by building + testing everything in one directory before copying the directory, applying some transformations to the code (that don't require recompiling), and rerunning the tests. The problem I am running into is autoconf seems to want me to run autoreconf
in the newly copied directory requiring me to rebuild things. This is what I would like to avoid, if possible.
For example, when I try to run tests with the newly copied m4
(without even applying any transformations), I get the following:
m4-1.4.18/build-aux/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
EDIT:
As @Bodo pointed out, I should say that the copying method I use is cp -r
.
* I build things in the source directory without a separate build directory.
question from:
https://stackoverflow.com/questions/65945870/how-can-i-copy-an-autoconf-build-to-another-directory-for-further-testing 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…