hard-coded paths in .configure
Posted: Wed Jun 25, 2014 10:17 am
Hi,
I am trying to create an RPM package of neuron for openSUSE. I have run into several issues with configure, however.
The first has to do with paths. These are hard-coded in many places, which means libraries installed in standard directories will not be found. Here is one example, startling at line 6787:
This will work on a 32bit system. However, on 64bit systems, it should be something more like this:
This could be simplified further by just using the --includedir and --libdir arguments to .configure (which defaults to the values you currently use anyway, and is handled automatically by RPM):
This seems to happen in quite a few places. So far I have also found it with metis and interviews handling, but that is as far as I have gotten with the configuration.
I am trying to create an RPM package of neuron for openSUSE. I have run into several issues with configure, however.
The first has to do with paths. These are hard-coded in many places, which means libraries installed in standard directories will not be found. Here is one example, startling at line 6787:
Code: Select all
MUSIC_LIBLA="$with_music/lib/libmusic.la"
MUSIC_INCDIR="$with_music/include"
MUSIC_LIBDIR="$with_music/lib"
Code: Select all
MUSIC_LIBLA="$with_music/lib64/libmusic.la"
MUSIC_INCDIR="$with_music/include"
MUSIC_LIBDIR="$with_music/lib64"
Code: Select all
MUSIC_LIBLA="$libdir/libmusic.la"
MUSIC_INCDIR="$includedir"
MUSIC_LIBDIR="$libdir"