diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-11-28 18:57:35 -0500 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-12-04 14:48:38 -0800 |
commit | 2c2b31d536545189e426b382fad5b5ae0b6cc4de (patch) | |
tree | e6c2485995b8591d718379f60d55e08d18edbf03 /configure | |
parent | 926c71e6b92a6aa993330e06c27eb9d9d67c6f82 (diff) |
Fix configure script to handle --prefix=
Reviewed-by: Carl Worth <cworth@cworth.org>:
This is really the fundamental thing that people expect a configure
script to do, so it's important to support it.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -3,6 +3,16 @@ CC=${CC:-gcc} CXX=${CXX:-g++} +# defaults +PREFIX=/usr/local + +# option parsing +for option; do + if [ "${option%=*}" = '--prefix' ] ; then + PREFIX="${option#*=}" + fi +done + cat <<EOF Welcome to Notmuch, a system for indexing, searching and tagging your email. @@ -186,7 +196,7 @@ CC = ${CC} CXX = ${CXX} # The prefix to which notmuch should be installed -prefix = /usr/local +prefix = ${PREFIX} # The directory to which emacs lisp files should be installed emacs_lispdir=${emacs_lispdir} |