Added all documentation.
[python/dscho.git] / BeOS / README.readline-2.2
blobdb53ac9f98d7e055ba8be7350c925e27d57838f5
1 GNU readline 2.2 for BeOS
3 You can get the original GNU readline 2.2 source code from your favourite
4 GNU software repository, such as ftp://prep.ai.mit.edu/pub/gnu/.
6 You can get the only-slightly-modified-for-BeOS version of GNU readline 2.2
7 from the GeekGadgets repository; ftp://ftp.ninemoons.com/pub/geekgadgets/.
9 BUILDING libreadline for BeOS hosts
10 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 Note that we don't build a shared library version of libreadline and
13 libhistory.  That's left as an exercise for the reader.
15 You won't be able to link against libreadline.a using the limited linker.
17 1) If you're on a PowerPC system, install the POSIX ar from 
18    http://www.qnx.com/~chrish/Be/software/index.html#programming
19    (note that it's currently packaged with Python, in the BeOS/ar-1.1
20    directory).
21    
22    If you're on an x86 system, you can leave out the "AR=ar-posix" part
23    of the following instructions.  In fact, you'll have to...
25 2) For PowerPC, configure with:
27    CC=mwcc CFLAGS="-O7 -i- -I." AR=ar-posix RANLIB=: ./configure --verbose \
28    --without-gcc --prefix=/boot/home/config powerpc-*-beos
30    For x86, configure with:
31    
32    CC=mwcc CFLAGS="-O2 -i- -I." RANLIB=: ./configure --verbose \
33    --without-gcc --prefix=/boot/home/config x86-*-beos
35    Don't worry about the warnings/errors configure spews for
36    powerpc-*-beos or x86-*-beos; readline doesn't actually use this host 
37    information    for anything, although configure will die if you don't 
38    specify it.
40 3) Edit config.h to comment out "#define HAVE_SELECT 1"; select() on
41    BeOS doesn't work on file descriptors (such as stdin).
43 4) For PowerPC, make with:
45    make AR=ar-posix 
47    For x86, make with:
48    
49    make
51 5) Install with:
53    make install
55 - Chris Herborth (chrish@qnx.com)
56   April 21, 1998