[patch #8672] [patch] ax_berkeley_db_cxx.m4 - add support for freebsd installations

"T.v.Dein" <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
URL:
  <http://savannah.gnu.org/patch/?8672>

                 Summary: [patch] ax_berkeley_db_cxx.m4 - add support for
freebsd installations
                 Project: GNU Autoconf Archive
            Submitted by: tlinden
            Submitted on: Fri 15 May 2015 01:13:58 PM GMT
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The current state of ax_berkeley_db_cxx.m4 does not find berkeley db on a
freebsd system. Here's how a bdb install looks on my system:

/usr/local/lib/libdb41_cxx.so
/usr/local/include/db41/db_cxx.h

The macro didn't find it, because it only looked for:

/usr/local/lib/libdb_cxx-4.1.so

So, the supplied patch adds support for this. There's a flipside though, it's
slower now since it checks more combinations.

Besides, there's also a bug left in the macro: if you specify a minimum
version number consisting of just one digit, it fails, because:

echo 4 | cut -d. -f2
4

echo 4 | cut -d. -f3
4

I'm not sure why. However, because of this it looks for 4.4.4, which is not
what I want if I specify "4". So, it should at least be noted in the
documentation that one has to specify a full version number such as 4.0.0 (in
which case it works as expected)


best,
Tom



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 15 May 2015 01:13:58 PM GMT  Name:
ax_berkeley_db_cxx-oldbsdinstall-fix-20150515.patch  Size: 4kB   By: tlinden

<http://savannah.gnu.org/patch/download.php?file_id=34017>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8672>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.