diff options
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/darwin.h | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/src/s/darwin.h b/src/s/darwin.h index 4e282e99a9d..a290188d337 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -221,7 +221,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 221 | /* In Carbon, asynchronous I/O (using SIGIO) can't be used for window | 221 | /* In Carbon, asynchronous I/O (using SIGIO) can't be used for window |
| 222 | events because they don't come from sockets, even though it works | 222 | events because they don't come from sockets, even though it works |
| 223 | fine on tty's. */ | 223 | fine on tty's. */ |
| 224 | #ifdef HAVE_CARBON | 224 | /* This seems to help in Ctrl-G detection under Cocoa, however at the cost |
| 225 | of some quirks that may or may not bother a given user. */ | ||
| 226 | #if defined (HAVE_CARBON) || defined (COCOA_EXPERIMENTAL_CTRL_G) | ||
| 225 | #define NO_SOCK_SIGIO | 227 | #define NO_SOCK_SIGIO |
| 226 | #endif | 228 | #endif |
| 227 | 229 | ||
| @@ -247,8 +249,21 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 247 | 249 | ||
| 248 | /* Definitions for how to compile & link. */ | 250 | /* Definitions for how to compile & link. */ |
| 249 | 251 | ||
| 250 | /* Indicate that we are compiling for Mac OS X. */ | 252 | /* This is for the Carbon port. Under the NeXTstep port, this is still picked |
| 253 | up during preprocessing, but is undone in config.in. */ | ||
| 254 | #ifndef HAVE_NS | ||
| 251 | #define C_SWITCH_SYSTEM -fpascal-strings -DMAC_OSX | 255 | #define C_SWITCH_SYSTEM -fpascal-strings -DMAC_OSX |
| 256 | #endif | ||
| 257 | |||
| 258 | /* Link in the Carbon or AppKit lib. */ | ||
| 259 | #ifdef HAVE_NS | ||
| 260 | /* PENDING: lresolv is here because configure when testing #undefs res_init, | ||
| 261 | a macro in /usr/include/resolv.h for res_9_init, not in stdc lib. */ | ||
| 262 | #define LIBS_MACGUI -framework AppKit -lresolv | ||
| 263 | #define SYSTEM_PURESIZE_EXTRA 200000 | ||
| 264 | #define HEADERPAD_EXTRA 6C8 | ||
| 265 | #else | ||
| 266 | #define HEADERPAD_EXTRA 690 | ||
| 252 | 267 | ||
| 253 | #ifdef HAVE_CARBON | 268 | #ifdef HAVE_CARBON |
| 254 | 269 | ||
| @@ -274,16 +289,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 274 | 289 | ||
| 275 | /* Link in the Carbon lib. */ | 290 | /* Link in the Carbon lib. */ |
| 276 | #ifdef HAVE_CARBON | 291 | #ifdef HAVE_CARBON |
| 277 | #define LIBS_CARBON -framework Carbon LIBS_IMAGE | 292 | #define LIBS_MACGUI -framework Carbon LIBS_IMAGE |
| 278 | #else | 293 | #else |
| 279 | #define LIBS_CARBON | 294 | #define LIBS_MACGUI |
| 280 | #endif | 295 | #endif /* !HAVE_CARBON */ |
| 296 | #endif /* !HAVE_NS */ | ||
| 281 | 297 | ||
| 282 | /* The -headerpad option tells ld (see man page) to leave room at the | 298 | /* The -headerpad option tells ld (see man page) to leave room at the |
| 283 | end of the header for adding load commands. Needed for dumping. | 299 | end of the header for adding load commands. Needed for dumping. |
| 284 | 0x690 is the total size of 30 segment load commands (at 56 | 300 | 0x690 is the total size of 30 segment load commands (at 56 |
| 285 | each). */ | 301 | each); under Cocoa 31 commands are required. */ |
| 286 | #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker -headerpad -Xlinker 690 | 302 | #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_MACGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA |
| 287 | 303 | ||
| 288 | #define C_SWITCH_SYSTEM_TEMACS -Dtemacs | 304 | #define C_SWITCH_SYSTEM_TEMACS -Dtemacs |
| 289 | 305 | ||
| @@ -312,6 +328,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 312 | #define OTHER_FILES macosx-app | 328 | #define OTHER_FILES macosx-app |
| 313 | #endif | 329 | #endif |
| 314 | 330 | ||
| 331 | /* PENDING: can this target be specified in a clearer way? */ | ||
| 332 | #ifdef HAVE_NS | ||
| 333 | #define OTHER_FILES ns-app | ||
| 334 | #endif | ||
| 335 | |||
| 315 | 336 | ||
| 316 | /* Define the following so emacs symbols will not conflict with those | 337 | /* Define the following so emacs symbols will not conflict with those |
| 317 | in the System framework. Otherwise -prebind will not work. */ | 338 | in the System framework. Otherwise -prebind will not work. */ |