[Top][All Lists]

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

Re: [bug-inetutils] [SCM] GNU Inetutils branch, master, updated. inetut

From: Simon Josefsson
Subject: Re: [bug-inetutils] [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-168-g9aa72c7
Date: Fri, 14 Sep 2012 00:42:44 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.3 (gnu/linux)

Mats Erik Andersson <address@hidden> writes:

> I have not studied that gadget. The main problem is that we need
> to cope with all these variations and more:
>   GNU/Linux
>      /usr/include/idna.h
>      /usr/lib/libidn.so
>      --with-idn
>   OpenSolaris
>      /usr/include/idn/idna.h
>      /usr/lib/libidn.sa
>      --with-idn=/usr/include/idn
>   NetBSD
>      /usr/pkg/include/idna.h
>      /usr/pkg/lib/libidn.so
>      --with-idn --with-libidn-prefix=/usr/pkg
> May I point out that libnettle and libgnutls are not able
> to cope with the corresponding OpenSolaris case for libgmp,
> so even your own project is wanton in this sense.
> Please use your longer experience with Autoconf in order
> to improve on me. I would welcome such a change.

With AC_LIB_HAVE_LINKFLAGS I think you would deal with it in the
following ways:

1) ./configure --with-idn (finds idna.h and libidn.so directly)

2) ./configure CPPFLAGS=-I/usr/include/idn --with-idn
   (also search /usr/include/idn for idna.h)

3) ./configure --with-idn --with-libidn-prefix=/usr/pkg

why wouldn't this work?

I agree it would be a nicer symmetry if AC_LIB_HAVE_LINKFLAGS provided
two parameters, one for includedir and one for libdir.  But it is mostly
an aesthetic improvement, as the code should deal with setting CPPFLAGS
to the includedir and --with-libidn-prefix to the libdir.


reply via email to

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