blob: db53ac9f98d7e055ba8be7350c925e27d57838f5 [file] [log] [blame]
Guido van Rossumd8eb2111998-08-04 17:57:28 +00001GNU readline 2.2 for BeOS
2
3You can get the original GNU readline 2.2 source code from your favourite
4GNU software repository, such as ftp://prep.ai.mit.edu/pub/gnu/.
5
6You can get the only-slightly-modified-for-BeOS version of GNU readline 2.2
7from the GeekGadgets repository; ftp://ftp.ninemoons.com/pub/geekgadgets/.
8
9BUILDING libreadline for BeOS hosts
10~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11
12Note that we don't build a shared library version of libreadline and
13libhistory. That's left as an exercise for the reader.
14
15You won't be able to link against libreadline.a using the limited linker.
16
171) 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...
24
252) For PowerPC, configure with:
26
27 CC=mwcc CFLAGS="-O7 -i- -I." AR=ar-posix RANLIB=: ./configure --verbose \
28 --without-gcc --prefix=/boot/home/config powerpc-*-beos
29
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
34
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.
39
403) Edit config.h to comment out "#define HAVE_SELECT 1"; select() on
41 BeOS doesn't work on file descriptors (such as stdin).
42
434) For PowerPC, make with:
44
45 make AR=ar-posix
46
47 For x86, make with:
48
49 make
50
515) Install with:
52
53 make install
54
55- Chris Herborth (chrish@qnx.com)
56 April 21, 1998