diff options
| author | Dan Nicolaescu | 2008-08-07 14:21:43 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-08-07 14:21:43 +0000 |
| commit | 48fad8e894ded19e7c207d118cae0dbc0edffe88 (patch) | |
| tree | 5ffa202f0ab55cdbb858eee6c1e804e2c08571c1 /src | |
| parent | bc53d5446c3526d9abad0f4b3d319f2c9adb772d (diff) | |
| download | emacs-48fad8e894ded19e7c207d118cae0dbc0edffe88.tar.gz emacs-48fad8e894ded19e7c207d118cae0dbc0edffe88.zip | |
* s/darwin.h (OTHER_FILES): Do not define here, defined in
config.in.
* Makefile.in (ALL_OBJC_CFLAGS): New variable.
(.m.o): Use it.
* config.in: Regenerate.
* Makefile.in (INSTALLABLES): Add LIB_SRC_EXTRA_INSTALLABLES. Do
not special case for NS_IMPL_COCOA.
* configure.in (LIB_SRC_EXTRA_INSTALLABLES): New variable.
AC_SUBST it.
(GNU_OBJC_CFLAGS): Define as a shell variable instead of #define.
AC_SUBST it.
(OTHER_FILES): Always define for HAVE_NS.
(C_SWITCH_X_SYSTEM): Don't define as empty for NS_IMPL_COCOA.
* configure: Regenerate.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/Makefile.in | 4 | ||||
| -rw-r--r-- | src/config.in | 10 | ||||
| -rw-r--r-- | src/s/darwin.h | 1 |
4 files changed, 15 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d1bd1e3b488..4544bf0b841 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * s/darwin.h (OTHER_FILES): Do not define here, defined in | ||
| 4 | config.in. | ||
| 5 | |||
| 6 | * Makefile.in (ALL_OBJC_CFLAGS): New variable. | ||
| 7 | (.m.o): Use it. | ||
| 8 | * config.in: Regenerate. | ||
| 9 | |||
| 1 | 2008-08-07 Chong Yidong <cyd@stupidchicken.com> | 10 | 2008-08-07 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 11 | ||
| 3 | * xdisp.c (redisplay_window): Revert last change. | 12 | * xdisp.c (redisplay_window): Revert last change. |
diff --git a/src/Makefile.in b/src/Makefile.in index 3a12c7e2e95..a17a5acc221 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -254,11 +254,13 @@ DBUS_OBJ = dbusbind.o | |||
| 254 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM | 254 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM |
| 255 | since it may have -I options that should override those two. */ | 255 | since it may have -I options that should override those two. */ |
| 256 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ | 256 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ |
| 257 | ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@ | ||
| 258 | |||
| 257 | .SUFFIXES: .m | 259 | .SUFFIXES: .m |
| 258 | .c.o: | 260 | .c.o: |
| 259 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< | 261 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
| 260 | .m.o: | 262 | .m.o: |
| 261 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) GNU_OBJC_CFLAGS $< | 263 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< |
| 262 | 264 | ||
| 263 | #ifndef LIBX11_SYSTEM | 265 | #ifndef LIBX11_SYSTEM |
| 264 | #define LIBX11_SYSTEM | 266 | #define LIBX11_SYSTEM |
diff --git a/src/config.in b/src/config.in index ffa4688462e..1b10aa399cc 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -1039,18 +1039,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1039 | side does this in s/darwin.h and we cannot | 1039 | side does this in s/darwin.h and we cannot |
| 1040 | parallel this exactly since GNUstep is multi-OS. */ | 1040 | parallel this exactly since GNUstep is multi-OS. */ |
| 1041 | #ifdef HAVE_NS | 1041 | #ifdef HAVE_NS |
| 1042 | #define OTHER_FILES ns-app | ||
| 1042 | # ifdef NS_IMPL_GNUSTEP | 1043 | # ifdef NS_IMPL_GNUSTEP |
| 1043 | /* See also .m.o rule in Makefile.in */ | 1044 | /* See also .m.o rule in Makefile.in */ |
| 1044 | # define C_SWITCH_X_SYSTEM -D_REENTRANT -fPIC -fno-strict-aliasing | 1045 | # define C_SWITCH_X_SYSTEM -D_REENTRANT -fPIC -fno-strict-aliasing |
| 1045 | # define GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE | 1046 | # endif /* NS_IMPL_GNUSTEP */ |
| 1046 | # define OTHER_FILES ns-app | ||
| 1047 | # else /* NS_IMPL_COCOA */ | ||
| 1048 | # define C_SWITCH_X_SYSTEM | ||
| 1049 | # define GNU_OBJC_CFLAGS | ||
| 1050 | # endif /* NS_IMPL_COCOA */ | ||
| 1051 | #endif /* HAVE_NS */ | 1047 | #endif /* HAVE_NS */ |
| 1052 | 1048 | ||
| 1053 | /* Define `subprocesses' should be defined if you want to | 1049 | /* `subprocesses' should be defined if you want to |
| 1054 | have code for asynchronous subprocesses | 1050 | have code for asynchronous subprocesses |
| 1055 | (as used in M-x compile and M-x shell). | 1051 | (as used in M-x compile and M-x shell). |
| 1056 | Only MSDOS does not support this. */ | 1052 | Only MSDOS does not support this. */ |
diff --git a/src/s/darwin.h b/src/s/darwin.h index 4dcf8bb5fdd..068531df146 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -154,7 +154,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 154 | /* Definitions for how to compile & link. */ | 154 | /* Definitions for how to compile & link. */ |
| 155 | 155 | ||
| 156 | #ifdef HAVE_NS | 156 | #ifdef HAVE_NS |
| 157 | #define OTHER_FILES ns-app | ||
| 158 | /* XXX: lresolv is here because configure when testing #undefs res_init, | 157 | /* XXX: lresolv is here because configure when testing #undefs res_init, |
| 159 | a macro in /usr/include/resolv.h for res_9_init, not in stdc lib. */ | 158 | a macro in /usr/include/resolv.h for res_9_init, not in stdc lib. */ |
| 160 | #define LIBS_NSGUI -framework AppKit -lresolv | 159 | #define LIBS_NSGUI -framework AppKit -lresolv |