From 9a311b1b003d5767445b03105786d0e86aff6b8d Mon Sep 17 00:00:00 2001
From: Liam Healy <liam@thinkpad.local>
Date: Sat, 22 Aug 2009 16:26:15 -0400
Subject: [PATCH] Add include path for OSX

Darwin ports installs .h files under /opt/local/include/, so put -I
option onto cffi-grovel::*cc-flags*.
---
 init/init.lisp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/init/init.lisp b/init/init.lisp
index 24d730ec..228d5dc5 100644
--- a/init/init.lisp
+++ b/init/init.lisp
@@ -1,12 +1,18 @@
 ;; Load GSL
 ;; Liam Healy Sat Mar  4 2006 - 18:53
-;; Time-stamp: <2009-05-25 16:32:45EDT init.lisp>
+;; Time-stamp: <2009-08-22 16:19:52EDT init.lisp>
 ;; $Id$
 
 (defpackage gsll
   (:nicknames :gsl)
   (:use :common-lisp :cffi))
 
+;;; When installed through Mac Ports, GSL .h files will be found
+;;; in /opt/local/include.
+#+darwin
+(setf cffi-grovel::*cc-flags*
+      (append '("-I" "/opt/local/include/") cffi-grovel::*cc-flags*))
+
 (cffi:define-foreign-library libgslcblas
     (:darwin
      (:or "/opt/local/lib/libgslcblas.dylib" "/sw/lib/libgslcblas.dylib"
-- 
GitLab