From patchwork Sat Apr 13 15:15:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Squyres X-Patchwork-Id: 2440981 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1A681DFB79 for ; Sat, 13 Apr 2013 15:15:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754047Ab3DMPPN (ORCPT ); Sat, 13 Apr 2013 11:15:13 -0400 Received: from mtv-iport-1.cisco.com ([173.36.130.12]:7718 "EHLO mtv-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753976Ab3DMPPM (ORCPT ); Sat, 13 Apr 2013 11:15:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=6408; q=dns/txt; s=iport; t=1365866111; x=1367075711; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=U31iNNkoYoU09VO8h8XoWCAn4CPoF0+JlrtGFisaENM=; b=X305fEFoAvX2V9QKK9caJ0aDodleDF1kcQ1pj1P3TeiHcCEfc79p1ibB 42ZMSYgvWy6LA2TnkVERJEppxoac9G/Ebc0syYKnfHMeckXrgl0/nQyRt gTQc8S9gWZj/w9eu14oELv/T8sAY6u2cz/Y+X3YcEXjyOWcyrlv47PSsb 0=; X-IronPort-AV: E=Sophos;i="4.87,468,1363132800"; d="scan'208";a="75472650" Received: from mtv-core-3.cisco.com ([171.68.58.8]) by mtv-iport-1.cisco.com with ESMTP; 13 Apr 2013 15:15:11 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by mtv-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id r3DFFAq4011678; Sat, 13 Apr 2013 15:15:10 GMT Received: by cisco.com (Postfix, from userid 182726) id C128D3FAA49B; Sat, 13 Apr 2013 08:15:10 -0700 (PDT) From: Jeff Squyres To: linux-rdma@vger.kernel.org Cc: Jeff Squyres Subject: [PATCH 2/2] .gitignore updates and rename configure.in->.ac Date: Sat, 13 Apr 2013 08:15:08 -0700 Message-Id: <1365866108-9731-2-git-send-email-jsquyres@cisco.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1365866108-9731-1-git-send-email-jsquyres@cisco.com> References: <1365866108-9731-1-git-send-email-jsquyres@cisco.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Added some entries to config/.gitignore for newer versions of the GNU Autotools. Also renamed configure.in -> configure.ac to accomodate newer GNU Autotools (http://lists.gnu.org/archive/html/autotools-announce/2012-11/msg00000.html announced the intent to drop support for "configure.in" in future versions of Autoconf). Signed-off-by: Jeff Squyres --- .gitignore | 6 +++++ configure.ac | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.in | 74 ------------------------------------------------------------ 3 files changed, 80 insertions(+), 74 deletions(-) create mode 100644 configure.ac delete mode 100644 configure.in diff --git a/.gitignore b/.gitignore index 78effef..d198dd1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ autom4te.cache aclocal.m4 stamp-h.in config.h.in +config.h.in~ config.log config.h .libs @@ -15,3 +16,8 @@ Makefile config.status stamp-h1 libtool +config/libtool.m4 +config/ltoptions.m4 +config/ltsugar.m4 +config/ltversion.m4 +config/lt~obsolete.m4 diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..efdc5ac --- /dev/null +++ b/configure.ac @@ -0,0 +1,74 @@ +dnl Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.57) +AC_INIT(libibverbs, 1.1.6, linux-rdma@vger.kernel.org) +AC_CONFIG_SRCDIR([src/ibverbs.h]) +AC_CONFIG_AUX_DIR(config) +AC_CONFIG_MACRO_DIR(config) +AC_CONFIG_HEADER(config.h) +AM_INIT_AUTOMAKE([foreign]) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +dnl Checks for programs +AC_PROG_CC +AC_GNU_SOURCE +AC_PROG_LN_S +AC_PROG_LIBTOOL + +LT_INIT + +AC_ARG_WITH([valgrind], + AC_HELP_STRING([--with-valgrind], + [Enable Valgrind annotations (small runtime overhead, default NO)])) +if test x$with_valgrind = x || test x$with_valgrind = xno; then + want_valgrind=no + AC_DEFINE([NVALGRIND], 1, [Define to 1 to disable Valgrind annotations.]) +else + want_valgrind=yes + if test -d $with_valgrind; then + CPPFLAGS="$CPPFLAGS -I$with_valgrind/include" + fi +fi + +dnl Checks for libraries +AC_CHECK_LIB(dl, dlsym, [], + AC_MSG_ERROR([dlsym() not found. libibverbs requires libdl.])) +AC_CHECK_LIB(pthread, pthread_mutex_init, [], + AC_MSG_ERROR([pthread_mutex_init() not found. libibverbs requires libpthread.])) + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADER(valgrind/memcheck.h, + [AC_DEFINE(HAVE_VALGRIND_MEMCHECK_H, 1, + [Define to 1 if you have the header file.])], + [if test $want_valgrind = yes; then + AC_MSG_ERROR([Valgrind memcheck support requested, but not found.]) + fi]) + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST + +AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script, + [if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then + ac_cv_version_script=yes + else + ac_cv_version_script=no + fi]) + +if test $ac_cv_version_script = yes; then + LIBIBVERBS_VERSION_SCRIPT='-Wl,--version-script=$(srcdir)/src/libibverbs.map' +else + LIBIBVERBS_VERSION_SCRIPT= +fi +AC_SUBST(LIBIBVERBS_VERSION_SCRIPT) + +AC_CACHE_CHECK(for .symver assembler support, ac_cv_asm_symver_support, + [AC_TRY_COMPILE(, [asm("symbol:\n.symver symbol, api@ABI\n");], + ac_cv_asm_symver_support=yes, + ac_cv_asm_symver_support=no)]) +if test $ac_cv_asm_symver_support = yes; then + AC_DEFINE([HAVE_SYMVER_SUPPORT], 1, [assembler has .symver support]) +fi + +AC_CONFIG_FILES([Makefile libibverbs.spec]) +AC_OUTPUT diff --git a/configure.in b/configure.in deleted file mode 100644 index efdc5ac..0000000 --- a/configure.in +++ /dev/null @@ -1,74 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.57) -AC_INIT(libibverbs, 1.1.6, linux-rdma@vger.kernel.org) -AC_CONFIG_SRCDIR([src/ibverbs.h]) -AC_CONFIG_AUX_DIR(config) -AC_CONFIG_MACRO_DIR(config) -AC_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE([foreign]) -m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) - -dnl Checks for programs -AC_PROG_CC -AC_GNU_SOURCE -AC_PROG_LN_S -AC_PROG_LIBTOOL - -LT_INIT - -AC_ARG_WITH([valgrind], - AC_HELP_STRING([--with-valgrind], - [Enable Valgrind annotations (small runtime overhead, default NO)])) -if test x$with_valgrind = x || test x$with_valgrind = xno; then - want_valgrind=no - AC_DEFINE([NVALGRIND], 1, [Define to 1 to disable Valgrind annotations.]) -else - want_valgrind=yes - if test -d $with_valgrind; then - CPPFLAGS="$CPPFLAGS -I$with_valgrind/include" - fi -fi - -dnl Checks for libraries -AC_CHECK_LIB(dl, dlsym, [], - AC_MSG_ERROR([dlsym() not found. libibverbs requires libdl.])) -AC_CHECK_LIB(pthread, pthread_mutex_init, [], - AC_MSG_ERROR([pthread_mutex_init() not found. libibverbs requires libpthread.])) - -dnl Checks for header files. -AC_HEADER_STDC -AC_CHECK_HEADER(valgrind/memcheck.h, - [AC_DEFINE(HAVE_VALGRIND_MEMCHECK_H, 1, - [Define to 1 if you have the header file.])], - [if test $want_valgrind = yes; then - AC_MSG_ERROR([Valgrind memcheck support requested, but not found.]) - fi]) - -dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST - -AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script, - [if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then - ac_cv_version_script=yes - else - ac_cv_version_script=no - fi]) - -if test $ac_cv_version_script = yes; then - LIBIBVERBS_VERSION_SCRIPT='-Wl,--version-script=$(srcdir)/src/libibverbs.map' -else - LIBIBVERBS_VERSION_SCRIPT= -fi -AC_SUBST(LIBIBVERBS_VERSION_SCRIPT) - -AC_CACHE_CHECK(for .symver assembler support, ac_cv_asm_symver_support, - [AC_TRY_COMPILE(, [asm("symbol:\n.symver symbol, api@ABI\n");], - ac_cv_asm_symver_support=yes, - ac_cv_asm_symver_support=no)]) -if test $ac_cv_asm_symver_support = yes; then - AC_DEFINE([HAVE_SYMVER_SUPPORT], 1, [assembler has .symver support]) -fi - -AC_CONFIG_FILES([Makefile libibverbs.spec]) -AC_OUTPUT