Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gcl (2.6.7+dfsga-36) unstable; urgency=high
 .
   * min_pagewidth=14 on mips
Author: Camm Maguire <camm@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- gcl-2.6.7+dfsga.orig/configure
+++ gcl-2.6.7+dfsga/configure
@@ -3008,6 +3008,9 @@ case $use in
 	case $use in
 # def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion
 # on these architectures -- CM
+     	        powerpc*)
+			if test "$host_cpu" = "powerpc64" ; then def_dlopen="yes" ; def_custreloc="no" ; fi
+			;;
 		ia64*)
 			def_dlopen="yes" ; def_custreloc="no" ;;
 		hppa*)
@@ -4232,9 +4235,9 @@ if test "$enable_gprof" = "yes" ; then
 $as_echo_n "checking for text start... " >&6; }
 	echo 'int main () {return(0);}' >foo.c
 	$CC foo.c -o foo
-	GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`
+	GCL_GPROF_START=`nm foo | $AWK  '/  *[TD]  *__*start$/ {print $NF}'` # D for ppc64 -- FIXME custreloc
 	rm -f foo.c foo
-	if test "GCL_GPROF_START" != "" ; then #FIXME ppc64 fails here
+	if test "$GCL_GPROF_START" != "" ; then
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCL_GPROF_START" >&5
 $as_echo "$GCL_GPROF_START" >&6; }
 
--- gcl-2.6.7+dfsga.orig/configure.in
+++ gcl-2.6.7+dfsga/configure.in
@@ -330,6 +330,9 @@ case $use in
 	case $use in
 # def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion
 # on these architectures -- CM			
+     	        powerpc*)
+			if test "$host_cpu" = "powerpc64" ; then def_dlopen="yes" ; def_custreloc="no" ; fi
+			;;
 		ia64*)
 			def_dlopen="yes" ; def_custreloc="no" ;;
 		hppa*)
@@ -522,9 +525,9 @@ if test "$enable_gprof" = "yes" ; then
 	AC_MSG_CHECKING(for text start)
 	echo 'int main () {return(0);}' >foo.c
 	$CC foo.c -o foo
-	GCL_GPROF_START=`nm foo | $AWK  '/  *T  *_[_]*start$/ {print $NF}'`
+	GCL_GPROF_START=`nm foo | $AWK  '/  *[[TD]]  *__*start$/ {print $NF}'` # D for ppc64 -- FIXME custreloc
 	rm -f foo.c foo
-	if test "GCL_GPROF_START" != "" ; then #FIXME ppc64 fails here
+	if test "$GCL_GPROF_START" != "" ; then
 		AC_MSG_RESULT($GCL_GPROF_START)
 		AC_DEFINE_UNQUOTED(GCL_GPROF_START,$GCL_GPROF_START,[starting address for gprof])
 		case "$use" in	
