IRIX compilation and openbsd-compat/basename.h

Albert Chin openssh-unix-dev at thewrittenword.com
Thu Apr 10 04:55:05 EST 2003


On Wed, Apr 09, 2003 at 01:41:18PM -0500, Ben Lindstrom wrote:
> [..]
> > > This is not right... Nor has any other solution I've seen is right.
> > >
> > > basename needs to be checked in multiple places.  We need to check libc
> > > and gen at this point.
> > >
> > > Otherwise it will break for other platforms.
> >
> > AC_SEARCH_LIBS checks first with no libraries, then iterates over the
> > list of libraries contained in the 2nd argument.
> >
> > The above patch compiles fine on Solaris 2.5.1-9/SPARC, IRIX 6.5,
> > HP-UX 10.20-11i, Tru64 UNIX 4.0D, 5.1, AIX 4.3.2, AIX 5.1, and Redhat
> > Linux 7.1.
> >
> 
> However, if it exists in -lgen and we don't ensure that libgen is included
> (we are luckly right now because other stuff drags libgen in) or it is
> a hardcoded requirement.
> 
> I'm saying the solution above is wrong because it is incomplete.  It does
> not ensure we have libgen in the LIB=.

AC_SEARCH_LIBS will add "-l[lib]" to LIBS.

-- 
albert chin (china at thewrittenword.com)




More information about the openssh-unix-dev mailing list