aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-05-13 20:05:00 -0700
committerGlenn Morris2010-05-13 20:05:00 -0700
commit11842bd8ae675adb79d1a7ed75f16fef176cbfe9 (patch)
tree0b55773c3415dc4e32dbf8cc57bd2f31de34185d /src
parent2633ef942080bd6ddf157ed821c1ac98f472914d (diff)
downloademacs-11842bd8ae675adb79d1a7ed75f16fef176cbfe9.tar.gz
emacs-11842bd8ae675adb79d1a7ed75f16fef176cbfe9.zip
Define MOUSE_, TOOLTIP_, WINDOW_SUPPORT with configure.
* configure.in (GPM_MOUSE_SUPPORT): Remove. (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): New output variables. (HAVE_WINDOW_SYSTEM, HAVE_MOUSE): Move out of AC_BOTTOM. * src/Makefile.in (REAL_MOUSE_SUPPORT): New constant. (GPM_MOUSE_SUPPORT): Now it's a constant. (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure, not cpp. * msdos/sed2x.inp (HAVE_WINDOW_SYSTEM): Define. * msdos/sed1x.inp (TOOLTIP_SUPPORT): Edit to ${lispsource}tooltip.elc. (WINDOW_SUPPORT): Edit to $(BASE_WINDOW_SUPPORT) $(X_WINDOW_SUPPORT). * msdos/sed1v2.inp (MOUSE_SUPPORT): Edit to $(REAL_MOUSE_SUPPORT). (TOOLTIP_SUPPORT, WINDOW_SUPPORT): Edit to empty.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/Makefile.in48
2 files changed, 26 insertions, 27 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e329313237c..cfa1d1e2403 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12010-05-14 Glenn Morris <rgm@gnu.org> 12010-05-14 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4 (GPM_MOUSE_SUPPORT): Now it's a constant.
5 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6 not cpp.
7
3 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef. 8 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
4 (ns_appresdir): Remove, unused. 9 (ns_appresdir): Remove, unused.
5 10
diff --git a/src/Makefile.in b/src/Makefile.in
index b9fa57fe1d0..7955420ee49 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -193,10 +193,17 @@ GNUSTEP_SYSTEM_LIBRARIES=@GNUSTEP_SYSTEM_LIBRARIES@
193## Only used if HAVE_X_WINDOWS. 193## Only used if HAVE_X_WINDOWS.
194FONT_OBJ=@FONT_OBJ@ 194FONT_OBJ=@FONT_OBJ@
195 195
196## ${lispsource}mouse.elc if HAVE_GPM, otherwise empty. 196## Used if HAVE_MOUSE.
197## Not used if HAVE_MOUSE. 197REAL_MOUSE_SUPPORT=${lispsource}mouse.elc ${lispsource}select.elc \
198GPM_MOUSE_SUPPORT=@GPM_MOUSE_SUPPORT@ 198 ${lispsource}scroll-bar.elc
199## Used if HAVE_GPM && !HAVE_MOUSE
200GPM_MOUSE_SUPPORT=${lispsource}mouse.elc
199LIBGPM = @LIBGPM@ 201LIBGPM = @LIBGPM@
202## Either of the two preceding options, or empty.
203MOUSE_SUPPORT=@MOUSE_SUPPORT@
204
205## ${lispsource}tooltip.elc if HAVE_WINDOW_SYSTEM, else empty.
206TOOLTIP_SUPPORT=@TOOLTIP_SUPPORT@
200 207
201BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \ 208BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \
202 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \ 209 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
@@ -205,6 +212,10 @@ BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \
205X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \ 212X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \
206 ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc 213 ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc
207 214
215## If HAVE_X_WINDOWS, both the above
216## else if HAVE_WINDOW_SYSTEM (ie, HAVE_NS) just the former; else empty.
217WINDOW_SUPPORT=@WINDOW_SUPPORT@
218
208## -lresolv, or empty. 219## -lresolv, or empty.
209LIBRESOLV = @LIBRESOLV@ 220LIBRESOLV = @LIBRESOLV@
210 221
@@ -344,8 +355,8 @@ ns_appbindir=@ns_appbindir@/
344ns_appsrc=@ns_appsrc@ 355ns_appsrc=@ns_appsrc@
345#endif /* HAVE_NS */ 356#endif /* HAVE_NS */
346 357
347/* lastfile must follow all files 358/* lastfile must follow all files whose initialized data areas should
348 whose initialized data areas should be dumped as pure by dump-emacs. */ 359 be dumped as pure by dump-emacs. */
349obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ 360obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \
350 charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \ 361 charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \
351 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ 362 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \
@@ -394,13 +405,6 @@ POST_ALLOC_OBJ=@POST_ALLOC_OBJ@
394otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ 405otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \
395 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) 406 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS)
396 407
397#ifdef HAVE_MOUSE
398#define MOUSE_SUPPORT ${lispsource}mouse.elc \
399 ${lispsource}select.elc ${lispsource}scroll-bar.elc
400#else
401#define MOUSE_SUPPORT $(GPM_MOUSE_SUPPORT)
402#endif
403
404#ifdef MSDOS 408#ifdef MSDOS
405#define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \ 409#define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
406 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \ 410 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \
@@ -410,18 +414,6 @@ otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \
410#define MSDOS_SUPPORT 414#define MSDOS_SUPPORT
411#endif 415#endif
412 416
413#ifdef HAVE_WINDOW_SYSTEM
414#define TOOLTIP_SUPPORT ${lispsource}tooltip.elc
415#ifdef HAVE_X_WINDOWS
416#define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT) $(X_WINDOW_SUPPORT)
417#else
418#define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT)
419#endif /* HAVE_X_WINDOWS */
420#else
421#define TOOLTIP_SUPPORT
422#define WINDOW_SUPPORT
423#endif /* HAVE_WINDOW_SYSTEM */
424
425/* This is the platform-specific list of Lisp files loaded into the 417/* This is the platform-specific list of Lisp files loaded into the
426 dumped Emacs. It is arranged like this because it is easier to generate 418 dumped Emacs. It is arranged like this because it is easier to generate
427 it semi-mechanically from loadup.el this way. 419 it semi-mechanically from loadup.el this way.
@@ -455,7 +447,7 @@ lisp= \
455 ${lispsource}files.elc \ 447 ${lispsource}files.elc \
456 ${lispsource}format.elc \ 448 ${lispsource}format.elc \
457 ${lispsource}facemenu.elc \ 449 ${lispsource}facemenu.elc \
458 MOUSE_SUPPORT \ 450 ${MOUSE_SUPPORT} \
459 ${lispsource}emacs-lisp/float-sup.elc \ 451 ${lispsource}emacs-lisp/float-sup.elc \
460 ${lispsource}frame.elc \ 452 ${lispsource}frame.elc \
461 ${lispsource}help.elc \ 453 ${lispsource}help.elc \
@@ -518,9 +510,9 @@ lisp= \
518 ${lispsource}vc-hooks.elc \ 510 ${lispsource}vc-hooks.elc \
519 ${lispsource}ediff-hook.elc \ 511 ${lispsource}ediff-hook.elc \
520 ${lispsource}epa-hook.elc \ 512 ${lispsource}epa-hook.elc \
521 TOOLTIP_SUPPORT \ 513 ${TOOLTIP_SUPPORT} \
522 MSDOS_SUPPORT \ 514 MSDOS_SUPPORT \
523 WINDOW_SUPPORT \ 515 ${WINDOW_SUPPORT} \
524 ${NS_SUPPORT} \ 516 ${NS_SUPPORT} \
525 ${lispsource}widget.elc \ 517 ${lispsource}widget.elc \
526 ${lispsource}window.elc \ 518 ${lispsource}window.elc \
@@ -757,6 +749,8 @@ doc.o: buildobj.h
757Eg callproc.c only depends on w32.h for WINDOWSNT builds. 749Eg callproc.c only depends on w32.h for WINDOWSNT builds.
758One way to fix this would be to replace w32.h (etc) by $(W32_H), 750One way to fix this would be to replace w32.h (etc) by $(W32_H),
759a variable set by configure. Does not seem worth the trouble. 751a variable set by configure. Does not seem worth the trouble.
752Since the w32 build does not even use this file, you might ask
753why these dependencies are here at all...
760 754
761nsgui.h: In fact, every .o file depends directly or indirectly on 755nsgui.h: In fact, every .o file depends directly or indirectly on
762dispextern.h and hence nsgui.h under NS. But the ones that actually 756dispextern.h and hence nsgui.h under NS. But the ones that actually