From patchwork Mon Jun 3 15:44:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 248323 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from userp1050.oracle.com (userp1050.oracle.com [156.151.31.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "userp1050.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 86E542C009C for ; Tue, 4 Jun 2013 01:45:31 +1000 (EST) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by userp1050.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r53FjT1d005082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 3 Jun 2013 15:45:29 GMT Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r53FjLhM011150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Jun 2013 15:45:22 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r53FjNIK024703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Jun 2013 15:45:23 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1UjWwl-0007Ta-D8; Mon, 03 Jun 2013 08:45:23 -0700 Received: from acsinet21.oracle.com ([141.146.126.237]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1UjWwH-0007RZ-64 for fedfs-utils-devel@oss.oracle.com; Mon, 03 Jun 2013 08:44:53 -0700 Received: from userp1020.oracle.com (userp1020.oracle.com [156.151.31.79]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r53FiqOA023029 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 3 Jun 2013 15:44:53 GMT Received: from manray.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net [99.26.161.222]) by userp1020.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r53FiPvQ015056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 3 Jun 2013 15:44:26 GMT Received: from manray.1015granger.net (localhost [127.0.0.1]) by manray.1015granger.net (8.14.7/8.14.7) with ESMTP id r53FipNd037841 for ; Mon, 3 Jun 2013 11:44:51 -0400 To: fedfs-utils-devel@oss.oracle.com From: Chuck Lever Date: Mon, 03 Jun 2013 11:44:51 -0400 Message-ID: <20130603154450.37741.82435.stgit@manray.1015granger.net> In-Reply-To: <20130603154140.37741.55638.stgit@manray.1015granger.net> References: <20130603154140.37741.55638.stgit@manray.1015granger.net> User-Agent: StGit/0.16 MIME-Version: 1.0 X-Flow-Control-Info: class=TempRjct-T3 reputation=Class:T3 ip=99.26.161.222 ct-class=T3 ct-vol1=0 ct-vol2=0 ct-vol3=0 ct-risk=70 ct-spam1=0 ct-spam2=0 ct-bulk=0 rcpts=1 size=999 X-Sendmail-CM-Score: 0.00% X-Sendmail-CM-Analysis: v=2.1 cv=ZcwkaKlA c=1 sm=1 tr=0 a=VArTBjHSyJYTe+J30wkXtQ==:117 a=VArTBjHSyJYTe+J30wkXtQ==:17 a=dzsqy3y4QnMA:10 a=rVdRuszhXJYA:10 a=dPGociXpb70A:10 a=IkcTkHD0fZMA:10 a=yPCof4ZbAAAA:8 a=Lb1rMZzfAAAA:8 a=oftqke5UPPQA:10 a=huQqAk2lTGbwX8NO1_ 8A:9 a=QEXdDO2ut3YA:10 a=7DSvI1NPTFQA:10 X-Sendmail-CT-Classification: not spam X-Sendmail-CT-RefID: str=0001.0A090205.51ACB9F4.0037, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 Subject: [fedfs-utils] [PATCH 3/5] configure.ac: check for presence of libattr X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers List-Id: fedfs-utils Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: userp1040.oracle.com [156.151.31.81] libattr.so and headers under /usr/include/attr/ should be called out by configure.ac if they can't be found on the build system. Introduced by commit 0520ee72 "Initial commit", Tue Mar 29 15:37:40 2011. Signed-off-by: Chuck Lever --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index deb457a..fad96c8 100644 --- a/configure.ac +++ b/configure.ac @@ -139,6 +139,11 @@ AC_CHECK_LIB([ssl], [SSL_CTX_new], AC_DEFINE([HAVE_LIBSSL], [1], [Define if you have libssl])], [AC_MSG_ERROR([libssl not found.])]) +AC_CHECK_LIB([attr], [fgetxattr], + [AC_SUBST([LIBATTR], ["-lattr"]) + AC_DEFINE([HAVE_LIBATTR], [1], + [Define if you have libattr])], + [AC_MSG_ERROR([libattr not found.])]) # Checks for header files. AC_CHECK_HEADERS([fcntl.h langinfo.h locale.h memory.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h syslog.h termios.h unistd.h wchar.h])