How do I write this test?

2009-08-07 Thread Dr. David Kirkby
I'm trying to write a test, but find the documentation extremely sparse on this. I wish to compile the following C program: main() { } using the compiler option "-Wl,-zextractall" and see if it returns 0 or 1. That seems like a pretty simple thing to do, but I can't work out from the docs h

Why does 'AC_MSG_CHECKING' output extra junk.

2009-08-07 Thread Dr. David Kirkby
If I have this in my configure.ac AC_MSG_CHECKING([if gcc uses the GNU or Sun linker]) then run the configure script, I see: checking if gcc uses the GNU or Sun linker... checking for a sed that does not truncate output... /opt/csw/bin/gsed I've not asked it to check for sed, so why is

Re: Why does 'AC_MSG_CHECKING' output extra junk.

2009-08-07 Thread Dominique Leuenberger
>>> On 8/7/2009 at 13:45, "Dr. David Kirkby" wrote: > If I have this in my configure.ac > > AC_MSG_CHECKING([if gcc uses the GNU or Sun linker]) > > then run the configure script, I see: > > checking if gcc uses the GNU or Sun linker... checking for a sed that > does not truncate output... /o

Re: How do I write this test?

2009-08-07 Thread Andrew W. Nosenko
On Fri, Aug 7, 2009 at 13:39, Dr. David Kirkby wrote: > I'm trying to write a test, but find the documentation extremely sparse on > this. > > I wish to compile the following C program: > > main() > { > } > > using the compiler option "-Wl,-zextractall" > > and see if it returns 0 or 1. Assuming t

Re: How do I write this test?

2009-08-07 Thread Andrew W. Nosenko
On Fri, Aug 7, 2009 at 16:18, Andrew W. Nosenko wrote: > On Fri, Aug 7, 2009 at 13:39, Dr. David Kirkby wrote: >> I'm trying to write a test, but find the documentation extremely sparse on >> this. >> >> I wish to compile the following C program: >> >> main() >> { >> } >> >> using the compiler opti

Re: How do I write this test?

2009-08-07 Thread Peter Johansson
Dr. David Kirkby wrote: I'm trying to write a test, but find the documentation extremely sparse on this. I wish to compile the following C program: main() { } using the compiler option "-Wl,-zextractall" and see if it returns 0 or 1. Have a look at AX_CHECK_COMPILER_FLAGS in the autoconf ma

Re: Why does 'AC_MSG_CHECKING' output extra junk.

2009-08-07 Thread Peter Johansson
Dr. David Kirkby wrote: I've not asked it to check for sed, so why is it putting that in the end? It's most likely not from AC_MSG_CHECKING, but it's hard to say from where it comes without a larger snippet of the configure.ac. Cheers, Peter ___

Re: Why does 'AC_MSG_CHECKING' output extra junk.

2009-08-07 Thread Daniel Leidert
Am Freitag, den 07.08.2009, 12:45 +0100 schrieb Dr. David Kirkby: > If I have this in my configure.ac > > AC_MSG_CHECKING([if gcc uses the GNU or Sun linker]) > > then run the configure script, I see: > > checking if gcc uses the GNU or Sun linker... checking for a sed that > does not truncate

Re: "The `-a', `-o', `(', and `)' operands are not portable": please clarify

2009-08-07 Thread Paolo Bonzini
On 08/07/2009 04:31 PM, Paolo Bonzini wrote: Maybe it's worth a ping to the dash maintainers... Yes... Is that a "yes I'll do it"? I'm happy to otherwise, pointing them at this thread, but I imagine it would have more effect from an autoconf maintainer. Which I am not, just a contributor.

Re: How can I test if the GNU or Sun linker is used?

2009-08-07 Thread Bob Friesenhahn
On Fri, 7 Aug 2009, Dr. David Kirkby wrote: gcc -Wl,-zallextract simple.c should return an error if the GNU linker is used, as it will not understand the -zallextract option. But it will not produce any error if gcc uses the Sun linker, since -zallextract is a valid option. This is a useles

Issue with ./config.status --recheck

2009-08-07 Thread Thomas Petazzoni
Hello, I'm having an issue with ./config.status --recheck re-running the ./configure script, but without all the environment variables that have been passed to the original ./configure call, making the build fail later because some tools cannot be found (in my case, the proper STRIP). I'm present

Re: Issue with ./config.status --recheck

2009-08-07 Thread Peter Johansson
Hello Thomas, Thomas Petazzoni wrote: 3. Configure with the following line: CC=/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/bin/arm-linux-gcc \ STRIP=/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/bin/arm-linux-strip \ ./configure --target=arm-linux --host=arm-linux --buil

Re: Why does 'AC_MSG_CHECKING' output extra junk.

2009-08-07 Thread Thomas Dickey
On Fri, 7 Aug 2009, Dr. David Kirkby wrote: If I have this in my configure.ac AC_MSG_CHECKING([if gcc uses the GNU or Sun linker]) then run the configure script, I see: checking if gcc uses the GNU or Sun linker... checking for a sed that does not truncate output... /opt/csw/bin/gsed

Re: How can I test if the GNU or Sun linker is used?

2009-08-07 Thread Dr. David Kirkby
Bob Friesenhahn wrote: On Fri, 7 Aug 2009, Dr. David Kirkby wrote: gcc -Wl,-zallextract simple.c should return an error if the GNU linker is used, as it will not understand the -zallextract option. But it will not produce any error if gcc uses the Sun linker, since -zallextract is a valid op

Re: CFLAGS/LDFLAGS vs. --with

2009-08-07 Thread Monty Taylor
Russ Allbery wrote: > Braden McDaniel writes: > >> If all your --with argument would be doing is dumbly appending >> "/include" and "/lib" for -I and -L flags, I don't see the point. > > I provide --with-* options for all optional libraries because sometimes > they do something else and sometime

Re: Why does 'AC_MSG_CHECKING' output extra junk.

2009-08-07 Thread Dr. David Kirkby
Daniel Leidert wrote: Am Freitag, den 07.08.2009, 12:45 +0100 schrieb Dr. David Kirkby: If I have this in my configure.ac AC_MSG_CHECKING([if gcc uses the GNU or Sun linker]) then run the configure script, I see: checking if gcc uses the GNU or Sun linker... checking for a sed that does not

Re: Issue with ./config.status --recheck

2009-08-07 Thread Thomas Petazzoni
Le Fri, 07 Aug 2009 14:11:42 -0400, Peter Johansson a écrit : > I'm not sure if it solves your problem, but it is a bad habit to set > environment variables before ./configure, instead set them at > commandline so configure has a chance to detect them. In your case it > would mean: > > ./

Why is this perl checking code not working for me?

2009-08-07 Thread Dr. David Kirkby
I'm trying to check if the version of perl is at least x.y.z I found a macro with this syntax. AX_PROG_PERL_VERSION([VERSION],[ACTION-IF-TRUE],[ACTION-IF-FALSE]) http://www.nongnu.org/autoconf-archive/ax_prog_perl_version.html The documentation says one needs to run AC_CHECK_PROG or AC_PATH_P

Re: Why is this perl checking code not working for me?

2009-08-07 Thread Russ Allbery
"Dr. David Kirkby" writes: > I'm trying to check if the version of perl is at least x.y.z > > I found a macro with this syntax. > > AX_PROG_PERL_VERSION([VERSION],[ACTION-IF-TRUE],[ACTION-IF-FALSE]) > > http://www.nongnu.org/autoconf-archive/ax_prog_perl_version.html > > The documentation says on