How to autoconf...

2003-07-31 Thread Frank A. Uepping
Hi, assume someone has finished a software project and wants to distribute it with autoconf. Currently the software compiles and runs on the platform of the developer; though the developer is interested to get the software run on other platforms as well, if there is a need (note, the developer has

Accessing AC_DEFINE'd var

2003-08-01 Thread Frank A. Uepping
With AC_DEFINE I can define cpp definitions. Is that legal/supposed-to to access the underlying var in configure.ac? Same for AC_SUBST. E.g.: ## configure.ac AC_INIT([foo], [1.0]) ## AC_DEFINE: PACKAGE_TARNAME/VERSION... AM_INIT_AUTOMAKE([$PACKAGE_TARNAME], [$PACKAGE_VERSION]) ## eof configure.ac

Get rid of `-g' in CXXFLAGS

2003-08-01 Thread Frank A. Uepping
Unfortuantely AC_PROG_CXX includes the `-g' option in CXXFLAGS, with what I am not happy with. How can I get rid of the `-g' flag in a way that doesn't *clobber* a user supplied CXXFLAGS? (However, I assume resetting CXXFLAGS entirely is not wise, isn't it?) Is there any AC_ switch for it, or do I

Re: Get rid of `-g' in CXXFLAGS

2003-08-01 Thread Frank A. Uepping
On Friday 01 August 2003 23:25, Guido Draheim wrote: > Frank A. Uepping wrote: > > Unfortuantely AC_PROG_CXX includes the `-g' option in CXXFLAGS, > > with what I am not happy with. > > How can I get rid of the `-g' flag in a way that doesn't *clobber* a user &g

Re: Get rid of `-g' in CXXFLAGS

2003-08-02 Thread Frank A. Uepping
On Saturday 02 August 2003 07:46, Richard Bos wrote: > Op vrijdag 1 augustus 2003 21:38, schreef Frank A. Uepping: > > Unfortuantely AC_PROG_CXX includes the `-g' option in CXXFLAGS, > > with what I am not happy with. > > How can I get rid of the `-g' flag in a wa

AC_CHECK_HEADER and kernel header files

2003-08-02 Thread Frank A. Uepping
I want to check for a kernel header file with AC_CHECK_HEADER. E.g.: AC_CHECK_HEADER([cdrom.h],, [AC_MSG_ERROR([cdrom.h not found])]) ./configure CPPFLAGS=-I/usr/include/linux gives me: checking cdrom.h usability... no checking cdrom.h presence... yes configure: WARNING: cdrom.h: present but cannot

AC_PROG_CC & user supplied CC

2003-08-02 Thread Frank A. Uepping
The AC_PROG_CC/CXX are searching for a compiler. Will the found compiler being used to compile the feature tests? E.g.: does AC_CHECK_HEADER(...) use the compiler determined by AC_PROG_CC? What about when the user supplies a compiler via `./configure CC=mygcc'; is that compiler used instead of th

AC_PROG_CC

2003-08-03 Thread Frank A. Uepping
The macros which compile a small C prog for testing a feature, do they need the AC_PROG_CC macro to be called before? /FAU

Re: AC_CHECK_HEADER and kernel header files

2003-08-04 Thread Frank A. Uepping
On Sunday 03 August 2003 19:24, Bob Proulx wrote: > Frank A. Uepping wrote: > > I want to check for a kernel header file with AC_CHECK_HEADER. > > Since you are wanting to use a kernel header file you should know that > you are leaving portable code behind and moving into

ChangeLog

2003-08-11 Thread Frank A. Uepping
Each directory containing source files should have a ChangeLog. Should changes to the `GNU build system' source files (configure.ac, Makefile.am) also be recorded into the ChangeLog? /FAU

Automake & objects in subdirs

2003-08-14 Thread Frank A. Uepping
Hello, I have the following directory layout: src/ bar.c src/common foo.c The program foobar should be build as follows (dependency): foobar: bar.c common/foo.c That is, in order to build foobar, foo.c has to be compiled first and then linked with bar.o to foobar. Can automake handle such a d

Output Variable and AM_CPPFLAGS

2003-09-08 Thread Frank A. Uepping
Hi, I want to pass an additional cpp flag (-I) to the compilation process. Here is what I am doing: My configure.ac determines the additional include directory and does a `AC_SUBST([MYINCL], [$myincl])' on it. Then Makefile.am does a `AM_CPPFLAGS = [EMAIL PROTECTED]@'. Is this the proper way to do