]> git.notmuchmail.org Git - notmuch/commitdiff
configure: drop use of "pkg-config emacs"
authorDavid Bremner <david@tethera.net>
Sun, 6 Dec 2015 15:59:57 +0000 (11:59 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 6 Dec 2015 16:06:11 +0000 (12:06 -0400)
This does not play well with --prefix. As Tomi notes in
id:m2k2p2rwth.fsf@guru.guru-group.fi, people still have the option of e.g.

% ./configure ---emacslispdir=`pkg-config emacs --variable sitepkglispdir`

configure

index 440d678c7eb3828041a24577cf7f1e37bf36c2ab..abd28da12e1df64294932108fb6b93808bf834bf 100755 (executable)
--- a/configure
+++ b/configure
@@ -472,19 +472,11 @@ else
 fi
 
 if [ -z "${EMACSLISPDIR}" ]; then
-    if pkg-config --exists emacs; then
-       EMACSLISPDIR=$(pkg-config emacs --variable sitepkglispdir)
-    else
-       EMACSLISPDIR='$(prefix)/share/emacs/site-lisp'
-    fi
+    EMACSLISPDIR='$(prefix)/share/emacs/site-lisp'
 fi
 
 if [ -z "${EMACSETCDIR}" ]; then
-    if pkg-config --exists emacs; then
-       EMACSETCDIR=$(pkg-config emacs --variable sitepkglispdir)
-    else
-       EMACSETCDIR='$(prefix)/share/emacs/site-lisp'
-    fi
+    EMACSETCDIR='$(prefix)/share/emacs/site-lisp'
 fi
 
 printf "Checking if emacs is available... "