# Set the defaults for values the user can specify with command-line
# options.
PREFIX=/usr/local
+LIBDIR=${PREFIX}/lib
usage ()
{
command line.
--prefix=PREFIX Install files in PREFIX [$PREFIX]
+ --libdir=LIBDIR Install libraries in LIBDIR [$LIBDIR]
By default, "make install" will install the resulting program to
$PREFIX/bin, documentation to $PREFIX/share, etc. You can
exit 0
elif [ "${option%%=*}" = '--prefix' ] ; then
PREFIX="${option#*=}"
+ elif [ "${option%%=*}" = '--libdir' ] ; then
+ LIBDIR="${option#*=}"
else
echo "Unrecognized option: ${option}."
echo "See:"
# The prefix to which notmuch should be installed
prefix = ${PREFIX}
+# The directory to which notmuch libraries should be installed
+libdir = ${LIBDIR}
+
# The directory to which emacs lisp files should be installed
emacs_lispdir=${emacs_lispdir}
+# The directory to which desktop files should be installed
+desktop_dir = \${prefix}/share/applications
+
# Whether the getline function is available (if not, then notmuch will
# build its own version)
HAVE_GETLINE = ${have_getline}