On Wed, 19 May 2021 at 15:46, John Emmas <john@creativepost.co.uk> wrote:
On 19/05/2021 14:15, Emmanuele Bassi wrote:
>
> The `config.h` file is generated by the build system—either Autotools
> or Meson.
>
> Ciao,
>  Emmanuele.
>
Thanks Emmanuele,

If I'm reading the makefiles correctly it looks like the top-level
source folder should contain a file called 'config.h.in' but I'm not
seeing that here (or does that file also get auto-generated?)

Yes, it's generated by the `configure` script in Autotools, just like Meson.

Basically I need to know what command(s) I'd need to execute in order to
end up with config.h

If you are building Cairo with Autotools, then:

```
./configure
```

will generate a `config.h` header file in the current directory. If you are building from Git, then I recommend using:

```
NOCONFIGURE=1 ./autogen.sh
mkdir _build && cd _build
../configure
```

Ciao,
 Emmanuele.

--
https://www.bassi.io
[@] ebassi [@gmail.com]