autoconf
[Top][All Lists]
Advanced

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

Re: recommended sequence to add libtool to an existing configure.ac


From: Ed Mansky
Subject: Re: recommended sequence to add libtool to an existing configure.ac
Date: Thu, 6 Feb 2014 15:48:14 -0800

Thanks Eric for the quick reply.

Good to know I am following a generally sound track. And yes, I did run libtoolize and already had added the items in the output.

Another question comes to mind now.

  Which of the macros :

AC_CANCAONICAL_SYSTEM

AC_CANONICAL_HOST

AC_CANONICAL_BUILD

AC_CANONICAL_TARGET

should one use in a configure.ac ?

Or should it be SYSTEM  --or--   the triplet HOST/BUILD/TARGET ?

The configure.ac I am starting with used SYSTEM alone, and I added the HOST macro too.

Thanks!

--Ed

On 02/06/2014 09:50 AM, Ed Mansky wrote:

 I did the following in sequence:

 1) Ran autoscan against the directory tree of the package. I added the
 missing macros to the existing configure.ac script that the autoscan
 result suggested.

 2) Added LT_INIT to configure.ac

 3) Ran autoreconf --install

Yep, sounds fairly accurate.  You may also need to run libtoolize to set
up the framework that libtool needs.  You'll probably get better answers
from the libtool list, as this is more of a libtool usage question than
an autoconf question.

 I thought it would be better to add libtool functionality via the
 correct macros to configure.ac, rather than hack at the configure script
 directly.

This part is absolutely true - you don't want to edit the generated
configure file, because those edits would be lost on the next run of
autoreconf.

--
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Attachment converted: Macintosh HD:signature 4683.asc (    /    ) (001F6C0D)


--
E. J. Mansky II
Eikonal Research Institute
Bend, Oregon


reply via email to

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