diff options
| author | Glenn Morris | 2012-05-16 22:32:37 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-05-16 22:32:37 -0700 |
| commit | b4a3620021f85b50a24a739a55f85fc8cc876be7 (patch) | |
| tree | 99f3b45bb86f379ab35f2587d01ae911621c1142 | |
| parent | 96182ae6973a088e7c3fffd489acf626d0b3a6cb (diff) | |
| download | emacs-b4a3620021f85b50a24a739a55f85fc8cc876be7.tar.gz emacs-b4a3620021f85b50a24a739a55f85fc8cc876be7.zip | |
Fix previous change, for NS builds that are not self-contained
* configure.in (ns_self_contained): New output variable.
* Makefile.in (ns_self_contained): New, set by configure.
(install-arch-dep): Use $ns_self_contained.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Makefile.in | 6 | ||||
| -rw-r--r-- | configure.in | 3 |
3 files changed, 10 insertions, 3 deletions
| @@ -1,6 +1,8 @@ | |||
| 1 | 2012-05-17 Glenn Morris <rgm@gnu.org> | 1 | 2012-05-17 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (install-arch-dep): For a self-contained ns build, | 3 | * configure.in (ns_self_contained): New output variable. |
| 4 | * Makefile.in (ns_self_contained): New, set by configure. | ||
| 5 | (install-arch-dep): For a self-contained ns build, | ||
| 4 | don't bother installing binaries then immediately deleting them. | 6 | don't bother installing binaries then immediately deleting them. |
| 5 | 7 | ||
| 6 | * Makefile.in (ns_appbindir, ns_appresdir): | 8 | * Makefile.in (ns_appbindir, ns_appresdir): |
diff --git a/Makefile.in b/Makefile.in index e9ab4e6733d..53e73370b74 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -94,6 +94,8 @@ configuration=@configuration@ | |||
| 94 | # Later values may use these. | 94 | # Later values may use these. |
| 95 | ns_appbindir=@ns_appbindir@ | 95 | ns_appbindir=@ns_appbindir@ |
| 96 | ns_appresdir=@ns_appresdir@ | 96 | ns_appresdir=@ns_appresdir@ |
| 97 | # Either yes or no depending on whether this is a relocatable Emacs.app. | ||
| 98 | ns_self_contained=@ns_self_contained@ | ||
| 97 | 99 | ||
| 98 | # The default location for installation. Everything is placed in | 100 | # The default location for installation. Everything is placed in |
| 99 | # subdirectories of this directory. The default values for many of | 101 | # subdirectories of this directory. The default values for many of |
| @@ -465,13 +467,13 @@ install-arch-dep: mkdir | |||
| 465 | exec_prefix=${exec_prefix} bindir=${bindir} \ | 467 | exec_prefix=${exec_prefix} bindir=${bindir} \ |
| 466 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ | 468 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ |
| 467 | INSTALL_STRIP=${INSTALL_STRIP}) | 469 | INSTALL_STRIP=${INSTALL_STRIP}) |
| 468 | if test "${ns_appresdir}" = ""; then \ | 470 | if test "${ns_self_contained}" = "no"; then \ |
| 469 | ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) || exit 1 ; \ | 471 | ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) || exit 1 ; \ |
| 470 | chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) ; \ | 472 | chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) ; \ |
| 471 | rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ | 473 | rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ |
| 472 | ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ | 474 | ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ |
| 473 | else \ | 475 | else \ |
| 474 | ( cd ${ns_appresdir} ; \ | 476 | ( cd ${ns_appresdir} || exit 1 ; \ |
| 475 | if test -d share/emacs ; then \ | 477 | if test -d share/emacs ; then \ |
| 476 | for dir in share/emacs/${version}/*; do \ | 478 | for dir in share/emacs/${version}/*; do \ |
| 477 | rm -fr `basename "$$dir"`; mv "$$dir" . ; \ | 479 | rm -fr `basename "$$dir"`; mv "$$dir" . ; \ |
diff --git a/configure.in b/configure.in index 8c3b3228241..048a8d7dec4 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1574,6 +1574,7 @@ fi | |||
| 1574 | AC_SUBST(TEMACS_LDFLAGS2) | 1574 | AC_SUBST(TEMACS_LDFLAGS2) |
| 1575 | 1575 | ||
| 1576 | LEIM_INSTALLDIR="\${install_prefix}/leim" | 1576 | LEIM_INSTALLDIR="\${install_prefix}/leim" |
| 1577 | ns_self_contained=no | ||
| 1577 | ns_frag=/dev/null | 1578 | ns_frag=/dev/null |
| 1578 | NS_OBJ= | 1579 | NS_OBJ= |
| 1579 | NS_OBJC_OBJ= | 1580 | NS_OBJC_OBJ= |
| @@ -1586,6 +1587,7 @@ if test "${HAVE_NS}" = yes; then | |||
| 1586 | with_xft=no | 1587 | with_xft=no |
| 1587 | # set up packaging dirs | 1588 | # set up packaging dirs |
| 1588 | if test "${EN_NS_SELF_CONTAINED}" = yes; then | 1589 | if test "${EN_NS_SELF_CONTAINED}" = yes; then |
| 1590 | ns_self_contained=yes | ||
| 1589 | prefix=${ns_appresdir} | 1591 | prefix=${ns_appresdir} |
| 1590 | exec_prefix=${ns_appbindir} | 1592 | exec_prefix=${ns_appbindir} |
| 1591 | dnl This one isn't really used, only archlibdir is. | 1593 | dnl This one isn't really used, only archlibdir is. |
| @@ -1600,6 +1602,7 @@ fi | |||
| 1600 | CFLAGS="$tmp_CFLAGS" | 1602 | CFLAGS="$tmp_CFLAGS" |
| 1601 | CPPFLAGS="$tmp_CPPFLAGS" | 1603 | CPPFLAGS="$tmp_CPPFLAGS" |
| 1602 | AC_SUBST(LEIM_INSTALLDIR) | 1604 | AC_SUBST(LEIM_INSTALLDIR) |
| 1605 | AC_SUBST(ns_self_contained) | ||
| 1603 | AC_SUBST(NS_OBJ) | 1606 | AC_SUBST(NS_OBJ) |
| 1604 | AC_SUBST(NS_OBJC_OBJ) | 1607 | AC_SUBST(NS_OBJC_OBJ) |
| 1605 | AC_SUBST(LIB_STANDARD) | 1608 | AC_SUBST(LIB_STANDARD) |