Re: -pipe passed to gcc via Automake

2007-10-21 Thread Ralf Corsepius
On Sun, 2007-10-21 at 16:24 -0500, Bob Friesenhahn wrote: > On Sun, 21 Oct 2007, Benoit SIGOURE wrote: > > > On Oct 21, 2007, at 7:13 PM, NightStrike wrote: > > > >> If I wanted -pipe passed in to gcc all the time, do I put that in > >> AM_CPPFLAGS or AM_CFLAGS? > > > > I usually do this in my con

Re: Makefile.am assistance

2007-10-21 Thread Brian Dessent
Ralf Wildenhues wrote: > Well, I could tell you that Libtool can create DLLs plus import > libraries (it names them libfoo.dll.a), but I don't think you want > to hear that at this point. ;-) Libtool isn't appropriate here because he's not actually building any libraries, only synthesizing impor

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Benoit SIGOURE
On Oct 21, 2007, at 11:24 PM, Bob Friesenhahn wrote: On Sun, 21 Oct 2007, Benoit SIGOURE wrote: On Oct 21, 2007, at 7:13 PM, NightStrike wrote: If I wanted -pipe passed in to gcc all the time, do I put that in AM_CPPFLAGS or AM_CFLAGS? I usually do this in my configure.ac: AC_PROG_CXX # S

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Bob Friesenhahn
On Sun, 21 Oct 2007, Benoit SIGOURE wrote: On Oct 21, 2007, at 7:13 PM, NightStrike wrote: If I wanted -pipe passed in to gcc all the time, do I put that in AM_CPPFLAGS or AM_CFLAGS? I usually do this in my configure.ac: AC_PROG_CXX # Speed GCC compilation up. if test "$GXX" = yes; then CX

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Harlan Stenn
Benoit wrote: > I usually do this in my configure.ac: > > AC_PROG_CXX > # Speed GCC compilation up. > if test "$GXX" = yes; then >CXXFLAGS="$CXXFLAGS -pipe" > fi I use case statements wherever possible instead of 'test'. While 'case' is a shell builtin, 'test' may not be. If there are a bun

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Benoit SIGOURE
On Oct 21, 2007, at 7:13 PM, NightStrike wrote: If I wanted -pipe passed in to gcc all the time, do I put that in AM_CPPFLAGS or AM_CFLAGS? I usually do this in my configure.ac: AC_PROG_CXX # Speed GCC compilation up. if test "$GXX" = yes; then CXXFLAGS="$CXXFLAGS -pipe" fi -or- AC_PROG_C

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Ralf Wildenhues
Hello whoever(?), * NightStrike wrote on Sun, Oct 21, 2007 at 07:13:19PM CEST: > If I wanted -pipe passed in to gcc all the time, do I put that in > AM_CPPFLAGS or AM_CFLAGS? You pass it to configure via CFLAGS, or CC: ./configure CC='gcc -pipe' It makes not much sense in *CPPFLAGS: can't it h

Re: Makefile.am assistance

2007-10-21 Thread NightStrike
On 10/21/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > * NightStrike wrote on Fri, Oct 19, 2007 at 09:25:08PM CEST: > > > > crt_SCRIPTS = libcrtdll.a libmsvcrt.a libmsvcr80.a > > libcrtdll.a libmsvcrt.a libmsvcr80.a: > > base=`echo $@ | sed -e 's/\.a//' -e 's/^lib//'`; \ > > $(DL

-pipe passed to gcc via Automake

2007-10-21 Thread NightStrike
If I wanted -pipe passed in to gcc all the time, do I put that in AM_CPPFLAGS or AM_CFLAGS?

Re: Infinite recursion with `check_SCRIPTS = check'

2007-10-21 Thread Ralf Wildenhues
Hello Benoit, * Benoit SIGOURE wrote on Sun, Oct 21, 2007 at 04:00:42PM CEST: > On Oct 21, 2007, at 11:46 AM, Ralf Wildenhues wrote: >> >> Well, the user should be able to override the `check' target if he so >> wants. If it's possible to reliably warn without giving false failures >> without a l

Re: Infinite recursion with `check_SCRIPTS = check'

2007-10-21 Thread Benoit SIGOURE
On Oct 21, 2007, at 11:46 AM, Ralf Wildenhues wrote: Hello Benoit, * Benoit SIGOURE wrote on Sat, Oct 20, 2007 at 01:58:23PM CEST: Hello list, Due to a sudden lack of imagination, I wrote a testsuite named `check' and used it as a `check_SCRIPTS' which led to an infinite recursion of make

Re: Makefile.am assistance

2007-10-21 Thread Ralf Wildenhues
* NightStrike wrote on Fri, Oct 19, 2007 at 09:25:08PM CEST: > > crt_SCRIPTS = libcrtdll.a libmsvcrt.a libmsvcr80.a > libcrtdll.a libmsvcrt.a libmsvcr80.a: > base=`echo $@ | sed -e 's/\.a//' -e 's/^lib//'`; \ > $(DLLTOOL) $(DLLOPTS) --dllname $${base}.dll --def > $(top_srcdir)/$${b

Re: Infinite recursion with `check_SCRIPTS = check'

2007-10-21 Thread Ralf Wildenhues
Hello Benoit, * Benoit SIGOURE wrote on Sat, Oct 20, 2007 at 01:58:23PM CEST: > Hello list, > Due to a sudden lack of imagination, I wrote a testsuite named `check' and > used it as a `check_SCRIPTS' which led to an infinite recursion of make > (because the .PHONY check depends on check-am which

Re: Forcing an AC_CHECK to fail

2007-10-21 Thread Ralf Wildenhues
Hello Michael, * Michael B Allen wrote on Sun, Oct 21, 2007 at 02:44:26AM CEST: > On 10/20/07, Andreas Schwab <[EMAIL PROTECTED]> wrote: > > "Michael B Allen" <[EMAIL PROTECTED]> writes: > > > > > So how to do I preset a cache variable before running configure? > > > > You can put it in the enviro