3ebb55f17459ecff753cb953b911f74a237d01ff
[navit-package] / debian / patches / autotools.patch
1 Index: navit/autogen.sh
2 ===================================================================
3 --- navit.orig/autogen.sh       2010-01-17 03:05:32.132879754 +0100
4 +++ navit/autogen.sh    2010-01-17 03:36:38.909365617 +0100
5 @@ -5,7 +5,10 @@
6         LIBTOOL=libtool
7  fi
8  
9 -for pkg in pkg-config $LIBTOOL automake aclocal autoreconf:autoconf autopoint:gettext
10 +export AUTOMAKE=automake-1.9
11 +export ACLOCAL=aclocal-1.9
12 +
13 +for pkg in pkg-config $LIBTOOL automake-1.9 aclocal-1.9 autoreconf:autoconf autopoint:gettext
14  do
15         if ! ${pkg%%:*} --version >/dev/null 
16         then
17 Index: navit/configure.in
18 ===================================================================
19 --- navit.orig/configure.in     2010-01-17 03:33:26.152712378 +0100
20 +++ navit/configure.in  2010-01-17 03:36:38.909365617 +0100
21 @@ -142,9 +142,16 @@
22  
23  AC_USE_SYSTEM_EXTENSIONS
24  
25 -AC_PROG_OBJC
26  AC_PROG_CC
27 -AC_PROG_OBJC
28 +
29 +m4_ifdef([AC_PROG_OBJC],
30 +   [AC_PROG_OBJC
31 +    _AM_DEPENDENCIES(OBJC)],
32 +   [AC_CHECK_TOOL([OBJC], [gcc])
33 +    AC_SUBST([OBJC])
34 +    AC_SUBST([OBJCFLAGS])
35 +   ])
36 +
37  if eval "test x`uname` = xDarwin"; then
38         CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
39  fi