Dominik Vogt <fvwm-workers@fvwm.org> writes:

> Okay, but what about CFLAGS?  I don't care much about the

You're probably OK resetting CFLAGS; anything someone will need
to add to build it would be a define, include path, or library
path, i should think.  You never know though, and there's still
the principle of least surprise, since fvwm's configure script
will behave differently than other configure scripts.

> CPPFLAGS or LDFLAGS.  And by the way, the paths of all
> libraries that fvwm uses can be set with configure options.

Sure, it will add a -L, but not a -Wl,-R or any other platform-
or site-specific flag.

> No, it isn't necessarily a user error.  Sometimes, when one of
> the autoconf/automake files has changed, an I type
> 
>   $ make CFLAGS="-Wall -Werror -O2 -g"
> 
> configure is rerun automatically with the CFLAGS I passed to
> make.

Ah, good old automake.  Rerunning the configure script is evil,
for this reason and many others.  Since my advice "don't use
automake" probably isn't something anyone is interested in
hearing, resetting only CFLAGS like you suggested will probably
be OK.

While we're on this, let me point out one of the other reasons
rerunning the configure script is evil.

0 fvwm% cat ../configure/fvwm
#! /bin/sh

CFLAGS=-g
CPPFLAGS='-I/usr/pkg/include'
LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib"
export CFLAGS CPPFLAGS LDFLAGS

sh ./configure \
        --disable-gnome-hints \
        --without-gnome \
        --disable-sm \
        "$@"

I have a similar script for every package i install.  Luckily for
me, the only automake-using package is fvwm, for which my
CPPFLAGS and LDFLAGS settings are apparently unnecessary because
it will pick them up from the gtk-config script.  If it weren't
for that luck, the automake-generated would happily run a
configure script incorrectly and things would explode.

> How about this: write a small test program that issues lots of
> warnings with -Wall and AC_TRY_COMPILE it.  When that fails,
> configure bugs out with an error message.

I guess you meant -Werror?  I don't see what you're trying to
accomplish though.

--  
Eric Gillespie <*> [EMAIL PROTECTED]

Build a fire for a man, and he'll be warm for a day.  Set a man on
fire, and he'll be warm for the rest of his life. -Terry Pratchett
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to