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 =
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."
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
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
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
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
>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 =
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.
=-
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
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
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
"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
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."
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,
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
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
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
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
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
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
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
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
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
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
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."
__
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],
>> >
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
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."
_
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
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
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
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
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
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
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
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.
-
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
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
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
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
"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
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
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
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
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
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
;
> 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
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
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
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
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
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
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
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.
--
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
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
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
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
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
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
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
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
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
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
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
_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
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
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
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
;%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
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
"
_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
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
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.
--
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
"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
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
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
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
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,
"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,
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
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
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
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
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
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
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."
___
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'
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
"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
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
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.
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.
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]
"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
; 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
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
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
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 - 100 of 202 matches
Mail list logo