Re: `cp -l` doesn't work correctly on some macOS versions

2024-02-02 Thread Russ Allbery
hat even on modern systems, hard links are only reliably usable within the same directory. The example in the Stack Exchange question is hard-linking to a different directory, which I would expect to fail in lots of situations, such as on AFS file systems.) -- Russ Allbery (ea...@eyrie.org)

Re: [PATCH 2/2] Ignore failure of setting mode on a temporary file on OS/2

2023-10-14 Thread Russ Allbery
rl 5.33.3 (which included 0.2311). -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: AC_SYS_LARGEFILE

2023-09-11 Thread Russ Allbery
stem you will build on will need the CC modification anyway." -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: INSTALL nits

2023-08-18 Thread Russ Allbery
typical user may not have locally. -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: Conditional AC_CHECK_HEADER

2023-02-04 Thread Russ Allbery
kouts/gnu/autoconf/manual/autoconf-2.71/html_node/Common-Shell-Constructs.html#index-AS_005fIF-1 The principle that one should always use an AS_* construct if one exists rather than regular shell constructs could probably be documented more aggressively. -- Russ Allbery (ea...@eyrie.org)

Re: On time64 and Large File Support

2022-11-12 Thread Russ Allbery
ast. I recognize that there will be overlap once file timestamps are past 2038 and that will happen sooner than anyone plans for, but it's still true that this has *not* happened right now and this therefore is not currently creating many bugs, whereas this switch in this way will create many

Re: config.sub/config.guess using nonportable $(...) substitutions

2021-03-09 Thread Russ Allbery
ture pain ever since. Interestingly, at around the same time they made that decision, they also dropped bcopy and bzero from the standard library, provoking a ton of porting problems. (They reversed that decision later and added them back.) -- Russ Allbery (ea...@eyrie.org) <https://w

Re: AC_PROG_CC: how to distinguish clnag from gcc?

2021-02-08 Thread Russ Allbery
I still do anyway, for maintainer builds, and have not had any real problems with that (and have been grateful to pick up new warnings automatically), but it shouldn't be a default. -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: AC_PROG_CC: how to distinguish clang from gcc?

2021-02-05 Thread Russ Allbery
Wvla], [RRA_PROG_CC_FLAG(flag, [WARNINGS_CFLAGS="${WARNINGS_CFLAGS} flag"])])]) -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: AC_PROG_CC: how to distinguish clnag from gcc?

2021-02-05 Thread Russ Allbery
mpiler is Clang], [rra_cv_prog_cc_clang], [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_RRA_PROG_CC_CLANG_SOURCE])], [rra_cv_prog_cc_clang=yes], [rra_cv_prog_cc_clang=no])]) AS_IF([test x"$rra_cv_prog_cc_clang" = xyes], [CLANG=yes])]) -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: autoconf-2.69c released [beta]

2020-09-29 Thread Russ Allbery
t "$ac_cv_have_C__func__" = 'yes'], [ AC_DEFINE([HAS_C__func__],[1],[Define if C compiler supports __func__]) ]) ]) This will protect against a lot of edge cases. -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: Makefile.am target name prefix *.o

2020-02-01 Thread Russ Allbery
make manual: https://www.gnu.org/software/automake/manual/html_node/Renamed-Objects.html -- Russ Allbery (ea...@eyrie.org) <https://www.eyrie.org/~eagle/>

Re: sharedlocalstate default - does anybody use this?

2018-06-06 Thread Russ Allbery
rompt for us to fix it. :) (Debian will almost certainly just point sharedstatedir at the same directory as localstatedir.) -- Russ Allbery (ea...@eyrie.org) <http://www.eyrie.org/~eagle/> ___ Autoconf mailing list Autoconf@gnu.org http

Re: How to check for SIGABRT?

2017-12-08 Thread Russ Allbery
hing like `exit 96` > Do you have any experience/thoughts about this? Personally, I'd make the actual test a tiny C program that execs argv, waits for it to exit, and then inspects the resulting exit status to see if it died with SIGABRT. -- Russ Allbery (ea...@eyrie.org) <

Re: Starting /bin/sh in output configure file

2017-07-13 Thread Russ Allbery
or this specific request, it would surprise me a good deal if Android would move sh and not also move env to some other directory than /usr/bin. If you're going to break compatibility that much, it's unlikely you're going to keep compatibility for env. But, well, I've been surprised before..

Re: Proper location to install shell function libraries?

2017-03-01 Thread Russ Allbery
e looking for. $datadir/, no? Script libraries are almost certainly architecture-independent. -- Russ Allbery (ea...@eyrie.org) <http://www.eyrie.org/~eagle/> ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: AC_DEFINE_UNQUOTED does not expand $libexecdir

2016-04-03 Thread Russ Allbery
, you should not rely on 'AC_CONFIG_FILES' to replace | 'bindir' and friends in your shell scripts and other files; instead, let | 'make' manage their replacement. There are more details in this section ("Installation Directory Variables") about how to write Makefile rules to do th

Re: Add clang++ to AC_PROG_CXX

2016-03-31 Thread Russ Allbery
e it as easy as possible to get free software working on any platform, even proprietary platforms, because that's how we get our foot in the door, and that's how we get more people using free software. Let's save strategic lack of cooperation for some other area where the benefits for users

Re: AC_PROG_CC wrongly setting $GCC=yes while clang is used

2014-09-08 Thread Russ Allbery
, if GCC added a new define, the other compilers would just start defining that symbol as well. I'm afraid the only hope you have, if you depend on extensions that are not implemented by other compilers, is to test explicitly for those extensions. -- Russ Allbery (ea...@eyrie.org) http

Re: AC_PROG_CC wrongly setting $GCC=yes while clang is used

2014-09-08 Thread Russ Allbery
a given flag is used to simply not use that flag there. For this particular situation, which I think is relatively rare, I would just parse the output of gcc -v. -- Russ Allbery (ea...@eyrie.org) http://www.eyrie.org/~eagle/ ___ Autoconf

Re: AC_SEARCH_LIBS without LIBS

2014-05-16 Thread Russ Allbery
missing? Occasionally I've used the pattern save_LIBS=$LIBS AC_SEARCH_LIBS([... LIBS=$save_LIBS Likewise. I do this a lot. -- Russ Allbery (ea...@eyrie.org) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https

Re: configure speedup proposal: add --assume-c99 and --assume-posix2008 flags

2014-03-23 Thread Russ Allbery
given NULL, 0 as the first arguments to snprintf, which makes it impossible to use snprintf safely in many programs. See: https://www.gnu.org/software/gnulib/manual/html_node/snprintf.html for more information about the portability mess. -- Russ Allbery (ea...@eyrie.org) http

Re: Use system extensions conditionally?

2014-03-03 Thread Russ Allbery
basically inherent in how the feature test macros work. But it's worth being aware of. All namespace bets are essentially off once you enable system extensions. -- Russ Allbery (ea...@eyrie.org) http://www.eyrie.org/~eagle/ ___ Autoconf

Re: AC_PATH_PROGS_FEATURE_CHECK results in namespace invasion

2014-02-26 Thread Russ Allbery
is not the best, but the functionality you need is there. I would rewrite the example as: AC_CACHE_CHECK([for m4 that supports indir], [ac_cv_path_M4_indir], [AC_PATH_PROGS_FEATURE_CHECK([M4_indir], [m4 gm4], ... AC_SUBST([M4], [$ac_cv_path_M4_indir]) -- Russ Allbery (ea

Re: AC_PATH_PROGS_FEATURE_CHECK results in namespace invasion

2014-02-26 Thread Russ Allbery
Peter Rosin p...@lysator.liu.se writes: On 2014-02-27 01:20, Russ Allbery wrote: Wouldn't you name the variable FOO_FEATURE? In other words, I think the example in the Autoconf manual is not the best, but the functionality you need is there. I would rewrite the example

Re: Passing -fno-lto by default?

2014-02-06 Thread Russ Allbery
be more portable than trying to grep the assembly output. -- Russ Allbery (ea...@eyrie.org) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX AC_PROG_FC

2014-01-17 Thread Russ Allbery
extent to --std=c99 or --std=c11. -- Russ Allbery (ea...@eyrie.org) http://www.eyrie.org/~eagle/

Re: AC_*/AM_* macros for options

2013-10-30 Thread Russ Allbery
, or unless it's only turned on optionally. -- Russ Allbery (ea...@eyrie.org) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: AC_*/AM_* macros for options

2013-10-29 Thread Russ Allbery
. -- Russ Allbery (ea...@eyrie.org) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: AC_LINK_IFELSE unexpectedly fails on Ubuntu 12.04

2013-10-25 Thread Russ Allbery
, which may be the case here. Short version: If I'm right, find where the configure script is throwing $FREETYPE_LIBS into $LDFLAGS and change it to add those flags to $LIBS instead. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: Empty else part in AS_IF

2013-10-10 Thread Russ Allbery
? -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Empty else part in AS_IF

2013-10-10 Thread Russ Allbery
(...)]) But if the contents of m4_ifdef expand into shell code, doesn't this prepend : to the first line of that shell code, effectively commenting it out? It seems cleaner to use [:] in the else branch of m4_ifdef for that reason. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: Empty else part in AS_IF

2013-10-10 Thread Russ Allbery
Eric Blake ebl...@redhat.com writes: If that's the case, then write AM_CONDITIONAL so that it always produces a shell statement: m4_define_default([AM_CONDITIONAL], [:]) Oh, good idea. Yes, that's even cleaner. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: AC_CHECK_ALIGNOF maximum ??

2013-06-20 Thread Russ Allbery
if it is not available. You may also want to test for long long availability before including it in the union... And long double, which IIRC is more of a portability issue than long long. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: [PATCH 0/2] Modernize header checks

2013-06-01 Thread Russ Allbery
Peter Rosin p...@lysator.liu.se writes: On 2013-06-01 00:06, Russ Allbery wrote: Autoconf doesn't work with MSVC directly so far as I know. All of the packages I have that are ported to MSVC have a separate hand-written config.h that's used for MSVC builds, and in that file one simply

Re: [PATCH 0/2] Modernize header checks

2013-06-01 Thread Russ Allbery
Peter Rosin p...@lysator.liu.se writes: On 2013-06-01 08:09, Russ Allbery wrote: Peter Rosin writes: On 2013-06-01 00:06, Russ Allbery wrote: Autoconf doesn't work with MSVC directly so far as I know. All of the packages I have that are ported to MSVC have a separate hand-written config.h

Re: [PATCH 0/2] Modernize header checks

2013-05-31 Thread Russ Allbery
that and do not prototype those functions in string.h. I'm quite sure there is code out there that assumes that Autoconf will probe for strings.h as a side effect of other probes and set HAVE_STRINGS_H, and therefore doesn't probe for it explicitly. (I maintain some of it, in fact.) -- Russ

Re: [PATCH 0/2] Modernize header checks

2013-05-31 Thread Russ Allbery
the standard Autoconf header probes do. This behavior is not currently clearly documented, but I will point out that the current documentation of AC_INCLUDES_DEFAULT shows use of the HAVE_STRINGS_H define without any mention of any other required checks. -- Russ Allbery (r...@stanford.edu

Re: [PATCH 0/2] Modernize header checks

2013-05-31 Thread Russ Allbery
my concern. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: [PATCH 0/2] Modernize header checks

2013-05-31 Thread Russ Allbery
misunderstood something? Autoconf doesn't work with MSVC directly so far as I know. All of the packages I have that are ported to MSVC have a separate hand-written config.h that's used for MSVC builds, and in that file one simply doesn't define HAVE_STRINGS_H. -- Russ Allbery (r...@stanford.edu

Re: [RFC] getting rid of the config.guess/sub problem when bootstrapping new ports/systems

2013-05-15 Thread Russ Allbery
this in different ways. As always with Debian, though, we're not very centralized about practices, so it takes a while to get this deployed consistently across the whole archive. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: [RFC] getting rid of the config.guess/sub problem when bootstrapping new ports/systems

2013-05-15 Thread Russ Allbery
back and revisited. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: autoconf/tools produces to many top level files

2013-04-12 Thread Russ Allbery
and don't really notice a significant difference. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Autoreconf stops with non-POSIX variable name

2013-04-01 Thread Russ Allbery
way of expressing things and just adds complexity to no real purpose. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Faillure to autogenerate file on hpux

2013-03-31 Thread Russ Allbery
an alternative, but some searching (I'm not horribly familiar with the regex syntax in expr) says: `expr //$file : '.*/\([^/]*\)'` -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: Autoreconf stops with non-POSIX variable name

2013-03-29 Thread Russ Allbery
to add -Wno-portability to the Automake flags (in AM_INIT_AUTOMAKE, for example). -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Faillure to autogenerate file on hpux

2013-03-29 Thread Russ Allbery
not portable. Omitting the destination argument to ln is a GNU extension. Try changing that to: ln -s PerlMAgick/quantum/Q16.xs Q16.xs -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: AX_CREATE_PKGCONFIG_INFO and hardcoded paths

2013-03-27 Thread Russ Allbery
exactly what goes into them. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Cross-platform availability of header files

2013-03-14 Thread Russ Allbery
builds. (ssize_t was the thing I ran into most recently that Windows doesn't have but which is otherwise universal and required by POSIX.) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf

Re: Enabling compiler warning flags

2012-12-20 Thread Russ Allbery
a DoS, but rather to gain additional *performance* by removing all the checks done via assert(). If your goal is to favor security over performance, you never want to use -DNDEBUG. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: Enabling compiler warning flags

2012-12-19 Thread Russ Allbery
changes is that the needs of embedded systems, who are heavy toolchain users, are often quite different. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman

Re: Enabling compiler warning flags

2012-12-17 Thread Russ Allbery
from the start. Yes, it's probably slower, but I'll trade speed for clarity and safety nearly all of the time. (Or you could also dodge the memory management problems by using a C framework that supports garbage collection, like APR, but that's farther afield of this list.) -- Russ Allbery (r

Re: Enabling compiler warning flags

2012-12-17 Thread Russ Allbery
obstacks or APR pools) instead. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Selecting a C++ standard

2012-10-27 Thread Russ Allbery
for the software I write.) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Selecting a C++ standard

2012-10-27 Thread Russ Allbery
Adrian Bunk b...@stusta.de writes: On Sat, Oct 27, 2012 at 06:45:01PM -0700, Russ Allbery wrote: Almost none of the software that I work on requires a 64-bit integer type. (C89 or later is also my default target for the software I write.) I just tried to build remctl and lbcd with CC=gcc

Re: [PATCH 1/2] AC_CONFIG_MACRO_DIRS: new macro, mostly for aclocal

2012-10-21 Thread Russ Allbery
support onto an old (20+ years in this case) code base with its own extremely complex build system. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: [RFC] getting rid of the config.guess/sub problem when bootstrapping new ports/systems

2012-10-09 Thread Russ Allbery
that as a permanent fork.) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: [RFC] getting rid of the config.guess/sub problem when bootstrapping new ports/systems

2012-10-08 Thread Russ Allbery
you need for arm64? We could also recommend dh_autoreconf at the same time, which might resolve a lot of these problems going forward. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org

Re: [RFC] getting rid of the config.guess/sub problem when bootstrapping new ports/systems

2012-10-08 Thread Russ Allbery
, and those will generally work fine on a new Debian architecture as long as config.guess/config.sub doesn't explode when attempting to determine the triplet. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf

Re: generating pc files

2012-09-20 Thread Russ Allbery
Bruce Korb bk...@gnu.org writes: On 09/19/12 11:03, Russ Allbery wrote: ... I believe the method using sed is correct, and generating the file at Autoconf time is not as correct... For my perspective, there really ought to be a simple macro that just exports all the configured values

Re: generating pc file

2012-09-20 Thread Russ Allbery
' at configure time, even if it's not common. So yes, you could use config.status, but only if it also had a flag that said to fully expand the variables before substituting them in, and I suspect that's a fair amount of change to the script. -- Russ Allbery (r...@stanford.edu) http

Re: generating pc file

2012-09-20 Thread Russ Allbery
Nick Bowler nbow...@elliptictech.com writes: On 2012-09-20 13:14 -0700, Russ Allbery wrote: config.status also doesn't fully expand the variables, though, which is something that you'd want for this sort of application. Otherwise, you have to know all of the possible ways in which one

Re: generating pc file

2012-09-20 Thread Russ Allbery
natively rather than requiring that people roll it themselves. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: generating pc file

2012-09-20 Thread Russ Allbery
. :-) Thus making the problem much better by *guaranteeing* that the *.pc file is wrong if there are any make-time overrides! Er, wait :) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf

Re: generating pc files

2012-09-19 Thread Russ Allbery
/lib/i386-linux-gnu Name: remctl Description: Remote authenticated command execution with ACLs URL: http://www.eyrie.org/~eagle/software/remctl/ Version: 3.2 Cflags: -I${includedir} Libs: -L${libdir} -lremctl Libs.private: -lgssapi_krb5 -- Russ Allbery (r...@stanford.edu

Re: generating pc files

2012-09-19 Thread Russ Allbery
it as well as letting make just do the expansion. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: generating pc files

2012-09-19 Thread Russ Allbery
Mike Frysinger vap...@gentoo.org writes: On Wednesday 19 September 2012 14:03:51 Russ Allbery wrote: That macro has gotten better (it at least doesn't put the user's CPPFLAGS and LDFLAGS into the *.pc file like it used to), but I still would not recommend people use it. By default, it still

Re: RFE: macro for warning at configure-time if CFLAGS includes -Werror

2012-09-19 Thread Russ Allbery
are just following cookbooks and who aren't prepared to debug the software are not going to gain anything useful by enabling a bunch of optional warnings, let alone trying to use -Werror. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: RFE: macro for warning at configure-time if CFLAGS includes -Werror

2012-09-19 Thread Russ Allbery
a debugging tool to find potential security problems. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Why conditionally include config.h?

2012-09-15 Thread Russ Allbery
please don't do that. :) (Other common culprits for this are the headers generated by scripting languages for their dynamically-loaded extension mechanism.) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing

Re: Why conditionally include config.h?

2012-09-13 Thread Russ Allbery
line. I suspect the above is what's happening when you see this in really old projects, and in newer projects it's copy and paste from older projects. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing

Re: Problems Configuring (C Compiler cannot produce executables)

2012-08-23 Thread Russ Allbery
Miles Bader mi...@gnu.org writes: Russ Allbery r...@stanford.edu writes: Also, you should generally not add -Wall -Wextra to the configure flags, and instead add it after configure completes, since many of the tricks configure has to use will result in warnings when you turn on all

Re: Problems Configuring (C Compiler cannot produce executables)

2012-08-23 Thread Russ Allbery
, ... if they are, these checks need to be considered broken ;) I've clearly just misremembered, then. Apologies for the noise. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https

Re: [autoconf] Problems Configuring (C Compiler cannot produce executables)

2012-08-22 Thread Russ Allbery
in CFLAGS and don't worry about the difference. Libtool is already adding -fPIC -shared when building the shared objects, and is smart enough to drop -fPIE from the shared objects as pointless. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: [autoconf] Problems Configuring (C Compiler cannot produce executables)

2012-08-22 Thread Russ Allbery
configure completes, since many of the tricks configure has to use will result in warnings when you turn on all the compiler warnings, which can confuse configure. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf

Re: [autoconf] Problems Configuring (C Compiler cannot produce executables)

2012-08-22 Thread Russ Allbery
directly in standard Autoconf macros for handling compiler warning flags, although I suspect there is stuff in both the macro archive and in gnulib. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list

Re: [autoconf] Problems Configuring (C Compiler cannot produce executables)

2012-08-21 Thread Russ Allbery
with personally): http://wiki.debian.org/Hardening/ -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: [autoconf] Problems Configuring (C Compiler cannot produce executables)

2012-08-21 Thread Russ Allbery
function. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: [autoconf] Problems Configuring (C Compiler cannot produce executables)

2012-08-21 Thread Russ Allbery
the places where it's appropriate. Note that it is safe to pass -fPIE globally via CFLAGS even if shared libraries (which must use -fPIC instead of -fPIE) are in play provided Libtool is in use, since Libtool is smart enough to not pass -fPIE into shared library builds. -- Russ Allbery (r...@stanford.edu

Re: AC_C_NORETURN macro?

2012-04-26 Thread Russ Allbery
that is portable on a practical level (meaning that people on multiple UNIX platforms can just run ./configure make). -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org

Re: [FYI] {master} refactor: use modern semantics of 'open'

2012-04-24 Thread Russ Allbery
). The easiest way to work around this is probably to change the Automake helper functions that sit between the code and the Perl open command and have them switch to calling open with two arguments if the file name is -. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: How to force location of headers

2012-04-14 Thread Russ Allbery
James K. Lowden jklow...@schemamania.org writes: Russ Allbery r...@stanford.edu wrote: is primarily a source of bugs and annoyances Based on what? Problems just like the one on this thread, or the breakage Debian saw with multiarch and headers that relied on , or similar problems that we've

Re: How to force location of headers

2012-04-12 Thread Russ Allbery
modify the source, get rid of all uses of in #include. I would recommend never using if you can avoid it. Once you have a good build system that can handle adding the appropriate -I flags for the compiler, is primarily a source of bugs and annoyances and not really a help. -- Russ Allbery (r

socket code on Windows (was: AC_INCLUDES_DEFAULT does not need to probe for headers that are part of C89 or POSIX.1 anymore)

2012-04-12 Thread Russ Allbery
message; } on Windows (obviously not threadsafe; you have to do other things if you need to be threadsafe). -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: AC_INCLUDES_DEFAULT does not need to probe for headers that are part of C89 or POSIX.1 anymore

2012-04-04 Thread Russ Allbery
not sure that you can make that assumption. Can't Autoconf be used to cross-compile software for a free-standing target, where several of those header files are not required to exist? -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: Why I am happy to dump gzip for xz

2012-03-06 Thread Russ Allbery
Jim Meyering j...@meyering.net writes: If you were more intimately familiar with gzip's code, you would have switched long ago ;-) [...] Thanks for this. I hadn't realized the issues with the gzip code. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

Re: Autoconf distributions and xz dependency

2012-03-02 Thread Russ Allbery
all the same to me. But I'm fairly unconvinced by the larger argument that free software developers should move to xz and away from gzip. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf

Minor autoreconf manual typo

2011-07-21 Thread Russ Allbery
Someone mentioned in another forum that I read that the autoreconf Invocation node of the Autoconf manual has a typo: -V (upper-case) is shown as the short option for both --version and --verbose. From the --help output, it looks like this should be -v for --verbose. -- Russ Allbery (r

Re: wacky warning in 2.68...

2011-05-18 Thread Russ Allbery
([AC_LANG_SOURCE([int x;])], [opt_ok=yes], [opt_ok=no]) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: wacky warning in 2.68...

2011-05-18 Thread Russ Allbery
Miles Bader mi...@gnu.org writes: Russ Allbery r...@stanford.edu writes: You're missing a level of quoting. That should be: AC_COMPILE_IFELSE([AC_LANG_SOURCE([int x;])], [opt_ok=yes], [opt_ok=no]) Hmm, ok. [I'm not sure if I'm _ever_ going to really have any intuitive sense

Re: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H

2011-02-01 Thread Russ Allbery
is obsolete and gnulib should be used instead. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H

2011-01-31 Thread Russ Allbery
will have different names and will therefore not need to retain compatibility with the same-named macros in Autoconf. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org

Re: AC_FUNC_STRTOD

2010-09-17 Thread Russ Allbery
mind, then. :) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: man pages error

2010-09-08 Thread Russ Allbery
to the autoconf-doc package for that file. Could you report this against autoconf via reportbug? -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Relative paths for $INSTALL

2010-07-21 Thread Russ Allbery
system that does some things that Automake can't easily handle, such as build kernel modules for nearly a dozen versions of UNIX.) -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: determining 32 v. 64 bit compilatio

2010-06-29 Thread Russ Allbery
of platforms. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: Comment on introduction pages

2010-06-03 Thread Russ Allbery
someone feel more welcome by not literally writing their gender out of the manual, and the reward is far stronger than the small loss of perceived elegance of wording. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/

Re: Prefix for file in source directory used in ./configure?

2010-04-24 Thread Russ Allbery
). I tend to use the abs_* versions as a matter of course since they avoid weird issues. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo

Re: AC_CHECK_FUNCS and gcc with -Werror

2010-03-04 Thread Russ Allbery
, and mails out the log file if anything fails is sufficient for what I've done. I just wrote a simple one myself. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle/ ___ Autoconf mailing list Autoconf@gnu.org http

Re: AC_CHECK_FUNCS and gcc with -Werror

2010-03-03 Thread Russ Allbery
only run by developers. This approach also lets me use gcc-specific warning flags since I know the developers will be using gcc, as opposed to end users who may be using a wide variety of other compilers. -- Russ Allbery (r...@stanford.edu) http://www.eyrie.org/~eagle

  1   2   3   >