Re: BZDEV: debian/redhat blitz packaging+automake

From: Christophe Prud'homme (prudhomm@mit.edu)
Date: Wed Aug 02 2000 - 08:52:50 EST


>>>>> "Eugene" == Eugene Tyurin <eugene_tyurin@yahoo.com> writes:

    Eugene> I'm kind of ambiguous about the idea of installing pre-compiled *scientific* libraries,
    Eugene> especially complicated ones.

    Eugene> You may not think twice about installing gnome or qt rpms, but (no offense whatsoever!)
    Eugene> Blitz is more complicated than that.
Not really the internal part are sure more complex but the installation steps are far from
being as complex as gnome for example

    Eugene> To give you an example, I was struggling with compiling another well-known library - OSE
    Eugene> - with gcc under Solaris. 2.95.2 wouldn't compile it, so I had to revert to egcs 1.1.2.
    Eugene> Then I wanted to use Blitz with OSE... and found out I had to use repo configuration!

    Eugene> Granted, gcc supports x86 much better than UltraSparc, but can you vouch for all gcc
    Eugene> versions out there to work with your rpm? I guess, my opinion is that if compiling a
    Eugene> library is too much trouble for you, you shouldn't use it for your research.
Hu actually there is nothing to compile except the globals.cpp file
the packages deal with having blitz installed correctly in path that makes sense
I use blitz in several project and I just wanted to have a clean install

the header files go into /usr/include/blitz and /usr/include/random
and there is libblitz.{so,a} in /usr/lib

the only issue I see is what if you want to change config.h (enabling different things in blitz)!
what you can do is copy the file and #define and #undef the preprocessing variables you want by hand
 and make sure that your config.h will be seen before the one in /usr/include/blitz.

I added a file blitz.cpp with a dummy C function (wrapped around and extern "C") to liblitz so that people
checking for blitz existence using autoconf just have to add this to their configure.in
AC_CHECK_LIB(blitz,ACCheckBlitz,,[
echo "blitz is not installed"
exit 0
],)

regards
C.

-- 
 Christophe Prud'homme                |
 MIT, 77, Mass Ave, Rm 3-243          |  C'est de la buche?
 Cambridge MA 02139                   |  Non c'est kloug!
 Tel (Office) : (00 1) (617) 253 0229 |  C'est colmatté avec du schpountz...
 Fax (Office) : (00 1) (617) 258 8559 |  -- Le Pere Noel est une ordure
 http://augustine.mit.edu/~prudhomm   |
                          Following the hacker spirit

--------------------- blitz-dev list -------------------------------- * To subscribe/unsubscribe: use the handy web form at http://oonumerics.org/blitz/lists.html



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:12 EST