--- /dev/null
+Return-Path: <blakej@foo.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id B1844429E33\r
+ for <notmuch@notmuchmail.org>; Mon, 5 Nov 2012 11:02:26 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id vNHT3TC-cuCS for <notmuch@notmuchmail.org>;\r
+ Mon, 5 Nov 2012 11:02:25 -0800 (PST)\r
+Received: from foo.net (70-36-235-136.dsl.static.sonic.net [70.36.235.136])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 79AF7429E30\r
+ for <notmuch@notmuchmail.org>; Mon, 5 Nov 2012 11:02:23 -0800 (PST)\r
+Received: from foo.net (localhost [127.0.0.1])\r
+ by foo.net (8.14.5+Sun/8.14.5) with ESMTP id qA5J2Lbu019106;\r
+ Mon, 5 Nov 2012 11:02:21 -0800 (PST)\r
+Received: (from blakej@localhost)\r
+ by foo.net (8.14.5+Sun/8.14.5/Submit) id qA5J2L5j019105;\r
+ Mon, 5 Nov 2012 11:02:21 -0800 (PST)\r
+From: Blake Jones <blakej@foo.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 04/10] configure: check for -Wl,-rpath (Solaris support)\r
+Date: Mon, 5 Nov 2012 11:01:57 -0800\r
+Message-Id: <1352142123-18286-5-git-send-email-blakej@foo.net>\r
+X-Mailer: git-send-email 1.7.3.2\r
+In-Reply-To: <1352142123-18286-1-git-send-email-blakej@foo.net>\r
+References: <1352142123-18286-1-git-send-email-blakej@foo.net>\r
+X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2\r
+ (foo.net [127.0.0.1]); Mon, 05 Nov 2012 11:02:21 -0800 (PST)\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 05 Nov 2012 19:02:27 -0000\r
+\r
+Add a check to "configure" to see whether -Wl,-rpath can be used without\r
+--enable-new-dtags. Solaris needs the former and doesn't know about the\r
+latter.\r
+---\r
+ configure | 4 ++++\r
+ 1 files changed, 4 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/configure b/configure\r
+index 9707f11..c9da667 100755\r
+--- a/configure\r
++++ b/configure\r
+@@ -552,6 +552,10 @@ if ${CC} -Wl,--enable-new-dtags -Wl,-rpath,/tmp/ -o minimal minimal.c >/dev/null\r
+ then\r
+ printf "Yes.\n"\r
+ rpath_ldflags="-Wl,--enable-new-dtags -Wl,-rpath,\$(libdir)"\r
++elif ${CC} -Wl,-rpath,/tmp/ -o minimal minimal.c >/dev/null 2>&1\r
++then\r
++ printf "Yes.\n"\r
++ rpath_ldflags="-Wl,-rpath,\$(libdir)"\r
+ else\r
+ printf "No (nothing to worry about).\n"\r
+ rpath_ldflags=""\r
+-- \r
+1.7.3.2\r
+\r