65f333
diff -u -Naur potrace-1.11/config.guess potrace-1.11-patched/config.guess
65f333
--- potrace-1.11/config.guess	2010-11-04 23:08:34.000000000 -0300
65f333
+++ potrace-1.11-patched/config.guess	2013-05-14 17:54:51.359873528 -0300
65f333
@@ -1,10 +1,10 @@
65f333
 #! /bin/sh
65f333
 # Attempt to guess a canonical system name.
65f333
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
65f333
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
65f333
-#   Free Software Foundation, Inc.
65f333
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
65f333
+#   2011, 2012 Free Software Foundation, Inc.
65f333
 
65f333
-timestamp='2009-06-10'
65f333
+timestamp='2012-02-10'
65f333
 
65f333
 # This file is free software; you can redistribute it and/or modify it
65f333
 # under the terms of the GNU General Public License as published by
65f333
@@ -17,9 +17,7 @@
65f333
 # General Public License for more details.
65f333
 #
65f333
 # You should have received a copy of the GNU General Public License
65f333
-# along with this program; if not, write to the Free Software
65f333
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
65f333
-# 02110-1301, USA.
65f333
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
65f333
 #
65f333
 # As a special exception to the GNU General Public License, if you
65f333
 # distribute this file as part of a program that contains a
65f333
@@ -27,16 +25,16 @@
65f333
 # the same distribution terms that you use for the rest of that program.
65f333
 
65f333
 
65f333
-# Originally written by Per Bothner <per@bothner.com>.
65f333
-# Please send patches to <config-patches@gnu.org>.  Submit a context
65f333
-# diff and a properly formatted ChangeLog entry.
65f333
+# Originally written by Per Bothner.  Please send patches (context
65f333
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
65f333
+# entry.
65f333
 #
65f333
 # This script attempts to guess a canonical system name similar to
65f333
 # config.sub.  If it succeeds, it prints the system name on stdout, and
65f333
 # exits with 0.  Otherwise, it exits with 1.
65f333
 #
65f333
-# The plan is that this can be called by configure scripts if you
65f333
-# don't specify an explicit build system type.
65f333
+# You can get the latest version of this script from:
65f333
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
65f333
 
65f333
 me=`echo "$0" | sed -e 's,.*/,,'`
65f333
 
65f333
@@ -56,8 +54,9 @@
65f333
 GNU config.guess ($timestamp)
65f333
 
65f333
 Originally written by Per Bothner.
65f333
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
65f333
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
65f333
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
65f333
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
65f333
+Free Software Foundation, Inc.
65f333
 
65f333
 This is free software; see the source for copying conditions.  There is NO
65f333
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
65f333
@@ -144,7 +143,7 @@
65f333
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
65f333
     *:NetBSD:*:*)
65f333
 	# NetBSD (nbsd) targets should (where applicable) match one or
65f333
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
65f333
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
65f333
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
65f333
 	# switched to ELF, *-*-netbsd* would select the old
65f333
 	# object file format.  This provides both forward
65f333
@@ -180,7 +179,7 @@
65f333
 		fi
65f333
 		;;
65f333
 	    *)
65f333
-	        os=netbsd
65f333
+		os=netbsd
65f333
 		;;
65f333
 	esac
65f333
 	# The OS release
65f333
@@ -223,7 +222,7 @@
65f333
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
65f333
 		;;
65f333
 	*5.*)
65f333
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
65f333
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
65f333
 		;;
65f333
 	esac
65f333
 	# According to Compaq, /usr/sbin/psrinfo has been available on
65f333
@@ -269,7 +268,10 @@
65f333
 	# A Xn.n version is an unreleased experimental baselevel.
65f333
 	# 1.2 uses "1.2" for uname -r.
65f333
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
65f333
-	exit ;;
65f333
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
65f333
+	exitcode=$?
65f333
+	trap '' 0
65f333
+	exit $exitcode ;;
65f333
     Alpha\ *:Windows_NT*:*)
65f333
 	# How do we know it's Interix rather than the generic POSIX subsystem?
65f333
 	# Should we change UNAME_MACHINE based on the output of uname instead
65f333
@@ -295,7 +297,7 @@
65f333
 	echo s390-ibm-zvmoe
65f333
 	exit ;;
65f333
     *:OS400:*:*)
65f333
-        echo powerpc-ibm-os400
65f333
+	echo powerpc-ibm-os400
65f333
 	exit ;;
65f333
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
65f333
 	echo arm-acorn-riscix${UNAME_RELEASE}
65f333
@@ -333,6 +335,9 @@
65f333
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
65f333
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
65f333
 	exit ;;
65f333
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
65f333
+	echo i386-pc-auroraux${UNAME_RELEASE}
65f333
+	exit ;;
65f333
     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
65f333
 	eval $set_cc_for_build
65f333
 	SUN_ARCH="i386"
65f333
@@ -391,23 +396,23 @@
65f333
     # MiNT.  But MiNT is downward compatible to TOS, so this should
65f333
     # be no problem.
65f333
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
65f333
-        echo m68k-atari-mint${UNAME_RELEASE}
65f333
+	echo m68k-atari-mint${UNAME_RELEASE}
65f333
 	exit ;;
65f333
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
65f333
 	echo m68k-atari-mint${UNAME_RELEASE}
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
65f333
-        echo m68k-atari-mint${UNAME_RELEASE}
65f333
+	echo m68k-atari-mint${UNAME_RELEASE}
65f333
 	exit ;;
65f333
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
65f333
-        echo m68k-milan-mint${UNAME_RELEASE}
65f333
-        exit ;;
65f333
+	echo m68k-milan-mint${UNAME_RELEASE}
65f333
+	exit ;;
65f333
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
65f333
-        echo m68k-hades-mint${UNAME_RELEASE}
65f333
-        exit ;;
65f333
+	echo m68k-hades-mint${UNAME_RELEASE}
65f333
+	exit ;;
65f333
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
65f333
-        echo m68k-unknown-mint${UNAME_RELEASE}
65f333
-        exit ;;
65f333
+	echo m68k-unknown-mint${UNAME_RELEASE}
65f333
+	exit ;;
65f333
     m68k:machten:*:*)
65f333
 	echo m68k-apple-machten${UNAME_RELEASE}
65f333
 	exit ;;
65f333
@@ -477,8 +482,8 @@
65f333
 	echo m88k-motorola-sysv3
65f333
 	exit ;;
65f333
     AViiON:dgux:*:*)
65f333
-        # DG/UX returns AViiON for all architectures
65f333
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
65f333
+	# DG/UX returns AViiON for all architectures
65f333
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
65f333
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
65f333
 	then
65f333
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
65f333
@@ -491,7 +496,7 @@
65f333
 	else
65f333
 	    echo i586-dg-dgux${UNAME_RELEASE}
65f333
 	fi
65f333
- 	exit ;;
65f333
+	exit ;;
65f333
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
65f333
 	echo m88k-dolphin-sysv3
65f333
 	exit ;;
65f333
@@ -548,7 +553,7 @@
65f333
 		echo rs6000-ibm-aix3.2
65f333
 	fi
65f333
 	exit ;;
65f333
-    *:AIX:*:[456])
65f333
+    *:AIX:*:[4567])
65f333
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
65f333
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
65f333
 		IBM_ARCH=rs6000
65f333
@@ -591,52 +596,52 @@
65f333
 	    9000/[678][0-9][0-9])
65f333
 		if [ -x /usr/bin/getconf ]; then
65f333
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
65f333
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
65f333
-                    case "${sc_cpu_version}" in
65f333
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
65f333
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
65f333
-                      532)                      # CPU_PA_RISC2_0
65f333
-                        case "${sc_kernel_bits}" in
65f333
-                          32) HP_ARCH="hppa2.0n" ;;
65f333
-                          64) HP_ARCH="hppa2.0w" ;;
65f333
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
65f333
+		    case "${sc_cpu_version}" in
65f333
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
65f333
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
65f333
+		      532)                      # CPU_PA_RISC2_0
65f333
+			case "${sc_kernel_bits}" in
65f333
+			  32) HP_ARCH="hppa2.0n" ;;
65f333
+			  64) HP_ARCH="hppa2.0w" ;;
65f333
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
65f333
-                        esac ;;
65f333
-                    esac
65f333
+			esac ;;
65f333
+		    esac
65f333
 		fi
65f333
 		if [ "${HP_ARCH}" = "" ]; then
65f333
 		    eval $set_cc_for_build
65f333
-		    sed 's/^              //' << EOF >$dummy.c
65f333
+		    sed 's/^		//' << EOF >$dummy.c
65f333
+
65f333
+		#define _HPUX_SOURCE
65f333
+		#include <stdlib.h>
65f333
+		#include <unistd.h>
65f333
+
65f333
+		int main ()
65f333
+		{
65f333
+		#if defined(_SC_KERNEL_BITS)
65f333
+		    long bits = sysconf(_SC_KERNEL_BITS);
65f333
+		#endif
65f333
+		    long cpu  = sysconf (_SC_CPU_VERSION);
65f333
 
65f333
-              #define _HPUX_SOURCE
65f333
-              #include <stdlib.h>
65f333
-              #include <unistd.h>
65f333
-
65f333
-              int main ()
65f333
-              {
65f333
-              #if defined(_SC_KERNEL_BITS)
65f333
-                  long bits = sysconf(_SC_KERNEL_BITS);
65f333
-              #endif
65f333
-                  long cpu  = sysconf (_SC_CPU_VERSION);
65f333
-
65f333
-                  switch (cpu)
65f333
-              	{
65f333
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
65f333
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
65f333
-              	case CPU_PA_RISC2_0:
65f333
-              #if defined(_SC_KERNEL_BITS)
65f333
-              	    switch (bits)
65f333
-              		{
65f333
-              		case 64: puts ("hppa2.0w"); break;
65f333
-              		case 32: puts ("hppa2.0n"); break;
65f333
-              		default: puts ("hppa2.0"); break;
65f333
-              		} break;
65f333
-              #else  /* !defined(_SC_KERNEL_BITS) */
65f333
-              	    puts ("hppa2.0"); break;
65f333
-              #endif
65f333
-              	default: puts ("hppa1.0"); break;
65f333
-              	}
65f333
-                  exit (0);
65f333
-              }
65f333
+		    switch (cpu)
65f333
+			{
65f333
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
65f333
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
65f333
+			case CPU_PA_RISC2_0:
65f333
+		#if defined(_SC_KERNEL_BITS)
65f333
+			    switch (bits)
65f333
+				{
65f333
+				case 64: puts ("hppa2.0w"); break;
65f333
+				case 32: puts ("hppa2.0n"); break;
65f333
+				default: puts ("hppa2.0"); break;
65f333
+				} break;
65f333
+		#else  /* !defined(_SC_KERNEL_BITS) */
65f333
+			    puts ("hppa2.0"); break;
65f333
+		#endif
65f333
+			default: puts ("hppa1.0"); break;
65f333
+			}
65f333
+		    exit (0);
65f333
+		}
65f333
 EOF
65f333
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
65f333
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
65f333
@@ -727,22 +732,22 @@
65f333
 	exit ;;
65f333
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
65f333
 	echo c1-convex-bsd
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
65f333
 	if getsysinfo -f scalar_acc
65f333
 	then echo c32-convex-bsd
65f333
 	else echo c2-convex-bsd
65f333
 	fi
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
65f333
 	echo c34-convex-bsd
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
65f333
 	echo c38-convex-bsd
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
65f333
 	echo c4-convex-bsd
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     CRAY*Y-MP:*:*:*)
65f333
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
65f333
 	exit ;;
65f333
@@ -766,14 +771,14 @@
65f333
 	exit ;;
65f333
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
65f333
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
65f333
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
65f333
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
65f333
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
65f333
-        exit ;;
65f333
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
65f333
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
65f333
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
65f333
+	exit ;;
65f333
     5000:UNIX_System_V:4.*:*)
65f333
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
65f333
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
65f333
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
65f333
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
65f333
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
65f333
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
65f333
 	exit ;;
65f333
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
65f333
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
65f333
@@ -785,13 +790,12 @@
65f333
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
65f333
 	exit ;;
65f333
     *:FreeBSD:*:*)
65f333
-	case ${UNAME_MACHINE} in
65f333
-	    pc98)
65f333
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
65f333
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
65f333
+	case ${UNAME_PROCESSOR} in
65f333
 	    amd64)
65f333
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
65f333
 	    *)
65f333
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
65f333
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
65f333
 	esac
65f333
 	exit ;;
65f333
     i*:CYGWIN*:*)
65f333
@@ -800,19 +804,22 @@
65f333
     *:MINGW*:*)
65f333
 	echo ${UNAME_MACHINE}-pc-mingw32
65f333
 	exit ;;
65f333
+    i*:MSYS*:*)
65f333
+	echo ${UNAME_MACHINE}-pc-msys
65f333
+	exit ;;
65f333
     i*:windows32*:*)
65f333
-    	# uname -m includes "-pc" on this system.
65f333
-    	echo ${UNAME_MACHINE}-mingw32
65f333
+	# uname -m includes "-pc" on this system.
65f333
+	echo ${UNAME_MACHINE}-mingw32
65f333
 	exit ;;
65f333
     i*:PW*:*)
65f333
 	echo ${UNAME_MACHINE}-pc-pw32
65f333
 	exit ;;
65f333
-    *:Interix*:[3456]*)
65f333
-    	case ${UNAME_MACHINE} in
65f333
+    *:Interix*:*)
65f333
+	case ${UNAME_MACHINE} in
65f333
 	    x86)
65f333
 		echo i586-pc-interix${UNAME_RELEASE}
65f333
 		exit ;;
65f333
-	    EM64T | authenticamd | genuineintel)
65f333
+	    authenticamd | genuineintel | EM64T)
65f333
 		echo x86_64-unknown-interix${UNAME_RELEASE}
65f333
 		exit ;;
65f333
 	    IA64)
65f333
@@ -854,6 +861,27 @@
65f333
     i*86:Minix:*:*)
65f333
 	echo ${UNAME_MACHINE}-pc-minix
65f333
 	exit ;;
65f333
+    aarch64:Linux:*:*)
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
+	exit ;;
65f333
+    aarch64_be:Linux:*:*)
65f333
+	UNAME_MACHINE=aarch64_be
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
+	exit ;;
65f333
+    alpha:Linux:*:*)
65f333
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
65f333
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
65f333
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
65f333
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
65f333
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
65f333
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
65f333
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
65f333
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
65f333
+	esac
65f333
+	objdump --private-headers /bin/sh | grep -q ld.so.1
65f333
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
65f333
+	exit ;;
65f333
     arm*:Linux:*:*)
65f333
 	eval $set_cc_for_build
65f333
 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
65f333
@@ -861,20 +889,40 @@
65f333
 	then
65f333
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
 	else
65f333
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
65f333
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
65f333
+		| grep -q __ARM_PCS_VFP
65f333
+	    then
65f333
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
65f333
+	    else
65f333
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
65f333
+	    fi
65f333
 	fi
65f333
 	exit ;;
65f333
     avr32*:Linux:*:*)
65f333
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
 	exit ;;
65f333
     cris:Linux:*:*)
65f333
-	echo cris-axis-linux-gnu
65f333
+	echo ${UNAME_MACHINE}-axis-linux-gnu
65f333
 	exit ;;
65f333
     crisv32:Linux:*:*)
65f333
-	echo crisv32-axis-linux-gnu
65f333
+	echo ${UNAME_MACHINE}-axis-linux-gnu
65f333
 	exit ;;
65f333
     frv:Linux:*:*)
65f333
-    	echo frv-unknown-linux-gnu
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
+	exit ;;
65f333
+    hexagon:Linux:*:*)
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
+	exit ;;
65f333
+    i*86:Linux:*:*)
65f333
+	LIBC=gnu
65f333
+	eval $set_cc_for_build
65f333
+	sed 's/^	//' << EOF >$dummy.c
65f333
+	#ifdef __dietlibc__
65f333
+	LIBC=dietlibc
65f333
+	#endif
65f333
+EOF
65f333
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
65f333
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
65f333
 	exit ;;
65f333
     ia64:Linux:*:*)
65f333
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
@@ -901,39 +949,18 @@
65f333
 	#endif
65f333
 	#endif
65f333
 EOF
65f333
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
65f333
-	    /^CPU/{
65f333
-		s: ::g
65f333
-		p
65f333
-	    }'`"
65f333
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
65f333
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
65f333
 	;;
65f333
     or32:Linux:*:*)
65f333
-	echo or32-unknown-linux-gnu
65f333
-	exit ;;
65f333
-    ppc:Linux:*:*)
65f333
-	echo powerpc-unknown-linux-gnu
65f333
-	exit ;;
65f333
-    ppc64:Linux:*:*)
65f333
-	echo powerpc64-unknown-linux-gnu
65f333
-	exit ;;
65f333
-    alpha:Linux:*:*)
65f333
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
65f333
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
65f333
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
65f333
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
65f333
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
65f333
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
65f333
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
65f333
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
65f333
-        esac
65f333
-	objdump --private-headers /bin/sh | grep -q ld.so.1
65f333
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
65f333
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
 	exit ;;
65f333
     padre:Linux:*:*)
65f333
 	echo sparc-unknown-linux-gnu
65f333
 	exit ;;
65f333
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
65f333
+	echo hppa64-unknown-linux-gnu
65f333
+	exit ;;
65f333
     parisc:Linux:*:* | hppa:Linux:*:*)
65f333
 	# Look for CPU level
65f333
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
65f333
@@ -942,14 +969,17 @@
65f333
 	  *)    echo hppa-unknown-linux-gnu ;;
65f333
 	esac
65f333
 	exit ;;
65f333
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
65f333
-	echo hppa64-unknown-linux-gnu
65f333
+    ppc64:Linux:*:*)
65f333
+	echo powerpc64-unknown-linux-gnu
65f333
+	exit ;;
65f333
+    ppc:Linux:*:*)
65f333
+	echo powerpc-unknown-linux-gnu
65f333
 	exit ;;
65f333
     s390:Linux:*:* | s390x:Linux:*:*)
65f333
 	echo ${UNAME_MACHINE}-ibm-linux
65f333
 	exit ;;
65f333
     sh64*:Linux:*:*)
65f333
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
 	exit ;;
65f333
     sh*:Linux:*:*)
65f333
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
@@ -957,67 +987,18 @@
65f333
     sparc:Linux:*:* | sparc64:Linux:*:*)
65f333
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
 	exit ;;
65f333
+    tile*:Linux:*:*)
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
+	exit ;;
65f333
     vax:Linux:*:*)
65f333
 	echo ${UNAME_MACHINE}-dec-linux-gnu
65f333
 	exit ;;
65f333
     x86_64:Linux:*:*)
65f333
-	echo x86_64-unknown-linux-gnu
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
 	exit ;;
65f333
     xtensa*:Linux:*:*)
65f333
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
65f333
 	exit ;;
65f333
-    i*86:Linux:*:*)
65f333
-	# The BFD linker knows what the default object file format is, so
65f333
-	# first see if it will tell us. cd to the root directory to prevent
65f333
-	# problems with other programs or directories called `ld' in the path.
65f333
-	# Set LC_ALL=C to ensure ld outputs messages in English.
65f333
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
65f333
-			 | sed -ne '/supported targets:/!d
65f333
-				    s/[ 	][ 	]*/ /g
65f333
-				    s/.*supported targets: *//
65f333
-				    s/ .*//
65f333
-				    p'`
65f333
-        case "$ld_supported_targets" in
65f333
-	  elf32-i386)
65f333
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
65f333
-		;;
65f333
-	esac
65f333
-	# Determine whether the default compiler is a.out or elf
65f333
-	eval $set_cc_for_build
65f333
-	sed 's/^	//' << EOF >$dummy.c
65f333
-	#include <features.h>
65f333
-	#ifdef __ELF__
65f333
-	# ifdef __GLIBC__
65f333
-	#  if __GLIBC__ >= 2
65f333
-	LIBC=gnu
65f333
-	#  else
65f333
-	LIBC=gnulibc1
65f333
-	#  endif
65f333
-	# else
65f333
-	LIBC=gnulibc1
65f333
-	# endif
65f333
-	#else
65f333
-	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
65f333
-	LIBC=gnu
65f333
-	#else
65f333
-	LIBC=gnuaout
65f333
-	#endif
65f333
-	#endif
65f333
-	#ifdef __dietlibc__
65f333
-	LIBC=dietlibc
65f333
-	#endif
65f333
-EOF
65f333
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
65f333
-	    /^LIBC/{
65f333
-		s: ::g
65f333
-		p
65f333
-	    }'`"
65f333
-	test x"${LIBC}" != x && {
65f333
-		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
65f333
-		exit
65f333
-	}
65f333
-	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
65f333
-	;;
65f333
     i*86:DYNIX/ptx:4*:*)
65f333
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
65f333
 	# earlier versions are messed up and put the nodename in both
65f333
@@ -1025,11 +1006,11 @@
65f333
 	echo i386-sequent-sysv4
65f333
 	exit ;;
65f333
     i*86:UNIX_SV:4.2MP:2.*)
65f333
-        # Unixware is an offshoot of SVR4, but it has its own version
65f333
-        # number series starting with 2...
65f333
-        # I am not positive that other SVR4 systems won't match this,
65f333
+	# Unixware is an offshoot of SVR4, but it has its own version
65f333
+	# number series starting with 2...
65f333
+	# I am not positive that other SVR4 systems won't match this,
65f333
 	# I just have to hope.  -- rms.
65f333
-        # Use sysv4.2uw... so that sysv4* matches it.
65f333
+	# Use sysv4.2uw... so that sysv4* matches it.
65f333
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
65f333
 	exit ;;
65f333
     i*86:OS/2:*:*)
65f333
@@ -1061,7 +1042,7 @@
65f333
 	fi
65f333
 	exit ;;
65f333
     i*86:*:5:[678]*)
65f333
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
65f333
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
65f333
 	case `/bin/uname -X | grep "^Machine"` in
65f333
 	    *486*)	     UNAME_MACHINE=i486 ;;
65f333
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
65f333
@@ -1089,13 +1070,13 @@
65f333
 	exit ;;
65f333
     pc:*:*:*)
65f333
 	# Left here for compatibility:
65f333
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
65f333
-        # the processor, so we play safe by assuming i586.
65f333
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
65f333
+	# the processor, so we play safe by assuming i586.
65f333
 	# Note: whatever this is, it MUST be the same as what config.sub
65f333
 	# prints for the "djgpp" host, or else GDB configury will decide that
65f333
 	# this is a cross-build.
65f333
 	echo i586-pc-msdosdjgpp
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     Intel:Mach:3*:*)
65f333
 	echo i386-pc-mach3
65f333
 	exit ;;
65f333
@@ -1130,8 +1111,8 @@
65f333
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
65f333
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
65f333
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
65f333
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
65f333
-          && { echo i486-ncr-sysv4; exit; } ;;
65f333
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
65f333
+	  && { echo i486-ncr-sysv4; exit; } ;;
65f333
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
65f333
 	OS_REL='.3'
65f333
 	test -r /etc/.relid \
65f333
@@ -1174,10 +1155,10 @@
65f333
 		echo ns32k-sni-sysv
65f333
 	fi
65f333
 	exit ;;
65f333
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
65f333
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
65f333
-        echo i586-unisys-sysv4
65f333
-        exit ;;
65f333
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
65f333
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
65f333
+	echo i586-unisys-sysv4
65f333
+	exit ;;
65f333
     *:UNIX_System_V:4*:FTX*)
65f333
 	# From Gerald Hewes <hewes@openmarket.com>.
65f333
 	# How about differentiating between stratus architectures? -djm
65f333
@@ -1203,11 +1184,11 @@
65f333
 	exit ;;
65f333
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
65f333
 	if [ -d /usr/nec ]; then
65f333
-	        echo mips-nec-sysv${UNAME_RELEASE}
65f333
+		echo mips-nec-sysv${UNAME_RELEASE}
65f333
 	else
65f333
-	        echo mips-unknown-sysv${UNAME_RELEASE}
65f333
+		echo mips-unknown-sysv${UNAME_RELEASE}
65f333
 	fi
65f333
-        exit ;;
65f333
+	exit ;;
65f333
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
65f333
 	echo powerpc-be-beos
65f333
 	exit ;;
65f333
@@ -1247,6 +1228,16 @@
65f333
     *:Darwin:*:*)
65f333
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
65f333
 	case $UNAME_PROCESSOR in
65f333
+	    i386)
65f333
+		eval $set_cc_for_build
65f333
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
65f333
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
65f333
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
65f333
+		      grep IS_64BIT_ARCH >/dev/null
65f333
+		  then
65f333
+		      UNAME_PROCESSOR="x86_64"
65f333
+		  fi
65f333
+		fi ;;
65f333
 	    unknown) UNAME_PROCESSOR=powerpc ;;
65f333
 	esac
65f333
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
65f333
@@ -1262,6 +1253,9 @@
65f333
     *:QNX:*:4*)
65f333
 	echo i386-pc-qnx
65f333
 	exit ;;
65f333
+    NEO-?:NONSTOP_KERNEL:*:*)
65f333
+	echo neo-tandem-nsk${UNAME_RELEASE}
65f333
+	exit ;;
65f333
     NSE-?:NONSTOP_KERNEL:*:*)
65f333
 	echo nse-tandem-nsk${UNAME_RELEASE}
65f333
 	exit ;;
65f333
@@ -1307,13 +1301,13 @@
65f333
 	echo pdp10-unknown-its
65f333
 	exit ;;
65f333
     SEI:*:*:SEIUX)
65f333
-        echo mips-sei-seiux${UNAME_RELEASE}
65f333
+	echo mips-sei-seiux${UNAME_RELEASE}
65f333
 	exit ;;
65f333
     *:DragonFly:*:*)
65f333
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
65f333
 	exit ;;
65f333
     *:*VMS:*:*)
65f333
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
65f333
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
65f333
 	case "${UNAME_MACHINE}" in
65f333
 	    A*) echo alpha-dec-vms ; exit ;;
65f333
 	    I*) echo ia64-dec-vms ; exit ;;
65f333
@@ -1331,6 +1325,9 @@
65f333
     i*86:AROS:*:*)
65f333
 	echo ${UNAME_MACHINE}-pc-aros
65f333
 	exit ;;
65f333
+    x86_64:VMkernel:*:*)
65f333
+	echo ${UNAME_MACHINE}-unknown-esx
65f333
+	exit ;;
65f333
 esac
65f333
 
65f333
 #echo '(No uname command or uname output not recognized.)' 1>&2
65f333
@@ -1353,11 +1350,11 @@
65f333
 #include <sys/param.h>
65f333
   printf ("m68k-sony-newsos%s\n",
65f333
 #ifdef NEWSOS4
65f333
-          "4"
65f333
+	"4"
65f333
 #else
65f333
-	  ""
65f333
+	""
65f333
 #endif
65f333
-         ); exit (0);
65f333
+	); exit (0);
65f333
 #endif
65f333
 #endif
65f333
 
65f333
diff -u -Naur potrace-1.11/config.sub potrace-1.11-patched/config.sub
65f333
--- potrace-1.11/config.sub	2010-11-04 23:08:34.000000000 -0300
65f333
+++ potrace-1.11-patched/config.sub	2013-05-14 17:54:51.363873585 -0300
65f333
@@ -1,10 +1,10 @@
65f333
 #! /bin/sh
65f333
 # Configuration validation subroutine script.
65f333
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
65f333
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
65f333
-#   Free Software Foundation, Inc.
65f333
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
65f333
+#   2011, 2012 Free Software Foundation, Inc.
65f333
 
65f333
-timestamp='2009-06-11'
65f333
+timestamp='2012-04-18'
65f333
 
65f333
 # This file is (in principle) common to ALL GNU software.
65f333
 # The presence of a machine in this file suggests that SOME GNU software
65f333
@@ -21,9 +21,7 @@
65f333
 # GNU General Public License for more details.
65f333
 #
65f333
 # You should have received a copy of the GNU General Public License
65f333
-# along with this program; if not, write to the Free Software
65f333
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
65f333
-# 02110-1301, USA.
65f333
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
65f333
 #
65f333
 # As a special exception to the GNU General Public License, if you
65f333
 # distribute this file as part of a program that contains a
65f333
@@ -32,13 +30,16 @@
65f333
 
65f333
 
65f333
 # Please send patches to <config-patches@gnu.org>.  Submit a context
65f333
-# diff and a properly formatted ChangeLog entry.
65f333
+# diff and a properly formatted GNU ChangeLog entry.
65f333
 #
65f333
 # Configuration subroutine to validate and canonicalize a configuration type.
65f333
 # Supply the specified configuration type as an argument.
65f333
 # If it is invalid, we print an error message on stderr and exit with code 1.
65f333
 # Otherwise, we print the canonical config type on stdout and succeed.
65f333
 
65f333
+# You can get the latest version of this script from:
65f333
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
65f333
+
65f333
 # This file is supposed to be the same for all GNU packages
65f333
 # and recognize all the CPU types, system types and aliases
65f333
 # that are meaningful with *any* GNU software.
65f333
@@ -72,8 +73,9 @@
65f333
 version="\
65f333
 GNU config.sub ($timestamp)
65f333
 
65f333
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
65f333
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
65f333
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
65f333
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
65f333
+Free Software Foundation, Inc.
65f333
 
65f333
 This is free software; see the source for copying conditions.  There is NO
65f333
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
65f333
@@ -120,13 +122,18 @@
65f333
 # Here we must recognize all the valid KERNEL-OS combinations.
65f333
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
65f333
 case $maybe_os in
65f333
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
65f333
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
65f333
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
65f333
+  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
65f333
+  knetbsd*-gnu* | netbsd*-gnu* | \
65f333
   kopensolaris*-gnu* | \
65f333
   storm-chaos* | os2-emx* | rtmk-nova*)
65f333
     os=-$maybe_os
65f333
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
65f333
     ;;
65f333
+  android-linux)
65f333
+    os=-linux-android
65f333
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
65f333
+    ;;
65f333
   *)
65f333
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
65f333
     if [ $basic_machine != $1 ]
65f333
@@ -149,12 +156,12 @@
65f333
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
65f333
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
65f333
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
65f333
-	-apple | -axis | -knuth | -cray)
65f333
+	-apple | -axis | -knuth | -cray | -microblaze)
65f333
 		os=
65f333
 		basic_machine=$1
65f333
 		;;
65f333
-        -bluegene*)
65f333
-	        os=-cnk
65f333
+	-bluegene*)
65f333
+		os=-cnk
65f333
 		;;
65f333
 	-sim | -cisco | -oki | -wec | -winbond)
65f333
 		os=
65f333
@@ -170,10 +177,10 @@
65f333
 		os=-chorusos
65f333
 		basic_machine=$1
65f333
 		;;
65f333
- 	-chorusrdb)
65f333
- 		os=-chorusrdb
65f333
+	-chorusrdb)
65f333
+		os=-chorusrdb
65f333
 		basic_machine=$1
65f333
- 		;;
65f333
+		;;
65f333
 	-hiux*)
65f333
 		os=-hiuxwe2
65f333
 		;;
65f333
@@ -218,6 +225,12 @@
65f333
 	-isc*)
65f333
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
65f333
 		;;
65f333
+	-lynx*178)
65f333
+		os=-lynxos178
65f333
+		;;
65f333
+	-lynx*5)
65f333
+		os=-lynxos5
65f333
+		;;
65f333
 	-lynx*)
65f333
 		os=-lynxos
65f333
 		;;
65f333
@@ -242,17 +255,22 @@
65f333
 	# Some are omitted here because they have special meanings below.
65f333
 	1750a | 580 \
65f333
 	| a29k \
65f333
+	| aarch64 | aarch64_be \
65f333
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
65f333
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
65f333
 	| am33_2.0 \
65f333
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
65f333
+        | be32 | be64 \
65f333
 	| bfin \
65f333
 	| c4x | clipper \
65f333
 	| d10v | d30v | dlx | dsp16xx \
65f333
+	| epiphany \
65f333
 	| fido | fr30 | frv \
65f333
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
65f333
+	| hexagon \
65f333
 	| i370 | i860 | i960 | ia64 \
65f333
 	| ip2k | iq2000 \
65f333
+	| le32 | le64 \
65f333
 	| lm32 \
65f333
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
65f333
 	| maxq | mb | microblaze | mcore | mep | metag \
65f333
@@ -278,27 +296,39 @@
65f333
 	| moxie \
65f333
 	| mt \
65f333
 	| msp430 \
65f333
+	| nds32 | nds32le | nds32be \
65f333
 	| nios | nios2 \
65f333
 	| ns16k | ns32k \
65f333
+	| open8 \
65f333
 	| or32 \
65f333
 	| pdp10 | pdp11 | pj | pjl \
65f333
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
65f333
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
65f333
 	| pyramid \
65f333
+	| rl78 | rx \
65f333
 	| score \
65f333
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
65f333
 	| sh64 | sh64le \
65f333
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
65f333
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
65f333
-	| spu | strongarm \
65f333
-	| tahoe | thumb | tic4x | tic80 | tron \
65f333
-	| v850 | v850e \
65f333
+	| spu \
65f333
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
65f333
+	| ubicom32 \
65f333
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
65f333
 	| we32k \
65f333
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
65f333
+	| x86 | xc16x | xstormy16 | xtensa \
65f333
 	| z8k | z80)
65f333
 		basic_machine=$basic_machine-unknown
65f333
 		;;
65f333
-	m6811 | m68hc11 | m6812 | m68hc12)
65f333
-		# Motorola 68HC11/12.
65f333
+	c54x)
65f333
+		basic_machine=tic54x-unknown
65f333
+		;;
65f333
+	c55x)
65f333
+		basic_machine=tic55x-unknown
65f333
+		;;
65f333
+	c6x)
65f333
+		basic_machine=tic6x-unknown
65f333
+		;;
65f333
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
65f333
 		basic_machine=$basic_machine-unknown
65f333
 		os=-none
65f333
 		;;
65f333
@@ -308,6 +338,21 @@
65f333
 		basic_machine=mt-unknown
65f333
 		;;
65f333
 
65f333
+	strongarm | thumb | xscale)
65f333
+		basic_machine=arm-unknown
65f333
+		;;
65f333
+	xgate)
65f333
+		basic_machine=$basic_machine-unknown
65f333
+		os=-none
65f333
+		;;
65f333
+	xscaleeb)
65f333
+		basic_machine=armeb-unknown
65f333
+		;;
65f333
+
65f333
+	xscaleel)
65f333
+		basic_machine=armel-unknown
65f333
+		;;
65f333
+
65f333
 	# We use `pc' rather than `unknown'
65f333
 	# because (1) that's what they normally are, and
65f333
 	# (2) the word "unknown" tends to confuse beginning users.
65f333
@@ -322,25 +367,29 @@
65f333
 	# Recognize the basic CPU types with company name.
65f333
 	580-* \
65f333
 	| a29k-* \
65f333
+	| aarch64-* | aarch64_be-* \
65f333
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
65f333
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
65f333
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
65f333
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
65f333
 	| avr-* | avr32-* \
65f333
+	| be32-* | be64-* \
65f333
 	| bfin-* | bs2000-* \
65f333
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
65f333
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
65f333
 	| clipper-* | craynv-* | cydra-* \
65f333
 	| d10v-* | d30v-* | dlx-* \
65f333
 	| elxsi-* \
65f333
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
65f333
 	| h8300-* | h8500-* \
65f333
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
65f333
+	| hexagon-* \
65f333
 	| i*86-* | i860-* | i960-* | ia64-* \
65f333
 	| ip2k-* | iq2000-* \
65f333
+	| le32-* | le64-* \
65f333
 	| lm32-* \
65f333
 	| m32c-* | m32r-* | m32rle-* \
65f333
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
65f333
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
65f333
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
65f333
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
65f333
 	| mips16-* \
65f333
 	| mips64-* | mips64el-* \
65f333
@@ -362,24 +411,29 @@
65f333
 	| mmix-* \
65f333
 	| mt-* \
65f333
 	| msp430-* \
65f333
+	| nds32-* | nds32le-* | nds32be-* \
65f333
 	| nios-* | nios2-* \
65f333
 	| none-* | np1-* | ns16k-* | ns32k-* \
65f333
+	| open8-* \
65f333
 	| orion-* \
65f333
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
65f333
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
65f333
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
65f333
 	| pyramid-* \
65f333
-	| romp-* | rs6000-* \
65f333
+	| rl78-* | romp-* | rs6000-* | rx-* \
65f333
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
65f333
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
65f333
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
65f333
 	| sparclite-* \
65f333
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
65f333
-	| tahoe-* | thumb-* \
65f333
-	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
65f333
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
65f333
+	| tahoe-* \
65f333
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
65f333
+	| tile*-* \
65f333
 	| tron-* \
65f333
-	| v850-* | v850e-* | vax-* \
65f333
+	| ubicom32-* \
65f333
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
65f333
+	| vax-* \
65f333
 	| we32k-* \
65f333
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
65f333
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
65f333
 	| xstormy16-* | xtensa*-* \
65f333
 	| ymp-* \
65f333
 	| z8k-* | z80-*)
65f333
@@ -404,7 +458,7 @@
65f333
 		basic_machine=a29k-amd
65f333
 		os=-udi
65f333
 		;;
65f333
-    	abacus)
65f333
+	abacus)
65f333
 		basic_machine=abacus-unknown
65f333
 		;;
65f333
 	adobe68k)
65f333
@@ -474,11 +528,20 @@
65f333
 		basic_machine=powerpc-ibm
65f333
 		os=-cnk
65f333
 		;;
65f333
+	c54x-*)
65f333
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
65f333
+		;;
65f333
+	c55x-*)
65f333
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
65f333
+		;;
65f333
+	c6x-*)
65f333
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
65f333
+		;;
65f333
 	c90)
65f333
 		basic_machine=c90-cray
65f333
 		os=-unicos
65f333
 		;;
65f333
-        cegcc)
65f333
+	cegcc)
65f333
 		basic_machine=arm-unknown
65f333
 		os=-cegcc
65f333
 		;;
65f333
@@ -510,7 +573,7 @@
65f333
 		basic_machine=craynv-cray
65f333
 		os=-unicosmp
65f333
 		;;
65f333
-	cr16)
65f333
+	cr16 | cr16-*)
65f333
 		basic_machine=cr16-unknown
65f333
 		os=-elf
65f333
 		;;
65f333
@@ -668,7 +731,6 @@
65f333
 	i370-ibm* | ibm*)
65f333
 		basic_machine=i370-ibm
65f333
 		;;
65f333
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
65f333
 	i*86v32)
65f333
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
65f333
 		os=-sysv32
65f333
@@ -726,6 +788,9 @@
65f333
 		basic_machine=ns32k-utek
65f333
 		os=-sysv
65f333
 		;;
65f333
+	microblaze)
65f333
+		basic_machine=microblaze-xilinx
65f333
+		;;
65f333
 	mingw32)
65f333
 		basic_machine=i386-pc
65f333
 		os=-mingw32
65f333
@@ -762,10 +827,18 @@
65f333
 	ms1-*)
65f333
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
65f333
 		;;
65f333
+	msys)
65f333
+		basic_machine=i386-pc
65f333
+		os=-msys
65f333
+		;;
65f333
 	mvs)
65f333
 		basic_machine=i370-ibm
65f333
 		os=-mvs
65f333
 		;;
65f333
+	nacl)
65f333
+		basic_machine=le32-unknown
65f333
+		os=-nacl
65f333
+		;;
65f333
 	ncr3000)
65f333
 		basic_machine=i486-ncr
65f333
 		os=-sysv4
65f333
@@ -830,6 +903,12 @@
65f333
 	np1)
65f333
 		basic_machine=np1-gould
65f333
 		;;
65f333
+	neo-tandem)
65f333
+		basic_machine=neo-tandem
65f333
+		;;
65f333
+	nse-tandem)
65f333
+		basic_machine=nse-tandem
65f333
+		;;
65f333
 	nsr-tandem)
65f333
 		basic_machine=nsr-tandem
65f333
 		;;
65f333
@@ -912,9 +991,10 @@
65f333
 		;;
65f333
 	power)	basic_machine=power-ibm
65f333
 		;;
65f333
-	ppc)	basic_machine=powerpc-unknown
65f333
+	ppc | ppcbe)	basic_machine=powerpc-unknown
65f333
 		;;
65f333
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
65f333
+	ppc-* | ppcbe-*)
65f333
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
65f333
 		;;
65f333
 	ppcle | powerpclittle | ppc-le | powerpc-little)
65f333
 		basic_machine=powerpcle-unknown
65f333
@@ -1008,6 +1088,9 @@
65f333
 		basic_machine=i860-stratus
65f333
 		os=-sysv4
65f333
 		;;
65f333
+	strongarm-* | thumb-*)
65f333
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
65f333
+		;;
65f333
 	sun2)
65f333
 		basic_machine=m68000-sun
65f333
 		;;
65f333
@@ -1064,20 +1147,8 @@
65f333
 		basic_machine=t90-cray
65f333
 		os=-unicos
65f333
 		;;
65f333
-	tic54x | c54x*)
65f333
-		basic_machine=tic54x-unknown
65f333
-		os=-coff
65f333
-		;;
65f333
-	tic55x | c55x*)
65f333
-		basic_machine=tic55x-unknown
65f333
-		os=-coff
65f333
-		;;
65f333
-	tic6x | c6x*)
65f333
-		basic_machine=tic6x-unknown
65f333
-		os=-coff
65f333
-		;;
65f333
 	tile*)
65f333
-		basic_machine=tile-unknown
65f333
+		basic_machine=$basic_machine-unknown
65f333
 		os=-linux-gnu
65f333
 		;;
65f333
 	tx39)
65f333
@@ -1147,6 +1218,9 @@
65f333
 	xps | xps100)
65f333
 		basic_machine=xps100-honeywell
65f333
 		;;
65f333
+	xscale-* | xscalee[bl]-*)
65f333
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
65f333
+		;;
65f333
 	ymp)
65f333
 		basic_machine=ymp-cray
65f333
 		os=-unicos
65f333
@@ -1244,9 +1318,12 @@
65f333
 if [ x"$os" != x"" ]
65f333
 then
65f333
 case $os in
65f333
-        # First match some system type aliases
65f333
-        # that might get confused with valid system types.
65f333
+	# First match some system type aliases
65f333
+	# that might get confused with valid system types.
65f333
 	# -solaris* is a basic system type, with this one exception.
65f333
+	-auroraux)
65f333
+		os=-auroraux
65f333
+		;;
65f333
 	-solaris1 | -solaris1.*)
65f333
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
65f333
 		;;
65f333
@@ -1268,8 +1345,8 @@
65f333
 	# -sysv* is not here because it comes later, after sysvr4.
65f333
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
65f333
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
65f333
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
65f333
-	      | -kopensolaris* \
65f333
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
65f333
+	      | -sym* | -kopensolaris* \
65f333
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
65f333
 	      | -aos* | -aros* \
65f333
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
65f333
@@ -1281,8 +1358,9 @@
65f333
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
65f333
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
65f333
 	      | -chorusos* | -chorusrdb* | -cegcc* \
65f333
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
65f333
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
65f333
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
65f333
+	      | -mingw32* | -linux-gnu* | -linux-android* \
65f333
+	      | -linux-newlib* | -linux-uclibc* \
65f333
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
65f333
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
65f333
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
65f333
@@ -1290,7 +1368,7 @@
65f333
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
65f333
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
65f333
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
65f333
-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
65f333
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
65f333
 	# Remember, each alternative MUST END IN *, to match a version number.
65f333
 		;;
65f333
 	-qnx*)
65f333
@@ -1329,7 +1407,7 @@
65f333
 	-opened*)
65f333
 		os=-openedition
65f333
 		;;
65f333
-        -os400*)
65f333
+	-os400*)
65f333
 		os=-os400
65f333
 		;;
65f333
 	-wince*)
65f333
@@ -1378,7 +1456,7 @@
65f333
 	-sinix*)
65f333
 		os=-sysv4
65f333
 		;;
65f333
-        -tpf*)
65f333
+	-tpf*)
65f333
 		os=-tpf
65f333
 		;;
65f333
 	-triton*)
65f333
@@ -1423,6 +1501,8 @@
65f333
 	-dicos*)
65f333
 		os=-dicos
65f333
 		;;
65f333
+	-nacl*)
65f333
+		;;
65f333
 	-none)
65f333
 		;;
65f333
 	*)
65f333
@@ -1445,10 +1525,10 @@
65f333
 # system, and we'll never get to this point.
65f333
 
65f333
 case $basic_machine in
65f333
-        score-*)
65f333
+	score-*)
65f333
 		os=-elf
65f333
 		;;
65f333
-        spu-*)
65f333
+	spu-*)
65f333
 		os=-elf
65f333
 		;;
65f333
 	*-acorn)
65f333
@@ -1460,8 +1540,20 @@
65f333
 	arm*-semi)
65f333
 		os=-aout
65f333
 		;;
65f333
-        c4x-* | tic4x-*)
65f333
-        	os=-coff
65f333
+	c4x-* | tic4x-*)
65f333
+		os=-coff
65f333
+		;;
65f333
+	hexagon-*)
65f333
+		os=-elf
65f333
+		;;
65f333
+	tic54x-*)
65f333
+		os=-coff
65f333
+		;;
65f333
+	tic55x-*)
65f333
+		os=-coff
65f333
+		;;
65f333
+	tic6x-*)
65f333
+		os=-coff
65f333
 		;;
65f333
 	# This must come before the *-dec entry.
65f333
 	pdp10-*)
65f333
@@ -1481,14 +1573,11 @@
65f333
 		;;
65f333
 	m68000-sun)
65f333
 		os=-sunos3
65f333
-		# This also exists in the configure program, but was not the
65f333
-		# default.
65f333
-		# os=-sunos4
65f333
 		;;
65f333
 	m68*-cisco)
65f333
 		os=-aout
65f333
 		;;
65f333
-        mep-*)
65f333
+	mep-*)
65f333
 		os=-elf
65f333
 		;;
65f333
 	mips*-cisco)
65f333
@@ -1515,7 +1604,7 @@
65f333
 	*-ibm)
65f333
 		os=-aix
65f333
 		;;
65f333
-    	*-knuth)
65f333
+	*-knuth)
65f333
 		os=-mmixware
65f333
 		;;
65f333
 	*-wec)
65f333
diff -u -Naur potrace-1.11/configure potrace-1.11-patched/configure
65f333
--- potrace-1.11/configure	2013-02-19 20:49:06.000000000 -0400
65f333
+++ potrace-1.11-patched/configure	2013-05-14 17:54:49.727852223 -0300
65f333
@@ -1415,7 +1415,7 @@
65f333
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
65f333
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
65f333
   --with-libpotrace       install Potrace library and headers [default=no]
65f333
-  --with-pic              try to use only PIC/non-PIC objects [default=use
65f333
+  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
65f333
                           both]
65f333
   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
65f333
   --with-sysroot=DIR Search for dependent libraries within DIR
65f333
@@ -4954,6 +4954,11 @@
65f333
     lt_cv_sys_max_cmd_len=196608
65f333
     ;;
65f333
 
65f333
+  os2*)
65f333
+    # The test takes a long time on OS/2.
65f333
+    lt_cv_sys_max_cmd_len=8192
65f333
+    ;;
65f333
+
65f333
   osf*)
65f333
     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
65f333
     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
65f333
@@ -4993,7 +4998,7 @@
65f333
       # If test is not a shell built-in, we'll probably end up computing a
65f333
       # maximum length that is only half of the actual maximum length, but
65f333
       # we can't tell.
65f333
-      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
65f333
+      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
65f333
 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
65f333
 	      test $i != 17 # 1/2 MB should be enough
65f333
       do
65f333
@@ -5419,7 +5424,7 @@
65f333
   lt_cv_deplibs_check_method=pass_all
65f333
   ;;
65f333
 
65f333
-# This must be Linux ELF.
65f333
+# This must be glibc/ELF.
65f333
 linux* | k*bsd*-gnu | kopensolaris*-gnu)
65f333
   lt_cv_deplibs_check_method=pass_all
65f333
   ;;
65f333
@@ -6057,13 +6062,13 @@
65f333
 if test -n "$RANLIB"; then
65f333
   case $host_os in
65f333
   openbsd*)
65f333
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
65f333
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
65f333
     ;;
65f333
   *)
65f333
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
65f333
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
65f333
     ;;
65f333
   esac
65f333
-  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
65f333
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
65f333
 fi
65f333
 
65f333
 case $host_os in
65f333
@@ -6210,6 +6215,7 @@
65f333
     # which start with @ or ?.
65f333
     lt_cv_sys_global_symbol_pipe="$AWK '"\
65f333
 "     {last_section=section; section=\$ 3};"\
65f333
+"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
65f333
 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
65f333
 "     \$ 0!~/External *\|/{next};"\
65f333
 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
65f333
@@ -6598,7 +6604,7 @@
65f333
     CFLAGS="$SAVE_CFLAGS"
65f333
   fi
65f333
   ;;
65f333
-sparc*-*solaris*)
65f333
+*-*solaris*)
65f333
   # Find out which ABI we are using.
65f333
   echo 'int i;' > conftest.$ac_ext
65f333
   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65f333
@@ -6609,7 +6615,20 @@
65f333
     case `/usr/bin/file conftest.o` in
65f333
     *64-bit*)
65f333
       case $lt_cv_prog_gnu_ld in
65f333
-      yes*) LD="${LD-ld} -m elf64_sparc" ;;
65f333
+      yes*)
65f333
+        case $host in
65f333
+        i?86-*-solaris*)
65f333
+          LD="${LD-ld} -m elf_x86_64"
65f333
+          ;;
65f333
+        sparc*-*-solaris*)
65f333
+          LD="${LD-ld} -m elf64_sparc"
65f333
+          ;;
65f333
+        esac
65f333
+        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
65f333
+        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
65f333
+          LD="${LD-ld}_sol2"
65f333
+        fi
65f333
+        ;;
65f333
       *)
65f333
 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
65f333
 	  LD="${LD-ld} -64"
65f333
@@ -7249,7 +7268,13 @@
65f333
 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
65f333
 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
65f333
         _lt_result=$?
65f333
-	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
65f333
+	# If there is a non-empty error log, and "single_module"
65f333
+	# appears in it, assume the flag caused a linker warning
65f333
+        if test -s conftest.err && $GREP single_module conftest.err; then
65f333
+	  cat conftest.err >&5
65f333
+	# Otherwise, if the output was created with a 0 exit code from
65f333
+	# the compiler, it worked.
65f333
+	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
65f333
 	  lt_cv_apple_cc_single_mod=yes
65f333
 	else
65f333
 	  cat conftest.err >&5
65f333
@@ -7260,6 +7285,7 @@
65f333
 fi
65f333
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
65f333
 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
65f333
+
65f333
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
65f333
 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
65f333
 if ${lt_cv_ld_exported_symbols_list+:} false; then :
65f333
@@ -7292,6 +7318,7 @@
65f333
 fi
65f333
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
65f333
 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
65f333
+
65f333
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
65f333
 $as_echo_n "checking for -force_load linker flag... " >&6; }
65f333
 if ${lt_cv_ld_force_load+:} false; then :
65f333
@@ -7313,7 +7340,9 @@
65f333
       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
65f333
       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
65f333
       _lt_result=$?
65f333
-      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
65f333
+      if test -s conftest.err && $GREP force_load conftest.err; then
65f333
+	cat conftest.err >&5
65f333
+      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
65f333
 	lt_cv_ld_force_load=yes
65f333
       else
65f333
 	cat conftest.err >&5
65f333
@@ -7716,7 +7745,22 @@
65f333
 
65f333
 # Check whether --with-pic was given.
65f333
 if test "${with_pic+set}" = set; then :
65f333
-  withval=$with_pic; pic_mode="$withval"
65f333
+  withval=$with_pic; lt_p=${PACKAGE-default}
65f333
+    case $withval in
65f333
+    yes|no) pic_mode=$withval ;;
65f333
+    *)
65f333
+      pic_mode=default
65f333
+      # Look at the argument we got.  We use all the common list separators.
65f333
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
65f333
+      for lt_pkg in $withval; do
65f333
+	IFS="$lt_save_ifs"
65f333
+	if test "X$lt_pkg" = "X$lt_p"; then
65f333
+	  pic_mode=yes
65f333
+	fi
65f333
+      done
65f333
+      IFS="$lt_save_ifs"
65f333
+      ;;
65f333
+    esac
65f333
 else
65f333
   pic_mode=default
65f333
 fi
65f333
@@ -7794,6 +7838,10 @@
65f333
 
65f333
 
65f333
 
65f333
+
65f333
+
65f333
+
65f333
+
65f333
 test -z "$LN_S" && LN_S="ln -s"
65f333
 
65f333
 
65f333
@@ -8253,7 +8301,9 @@
65f333
     case $cc_basename in
65f333
     nvcc*) # Cuda Compiler Driver 2.2
65f333
       lt_prog_compiler_wl='-Xlinker '
65f333
-      lt_prog_compiler_pic='-Xcompiler -fPIC'
65f333
+      if test -n "$lt_prog_compiler_pic"; then
65f333
+        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
65f333
+      fi
65f333
       ;;
65f333
     esac
65f333
   else
65f333
@@ -8344,18 +8394,33 @@
65f333
 	;;
65f333
       *)
65f333
 	case `$CC -V 2>&1 | sed 5q` in
65f333
-	*Sun\ F* | *Sun*Fortran*)
65f333
+	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
65f333
 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
65f333
 	  lt_prog_compiler_pic='-KPIC'
65f333
 	  lt_prog_compiler_static='-Bstatic'
65f333
 	  lt_prog_compiler_wl=''
65f333
 	  ;;
65f333
+	*Sun\ F* | *Sun*Fortran*)
65f333
+	  lt_prog_compiler_pic='-KPIC'
65f333
+	  lt_prog_compiler_static='-Bstatic'
65f333
+	  lt_prog_compiler_wl='-Qoption ld '
65f333
+	  ;;
65f333
 	*Sun\ C*)
65f333
 	  # Sun C 5.9
65f333
 	  lt_prog_compiler_pic='-KPIC'
65f333
 	  lt_prog_compiler_static='-Bstatic'
65f333
 	  lt_prog_compiler_wl='-Wl,'
65f333
 	  ;;
65f333
+        *Intel*\ [CF]*Compiler*)
65f333
+	  lt_prog_compiler_wl='-Wl,'
65f333
+	  lt_prog_compiler_pic='-fPIC'
65f333
+	  lt_prog_compiler_static='-static'
65f333
+	  ;;
65f333
+	*Portland\ Group*)
65f333
+	  lt_prog_compiler_wl='-Wl,'
65f333
+	  lt_prog_compiler_pic='-fpic'
65f333
+	  lt_prog_compiler_static='-Bstatic'
65f333
+	  ;;
65f333
 	esac
65f333
 	;;
65f333
       esac
65f333
@@ -8717,7 +8782,6 @@
65f333
   hardcode_direct=no
65f333
   hardcode_direct_absolute=no
65f333
   hardcode_libdir_flag_spec=
65f333
-  hardcode_libdir_flag_spec_ld=
65f333
   hardcode_libdir_separator=
65f333
   hardcode_minus_L=no
65f333
   hardcode_shlibpath_var=unsupported
65f333
@@ -8970,8 +9034,7 @@
65f333
 	xlf* | bgf* | bgxlf* | mpixlf*)
65f333
 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
65f333
 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
65f333
-	  hardcode_libdir_flag_spec=
65f333
-	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
65f333
+	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
65f333
 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
65f333
 	  if test "x$supports_anon_versioning" = xyes; then
65f333
 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
65f333
@@ -9351,6 +9414,7 @@
65f333
 	# The linker will not automatically build a static lib if we build a DLL.
65f333
 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
65f333
 	enable_shared_with_static_runtimes=yes
65f333
+	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
65f333
 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
65f333
 	# Don't use ranlib
65f333
 	old_postinstall_cmds='chmod 644 $oldlib'
65f333
@@ -9396,6 +9460,7 @@
65f333
   hardcode_shlibpath_var=unsupported
65f333
   if test "$lt_cv_ld_force_load" = "yes"; then
65f333
     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
65f333
+
65f333
   else
65f333
     whole_archive_flag_spec=''
65f333
   fi
65f333
@@ -9424,10 +9489,6 @@
65f333
       hardcode_shlibpath_var=no
65f333
       ;;
65f333
 
65f333
-    freebsd1*)
65f333
-      ld_shlibs=no
65f333
-      ;;
65f333
-
65f333
     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
65f333
     # support.  Future versions do this automatically, but an explicit c++rt0.o
65f333
     # does not break anything, and helps significantly (at the cost of a little
65f333
@@ -9440,7 +9501,7 @@
65f333
       ;;
65f333
 
65f333
     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
65f333
-    freebsd2*)
65f333
+    freebsd2.*)
65f333
       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
65f333
       hardcode_direct=yes
65f333
       hardcode_minus_L=yes
65f333
@@ -9479,7 +9540,6 @@
65f333
       fi
65f333
       if test "$with_gnu_ld" = no; then
65f333
 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
65f333
-	hardcode_libdir_flag_spec_ld='+b $libdir'
65f333
 	hardcode_libdir_separator=:
65f333
 	hardcode_direct=yes
65f333
 	hardcode_direct_absolute=yes
65f333
@@ -10103,11 +10163,6 @@
65f333
 
65f333
 
65f333
 
65f333
-
65f333
-
65f333
-
65f333
-
65f333
-
65f333
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
65f333
 $as_echo_n "checking dynamic linker characteristics... " >&6; }
65f333
 
65f333
@@ -10197,7 +10252,7 @@
65f333
 
65f333
 case $host_os in
65f333
 aix3*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
65f333
   shlibpath_var=LIBPATH
65f333
 
65f333
@@ -10206,7 +10261,7 @@
65f333
   ;;
65f333
 
65f333
 aix[4-9]*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   hardcode_into_libs=yes
65f333
@@ -10271,7 +10326,7 @@
65f333
   ;;
65f333
 
65f333
 bsdi[45]*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   soname_spec='${libname}${release}${shared_ext}$major'
65f333
@@ -10410,7 +10465,7 @@
65f333
   ;;
65f333
 
65f333
 dgux*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
65f333
@@ -10418,10 +10473,6 @@
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
   ;;
65f333
 
65f333
-freebsd1*)
65f333
-  dynamic_linker=no
65f333
-  ;;
65f333
-
65f333
 freebsd* | dragonfly*)
65f333
   # DragonFly does not have aout.  When/if they implement a new
65f333
   # versioning mechanism, adjust this.
65f333
@@ -10429,7 +10480,7 @@
65f333
     objformat=`/usr/bin/objformat`
65f333
   else
65f333
     case $host_os in
65f333
-    freebsd[123]*) objformat=aout ;;
65f333
+    freebsd[23].*) objformat=aout ;;
65f333
     *) objformat=elf ;;
65f333
     esac
65f333
   fi
65f333
@@ -10447,7 +10498,7 @@
65f333
   esac
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
   case $host_os in
65f333
-  freebsd2*)
65f333
+  freebsd2.*)
65f333
     shlibpath_overrides_runpath=yes
65f333
     ;;
65f333
   freebsd3.[01]* | freebsdelf3.[01]*)
65f333
@@ -10467,7 +10518,7 @@
65f333
   ;;
65f333
 
65f333
 gnu*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
65f333
@@ -10478,7 +10529,7 @@
65f333
   ;;
65f333
 
65f333
 haiku*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   dynamic_linker="$host_os runtime_loader"
65f333
@@ -10539,7 +10590,7 @@
65f333
   ;;
65f333
 
65f333
 interix[3-9]*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
65f333
@@ -10555,7 +10606,7 @@
65f333
     nonstopux*) version_type=nonstopux ;;
65f333
     *)
65f333
 	if test "$lt_cv_prog_gnu_ld" = yes; then
65f333
-		version_type=linux
65f333
+		version_type=linux # correct to gnu/linux during the next big refactor
65f333
 	else
65f333
 		version_type=irix
65f333
 	fi ;;
65f333
@@ -10592,9 +10643,9 @@
65f333
   dynamic_linker=no
65f333
   ;;
65f333
 
65f333
-# This must be Linux ELF.
65f333
+# This must be glibc/ELF.
65f333
 linux* | k*bsd*-gnu | kopensolaris*-gnu)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
@@ -10688,7 +10739,7 @@
65f333
   ;;
65f333
 
65f333
 newsos6)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
   shlibpath_overrides_runpath=yes
65f333
@@ -10757,7 +10808,7 @@
65f333
   ;;
65f333
 
65f333
 solaris*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
@@ -10782,7 +10833,7 @@
65f333
   ;;
65f333
 
65f333
 sysv4 | sysv4.3*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   soname_spec='${libname}${release}${shared_ext}$major'
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
@@ -10806,7 +10857,7 @@
65f333
 
65f333
 sysv4*MP*)
65f333
   if test -d /usr/nec ;then
65f333
-    version_type=linux
65f333
+    version_type=linux # correct to gnu/linux during the next big refactor
65f333
     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
65f333
     soname_spec='$libname${shared_ext}.$major'
65f333
     shlibpath_var=LD_LIBRARY_PATH
65f333
@@ -10837,7 +10888,7 @@
65f333
 
65f333
 tpf*)
65f333
   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
@@ -10847,7 +10898,7 @@
65f333
   ;;
65f333
 
65f333
 uts4*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   soname_spec='${libname}${release}${shared_ext}$major'
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
@@ -11629,6 +11680,8 @@
65f333
 
65f333
 
65f333
 
65f333
+
65f333
+
65f333
         ac_config_commands="$ac_config_commands libtool"
65f333
 
65f333
 
65f333
@@ -12836,6 +12889,7 @@
65f333
 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
65f333
 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
65f333
 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
65f333
+PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
65f333
 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
65f333
 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
65f333
 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
65f333
@@ -12916,7 +12970,6 @@
65f333
 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
65f333
 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
65f333
 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
65f333
-hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
65f333
 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
65f333
 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
65f333
 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
65f333
@@ -12975,6 +13028,7 @@
65f333
 OBJDUMP \
65f333
 SHELL \
65f333
 ECHO \
65f333
+PATH_SEPARATOR \
65f333
 SED \
65f333
 GREP \
65f333
 EGREP \
65f333
@@ -13023,7 +13077,6 @@
65f333
 allow_undefined_flag \
65f333
 no_undefined_flag \
65f333
 hardcode_libdir_flag_spec \
65f333
-hardcode_libdir_flag_spec_ld \
65f333
 hardcode_libdir_separator \
65f333
 exclude_expsyms \
65f333
 include_expsyms \
65f333
@@ -13824,8 +13877,8 @@
65f333
 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
65f333
 #
65f333
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
65f333
-#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
65f333
-#                 Inc.
65f333
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
65f333
+#                 Foundation, Inc.
65f333
 #   Written by Gordon Matzigkeit, 1996
65f333
 #
65f333
 #   This file is part of GNU Libtool.
65f333
@@ -13888,6 +13941,9 @@
65f333
 # An echo program that protects backslashes.
65f333
 ECHO=$lt_ECHO
65f333
 
65f333
+# The PATH separator for the build system.
65f333
+PATH_SEPARATOR=$lt_PATH_SEPARATOR
65f333
+
65f333
 # The host system.
65f333
 host_alias=$host_alias
65f333
 host=$host
65f333
@@ -14183,10 +14239,6 @@
65f333
 # This must work even if \$libdir does not exist
65f333
 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
65f333
 
65f333
-# If ld is used when linking, flag to hardcode \$libdir into a binary
65f333
-# during linking.  This must work even if \$libdir does not exist.
65f333
-hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
65f333
-
65f333
 # Whether we need a single "-rpath" flag with a separated argument.
65f333
 hardcode_libdir_separator=$lt_hardcode_libdir_separator
65f333
 
65f333
diff -u -Naur potrace-1.11/depcomp potrace-1.11-patched/depcomp
65f333
--- potrace-1.11/depcomp	2010-11-04 23:08:34.000000000 -0300
65f333
+++ potrace-1.11-patched/depcomp	2013-05-14 17:54:51.635877135 -0300
65f333
@@ -1,10 +1,10 @@
65f333
 #! /bin/sh
65f333
 # depcomp - compile a program generating dependencies as side-effects
65f333
 
65f333
-scriptversion=2009-04-28.21; # UTC
65f333
+scriptversion=2012-03-27.16; # UTC
65f333
 
65f333
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
65f333
-# Software Foundation, Inc.
65f333
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
65f333
+# 2011, 2012 Free Software Foundation, Inc.
65f333
 
65f333
 # This program is free software; you can redistribute it and/or modify
65f333
 # it under the terms of the GNU General Public License as published by
65f333
@@ -28,7 +28,7 @@
65f333
 
65f333
 case $1 in
65f333
   '')
65f333
-     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
65f333
+     echo "$0: No command.  Try '$0 --help' for more information." 1>&2
65f333
      exit 1;
65f333
      ;;
65f333
   -h | --h*)
65f333
@@ -40,11 +40,11 @@
65f333
 
65f333
 Environment variables:
65f333
   depmode     Dependency tracking mode.
65f333
-  source      Source file read by `PROGRAMS ARGS'.
65f333
-  object      Object file output by `PROGRAMS ARGS'.
65f333
+  source      Source file read by 'PROGRAMS ARGS'.
65f333
+  object      Object file output by 'PROGRAMS ARGS'.
65f333
   DEPDIR      directory where to store dependencies.
65f333
   depfile     Dependency file to output.
65f333
-  tmpdepfile  Temporary file to use when outputing dependencies.
65f333
+  tmpdepfile  Temporary file to use when outputting dependencies.
65f333
   libtool     Whether libtool is used (yes/no).
65f333
 
65f333
 Report bugs to <bug-automake@gnu.org>.
65f333
@@ -57,6 +57,12 @@
65f333
     ;;
65f333
 esac
65f333
 
65f333
+# A tabulation character.
65f333
+tab='	'
65f333
+# A newline character.
65f333
+nl='
65f333
+'
65f333
+
65f333
 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
65f333
   echo "depcomp: Variables source, object and depmode must be set" 1>&2
65f333
   exit 1
65f333
@@ -90,10 +96,24 @@
65f333
    # This is just like msvisualcpp but w/o cygpath translation.
65f333
    # Just convert the backslash-escaped backslashes to single forward
65f333
    # slashes to satisfy depend.m4
65f333
-   cygpath_u="sed s,\\\\\\\\,/,g"
65f333
+   cygpath_u='sed s,\\\\,/,g'
65f333
    depmode=msvisualcpp
65f333
 fi
65f333
 
65f333
+if test "$depmode" = msvc7msys; then
65f333
+   # This is just like msvc7 but w/o cygpath translation.
65f333
+   # Just convert the backslash-escaped backslashes to single forward
65f333
+   # slashes to satisfy depend.m4
65f333
+   cygpath_u='sed s,\\\\,/,g'
65f333
+   depmode=msvc7
65f333
+fi
65f333
+
65f333
+if test "$depmode" = xlc; then
65f333
+   # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
65f333
+   gccflag=-qmakedep=gcc,-MF
65f333
+   depmode=gcc
65f333
+fi
65f333
+
65f333
 case "$depmode" in
65f333
 gcc3)
65f333
 ## gcc 3 implements dependency tracking that does exactly what
65f333
@@ -148,20 +168,21 @@
65f333
 ## The second -e expression handles DOS-style file names with drive letters.
65f333
   sed -e 's/^[^:]*: / /' \
65f333
       -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
65f333
-## This next piece of magic avoids the `deleted header file' problem.
65f333
+## This next piece of magic avoids the "deleted header file" problem.
65f333
 ## The problem is that when a header file which appears in a .P file
65f333
 ## is deleted, the dependency causes make to die (because there is
65f333
 ## typically no way to rebuild the header).  We avoid this by adding
65f333
 ## dummy dependencies for each header file.  Too bad gcc doesn't do
65f333
 ## this for us directly.
65f333
-  tr ' ' '
65f333
-' < "$tmpdepfile" |
65f333
-## Some versions of gcc put a space before the `:'.  On the theory
65f333
+  tr ' ' "$nl" < "$tmpdepfile" |
65f333
+## Some versions of gcc put a space before the ':'.  On the theory
65f333
 ## that the space means something, we add a space to the output as
65f333
-## well.
65f333
+## well.  hp depmode also adds that space, but also prefixes the VPATH
65f333
+## to the object.  Take care to not repeat it in the output.
65f333
 ## Some versions of the HPUX 10.20 sed can't process this invocation
65f333
 ## correctly.  Breaking it into two sed invocations is a workaround.
65f333
-    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
65f333
+    sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
65f333
+      | sed -e 's/$/ :/' >> "$depfile"
65f333
   rm -f "$tmpdepfile"
65f333
   ;;
65f333
 
65f333
@@ -193,18 +214,15 @@
65f333
     # clever and replace this with sed code, as IRIX sed won't handle
65f333
     # lines with more than a fixed number of characters (4096 in
65f333
     # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
65f333
-    # the IRIX cc adds comments like `#:fec' to the end of the
65f333
+    # the IRIX cc adds comments like '#:fec' to the end of the
65f333
     # dependency line.
65f333
-    tr ' ' '
65f333
-' < "$tmpdepfile" \
65f333
+    tr ' ' "$nl" < "$tmpdepfile" \
65f333
     | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
65f333
-    tr '
65f333
-' ' ' >> "$depfile"
65f333
+    tr "$nl" ' ' >> "$depfile"
65f333
     echo >> "$depfile"
65f333
 
65f333
     # The second pass generates a dummy entry for each header file.
65f333
-    tr ' ' '
65f333
-' < "$tmpdepfile" \
65f333
+    tr ' ' "$nl" < "$tmpdepfile" \
65f333
    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
65f333
    >> "$depfile"
65f333
   else
65f333
@@ -216,10 +234,17 @@
65f333
   rm -f "$tmpdepfile"
65f333
   ;;
65f333
 
65f333
+xlc)
65f333
+  # This case exists only to let depend.m4 do its work.  It works by
65f333
+  # looking at the text of this script.  This case will never be run,
65f333
+  # since it is checked for above.
65f333
+  exit 1
65f333
+  ;;
65f333
+
65f333
 aix)
65f333
   # The C for AIX Compiler uses -M and outputs the dependencies
65f333
   # in a .u file.  In older versions, this file always lives in the
65f333
-  # current directory.  Also, the AIX compiler puts `$object:' at the
65f333
+  # current directory.  Also, the AIX compiler puts '$object:' at the
65f333
   # start of each line; $object doesn't have directory information.
65f333
   # Version 6 uses the directory in both cases.
65f333
   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
65f333
@@ -249,12 +274,11 @@
65f333
     test -f "$tmpdepfile" && break
65f333
   done
65f333
   if test -f "$tmpdepfile"; then
65f333
-    # Each line is of the form `foo.o: dependent.h'.
65f333
+    # Each line is of the form 'foo.o: dependent.h'.
65f333
     # Do two passes, one to just change these to
65f333
-    # `$object: dependent.h' and one to simply `dependent.h:'.
65f333
+    # '$object: dependent.h' and one to simply 'dependent.h:'.
65f333
     sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
65f333
-    # That's a tab and a space in the [].
65f333
-    sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
65f333
+    sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
65f333
   else
65f333
     # The sourcefile does not contain any dependencies, so just
65f333
     # store a dummy comment line, to avoid errors with the Makefile
65f333
@@ -265,23 +289,26 @@
65f333
   ;;
65f333
 
65f333
 icc)
65f333
-  # Intel's C compiler understands `-MD -MF file'.  However on
65f333
-  #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
65f333
+  # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
65f333
+  # However on
65f333
+  #    $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
65f333
   # ICC 7.0 will fill foo.d with something like
65f333
   #    foo.o: sub/foo.c
65f333
   #    foo.o: sub/foo.h
65f333
-  # which is wrong.  We want:
65f333
+  # which is wrong.  We want
65f333
   #    sub/foo.o: sub/foo.c
65f333
   #    sub/foo.o: sub/foo.h
65f333
   #    sub/foo.c:
65f333
   #    sub/foo.h:
65f333
   # ICC 7.1 will output
65f333
   #    foo.o: sub/foo.c sub/foo.h
65f333
-  # and will wrap long lines using \ :
65f333
+  # and will wrap long lines using '\':
65f333
   #    foo.o: sub/foo.c ... \
65f333
   #     sub/foo.h ... \
65f333
   #     ...
65f333
-
65f333
+  # tcc 0.9.26 (FIXME still under development at the moment of writing)
65f333
+  # will emit a similar output, but also prepend the continuation lines
65f333
+  # with horizontal tabulation characters.
65f333
   "$@" -MD -MF "$tmpdepfile"
65f333
   stat=$?
65f333
   if test $stat -eq 0; then :
65f333
@@ -290,15 +317,21 @@
65f333
     exit $stat
65f333
   fi
65f333
   rm -f "$depfile"
65f333
-  # Each line is of the form `foo.o: dependent.h',
65f333
-  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
65f333
+  # Each line is of the form 'foo.o: dependent.h',
65f333
+  # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
65f333
   # Do two passes, one to just change these to
65f333
-  # `$object: dependent.h' and one to simply `dependent.h:'.
65f333
-  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
65f333
-  # Some versions of the HPUX 10.20 sed can't process this invocation
65f333
-  # correctly.  Breaking it into two sed invocations is a workaround.
65f333
-  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
65f333
-    sed -e 's/$/ :/' >> "$depfile"
65f333
+  # '$object: dependent.h' and one to simply 'dependent.h:'.
65f333
+  sed -e "s/^[ $tab][ $tab]*/  /" -e "s,^[^:]*:,$object :," \
65f333
+    < "$tmpdepfile" > "$depfile"
65f333
+  sed '
65f333
+    s/[ '"$tab"'][ '"$tab"']*/ /g
65f333
+    s/^ *//
65f333
+    s/ *\\*$//
65f333
+    s/^[^:]*: *//
65f333
+    /^$/d
65f333
+    /:$/d
65f333
+    s/$/ :/
65f333
+  ' < "$tmpdepfile" >> "$depfile"
65f333
   rm -f "$tmpdepfile"
65f333
   ;;
65f333
 
65f333
@@ -334,7 +367,7 @@
65f333
   done
65f333
   if test -f "$tmpdepfile"; then
65f333
     sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
65f333
-    # Add `dependent.h:' lines.
65f333
+    # Add 'dependent.h:' lines.
65f333
     sed -ne '2,${
65f333
 	       s/^ *//
65f333
 	       s/ \\*$//
65f333
@@ -349,9 +382,9 @@
65f333
 
65f333
 tru64)
65f333
    # The Tru64 compiler uses -MD to generate dependencies as a side
65f333
-   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
65f333
+   # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
65f333
    # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
65f333
-   # dependencies in `foo.d' instead, so we check for that too.
65f333
+   # dependencies in 'foo.d' instead, so we check for that too.
65f333
    # Subdirectories are respected.
65f333
    dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
65f333
    test "x$dir" = "x$object" && dir=
65f333
@@ -397,14 +430,59 @@
65f333
    done
65f333
    if test -f "$tmpdepfile"; then
65f333
       sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
65f333
-      # That's a tab and a space in the [].
65f333
-      sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
65f333
+      sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
65f333
    else
65f333
       echo "#dummy" > "$depfile"
65f333
    fi
65f333
    rm -f "$tmpdepfile"
65f333
    ;;
65f333
 
65f333
+msvc7)
65f333
+  if test "$libtool" = yes; then
65f333
+    showIncludes=-Wc,-showIncludes
65f333
+  else
65f333
+    showIncludes=-showIncludes
65f333
+  fi
65f333
+  "$@" $showIncludes > "$tmpdepfile"
65f333
+  stat=$?
65f333
+  grep -v '^Note: including file: ' "$tmpdepfile"
65f333
+  if test "$stat" = 0; then :
65f333
+  else
65f333
+    rm -f "$tmpdepfile"
65f333
+    exit $stat
65f333
+  fi
65f333
+  rm -f "$depfile"
65f333
+  echo "$object : \\" > "$depfile"
65f333
+  # The first sed program below extracts the file names and escapes
65f333
+  # backslashes for cygpath.  The second sed program outputs the file
65f333
+  # name when reading, but also accumulates all include files in the
65f333
+  # hold buffer in order to output them again at the end.  This only
65f333
+  # works with sed implementations that can handle large buffers.
65f333
+  sed < "$tmpdepfile" -n '
65f333
+/^Note: including file:  *\(.*\)/ {
65f333
+  s//\1/
65f333
+  s/\\/\\\\/g
65f333
+  p
65f333
+}' | $cygpath_u | sort -u | sed -n '
65f333
+s/ /\\ /g
65f333
+s/\(.*\)/'"$tab"'\1 \\/p
65f333
+s/.\(.*\) \\/\1:/
65f333
+H
65f333
+$ {
65f333
+  s/.*/'"$tab"'/
65f333
+  G
65f333
+  p
65f333
+}' >> "$depfile"
65f333
+  rm -f "$tmpdepfile"
65f333
+  ;;
65f333
+
65f333
+msvc7msys)
65f333
+  # This case exists only to let depend.m4 do its work.  It works by
65f333
+  # looking at the text of this script.  This case will never be run,
65f333
+  # since it is checked for above.
65f333
+  exit 1
65f333
+  ;;
65f333
+
65f333
 #nosideeffect)
65f333
   # This comment above is used by automake to tell side-effect
65f333
   # dependency tracking mechanisms from slower ones.
65f333
@@ -422,7 +500,7 @@
65f333
     shift
65f333
   fi
65f333
 
65f333
-  # Remove `-o $object'.
65f333
+  # Remove '-o $object'.
65f333
   IFS=" "
65f333
   for arg
65f333
   do
65f333
@@ -442,15 +520,14 @@
65f333
   done
65f333
 
65f333
   test -z "$dashmflag" && dashmflag=-M
65f333
-  # Require at least two characters before searching for `:'
65f333
+  # Require at least two characters before searching for ':'
65f333
   # in the target name.  This is to cope with DOS-style filenames:
65f333
-  # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
65f333
+  # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
65f333
   "$@" $dashmflag |
65f333
-    sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile"
65f333
+    sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
65f333
   rm -f "$depfile"
65f333
   cat < "$tmpdepfile" > "$depfile"
65f333
-  tr ' ' '
65f333
-' < "$tmpdepfile" | \
65f333
+  tr ' ' "$nl" < "$tmpdepfile" | \
65f333
 ## Some versions of the HPUX 10.20 sed can't process this invocation
65f333
 ## correctly.  Breaking it into two sed invocations is a workaround.
65f333
     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
65f333
@@ -503,9 +580,10 @@
65f333
   touch "$tmpdepfile"
65f333
   ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
65f333
   rm -f "$depfile"
65f333
-  cat < "$tmpdepfile" > "$depfile"
65f333
-  sed '1,2d' "$tmpdepfile" | tr ' ' '
65f333
-' | \
65f333
+  # makedepend may prepend the VPATH from the source file name to the object.
65f333
+  # No need to regex-escape $object, excess matching of '.' is harmless.
65f333
+  sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
65f333
+  sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
65f333
 ## Some versions of the HPUX 10.20 sed can't process this invocation
65f333
 ## correctly.  Breaking it into two sed invocations is a workaround.
65f333
     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
65f333
@@ -525,7 +603,7 @@
65f333
     shift
65f333
   fi
65f333
 
65f333
-  # Remove `-o $object'.
65f333
+  # Remove '-o $object'.
65f333
   IFS=" "
65f333
   for arg
65f333
   do
65f333
@@ -594,8 +672,8 @@
65f333
   sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
65f333
   rm -f "$depfile"
65f333
   echo "$object : \\" > "$depfile"
65f333
-  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
65f333
-  echo "	" >> "$depfile"
65f333
+  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
65f333
+  echo "$tab" >> "$depfile"
65f333
   sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
65f333
   rm -f "$tmpdepfile"
65f333
   ;;
65f333
diff -u -Naur potrace-1.11/INSTALL potrace-1.11-patched/INSTALL
65f333
--- potrace-1.11/INSTALL	2010-11-04 23:08:34.000000000 -0300
65f333
+++ potrace-1.11-patched/INSTALL	2013-05-14 17:54:51.723878277 -0300
65f333
@@ -1,8 +1,8 @@
65f333
 Installation Instructions
65f333
 *************************
65f333
 
65f333
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
65f333
-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
65f333
+Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
65f333
+Inc.
65f333
 
65f333
    Copying and distribution of this file, with or without modification,
65f333
 are permitted in any medium without royalty provided the copyright
65f333
@@ -226,6 +226,11 @@
65f333
 
65f333
 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
65f333
 
65f333
+   HP-UX `make' updates targets which have the same time stamps as
65f333
+their prerequisites, which makes it generally unusable when shipped
65f333
+generated files such as `configure' are involved.  Use GNU `make'
65f333
+instead.
65f333
+
65f333
    On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
65f333
 parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
65f333
 a workaround.  If GNU CC is not installed, it is therefore recommended
65f333
diff -u -Naur potrace-1.11/install-sh potrace-1.11-patched/install-sh
65f333
--- potrace-1.11/install-sh	2010-11-04 23:08:34.000000000 -0300
65f333
+++ potrace-1.11-patched/install-sh	2013-05-14 17:54:51.363873585 -0300
65f333
@@ -1,7 +1,7 @@
65f333
 #!/bin/sh
65f333
 # install - install a program, script, or datafile
65f333
 
65f333
-scriptversion=2009-04-28.21; # UTC
65f333
+scriptversion=2011-01-19.21; # UTC
65f333
 
65f333
 # This originates from X11R5 (mit/util/scripts/install.sh), which was
65f333
 # later released in X11R6 (xc/config/util/install.sh) with the
65f333
@@ -156,6 +156,10 @@
65f333
     -s) stripcmd=$stripprog;;
65f333
 
65f333
     -t) dst_arg=$2
65f333
+	# Protect names problematic for `test' and other utilities.
65f333
+	case $dst_arg in
65f333
+	  -* | [=\(\)!]) dst_arg=./$dst_arg;;
65f333
+	esac
65f333
 	shift;;
65f333
 
65f333
     -T) no_target_directory=true;;
65f333
@@ -186,6 +190,10 @@
65f333
     fi
65f333
     shift # arg
65f333
     dst_arg=$arg
65f333
+    # Protect names problematic for `test' and other utilities.
65f333
+    case $dst_arg in
65f333
+      -* | [=\(\)!]) dst_arg=./$dst_arg;;
65f333
+    esac
65f333
   done
65f333
 fi
65f333
 
65f333
@@ -200,7 +208,11 @@
65f333
 fi
65f333
 
65f333
 if test -z "$dir_arg"; then
65f333
-  trap '(exit $?); exit' 1 2 13 15
65f333
+  do_exit='(exit $ret); exit $ret'
65f333
+  trap "ret=129; $do_exit" 1
65f333
+  trap "ret=130; $do_exit" 2
65f333
+  trap "ret=141; $do_exit" 13
65f333
+  trap "ret=143; $do_exit" 15
65f333
 
65f333
   # Set umask so as not to create temps with too-generous modes.
65f333
   # However, 'strip' requires both read and write access to temps.
65f333
@@ -228,9 +240,9 @@
65f333
 
65f333
 for src
65f333
 do
65f333
-  # Protect names starting with `-'.
65f333
+  # Protect names problematic for `test' and other utilities.
65f333
   case $src in
65f333
-    -*) src=./$src;;
65f333
+    -* | [=\(\)!]) src=./$src;;
65f333
   esac
65f333
 
65f333
   if test -n "$dir_arg"; then
65f333
@@ -252,12 +264,7 @@
65f333
       echo "$0: no destination specified." >&2
65f333
       exit 1
65f333
     fi
65f333
-
65f333
     dst=$dst_arg
65f333
-    # Protect names starting with `-'.
65f333
-    case $dst in
65f333
-      -*) dst=./$dst;;
65f333
-    esac
65f333
 
65f333
     # If destination is a directory, append the input filename; won't work
65f333
     # if double slashes aren't ignored.
65f333
@@ -385,7 +392,7 @@
65f333
 
65f333
       case $dstdir in
65f333
 	/*) prefix='/';;
65f333
-	-*) prefix='./';;
65f333
+	[-=\(\)!]*) prefix='./';;
65f333
 	*)  prefix='';;
65f333
       esac
65f333
 
65f333
@@ -403,7 +410,7 @@
65f333
 
65f333
       for d
65f333
       do
65f333
-	test -z "$d" && continue
65f333
+	test X"$d" = X && continue
65f333
 
65f333
 	prefix=$prefix$d
65f333
 	if test -d "$prefix"; then
65f333
diff -u -Naur potrace-1.11/ltmain.sh potrace-1.11-patched/ltmain.sh
65f333
--- potrace-1.11/ltmain.sh	2013-01-21 12:47:52.000000000 -0400
65f333
+++ potrace-1.11-patched/ltmain.sh	2013-05-14 17:54:44.939789712 -0300
65f333
@@ -70,7 +70,7 @@
65f333
 #         compiler:		$LTCC
65f333
 #         compiler flags:		$LTCFLAGS
65f333
 #         linker:		$LD (gnu? $with_gnu_ld)
65f333
-#         $progname:	(GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
65f333
+#         $progname:	(GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu2
65f333
 #         automake:	$automake_version
65f333
 #         autoconf:	$autoconf_version
65f333
 #
65f333
@@ -80,7 +80,7 @@
65f333
 
65f333
 PROGRAM=libtool
65f333
 PACKAGE=libtool
65f333
-VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
65f333
+VERSION="2.4.2 Debian-2.4.2-1ubuntu2"
65f333
 TIMESTAMP=""
65f333
 package_revision=1.3337
65f333
 
65f333
diff -u -Naur potrace-1.11/m4/libtool.m4 potrace-1.11-patched/m4/libtool.m4
65f333
--- potrace-1.11/m4/libtool.m4	2012-02-23 20:32:33.000000000 -0400
65f333
+++ potrace-1.11-patched/m4/libtool.m4	2013-05-14 17:54:45.035790966 -0300
65f333
@@ -1,8 +1,8 @@
65f333
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
65f333
 #
65f333
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
65f333
-#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
65f333
-#                 Inc.
65f333
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
65f333
+#                 Foundation, Inc.
65f333
 #   Written by Gordon Matzigkeit, 1996
65f333
 #
65f333
 # This file is free software; the Free Software Foundation gives
65f333
@@ -11,8 +11,8 @@
65f333
 
65f333
 m4_define([_LT_COPYING], [dnl
65f333
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
65f333
-#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
65f333
-#                 Inc.
65f333
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
65f333
+#                 Foundation, Inc.
65f333
 #   Written by Gordon Matzigkeit, 1996
65f333
 #
65f333
 #   This file is part of GNU Libtool.
65f333
@@ -146,6 +146,8 @@
65f333
 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
65f333
 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
65f333
 
65f333
+_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
65f333
+dnl
65f333
 _LT_DECL([], [host_alias], [0], [The host system])dnl
65f333
 _LT_DECL([], [host], [0])dnl
65f333
 _LT_DECL([], [host_os], [0])dnl
65f333
@@ -637,7 +639,7 @@
65f333
 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
65f333
 configured by $[0], generated by m4_PACKAGE_STRING.
65f333
 
65f333
-Copyright (C) 2010 Free Software Foundation, Inc.
65f333
+Copyright (C) 2011 Free Software Foundation, Inc.
65f333
 This config.lt script is free software; the Free Software Foundation
65f333
 gives unlimited permision to copy, distribute and modify it."
65f333
 
65f333
@@ -801,6 +803,7 @@
65f333
 m4_case([$1],
65f333
   [C],			[_LT_LANG(C)],
65f333
   [C++],		[_LT_LANG(CXX)],
65f333
+  [Go],			[_LT_LANG(GO)],
65f333
   [Java],		[_LT_LANG(GCJ)],
65f333
   [Fortran 77],		[_LT_LANG(F77)],
65f333
   [Fortran],		[_LT_LANG(FC)],
65f333
@@ -822,6 +825,31 @@
65f333
 ])# _LT_LANG
65f333
 
65f333
 
65f333
+m4_ifndef([AC_PROG_GO], [
65f333
+############################################################
65f333
+# NOTE: This macro has been submitted for inclusion into   #
65f333
+#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
65f333
+#  a released version of Autoconf we should remove this    #
65f333
+#  macro and use it instead.                               #
65f333
+############################################################
65f333
+m4_defun([AC_PROG_GO],
65f333
+[AC_LANG_PUSH(Go)dnl
65f333
+AC_ARG_VAR([GOC],     [Go compiler command])dnl
65f333
+AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
65f333
+_AC_ARG_VAR_LDFLAGS()dnl
65f333
+AC_CHECK_TOOL(GOC, gccgo)
65f333
+if test -z "$GOC"; then
65f333
+  if test -n "$ac_tool_prefix"; then
65f333
+    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
65f333
+  fi
65f333
+fi
65f333
+if test -z "$GOC"; then
65f333
+  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
65f333
+fi
65f333
+])#m4_defun
65f333
+])#m4_ifndef
65f333
+
65f333
+
65f333
 # _LT_LANG_DEFAULT_CONFIG
65f333
 # -----------------------
65f333
 m4_defun([_LT_LANG_DEFAULT_CONFIG],
65f333
@@ -852,6 +880,10 @@
65f333
        m4_ifdef([LT_PROG_GCJ],
65f333
 	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
65f333
 
65f333
+AC_PROVIDE_IFELSE([AC_PROG_GO],
65f333
+  [LT_LANG(GO)],
65f333
+  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
65f333
+
65f333
 AC_PROVIDE_IFELSE([LT_PROG_RC],
65f333
   [LT_LANG(RC)],
65f333
   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
65f333
@@ -954,7 +986,13 @@
65f333
 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
65f333
 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
65f333
         _lt_result=$?
65f333
-	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
65f333
+	# If there is a non-empty error log, and "single_module"
65f333
+	# appears in it, assume the flag caused a linker warning
65f333
+        if test -s conftest.err && $GREP single_module conftest.err; then
65f333
+	  cat conftest.err >&AS_MESSAGE_LOG_FD
65f333
+	# Otherwise, if the output was created with a 0 exit code from
65f333
+	# the compiler, it worked.
65f333
+	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
65f333
 	  lt_cv_apple_cc_single_mod=yes
65f333
 	else
65f333
 	  cat conftest.err >&AS_MESSAGE_LOG_FD
65f333
@@ -962,6 +1000,7 @@
65f333
 	rm -rf libconftest.dylib*
65f333
 	rm -f conftest.*
65f333
       fi])
65f333
+
65f333
     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
65f333
       [lt_cv_ld_exported_symbols_list],
65f333
       [lt_cv_ld_exported_symbols_list=no
65f333
@@ -973,6 +1012,7 @@
65f333
 	[lt_cv_ld_exported_symbols_list=no])
65f333
 	LDFLAGS="$save_LDFLAGS"
65f333
     ])
65f333
+
65f333
     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
65f333
       [lt_cv_ld_force_load=no
65f333
       cat > conftest.c << _LT_EOF
65f333
@@ -990,7 +1030,9 @@
65f333
       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
65f333
       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
65f333
       _lt_result=$?
65f333
-      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
65f333
+      if test -s conftest.err && $GREP force_load conftest.err; then
65f333
+	cat conftest.err >&AS_MESSAGE_LOG_FD
65f333
+      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
65f333
 	lt_cv_ld_force_load=yes
65f333
       else
65f333
 	cat conftest.err >&AS_MESSAGE_LOG_FD
65f333
@@ -1035,8 +1077,8 @@
65f333
 ])
65f333
 
65f333
 
65f333
-# _LT_DARWIN_LINKER_FEATURES
65f333
-# --------------------------
65f333
+# _LT_DARWIN_LINKER_FEATURES([TAG])
65f333
+# ---------------------------------
65f333
 # Checks for linker and compiler features on darwin
65f333
 m4_defun([_LT_DARWIN_LINKER_FEATURES],
65f333
 [
65f333
@@ -1047,6 +1089,8 @@
65f333
   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
65f333
   if test "$lt_cv_ld_force_load" = "yes"; then
65f333
     _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
65f333
+    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
65f333
+                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
65f333
   else
65f333
     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
65f333
   fi
65f333
@@ -1330,14 +1374,27 @@
65f333
     CFLAGS="$SAVE_CFLAGS"
65f333
   fi
65f333
   ;;
65f333
-sparc*-*solaris*)
65f333
+*-*solaris*)
65f333
   # Find out which ABI we are using.
65f333
   echo 'int i;' > conftest.$ac_ext
65f333
   if AC_TRY_EVAL(ac_compile); then
65f333
     case `/usr/bin/file conftest.o` in
65f333
     *64-bit*)
65f333
       case $lt_cv_prog_gnu_ld in
65f333
-      yes*) LD="${LD-ld} -m elf64_sparc" ;;
65f333
+      yes*)
65f333
+        case $host in
65f333
+        i?86-*-solaris*)
65f333
+          LD="${LD-ld} -m elf_x86_64"
65f333
+          ;;
65f333
+        sparc*-*-solaris*)
65f333
+          LD="${LD-ld} -m elf64_sparc"
65f333
+          ;;
65f333
+        esac
65f333
+        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
65f333
+        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
65f333
+          LD="${LD-ld}_sol2"
65f333
+        fi
65f333
+        ;;
65f333
       *)
65f333
 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
65f333
 	  LD="${LD-ld} -64"
65f333
@@ -1414,13 +1471,13 @@
65f333
 if test -n "$RANLIB"; then
65f333
   case $host_os in
65f333
   openbsd*)
65f333
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
65f333
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
65f333
     ;;
65f333
   *)
65f333
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
65f333
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
65f333
     ;;
65f333
   esac
65f333
-  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
65f333
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
65f333
 fi
65f333
 
65f333
 case $host_os in
65f333
@@ -1600,6 +1657,11 @@
65f333
     lt_cv_sys_max_cmd_len=196608
65f333
     ;;
65f333
 
65f333
+  os2*)
65f333
+    # The test takes a long time on OS/2.
65f333
+    lt_cv_sys_max_cmd_len=8192
65f333
+    ;;
65f333
+
65f333
   osf*)
65f333
     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
65f333
     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
65f333
@@ -1639,7 +1701,7 @@
65f333
       # If test is not a shell built-in, we'll probably end up computing a
65f333
       # maximum length that is only half of the actual maximum length, but
65f333
       # we can't tell.
65f333
-      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
65f333
+      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
65f333
 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
65f333
 	      test $i != 17 # 1/2 MB should be enough
65f333
       do
65f333
@@ -2185,7 +2247,7 @@
65f333
 
65f333
 case $host_os in
65f333
 aix3*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
65f333
   shlibpath_var=LIBPATH
65f333
 
65f333
@@ -2194,7 +2256,7 @@
65f333
   ;;
65f333
 
65f333
 aix[[4-9]]*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   hardcode_into_libs=yes
65f333
@@ -2259,7 +2321,7 @@
65f333
   ;;
65f333
 
65f333
 bsdi[[45]]*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   soname_spec='${libname}${release}${shared_ext}$major'
65f333
@@ -2398,7 +2460,7 @@
65f333
   ;;
65f333
 
65f333
 dgux*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
65f333
@@ -2406,10 +2468,6 @@
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
   ;;
65f333
 
65f333
-freebsd1*)
65f333
-  dynamic_linker=no
65f333
-  ;;
65f333
-
65f333
 freebsd* | dragonfly*)
65f333
   # DragonFly does not have aout.  When/if they implement a new
65f333
   # versioning mechanism, adjust this.
65f333
@@ -2417,7 +2475,7 @@
65f333
     objformat=`/usr/bin/objformat`
65f333
   else
65f333
     case $host_os in
65f333
-    freebsd[[123]]*) objformat=aout ;;
65f333
+    freebsd[[23]].*) objformat=aout ;;
65f333
     *) objformat=elf ;;
65f333
     esac
65f333
   fi
65f333
@@ -2435,7 +2493,7 @@
65f333
   esac
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
   case $host_os in
65f333
-  freebsd2*)
65f333
+  freebsd2.*)
65f333
     shlibpath_overrides_runpath=yes
65f333
     ;;
65f333
   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
65f333
@@ -2455,7 +2513,7 @@
65f333
   ;;
65f333
 
65f333
 gnu*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
65f333
@@ -2466,7 +2524,7 @@
65f333
   ;;
65f333
 
65f333
 haiku*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   dynamic_linker="$host_os runtime_loader"
65f333
@@ -2527,7 +2585,7 @@
65f333
   ;;
65f333
 
65f333
 interix[[3-9]]*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
65f333
@@ -2543,7 +2601,7 @@
65f333
     nonstopux*) version_type=nonstopux ;;
65f333
     *)
65f333
 	if test "$lt_cv_prog_gnu_ld" = yes; then
65f333
-		version_type=linux
65f333
+		version_type=linux # correct to gnu/linux during the next big refactor
65f333
 	else
65f333
 		version_type=irix
65f333
 	fi ;;
65f333
@@ -2580,9 +2638,9 @@
65f333
   dynamic_linker=no
65f333
   ;;
65f333
 
65f333
-# This must be Linux ELF.
65f333
+# This must be glibc/ELF.
65f333
 linux* | k*bsd*-gnu | kopensolaris*-gnu)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
@@ -2657,7 +2715,7 @@
65f333
   ;;
65f333
 
65f333
 newsos6)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
   shlibpath_overrides_runpath=yes
65f333
@@ -2726,7 +2784,7 @@
65f333
   ;;
65f333
 
65f333
 solaris*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
@@ -2751,7 +2809,7 @@
65f333
   ;;
65f333
 
65f333
 sysv4 | sysv4.3*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   soname_spec='${libname}${release}${shared_ext}$major'
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
@@ -2775,7 +2833,7 @@
65f333
 
65f333
 sysv4*MP*)
65f333
   if test -d /usr/nec ;then
65f333
-    version_type=linux
65f333
+    version_type=linux # correct to gnu/linux during the next big refactor
65f333
     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
65f333
     soname_spec='$libname${shared_ext}.$major'
65f333
     shlibpath_var=LD_LIBRARY_PATH
65f333
@@ -2806,7 +2864,7 @@
65f333
 
65f333
 tpf*)
65f333
   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   need_lib_prefix=no
65f333
   need_version=no
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
@@ -2816,7 +2874,7 @@
65f333
   ;;
65f333
 
65f333
 uts4*)
65f333
-  version_type=linux
65f333
+  version_type=linux # correct to gnu/linux during the next big refactor
65f333
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
65f333
   soname_spec='${libname}${release}${shared_ext}$major'
65f333
   shlibpath_var=LD_LIBRARY_PATH
65f333
@@ -3238,7 +3296,7 @@
65f333
   lt_cv_deplibs_check_method=pass_all
65f333
   ;;
65f333
 
65f333
-# This must be Linux ELF.
65f333
+# This must be glibc/ELF.
65f333
 linux* | k*bsd*-gnu | kopensolaris*-gnu)
65f333
   lt_cv_deplibs_check_method=pass_all
65f333
   ;;
65f333
@@ -3658,6 +3716,7 @@
65f333
     # which start with @ or ?.
65f333
     lt_cv_sys_global_symbol_pipe="$AWK ['"\
65f333
 "     {last_section=section; section=\$ 3};"\
65f333
+"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
65f333
 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
65f333
 "     \$ 0!~/External *\|/{next};"\
65f333
 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
65f333
@@ -4242,7 +4301,9 @@
65f333
     case $cc_basename in
65f333
     nvcc*) # Cuda Compiler Driver 2.2
65f333
       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
65f333
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
65f333
+      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
65f333
+        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
65f333
+      fi
65f333
       ;;
65f333
     esac
65f333
   else
65f333
@@ -4334,18 +4395,33 @@
65f333
 	;;
65f333
       *)
65f333
 	case `$CC -V 2>&1 | sed 5q` in
65f333
-	*Sun\ F* | *Sun*Fortran*)
65f333
+	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
65f333
 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
65f333
 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
65f333
 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
65f333
 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
65f333
 	  ;;
65f333
+	*Sun\ F* | *Sun*Fortran*)
65f333
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
65f333
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
65f333
+	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
65f333
+	  ;;
65f333
 	*Sun\ C*)
65f333
 	  # Sun C 5.9
65f333
 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
65f333
 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
65f333
 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
65f333
 	  ;;
65f333
+        *Intel*\ [[CF]]*Compiler*)
65f333
+	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
65f333
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
65f333
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
65f333
+	  ;;
65f333
+	*Portland\ Group*)
65f333
+	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
65f333
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
65f333
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
65f333
+	  ;;
65f333
 	esac
65f333
 	;;
65f333
       esac
65f333
@@ -4505,7 +4581,9 @@
65f333
     ;;
65f333
   cygwin* | mingw* | cegcc*)
65f333
     case $cc_basename in
65f333
-    cl*) ;;
65f333
+    cl*)
65f333
+      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
65f333
+      ;;
65f333
     *)
65f333
       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
65f333
       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
65f333
@@ -4533,7 +4611,6 @@
65f333
   _LT_TAGVAR(hardcode_direct, $1)=no
65f333
   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
65f333
   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
65f333
-  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
65f333
   _LT_TAGVAR(hardcode_libdir_separator, $1)=
65f333
   _LT_TAGVAR(hardcode_minus_L, $1)=no
65f333
   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
65f333
@@ -4787,8 +4864,7 @@
65f333
 	xlf* | bgf* | bgxlf* | mpixlf*)
65f333
 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
65f333
 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
65f333
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
65f333
-	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
65f333
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
65f333
 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
65f333
 	  if test "x$supports_anon_versioning" = xyes; then
65f333
 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
65f333
@@ -5084,6 +5160,7 @@
65f333
 	# The linker will not automatically build a static lib if we build a DLL.
65f333
 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
65f333
 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
65f333
+	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
65f333
 	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
65f333
 	# Don't use ranlib
65f333
 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
65f333
@@ -5130,10 +5207,6 @@
65f333
       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
65f333
       ;;
65f333
 
65f333
-    freebsd1*)
65f333
-      _LT_TAGVAR(ld_shlibs, $1)=no
65f333
-      ;;
65f333
-
65f333
     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
65f333
     # support.  Future versions do this automatically, but an explicit c++rt0.o
65f333
     # does not break anything, and helps significantly (at the cost of a little
65f333
@@ -5146,7 +5219,7 @@
65f333
       ;;
65f333
 
65f333
     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
65f333
-    freebsd2*)
65f333
+    freebsd2.*)
65f333
       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
65f333
       _LT_TAGVAR(hardcode_direct, $1)=yes
65f333
       _LT_TAGVAR(hardcode_minus_L, $1)=yes
65f333
@@ -5185,7 +5258,6 @@
65f333
       fi
65f333
       if test "$with_gnu_ld" = no; then
65f333
 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
65f333
-	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
65f333
 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
65f333
 	_LT_TAGVAR(hardcode_direct, $1)=yes
65f333
 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
65f333
@@ -5627,9 +5699,6 @@
65f333
 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
65f333
     [Flag to hardcode $libdir into a binary during linking.
65f333
     This must work even if $libdir does not exist])
65f333
-_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
65f333
-    [[If ld is used when linking, flag to hardcode $libdir into a binary
65f333
-    during linking.  This must work even if $libdir does not exist]])
65f333
 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
65f333
     [Whether we need a single "-rpath" flag with a separated argument])
65f333
 _LT_TAGDECL([], [hardcode_direct], [0],
65f333
@@ -5787,7 +5856,6 @@
65f333
 _LT_TAGVAR(hardcode_direct, $1)=no
65f333
 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
65f333
 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
65f333
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
65f333
 _LT_TAGVAR(hardcode_libdir_separator, $1)=
65f333
 _LT_TAGVAR(hardcode_minus_L, $1)=no
65f333
 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
65f333
@@ -6157,7 +6225,7 @@
65f333
         esac
65f333
         ;;
65f333
 
65f333
-      freebsd[[12]]*)
65f333
+      freebsd2.*)
65f333
         # C++ shared libraries reported to be fairly broken before
65f333
 	# switch to ELF
65f333
         _LT_TAGVAR(ld_shlibs, $1)=no
65f333
@@ -6918,12 +6986,18 @@
65f333
   }
65f333
 };
65f333
 _LT_EOF
65f333
+], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
65f333
+package foo
65f333
+func foo() {
65f333
+}
65f333
+_LT_EOF
65f333
 ])
65f333
 
65f333
 _lt_libdeps_save_CFLAGS=$CFLAGS
65f333
 case "$CC $CFLAGS " in #(
65f333
 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
65f333
 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
65f333
+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
65f333
 esac
65f333
 
65f333
 dnl Parse the compiler output and extract the necessary
65f333
@@ -7120,7 +7194,6 @@
65f333
 _LT_TAGVAR(hardcode_direct, $1)=no
65f333
 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
65f333
 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
65f333
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
65f333
 _LT_TAGVAR(hardcode_libdir_separator, $1)=
65f333
 _LT_TAGVAR(hardcode_minus_L, $1)=no
65f333
 _LT_TAGVAR(hardcode_automatic, $1)=no
65f333
@@ -7253,7 +7326,6 @@
65f333
 _LT_TAGVAR(hardcode_direct, $1)=no
65f333
 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
65f333
 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
65f333
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
65f333
 _LT_TAGVAR(hardcode_libdir_separator, $1)=
65f333
 _LT_TAGVAR(hardcode_minus_L, $1)=no
65f333
 _LT_TAGVAR(hardcode_automatic, $1)=no
65f333
@@ -7440,6 +7512,77 @@
65f333
 ])# _LT_LANG_GCJ_CONFIG
65f333
 
65f333
 
65f333
+# _LT_LANG_GO_CONFIG([TAG])
65f333
+# --------------------------
65f333
+# Ensure that the configuration variables for the GNU Go compiler
65f333
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
65f333
+# to write the compiler configuration to `libtool'.
65f333
+m4_defun([_LT_LANG_GO_CONFIG],
65f333
+[AC_REQUIRE([LT_PROG_GO])dnl
65f333
+AC_LANG_SAVE
65f333
+
65f333
+# Source file extension for Go test sources.
65f333
+ac_ext=go
65f333
+
65f333
+# Object file extension for compiled Go test sources.
65f333
+objext=o
65f333
+_LT_TAGVAR(objext, $1)=$objext
65f333
+
65f333
+# Code to be used in simple compile tests
65f333
+lt_simple_compile_test_code="package main; func main() { }"
65f333
+
65f333
+# Code to be used in simple link tests
65f333
+lt_simple_link_test_code='package main; func main() { }'
65f333
+
65f333
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
65f333
+_LT_TAG_COMPILER
65f333
+
65f333
+# save warnings/boilerplate of simple test code
65f333
+_LT_COMPILER_BOILERPLATE
65f333
+_LT_LINKER_BOILERPLATE
65f333
+
65f333
+# Allow CC to be a program name with arguments.
65f333
+lt_save_CC=$CC
65f333
+lt_save_CFLAGS=$CFLAGS
65f333
+lt_save_GCC=$GCC
65f333
+GCC=yes
65f333
+CC=${GOC-"gccgo"}
65f333
+CFLAGS=$GOFLAGS
65f333
+compiler=$CC
65f333
+_LT_TAGVAR(compiler, $1)=$CC
65f333
+_LT_TAGVAR(LD, $1)="$LD"
65f333
+_LT_CC_BASENAME([$compiler])
65f333
+
65f333
+# Go did not exist at the time GCC didn't implicitly link libc in.
65f333
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
65f333
+
65f333
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
65f333
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
65f333
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
65f333
+
65f333
+## CAVEAT EMPTOR:
65f333
+## There is no encapsulation within the following macros, do not change
65f333
+## the running order or otherwise move them around unless you know exactly
65f333
+## what you are doing...
65f333
+if test -n "$compiler"; then
65f333
+  _LT_COMPILER_NO_RTTI($1)
65f333
+  _LT_COMPILER_PIC($1)
65f333
+  _LT_COMPILER_C_O($1)
65f333
+  _LT_COMPILER_FILE_LOCKS($1)
65f333
+  _LT_LINKER_SHLIBS($1)
65f333
+  _LT_LINKER_HARDCODE_LIBPATH($1)
65f333
+
65f333
+  _LT_CONFIG($1)
65f333
+fi
65f333
+
65f333
+AC_LANG_RESTORE
65f333
+
65f333
+GCC=$lt_save_GCC
65f333
+CC=$lt_save_CC
65f333
+CFLAGS=$lt_save_CFLAGS
65f333
+])# _LT_LANG_GO_CONFIG
65f333
+
65f333
+
65f333
 # _LT_LANG_RC_CONFIG([TAG])
65f333
 # -------------------------
65f333
 # Ensure that the configuration variables for the Windows resource compiler
65f333
@@ -7509,6 +7652,13 @@
65f333
 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
65f333
 
65f333
 
65f333
+# LT_PROG_GO
65f333
+# ----------
65f333
+AC_DEFUN([LT_PROG_GO],
65f333
+[AC_CHECK_TOOL(GOC, gccgo,)
65f333
+])
65f333
+
65f333
+
65f333
 # LT_PROG_RC
65f333
 # ----------
65f333
 AC_DEFUN([LT_PROG_RC],
65f333
diff -u -Naur potrace-1.11/m4/ltoptions.m4 potrace-1.11-patched/m4/ltoptions.m4
65f333
--- potrace-1.11/m4/ltoptions.m4	2012-02-23 20:32:33.000000000 -0400
65f333
+++ potrace-1.11-patched/m4/ltoptions.m4	2013-05-14 17:54:45.087791644 -0300
65f333
@@ -326,9 +326,24 @@
65f333
 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
65f333
 m4_define([_LT_WITH_PIC],
65f333
 [AC_ARG_WITH([pic],
65f333
-    [AS_HELP_STRING([--with-pic],
65f333
+    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
65f333
 	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
65f333
-    [pic_mode="$withval"],
65f333
+    [lt_p=${PACKAGE-default}
65f333
+    case $withval in
65f333
+    yes|no) pic_mode=$withval ;;
65f333
+    *)
65f333
+      pic_mode=default
65f333
+      # Look at the argument we got.  We use all the common list separators.
65f333
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
65f333
+      for lt_pkg in $withval; do
65f333
+	IFS="$lt_save_ifs"
65f333
+	if test "X$lt_pkg" = "X$lt_p"; then
65f333
+	  pic_mode=yes
65f333
+	fi
65f333
+      done
65f333
+      IFS="$lt_save_ifs"
65f333
+      ;;
65f333
+    esac],
65f333
     [pic_mode=default])
65f333
 
65f333
 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
65f333
diff -u -Naur potrace-1.11/missing potrace-1.11-patched/missing
65f333
--- potrace-1.11/missing	2010-11-04 23:08:34.000000000 -0300
65f333
+++ potrace-1.11-patched/missing	2013-05-14 17:54:51.367873631 -0300
65f333
@@ -1,10 +1,10 @@
65f333
 #! /bin/sh
65f333
 # Common stub for a few missing GNU programs while installing.
65f333
 
65f333
-scriptversion=2009-04-28.21; # UTC
65f333
+scriptversion=2012-01-06.13; # UTC
65f333
 
65f333
 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
65f333
-# 2008, 2009 Free Software Foundation, Inc.
65f333
+# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
65f333
 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
65f333
 
65f333
 # This program is free software; you can redistribute it and/or modify
65f333
@@ -84,7 +84,6 @@
65f333
   help2man     touch the output file
65f333
   lex          create \`lex.yy.c', if possible, from existing .c
65f333
   makeinfo     touch the output file
65f333
-  tar          try tar, gnutar, gtar, then tar without non-portable flags
65f333
   yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
65f333
 
65f333
 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
65f333
@@ -122,15 +121,6 @@
65f333
     # Not GNU programs, they don't have --version.
65f333
     ;;
65f333
 
65f333
-  tar*)
65f333
-    if test -n "$run"; then
65f333
-       echo 1>&2 "ERROR: \`tar' requires --run"
65f333
-       exit 1
65f333
-    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
65f333
-       exit 1
65f333
-    fi
65f333
-    ;;
65f333
-
65f333
   *)
65f333
     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
65f333
        # We have it, but it failed.
65f333
@@ -226,7 +216,7 @@
65f333
          \`Bison' from any GNU archive site."
65f333
     rm -f y.tab.c y.tab.h
65f333
     if test $# -ne 1; then
65f333
-        eval LASTARG="\${$#}"
65f333
+        eval LASTARG=\${$#}
65f333
 	case $LASTARG in
65f333
 	*.y)
65f333
 	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
65f333
@@ -256,7 +246,7 @@
65f333
          \`Flex' from any GNU archive site."
65f333
     rm -f lex.yy.c
65f333
     if test $# -ne 1; then
65f333
-        eval LASTARG="\${$#}"
65f333
+        eval LASTARG=\${$#}
65f333
 	case $LASTARG in
65f333
 	*.l)
65f333
 	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
65f333
@@ -318,41 +308,6 @@
65f333
     touch $file
65f333
     ;;
65f333
 
65f333
-  tar*)
65f333
-    shift
65f333
-
65f333
-    # We have already tried tar in the generic part.
65f333
-    # Look for gnutar/gtar before invocation to avoid ugly error
65f333
-    # messages.
65f333
-    if (gnutar --version > /dev/null 2>&1;; then
65f333
-       gnutar "$@" && exit 0
65f333
-    fi
65f333
-    if (gtar --version > /dev/null 2>&1;; then
65f333
-       gtar "$@" && exit 0
65f333
-    fi
65f333
-    firstarg="$1"
65f333
-    if shift; then
65f333
-	case $firstarg in
65f333
-	*o*)
65f333
-	    firstarg=`echo "$firstarg" | sed s/o//`
65f333
-	    tar "$firstarg" "$@" && exit 0
65f333
-	    ;;
65f333
-	esac
65f333
-	case $firstarg in
65f333
-	*h*)
65f333
-	    firstarg=`echo "$firstarg" | sed s/h//`
65f333
-	    tar "$firstarg" "$@" && exit 0
65f333
-	    ;;
65f333
-	esac
65f333
-    fi
65f333
-
65f333
-    echo 1>&2 "\
65f333
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
65f333
-         You may want to install GNU tar or Free paxutils, or check the
65f333
-         command line arguments."
65f333
-    exit 1
65f333
-    ;;
65f333
-
65f333
   *)
65f333
     echo 1>&2 "\
65f333
 WARNING: \`$1' is needed, and is $msg.