Applied patch from dctucker for use with Darwin
authorkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 12 Jul 2009 09:17:37 +0000 (09:17 +0000)
committerkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 12 Jul 2009 09:17:37 +0000 (09:17 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@2392 ffa7fe5e-494d-0410-b361-a75ebd5db220

autogen.sh
configure.in

index ba84850..bd55650 100755 (executable)
@@ -1,5 +1,11 @@
 #!/bin/sh
-for pkg in pkg-config libtool automake aclocal autoreconf:autoconf autopoint:gettext
+if [ `uname` == Darwin ]; then
+       LIBTOOL=glibtool
+else
+       LIBTOOL=libtool
+fi
+
+for pkg in pkg-config $LIBTOOL automake aclocal autoreconf:autoconf autopoint:gettext
 do
        if ! ${pkg%%:*} --version >/dev/null 
        then
index 5ab88a9..31579af 100644 (file)
@@ -62,6 +62,9 @@ m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
 AC_USE_SYSTEM_EXTENSIONS
 
 AC_PROG_CC
+if eval "test x`uname` = xDarwin"; then
+       CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
+fi
 if eval "test x$GCC = xyes"; then
         CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
 fi