source $stdenv/setup postInstall() { # Create a wrapper around `aclocal' that converts every element in # `ACLOCAL_PATH' into a `-I dir' option. This way `aclocal' # becomes modular; M4 macros do not need to be stored in a single # global directory, while callers of `aclocal' do not need to pass # `-I' options explicitly. mv $out/bin/aclocal $out/bin/_tmp for i in $out/bin/aclocal*; do rm $i ln -s aclocal $i done cat > $out/bin/aclocal <