https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
12 lines
199 B
Bash
12 lines
199 B
Bash
xdtEnvHook() {
|
|
addToSearchPath ACLOCAL_PATH $1/share/aclocal
|
|
}
|
|
|
|
envHooks+=(xdtEnvHook)
|
|
|
|
xdtAutogenPhase() {
|
|
mkdir -p m4
|
|
NOCONFIGURE=1 xdt-autogen
|
|
}
|
|
|
|
preConfigurePhases+=(xdtAutogenPhase)
|