What is it with the dependency on config.status

2011-12-30 Thread Jan Engelhardt
I have seen user-induced lines in Makefile.am like these in a handful of packages: ${pkgconfig_DATA}: ${top_builddir}/config.status Given that automake 1.11.1/autoconf 2.68 seem to automatically recreate files specified in AC_CONFIG_FILES when configure.ac is changed, what is the actu

Re: What is it with the dependency on config.status

2012-01-09 Thread Jan Engelhardt
On Sunday 2012-01-01 10:24, Stefano Lattarini wrote: >On 12/31/2011 12:29 AM, Jan Engelhardt wrote: >> >> I have seen user-induced lines in Makefile.am like these in a handful >> of packages: >> >Which packages? I need more information if I am

The case of libkmod's .so versioning attempts, and induced collisions

2012-02-06 Thread Jan Engelhardt
Much to my disappointment, I found that the newly-released libkmod v5 has made the following non-trivial change to its source tree, the latter of which I want to bring to attention: commit e479598b7d19ae7be45bf5329d6e4df32d646c16 diff --git a/Makefile.am b/Makefile.am ind

Do fail when regeneration of Makefile.in does not succeed

2012-11-14 Thread Jan Engelhardt
Hi, Is there an option to yield an error instead of a warning if Makefile.in needs to be regenerated, but can't? The case before me is that iptables's Makefile.am in openSUSE is patched after tarball extraction. But, due to 1. $PEBKAC not calling autoreconf, 2. the system having automake-1.12 i

Error running help2man on aclocal-1.13.1

2013-01-09 Thread Jan Engelhardt
The help2man: can't get `--help' info from ./aclocal error seems to have reappeared in automake-1.13.1 (judging from http://gnu-automake.7480.n7.nabble.com/Man-pages-for-automake-and-aclocal-td11966.html) help2man is of version 1.40.12. --- Executing(%build): /bin/sh -e /var/tmp/rp

Re: Error running help2man on aclocal-1.13.1

2013-01-09 Thread Jan Engelhardt
On Wednesday 2013-01-09 19:11, Stefano Lattarini wrote: >On 01/09/2013 05:05 PM, Jan Engelhardt wrote: >> >> The >> >> help2man: can't get `--help' info from ./aclocal >> >> error seems to have reappeared in automake-1.13.1 (judging fr

Re: Error running help2man on aclocal-1.13.1

2013-01-09 Thread Jan Engelhardt
On Wednesday 2013-01-09 22:27, Stefano Lattarini wrote: >> >> Now I just have to figure out why someone thought that openSUSE >> should create the manpages directly... >> >Good question > >What happens if you do this instead? > >help2man -S FSF ./t/wrap/aclocal-1.13 > output.1 > >Does this fi

Automake should flag -l parameters in LDFLAGS

2013-03-30 Thread Jan Engelhardt
Given a Makefile.am with myprog_LDADD = -pthread automake will correctly output this warning Makefile.am:17: error: linker flags such as '-pthread' belong in 'myprog_LDFLAGS' It would be nice to also have automake report -l flags in LDFLAGS that actually belong into L

${OBJEXT} in implicit rule

2014-11-12 Thread Jan Engelhardt
Using automake-1.13.4, when using the following Makefile.am fragment, ---8<--- bin_PROGRAMS = foo foo_SOURCES = foo.c bar.k .k.${OBJEXT}: gcc -x c -c $< -o $@ --->8--- I observe that bar.o is not built and not linked into foo. ---8<--- > make V=0 CC foo.o CCLD foo /usr/lib

Re: ${OBJEXT} in implicit rule

2014-11-12 Thread Jan Engelhardt
On Wednesday 2014-11-12 20:15, Nick Bowler wrote: >On 2014-11-12 16:58 +0100, Jan Engelhardt wrote: >> Using automake-1.13.4, when using the following Makefile.am fragment, >> .k.${OBJEXT}: >> gcc -x c -c $< -o $@ >> I observe that bar.o is not built and

install-pkglibLTLIBRARIES target is missing dep on install-libLTLIBRARIES

2021-08-29 Thread Jan Engelhardt
Greetings. Consider a Makefile.am like so: bin_PROGRAMS = aprogram sbin_PROGRAMS = otherprogram lib_LTLIBRARIES = library1.la pkglib_LTLIBRARIES = library2.la library2_la_LIBADD = library1.la this will produce, under automake 1.15/1.16, a Makefile.in which

[PATCH] automake: add install dep on install-libLTLIBRARIES to all targets

2021-08-29 Thread Jan Engelhardt
-libLTLIBRARIES therefore potentially breaking `make install -j`. Rectify this by depending on install-libLTLIBRARIES not just for bin_PROGRAMS, but all PROGRAMS and LTLIBRARIES. Signed-off-by: Jan Engelhardt --- bin/automake.in | 23 +-- 1 file changed, 17 insertions(+), 6

[PATCH v2] automake: add install dep on install-libLTLIBRARIES to all targets

2021-08-29 Thread Jan Engelhardt
-libLTLIBRARIES therefore potentially breaking `make install -j`. Rectify this by depending on install-libLTLIBRARIES not just for bin_PROGRAMS, but all PROGRAMS and LTLIBRARIES. Signed-off-by: Jan Engelhardt --- Also available from https://github.com/jengelh/automake if that is easier to download

Re: [PATCH v2] automake: add install dep on install-libLTLIBRARIES to all targets

2021-08-29 Thread Jan Engelhardt
On Sunday 2021-08-29 22:44, Karl Berry wrote: >Subject: [PATCH v2] automake: add install dep on install-libLTLIBRARIES to > all > targets > >Thanks. Have you run make check? (In practice, make -j12 check or similar.) >Always good to make sure nothing old breaks ... -k # TOTAL: 29

Re: generated lex/yacc sources?

2021-09-21 Thread Jan Engelhardt
On Tuesday 2021-09-21 19:02, Karl Berry wrote: >Suppose I want to generate a lex or yacc input file from another file, >e.g., a CWEB literate program. Is there a way to tell Automake about >this so that the ultimately-generated parser/lexer [.ch] files are saved >in srcdir, as happens when [.ly] a

Re: generated lex/yacc sources?

2021-09-21 Thread Jan Engelhardt
On Tuesday 2021-09-21 22:32, Karl Berry wrote: >Thanks much. I was thinking I should avoid that since the .[ly] are not >ultimate sources, but if it works, fine with me. > >jan> >BUILT_SOURCES = foo.y >foo.y: foo.cweb >somecommands > >That would be sensible, but I failed t

Re: portability of xargs

2022-02-14 Thread Jan Engelhardt
On Tuesday 2022-02-15 07:16, Daniel Herring wrote: > > Maybe a next-generation configuration tool should start by defining interfaces > for user interactions and build tools. This would allow CLI and easy GUI and > IDE users, integration with multiple build systems, static and dynamic > probing

Re: Wrong order of preprocessor and compiler flags

2022-03-27 Thread Jan Engelhardt
On Sunday 2022-03-27 23:22, Karl Berry wrote: >It seems the basic inconsistency is whether CPPFLAGS is considered a >"user variable" or not. In earlier eras, it wasn't [...] In earlier eras of what exactly? As for make, it never made a distinction between user variables or otherwise, at least

Re: How to speed up 'automake'

2022-04-29 Thread Jan Engelhardt
On Friday 2022-04-29 22:59, Thomas Jahns wrote: > On 4/27/22 3:49 PM, R. Diez wrote: >> Is there a way to speed 'automake' up? > > While you are probably looking for system-independent advice, the best results > I've had with speeding up ephemeral builds is to simply use /dev/shm for > backing st

Re: How to speed up 'automake'

2022-05-02 Thread Jan Engelhardt
On Monday 2022-05-02 14:20, Thomas Jahns wrote: Is there a way to speed 'automake' up? >>> >>> [...let] ephemeral builds [..] use /dev/shm [...] >> >> There ought to be little difference [...] automake, that's nowhere near as >> IO-heavy as untarring kernel source archives. It's much more

Re: How to speed up 'automake'

2022-05-02 Thread Jan Engelhardt
On Monday 2022-05-02 15:18, Bob Friesenhahn wrote: > On Mon, 2 May 2022, Jan Engelhardt wrote: >> >> Indeed, if a source code package consists of 1 files, then configure >> produces another 10k files for the stuff in the ".deps" directories. >> There is n

Re: How to speed up 'automake'

2022-05-02 Thread Jan Engelhardt
On Monday 2022-05-02 15:31, Jan Engelhardt wrote: >> If empty files are ok (assuming they are needed at all), can they be produced >> with a minimum number of executions of a 'touch' command? > >Better yet, they can be produced with the ">>" shell b

Re: How to speed up 'automake'

2022-05-03 Thread Jan Engelhardt
On Monday 2022-05-02 22:52, Karl Berry wrote: >- @echo '# dummy' >$@-t && $(am__mv) $@-t $@ >+ @: >>$@ > >2) without the mv I fear we are no longer noticing write failure. -k I see no reason why mv would be so crucial. Case 1. Lack of permission. The ">" operation is the one that fai

man_MANS install locations

2022-08-31 Thread Jan Engelhardt
Greetings. A check was impleneted in rpmlint[1] that verifies that a manual page file such as "foo.3" has indeed been placed in ${mandir}/man3, and not, say, ${mandir}/man4. [1] https://github.com/rpm-software-management/rpmlint/commit/6fe4be934d60119f9a969a8b8198037e3f1c7941 Ironically, that c

Re: man_MANS install locations

2022-09-01 Thread Jan Engelhardt
On Wednesday 2022-08-31 23:20, Karl Berry wrote: > >Should the rpmlint check be adjusted to cater to the GNU FHS? > >[..] >Also, GNU (as an organization) never had anything to do with the FHS, I just called it GNU FHS to distinguish it from the LF/LSB FHS. Autotools for example defaults to

Re: make check(s) pre-release problems

2022-10-04 Thread Jan Engelhardt
On Wednesday 2022-10-05 00:58, Karl Berry wrote: > >Nothing has changed in the tests. Nothing has changed in the automake >infrastructure. Everything worked for me a few weeks ago. Furthermore, >Jim ran make check with much more parallelism than my machine can >muster, and everything succeeded fo

Re: make check(s) pre-release problems

2022-10-05 Thread Jan Engelhardt
On Wednesday 2022-10-05 23:24, Karl Berry wrote: > >What troubles me most is that there's no obvious way to debug any test >failure involving parallelism, since they go away with serial execution. >Any ideas about how to determine what is going wrong in the parallel >make? Any way to make parall

Re: Setting libXXX_la_CPPFLAGS and libXXX_la_CFLAGS erases AM_CPPFLAGS and AM_CFLAGS

2022-11-18 Thread Jan Engelhardt
On Friday 2022-11-18 22:57, Russ Allbery wrote: >madmurphy writes: > >> However, if at the same time I set also the libfoo_la_CPPFLAGS variable (no >> matter the content), as in the following example, > >> AM_CPPFLAGS = \ >> "-DLIBFOO_BUILD_MESSAGE=\"correctly defined via AM_CPPFLAGS\"" >>

Re: Setting libXXX_la_CPPFLAGS and libXXX_la_CFLAGS erases AM_CPPFLAGS and AM_CFLAGS

2022-11-19 Thread Jan Engelhardt
On Saturday 2022-11-19 09:11, madmurphy wrote: >I guess it does make sense. But then what might be missing to Automake are >libXXX_la_AM_CFLAGS, libXXX_la_AM_CPPFLAGS and libXXX_la_AM_LDFLAGS >variables, in which the global AM_CFLAGS, AM_CPPFLAGS and AM_LDFLAGS are >automatically pasted (whereas t

TAR variable no effect when tar-pax is used

2022-11-21 Thread Jan Engelhardt
(With automake 1.16.5), your typical Makefile.am produces a Makefile like so: -8<- Makefile AMTAR = $${TAR-tar} am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz

Re: Addressing sources dynamically generated by autoconf

2022-11-21 Thread Jan Engelhardt
On Monday 2022-11-21 16:22, Thomas Jahns wrote: >The question consequently is: how would I create a Makefile.am that accounts >for a list of C sources, when the sources are not yet present/known from the >perspective of automake? I don't see that working even without automake. Once make has loa

Re: Generating missing depfiles by an automake based makefile

2023-02-08 Thread Jan Engelhardt
On Wednesday 2023-02-08 03:39, Dmitry Goncharov wrote: > >This rule restores a missing depfile file by creating a file with one >line '# dummy'. (Next version of automake will create an empty one). >There must have been a reason for generating such a depfile. depfiles are created ahead of make s

Re: Generating missing depfiles by an automake based makefile

2023-02-09 Thread Jan Engelhardt
On Thursday 2023-02-09 22:33, Dmitry Goncharov wrote: > >> .Po file contents control when an .o file -- and thus also >> the .Po file itself -- is remade. >> If a .Po file has no practical content, there is no indication >> that it needs to be remade. > >Absence of the depfile is such an indicati

Re: Generating missing depfiles by an automake based makefile

2023-02-09 Thread Jan Engelhardt
On Thursday 2023-02-09 22:53, Dmitry Goncharov wrote: > >> If you try this with e.g. >> OpenBSD make, it will complain. > >That's why i asked those questions about portability. >Do i understand it correctly, that a need to support bmake forces >automake to abandon a good mechanism to rebuild depf

Re: if vs. ifdef in Makefile.am

2023-03-01 Thread Jan Engelhardt
On Wednesday 2023-03-01 19:50, ljh via Discussion list for automake wrote: >``` >$ make # NDEBUG=1 >$ make NDEBUG=1 >``` > >Can I have automake.am to define and convey something like this to the output >Makefile: >``` >ifdef NDEBUG             # if vs. ifdef >CPPFLAGS += -DNDEBUG >CFLAGS += -O3

Re: curl's XC_AMEND_DISTCLEAN (Seeking contractor for a regression bug fix)

2023-03-02 Thread Jan Engelhardt
ed in given list of subdirs. but whatever it does, it causes the 682x duplication you see. So it's a curl problem. Here's a patch. >From 74fa25bb5817f38c36c71820731eede6bc3be311 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 2 Mar 2023 16:08:22 +0100 Subject: [P

Re: curl's XC_AMEND_DISTCLEAN (Seeking contractor for a regression bug fix)

2023-03-02 Thread Jan Engelhardt
On Thursday 2023-03-02 16:12, Jan Engelhardt wrote: >On Thursday 2023-03-02 09:56, Ilmari Lauhakangas wrote: >> last year I reported a regression in automake: >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59288 > >One will find that there is a file m4/xc-am-if

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 09:36, ljh wrote: >Jacob Bachmeyer wrote: >>$ (mkdir test-build; cd ./test-build && ../src/configure --enable-assert ...) >> >>$ (mkdir release-build; cd ./release-build && ../src/configure >>--disable-assert ...)

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 10:40, ljh wrote: >--disable-assert is 1/3 of the way and cd is the other 2/3.

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 11:13, ljh wrote: >ifdef is not wrong. But ifdef is not portable.

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 13:14, ljh wrote: >Thanks for the hint. I did not know this before. > >Found it here, autoconf manual 16.3: >> cd to the directory where you want the object files and executables to >> go and run the configure script. configure automatically checks for >> the source code in

Re: Compile a particular extension files, with a different compiler

2023-03-30 Thread Jan Engelhardt
On Sunday 2023-03-26 14:33, Labeeb Asari wrote: > >Basically : compile .c source files with gcc, .cu files with nvcc and >finally link them together with gcc. > >I've tried adding a rule to handle .cu files differently and it does create >object files for it separately. However while linking, lib

Getting long SOURCES lines with subdirs shorter

2023-07-16 Thread Jan Engelhardt
Given a_SOURCES = aprog/main.c aprog/foo.c aprog/bar.c aprog/baz.c ... The more source files there are to be listed, the longer that line gets, the bigger the Makefile.am fragment becomes, etc. I am thinking about how to cut that repetition down. Current automake likely won't have anyt

Re: Getting long SOURCES lines with subdirs shorter

2023-07-17 Thread Jan Engelhardt
On Monday 2023-07-17 06:55, John Darrington wrote: >Why not just write it as: > >a_SOURCES = aprog/main.c \ > aprog/foo.c \ > aprog/bar.c \ > aprog/baz.c ... You're missing the point. If you have a hundred, two hundred source files, all the aprog/ prefixes (and it's rarely *that* short) a

[PATCH] automake: rewrite scan_variable_expansions regex

2023-08-03 Thread Jan Engelhardt
The regex pattern in function scan_variable_expansions() fails to report a portability warning when a dollar-escaped dollar sign precedes the variable: foo_SOURCES = a.c $$$(patsubst a.c,a,b) --- lib/Automake/Variable.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --g

[PATCH v2] automake: rewrite scan_variable_expansions regex

2023-08-07 Thread Jan Engelhardt
The regex pattern in function scan_variable_expansions() fails to report a portability warning when a dollar-escaped dollar sign precedes the variable: foo_SOURCES = a.c $$$(patsubst a.c,a,b) --- lib/Automake/Variable.pm | 5 +++-- t/dollarvar2.sh | 9 + 2 files changed,

Re: Detect --disable-dependency-tracking in Makefile.am

2023-09-29 Thread Jan Engelhardt
On Saturday 2023-09-30 05:27, Dave Hart wrote: >I've added code to the ntp.org Makefile.am files to ensure the static >utility library libntp.a is up-to-date for each program that uses it, to >ensure the build is correct. When building the project, this adds a bunch >of extra submake invocations

Re: Detect --disable-dependency-tracking in Makefile.am

2023-09-30 Thread Jan Engelhardt
>I didn't explain sufficiently. The submakes I'm talking about are my >doing, and I want to conditionalize them on whether >--enable-dependency-tracking is used. > >In for example both ntpq/Makefile.am and ntpd/Makefile.am I'm invoking: > >(cd ../libntp && make libntp.a) Yes and if you didn't do

Re: Getting long SOURCES lines with subdirs shorter

2023-12-01 Thread Jan Engelhardt
On Friday 2023-12-01 21:13, Mike Frysinger wrote: >On 17 Jul 2023 16:51, Karl Berry wrote: >> Hi Jan, >> >> Current automake likely won't have anything in store already, >> >> Not that I know of. >> >> a_SOURCES = $(addprefix aprog/,main.c foo.c bar.c baz.c) >> >> I've often wanted th

Re: GCC reporting piped input as a security feature

2024-04-08 Thread Jan Engelhardt
On Tuesday 2024-04-09 05:37, Jacob Bachmeyer wrote: > >> In principle it could be posible to output something different to >> describe this stramge situation explicitly. For instance, output "via >> stdin" as a comment, or output `stdin/../filename' as the file name. >> (Programs that optimize t

Re: \# within quotes

2024-07-18 Thread Jan Engelhardt
On Thursday 2024-07-18 15:40, Zack Weinberg wrote: >On Thu, Jul 18, 2024, at 5:09 AM, Tijl Coosemans wrote: >> Automake 1.17 produces a warning for the use of \# here: >> >> https://github.com/ddclient/ddclient/blob/d88e6438efbc53e977546693f6835f7517072a06/Makefile.am#L22 > >subst = sed \ >

.o naming seems strange

2007-08-09 Thread Jan Engelhardt
Hi, I observe that automake gives programs inconsistent .o names. For example: Result when running make (beautified here): Expected result: CC fifo-unblock.o CCLD fifo-unblock CC fifo.o CC launch.o CCLD ccgfs-fifo CC

directory prefix on .o

2007-08-09 Thread Jan Engelhardt
Hi again :) in a different project, I have a number of files that have the same filename, but live in different directories, for example project/module1/hooks.c project/module1/m1.c project/module2/hooks.c project/module2/m2.c etc. project/Makefil

Re: directory prefix on .o

2007-08-09 Thread Jan Engelhardt
On Aug 9 2007 19:08, NightStrike wrote: >> Unfortunately, it does not seem like the directory is encoded into the >> object file, hence automake will fail on me since it wants to use >> hooks.o for both hooks.c files. >> >> Is it currently possible to make the directory part of the object name, >>

${} and $()

2007-08-17 Thread Jan Engelhardt
Hi, is there any real difference between $(var) and ${var}, and is the latter as much POSIX as the first? thanks, Jan --

Re: ${} and $()

2007-08-17 Thread Jan Engelhardt
On Aug 17 2007 22:48, Andreas Schwab wrote: >Jan Engelhardt <[EMAIL PROTECTED]> writes: > >> is there any real difference between $(var) and ${var}, and is the >> latter as much POSIX as the first? > >Depends on the context. For a shell there is a big difference be

library was not installed

2007-08-23 Thread Jan Engelhardt
Hi, in the testcase at http://jengelh.hopto.org/f/am.tar.bz2 , liba.la does not get installed. What is the cause of this and how could I fix it? thanks, Jan == $ ./configure --prefix=$PWD/rt $ make install CC a.lo CC b.lo CCLD libb.la CCLD liba.la CC

Subdir prerequisites

2007-12-25 Thread Jan Engelhardt
Hi, in a simple Makefile.am with SUBDIRS = foo bin_PROGRAMS = bar how can I achieve that bar will be compiled before operation descends into foo/? thanks, Jan

Re: Subdir prerequisites

2007-12-25 Thread Jan Engelhardt
On Dec 25 2007 17:58, Jan Engelhardt wrote: >in a simple Makefile.am with > > SUBDIRS = foo > bin_PROGRAMS = bar > >how can I achieve that bar will be compiled before operation descends >into foo/? Nevermind, just found it in the info pages :) Something as simp

make automake less verbose (try 2)

2008-10-23 Thread Jan Engelhardt
le.am. Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> # All rights are handed to the automake team. --- automake.in | 91 ++-- lib/am/depend2.am |6 +++ lib/am/library.am |5 +- lib/am/ltlibrary.am |1 lib/am

Re: make automake less verbose (try 2)

2008-10-23 Thread Jan Engelhardt
On Thursday 2008-10-23 19:20, Ralf Wildenhues wrote: > >Anyway, when we use nonconforming constructs then it's probably safer if >they are default-off, so the developer can choose to enable it and knows >the limitation. I suppose we can have an Automake option 'silent' or so >(better name suggest

Re: cyclic dependancy

2008-10-27 Thread Jan Engelhardt
On Monday 2008-10-27 08:19, Neel Basu wrote: >On Sunday 26 Oct 2008 11:41:26 pm Ralf Wildenhues wrote: > >> $(top_builddir)/cgi++/libcgixx.la: >> cd $(top_builddir)/cgi++ && $(MAKE) $(AM_MAKEFLAGS) libcgixx.la >> >> in the Makefile.am files that need it. If the cgi++ directory has >> BU

Re: make automake less verbose (try 2)

2008-11-04 Thread Jan Engelhardt
On Friday 2008-10-24 03:19, Jan Engelhardt wrote: >On Thursday 2008-10-23 19:20, Ralf Wildenhues wrote: [...] I noticed that AM_VERBOSE_YACC is not used when in the .l.c and .y.c rules. Do you know why? >>> ## In fast-dep mode, we can always use -o. >>> ## For non-

automake less verbose (iter 3)

2008-11-05 Thread Jan Engelhardt
and at runtime through `make V=level` Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> --- automake.in | 134 lib/am/depend2.am | 21 lib/am/lex.am |3 - lib/am/library.am |4 - lib/am/ltlibrary.

Using nonstandard (static) lib name

2008-11-10 Thread Jan Engelhardt
Hi, for shared libraries, it is possible to use myshared_so_LDFLAGS = -module to tell automake not to warn about the missing "lib" prefix. For static libraries however, something like that does not work since there is no ld involved, and automake warns about the missing lib prefix. Is the

Re: Using nonstandard (static) lib name

2008-11-10 Thread Jan Engelhardt
On Monday 2008-11-10 20:53, Bob Friesenhahn wrote: > On Mon, 10 Nov 2008, Jan Engelhardt wrote: > >> for shared libraries, it is possible to use >> myshared_so_LDFLAGS = -module >> to tell automake not to warn about the missing "lib" prefix. >> For

automake manual: distclean

2008-11-26 Thread Jan Engelhardt
Hi, the automake info page has this to say about distcleancheck: > If you want `distcleancheck' to ignore built files that have not >been cleaned because they are also part of the distribution, add the >following definition instead: > > distcleancheck_listfiles = \ > find -type f -e

simple distcheck fails

2008-11-27 Thread Jan Engelhardt
Hi, here's a problem I just cannot figure out on my own -- distcheck always fails on data using the following test files: ---<8--- Makefile.am AUTOMAKE_OPTIONS = foreign subdir-objects noinst_DATA = foo.txt --->8--- ---<8--- configure.ac AC_INIT([foo], [0]) AM_INIT_AUTOMAKE([-Wall]) AC_CONFIG

Re: simple distcheck fails

2008-11-28 Thread Jan Engelhardt
Hi Ralf, On Friday 2008-11-28 06:25, Ralf Wildenhues wrote: >* Jan Engelhardt wrote on Thu, Nov 27, 2008 at 11:12:24PM CET: >> >> ---<8--- Makefile.am >> AUTOMAKE_OPTIONS = foreign subdir-objects >> noinst_DATA = foo.txt > >> make distcheck > >&

lzip support

2008-11-28 Thread Jan Engelhardt
commit 6f949a61df1cfc778ab91de037b611bd8bad3735 Author: Jan Engelhardt <[EMAIL PROTECTED]> Date: Thu Nov 27 23:28:35 2008 +0100 Add LZIP support --- ChangeLog | 10 ++ Makefile.in |8 +++- automake.in |3 ++- doc/automak

Re: lzip support

2008-11-28 Thread Jan Engelhardt
On Friday 2008-11-28 17:21, Bob Friesenhahn wrote: > Since LZIP support has appeared apparently out of the blue (no > prior discussion on this list), and Automake already had LZMA > support, can someone please explain LZIP vs LZMA and why we now > have at least two LZMA compressed targets? See h

Re: lzip support

2008-11-28 Thread Jan Engelhardt
On Friday 2008-11-28 19:38, Bob Friesenhahn wrote: > On Fri, 28 Nov 2008, Jan Engelhardt wrote: > > It was my impression that Automake adopted LZMA utils without fully > evaluating the impact. My own package is now distributing .lzma > packages. It's only great until somet

Re: simple distcheck fails

2008-11-28 Thread Jan Engelhardt
On Friday 2008-11-28 20:05, Ralf Wildenhues wrote: >> 14:04 yaguchi:../test/obj > make distcheck V=2 >> [...] >> make[1]: Entering directory `/dev/shm/test/obj/foo-0/_build' >> depbase=`echo foo.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ >> gcc -DPACKAGE_NAME=\"foo\" -DPACKAGE_TARNAME=\"foo\"

Re: automake branch management

2008-11-28 Thread Jan Engelhardt
On Friday 2008-11-28 20:37, Ralf Wildenhues wrote: >> When you graph git://dev.medozas.de/pam_mount with `gitk --all` for example, >> you may find that practice between 0.40--0.43 or 0.45--0.47. > >[...] Another thing that bothers me when merging from stable to >master is that I'm not used to deve

Re: lzip support

2008-11-28 Thread Jan Engelhardt
On Friday 2008-11-28 21:37, Bob Friesenhahn wrote: > >> > If an archive format was ever offered before, the feeling is that >> > it must continue to be offered for the rest of time. >> >> *sigh* well, everybody is entitled to do his own liking and >> if that's providing all formats just because. >

Re: lzip support

2008-11-29 Thread Jan Engelhardt
On Saturday 2008-11-29 10:06, Jim Meyering wrote: >Jan Engelhardt <[EMAIL PROTECTED]> wrote: >> On Friday 2008-11-28 17:21, Bob Friesenhahn wrote: >>> Since LZIP support has appeared apparently out of the blue (no >>> prior discussion on this list), and Automake

Re: lzip support

2008-11-29 Thread Jan Engelhardt
On Saturday 2008-11-29 17:04, Bob Friesenhahn wrote: > On Sat, 29 Nov 2008, Jim Meyering wrote: >> >> I have been following lzma-utils development closely for some time, >> and my impression is that xz obviates lzip. I would not want to >> encourage use of lzip without a convincing argument to th

Re: lzip support

2008-11-29 Thread Jan Engelhardt
On Saturday 2008-11-29 17:30, Ralf Wildenhues wrote: >> On Friday 2008-11-28 21:37, Bob Friesenhahn wrote: >> > >> > It makes sense to me that periodically Automake maintainers make an >> > evaluation (and with the blessing of the FSF) intentionally >> > deprecate generation of certain archive typ

Re: Multilib sources and variables

2008-11-29 Thread Jan Engelhardt
On Sunday 2008-11-30 01:52, NightStrike wrote: >Is the following kosher? It will produce two 32-bit libraries on all architectures where gcc defaults to a 32-bit output. >shell32src=libsrc/shell32.c > >lib32_LIBRARIES += lib32/libshell32.a >lib32_libshell32_a_SOURCES = $shell32src >lib32_libshe

Re: Multilib sources and variables

2008-11-30 Thread Jan Engelhardt
On Sunday 2008-11-30 02:24, Jan Engelhardt wrote: >On Sunday 2008-11-30 01:52, NightStrike wrote: > >>Is the following kosher? > >It will produce two 32-bit libraries on all architectures where >gcc defaults to a 32-bit output. (In other words, you are missing -m64. And

Re: Multilib sources and variables

2008-11-30 Thread Jan Engelhardt
On Sunday 2008-11-30 18:07, NightStrike wrote: >>> Is the following kosher? >>> >>>It will produce two 32-bit libraries on all architectures where >>>gcc defaults to a 32-bit output. >> >> (In other words, you are missing -m64. And perhaps some logic >> so that lib64 is not built in pure 32-bi

Re: automake less verbose (iter 3)

2008-12-05 Thread Jan Engelhardt
On Wednesday 2008-11-05 09:38, Jan Engelhardt wrote: > >third round here of the automake-tranquility patch from me. >Updates from previous attempts: >1. using am__ prefix >2. removed the strange find_link_verbose() function >3. verbosity selectable in configure.ac too >

Building static library with PIC

2008-12-08 Thread Jan Engelhardt
Hi, at the moment, the pam_mount project uses the following hack to workaround a libtool warning message: # Makefile.am (abridged) bin_PROGRAMS = mount.crypt mount_crypt_SOURCES = nlt-loop.c ... lib_LTLIBRARYES = pam_mount.la pam_mount_la_SO

rfe: Direct -fPIE support

2008-12-08 Thread Jan Engelhardt
Hi, is there a chance automake and/or libtool would support -fPIE for executables, much like libtool unconditionally turns on -fPIC for shared libraries?

Re: rfe: Direct -fPIE support

2008-12-09 Thread Jan Engelhardt
Hi Ralf, On Tuesday 2008-12-09 07:15, Ralf Wildenhues wrote: >* Jan Engelhardt wrote on Tue, Dec 09, 2008 at 12:11:52AM CET: >> >> is there a chance automake and/or libtool would support -fPIE for >> executables, much like libtool unconditionally turns on -fPIC for shared

Re: rfe: Direct -fPIE support

2008-12-09 Thread Jan Engelhardt
On Tuesday 2008-12-09 19:50, Ralf Wildenhues wrote: >> >Just using >> > ./configure CFLAGS=-fPIE >> > >> >should work fine, or put it in target_CFLAGS if you only want some >> >targets to be PIE. Be sure to use recent Libtool, so that libraries > ^^^

Re: GNU Make Extensions

2008-12-10 Thread Jan Engelhardt
On Wednesday 2008-12-10 16:04, Bob Friesenhahn wrote: > On Wed, 10 Dec 2008, Tom Browder wrote: >>> * Tom Browder wrote on Wed, Dec 10, 2008 at 01:38:53AM CET: >>> > Is it "legal" to use the "+=" operator in lieu of "\" when listing >>> > members of a variable in Makefile.am's? >>> >>> Yes. In t

Re: including autoconf paths in source

2008-12-11 Thread Jan Engelhardt
On Thursday 2008-12-11 21:38, Monty Taylor wrote: >Hey all, > >I'm wondering if there is a best practice for getting paths such as >locaeldir or datadir into source code. As it stands now in the Makefile >I've got: > >prefix= /usr/local >datarootdir= ${prefix}/share >localedir = ${datarootdir}/lo

Re: automake less verbose (iter 3.1)

2008-12-15 Thread Jan Engelhardt
On Monday 2008-12-15 08:32, William Pursell wrote: >Jan Engelhardt wrote: > >> third round here of the automake-tranquility patch from me. >> Updates from previous attempts: > >I've been looking through the archive and haven't >noticed any followup on

Re: automake less verbose (iter 3.1)

2008-12-15 Thread Jan Engelhardt
On Monday 2008-12-15 21:19, William Pursell wrote: > >Thanks for this Jan, it is really nice functionality. I don't >know if this is a portability issue, but I think it would be nice >to change $< to $? in this section: > >> +'am__1verbose_CCLD_1 = @echo " CCLD" $@ "<-" $<;', >

Re: automake less verbose (iter 3.1)

2008-12-22 Thread Jan Engelhardt
On Monday 2008-12-15 21:48, Jan Engelhardt wrote: >On Monday 2008-12-15 21:19, William Pursell wrote: >> >>Thanks for this Jan, it is really nice functionality. I don't >>know if this is a portability issue, but I think it would be nice >>to

Re: automake less verbose (iter 3)

2008-12-22 Thread Jan Engelhardt
On Monday 2008-12-22 21:36, Ralf Wildenhues wrote: >> >On Monday 2008-12-15 21:19, William Pursell wrote: >> >> >The make info pages mention that $? expands to “all the prerequisites >> >that are newer than the target”, and that sounds like there could be >> >more than just the .c file. >> > >> >I

Re: AM_COND_IF

2009-01-02 Thread Jan Engelhardt
On Friday 2009-01-02 17:33, Matěj Týč wrote: >Hello, >I would like to use the AM_COND_IF macro in my configure.ac, but when I >run autoreconf, I get an error message saying that the macro couldn't be >found anywhere. I could not find it in the manual either, so the macro is probably not the righ

Automake_flags not override

2009-01-02 Thread Jan Engelhardt
Hi, given a configure.ac which defines AM_INIT_AUTOMAKE([-Wall]), running `automake -Wnone` still produces the warnings I had with -Wall. I think command line should override any earlier flags.

Portable suffix rules question

2009-01-02 Thread Jan Engelhardt
Hi, I reckon that %-style suffix rules (e.g. "%.o: %.c") are rather unportable, but I wonder how the old-fashioned suffix rule for %.1: %.1.php would look like.

Re: AM_COND_IF

2009-01-02 Thread Jan Engelhardt
On Friday 2009-01-02 20:26, Matěj Týč wrote: >> I could not find it in the manual either, so the macro is probably >> not the right one to start with. > >It is in the manual, of course (that's where I have found it). Look >here: >http://sources.redhat.com/automake/automake.html#Conditionals Ah o

Re: AM_COND_IF

2009-01-02 Thread Jan Engelhardt
On Friday 2009-01-02 20:57, Matěj Týč wrote: >> Did you try regenerating the aclocal files?- usually done by `autoreconf >> -fi`. > >Yes, I tried it and it did not help, I still get the error. Are there >any files where the macro is supposed to be defined to check? > Grepping in the automake tre

Re: checking for glib

2009-01-20 Thread Jan Engelhardt
On Tuesday 2009-01-20 10:37, Lorenzo Bettini wrote: > Hi > > I'd need to use the function > > g_find_program_in_path () > > in glib, if glib is found in the system... > > which is the best way of doing that? using the pkconfig or some specific > macro > provided by glib itself? Yes, PKG_CONFI

Re: R_X86_64_32S error building a shared library

2009-01-25 Thread Jan Engelhardt
On Sunday 2009-01-25 05:46, Adam Nielsen wrote: > >>> x86_64-pc-linux-gnu/bin/ld: >>> .../lib64/libboost_system-mt-1_37.a(error_code.o): relocation R_X86_64_32S >>> against `a local symbol' can not be used when making a shared object; >>> recompile with -fPIC >>> .../lib64/libboost_system-mt-1_37

Re: R_X86_64_32S error building a shared library

2009-01-25 Thread Jan Engelhardt
On Monday 2009-01-26 01:23, Adam Nielsen wrote: > x86_64-pc-linux-gnu/bin/ld: > .../lib64/libboost_system-mt-1_37.a(error_code.o): relocation R_X86_64_32S > against `a local symbol' can not be used when making a shared object; > recompile with -fPIC > .../lib64/libboost_syste

  1   2   >