swig-fortran / swig

This fork of SWIG creates Fortran wrapper code from C++ headers.
http://www.swig.org
Other
42 stars 11 forks source link

unable to build #182

Closed msz59 closed 1 year ago

msz59 commented 1 year ago

What is the proper way of building swig-fortran? The INSTALL file suggests using 'autoconf' but that has failed on my Ubuntu 22.04 system (autoconf ver. 2.71) giving: configure.ac:12: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:25: error: possibly undefined macro: AM_PROG_CC_C_O configure.ac:27: error: possibly undefined macro: AC_COMPILE_WARNINGS configure.ac:66: error: possibly undefined macro: AC_DEFINE configure.ac:70: error: possibly undefined macro: AC_MSG_FAILURE configure.ac:2862: error: possibly undefined macro: AC_DEFINE_DIR

sethrj commented 1 year ago

@msz59 There's a footnote in the documentation that you may have missed: you should run autogen.sh before trying to configure since you've probably cloned swig-fortran from git, and the configure script isn't part of the distribution. If you are a Spack user (a package manager targeting HPC systems) you can run spack install swig@4.1.1-fortran and it'll handle the whole autogen/configure/make/install process.