1 |
Thank you Michal and Haelwenn for your advises. |
2 |
|
3 |
I'm taking as reference the documentation about functions syntax in |
4 |
devmanual[1] (very useful for a quickly review). |
5 |
|
6 |
In the source code where autoreconf is being called I found a |
7 |
configure.ac and Makefile.am. |
8 |
|
9 |
Looking into autogen.sh[2] script prvided by the maintainer I confirm |
10 |
that he runs the following commands: |
11 |
|
12 |
- autoreconf -i -f |
13 |
|
14 |
- for each supported distribution defines variable extra_opts |
15 |
|
16 |
- "${SRC_DIR}/configure" --enable-maintainer-mode --prefix=/usr |
17 |
$extra_opts "$@" |
18 |
|
19 |
So it seems that the best approach would be the way you suggested in |
20 |
your example Haelwenn. |
21 |
|
22 |
[1] https://devmanual.gentoo.org/eclass-reference/ebuild/index.html |
23 |
|
24 |
[2] https://github.com/snapcore/snapd/blob/master/cmd/autogen.sh |