X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=c6e0c09a8f8014c9458c9461ae59094c49e56e05;hp=1097b7c426d1a8df84d50b73450378736cda5409;hb=4989ef3d871f2510dcf9cf65e7fddd81deeff82e;hpb=4faf809578ca63edc9f23f92d7ce47d60dbc061e diff --git a/configure b/configure index 1097b7c4..c6e0c09a 100755 --- a/configure +++ b/configure @@ -1,5 +1,67 @@ #! /bin/sh +# Set several defaults (optionally specified by the user in +# environemnt variables) +CC=${CC:-gcc} +CXX=${CXX:-g++} +CFLAGS=${CFLAGS:--O2} +CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} + +# Set the defaults for values the user can specify with command-line +# options. +PREFIX=/usr/local + +usage () +{ + 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 +238,20 @@ cat > Makefile.config <