[ds6-devel] nc6 long options

Mauro Tortonesi mauro@deepspace6.net
Sun Dec 29 18:30:24 2002


On Sun, 29 Dec 2002, Chris Leishman wrote:

> On Sunday, December 29, 2002, at 03:54 PM, Mauro Tortonesi wrote:
> <snip>
> >
> > we should include getopt_long in the sources, with the autoconf replace
> > function facility.
> >
> > BTW: i am just committing some changes to nc6. please take a look at
> > the
> >      runtime configuration code. also, it seems that there are some
> >      problems with the configure script. i will try to fixe them ASAP.
>
>
> Ok - I've just finished putting in getopt_long support.  It works quite
> well - although I haven't used the autoconf replace function - I think
> the getopt source takes care of this itself(?)
>
> I've chosen to create a subdirectory "contrib" that contains the getopt
> code.  This is compile to a library libnc6contrib.a that is used when
> linking nc6.  That way all the getopt code is kept separate from our
> code, and only the object code that is needed will be linked in.

i would first try to use the default getopt_long and alloca installed on
the system, and then, if they aren't supported by the system, fall back to
the implementation provided with nc6.

i have seen that you did this with alloca, but your code seems to make
always use of the getopt_long function supplied with nc6. is there a
particular reason (maybe a bad portability for getopt_long on non-linux
systems?) for this?

> I've also added a portability source for "alloca".  I've also just
> tested all this and I can now confirm that HP-UX can be added to the
> list of supported hosts ;)

very good! :-)

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi			mauro@deepspace6.net
				mauro@ferrara.linux.it
Deep Space 6 - IPv6 on Linux	http://www.deepspace6.net
Ferrara Linux Users Group	http://www.ferrara.linux.it


More information about the ds6-devel mailing list