]> err.no Git - mapper/commitdiff
Fixes to 770 and libgpsd optins
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 6 Aug 2007 15:36:25 +0000 (18:36 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 6 Aug 2007 15:36:25 +0000 (18:36 +0300)
configure.ac

index 8d37d7b4bb26b3c84a6590cf58b86f4887f4be77..75da13681807330161e566c716d210d9b2b2b426 100644 (file)
@@ -45,7 +45,7 @@ PKG_CHECK_MODULES(GLIBGTK, glib-2.0 gconf-2.0 dbus-glib-1 gtk+-2.0)
 AC_SUBST(GLIBGTK_LIBS)
 AC_SUBST(GLIBGTK_CFLAGS)
 
-AC_ARG_ENABLE([nokia-770],AS_HELP_STRING([--enable-770],[Build for Nokia 770/N800]),
+AC_ARG_ENABLE([770],AS_HELP_STRING([--enable-770],[Build for Nokia 770/N800]),
               [enable_770=$enableval], [enable_770=no])
 
 AC_ARG_ENABLE([hildon],AS_HELP_STRING([--enable-hildon],[Build for Hildon]),
@@ -56,7 +56,7 @@ if test "x$enable_770" = "xno" ; then
 else
   WITH_DEVICE_770=yes
   enable_hildon=yes
-  AC_DEFINE([WITH_DEVICE_770], [1], [With 770/N800 specific code])
+  AC_DEFINE([WITH_DEVICE_770], 1, [With 770/N800 specific code])
 fi
 
 if test "x$enable_hildon" = "xyes" ; then
@@ -118,7 +118,7 @@ AC_SUBST(BLUEZ_CFLAGS)
 
 AC_CHECK_HEADERS([gps.h], [ac_cv_gps_h=yes])
 AC_CHECK_LIB(gps, gps_open,[ac_cv_libgps=yes] )
-if test "x$ac_cv_libgps" != xyes; then
+if test "x$ac_cv_libgps" = xyes; then
        AC_DEFINE(WITH_LIBGPS, 1, [build with gpsd])
 fi
 
@@ -255,3 +255,6 @@ AC_OUTPUT(
           po/Makefile
 )
 
+echo "Hildon:  ${enable_hildon}"
+echo "770/N800:        ${enable_770}"
+