[openib-general] RE: [PATCH] osm: add a main auto tools project for osm

Pete Wyckoff pw at osc.edu
Thu Aug 11 07:19:58 PDT 2005


halr at voltaire.com wrote on Tue, 09 Aug 2005 15:00 -0400:
> I thought the proposal was to ditch the prefix totally and just use
> /usr/local/bin for binaries, usr/local/lib for libraries, and
> /usr/local/include/infiniband for the includes (I am assuming that the
> subdirectories will be maintained under that for opensm, vendor, iba,
> and complib).

Sorry I'm stepping into this a bit late.  I just slogged my way
through an openib build and install using the helpful Cheat Sheet
in the wiki.

I don't want everything in /usr/local/{bin,lib,include}.  I'd prefer
to have it segregated into /usr/local/openib/{bin,lib,include}.
That makes it a bit easier to manage multiple versions if perhaps
I'd like to leave a basic /usr/local/openib-working directory that
users see plus also have an /usr/local/openib-testing for
experimentation.  We use a package called "modules" to help manage
user paths for various software components.

As long as you respect the $prefix setting in Makefiles, this is
mostly doable.  One improvement: instead of generating libdir
yourself in Makefile.am,

    libdir = ${exec_prefix}/ib/lib

you can directly use ${libdir} as set by configure, thus permitting
the installer to decide the paths for himself.

		-- Pete


P.S.  Every little one-file source project does not need its own
configure, automake and full directory tree in my opinion, but
that's perhaps an argument for a different thread.




More information about the general mailing list