]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous change, for NS builds that are not self-contained
authorGlenn Morris <rgm@gnu.org>
Thu, 17 May 2012 05:32:37 +0000 (22:32 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 17 May 2012 05:32:37 +0000 (22:32 -0700)
* configure.in (ns_self_contained): New output variable.
* Makefile.in (ns_self_contained): New, set by configure.
(install-arch-dep): Use $ns_self_contained.

ChangeLog
Makefile.in
configure.in

index e30635140ef4e8473c366246fa5c1281541fde85..7f12e3ea69d96c1f2ddb4598be8779b5fed7a7ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2012-05-17  Glenn Morris  <rgm@gnu.org>
 
-       * Makefile.in (install-arch-dep): For a self-contained ns build,
+       * configure.in (ns_self_contained): New output variable.
+       * Makefile.in (ns_self_contained): New, set by configure.
+       (install-arch-dep): For a self-contained ns build,
        don't bother installing binaries then immediately deleting them.
 
        * Makefile.in (ns_appbindir, ns_appresdir):
index e9ab4e6733dff60e0c144047d19c1a2c193f1584..53e73370b74dedee8e204f8bc65671e1b6a8966c 100644 (file)
@@ -94,6 +94,8 @@ configuration=@configuration@
 # Later values may use these.
 ns_appbindir=@ns_appbindir@
 ns_appresdir=@ns_appresdir@
+# Either yes or no depending on whether this is a relocatable Emacs.app.
+ns_self_contained=@ns_self_contained@
 
 # The default location for installation.  Everything is placed in
 # subdirectories of this directory.  The default values for many of
@@ -465,13 +467,13 @@ install-arch-dep: mkdir
            exec_prefix=${exec_prefix} bindir=${bindir} \
            libexecdir=${libexecdir} archlibdir=${archlibdir} \
            INSTALL_STRIP=${INSTALL_STRIP})
-       if test "${ns_appresdir}" = ""; then \
+       if test "${ns_self_contained}" = "no"; then \
          ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) || exit 1 ; \
          chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) ; \
          rm -f $(DESTDIR)${bindir}/$(EMACS) ; \
          ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \
        else \
-         ( cd ${ns_appresdir} ; \
+         ( cd ${ns_appresdir} || exit 1 ; \
            if test -d share/emacs ; then \
              for dir in share/emacs/${version}/*; do \
                rm -fr `basename "$$dir"`; mv "$$dir" . ; \
index 8c3b32282417d06bd9a5dce7ca53cfba70acea4d..048a8d7dec49141a9452bc83ded85f6640e64fd0 100644 (file)
@@ -1574,6 +1574,7 @@ fi
 AC_SUBST(TEMACS_LDFLAGS2)
 
 LEIM_INSTALLDIR="\${install_prefix}/leim"
+ns_self_contained=no
 ns_frag=/dev/null
 NS_OBJ=
 NS_OBJC_OBJ=
@@ -1586,6 +1587,7 @@ if test "${HAVE_NS}" = yes; then
   with_xft=no
   # set up packaging dirs
   if test "${EN_NS_SELF_CONTAINED}" = yes; then
+     ns_self_contained=yes
      prefix=${ns_appresdir}
      exec_prefix=${ns_appbindir}
      dnl This one isn't really used, only archlibdir is.
@@ -1600,6 +1602,7 @@ fi
 CFLAGS="$tmp_CFLAGS"
 CPPFLAGS="$tmp_CPPFLAGS"
 AC_SUBST(LEIM_INSTALLDIR)
+AC_SUBST(ns_self_contained)
 AC_SUBST(NS_OBJ)
 AC_SUBST(NS_OBJC_OBJ)
 AC_SUBST(LIB_STANDARD)