aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Robert2008-07-17 17:44:41 +0000
committerAdrian Robert2008-07-17 17:44:41 +0000
commit06b627700d30a166b0f06ad99166d448f9f7969c (patch)
tree35b0b353bfd71222d337fafae846c1eee23ec1a7
parente5744c66661fd4c5e118c0a9f451835543dcb789 (diff)
downloademacs-06b627700d30a166b0f06ad99166d448f9f7969c.tar.gz
emacs-06b627700d30a166b0f06ad99166d448f9f7969c.zip
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
-rw-r--r--Makefile.in17
-rwxr-xr-xconfigure102
-rw-r--r--configure.in53
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS7
-rw-r--r--src/ChangeLog6
-rw-r--r--src/Makefile.in31
7 files changed, 144 insertions, 76 deletions
diff --git a/Makefile.in b/Makefile.in
index 3d550db8768..c5cd80b9d30 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -169,6 +169,8 @@ carbon_appdir=@carbon_appdir@
169 169
170# Location to install Emacs.app under NeXT/Open/GNUstep / Cocoa 170# Location to install Emacs.app under NeXT/Open/GNUstep / Cocoa
171ns_appdir=@ns_appdir@ 171ns_appdir=@ns_appdir@
172ns_appbindir=@ns_appbindir@
173ns_appresdir=@ns_appresdir@
172 174
173# Where the etc/emacs.desktop file is to be installed. 175# Where the etc/emacs.desktop file is to be installed.
174desktopdir=$(datarootdir)/applications 176desktopdir=$(datarootdir)/applications
@@ -415,13 +417,14 @@ install-arch-dep: mkdir
415 && cat > /dev/null))) || exit 1; \ 417 && cat > /dev/null))) || exit 1; \
416 fi 418 fi
417 if test "${ns_appdir}" != ""; then \ 419 if test "${ns_appdir}" != ""; then \
418 umask 022; mkdir -p ${ns_appdir}/Emacs.app; \ 420 ( cd ${ns_appresdir} ; \
419 (cd nextstep/build/Emacs.app; (tar -chf - . | \ 421 if test -d share/emacs ; then mv -f share/emacs/*/* . ; fi ; \
420 (cd ${ns_appdir}/Emacs.app; umask 022; tar -xvf - \ 422 if test -d info ; then mv -f share/info . ; fi ; \
421 && cat > /dev/null))) || exit 1; \ 423 rm -fr share ) ; \
422 ( cd site-lisp ; tar chf - . ) | \ 424 ( cd ${ns_appbindir}/libexec ; mv -f emacs/*/*/* . ; rm -fr emacs ) ; \
423 ( cd ${datadir}/$(EMACSFULL)/site-lisp ; tar xf - ) \ 425 ( cd ${ns_appbindir}/bin ; rm -f emacs emacs-23* ; \
424 fi 426 ln -sf ../libexec/* .) ; \
427 else true ; fi
425 428
426## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html 429## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html
427## Needs to be the user running install, so configure can't set it. 430## Needs to be the user running install, so configure can't set it.
diff --git a/configure b/configure
index e2b2c364762..d51f1b6f3e3 100755
--- a/configure
+++ b/configure
@@ -735,6 +735,9 @@ machfile
735opsysfile 735opsysfile
736carbon_appdir 736carbon_appdir
737ns_appdir 737ns_appdir
738ns_appbindir
739ns_appresdir
740ns_appsrc
738GNUSTEP_MAKEFILES 741GNUSTEP_MAKEFILES
739LTLIBOBJS' 742LTLIBOBJS'
740ac_subst_files='' 743ac_subst_files=''
@@ -1334,9 +1337,8 @@ Optional Features:
1334 --enable-carbon-app[=DIR] 1337 --enable-carbon-app[=DIR]
1335 specify install directory for Emacs.app on Mac OS X 1338 specify install directory for Emacs.app on Mac OS X
1336 [DIR=/Application] 1339 [DIR=/Application]
1337 --enable-ns-app[=DIR] [DIR=/Applications]
1338 specify install directory for Emacs.app under NS
1339 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition 1340 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1341 --disable-ns-self-contained disable self contained build under NS
1340 --enable-asserts compile code with asserts enabled 1342 --enable-asserts compile code with asserts enabled
1341 --enable-maintainer-mode 1343 --enable-maintainer-mode
1342 enable make rules and dependencies not useful (and 1344 enable make rules and dependencies not useful (and
@@ -2169,12 +2171,6 @@ if test "${enable_carbon_app+set}" = set; then
2169fi 2171fi
2170 2172
2171 2173
2172# Check whether --enable-ns-app was given.
2173if test "${enable_ns_app+set}" = set; then
2174 enableval=$enable_ns_app; ns_appdir_x=${enableval}
2175fi
2176
2177
2178# Check whether --enable-cocoa-experimental-ctrl-g was given. 2174# Check whether --enable-cocoa-experimental-ctrl-g was given.
2179if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then 2175if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2180 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes 2176 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes
@@ -2183,6 +2179,14 @@ else
2183fi 2179fi
2184 2180
2185 2181
2182# Check whether --enable-ns-self-contained was given.
2183if test "${enable_ns_self_contained+set}" = set; then
2184 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=no
2185else
2186 EN_NS_SELF_CONTAINED=yes
2187fi
2188
2189
2186# Check whether --enable-asserts was given. 2190# Check whether --enable-asserts was given.
2187if test "${enable_asserts+set}" = set; then 2191if test "${enable_asserts+set}" = set; then
2188 enableval=$enable_asserts; USE_XASSERTS=$enableval 2192 enableval=$enable_asserts; USE_XASSERTS=$enableval
@@ -9334,11 +9338,19 @@ CFLAGS="$CFLAGS -x objective-c"
9334if test "${with_ns}" != no; then 9338if test "${with_ns}" != no; then
9335 if test "${opsys}" = darwin; then 9339 if test "${opsys}" = darwin; then
9336 NS_IMPL_COCOA=yes 9340 NS_IMPL_COCOA=yes
9341 ns_appdir=`pwd`/nextstep/Emacs.app
9342 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9343 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9344 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9337 elif test -f /etc/GNUstep/GNUstep.conf; then 9345 elif test -f /etc/GNUstep/GNUstep.conf; then
9338 NS_IMPL_GNUSTEP=yes 9346 NS_IMPL_GNUSTEP=yes
9347 ns_appdir=`pwd`/nextstep/Emacs.app
9348 ns_appbindir=`pwd`/nextstep/Emacs.app
9349 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9350 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9351 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_MAKEFILES)"
9339 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)" 9352 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9340 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)" 9353 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9341 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9342 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9354 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9343 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9355 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9344 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9356 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
@@ -9480,6 +9492,12 @@ if test "${HAVE_NS}" = yes; then
9480 window_system=nextstep 9492 window_system=nextstep
9481 with_xft=no 9493 with_xft=no
9482 with_freetype=no 9494 with_freetype=no
9495 # set up packaging dirs
9496 exec_prefix=${ns_appbindir}
9497 libexecdir=${ns_appbindir}/libexec
9498 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9499 prefix=${ns_appresdir}
9500 fi
9483fi 9501fi
9484CFLAGS="$tmp_CFLAGS" 9502CFLAGS="$tmp_CFLAGS"
9485CPPFLAGS="$tmp_CPPFLAGS" 9503CPPFLAGS="$tmp_CPPFLAGS"
@@ -15129,14 +15147,6 @@ cat >>confdefs.h <<\_ACEOF
15129#define HAVE_NS 1 15147#define HAVE_NS 1
15130_ACEOF 15148_ACEOF
15131 15149
15132 ## Specify the install directory
15133 ns_appdir=
15134 if test "${ns_appdir_x}" != ""; then
15135 case ${ns_appdir_x} in
15136 y | ye | yes) ns_appdir=/Applications ;;
15137 * ) ns_appdir=${ns_appdir_x} ;;
15138 esac
15139 fi
15140 if test "${NS_IMPL_COCOA}" = "yes"; then 15150 if test "${NS_IMPL_COCOA}" = "yes"; then
15141 15151
15142cat >>confdefs.h <<\_ACEOF 15152cat >>confdefs.h <<\_ACEOF
@@ -16907,7 +16917,6 @@ cat >>conftest.$ac_ext <<_ACEOF
16907# endif 16917# endif
16908#endif 16918#endif
16909 16919
16910#include <limits.h>
16911#include <stdlib.h> 16920#include <stdlib.h>
16912 16921
16913#ifdef HAVE_UNISTD_H 16922#ifdef HAVE_UNISTD_H
@@ -17056,15 +17065,12 @@ main ()
17056 isn't worth using anyway. */ 17065 isn't worth using anyway. */
17057 alarm (60); 17066 alarm (60);
17058 17067
17059 for (;;) 17068 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17060 { 17069 continue;
17061 t = (time_t_max << 1) + 1; 17070 time_t_max--;
17062 if (t <= time_t_max) 17071 if ((time_t) -1 < 0)
17063 break; 17072 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17064 time_t_max = t; 17073 continue;
17065 }
17066 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17067
17068 delta = time_t_max / 997; /* a suitable prime number */ 17074 delta = time_t_max / 997; /* a suitable prime number */
17069 for (i = 0; i < N_STRINGS; i++) 17075 for (i = 0; i < N_STRINGS; i++)
17070 { 17076 {
@@ -17079,12 +17085,10 @@ main ()
17079 && mktime_test ((time_t) (60 * 60 * 24)))) 17085 && mktime_test ((time_t) (60 * 60 * 24))))
17080 return 1; 17086 return 1;
17081 17087
17082 for (j = 1; ; j <<= 1) 17088 for (j = 1; 0 < j; j *= 2)
17083 if (! bigtime_test (j)) 17089 if (! bigtime_test (j))
17084 return 1; 17090 return 1;
17085 else if (INT_MAX / 2 < j) 17091 if (! bigtime_test (j - 1))
17086 break;
17087 if (! bigtime_test (INT_MAX))
17088 return 1; 17092 return 1;
17089 } 17093 }
17090 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 17094 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
@@ -18993,13 +18997,11 @@ _ACEOF
18993cat confdefs.h >>conftest.$ac_ext 18997cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF 18998cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */ 18999/* end confdefs.h. */
18996#include <sys/types.h> /* for off_t */ 19000#include <stdio.h>
18997 #include <stdio.h>
18998int 19001int
18999main () 19002main ()
19000{ 19003{
19001int (*fp) (FILE *, off_t, int) = fseeko; 19004return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19002 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19003 ; 19005 ;
19004 return 0; 19006 return 0;
19005} 19007}
@@ -19039,13 +19041,11 @@ cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF 19041cat >>conftest.$ac_ext <<_ACEOF
19040/* end confdefs.h. */ 19042/* end confdefs.h. */
19041#define _LARGEFILE_SOURCE 1 19043#define _LARGEFILE_SOURCE 1
19042#include <sys/types.h> /* for off_t */ 19044#include <stdio.h>
19043 #include <stdio.h>
19044int 19045int
19045main () 19046main ()
19046{ 19047{
19047int (*fp) (FILE *, off_t, int) = fseeko; 19048return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19048 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19049 ; 19049 ;
19050 return 0; 19050 return 0;
19051} 19051}
@@ -24184,6 +24184,9 @@ fi
24184 24184
24185 24185
24186 24186
24187
24188
24189
24187cat >>confdefs.h <<_ACEOF 24190cat >>confdefs.h <<_ACEOF
24188#define EMACS_CONFIGURATION "${canonical}" 24191#define EMACS_CONFIGURATION "${canonical}"
24189_ACEOF 24192_ACEOF
@@ -24357,10 +24360,26 @@ if test "$HAVE_CARBON" = "yes"; then
24357 echo 24360 echo
24358 echo "Warning: The Mac Carbon port is currently unsupported and has 24361 echo "Warning: The Mac Carbon port is currently unsupported and has
24359known problems. It is not recommended for use by non-developers. 24362known problems. It is not recommended for use by non-developers.
24363The NeXTstep port (--with-ns) is an alternative.
24360Read the emacs-devel archives for more information." 24364Read the emacs-devel archives for more information."
24361 echo 24365 echo
24362fi 24366fi
24363 24367
24368if test "$HAVE_NS" = "yes"; then
24369 echo
24370 echo "You must run \"make install\" in order to test the built application.
24371The installed application will go to nextstep/Emacs.app and can be
24372run or moved from there."
24373 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24374 echo "The application will be fully self-contained."
24375 else
24376 echo "The lisp resources for the application will be installed under ${prefix}.
24377You may need to run \"make install\" with sudo. The application will fail
24378to run if these resources are not installed."
24379 fi
24380 echo
24381fi
24382
24364if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then 24383if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24365 echo "D-Bus integration has been tested for GNU/Linux only." 24384 echo "D-Bus integration has been tested for GNU/Linux only."
24366 echo 24385 echo
@@ -25206,11 +25225,14 @@ machfile!$machfile$ac_delim
25206opsysfile!$opsysfile$ac_delim 25225opsysfile!$opsysfile$ac_delim
25207carbon_appdir!$carbon_appdir$ac_delim 25226carbon_appdir!$carbon_appdir$ac_delim
25208ns_appdir!$ns_appdir$ac_delim 25227ns_appdir!$ns_appdir$ac_delim
25228ns_appbindir!$ns_appbindir$ac_delim
25229ns_appresdir!$ns_appresdir$ac_delim
25230ns_appsrc!$ns_appsrc$ac_delim
25209GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim 25231GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25210LTLIBOBJS!$LTLIBOBJS$ac_delim 25232LTLIBOBJS!$LTLIBOBJS$ac_delim
25211_ACEOF 25233_ACEOF
25212 25234
25213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then 25235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
25214 break 25236 break
25215 elif $ac_last_try; then 25237 elif $ac_last_try; then
25216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 25238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
diff --git a/configure.in b/configure.in
index b42b3472421..bce269b5294 100644
--- a/configure.in
+++ b/configure.in
@@ -176,16 +176,16 @@ AC_ARG_ENABLE(carbon-app,
176 [DIR=/Application]])], 176 [DIR=/Application]])],
177[ carbon_appdir_x=${enableval}]) 177[ carbon_appdir_x=${enableval}])
178 178
179AC_ARG_ENABLE(ns-app,
180[[ --enable-ns-app[=DIR] [DIR=/Applications]
181 specify install directory for Emacs.app under NS]],
182[ ns_appdir_x=${enableval}])
183
184AC_ARG_ENABLE(cocoa-experimental-ctrl-g, 179AC_ARG_ENABLE(cocoa-experimental-ctrl-g,
185[ --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition], 180[ --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition],
186 EN_COCOA_EXPERIMENTAL_CTRL_G=yes, 181 EN_COCOA_EXPERIMENTAL_CTRL_G=yes,
187 EN_COCOA_EXPERIMENTAL_CTRL_G=no) 182 EN_COCOA_EXPERIMENTAL_CTRL_G=no)
188 183
184AC_ARG_ENABLE(ns-self-contained,
185[ --disable-ns-self-contained disable self contained build under NS],
186 EN_NS_SELF_CONTAINED=no,
187 EN_NS_SELF_CONTAINED=yes)
188
189AC_ARG_ENABLE(asserts, 189AC_ARG_ENABLE(asserts,
190[AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])], 190[AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])],
191 USE_XASSERTS=$enableval, 191 USE_XASSERTS=$enableval,
@@ -1230,11 +1230,19 @@ CFLAGS="$CFLAGS -x objective-c"
1230if test "${with_ns}" != no; then 1230if test "${with_ns}" != no; then
1231 if test "${opsys}" = darwin; then 1231 if test "${opsys}" = darwin; then
1232 NS_IMPL_COCOA=yes 1232 NS_IMPL_COCOA=yes
1233 ns_appdir=`pwd`/nextstep/Emacs.app
1234 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
1235 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
1236 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
1233 elif test -f /etc/GNUstep/GNUstep.conf; then 1237 elif test -f /etc/GNUstep/GNUstep.conf; then
1234 NS_IMPL_GNUSTEP=yes 1238 NS_IMPL_GNUSTEP=yes
1239 ns_appdir=`pwd`/nextstep/Emacs.app
1240 ns_appbindir=`pwd`/nextstep/Emacs.app
1241 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
1242 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
1243 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_MAKEFILES)"
1235 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)" 1244 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
1236 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)" 1245 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
1237 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
1238 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 1246 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
1239 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 1247 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
1240 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 1248 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
@@ -1247,6 +1255,12 @@ if test "${HAVE_NS}" = yes; then
1247 window_system=nextstep 1255 window_system=nextstep
1248 with_xft=no 1256 with_xft=no
1249 with_freetype=no 1257 with_freetype=no
1258 # set up packaging dirs
1259 exec_prefix=${ns_appbindir}
1260 libexecdir=${ns_appbindir}/libexec
1261 if test "${EN_NS_SELF_CONTAINED}" = yes; then
1262 prefix=${ns_appresdir}
1263 fi
1250fi 1264fi
1251CFLAGS="$tmp_CFLAGS" 1265CFLAGS="$tmp_CFLAGS"
1252CPPFLAGS="$tmp_CPPFLAGS" 1266CPPFLAGS="$tmp_CPPFLAGS"
@@ -2055,14 +2069,6 @@ fi
2055### Use NeXTstep API to implement GUI. 2069### Use NeXTstep API to implement GUI.
2056if test "${HAVE_NS}" = "yes"; then 2070if test "${HAVE_NS}" = "yes"; then
2057 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.]) 2071 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.])
2058 ## Specify the install directory
2059 ns_appdir=
2060 if test "${ns_appdir_x}" != ""; then
2061 case ${ns_appdir_x} in
2062 y | ye | yes) ns_appdir=/Applications ;;
2063 * ) ns_appdir=${ns_appdir_x} ;;
2064 esac
2065 fi
2066 if test "${NS_IMPL_COCOA}" = "yes"; then 2072 if test "${NS_IMPL_COCOA}" = "yes"; then
2067 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.]) 2073 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.])
2068 fi 2074 fi
@@ -2472,6 +2478,9 @@ AC_SUBST(opsysfile)
2472AC_SUBST(GETLOADAVG_LIBS) 2478AC_SUBST(GETLOADAVG_LIBS)
2473AC_SUBST(carbon_appdir) 2479AC_SUBST(carbon_appdir)
2474AC_SUBST(ns_appdir) 2480AC_SUBST(ns_appdir)
2481AC_SUBST(ns_appbindir)
2482AC_SUBST(ns_appresdir)
2483AC_SUBST(ns_appsrc)
2475AC_SUBST(GNUSTEP_MAKEFILES) 2484AC_SUBST(GNUSTEP_MAKEFILES)
2476 2485
2477AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}", 2486AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}",
@@ -2903,10 +2912,26 @@ if test "$HAVE_CARBON" = "yes"; then
2903 echo 2912 echo
2904 echo "Warning: The Mac Carbon port is currently unsupported and has 2913 echo "Warning: The Mac Carbon port is currently unsupported and has
2905known problems. It is not recommended for use by non-developers. 2914known problems. It is not recommended for use by non-developers.
2915The NeXTstep port (--with-ns) is an alternative.
2906Read the emacs-devel archives for more information." 2916Read the emacs-devel archives for more information."
2907 echo 2917 echo
2908fi 2918fi
2909 2919
2920if test "$HAVE_NS" = "yes"; then
2921 echo
2922 echo "You must run \"make install\" in order to test the built application.
2923The installed application will go to nextstep/Emacs.app and can be
2924run or moved from there."
2925 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
2926 echo "The application will be fully self-contained."
2927 else
2928 echo "The lisp resources for the application will be installed under ${prefix}.
2929You may need to run \"make install\" with sudo. The application will fail
2930to run if these resources are not installed."
2931 fi
2932 echo
2933fi
2934
2910if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then 2935if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
2911 echo "D-Bus integration has been tested for GNU/Linux only." 2936 echo "D-Bus integration has been tested for GNU/Linux only."
2912 echo 2937 echo
diff --git a/etc/ChangeLog b/etc/ChangeLog
index f840769a9df..e708756dc3f 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * NEWS: Add entry about NS port.
4
12008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> 52008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2 6
3 * Emacs.clr: New file, add support for X color names to NS display 7 * Emacs.clr: New file, add support for X color names to NS display
diff --git a/etc/NEWS b/etc/NEWS
index da7f823fb73..f562a108f0a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -83,6 +83,13 @@ The Emacs 22 icon is available as `emacs22.png' in the same location.
83 83
84* Changes in Emacs 23.1 84* Changes in Emacs 23.1
85 85
86** Emacs can now be built under the Cocoa libraries on Mac OS X and GNUstep
87 libraries on other machines. Specify --with-ns to configure for this. By
88 default a self-contained app will be built (containing all lisp). To
89 install/share lisp with other emacsen (e.g. X11 build) use
90 --disable-ns-self-contained. Use 'info-ns-emacs' or first entry under Help
91 menu when running for more information.
92
86** `where-is-preferred-modifier' can specify your favorite modifier. 93** `where-is-preferred-modifier' can specify your favorite modifier.
87 94
88** Improved X Window System support 95** Improved X Window System support
diff --git a/src/ChangeLog b/src/ChangeLog
index e540db8d607..63495ca08fc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5 from configure.
6
12008-07-17 Dan Nicolaescu <dann@ics.uci.edu> 72008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * s/sol2.h: 9 * s/sol2.h:
diff --git a/src/Makefile.in b/src/Makefile.in
index cba9dffddc8..93890de5669 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -532,17 +532,13 @@ emacsappsrc = ${srcdir}/../mac/Emacs.app/
532#endif 532#endif
533 533
534#ifdef HAVE_NS 534#ifdef HAVE_NS
535ns_appdir=@ns_appdir@/
536ns_appbindir=@ns_appbindir@/
537ns_appresdir=@ns_appresdir@/
538ns_appsrc=@ns_appsrc@
535/* Object files for NeXTstep */ 539/* Object files for NeXTstep */
536NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \ 540NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
537 fontset.o fringe.o image.o 541 fontset.o fringe.o image.o
538emacsapp = $(PWD)/../nextstep/build/Emacs.app/
539#ifdef NS_IMPL_GNUSTEP
540emacsappsrc = ${srcdir}/../nextstep/GNUstep/Emacs.base
541emacsbindir = $(emacsapp)
542#else
543emacsappsrc = ${srcdir}/../nextstep/Cocoa/Emacs.base
544emacsbindir = $(emacsapp)/Contents/MacOS/
545#endif /* NS_IMPL_GNUSTEP */
546#endif /* HAVE_NS */ 542#endif /* HAVE_NS */
547 543
548#ifdef HAVE_WINDOW_SYSTEM 544#ifdef HAVE_WINDOW_SYSTEM
@@ -1336,15 +1332,20 @@ nsselect.o: nsselect.m blockinput.h nsterm.h nsgui.h frame.h $(config_h)
1336nsimage.o: nsimage.m nsterm.h 1332nsimage.o: nsimage.m nsterm.h
1337nsfont.o: nsterm.h dispextern.h frame.h lisp.h $(config_h) 1333nsfont.o: nsterm.h dispextern.h frame.h lisp.h $(config_h)
1338 1334
1339${emacsapp}: ${emacsappsrc} 1335${ns_appdir}: ${ns_appsrc}
1340 mkdir -p ${emacsapp} 1336 rm -fr ${ns_appdir}
1341 ( cd ${emacsappsrc} ; tar cfh - . ) | ( cd ${emacsapp} ; tar xf - ) 1337 mkdir -p ${ns_appdir}
1338 ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; tar xf - )
1339 ( cd ${ns_appdir} ; for subdir in `find $${dest} -type d ! -name CVS -print` ; do \
1340 chmod a+rx $${subdir} ; \
1341 rm -rf $${subdir}/CVS ; \
1342 rm -f $${subdir}/.cvsignore ; done ; )
1342 1343
1343${emacsbindir}Emacs: emacs${EXEEXT} 1344${ns_appbindir}Emacs: emacs${EXEEXT}
1344 mkdir -p ${emacsbindir} 1345 mkdir -p ${ns_appbindir}
1345 cp -f emacs${EXEEXT} ${emacsbindir}Emacs 1346 cp -f emacs${EXEEXT} ${ns_appbindir}Emacs
1346 1347
1347ns-app: ${emacsapp} ${emacsbindir}Emacs 1348ns-app: ${ns_appdir} ${ns_appbindir}Emacs
1348 1349
1349#endif /* HAVE_NS */ 1350#endif /* HAVE_NS */
1350 1351