You may want to look at packages that use `autoreconfHook` to see a cleaner way for this.