From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A0E631F66E for ; Fri, 21 Aug 2020 17:52:42 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k9BDR-000530-MV; Fri, 21 Aug 2020 17:52:37 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9BDR-00052u-Ep for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 17:52:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=c4LFzV8a9RFoeyEgPvffuhQLvCirXdmPbIawhyJpFvw=; b=g7H1IDAcK0JLkXog+9JRCAUfPD DaEBM1OJ4+3LwMWSHpUxZwFT/aXKfClWsDAjqo04OJt71V/xAg+hqZtlFOzk5pIChyPmyxNvRA+oK pItm3y61LTuH+HET++vk2lr2a14GJdtSvXqJeLkrGMxqnrlKwTRFfBXsMyLGl/AJ2W8A=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=c4LFzV8a9RFoeyEgPvffuhQLvCirXdmPbIawhyJpFvw=; b=XzRSUJPdLdirg8hnDzeVe8rqWQ Oh2Gu4vNUGaZdjtvLK30xBG7t/fZ3dHIyPHyZ05+XLCVQ5CM0/g8YoAINk9Q0J5bVoxfJZ9N7AgUV pNFrFUHYeutsqT4dJ4P0pOVe+DBLpaC91OhNiIOg0fPGs41i6ucdYyJoB6lPkH7nKOgk=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k9BDQ-00Ehz7-3W for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 17:52:37 +0000 Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id 4770115360; Fri, 21 Aug 2020 18:52:20 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id E0C7B21A6F2; Fri, 21 Aug 2020 18:52:18 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Jan Stary References: <20200821081621.GA85272@www.stare.cz> <20200821151610.GA82566@www.stare.cz> <20200821152130.GA6847@www.stare.cz> <20200821174358.GA88757@www.stare.cz> Date: Fri, 21 Aug 2020 18:52:18 +0100 In-Reply-To: <20200821174358.GA88757@www.stare.cz> (Jan Stary's message of "Fri, 21 Aug 2020 19:43:59 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1k9BDQ-00Ehz7-3W Subject: Re: Build system cleanup X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net Cc: sox-devel@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-devel-bounces@lists.sourceforge.net Jan Stary writes: > On Aug 21 18:08:27, mans@mansr.com wrote: >> Jan Stary writes: >> = >> > On Aug 21 17:16:12, hans@stare.cz wrote: >> >> > checking for magic.h... no >> >> > checking for zlib.h... yes >> >> > checking for uncompress in -lz... yes >> >> > checking for png.h... no >> >> > checking for mad.h... no >> >> > checking for id3tag.h... no >> >> > checking for lame/lame.h... no >> >> > checking for lame.h... no >> >> > = >> >> > $ pkg_info -L lame | grep .h$ = >> >> > /usr/local/include/lame/lame.h >> >> > = >> >> > OpenBSD installs third-party packages into /usr/local/, >> >> > but the configure script does not look there; it porbably >> >> > only searches in /usr, because that's where linux distributions >> >> > install their packages. (I'm not saying it should >> >> > -- I will test the same with -I added to the CPPFLAGS, >> >> > as the OpenBSD port of SoX does.) >> >> = >> >> Running ./configure with CPPFLAGS and LDFLAGS, >> >> so that the headers and libraries are found, >> >> as per ./configure --help: >> >> = >> >> LDFLAGS linker flags, e.g. -L >> >> if you have libraries in a nonstandard directory >> >> = >> >> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I >> >> if you have headers in a nonstandard directory >> >> = >> >> I am looking at png as an example. >> >> = >> >> With plain ./configure , png.h (which is /usr/local/include/png.h) >> >> is not found, as described above. >> >> = >> >> checking for png.h... no >> >> = >> >> With ./configure CPPFLAGS=3D'-I/usr/local/include' the png.h header i= s found, >> >> but the library is not, unsurprisingly. But: >> >> = >> >> $ ./configure CPPFLAGS=3D'-I/usr/local/include' >> >> [...] >> >> checking for png.h... yes >> >> checking for png_set_rows in -l101... no >> >> = >> >> I have no idea how the -l101 got there. >> > >> > not sure if it has anything to do with it, but: >> > >> > autom4te.cache/output.0: HAVE_LIBLTDL=3D${with_libltdl:-101} >> > autom4te.cache/output.0: HAVE_MAGIC=3D${with_magic:-101} >> > autom4te.cache/output.0: HAVE_PNG=3D${with_png:-101} >> > autom4te.cache/output.0: HAVE_MAD=3D${with_mad:-101} >> > autom4te.cache/output.0: HAVE_ID3TAG=3D${with_id3tag:-101} >> > autom4te.cache/output.0: HAVE_LAME=3D${with_lame:-101} >> > autom4te.cache/output.0: HAVE_TWOLAME=3D${with_twolame:-101} >> > autom4te.cache/output.0: HAVE_LIBGSM=3D${with_libgsm:-101} >> > autom4te.cache/output.0: HAVE_OPENCORE_AMRWB=3D${with_opencore_amrw= b:-101} >> > autom4te.cache/output.0: HAVE_VO_AMRWBENC=3D${with_vo_amrwbenc:-101} >> > autom4te.cache/output.0: HAVE_OPENCORE_AMRNB=3D${with_opencore_amrn= b:-101} >> > autom4te.cache/output.0: HAVE_LIBSNDFILE=3D${with_libsndfile:-101} >> = >> Fixed. > > Thank you. > >>> [$9 *], m4_argn([8], m4_shift2($@))) dnl OpenBSD m4 can't count > > Can you please give a minimal example of an m4 input > that demonstrates the problem? If something as fundamental > as counting the number of arguments is broken, > it needs fixing of course, instead of having > software have to work around that. Sure. Run m4 over the below. It should print '10' three times. ---CUT--- divert(-1)dnl changequote([, ]) define([dquote], [[$@]]) define([argn], [pushdef([_$0], [popdef([_$0])]dquote([$]incr([$1])))_$0($@)= ]) define([foo], [argn([10], $@)]) define([bar], [argn([9], shift($@))]) define([baz], [argn([8], shift(shift($@)))]) define([numbers], [[1], [2], [3], [4], [5], [6], [7], [8], [9], [10]]) divert(0)dnl foo(numbers) bar(numbers) baz(numbers) ---CUT--- -- = M=E5ns Rullg=E5rd _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel