PKG_CONFIG_PATH

Havoc Pennington hp at redhat.com
Sat Oct 11 20:25:53 EEST 2003


Hi,

Standard practice is to create a separate-prefix environment using a
script like the appended one. You can also use a tool such as "jhbuild",
which offers "jhbuild run" to do the equivalent of this script.

Usage if you name the script "unst" is something like "unst
myapplication" or "unst ./configure --prefix=/unst"

(unst is an abbreviation for "unstable" which is what I am usually
putting in another prefix)

Havoc

#! /bin/bash

### mop up any other settings 
unset C_INCLUDE_PATH
unset LD_LIBRARY_PATH
unset ACLOCAL_FLAGS
if [ `id -u` = 0 ] && ! echo $PATH | /bin/grep -q "/sbin" ; then
    PATH=/sbin:$PATH
fi

if [ `id -u` = 0 ] && ! echo $PATH | /bin/grep -q "/usr/sbin" ; then
    PATH=/usr/sbin:$PATH
fi

if [ `id -u` = 0 ] && ! echo $PATH | /bin/grep -q "/usr/local/sbin" ;
then
    PATH=/usr/local/sbin:$PATH
fi

if ! echo $PATH | /bin/grep -q "/usr/X11R6/bin" ; then
    PATH="$PATH:/usr/X11R6/bin"
fi
unset PKG_CONFIG_PATH
unset GNOME_LIBCONFIG_PATH

## put new settings in prefix UNST_HOME (unst = unstable)
export UNST_HOME=/unst
export LD_LIBRARY_PATH=$UNST_HOME/lib:$LD_LIBRARY_PATH
export ACLOCAL_FLAGS="-I $UNST_HOME/share/aclocal"
export PATH=$UNST_HOME/bin:$PATH
export
PKG_CONFIG_PATH=$UNST_HOME/lib/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH
$*





More information about the xdg mailing list