From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 11 19:26:26 2020 Received: (at submit) by debbugs.gnu.org; 11 Jun 2020 23:26:26 +0000 Received: from localhost ([127.0.0.1]:38353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjWaY-0005SG-7j for submit@debbugs.gnu.org; Thu, 11 Jun 2020 19:26:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:47728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjWaT-0005S5-9x for submit@debbugs.gnu.org; Thu, 11 Jun 2020 19:26:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjWaS-0005z2-T5 for bug-libtool@gnu.org; Thu, 11 Jun 2020 19:26:20 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:44774) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjWaP-000771-82 for bug-libtool@gnu.org; Thu, 11 Jun 2020 19:26:20 -0400 Received: by mail-lj1-x243.google.com with SMTP id c17so8953084lji.11 for ; Thu, 11 Jun 2020 16:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=85Kwty/orvxiw9oqzx8dqvK8UiQNDwUW3hp2/exnG2s=; b=fainO+eJffdhjQcvtdMV7uBakWlksqEGawE9KkrJ1ZFYoIVn1VYps36xcgL4H0/7yz giS42y5tGXrVcTTUnT34YQSY1tE2ottIQeeJeYKuNx1CkChapfq5BSbIhOIqZNw7Uc2l EumXlEGU3Xo+wYDuJFkSN+59uLEXIxBHpmiNYi1kqkDM2G2raHe8aL8PKUWFbls3J65y 5OPcUssYww/CDQS9/xumf191J+5H4CmZW5R3CZCE4aFceq1qGLeXKrrz610tE8G3glk9 FRyXuQC7Engeahj4GT4krdyVReB0eTkpUdBBrS3Grqw7bVoms5wWfR6g6TNlFTfFz9Xn 3GIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=85Kwty/orvxiw9oqzx8dqvK8UiQNDwUW3hp2/exnG2s=; b=e3/eWYqQlqz4W8LlQltNMddXcHdTTgP831EeBcbUAScxk92oYSz1mqkB/Jjr5TXKQw pBz1a1YvJBROvKQwINjJEEHRObcYIAqlro2FN7lmb8W3ATN0jmyOCFrc2MTb00s2RvBC pF71VlXKUz2RXQmxmX2WNtoFIASEWD3UiH6f7uwg9PcujYIq4oV4SJXk2khCC1g2Ql9n LatsXVtJkBByt7a+jELNr12yBkZAlnLaJpzc1Jfhppb/0GYtHV4Jgp1N/DdAZu9No4q5 ZpJZ134WAstGKccp5pIwEhlbr0DrP4+iba8tOjq32VGC0g0fnRShg5Q01XkpllVG8e9f LTaw== X-Gm-Message-State: AOAM5309Vpr+fQu+9X/A3QXx4eibeh8ZkFLTm5yRWXkRQErjSfNGvh2T hZOfSsmmzUsZakm7/fpT1uKAEMAa X-Google-Smtp-Source: ABdhPJxaf3LCYAZ4+6bOmQVrOqGFuwZ91PYSOOMtY83rxmlh9eieaL0vXGeRizLqnsv2/A8/VEJPyQ== X-Received: by 2002:a2e:1508:: with SMTP id s8mr5220226ljd.52.1591917967978; Thu, 11 Jun 2020 16:26:07 -0700 (PDT) Received: from 109-184-33-107.dynamic.mts-nn.ru (109-184-33-107.dynamic.mts-nn.ru. [109.184.33.107]) by smtp.gmail.com with ESMTPSA id c78sm1596844lfd.63.2020.06.11.16.26.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 16:26:07 -0700 (PDT) Message-ID: <8f74ab0d911b16869ac33f36f3734936cdf9fd3a.camel@gmail.com> Subject: [libtool-2.4.6] --enable-shared=PKG does not work if LT_INIT is called before AM_INIT_AUTOMAKE From: Van de Bugger To: bug-libtool@gnu.org Date: Fri, 12 Jun 2020 02:25:42 +0300 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::243; envelope-from=van.de.bugger@gmail.com; helo=mail-lj1-x243.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I use: libtool-2.4.6-33.fc32.x86_64 autoconf-2.69-33.fc32.noarch automake-1.16.1-14.fc32.noarch I faced a confusing libtool behaviour: --enable-shared=PKG configure option does not work as described in the libtool manual. I have prepared a little test to demonstrate it: $ cat configure.ac AC_INIT([Foo], [0.0.1], [foo@example.org], [], [https://example.org/foo ]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_MACRO_DIR([_m4]) AC_CONFIG_AUX_DIR([_aux]) LT_INIT([]) AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT() echo "========================================" echo "enable_shared=$enable_shared" echo "enable_static=$enable_static" echo "========================================" $ autoreconf -i $ ./configure --enable-shared=foo checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf ... config.status: executing libtool commands config.status: executing depfiles commands ======================================== enable_shared=no enable_static=yes ======================================== Pay attention to --enable-shared=foo configure option. Regardless of the option, enable_shared is no. --enable-shared option (without argument) does work, though: $ ./configure --enable-shared ... ======================================== enable_shared=yes enable_static=yes ======================================== I have a look into configure script and found that PACKAGE variable is used before it is initialized. It seems it was my mistake, I have called LT_INIT *before* AM_INIT_AUTOMAKE: LT_INIT([]) AM_INIT_AUTOMAKE([foreign subdir-objects]) Swapping these two lines: AM_INIT_AUTOMAKE([foreign subdir-objects]) LT_INIT([]) sorts out the problem, so --enable-shared=foo works as expected. However, libtool manual says nothing about relative order of LT_INIT and AM_INIT_AUTOMAKE, while it is not obvious for newbies. Could you please note in libtool manual that LT_INIT must be called *after* AM_INIT_AUTOMAKE? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 22 11:04:13 2020 Received: (at submit) by debbugs.gnu.org; 22 Jul 2020 15:04:13 +0000 Received: from localhost ([127.0.0.1]:42809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyGI1-00033E-7V for submit@debbugs.gnu.org; Wed, 22 Jul 2020 11:04:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:45114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyGHz-000336-0S for submit@debbugs.gnu.org; Wed, 22 Jul 2020 11:04:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyGHy-0001Ra-Qv for bug-libtool@gnu.org; Wed, 22 Jul 2020 11:04:10 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.218]:36693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyGHw-0007fV-AE for bug-libtool@gnu.org; Wed, 22 Jul 2020 11:04:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1595430246; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=ODpYjbEVj/y/MENRpYb8MQYl8P1+No6i7rd43tzJjSg=; b=DqOksMLDeMQMq21m62pa5NMVYxNPSNsBFvIINsyI/eT7dYdcIzrOHthRnEmQs5UapC vOUjE7Yt0NkycplH2yhrmXVJSdFeJyo4nlJB3LHqJwiVoxenMFpCWYPoKJJLPhvuOW2A OdeULTHBWL4kJizYz5bITOOyqdzQaLZ9Gt0yxuON++0VGDh0xAUwibry9O0tOnu7X28P KsJSMRWybyt1p1q6BznhjDtxTSjyG+sM96boMokIL1ipNPgR1rno702WsKxDRrNTGTwK VgXntlR5JCGXtkfrUUBQJrhukP0yhQS8i1SUVr2gOuHP1LF4hDJQr6LmT7v6DOwwV+sY OYOQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.10.5 DYNA|AUTH) with ESMTPSA id R03d1aw6MF42Qsc (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 22 Jul 2020 17:04:02 +0200 (CEST) From: Bruno Haible To: van.de.bugger@gmail.com Subject: Re: bug#41819: [libtool-2.4.6] --enable-shared=PKG does not work if LT_INIT is called before AM_INIT_AUTOMAKE Date: Wed, 22 Jul 2020 17:04:01 +0200 Message-ID: <2350585.0anTjGHp2r@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=81.169.146.218; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/22 11:04:06 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: 41819-done@debbugs.gnu.org, bug-libtool@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > libtool manual says nothing about relative order of LT_INIT > and AM_INIT_AUTOMAKE, while it is not obvious for newbies. But the automake manual says it [1]: "add an =E2=80=98AM_INIT_AUTOMAKE=E2=80=99 call just after =E2=80=98AC_IN= IT=E2=80=99" > Could you > please note in libtool manual that LT_INIT must be called *after* > AM_INIT_AUTOMAKE? Most macros need to be invoked after, not before, AC_INIT and AM_INIT_AUTOM= AKE. This is not specific to libtool macros. Bruno [1] https://www.gnu.org/software/automake/manual/html_node/Complete.html From unknown Wed Jun 18 23:18:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 20 Aug 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator