solaris 2.5.1 still no good

David Rankin drankin at bohemians.lexington.ky.us
Fri Jan 14 00:53:30 EST 2000


On Thu, Jan 13, 2000 at 01:40:21PM +0000, Andre Lucas wrote:
> On Wed, Jan 12, 2000 at 11:18:14PM -0500, Ben Taylor wrote:
> 8< snip 
> > I will check my 2.5.1 system tommorow and see what I can do 
> > about patching.  (Anyone got a snippet of Autoconf to 
> > test various versions of a particular Operating system)

> I know Damien's handling this now, but just for interest's sake: In
> configure.in there's code like this:
> 
> *-*-solaris*)
> 	AC_DEFINE(USE_WTMPX)
> 	;;
> 
> you'd just need to add something like this:
> 
> *-*-solaris*)
> 	AC_DEFINE(USE_WTMPX)
> 	sol_ver=`uname -r`
> 	if test $sol_ver == 5.5 -o test $sol_ver == 5.5.1; then
> 	   AC_DEFINE(SOL_25_SNPRINTF_FIX)
> 	fi
> 	;;

Please, please NO, don't do this. Instead, try to find snprintf, and
iff that fails, search for __snprintf. This makes the search more OS
independant, since you're searching for features, not OS characteristics.
(I know, it's a pain. Welcome to autoconf.)

I'm just too used to the Dynix/HP-UX9/SunOS4/etc. days where you had a
soup of "ifdef OS" code that autoconf was designed to fix.

Excuse me, I have to go get depressed about how old that last sentence
makes me sound....

David

-- 
David W. Rankin, Jr.     Husband, Father, and UNIX Sysadmin. 
   Email: drankin at bohemians.lexington.ky.us   Address/Phone Number: Ask me.
"It is no great thing to be humble when you are brought low; but to be humble
when you are praised is a great and rare accomplishment." St. Bernard





More information about the openssh-unix-dev mailing list