aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.in
diff options
context:
space:
mode:
authorAdrian Robert2008-07-15 18:15:18 +0000
committerAdrian Robert2008-07-15 18:15:18 +0000
commitedfda78355c5528eee489fa8a7f9c73bf8e734f2 (patch)
tree78d2414d9791e1efc17ec9b35b438ae35602340a /src/config.in
parent1391cd548782097e34d7856ec4f20ca90bdf2c26 (diff)
downloademacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.tar.gz
emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.zip
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'src/config.in')
-rw-r--r--src/config.in52
1 files changed, 45 insertions, 7 deletions
diff --git a/src/config.in b/src/config.in
index ae2a24dc46a..714d1d44f80 100644
--- a/src/config.in
+++ b/src/config.in
@@ -30,6 +30,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30/* Define to 1 if the mktime function is broken. */ 30/* Define to 1 if the mktime function is broken. */
31#undef BROKEN_MKTIME 31#undef BROKEN_MKTIME
32 32
33/* Define to 1 if you are trying experimental enhanced Ctrl-g support using NS
34 windowing under MacOS X. */
35#undef COCOA_EXPERIMENTAL_CTRL_G
36
33/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP 37/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
34 systems. This function is required for `alloca.c' support on those systems. 38 systems. This function is required for `alloca.c' support on those systems.
35 */ 39 */
@@ -472,6 +476,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
472/* Define to 1 if you have the <nlist.h> header file. */ 476/* Define to 1 if you have the <nlist.h> header file. */
473#undef HAVE_NLIST_H 477#undef HAVE_NLIST_H
474 478
479/* Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on
480 Mac OS X. */
481#undef HAVE_NS
482
475/* Define to 1 if personality LINUX32 can be set. */ 483/* Define to 1 if personality LINUX32 can be set. */
476#undef HAVE_PERSONALITY_LINUX32 484#undef HAVE_PERSONALITY_LINUX32
477 485
@@ -798,6 +806,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
798/* Define to 1 if you don't have struct exception in math.h. */ 806/* Define to 1 if you don't have struct exception in math.h. */
799#undef NO_MATHERR 807#undef NO_MATHERR
800 808
809/* Define to 1 if you are using NS windowing under MacOS X. */
810#undef NS_IMPL_COCOA
811
812/* Define to 1 if you are using NS windowing under GNUstep. */
813#undef NS_IMPL_GNUSTEP
814
801/* Define to the address where bug reports for this package should be sent. */ 815/* Define to the address where bug reports for this package should be sent. */
802#undef PACKAGE_BUGREPORT 816#undef PACKAGE_BUGREPORT
803 817
@@ -965,8 +979,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
965#undef volatile 979#undef volatile
966 980
967 981
968/* If we're using any sort of window system, define some consequences. */ 982/* If we're using X11/Carbon/GNUstep, define some consequences. */
969#ifdef HAVE_X_WINDOWS 983#if defined HAVE_X_WINDOWS || defined(HAVE_CARBON) || defined(HAVE_NS)
970#define HAVE_WINDOW_SYSTEM 984#define HAVE_WINDOW_SYSTEM
971#define MULTI_KBOARD 985#define MULTI_KBOARD
972#define HAVE_MOUSE 986#define HAVE_MOUSE
@@ -978,13 +992,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
978#define MULTI_KBOARD 992#define MULTI_KBOARD
979#endif 993#endif
980 994
981/* If we're using the Carbon API on Mac OS X, define a few more 995/* Sadly for now, GNUstep dump does not work. */
982 variables as well. */ 996#ifdef NS_IMPL_GNUSTEP
983#ifdef HAVE_CARBON 997#define CANNOT_DUMP
984#define HAVE_WINDOW_SYSTEM
985#define HAVE_MOUSE
986#endif 998#endif
987 999
1000/* PENDING: These are used for the Carbon port only. */
1001#undef MAC_OS
1002#undef MAC_OSX
1003
988/* Define USER_FULL_NAME to return a string 1004/* Define USER_FULL_NAME to return a string
989 that is the user's full name. 1005 that is the user's full name.
990 It can assume that the variable `pw' 1006 It can assume that the variable `pw'
@@ -1037,6 +1053,28 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1037#include config_opsysfile 1053#include config_opsysfile
1038#include config_machfile 1054#include config_machfile
1039 1055
1056/* Set up some defines, C and LD flags for NeXTstep interface on GNUstep.
1057 (There is probably a better place to do this, but right now the Cocoa
1058 side does this in s/darwin.h, following the Carbon port, and we cannot
1059 parallel this exactly since GNUstep is multi-OS. */
1060#ifdef HAVE_NS
1061# ifdef C_SWITCH_SYSTEM
1062# undef C_SWITCH_SYSTEM
1063# endif
1064# ifdef NS_IMPL_GNUSTEP
1065/* See also .m.o rule in Makefile.in */
1066# define C_SWITCH_X_SYSTEM -MMD -MP -D_REENTRANT -fPIC -fno-strict-aliasing
1067# define LD_SWITCH_SITE -lgnustep-gui -lgnustep-base -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread
1068# 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
1069# define OTHER_FILES ns-app
1070# else /* COCOA */
1071# define C_SWITCH_X_SYSTEM
1072# define GNU_OBJC_CFLAGS
1073# endif /* COCOA */
1074#endif /* HAVE_NS */
1075
1076
1077
1040/* If no remapping takes place, static variables cannot be dumped as 1078/* If no remapping takes place, static variables cannot be dumped as
1041 pure, so don't worry about the `static' keyword. */ 1079 pure, so don't worry about the `static' keyword. */
1042#ifdef NO_REMAP 1080#ifdef NO_REMAP