Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an Autotools build setup #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

DWesl
Copy link

@DWesl DWesl commented Jun 8, 2020

Extends #1

Include an Autotools build system, so that compilation in most cases will be

./configure --enable-geos-chem --enable-carbontracker
make -j4

make dist will build tar files and zip files that include those files (so installing from those tar and zip files requires /bin/sh, make, and a Fortran compiler). We can then point people at those files if they want a given release, drop build-aux from this repository, and just require that anyone wanting to build from the latest development sources (or tar files and zip files generated by GitHub) have recent versions of autoconf and automake.
Going this route somewhat complicates the build instructions.
This requires /bin/sh for the configuration step on client machines.

Many of these files are installed by autoconf and automake, so we can get rid of the build-aux directory if whoever is going to install this has recent versions of both. The files in the m4 directory are mostly from Autoconf-archive, so we can drop that as well if the people installing or developing this have that package installed.

Another alternative is to include all autotools-generated files in the repository, so that building from GitHub's "Download Here" button works the same way.
Advantages: only one set of build instructions
Disadvantages: Lots of generated files in the repository that are likely to change if the versions or autoconf or automake change. (Slightly larger repository, potential for log noise.)

DWesl added 10 commits March 31, 2019 08:06
This should help code be more editable and encourage collaboration.
There does not seem to be overlap between the contents of the
tarfiles.  This brings the package in line with standard GitHub
practice.
It should work; it's failing due to gfortran version mismatch now.
I forgot to do this the first time through.  Also add a few of the
files from the Autotools GNU standards.  I may convert over to Gnits
at some point.
This apparently wasn't done earlier.  I should probably look into
changing this to MOSTLYCLEANFILES=*.mod at some point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant