autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #7403] AX_EXT_HAVE_LIB: macro can be used only once


From: Sergio Belkin
Subject: [patch #7403] AX_EXT_HAVE_LIB: macro can be used only once
Date: Sat, 18 Dec 2010 19:15:50 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.2.13) Gecko/20101209 Fedora/3.6.13-1.fc14 Firefox/3.6.13 GTB7.1

Follow-up Comment #3, patch #7403 (project autoconf-archive):

Hi Peter,

Thanks for your answer. I've made the mistake of sending the reverse patch.
Here is the right patch.

The bug is that if you use the macro twice o more times LIBS variable is
equivalent to the last library found.

For example:

AX_EXT_HAVE_LIB([/lib64 /lib /usr/lib64 /usr/lib64 /usr/lib /usr/local/lib64
/usr/local/lib],resolv,inet_net_pton)

AX_EXT_HAVE_LIB([/lib64 /lib /usr/lib64 /usr/lib64 /usr/lib /usr/local/lib64
/usr/local/lib],pthread,pthread_create)

AX_EXT_HAVE_LIB([/lib64 /lib /usr/lib64 /usr/lib64 /usr/lib /usr/local/lib64
/usr/local/lib],crypto,X509_free)

AX_EXT_HAVE_LIB(/lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64
/usr/local/lib /usr/local/lib64/ssl /usr/lib/ssl , ssl, SSL_library_init)

AX_EXT_HAVE_LIB(/lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64
/usr/local/lib /usr/local/lib64/mysql /usr/lib64/mysql /usr/lib/mysql,
mysqlclient, mysql_close, [])

AX_EXT_HAVE_LIB(/lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64
/usr/local/lib /usr/local/lib64/postgresql /usr/lib/postgresql , pq,
PQfinish)

It ends with:

LIBS=-lpq

The change:
-new_libs="-l$2 ${new_libs}"
+new_libs="-l$2 $4"

It's a workaround when otherwise you get repeated entries of libraries on
variable LIBS. That workaround doesn't work if you haven't neither mysql devel
nor postgresql devel files in the example above .

Greetings

Sergio Belkin



(file #22227)
    _______________________________________________________

Additional Item Attachment:

File name: ax_ext_have_lib.m4.patch       Size:0 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Mensaje enviado vía/por Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]