You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1996/10/21 16:39:09 UTC

Re: ranlib

'ranlib' is a BSDism.  Can't we just look for 'ranlib' in the PATH?
That way we won't need to further split the OS defines by version,
etc.

> Hmmm. I have ranlib on IRIX. Now I'll have to change it back?
> 
> If you use gcc, you'll have it. If you only have the SGI compiler, you
> won't. This should probably be the way the RANLIB variable gets set.
> 
> if CC=cc, then RANLIB=true
> 
> if CC=gcc, then RANLIB=ranlib
> 
> Paul Sutton liltingly intones:
> > 
> > Now that the platform and CC are selected automatically (unless
> > overriden), most users will be able to simply type make and get a working
> > Apache. However, on IRIX (and possibly others) which do not have a ranlib
> > command, this will cause an error and they will have to edit Configuration
> > to fixup RANLIB=true. I think it would be nice to automate this as well.
> > This patch allows RANLIB to be set on a per-platform basis (I've set it
> > for IRIX). It can be overridden in the Configuration file. If not set in
> > either place, defaults to 'ranlib'.
> > 
> > Paul
> > --
> > 
> > Index: Configuration.tmpl
> > ===================================================================
> > RCS file: /export/home/cvs/apache/src/Configuration.tmpl,v
> > retrieving revision 1.44
> > diff -c -r1.44 Configuration.tmpl
> > *** Configuration.tmpl	1996/10/09 17:36:18	1.44
> > --- Configuration.tmpl	1996/10/21 09:01:36
> > ***************
> > *** 33,41 ****
> >   # will be added to whatever flags Configure determines as appropriate
> >   # and needed for your platform.
> >   #
> > ! # You can also set the compiler and Optimization used here as well.
> > ! # Settings here have priority; If not set, Configure will attempt to guess
> > ! # the C compiler, and set OPTIM to '-O2'
> >   #
> >   EXTRA_CFLAGS=
> >   EXTRA_LFLAGS=
> > --- 33,42 ----
> >   # will be added to whatever flags Configure determines as appropriate
> >   # and needed for your platform.
> >   #
> > ! # You can also set the compiler, Optimization and ranlib program used
> > ! # here as well. Settings here have priority; If not set, Configure
> > ! # will attempt to guess the C compiler and ranlib program, and set
> > ! # OPTIM to '-O2'
> >   #
> >   EXTRA_CFLAGS=
> >   EXTRA_LFLAGS=
> > ***************
> > *** 46,53 ****
> >   OPTIM=-O2
> > 
> >   #
> > ! # Set to 'true' for systems that lack or don't need ranlib.
> > ! RANLIB=ranlib
> > 
> >   ################################################################
> >   # Rules configuration
> > --- 47,55 ----
> >   OPTIM=-O2
> > 
> >   #
> > ! # If Configure gets the ranlib program wrong, set it here. Use
> > ! # true if the platform does not need ranlib
> > ! #RANLIB=true
> > 
> >   ################################################################
> >   # Rules configuration
> > Index: Configure
> > ===================================================================
> > RCS file: /export/home/cvs/apache/src/Configure,v
> > retrieving revision 1.27
> > diff -c -r1.27 Configure
> > *** Configure	1996/10/10 02:24:37	1.27
> > --- Configure	1996/10/21 09:01:37
> > ***************
> > *** 174,179 ****
> > --- 174,180 ----
> >   	DEF_WANTHSREGEX=yes
> >   	DEF_BADMMAP=no
> >           DBM_LIB=""
> > + 	RANLIB=true
> >   	if [ "$RULE_IRIXNIS" = "yes" ]; then
> >   	    OS='SGI IRIX w/NIS'
> >   	    CFLAGS="$CFLAGS -DIRIX"
> > ***************
> > *** 333,338 ****
> > --- 334,349 ----
> >   fi
> > 
> >   #
> > + # ... and for ranlib program
> > + #
> > + if grep "RANLIB=" Makefile > /dev/null; then
> > +     RANLIB=""	# clear it just in case
> > + else
> > +     if [ "x$RANLIB" = "x" ]; then RANLIB=ranlib; fi
> > +     echo "Setting ranlib to $RANLIB"
> > + fi
> > +
> > + #
> >   # Are they using the status monitor module? If so, check
> >   # for STATUS rule...
> >   #
> > ***************
> > *** 393,398 ****
> > --- 404,412 ----
> >   fi
> >   if [ "x$OPTIM" != "x" ]; then
> >       echo "OPTIM=$OPTIM" >> Makefile
> > + fi
> > + if [ "x$RANLIB" != "x" ]; then
> > +     echo "RANLIB=$RANLIB" >> Makefile
> >   fi
> >   echo "CFLAGS1=$CFLAGS">> Makefile
> >   echo "INCLUDES1=$INCLUDES">> Makefile
> > 
> > 
> > 
> 
> chuck
> Chuck Murcko	N2K Inc.	Wayne PA	chuck@telebase.com
> And now, on a lighter note:
> Best of all is never to have been born.  Second best is to die soon.