--- ./libltdl/config/config.guess.00	2009-11-16 14:17:20.000000000 +0100
+++ ./libltdl/config/config.guess	2010-02-14 18:23:47.000000000 +0100
@@ -139,6 +139,35 @@
 UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
 
+if test x"${CC}" != x
+then
+	echo "`$CC -dumpmachine`"
+	exit ;
+else
+	OLD_IFS=$IFS
+	for CC in gcc cc c89 c99 ; do
+		IFS=:
+		for path in $PATH ; do
+			if test -x "$path/$CC"
+			then
+				set CC=$path/$CC
+				break
+			fi
+		done
+		if test x"${CC}" != x
+		then
+			break
+		fi
+		IFS=$OLD_IFS
+	done
+	IFS=$OLD_IFS
+	if test x"${CC}" != x
+	then
+		echo "`$CC -dumpmachine`"
+		exit ;
+	fi
+fi
+
 # Note: order is significant - the case branches are not exclusive.
 
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
--- ./libltdl/config/config.sub.00	2009-11-16 14:17:20.000000000 +0100
+++ ./libltdl/config/config.sub	2010-02-14 18:24:28.000000000 +0100
@@ -127,7 +127,7 @@
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     ;;
-  *)
+  kiss-linux|*)
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
     if [ $basic_machine != $1 ]
     then os=`echo $1 | sed 's/.*-/-/'`
