emacs: fix head build

Emacs HEAD no longer provides autogen/copy_autogen

Closes #23994.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>