Depending on which user runs the configure command, you may or may not have to specify the --with-gpg-error-prefix flag.