X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=488b3bd7965a57471c1fa187ffe7c4eb659a2e10;hp=1097b7c426d1a8df84d50b73450378736cda5409;hb=c7f971e8c02524ee2435406f0c14791b75c10e20;hpb=4faf809578ca63edc9f23f92d7ce47d60dbc061e diff --git a/configure b/configure index 1097b7c4..488b3bd7 100755 --- a/configure +++ b/configure @@ -1,5 +1,18 @@ #! /bin/sh +CC=${CC:-gcc} +CXX=${CXX:-g++} + +# defaults +PREFIX=/usr/local + +# option parsing +for option; do + if [ "${option%%=*}" = '--prefix' ] ; then + PREFIX="${option#*=}" + fi +done + cat < /dev/null 2>&1 +if ${CC} -o config/have_getline config/have_getline.c > /dev/null 2>&1 then printf "Yes.\n" have_getline=1 @@ -168,8 +189,14 @@ cat > Makefile.config <