X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=MzG27cTdYf7Xe+Rt zMq8SKe3oSCqd7pqWRu3yT2n7cKTPwj2uGsnzlC4MO0HZ7b3cvUGT0vtFhJwIdnX 141R6gWf59g9umpOkf/MatuMJUI6R2oEpw6m7KbrZGCPewFMWFfLAaojwgta2wfx 1uMLhY9DR+0wWgGW4A/a33RnqNw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=DWRQKnYAU2umns52EGvDEF 1Juyc=; b=p/Y3spchNltjcCGhrji/exF5pngken2ncKJ8TRj3hiPo3gS1VdcRSY wsDXkCarT0o0qfVqq3Xvgthqg1w5m7mi5FlZscRDp5t0lTcBZrGZEZfzdPjr0c3N r/e3tq3cph2tPL8CL/q/6Qg6CejhV9Z1yuaysOcWgyFdA47p747tc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=BAYES_50,KAM_ASCII_DIVIDERS,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=impacting, sk:ac_fc_l, sk:AC_FC_L, fooled X-HELO: mail.lysator.liu.se Subject: Re: Autoconf fooled by AC_FC_LINE_LENGTH To: cygwin AT cygwin DOT com References: <8fa2a8a5-fb86-02c9-5cd0-521a9680abe3 AT gmail DOT com> From: Peter Rosin Message-ID: Date: Fri, 29 Jul 2016 21:32:25 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <8fa2a8a5-fb86-02c9-5cd0-521a9680abe3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 2016-07-29 14:23, Marco Atzeri wrote: > Hi Eric, > > building latest Arpack > https://github.com/opencollab/arpack-ng/releases > https://github.com/opencollab/arpack-ng/issues/41 > > I hit a strange case where the presence of a single line > > AC_FC_LINE_LENGTH(unlimited) > > before the usual > LT_PREREQ([2.4.2]) > LT_INIT([win32-dll]) > > is causing the libtool to be incorrectly set, versus > the right case > --------------------------------------------------- > -libext=a > +libext=lib > > -shlibpath_overrides_runpath=yes > +shlibpath_overrides_runpath=unknown > > -library_names_spec="\$libname.dll.a" > +library_names_spec="\$libname`echo \$release | \$SED -e > s/[.]/-/g`\$versuffix\$shared_ext \$libname.lib" > > -soname_spec="`echo \$libname | sed -e s/^lib/cyg/``echo \$release | > \$SED -e s/[.]/-/g`\$versuffix\$shared_ext" > +soname_spec="" > ----------------------------------------------------- > > It seems libtool is incorrectly set for MSVC platform > > I tried to move the libtool inizialization before the > AC_FC_LINE_LENGTH but autoconf is objecting on wrong preference. > > It seems a bug impacting only cygwin. Reading the source comment for AC_FC_LINE_LENGTH indicates that you should call AC_FC_FREEFORM or AC_FC_FIXEDFORM before you call AC_FC_LINE_LENGTH. You do not do that. This is not mentioned in the autoconf manual I'm looking at. I don't know if the source code comment or the manual is correct (it's been 20 years since I last used fortran...) However, I suspect the issue is that libtool might eat or be otherwise confused by the flag selected to get fortran support for long lines. What is FCFLAGS when you have the macro present? Out on a limb here... Cheers, Peter PS. some logs would be handy... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple