diff options
| author | Glenn Morris | 2010-04-29 18:50:17 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-04-29 18:50:17 -0700 |
| commit | d5096f16c6188a2eaba30d16eabbae9c25906b15 (patch) | |
| tree | e46430e81b015df15d0ba8f97b74c445cbb00caf /src | |
| parent | 7eb1ac33ed4ecb150dd0755292c2d74fb36400e3 (diff) | |
| download | emacs-d5096f16c6188a2eaba30d16eabbae9c25906b15.tar.gz emacs-d5096f16c6188a2eaba30d16eabbae9c25906b15.zip | |
Replace some xmenu cpp with autoconf.
* configure.in (TOOLKIT_LIBW) [HAVE_GTK]: Set to $GTK_LIBS.
(OLDXMENU, LIBXMENU): New output variables.
* src/Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
Set with configure, not cpp.
(LIBW): Remove, replace with $TOOLKIT_LIBW.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/Makefile.in | 38 |
2 files changed, 12 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8fe14886af9..ad02b0118e5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-04-30 Glenn Morris <rgm@gnu.org> | 1 | 2010-04-30 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]: | ||
| 4 | Set with configure, not cpp. | ||
| 5 | (LIBW): Remove, replace with $TOOLKIT_LIBW. | ||
| 6 | |||
| 3 | * Makefile.in (mallocobj): Remove. | 7 | * Makefile.in (mallocobj): Remove. |
| 4 | (otherobj): Simplify using @OTHER_OBJ@. | 8 | (otherobj): Simplify using @OTHER_OBJ@. |
| 5 | 9 | ||
diff --git a/src/Makefile.in b/src/Makefile.in index c49543b181c..9d60e403cf1 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -254,43 +254,21 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@ | |||
| 254 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< | 254 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< |
| 255 | 255 | ||
| 256 | #ifdef HAVE_X_WINDOWS | 256 | #ifdef HAVE_X_WINDOWS |
| 257 | #ifdef HAVE_MENUS | ||
| 258 | |||
| 259 | /* The X Menu stuff is present in the X10 distribution, but missing | ||
| 260 | from X11. If we have X10, just use the installed library; | ||
| 261 | otherwise, use our own copy. */ | ||
| 262 | #ifdef HAVE_X11 | ||
| 263 | #ifdef USE_X_TOOLKIT | ||
| 264 | OLDXMENU=${lwlibdir}liblw.a | ||
| 265 | LIBXMENU= $(OLDXMENU) | ||
| 266 | #else /* not USE_X_TOOLKIT */ | ||
| 267 | OLDXMENU= ${oldXMenudir}libXMenu11.a | ||
| 268 | LIBXMENU= $(OLDXMENU) | ||
| 269 | #endif /* not USE_X_TOOLKIT */ | ||
| 270 | #else /* not HAVE_X11 */ | ||
| 271 | LIBXMENU= -lXMenu | ||
| 272 | #endif /* not HAVE_X11 */ | ||
| 273 | 257 | ||
| 258 | /* This test needs to say in cpp for the time being, since s/ms-w32.h and | ||
| 259 | s/msdos.h define HAVE_MENUS, possibly overriding configure. */ | ||
| 260 | #ifdef HAVE_MENUS | ||
| 261 | OLDXMENU=@OLDXMENU@ | ||
| 262 | LIBXMENU=@LIBXMENU@ | ||
| 274 | #else /* not HAVE_MENUS */ | 263 | #else /* not HAVE_MENUS */ |
| 275 | 264 | OLDXMENU= | |
| 276 | /* Otherwise, do not worry about the menu library at all. */ | ||
| 277 | LIBXMENU= | 265 | LIBXMENU= |
| 278 | #endif /* not HAVE_MENUS */ | 266 | #endif /* not HAVE_MENUS */ |
| 279 | 267 | ||
| 280 | #ifdef USE_X_TOOLKIT | 268 | #ifdef USE_X_TOOLKIT |
| 281 | LIBW=$(TOOLKIT_LIBW) | 269 | LIBXT=$(TOOLKIT_LIBW) $(LIBXMU) -lXt $(LIBXTR6) -lXext |
| 282 | |||
| 283 | LIBXT= $(LIBW) $(LIBXMU) -lXt $(LIBXTR6) -lXext | ||
| 284 | |||
| 285 | #else /* not USE_X_TOOLKIT */ | 270 | #else /* not USE_X_TOOLKIT */ |
| 286 | 271 | LIBXT=$(TOOLKIT_LIBW) $(LIBXSM) | |
| 287 | #ifdef USE_GTK | ||
| 288 | LIBW=@GTK_LIBS@ | ||
| 289 | OLDXMENU= | ||
| 290 | LIBXMENU= | ||
| 291 | #endif /* USE_GTK */ | ||
| 292 | |||
| 293 | LIBXT=$(LIBW) $(LIBXSM) | ||
| 294 | #endif /* not USE_X_TOOLKIT */ | 272 | #endif /* not USE_X_TOOLKIT */ |
| 295 | 273 | ||
| 296 | #ifdef HAVE_X11 | 274 | #ifdef HAVE_X11 |