emacs在macos10.15中编译,AppKit.h不可用。求助

macos升级10.15之后,编译emacs报这个错误。

checking AppKit/AppKit.h usability... no
checking AppKit/AppKit.h presence... yes
configure: WARNING: AppKit/AppKit.h: present but cannot be compiled
configure: WARNING: AppKit/AppKit.h:     check for missing prerequisite headers?
configure: WARNING: AppKit/AppKit.h: see the Autoconf documentation
configure: WARNING: AppKit/AppKit.h:     section "Present But Cannot Be Compiled"
configure: WARNING: AppKit/AppKit.h: proceeding with the compiler's result

把头文件加到/usr/local/include也不起作用

 ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/* /usr/local/include/

使用 gcc 编译的? macos 下可以用 clang 来编译, 例如可以 CC='clang' ./configure ...