+# Convert config.guess results to a simpler form.
+ifeq ($(canonhost),sparc-sun-solaris2.1)
+canonhost := sparc-sun-solaris2
+endif
+ifeq ($(canonhost),sparc-sun-solaris2.3)
+canonhost := sparc-sun-solaris2
+endif
+ifeq ($(canonhost),mips-dec-ultrix4.2)
+canonhost := mips-dec-ultrix
+endif
+ifeq ($(canonhost),mips-dec-ultrix4.4)
+canonhost := mips-dec-ultrix
+endif
+ifeq ($(canonhost),mips-sgi-irix4.0.1)
+canonhost := mips-sgi-irix4
+endif
+ifeq ($(canonhost),mips-sgi-irix4.0.5H)
+canonhost := mips-sgi-irix4
+endif
+ifeq ($(canonhost),mips-sgi-irix5.2)
+canonhost := mips-sgi-irix5
+endif
+ifeq ($(canonhost),rs6000-ibm-aix3.2)
+canonhost := rs6000-ibm-aix
+endif
+ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
+canonhost := i386-sco3.2v4
+endif
+ifeq ($(canonhost),i386-unknown-sco3.2v4.0)
+canonhost := i386-sco3.2v4
+endif
+ifeq ($(canonhost),i386-unknown-sco3.2v4)
+canonhost := i386-sco3.2v4
+endif
+ifeq ($(canonhost),i386-unknown-go32)
+canonhost := i386-go32
+endif
+ifeq ($(canonhost),i386-unknown-sysv4.2)
+canonhost := i386-sysv4.2
+endif
+ifeq ($(canonhost),i386-lynx-lynxos)
+canonhost := i386-lynx
+endif
+ifeq ($(canonhost),m68k-lynx-lynxos)
+canonhost := m68k-lynx
+endif
+ifeq ($(canonhost),sparc-lynx-lynxos)
+canonhost := sparc-lynx
+endif
+ifeq ($(canonhost),rs6000-lynx-lynxos)
+canonhost := rs6000-lynx
+endif
+ifeq ($(canonhost),i386-unknown-linux)
+canonhost := i386-linux
+endif
+ifeq ($(canonhost),i486-unknown-linux)
+canonhost := i486-linux
+endif
+ifeq ($(canonhost),i586-unknown-linux)
+canonhost := i486-linux
+endif
+ifeq ($(canonhost),i386-unknown-linuxaout)
+canonhost := i386-linuxaout
+endif
+ifeq ($(canonhost),i486-unknown-linuxaout)
+canonhost := i486-linuxaout
+endif
+ifeq ($(canonhost),i586-unknown-linuxaout)
+canonhost := i486-linuxaout
+endif