about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/automake/setup-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/misc/automake/setup-hook.sh')
-rw-r--r--pkgs/development/tools/misc/automake/setup-hook.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/automake/setup-hook.sh b/pkgs/development/tools/misc/automake/setup-hook.sh
new file mode 100644
index 0000000000000..097b7b6cbe57d
--- /dev/null
+++ b/pkgs/development/tools/misc/automake/setup-hook.sh
@@ -0,0 +1,7 @@
+addAclocals () {
+    if test -d $1/share/aclocal; then
+        export ACLOCAL_PATH="$ACLOCAL_PATH${ACLOCAL_PATH:+:}$1/share/aclocal"
+    fi
+}
+
+envHooks=(${envHooks[@]} addAclocals)