I'm trying to install SystemC on mac (x86, macOs 13.0.1). I followed the steps described in the docs:
$ cd path/to/systemc-2.3.3
$ mkdir objdir
$ cd objdir
$ export CXX=g++
$ ../configure
But when I run the configure, I have an error cause it says that it cannot found src/makefile.in
. Do you have any idea why this happens or just any hint of where to seek for solutions?
Here's the complete logs, which seems to be normal until the error :
checking build system type... x86_64-apple-darwin22.1.0
// plenty of checking ...
checking whether the C++ compiler works... yes
//...
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `src/Makefile.in'
[EDIT]: Advancement :
By running autoconf
and automake
in source directory, I saw that some stuff were missing, so I runned aclocal
and automake --add-missing
. I can now run automake
in source dir without problems.
Running ../configure
now gives me :
$ checking ...
$ ../configure: line 2761: syntax error near unexpected token `1.10'
$ ../configure: line 2761: `AM_INIT_AUTOMAKE(1.10 tar-pax -Werror -Wno-portability no-define subdir-objects foreign)'
So I ended up removing the 1.10
in the configure.ac and it worked.