Received: from eggs.gnu.org ([2001:4830:134:3::10]:37843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Vnk-0006AV-LV for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:08:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5Vng-00085o-Rj for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:08:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Vng-00085L-NY for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:07:56 -0400 From: Markus Armbruster References: <553E0514.5030700@msgid.tls.msk.ru> <553E115B.40303@redhat.com> <5581BB90.2030802@msgid.tls.msk.ru> <5581C9E2.70103@redhat.com> <5581D560.3080601@msgid.tls.msk.ru> <55827CD2.8080306@redhat.com> <55827D1E.7050104@msgid.tls.msk.ru> <55827EC2.9080302@redhat.com> Date: Thu, 18 Jun 2015 11:07:53 +0200 In-Reply-To: <55827EC2.9080302@redhat.com> (Paolo Bonzini's message of "Thu, 18 Jun 2015 10:18:10 +0200") Message-ID: <87bngd2xli.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] libcacard: use the library? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Michael Tokarev , qemu-devel Paolo Bonzini writes: > On 18/06/2015 10:11, Michael Tokarev wrote: >> 18.06.2015 11:09, Paolo Bonzini =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> On 17/06/2015 22:15, Michael Tokarev wrote: >>>> I tried autoconf&automake&libtool. It is a HugeMess, I disliked it. >>>> So I rewrote it as a simple shell script. >>>> >>>> The result of both attempts is available at http://www.corpit.ru/mjt/t= mp/libcacard/ >>>> There are 4 files in there: >>>> >>>> configure.ac Makefile.am -- auto*shit version, requires bootstrap like >>>> libtoolize && aclocal && automake --foreign --add-missing && autoconf >>> >>> More like autoreconf -fvi. >>=20 >> My 10-minute expirience with auto*tools did't go that far :) > > You got everything else right, though. Kudos. > >>>> configure Makefile.in -- my small version based on what qemu ./config= ure >>>> currently does. >>> >>> Doesn't have dependency tracking. That's already a no-no I think. >>=20 >> Well, it is trivial to add. For a first cut it works. > > And then it will be something else with cross-compilation, or something > else. Let's just use autotools and call it a day... In my experience, the Autotools are the worst build system, except for all the others. Libtool is particularly horrible. But when you actually have the problem it solves (building shared libraries on almost every rotten OS known to man), you're in a particularly horrible place already. So, Paolo's recommendation seconded.