Re: On time64 and Large File Support

2023-03-06 Thread Andreas Schwab
The pressure to build with _FILE_OFFSET_BITS=64 was large enough that > a working consensus was reached pretty quickly to build that way. The pressure for 64-bit time_t is much higher, because it affects almost every program. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint =

Re: On time64 and Large File Support

2023-03-02 Thread Andreas Schwab
There is a huge difference between them: time_t has a flag day, off_t doesn't. You can still run with 32-bit off_t today and have everything working. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: Bash security issue

2014-09-26 Thread Andreas Schwab
Eric Blake writes: > Overkill. The security hole arises because the problem, as it currently > exists, is triggerable by ANY portable environment variable definition. In the context of security you need to forget about portable. You need to think about the improbable. Andreas. -- A

Lost commit

2010-12-18 Thread Andreas Schwab
When I updated my copy of the autoconf repository today I noticed that one commit got lost (45b928b: autotest: fix file descriptor leak). Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something compl

Re: Portability problems in autoconf manual

2009-04-29 Thread Andreas Schwab
e, if there are operands, the first is treated as an action and the > remaining as conditions. This paragraph is new in POSIX.1-2008. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for somethi

Re: AS_IF optimization (was: AC_TRY_COMPILE() annoyances with 2.63b)

2009-04-07 Thread Andreas Schwab
Eric Blake writes: > According to Andreas Schwab on 4/7/2009 3:47 AM: >>>From the autoconf manual: >> >> There are shells that do not reset the exit status from an `if': >> >> $ if (exit 42); then true; fi; echo $? >> 4

Re: AC_TRY_COMPILE() annoyances with 2.63b

2009-04-07 Thread Andreas Schwab
>From the autoconf manual: There are shells that do not reset the exit status from an `if': $ if (exit 42); then true; fi; echo $? 42 whereas a proper shell should have printed `0'. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint =

Re: value of a macro parameter and position of )

2009-02-15 Thread Andreas Schwab
y one argument. > the value of the 2nd parameter in the macro is not yes, but yes followed > by a new line See node Macro Arguments in the m4 documentation: only leading unquoted whitespace is skipped when collecting macro arguments. All other whitespace will become part of the argument.

Re: Getting data from a nested configure script?

2008-12-26 Thread Andreas Schwab
=- echo '@'CFLAGS@ | ./config.status --file=- Andreas. -- Andreas Schwab, SuSE Labs, sch...@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely differen

Re: autconf, configure & purify...

2008-10-24 Thread Andreas Schwab
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > - many vendor shells complain about 'test -z' without further argument: A POSIX-compliant test won't, and returns zero. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 904

Re: tr portability

2008-10-05 Thread Andreas Schwab
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > +On Solaris, don't put @code{/usr/ucb} early in your PATH. @code{/usr/ucb} It's probably better to avoid starting the sentence with @code{/usr/ucb}. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products

Re: Error while autoconf on Ubuntu

2008-09-24 Thread Andreas Schwab
"mahendra panpalia" <[EMAIL PROTECTED]> writes: >> aclocal.m4:22: error: m4_defn: undefined macro: _m4_divert_diversion Most likely underquoted macro. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nür

Re: Issue in autoconf with config.status generation

2008-09-18 Thread Andreas Schwab
t) you should declare it as precious (see (autoconf)Setting Output Variables). Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: document how to create universal binaries

2008-08-17 Thread Andreas Schwab
t;g++ -arch ppc -E" \ >./configure It is preferred to pass variable settings as arguments instead of in the environment, for better support of rerunning configure, see (autoconf)Defining Variables. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH,

Re: AC_C_BIGENDIAN answers "universal" on powerpc-aix

2008-08-15 Thread Andreas Schwab
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Why not check for > *-arch\ ppc* | *-arch\ i386* | *-arch\ x86_64* That would need to check for any kind of whitespace delimiter, or else normalize whitespace. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux P

Re: aclocal-1.9 and aclocal-1.10 are failing while aclocal-1.7 is not

2008-07-25 Thread Andreas Schwab
ENT_FEATURE], 0) should be written like this: AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0) Versions of aclocal before 1.8 didn't use the m4 tracing facility, so the error does not show during its run, but autoconf still complains. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PRO

Re: ac_cv_sizeof_X, et al.

2008-07-15 Thread Andreas Schwab
Eric Blake <[EMAIL PROTECTED]> writes: > C allows for difference in size between unsigned and signed > counterparts C99 doesn't. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint

Re: AC_LANG_PROGRAM(C): function 'main' without prototype

2008-07-13 Thread Andreas Schwab
beyond the scope of the standard. The purpose of -Wstrict-prototypes is to diagnose definitions that are not a prototype, which main(){} isn't. By the use of this option together with -Werror you are operating beyond the requirements of the standard, and GCC is behaving as documented. An

Re: Issues w/ cross-compiling

2008-07-08 Thread Andreas Schwab
ild_i586/php-5.2.6/configure.in:AC_CHECK_SIZEOF(size_t, 8) You are looking at an old version of autoconf. The current definition of AC_CHECK_SIZEOF does not use the second argument any more and use a pure compile-time check when cross compiling. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PR

Re: Why AC_C_CHAR_UNSIGNED?

2008-06-25 Thread Andreas Schwab
Bob Friesenhahn <[EMAIL PROTECTED]> writes: > It is not like those systems using signed characters (eg Tru64 on Alpha I > think) vaporized from the face of the earth. There are probably as many ABIs using signed characters as those using unsigned characters. Andreas. -- Andreas

Re: macros which define macros

2008-05-29 Thread Andreas Schwab
m4 always expands the arguments before exanding the macro itself. Also, you can use $@ to forward all arguments. AC_DEFUN([CL_COMPILE_CHECK], [CL_CHECK([AC_COMPILE_IFELSE],[EMAIL PROTECTED])]) AC_DEFUN([CL_LINK_CHECK], [CL_CHECK([AC_LINK_IFELSE],[EMAIL PROTECTED])]) Andreas. -- Andreas

Re: Question about CFLAGS

2008-04-16 Thread Andreas Schwab
hould it append my CFLAGS to its CFLAGS, using a combination of > both? In general a configure script should never modify CFLAGS. But flags like -m64 that select a completely different ABI should better be put in CC, not CFLAGS. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROT

Re: AC_C_LONG_DOUBLE is obsolescent.

2008-04-09 Thread Andreas Schwab
Eric Blake <[EMAIL PROTECTED]> writes: > Most C89 compilers these days provide long double at least as an > extension, long double is not an extension. Did you mistake it with long long? Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstr

Re: Implementation of `AC_COMPUTE_INT'

2008-03-20 Thread Andreas Schwab
NT([...]) > cross_compiling=$save_cross_compiling Can this go wrong when AC_COMPUTE_INT AC_REQUIRE's other macros? Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 21

Re: aclocal or acinclude?

2008-03-14 Thread Andreas Schwab
ocal.m4 with it. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." __

Re: AC_CHECK_FUNC with empty else path

2008-03-08 Thread Andreas Schwab
NightStrike <[EMAIL PROTECTED]> writes: > On 3/8/08, Andreas Schwab <[EMAIL PROTECTED]> wrote: >> NightStrike <[EMAIL PROTECTED]> writes: >> >> > If I do this: >> > >> > AC_CHECK_FUNC( >> > [chokeme], >> >

Re: AC_CHECK_FUNC with empty else path

2008-03-08 Thread Andreas Schwab
itespace (quoted or not) is preserved. You need to put the closing paren immediatly after the closing quote of the argument. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 4

Re: What is wrong with this kernel module??? :((

2007-12-31 Thread Andreas Schwab
x kernel. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _

Re: How to dinamically set VERSION for AC_INIT

2007-12-14 Thread Andreas Schwab
Eric Blake <[EMAIL PROTECTED]> writes: > According to Andreas Schwab on 12/14/2007 7:56 AM: >> AC_INIT(my-fine-package, m4_esyscmd([./version.sh | tr -d '\n'])) >> >> Note that you need to manually remove the final newline, unlike command >> substi

Re: How to dinamically set VERSION for AC_INIT

2007-12-14 Thread Andreas Schwab
h` > > AC_INIT(my-fine-package, $SVN_VERSION) AC_INIT(my-fine-package, m4_esyscmd([./version.sh | tr -d '\n'])) Note that you need to manually remove the final newline, unlike command substitutions m4_esyscmd does not do that for you. Andreas. -- Andreas Schwab, SuSE La

Re: AC_PATH_X doesn't find headers nor libraries

2007-11-14 Thread Andreas Schwab
are in the standard locations. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now

Re: Custom source configuration

2007-11-13 Thread Andreas Schwab
and > set the flags according to this detection (either at configure time or at > make time, but preferably at make time). The KDE sources include autoconf macros to find Qt libraries and related things. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products G

Re: m4_version_compare and new version numbering

2007-11-03 Thread Andreas Schwab
t; > A small data point: I recall Debian disliking '-' in version strings at > one point in time, because they like to append their own package version > with one or more hyphens. Dunno how much that matters any more or at > all, or if other distros do similar. RPM disallows

Re: m4_version_compare and new version numbering

2007-11-03 Thread Andreas Schwab
n only speculate, but the sha1 can be all-numeric, and the g prefix makes sure it's not parsed as a number. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 21

Re: m4_version_compare and new version numbering

2007-11-03 Thread Andreas Schwab
Jim Meyering <[EMAIL PROTECTED]> writes: > Anyone know why git adds the 'g' prefix to the SHA1 in git-describe? Probably because it's not a number? Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Ger

Re: distcheck fails with autotest: autom4te: cannot open ../../tests/testsuite.tmp: Permission denied

2007-11-02 Thread Andreas Schwab
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > $ touch a && chmod -w a > $ sh -c '{ echo foo; } > a'; echo $? > sh: a: Permission denied > 0 There is a cheap workaround: $ sh -c ':; { :; } > a; echo $?' sh: a: Permission denied 1 Andreas. -

Re: distcheck fails with autotest: autom4te: cannot open ../../tests/testsuite.tmp: Permission denied

2007-11-02 Thread Andreas Schwab
lure to redirect a compound command. > Some versions of GNU Bash do not properly set @samp{$?} when > writing the output from a @[EMAIL PROTECTED]@}} block fails. It's not restricted to brace groups, it also fails when redirecting any other compound command (except for the subshell

Re: Please help

2007-10-26 Thread Andreas Schwab
to the above use with xargs, and even faster than that. > And I haven't looked to see if '-exec ... {}' is "safe" for filename > characters the same way -print0 ... is. There is no shell involved in -exec, so it is safe for every filename. Andreas. -- Andreas Sc

Re: strange choice of compiler on HP-UX

2007-09-26 Thread Andreas Schwab
would be difficult to change this by adjusting PATH. You are free to create your own directory. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5

Re: strange choice of compiler on HP-UX

2007-09-26 Thread Andreas Schwab
to /opt/ansic/bin/cc !!! I > am not root of this system :-( You don't need to be root to change PATH. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 2

Re: How to compile 32bit library on 64bit x86_64 systems?

2007-09-14 Thread Andreas Schwab
"Geeky Jim" <[EMAIL PROTECTED]> writes: > ./configure CPPFLAGS=-m32 LDFLAGS="-m32 -L/usr/lib" I think you should rather set CXX to "g++ -m32" instead of using CPPFLAGS/LDFLAGS. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Product

Re: conversion to git

2007-09-14 Thread Andreas Schwab
gt; sac 1993-04-30 > wood1993-04-09 For the others I could not find any traces anywhere. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01

Re: AC_PATH_PROG or m4 bug

2007-08-27 Thread Andreas Schwab
s quote nested macro invocations. > 2) [CHECK_KRB(5)] instead of CHECK_KRB(5) (in all cases) That's the only part that needs to be fixed. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA

Re: autoreconf vs autogen.sh

2007-08-27 Thread Andreas Schwab
Roman Rybalko <[EMAIL PROTECTED]> writes: > when I have to include some m4s in m4 dir how I can specify -I m4 option > to aclocal through autoreconf ? Set ACLOCAL_AMFLAGS in the toplevel Makefile.am. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux P

Re: test in a m4 macro and variable created from pushdef

2007-08-08 Thread Andreas Schwab
e the first pass of parsing: if test "x${use_[]DOWN[]_driver}" = "xyes"; then Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1

Re: Configure can't find library but g++ can

2007-07-07 Thread Andreas Schwab
main, LIBS="$LIBS -lcsv", [AC_MSG_ERROR([*** libcsv library not found!])] ) Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5

Re: passing a macro as an argument of macro

2007-03-31 Thread Andreas Schwab
; > Is it possible ? Sure. > If yes, what is the syntax I should use in MAIN_MACRO ? You've already found out by yourself. :-) Just make sure you properly quote the macro name in the argument, so that it isn't expanded too early. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PR

Re: AC_ARG_ENABLE: problem with the output of configure --help

2007-03-31 Thread Andreas Schwab
want_ecore_[]DOWN=yes ]) > fi You cannot influence the generation of the configure script at runtime for obvious reasons. The expansion of the right AC_ARG_ENABLE must be selected by m4 conditionals. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstr

Re: AC_ARG_ENABLE: problem with the output of configure --help

2007-03-31 Thread Andreas Schwab
Vincent Torri <[EMAIL PROTECTED]> writes: > I've written an m4 macro (see attached file). ENOENT. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3

Re: Why if test "xSTRING1= "xSTRING2" (the 'x') ?

2007-03-26 Thread Andreas Schwab
ility. Suppose STRING1 is '(' and STRING2 is ')'. Then 'test "x(" > = "x)"' is false, while 'test ( = )' is true. Note that POSIX mandates that the latter is false as well. May not matter much, since there are many broken implementations

Re: Why if test "xSTRING1= "xSTRING2" (the 'x') ?

2007-03-26 Thread Andreas Schwab
eholder, in case $foo happens to expand to nothing. If $foo happens to expand to multiple words this will fail as well. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 175

Re: Why if test "xSTRING1= "xSTRING2" (the 'x') ?

2007-03-26 Thread Andreas Schwab
rious interpretation as an operator if either string might start with a dash. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5

Re: new line added to a variable passed to a macro

2007-03-26 Thread Andreas Schwab
Vincent Torri <[EMAIL PROTECTED]> writes: > off topic : is it better to use ${have_ecore_con} or $have_ecore_con ? It does not really matter, but the former is more robust. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409

Re: new line added to a variable passed to a macro

2007-03-25 Thread Andreas Schwab
only added when I call: > > AC_CHECK_ECORE_MODULE([Ipc], > ["yes"], > [${have_ecore_con}] ^^^ The newline is here. m4 does not strip trailing whitespace when gathering arguments. Either put the closing paren directly after it, or use dnl. Andreas. --

Re: how to use variable with translit definitions

2007-03-25 Thread Andreas Schwab
translit([$1], [A-Z], [a-z]))dnl ecore_[]DOWN[]_libs="" AC_SUBST(ecore_[]DOWN[]_libs) popdef([DOWN]) ]) Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP k

Re: autoreconf warning message: autom4te: cannot lock autom4te.cache/requests with mode 2: Invalid argument

2007-03-12 Thread Andreas Schwab
toreconf: configure.ac: not using Gettext > autoreconf: running: aclocal --force -I m4 > autom4te: cannot lock autom4te.cache/requests with mode 2: Invalid argument [...] > I see these warnings on an HP-UX 11 machine. Looks like your perl does not properly implement flock. See sub lock in Auto

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Andreas Schwab
is that the value is not recursively expanded. The second level expansion could still refer to other variables. For example, a recent addition to autoconf is the datarootdir variable, and datadir is now defined in terms of datarootdir, which in turn is defined in terms of prefix. A two level

Re: Why "unknown"?

2007-02-12 Thread Andreas Schwab
Mike Sharov <[EMAIL PROTECTED]> writes: > Why does config.guess prints "unknown" instead of "pc" for PCs? What is a PC anyway? Is a 32 cpu system a PC? Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90

Re: how to check type size

2007-02-04 Thread Andreas Schwab
me types > have unexpected sizes, for example, if 'int' is not of 4 bytes long. If you want fixed sized type you should use the ones from . Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprin

Re: how to check type size

2007-02-04 Thread Andreas Schwab
Andrew Makhorin <[EMAIL PROTECTED]> writes: > I need to check the size of some generic types, and if the size is > unexpected, the configure script must raise a "configuration error". See AC_CHECK_SIZEOF. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] Su

Re: "has changed since the previous run"

2007-02-01 Thread Andreas Schwab
DJ Delorie <[EMAIL PROTECTED]> writes: > They share config.cache, because it saves a lot of time. Not any more. Nowadays every configured subdirectory gets its own cache. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409

Re: Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".

2007-01-22 Thread Andreas Schwab
omit --srcdir, because configure > finds it by itself; then $ac_srcdir is an absolute path; $ac_srcdir will be relative even if you omit --srcdir. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA

Re: Stack direction check fails with optimizations

2006-12-13 Thread Andreas Schwab
down(&x)); > } That could fail exactly the same way if growsdown were inlined by the compiler. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 4

Re: After upgrade autoconf from 1.13 to 2.57, I experienced some problems - HELP

2006-12-07 Thread Andreas Schwab
Thomas Dickey <[EMAIL PROTECTED]> writes: > On Thu, 7 Dec 2006, Andreas Schwab wrote: > >> Thomas Dickey <[EMAIL PROTECTED]> writes: >>> In contrast, I can plug current ncurses libraries into a system that's >>> built with ncurses 5.0, and just ass

Re: After upgrade autoconf from 1.13 to 2.57, I experienced some problems - HELP

2006-12-06 Thread Andreas Schwab
from 1999. That's not a useful comparison. How many new features have been added to ncurses in the last 6 years? Also, try compiling the 6 years old code with a state-of-the-art compiler. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5

Re: using builddir/srcdir at configure time

2006-11-25 Thread Andreas Schwab
_srcdir == $srcdir. They are only different in sub-makefiles. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And

Re: 2.60 and AC_FUNC_GETGROUPS

2006-11-06 Thread Andreas Schwab
Bill Moseley <[EMAIL PROTECTED]> writes: > What happened that GETGROUPS_T is no longer defined as gid_t? Don't define GETGROUPS_T yourself. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fing

Re: unexpected editing of argument to AH_BOTTOM

2006-10-12 Thread Andreas Schwab
text to be modified. #undef is special in a config header, see (autoconf)Header Templates. That is independent on how the #undef has been put in the template. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fing

Re: Question regarding sscanf() vs. off_t and similar

2006-09-14 Thread Andreas Schwab
Philipp Marek <[EMAIL PROTECTED]> writes: > On Thursday 14 September 2006 15:01 Andreas Schwab wrote: >> Note that "L" is not a valid length modifier for integer formats. > For gnu libc it is: > http://www.gnu.org/software/libc/manual/html_node/Integer-Conversions

Re: Question regarding sscanf() vs. off_t and similar

2006-09-14 Thread Andreas Schwab
;%L" > #else > #error "Don't know size" > #endif > #endif You can't use sizeof in preprocessor directives. Besides that, the size of an integer says nothing about its type. For example, a 4 byte integer can be either int or

Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror)

2006-08-15 Thread Andreas Schwab
match one of the two specified forms prior to macro replacement, the behavior is undefined. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "

Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror)

2006-08-15 Thread Andreas Schwab
_MMAP) && defined(HAVE_MUNMAP)) This won't work anyway, the C standard does not define the behaviour of defined in expanded tokens. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C

Re: CC=cc ./configure or ./configure CC=cc

2006-08-08 Thread Andreas Schwab
to see the settings. Try ./config.status --version. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Andreas Schwab
Bruce Korb <[EMAIL PROTECTED]> writes: > "not required to be a normal function" implies that it is > common knowledge that everybody knows you have to roll your > own AC macro? autoconf does not save you from learning the language you use for programming. Andreas. --

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Andreas Schwab
Thomas Dickey <[EMAIL PROTECTED]> writes: > btw - does AC_CHECK_FUNCS(stat) work? stat() is required to be a > function. Yes, but many libcs are buggy. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Ger

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Andreas Schwab
"Bruce Korb" <[EMAIL PROTECTED]> writes: > This macro does not work when the headers #define sigsetjmp to > something else. sigsetjmp is special since it's not required to be a normal function. You can't use AC_CHECK_FUNCS to check for it. Andreas. -- A

Re: can autoconf determine if a preprocessor macro is defined or not?

2006-07-27 Thread Andreas Schwab
autoconf for that? The C preprocessor is perfectly capable of doing it. > Here's what I had to add to get my code to build. I would prefer if > autoconf could add this to config.h, for example: Just use AH_VERBATIM to add anything you like to config.h. Andreas. -- Andreas Schwab

Re: How AC_PROG_CC find the cross-compiler?

2006-07-25 Thread Andreas Schwab
ningful in compiler-related tools) does not come into play until you actually run the cross compiler, i.e. when you build something with it. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D

Re: changed from cpp to c, autoconf will not work any more.

2006-07-20 Thread Andreas Schwab
27;marker.cpp'. Remove the dependency file in the .deps directory. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 82

Re: Noobie question about building libraries: catch 22

2006-07-18 Thread Andreas Schwab
Douglas Phillipson <[EMAIL PROTECTED]> writes: > I'm wanting to build a library as part of my application, but since > configure wants to detect my library with the AC_CHECK_LIB Why do you want to check for it if it is part of your application? Andreas. -- Andreas Schwab,

Re: ac_link variable...

2006-07-13 Thread Andreas Schwab
"Ben Bergen" <[EMAIL PROTECTED]> writes: > Is there a way to force "$ac_link" to use a "-c" before the source > file when doing AC_CHECK_LIB? Why would you do that? It subverts the whole point of ac_link. Andreas. -- Andreas Schwab, SuSE Labs,

Re: Broken makefile given Autoconf version mismatch

2006-04-16 Thread Andreas Schwab
followed by a semicolon, optional s, and another command verb." Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 &q

Re: Broken makefile given Autoconf version mismatch

2006-04-16 Thread Andreas Schwab
ou quote above is _not_ about semicolons being unsupported, but rather about missing ones. Autoconf is using semicolons in sed expressions already for many years (eg in the AC_OUTPUT_FILES macro). Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 9

Re: AC_CHECK_FILES on /dev/stdin

2006-03-31 Thread Andreas Schwab
basic_ifstream is a basic_istream. > > Sorry for the confusion, I meant that the need to be *identical*, not just > derivable from the other, because I'm containing their objects (value), > not references. > struct foo { ifstream _stream; }; I think you are making a design

Re: AC_CHECK_FILES on /dev/stdin

2006-03-30 Thread Andreas Schwab
eam manager that maintains stream objects (not > references to) internally without any run-time polymorphism, so I need > one single type to handle both stdio and file streams, That would be basic_istream/ostream. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Product

Re: autoconf linking with shared object

2006-03-29 Thread Andreas Schwab
ing else), then you will get a link failure. With linker flags like --as-needed this becomes relevant even in the shared case. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 175

Re: configure script question ?

2006-03-05 Thread Andreas Schwab
a test only for a parameter that is unset. Put another way, if the colon is included, the operator tests for both existence and that the value is not null; if the colon is omitted, the operator tests only for existence. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products

Re: ensure a VPATH build

2006-02-18 Thread Andreas Schwab
appen. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ___

Re: ensure a VPATH build

2006-02-18 Thread Andreas Schwab
gt; A string such as >"a string `echo with an embedded backquoted` substring" > > can always be safely rewritten as >"a string "`echo with an embedded backquoted`" substring" $ echo `echo 'a b'` a b $ echo "`echo 'a b'

Re: debug builds with NO optimizations

2006-02-07 Thread Andreas Schwab
hat do that. Please don't spread that further. CFLAGS (as well all CPPFLAGS, CXXFLAGS, etc.) should always be reserved for the user to override any time. It it highly annoying if that does not work. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, M

Re: debug builds with NO optimizations

2006-02-06 Thread Andreas Schwab
"John Calcote" <[EMAIL PROTECTED]> writes: > My question: Anyone know of a good idiom for managing optimization flags - > including disabling the obligatory -O2 placed in CFLAGS by AC_PROG_CC? .../configure CFLAGS=-g Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTE

Re: AW: prefix

2005-12-02 Thread Andreas Schwab
Keith Marshall <[EMAIL PROTECTED]> writes: > BTW, I don't think ac_default_prefix is officially documented But AC_PREFIX_DEFAULT is. -- Macro: AC_PREFIX_DEFAULT (PREFIX) Set the default installation prefix to PREFIX instead of `/usr/local'. Andreas. -- Andrea

Re: Defining Macros With Literal Values

2005-10-26 Thread Andreas Schwab
acro with the same value. You can use AC_DEFINE_UNQUOTED to define a macro to the result of a shell substitution. You can easily extract the value from the output of the preprocessor. Don't use the output of a compiled program because that would make cross-compiling impossible. Andreas.

Re: [OT] reply-to (was: AC_FOREACH public?)

2005-10-24 Thread Andreas Schwab
ne from the thread who is not subscribed to the list. > . Reply to the address in the "From" header, for a private response; If Reply-to is present, it replaces the From address for replies (RFC 2822). > . Reply-to-All, to spam the world... Keep the non-subscribers in the loop.

Re: sh portability questions

2005-09-28 Thread Andreas Schwab
Akim Demaille <[EMAIL PROTECTED]> writes: > if (local foo) >/dev/null 2>&1; then :; else > local () { true; } > fi Note that local is only valid in function context, so this will always produce a failure. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]

Re: sh portability questions

2005-09-27 Thread Andreas Schwab
"local" > that warns if any of its arguments is a variable whose value is set; That would also (spuriously) warn if you call a function with local variables a second time, unless you explicitly unset the local variables before returning. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTE

Re: how to force the caller of configure to pass arguments

2005-09-12 Thread Andreas Schwab
; an error message if not. The optional fourth parameter of AC_ARG_WITH is executed if no such option is passed, as described in the manual (hint, hint). You can use AC_MSG_ERROR to abort. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409

Re: variables in configure.ac

2005-09-12 Thread Andreas Schwab
tkIO -lvtkRendering" > > However, when i run configure, i get > ...: VTK_LIBS+=-lvtkFiltering -lvtkfreetype -lvtkftgl -lvtkGraphics > -lvtkHybrid: command not found > > Can anybody tell my what i'm doing wrong ? This isn't valid Bourne Shell syntax. Andrea

Re: checking for specific versions of operating system

2005-08-23 Thread Andreas Schwab
d macro calls. Actually, _all_ arguments should be quoted, but for those containing macro calls it is most important. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5

Re: AM_CONDITIONAL

2005-08-14 Thread Andreas Schwab
E='#' > else > ENABLE_GTK_DOC_TRUE='#' > ENABLE_GTK_DOC_FALSE= > fi > > Isn't this backward? Look at the generated Makefile.in: everything prefixed with @ENABLE_GTK_DOC_TRUE@ is enabled (not commented out) when the condition is true. Andr

  1   2   3   >