[PATCH] Extra Includes and Libs locations for MacPorts on Mac OSX

Alejandro Guerrieri <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
This simple patch adds /opt/local/lib and /opt/local/include as  
possible places for libraries and includes respectively on Mac OSX.  
This simplifies compiling Kannel with packages from MacPorts.

------------------------------------- BEGIN  
--------------------------------
Index: configure.in
===================================================================
RCS file: /home/cvs/gateway/configure.in,v
retrieving revision 1.180
diff -u -r1.180 configure.in
--- configure.in        6 Aug 2008 14:22:43 -0000       1.180
+++ configure.in        18 Nov 2008 02:57:03 -0000
@@ -153,6 +153,8 @@
        CFLAGS="$CFLAGS -DDARWIN=1"
      fi
      LIBTOOL="libtool -static -o"
+    LIBS="$LIBS -L/opt/local/lib"
+    CFLAGS="$CFLAGS -I/opt/local/include"
      ;;
    *-linux-*)
      CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
------------------------------------- END  
--------------------------------

After patching, autoconf needs to be run to recreate the ./configure  
script

Regards,

Alejandro Guerrieri
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.