]> git.notmuchmail.org Git - notmuch/blobdiff - configure
Add some text to configure on how to install dependencies with yum.
[notmuch] / configure
index 1097b7c426d1a8df84d50b73450378736cda5409..7180e5e725e4a0d9bc9233915db558532e9e8d5a 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,8 @@
 #! /bin/sh
 
+CC=${CC:-gcc}
+CXX=${CXX:-g++}
+
 cat <<EOF
 Welcome to Notmuch, a system for indexing, searching and tagging your email.
 
@@ -109,6 +112,10 @@ line:
 
        sudo apt-get install libxapian-dev libgmime-2.4-dev libtalloc-dev
 
+Or on Fedora or other RPM-based systems:
+
+       sudo yum install xapian-core-devel gmime-devel libtalloc-devel
+
 On other systems, a similar command can be used, but the details of the 
 package names may be different, (such as "devel" in place of "dev").
 
@@ -122,6 +129,9 @@ to install pkg-config with a command such as:
 
        sudo apt-get install pkg-config
 
+Or:
+       sudo yum install pkgconfig
+
 But if pkg-config is not available for your system, then you will need
 to modify the configure script to manually set the cflags and ldflags
 variables to the correct values to link against each library in each
@@ -139,7 +149,7 @@ EOF
 fi
 
 printf "Checking for getline... "
-if gcc -o config/have_getline config/have_getline.c > /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,6 +178,12 @@ cat > Makefile.config <<EOF
 # changes, (and this could happen by simply calling "make" if the
 # configure script is updated).
 
+# The C compiler to use
+CC = ${CC}
+
+# The C++ compiler to use
+CXX = ${CXX}
+
 # The prefix to which notmuch should be installed
 prefix = /usr/local