Ethereal-dev: Re: [ethereal-dev] Need help expanding the makefiles and such

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Wed, 21 Jun 2000 10:50:36 -0500
On Wed, Jun 21, 2000 at 10:13:09AM -0500, andreas.sikkema@xxxxxxxxxxx wrote:
> 
> 
> Hi
> 
> To finalize the project I hev been pestering you about (hah!) I am also 
> required
> to supply a Linux version. Therefore I need to generate a makefile and a 
> configure
> script. I want to use the wiretap script as a base, but when I do that I 
> get an
> error message when I try to run configure
> ./configure: syntax error near unexpected token 
> `AM_INIT_AUTOMAKE(libwtap.a,'
> ./configure: ./configure: line 527: `AM_INIT_AUTOMAKE(libwtap.a, 0.0.0)'
> 
> (I changed the library name after running configure btw)
> 
> What commands are used to generate the wiretap Makefile and configure 
> scripts?

The Makefile.am and configure.in files are made by hand.
Then, automake and autoconf are run.

You can take a look at autogen.sh, available in the CVS version (but not
the tarball) to see what it does. You can modify it for your project. Then
you just have to edit Makefile.am, configure.in, and then run your
modified autogen.sh to create the configure script and other files.

--gilbert