Index: /bootstrap
===================================================================
--- /bootstrap	(revision 4076)
+++ /bootstrap	(revision 4104)
@@ -3,4 +3,5 @@
 aclocal \
 && libtoolize --force \
+&& autoheader \
 && automake -a --foreign --add-missing \
 && autoreconf
Index: /configure.ac
===================================================================
--- /configure.ac	(revision 4076)
+++ /configure.ac	(revision 4104)
@@ -3,4 +3,5 @@
 AC_CONFIG_SRCDIR([source/ariba/ariba.h])
 AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_HEADER([source/ariba/config.h])
 
 AC_ARG_ENABLE(debug, [  --enable-debug	Enable debug options], enable_debug=$enableval, enable_debug=no)
@@ -25,4 +26,7 @@
 
 AC_LANG(C++)
+
+dnl Check for maemo platform
+AX_MAEMO
 
 dnl Check for doxygen and features
Index: /m4/ax_maemo.m4
===================================================================
--- /m4/ax_maemo.m4	(revision 4104)
+++ /m4/ax_maemo.m4	(revision 4104)
@@ -0,0 +1,32 @@
+# SYNOPSIS
+#
+#   AX_MAEMO()
+#
+# DESCRIPTION
+#
+#   Check for Maemo and set specific flags
+#
+# LAST MODIFICATION
+#
+#   2009-06-15
+
+AC_DEFUN([AX_MAEMO],
+[
+	AC_MSG_CHECKING([maemo platform])
+	
+	if test "$host" = "arm-unknown-linux-gnu" ; then
+		AC_MSG_RESULT(yes)
+		LDFLAGS="$LDFLAGS -Wl,-zmuldefs",
+	else
+		AC_MSG_RESULT(no)
+	fi
+	
+#	ifelse([
+#		$host, 
+#		'arm-unknown-linux-gnu',
+#		AC_MSG_RESULT(yes)
+# 		LDFLAGS="$LDFLAGS -Wl,-zmuldefs",
+#		AC_MSG_RESULT(no)
+#	])
+
+])
Index: /source/ariba/Makefile.am
===================================================================
--- /source/ariba/Makefile.am	(revision 4076)
+++ /source/ariba/Makefile.am	(revision 4104)
@@ -19,5 +19,4 @@
 
 libariba_la_LDFLAGS = -version-info 0:0:0
-libariba_la_LDFLAGS += -Wl,-zmuldefs
 
 # compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
