public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh
@ 2013-04-22 17:41 Jeff Squyres
       [not found] ` <1366652516-9547-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Squyres @ 2013-04-22 17:41 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Jeff Squyres

The old sequence of Autotools commands listed in autogen.sh is no
longer correct.  Instead, just use the single "autoreconf" command,
which will invoke all the Right Autotools commands in the correct
order.

Signed-off-by: Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
---
 autogen.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index fd47839..6c9233e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,8 +1,4 @@
 #! /bin/sh
 
 set -x
-aclocal -I config
-libtoolize --force --copy
-autoheader
-automake --foreign --add-missing --copy
-autoconf
+autoreconf -ifv -I config
-- 
1.8.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] libiberbs: .gitignore updates and rename configure.in->.ac
       [not found] ` <1366652516-9547-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
@ 2013-04-22 17:41   ` Jeff Squyres
       [not found]     ` <1366652516-9547-2-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
  2013-04-25 15:38   ` [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh Jeff Squyres (jsquyres)
  1 sibling, 1 reply; 7+ messages in thread
From: Jeff Squyres @ 2013-04-22 17:41 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Jeff Squyres

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 <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
---
 .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-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 <valgrind/memcheck.h> header file.])],
+    [if test $want_valgrind = yes; then
+        AC_MSG_ERROR([Valgrind memcheck support requested, but <valgrind/memcheck.h> 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 <valgrind/memcheck.h> header file.])],
-    [if test $want_valgrind = yes; then
-        AC_MSG_ERROR([Valgrind memcheck support requested, but <valgrind/memcheck.h> 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
-- 
1.8.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh
       [not found] ` <1366652516-9547-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
  2013-04-22 17:41   ` [PATCH 2/2] libiberbs: .gitignore updates and rename configure.in->.ac Jeff Squyres
@ 2013-04-25 15:38   ` Jeff Squyres (jsquyres)
       [not found]     ` <EF66BBEB19BADC41AC8CCF5F684F07FC44050FB1-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Jeff Squyres (jsquyres) @ 2013-04-25 15:38 UTC (permalink / raw)
  To: <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

Bump.

On Apr 22, 2013, at 1:41 PM, Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:

> The old sequence of Autotools commands listed in autogen.sh is no
> longer correct.  Instead, just use the single "autoreconf" command,
> which will invoke all the Right Autotools commands in the correct
> order.
> 
> Signed-off-by: Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
> ---
> autogen.sh | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/autogen.sh b/autogen.sh
> index fd47839..6c9233e 100755
> --- a/autogen.sh
> +++ b/autogen.sh
> @@ -1,8 +1,4 @@
> #! /bin/sh
> 
> set -x
> -aclocal -I config
> -libtoolize --force --copy
> -autoheader
> -automake --foreign --add-missing --copy
> -autoconf
> +autoreconf -ifv -I config
> -- 
> 1.8.1.1
> 


-- 
Jeff Squyres
jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh
       [not found]     ` <EF66BBEB19BADC41AC8CCF5F684F07FC44050FB1-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
@ 2013-04-30 14:29       ` Jeff Squyres (jsquyres)
       [not found]         ` <EF66BBEB19BADC41AC8CCF5F684F07FC4B1CD802-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Squyres (jsquyres) @ 2013-04-30 14:29 UTC (permalink / raw)
  To: <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

Bump bump.  :-)

On Apr 25, 2013, at 11:38 AM, Jeff Squyres (jsquyres) <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:

> Bump.
> 
> On Apr 22, 2013, at 1:41 PM, Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:
> 
>> The old sequence of Autotools commands listed in autogen.sh is no
>> longer correct.  Instead, just use the single "autoreconf" command,
>> which will invoke all the Right Autotools commands in the correct
>> order.
>> 
>> Signed-off-by: Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
>> ---
>> autogen.sh | 6 +-----
>> 1 file changed, 1 insertion(+), 5 deletions(-)
>> 
>> diff --git a/autogen.sh b/autogen.sh
>> index fd47839..6c9233e 100755
>> --- a/autogen.sh
>> +++ b/autogen.sh
>> @@ -1,8 +1,4 @@
>> #! /bin/sh
>> 
>> set -x
>> -aclocal -I config
>> -libtoolize --force --copy
>> -autoheader
>> -automake --foreign --add-missing --copy
>> -autoconf
>> +autoreconf -ifv -I config
>> -- 
>> 1.8.1.1
>> 
> 
> 
> -- 
> Jeff Squyres
> jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Jeff Squyres
jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh
       [not found]         ` <EF66BBEB19BADC41AC8CCF5F684F07FC4B1CD802-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
@ 2013-05-01 15:30           ` Doug Ledford
       [not found]             ` <51813501.8060106-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Doug Ledford @ 2013-05-01 15:30 UTC (permalink / raw)
  To: Jeff Squyres (jsquyres)
  Cc: <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

On 04/30/2013 10:29 AM, Jeff Squyres (jsquyres) wrote:
> Bump bump.  :-)

This is fine with me, however, I think you also need to bump the
autotools version to the latest upstream.  The automated checkers in our
build environment is spitting out errors about a number of upstream
packages where the autotools used to configure the package does not
include proper arm support.  The latest autotools bring in all of the
forthcoming arm variants.  So I would like to see both of these things done.

> On Apr 25, 2013, at 11:38 AM, Jeff Squyres (jsquyres) <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:
> 
>> Bump.
>>
>> On Apr 22, 2013, at 1:41 PM, Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:
>>
>>> The old sequence of Autotools commands listed in autogen.sh is no
>>> longer correct.  Instead, just use the single "autoreconf" command,
>>> which will invoke all the Right Autotools commands in the correct
>>> order.
>>>
>>> Signed-off-by: Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
>>> ---
>>> autogen.sh | 6 +-----
>>> 1 file changed, 1 insertion(+), 5 deletions(-)
>>>
>>> diff --git a/autogen.sh b/autogen.sh
>>> index fd47839..6c9233e 100755
>>> --- a/autogen.sh
>>> +++ b/autogen.sh
>>> @@ -1,8 +1,4 @@
>>> #! /bin/sh
>>>
>>> set -x
>>> -aclocal -I config
>>> -libtoolize --force --copy
>>> -autoheader
>>> -automake --foreign --add-missing --copy
>>> -autoconf
>>> +autoreconf -ifv -I config
>>> -- 
>>> 1.8.1.1
>>>
>>
>>
>> -- 
>> Jeff Squyres
>> jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
>> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh
       [not found]             ` <51813501.8060106-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2013-05-02 10:38               ` Jeff Squyres (jsquyres)
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff Squyres (jsquyres) @ 2013-05-02 10:38 UTC (permalink / raw)
  To: Doug Ledford; +Cc: <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

On May 1, 2013, at 11:30 AM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:

> This is fine with me, however, I think you also need to bump the
> autotools version to the latest upstream.  The automated checkers in our
> build environment is spitting out errors about a number of upstream
> packages where the autotools used to configure the package does not
> include proper arm support.  The latest autotools bring in all of the
> forthcoming arm variants.  So I would like to see both of these things done.

Are you referring to the version of Autotools that Roland uses to create his tarballs?

Because I have no control over that.  :-)


>> On Apr 25, 2013, at 11:38 AM, Jeff Squyres (jsquyres) <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:
>> 
>>> Bump.
>>> 
>>> On Apr 22, 2013, at 1:41 PM, Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:
>>> 
>>>> The old sequence of Autotools commands listed in autogen.sh is no
>>>> longer correct.  Instead, just use the single "autoreconf" command,
>>>> which will invoke all the Right Autotools commands in the correct
>>>> order.
>>>> 
>>>> Signed-off-by: Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
>>>> ---
>>>> autogen.sh | 6 +-----
>>>> 1 file changed, 1 insertion(+), 5 deletions(-)
>>>> 
>>>> diff --git a/autogen.sh b/autogen.sh
>>>> index fd47839..6c9233e 100755
>>>> --- a/autogen.sh
>>>> +++ b/autogen.sh
>>>> @@ -1,8 +1,4 @@
>>>> #! /bin/sh
>>>> 
>>>> set -x
>>>> -aclocal -I config
>>>> -libtoolize --force --copy
>>>> -autoheader
>>>> -automake --foreign --add-missing --copy
>>>> -autoconf
>>>> +autoreconf -ifv -I config
>>>> -- 
>>>> 1.8.1.1
>>>> 
>>> 
>>> 
>>> -- 
>>> Jeff Squyres
>>> jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
>>> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
>>> 
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> 
>> 
> 


-- 
Jeff Squyres
jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] libiberbs: .gitignore updates and rename configure.in->.ac
       [not found]     ` <1366652516-9547-2-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
@ 2013-05-06 15:24       ` Jeff Squyres (jsquyres)
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff Squyres (jsquyres) @ 2013-05-06 15:24 UTC (permalink / raw)
  To: <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

Bump.

FYI: Automake just released a new beta version, which included this in the release notes (http://lwn.net/Articles/531373/):

 - Automake 2.0 will drop support for the long-deprecated 'configure.in'
   name for the Autoconf input file.  You are advised to start using the
   recommended name 'configure.ac' instead, ASAP.

These two patches I have submitted are fairly trivial, backwards compatible with older versions of the GNU Autotools, and are going to be necessary once distros start upgrading to the newer versions of the GNU Autotools.  

No one seems to disagree with these patches -- can they get applied to libibverbs?



On Apr 22, 2013, at 1:41 PM, Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:

> 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 <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
> ---
> .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-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 <valgrind/memcheck.h> header file.])],
> +    [if test $want_valgrind = yes; then
> +        AC_MSG_ERROR([Valgrind memcheck support requested, but <valgrind/memcheck.h> 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 <valgrind/memcheck.h> header file.])],
> -    [if test $want_valgrind = yes; then
> -        AC_MSG_ERROR([Valgrind memcheck support requested, but <valgrind/memcheck.h> 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
> -- 
> 1.8.1.1
> 


-- 
Jeff Squyres
jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-06 15:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 17:41 [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh Jeff Squyres
     [not found] ` <1366652516-9547-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2013-04-22 17:41   ` [PATCH 2/2] libiberbs: .gitignore updates and rename configure.in->.ac Jeff Squyres
     [not found]     ` <1366652516-9547-2-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2013-05-06 15:24       ` Jeff Squyres (jsquyres)
2013-04-25 15:38   ` [PATCH 1/2] libibverbs: Use autoreconf in autogen.sh Jeff Squyres (jsquyres)
     [not found]     ` <EF66BBEB19BADC41AC8CCF5F684F07FC44050FB1-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
2013-04-30 14:29       ` Jeff Squyres (jsquyres)
     [not found]         ` <EF66BBEB19BADC41AC8CCF5F684F07FC4B1CD802-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
2013-05-01 15:30           ` Doug Ledford
     [not found]             ` <51813501.8060106-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-02 10:38               ` Jeff Squyres (jsquyres)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox