Thanks for the help (and apologies for the belligerent tone of my message: one should never be obnoxious when addressing those who provide good free software!).
On 10 Jul, 2007, at 1:32 AM, ciao(a)clip.dia.fi.upm.es wrote:
We still support and will continue to support for the foreseeable future all Macs.
[...] I'd appreciate a pointer on how to build ciao on this system.
We enclose a message posted in the mailing list with patches to make 1.10 compile on Intel Macs. We have been working on a new distro which already includes the patches, but for now this is the easiest approach.
The changes in the note below worked and ciao built fine (on my Core 2 Duo MacBook Pro, OS X 10.4.10), though I have a couple of notes to add for the next person who wants to do the same.
From: Edward Janne <tigakub(a)mac.com> Sender: owner-ciao-users(a)clip.dia.fi.upm.es To: ciao-users(a)clip.dia.fi.upm.es Subject: ciao on Mactel Date: Mon, 28 Aug 2006 15:52:56 +0200
Hi I've successfully compiled ciao on a MacBook Pro by making minor changes to the install scripts.
In the file $(CIAO_SRC_DIR)/etc/ciao_get_arch
under the line reading Darwin,"Power Macintosh" ) CIAOARCH=DARWINppc ;; #JFMC
add the line Darwin,"i386" ) CIAOARCH=DARWINi386
Actually, in the ciao-1.10p8 distribution this line already exists, but it says "i86" instead of "i386". Just add the "3".
Then in the directory $(CIAO_SRC_DIR)/makefile-sysdep
Copy mkf-DARWINppc
To mkf-DARWINi386
Then edit mkf-DARWINi386
Change the line reading ARCHNAME=ppc
To ARCHNAME=i386
Then make install
That's it.
Almost. After adding a symlink from the distro directory to /usr/ local/src/ciao/, I also added the following to my .profile (I use bash) to pick up the initialization:
if [ -r /usr/local/src/ciao/etc/DOTprofile ]; then . /usr/local/src/ciao/etc/DOTprofile fi
I use Aquamacs Emacs (a GUI version popular on Macs), and when started as an application, this doesn't inherit shell variables set in login files, so in order to get the emacs environment to work I added the following to my .emacs:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Ciao prolog initialization ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(load "/usr/local/src/ciao/emacs-mode/DOTemacs") (setenv "INFOPATH" (concat (getenv "INFOPATH") ":/var/www/html/ciao/"))
And it works. Thanks again,