| Revision 782 (by benny, 2004/02/20 13:24:55) |
Version 4.1.4 with some bugfixes and --with-broken-putenv=[auto/no/yes] option added to configure to make libxfce4util cross-compilable again.
|
$Id: README 782 2004-02-20 13:24:55Z benny $
Basic utility library for Xfce4.
Installation:
-------------
Simply run
./configure
make
make install
For a list of available configure options, see the list as returned
by
./configure --help
Notes to cross-compilers:
-------------------------
The check for "broken putenv" will fail for cross-compiling. Therefore
you'll need to supply the --with-broken-putenv option to configure
with a parameter of either yes or no (see the ./configure --help
output). To determine if your plattform's putenv() is ok or
broken, you can use the following test program:
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
char *buffer = (char *)malloc(8);
strcpy(buffer, "foo=bar");
putenv(buffer);
strcpy(buffer, "foo=rab");
return(strcmp(getenv("foo"), "bar") == 0 ? 0 : 1);
}
Just compile the program and run it. If it returns 0, then your
plattform's putenv() is ok, and you should add --with-broken-putenv=no
to ./configure, else you need --with-broken-putenv=yes.
All glibc based plattforms (nearly all GNU/Linux systems, and GNU/Hurd,
etc.) and Solaris plattforms are known to have the putenv() problem.