Without these lines in xterm.c:
-#if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK)
-#define x_any_window_to_frame x_window_to_frame
-#define x_top_window_to_frame x_window_to_frame
-#endif
compilation fails:
xterm.o: In function `x_detect_focus_change':
emacs/src/xterm.c:3391: undefined reference to `x_any_window_to_frame'
xterm.o: In function `XTmouse_position':
emacs/src/xterm.c:3934: undefined reference to `x_any_window_to_frame'
xterm.o: In function `x_filter_event':
emacs/src/xterm.c:5736: undefined reference to `x_any_window_to_frame'
xterm.o: In function `handle_one_xevent':
emacs/src/xterm.c:5839: undefined reference to `x_any_window_to_frame'
emacs/src/xterm.c:5897: undefined reference to `x_top_window_to_frame'
emacs/src/xterm.c:5916: undefined reference to `x_any_window_to_frame'
emacs/src/xterm.c:6006: undefined reference to `x_any_window_to_frame'
emacs/src/xterm.c:6063: undefined reference to `x_top_window_to_frame'
emacs/src/xterm.c:6071: undefined reference to `x_top_window_to_frame'
emacs/src/xterm.c:6174: undefined reference to `x_top_window_to_frame'
emacs/src/xterm.c:6207: undefined reference to `x_top_window_to_frame'
emacs/src/xterm.c:6257: undefined reference to `x_any_window_to_frame'
emacs/src/xterm.c:6610: undefined reference to `x_any_window_to_frame'
emacs/src/xterm.c:6635: undefined reference to `x_top_window_to_frame'
emacs/src/xterm.c:6742: undefined reference to `x_top_window_to_frame'
ld returned 1 exit status
make[2]: *** [temacs] Error 1
in GNU Emacs 23.1.50 (x86_64-pc-linux-gnu) configured as:
What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/amdx86-64.h'
What compiler should emacs be built with? gcc -g3 -O0
-Wno-pointer-sign -fno-inline -fno-crossjumping
What window system should Emacs use? x11
What toolkit should Emacs use? none
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use a gif library? yes -lgif
Does Emacs use -lpng? yes
Does Emacs use -lrsvg-2? yes
Does Emacs use -lgpm? yes
Does Emacs use -ldbus? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? no
Does Emacs use -lotf? no
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? no