I then think this format should work for both:

```
VARIANTS=variant1, variant2
BUILD_OPTIONS=....
EXTENSIONS=....
```
In bash, we can simply `source` it, in PHP, we can use `parse_ini_config`